Skip to content

Commit

Permalink
Automated OAS Update (#53)
Browse files Browse the repository at this point in the history
* Automated OAS update: openapi.yaml

* chore: build SDK from openapi.yaml changes

---------

Co-authored-by: team-devx <[email protected]>
  • Loading branch information
kong-apiops and team-devx-bot authored Oct 24, 2023
1 parent 0d1ab38 commit e5d6399
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 32 deletions.
24 changes: 15 additions & 9 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2159,22 +2159,28 @@ components:
for by applications.
type: array
items:
type: object
required:
- name
properties:
name:
type: string
enum:
- key-auth
- openid-connect
$ref: '#/components/schemas/RegistrationConfiguration'
required:
- id
- created_at
- updated_at
- name
- deprecated
- registration_configs
RegistrationConfiguration:
type: object
required:
- name
properties:
name:
type: string
enum:
- key-auth
- openid-connect
available_scopes:
type: array
items:
type: string
LatestVersion:
type: object
additionalProperties: false
Expand Down
52 changes: 29 additions & 23 deletions src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2084,10 +2084,10 @@ export interface ProductVersion {
'deprecated': boolean;
/**
* Configurations for how the product version is able to be registered for by applications.
* @type {Array<ProductVersionRegistrationConfigsInner>}
* @type {Array<RegistrationConfiguration>}
* @memberof ProductVersion
*/
'registration_configs': Array<ProductVersionRegistrationConfigsInner>;
'registration_configs': Array<RegistrationConfiguration>;
}
/**
*
Expand Down Expand Up @@ -2180,27 +2180,6 @@ export interface ProductVersionListPage {
*/
'data': Array<ProductVersion>;
}
/**
*
* @export
* @interface ProductVersionRegistrationConfigsInner
*/
export interface ProductVersionRegistrationConfigsInner {
/**
*
* @type {string}
* @memberof ProductVersionRegistrationConfigsInner
*/
'name': ProductVersionRegistrationConfigsInnerNameEnum;
}

export const ProductVersionRegistrationConfigsInnerNameEnum = {
KeyAuth: 'key-auth',
OpenidConnect: 'openid-connect'
} as const;

export type ProductVersionRegistrationConfigsInnerNameEnum = typeof ProductVersionRegistrationConfigsInnerNameEnum[keyof typeof ProductVersionRegistrationConfigsInnerNameEnum];

/**
* API specification document for a product version.
* @export
Expand Down Expand Up @@ -2722,6 +2701,33 @@ export interface RegisterPayload {
*/
'full_name': string;
}
/**
*
* @export
* @interface RegistrationConfiguration
*/
export interface RegistrationConfiguration {
/**
*
* @type {string}
* @memberof RegistrationConfiguration
*/
'name': RegistrationConfigurationNameEnum;
/**
*
* @type {Array<string>}
* @memberof RegistrationConfiguration
*/
'available_scopes'?: Array<string>;
}

export const RegistrationConfigurationNameEnum = {
KeyAuth: 'key-auth',
OpenidConnect: 'openid-connect'
} as const;

export type RegistrationConfigurationNameEnum = typeof RegistrationConfigurationNameEnum[keyof typeof RegistrationConfigurationNameEnum];

/**
* Payload required to start the reset password flow
* @export
Expand Down

0 comments on commit e5d6399

Please sign in to comment.