Skip to content

Commit 826be9c

Browse files
authored
feat(sdk): automated oas update
1 parent e3184d8 commit 826be9c

File tree

5 files changed

+138
-41
lines changed

5 files changed

+138
-41
lines changed

api-specs/Konnect/control-planes-config/control-planes-config.yaml

Lines changed: 111 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -169,13 +169,13 @@ paths:
169169
'201':
170170
$ref: '#/components/responses/plugin-schemas'
171171
'400':
172-
$ref: '#/components/responses/BadRequest'
172+
$ref: '#/components/responses/KonnectCPLegacyBadRequest'
173173
'401':
174-
$ref: '#/components/responses/Unauthorized'
174+
$ref: '#/components/responses/KonnectCPLegacyUnauthorized'
175175
'403':
176-
$ref: '#/components/responses/Forbidden'
176+
$ref: '#/components/responses/KonnectCPLegacyForbidden'
177177
'409':
178-
$ref: '#/components/responses/Conflict'
178+
$ref: '#/components/responses/KonnectCPLegacyConflict'
179179
tags:
180180
- Custom Plugin Schemas
181181
'/control-planes/{controlPlaneId}/core-entities/plugin-schemas/{name}':
@@ -196,11 +196,11 @@ paths:
196196
'200':
197197
$ref: '#/components/responses/plugin-schemas'
198198
'401':
199-
$ref: '#/components/responses/Unauthorized'
199+
$ref: '#/components/responses/KonnectCPLegacyUnauthorized'
200200
'403':
201-
$ref: '#/components/responses/Forbidden'
201+
$ref: '#/components/responses/KonnectCPLegacyForbidden'
202202
'404':
203-
$ref: '#/components/responses/NotFound'
203+
$ref: '#/components/responses/KonnectCPLegacyNotFound'
204204
tags:
205205
- Custom Plugin Schemas
206206
delete:
@@ -211,11 +211,11 @@ paths:
211211
'204':
212212
description: No Content
213213
'401':
214-
$ref: '#/components/responses/Unauthorized'
214+
$ref: '#/components/responses/KonnectCPLegacyUnauthorized'
215215
'403':
216-
$ref: '#/components/responses/Forbidden'
216+
$ref: '#/components/responses/KonnectCPLegacyForbidden'
217217
'404':
218-
$ref: '#/components/responses/NotFound'
218+
$ref: '#/components/responses/KonnectCPLegacyNotFound'
219219
tags:
220220
- Custom Plugin Schemas
221221
put:
@@ -228,11 +228,11 @@ paths:
228228
'200':
229229
$ref: '#/components/responses/plugin-schemas'
230230
'401':
231-
$ref: '#/components/responses/Unauthorized'
231+
$ref: '#/components/responses/KonnectCPLegacyUnauthorized'
232232
'403':
233-
$ref: '#/components/responses/Forbidden'
233+
$ref: '#/components/responses/KonnectCPLegacyForbidden'
234234
'404':
235-
$ref: '#/components/responses/NotFound'
235+
$ref: '#/components/responses/KonnectCPLegacyNotFound'
236236
tags:
237237
- Custom Plugin Schemas
238238
'/control-planes/{controlPlaneId}/config-stores':
@@ -6742,6 +6742,7 @@ components:
67426742
description: The configuration properties for the Vault which can be found on the vaults' documentation page.
67436743
type: object
67446744
additionalProperties: true
6745+
nullable: true
67456746
created_at:
67466747
description: Unix epoch when the resource was created.
67476748
type: integer
@@ -6782,7 +6783,6 @@ components:
67826783
required:
67836784
- name
67846785
- prefix
6785-
- config
67866786
BaseError:
67876787
description: standard error
67886788
type: object
@@ -7074,21 +7074,51 @@ components:
70747074
example: 'kong:trace:1234567890'
70757075
detail:
70767076
example: Not found
7077-
ConflictError:
7077+
KonnectCPLegacyBaseError:
7078+
description: standard error
7079+
type: object
7080+
properties:
7081+
message:
7082+
description: |
7083+
A short summary of the problem.
7084+
type: string
7085+
readOnly: true
7086+
title: Error
7087+
KonnectCPLegacyBadRequestError:
70787088
allOf:
7079-
- $ref: '#/components/schemas/BaseError'
7089+
- $ref: '#/components/schemas/KonnectCPLegacyBaseError'
70807090
- type: object
70817091
properties:
7082-
status:
7083-
example: 409
7084-
title:
7085-
example: Conflict
7086-
type:
7087-
example: 'https://httpstatuses.com/409'
7088-
instance:
7089-
example: 'kong:trace:1234567890'
7090-
detail:
7092+
message:
7093+
example: Bad Request
7094+
KonnectCPLegacyUnauthorizedError:
7095+
allOf:
7096+
- $ref: '#/components/schemas/KonnectCPLegacyBaseError'
7097+
- type: object
7098+
properties:
7099+
message:
7100+
example: Unauthorized
7101+
KonnectCPLegacyForbiddenError:
7102+
allOf:
7103+
- $ref: '#/components/schemas/KonnectCPLegacyBaseError'
7104+
- type: object
7105+
properties:
7106+
message:
7107+
example: Forbidden
7108+
KonnectCPLegacyConflictError:
7109+
allOf:
7110+
- $ref: '#/components/schemas/KonnectCPLegacyBaseError'
7111+
- type: object
7112+
properties:
7113+
message:
70917114
example: Conflict
7115+
KonnectCPLegacyNotFoundError:
7116+
allOf:
7117+
- $ref: '#/components/schemas/KonnectCPLegacyBaseError'
7118+
- type: object
7119+
properties:
7120+
message:
7121+
example: Not Found
70927122
CursorMetaPage:
70937123
type: object
70947124
properties:
@@ -7234,6 +7264,21 @@ components:
72347264
title: Not Found
72357265
instance: 'kong:trace:6816496025408232265'
72367266
detail: Not Found
7267+
KonnectCPLegacyBadRequestExample:
7268+
value:
7269+
message: Bad Request
7270+
KonnectCPLegacyUnauthorizedExample:
7271+
value:
7272+
message: Unauthorized
7273+
KonnectCPLegacyForbiddenExample:
7274+
value:
7275+
message: Forbidden
7276+
KonnectCPLegacyConflictExample:
7277+
value:
7278+
message: Conflict
7279+
KonnectCPLegacyNotFoundExample:
7280+
value:
7281+
message: Not Found
72377282
UnsupportedMediaTypeExample:
72387283
value:
72397284
status: 415
@@ -7267,7 +7312,7 @@ components:
72677312
description: |
72687313
The custom plugin schema; `jq -Rs '.' schema.lua`.
72697314
type: string
7270-
example: 'return { name = \"myplugin\", fields = { { config = { type = \"record\", fields = { } } } } }'
7315+
example: 'return { name = "myplugin", fields = { { config = { type = "record", fields = { } } } } }'
72717316
required:
72727317
- lua_schema
72737318
x-examples:
@@ -7668,21 +7713,51 @@ components:
76687713
examples:
76697714
UnauthorizedExample:
76707715
$ref: '#/components/examples/ForbiddenExample'
7671-
NotFound:
7672-
description: Not Found
7716+
KonnectCPLegacyBadRequest:
7717+
description: Forbidden
76737718
content:
7674-
application/problem+json:
7719+
application/json:
76757720
schema:
7676-
$ref: '#/components/schemas/NotFoundError'
7721+
$ref: '#/components/schemas/KonnectCPLegacyBadRequestError'
76777722
examples:
7678-
NotFoundExample:
7679-
$ref: '#/components/examples/NotFoundExample'
7680-
Conflict:
7681-
description: Conflict
7723+
UnauthorizedExample:
7724+
$ref: '#/components/examples/KonnectCPLegacyBadRequestExample'
7725+
KonnectCPLegacyUnauthorized:
7726+
description: Unauthorized
76827727
content:
7683-
application/problem+json:
7728+
application/json:
76847729
schema:
7685-
$ref: '#/components/schemas/ConflictError'
7730+
$ref: '#/components/schemas/KonnectCPLegacyUnauthorizedError'
7731+
examples:
7732+
UnauthorizedExample:
7733+
$ref: '#/components/examples/KonnectCPLegacyUnauthorizedExample'
7734+
KonnectCPLegacyForbidden:
7735+
description: Forbidden
7736+
content:
7737+
application/json:
7738+
schema:
7739+
$ref: '#/components/schemas/KonnectCPLegacyForbiddenError'
7740+
examples:
7741+
UnauthorizedExample:
7742+
$ref: '#/components/examples/KonnectCPLegacyForbiddenExample'
7743+
KonnectCPLegacyConflict:
7744+
description: Forbidden
7745+
content:
7746+
application/json:
7747+
schema:
7748+
$ref: '#/components/schemas/KonnectCPLegacyConflictError'
7749+
examples:
7750+
UnauthorizedExample:
7751+
$ref: '#/components/examples/KonnectCPLegacyConflictExample'
7752+
KonnectCPLegacyNotFound:
7753+
description: Forbidden
7754+
content:
7755+
application/json:
7756+
schema:
7757+
$ref: '#/components/schemas/KonnectCPLegacyNotFoundError'
7758+
examples:
7759+
UnauthorizedExample:
7760+
$ref: '#/components/examples/KonnectCPLegacyNotFoundExample'
76867761
UnsupportedMediaType:
76877762
description: Unsupported Media Type
76887763
content:

api-specs/Konnect/v2/yaml/application-auth-strategies.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1114,8 +1114,6 @@ components:
11141114
type: string
11151115
maxLength: 64
11161116
maxItems: 10
1117-
labels:
1118-
$ref: '#/components/schemas/Labels'
11191117
additionalProperties: true
11201118
required:
11211119
- issuer

api-specs/Konnect/v2/yaml/audit-logs.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ components:
250250
enum:
251251
- cef
252252
- json
253+
- cps
253254
ListAuditLogDestinations:
254255
type: object
255256
properties:

api-specs/Konnect/v2/yaml/portal-management.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5250,6 +5250,8 @@ components:
52505250
description: The identity provider that contains configuration data for creating an authentication integration.
52515251
type: object
52525252
properties:
5253+
enabled:
5254+
$ref: '#/components/schemas/IdentityProviderEnabled'
52535255
type:
52545256
$ref: '#/components/schemas/IdentityProviderType'
52555257
config:

api-specs/Konnect/v3/yaml/identity.yaml

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ paths:
134134
$ref: '#/components/responses/IdentityUnauthenticated'
135135
'403':
136136
$ref: '#/components/responses/CreateIdentityProviderPermissionDenied'
137+
'409':
138+
$ref: '#/components/responses/Conflict'
137139
tags:
138140
- Auth Settings
139141
'/identity-providers/{id}':
@@ -184,6 +186,8 @@ paths:
184186
$ref: '#/components/responses/IdentityPermissionDenied'
185187
'404':
186188
$ref: '#/components/responses/IdentityNotFound'
189+
'409':
190+
$ref: '#/components/responses/Conflict'
187191
tags:
188192
- Auth Settings
189193
delete:
@@ -1337,7 +1341,7 @@ components:
13371341
schemas:
13381342
IdentityProviderEnabled:
13391343
description: |
1340-
Indicates whether the identity provider is enabled.
1344+
Indicates whether the identity provider is enabled.
13411345
Only one identity provider can be active at a time, such as SAML or OIDC.
13421346
type: boolean
13431347
example: true
@@ -1383,7 +1387,7 @@ components:
13831387
title: OIDC Identity Provider Scopes Property
13841388
OIDCIdentityProviderClaimMappings:
13851389
description: |
1386-
Defines the mappings between OpenID Connect (OIDC) claims and local claims used by your application for
1390+
Defines the mappings between OpenID Connect (OIDC) claims and local claims used by your application for
13871391
authentication.
13881392
type: object
13891393
properties:
@@ -1427,6 +1431,8 @@ components:
14271431
$ref: '#/components/schemas/IdentityProviderType'
14281432
login_path:
14291433
$ref: '#/components/schemas/IdentityProviderLoginPath'
1434+
enabled:
1435+
$ref: '#/components/schemas/schemas-IdentityProviderEnabled'
14301436
config:
14311437
type: object
14321438
oneOf:
@@ -1438,7 +1444,7 @@ components:
14381444
type: object
14391445
properties:
14401446
enabled:
1441-
$ref: '#/components/schemas/IdentityProviderEnabled'
1447+
$ref: '#/components/schemas/schemas-IdentityProviderEnabled'
14421448
login_path:
14431449
$ref: '#/components/schemas/IdentityProviderLoginPath'
14441450
config:
@@ -2205,6 +2211,14 @@ components:
22052211
example: 'kong:trace:1234567890'
22062212
detail:
22072213
example: Forbidden
2214+
schemas-IdentityProviderEnabled:
2215+
description: |
2216+
Indicates whether the identity provider is enabled.
2217+
Only one identity provider can be active at a time, such as SAML or OIDC.
2218+
type: boolean
2219+
example: true
2220+
default: false
2221+
title: Identity Provider Enabled Property
22082222
StringFieldContainsFilter:
22092223
description: Filter a string value field by partial contains.
22102224
type: object
@@ -2654,6 +2668,7 @@ components:
26542668
value:
26552669
type: oidc
26562670
login_path: the-oidc-konnect-org
2671+
enabled: true
26572672
config:
26582673
issuer_url: 'https://konghq.okta.com/oauth2/default'
26592674
client_id: 0oaqhb43ckTZ02j1F357
@@ -4366,6 +4381,12 @@ components:
43664381
application/json:
43674382
schema:
43684383
$ref: '#/components/schemas/IdP'
4384+
Conflict:
4385+
description: Conflict
4386+
content:
4387+
application/problem+json:
4388+
schema:
4389+
$ref: '#/components/schemas/ConflictError'
43694390
securitySchemes:
43704391
systemAccountAccessToken:
43714392
type: http

0 commit comments

Comments
 (0)