From e5d639961fa8b4258408e35aa20652ee507c5878 Mon Sep 17 00:00:00 2001 From: kong-apiops <122612077+kong-apiops@users.noreply.github.com> Date: Tue, 24 Oct 2023 20:08:59 +0100 Subject: [PATCH] Automated OAS Update (#53) * Automated OAS update: openapi.yaml * chore: build SDK from openapi.yaml changes --------- Co-authored-by: team-devx --- openapi.yaml | 24 +++++++++++++++--------- src/api.ts | 52 +++++++++++++++++++++++++++++----------------------- 2 files changed, 44 insertions(+), 32 deletions(-) diff --git a/openapi.yaml b/openapi.yaml index f118a52..4fca68a 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -2159,15 +2159,7 @@ 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 @@ -2175,6 +2167,20 @@ components: - 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 diff --git a/src/api.ts b/src/api.ts index c2be11e..4997352 100644 --- a/src/api.ts +++ b/src/api.ts @@ -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} + * @type {Array} * @memberof ProductVersion */ - 'registration_configs': Array; + 'registration_configs': Array; } /** * @@ -2180,27 +2180,6 @@ export interface ProductVersionListPage { */ 'data': Array; } -/** - * - * @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 @@ -2722,6 +2701,33 @@ export interface RegisterPayload { */ 'full_name': string; } +/** + * + * @export + * @interface RegistrationConfiguration + */ +export interface RegistrationConfiguration { + /** + * + * @type {string} + * @memberof RegistrationConfiguration + */ + 'name': RegistrationConfigurationNameEnum; + /** + * + * @type {Array} + * @memberof RegistrationConfiguration + */ + 'available_scopes'?: Array; +} + +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