From f141edff0d86bf0e85183738219af04f334a173d Mon Sep 17 00:00:00 2001 From: Daniel Rivers Date: Fri, 10 May 2024 15:02:03 +0100 Subject: [PATCH] feat: update to latest API schema chore: yaml update feat: update management API schema --- lib/api/schemas.gen.ts | 67 ++++- lib/api/services.gen.ts | 202 ++++++++++++++ lib/api/types.gen.ts | 467 ++++++++++++++++++++++++++++++++- spec/kinde-mgmt-api-specs.yaml | 435 +++++++++++++++++++++++++++++- 4 files changed, 1158 insertions(+), 13 deletions(-) diff --git a/lib/api/schemas.gen.ts b/lib/api/schemas.gen.ts index 7cc44be..e32e4ed 100644 --- a/lib/api/schemas.gen.ts +++ b/lib/api/schemas.gen.ts @@ -471,6 +471,51 @@ export const $get_categories_response = { }, } as const; +export const $create_connection_response = { + type: "object", + properties: { + message: { + type: "string", + }, + code: { + type: "string", + }, + connection: { + type: "object", + properties: { + id: { + description: "The connection's ID.", + type: "string", + }, + }, + }, + }, +} as const; + +export const $get_connections_response = { + type: "object", + properties: { + code: { + type: "string", + description: "Response code.", + }, + message: { + type: "string", + description: "Response message.", + }, + connections: { + type: "array", + items: { + $ref: "#/components/schemas/connection", + }, + }, + has_more: { + description: "Whether more records exist.", + type: "boolean", + }, + }, +} as const; + export const $token_introspect = { type: "object", properties: { @@ -610,7 +655,25 @@ export const $category = { type: "string", }, name: { - type: "boolean", + type: "string", + }, + }, +} as const; + +export const $connection = { + type: "object", + properties: { + id: { + type: "string", + }, + name: { + type: "string", + }, + display_name: { + type: "string", + }, + strategy: { + type: "string", }, }, } as const; @@ -625,7 +688,7 @@ export const $property = { type: "string", }, name: { - type: "boolean", + type: "string", }, is_private: { type: "boolean", diff --git a/lib/api/services.gen.ts b/lib/api/services.gen.ts index dc92842..bcad4d6 100644 --- a/lib/api/services.gen.ts +++ b/lib/api/services.gen.ts @@ -29,6 +29,12 @@ import type { UpdateApplicationResponse, DeleteApplicationData, DeleteApplicationResponse, + GetApplicationConnectionsData, + GetApplicationConnectionsResponse, + EnableConnectionData, + EnableConnectionResponse, + RemoveConnectionData, + RemoveConnectionResponse, GetBusinessData, GetBusinessResponse, UpdateBusinessData, @@ -59,6 +65,14 @@ import type { GetConnectedAppTokenResponse, RevokeConnectedAppTokenData, RevokeConnectedAppTokenResponse, + GetConnectionsData, + GetConnectionsResponse, + CreateConnectionData, + CreateConnectionResponse, + GetConnectionData, + GetConnectionResponse, + UpdateConnectionData, + UpdateConnectionResponse, DeleteEnvironementFeatureFlagOverridesResponse, GetEnvironementFeatureFlagsResponse, DeleteEnvironementFeatureFlagOverrideData, @@ -522,6 +536,85 @@ export class Applications { }, }); } + + /** + * Get connections + * Gets all connections for an application. + * @param data The data for the request. + * @param data.applicationId The identifier/client ID for the application. + * @returns get_connections_response Application connections successfully retrieved. + * @throws ApiError + */ + public static getApplicationConnections( + data: GetApplicationConnectionsData, + ): CancelablePromise { + return __request(OpenAPI, { + method: "GET", + url: "/api/v1/applications/{application_id}/connections", + path: { + application_id: data.applicationId, + }, + errors: { + 400: "Bad request.", + 403: "Invalid credentials.", + 429: "Request was throttled.", + }, + }); + } + + /** + * Enable connection + * Enable an auth connection for an application. + * @param data The data for the request. + * @param data.applicationId The identifier/client ID for the application. + * @param data.connectionId The identifier for the connection. + * @returns unknown Connection successfully enabled. + * @throws ApiError + */ + public static enableConnection( + data: EnableConnectionData, + ): CancelablePromise { + return __request(OpenAPI, { + method: "POST", + url: "/api/v1/applications/{application_id}/connections/{connection_id}", + path: { + application_id: data.applicationId, + connection_id: data.connectionId, + }, + errors: { + 400: "Bad request.", + 403: "Invalid credentials.", + 429: "Request was throttled.", + }, + }); + } + + /** + * Remove connection + * Turn off an auth connection for an application + * @param data The data for the request. + * @param data.applicationId The identifier/client ID for the application. + * @param data.connectionId The identifier for the connection. + * @returns success_response Connection successfully removed. + * @throws ApiError + */ + public static removeConnection( + data: RemoveConnectionData, + ): CancelablePromise { + return __request(OpenAPI, { + method: "DELETE", + url: "/api/v1/applications/{application_id}/connections/{connection_id}", + path: { + application_id: data.applicationId, + connection_id: data.connectionId, + }, + errors: { + 400: "Invalid request.", + 403: "Invalid credentials.", + 429: "Request was throttled.", + }, + }); + } } export class Business { @@ -978,6 +1071,115 @@ export class ConnectedApps { } } +export class Connections { + /** + * List Connections + * Returns a list of Connections + * + * @param data The data for the request. + * @param data.pageSize Number of results per page. Defaults to 10 if parameter not sent. + * @param data.startingAfter The ID of the connection to start after. + * @param data.endingBefore The ID of the connection to end before. + * @returns get_connections_response Connections successfully retrieved. + * @throws ApiError + */ + public static getConnections( + data: GetConnectionsData = {}, + ): CancelablePromise { + return __request(OpenAPI, { + method: "GET", + url: "/api/v1/connections", + query: { + page_size: data.pageSize, + starting_after: data.startingAfter, + ending_before: data.endingBefore, + }, + errors: { + 400: "Invalid request.", + 403: "Invalid credentials.", + 429: "Request was throttled.", + }, + }); + } + + /** + * Create Connection + * Create Connection. + * @param data The data for the request. + * @param data.requestBody Connection details. + * @returns create_connection_response Connection successfully created + * @throws ApiError + */ + public static createConnection( + data: CreateConnectionData, + ): CancelablePromise { + return __request(OpenAPI, { + method: "POST", + url: "/api/v1/connections", + body: data.requestBody, + mediaType: "application/json", + errors: { + 400: "Invalid request.", + 403: "Invalid credentials.", + 429: "Request was throttled.", + }, + }); + } + + /** + * Get Connection + * Get Connection. + * @param data The data for the request. + * @param data.connectionId The unique identifier for the connection. + * @returns connection Connection successfully retrieved. + * @throws ApiError + */ + public static getConnection( + data: GetConnectionData, + ): CancelablePromise { + return __request(OpenAPI, { + method: "GET", + url: "/api/v1/connections/{connection_id}", + path: { + connection_id: data.connectionId, + }, + errors: { + 400: "Invalid request.", + 403: "Invalid credentials.", + 429: "Request was throttled.", + }, + }); + } + + /** + * Update Connection + * Update Connection. + * @param data The data for the request. + * @param data.connectionId The unique identifier for the connection. + * @param data.requestBody The fields of the connection to update. + * @returns success_response Connection successfully updated. + * @throws ApiError + */ + public static updateConnection( + data: UpdateConnectionData, + ): CancelablePromise { + return __request(OpenAPI, { + method: "PATCH", + url: "/api/v1/connections/{connection_id}", + path: { + connection_id: data.connectionId, + }, + body: data.requestBody, + mediaType: "application/json", + errors: { + 400: "Invalid request.", + 403: "Invalid credentials.", + 429: "Request was throttled.", + }, + }); + } +} + export class Environments { /** * Delete Environment Feature Flag Overrides diff --git a/lib/api/types.gen.ts b/lib/api/types.gen.ts index 55647db..c1f3900 100644 --- a/lib/api/types.gen.ts +++ b/lib/api/types.gen.ts @@ -334,6 +334,33 @@ export type get_categories_response = { has_more?: boolean; }; +export type create_connection_response = { + message?: string; + code?: string; + connection?: { + /** + * The connection's ID. + */ + id?: string; + }; +}; + +export type get_connections_response = { + /** + * Response code. + */ + code?: string; + /** + * Response message. + */ + message?: string; + connections?: Array; + /** + * Whether more records exist. + */ + has_more?: boolean; +}; + export type token_introspect = { /** * Indicates the status of the token. @@ -425,13 +452,20 @@ export type organization_user = { export type category = { id?: string; - name?: boolean; + name?: string; +}; + +export type connection = { + id?: string; + name?: string; + display_name?: string; + strategy?: string; }; export type property = { id?: string; key?: string; - name?: boolean; + name?: string; is_private?: boolean; description?: string; is_kinde_property?: boolean; @@ -1099,6 +1133,41 @@ export type DeleteApplicationData = { export type DeleteApplicationResponse = success_response; +export type GetApplicationConnectionsData = { + /** + * The identifier/client ID for the application. + */ + applicationId: string; +}; + +export type GetApplicationConnectionsResponse = get_connections_response; + +export type EnableConnectionData = { + /** + * The identifier/client ID for the application. + */ + applicationId: string; + /** + * The identifier for the connection. + */ + connectionId: string; +}; + +export type EnableConnectionResponse = unknown; + +export type RemoveConnectionData = { + /** + * The identifier/client ID for the application. + */ + applicationId: string; + /** + * The identifier for the connection. + */ + connectionId: string; +}; + +export type RemoveConnectionResponse = success_response; + export type GetBusinessData = { /** * Business code. @@ -1362,6 +1431,114 @@ export type RevokeConnectedAppTokenData = { export type RevokeConnectedAppTokenResponse = success_response; +export type GetConnectionsData = { + /** + * The ID of the connection to end before. + */ + endingBefore?: string | null; + /** + * Number of results per page. Defaults to 10 if parameter not sent. + */ + pageSize?: number | null; + /** + * The ID of the connection to start after. + */ + startingAfter?: string | null; +}; + +export type GetConnectionsResponse = get_connections_response; + +export type CreateConnectionData = { + /** + * Connection details. + */ + requestBody: { + /** + * The internal name of the connection. + */ + name: string; + /** + * The public facing name of the connection. + */ + display_name: string; + /** + * The identity provider identifier for the connection. + */ + strategy: + | "oauth2:apple" + | "oauth2:azure_ad" + | "oauth2:bitbucket" + | "oauth2:discord" + | "oauth2:facebook" + | "oauth2:github" + | "oauth2:gitlab" + | "oauth2:google" + | "oauth2:linkedin" + | "oauth2:microsoft" + | "oauth2:patreon" + | "oauth2:slack" + | "oauth2:stripe" + | "oauth2:twitch" + | "oauth2:twitter" + | "oauth2:xero" + | "saml:custom" + | "wsfed:azure_ad"; + /** + * Client IDs of applications in which this connection is to be enabled. + */ + enabled_applications?: Array; + /** + * The connection's options (varies by strategy). + */ + options?: { + [key: string]: unknown; + }; + }; +}; + +export type CreateConnectionResponse = create_connection_response; + +export type GetConnectionData = { + /** + * The unique identifier for the connection. + */ + connectionId: string; +}; + +export type GetConnectionResponse = connection; + +export type UpdateConnectionData = { + /** + * The unique identifier for the connection. + */ + connectionId: string; + /** + * The fields of the connection to update. + */ + requestBody: { + /** + * The internal name of the connection. + */ + name?: string; + /** + * The public facing name of the connection. + */ + display_name?: string; + /** + * Client IDs of applications in which this connection is to be enabled. + */ + enabled_applications?: Array; + /** + * The connection's options (varies by strategy). + */ + options?: { + [key: string]: unknown; + }; + }; +}; + +export type UpdateConnectionResponse = success_response; + export type DeleteEnvironementFeatureFlagOverridesResponse = success_response; export type GetEnvironementFeatureFlagsResponse = @@ -2099,7 +2276,7 @@ export type UpdatePropertyData = { /** * The name of the property. */ - name?: string; + name: string; /** * Description of the property purpose. */ @@ -2107,7 +2284,11 @@ export type UpdatePropertyData = { /** * Whether the property can be included in id and access tokens. */ - is_private?: boolean; + is_private: boolean; + /** + * Which category the property belongs to. + */ + category_id: string; }; }; @@ -3020,6 +3201,96 @@ export type $OpenApiTs = { }; }; }; + "/api/v1/applications/{application_id}/connections": { + get: { + req: { + /** + * The identifier/client ID for the application. + */ + applicationId: string; + }; + res: { + /** + * Application connections successfully retrieved. + */ + 200: get_connections_response; + /** + * Bad request. + */ + 400: error_response; + /** + * Invalid credentials. + */ + 403: unknown; + /** + * Request was throttled. + */ + 429: unknown; + }; + }; + }; + "/api/v1/applications/{application_id}/connections/{connection_id}": { + post: { + req: { + /** + * The identifier/client ID for the application. + */ + applicationId: string; + /** + * The identifier for the connection. + */ + connectionId: string; + }; + res: { + /** + * Connection successfully enabled. + */ + 200: unknown; + /** + * Bad request. + */ + 400: error_response; + /** + * Invalid credentials. + */ + 403: unknown; + /** + * Request was throttled. + */ + 429: unknown; + }; + }; + delete: { + req: { + /** + * The identifier/client ID for the application. + */ + applicationId: string; + /** + * The identifier for the connection. + */ + connectionId: string; + }; + res: { + /** + * Connection successfully removed. + */ + 200: success_response; + /** + * Invalid request. + */ + 400: error_response; + /** + * Invalid credentials. + */ + 403: error_response; + /** + * Request was throttled. + */ + 429: unknown; + }; + }; + }; "/api/v1/business": { get: { req: { @@ -3550,6 +3821,186 @@ export type $OpenApiTs = { }; }; }; + "/api/v1/connections": { + get: { + req: { + /** + * The ID of the connection to end before. + */ + endingBefore?: string | null; + /** + * Number of results per page. Defaults to 10 if parameter not sent. + */ + pageSize?: number | null; + /** + * The ID of the connection to start after. + */ + startingAfter?: string | null; + }; + res: { + /** + * Connections successfully retrieved. + */ + 200: get_connections_response; + /** + * Invalid request. + */ + 400: error_response; + /** + * Invalid credentials. + */ + 403: error_response; + /** + * Request was throttled. + */ + 429: unknown; + }; + }; + post: { + req: { + /** + * Connection details. + */ + requestBody: { + /** + * The internal name of the connection. + */ + name: string; + /** + * The public facing name of the connection. + */ + display_name: string; + /** + * The identity provider identifier for the connection. + */ + strategy: + | "oauth2:apple" + | "oauth2:azure_ad" + | "oauth2:bitbucket" + | "oauth2:discord" + | "oauth2:facebook" + | "oauth2:github" + | "oauth2:gitlab" + | "oauth2:google" + | "oauth2:linkedin" + | "oauth2:microsoft" + | "oauth2:patreon" + | "oauth2:slack" + | "oauth2:stripe" + | "oauth2:twitch" + | "oauth2:twitter" + | "oauth2:xero" + | "saml:custom" + | "wsfed:azure_ad"; + /** + * Client IDs of applications in which this connection is to be enabled. + */ + enabled_applications?: Array; + /** + * The connection's options (varies by strategy). + */ + options?: { + [key: string]: unknown; + }; + }; + }; + res: { + /** + * Connection successfully created + */ + 201: create_connection_response; + /** + * Invalid request. + */ + 400: error_response; + /** + * Invalid credentials. + */ + 403: unknown; + /** + * Request was throttled. + */ + 429: unknown; + }; + }; + }; + "/api/v1/connections/{connection_id}": { + get: { + req: { + /** + * The unique identifier for the connection. + */ + connectionId: string; + }; + res: { + /** + * Connection successfully retrieved. + */ + 200: connection; + /** + * Invalid request. + */ + 400: error_response; + /** + * Invalid credentials. + */ + 403: unknown; + /** + * Request was throttled. + */ + 429: unknown; + }; + }; + patch: { + req: { + /** + * The unique identifier for the connection. + */ + connectionId: string; + /** + * The fields of the connection to update. + */ + requestBody: { + /** + * The internal name of the connection. + */ + name?: string; + /** + * The public facing name of the connection. + */ + display_name?: string; + /** + * Client IDs of applications in which this connection is to be enabled. + */ + enabled_applications?: Array; + /** + * The connection's options (varies by strategy). + */ + options?: { + [key: string]: unknown; + }; + }; + }; + res: { + /** + * Connection successfully updated. + */ + 200: success_response; + /** + * Invalid request. + */ + 400: error_response; + /** + * Invalid credentials. + */ + 403: unknown; + /** + * Request was throttled. + */ + 429: unknown; + }; + }; + }; "/api/v1/environment/feature_flags": { delete: { res: { @@ -4922,7 +5373,7 @@ export type $OpenApiTs = { /** * The name of the property. */ - name?: string; + name: string; /** * Description of the property purpose. */ @@ -4930,7 +5381,11 @@ export type $OpenApiTs = { /** * Whether the property can be included in id and access tokens. */ - is_private?: boolean; + is_private: boolean; + /** + * Which category the property belongs to. + */ + category_id: string; }; }; res: { diff --git a/spec/kinde-mgmt-api-specs.yaml b/spec/kinde-mgmt-api-specs.yaml index ff6e6b8..f2ab37f 100644 --- a/spec/kinde-mgmt-api-specs.yaml +++ b/spec/kinde-mgmt-api-specs.yaml @@ -3,11 +3,11 @@ info: version: '1' title: Kinde Management API description: Provides endpoints to manage your Kinde Businesses - termsOfService: https://kinde.com/docs/important-information/terms-of-service/ + termsOfService: https://docs.kinde.com/trust-center/agreements/terms-of-service/ contact: name: Kinde Support Team email: support@kinde.com - url: https://kinde.com/docs/ + url: https://docs.kinde.com servers: - url: https://{businessName}.kinde.com variables: @@ -31,6 +31,8 @@ tags: x-displayName: Callbacks - name: Connected Apps x-displayName: Connected Apps + - name: Connections + x-displayName: Connections - name: Environments x-displayName: Environments - name: Feature Flags @@ -674,6 +676,132 @@ paths: description: Request was throttled. security: - kindeBearerAuth: [] + /api/v1/applications/{application_id}/connections: + get: + tags: + - Applications + operationId: GetApplicationConnections + description: Gets all connections for an application. + summary: Get connections + parameters: + - name: application_id + in: path + description: The identifier/client ID for the application. + required: true + schema: + type: string + nullable: false + responses: + '200': + description: Application connections successfully retrieved. + content: + application/json: + schema: + $ref: '#/components/schemas/get_connections_response' + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/get_connections_response' + '400': + description: Bad request. + content: + application/json: + schema: + $ref: '#/components/schemas/error_response' + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/error_response' + '403': + description: Invalid credentials. + '429': + description: Request was throttled. + security: + - kindeBearerAuth: [] + /api/v1/applications/{application_id}/connections/{connection_id}: + post: + tags: + - Applications + operationId: EnableConnection + description: Enable an auth connection for an application. + summary: Enable connection + parameters: + - name: application_id + in: path + description: The identifier/client ID for the application. + required: true + schema: + type: string + - name: connection_id + in: path + description: The identifier for the connection. + required: true + schema: + type: string + responses: + '200': + description: Connection successfully enabled. + '400': + description: Bad request. + content: + application/json: + schema: + $ref: '#/components/schemas/error_response' + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/error_response' + '403': + description: Invalid credentials. + '429': + description: Request was throttled. + security: + - kindeBearerAuth: [] + delete: + tags: + - Applications + operationId: RemoveConnection + description: Turn off an auth connection for an application + summary: Remove connection + parameters: + - name: application_id + in: path + description: The identifier/client ID for the application. + required: true + schema: + type: string + - name: connection_id + in: path + description: The identifier for the connection. + required: true + schema: + type: string + responses: + '200': + description: Connection successfully removed. + content: + application/json: + schema: + $ref: '#/components/schemas/success_response' + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/success_response' + '400': + description: Invalid request. + content: + application/json: + schema: + $ref: '#/components/schemas/error_response' + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/error_response' + '403': + description: Invalid credentials. + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/error_response' + '429': + description: Request was throttled. + security: + - kindeBearerAuth: [] /api/v1/business: get: tags: @@ -1465,6 +1593,252 @@ paths: description: Request was throttled. security: - kindeBearerAuth: [] + /api/v1/connections: + get: + tags: + - Connections + operationId: GetConnections + description: | + Returns a list of Connections + summary: List Connections + parameters: + - name: page_size + in: query + description: Number of results per page. Defaults to 10 if parameter not sent. + schema: + type: integer + nullable: true + - name: starting_after + in: query + description: The ID of the connection to start after. + schema: + type: string + nullable: true + - name: ending_before + in: query + description: The ID of the connection to end before. + schema: + type: string + nullable: true + responses: + '200': + description: Connections successfully retrieved. + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/get_connections_response' + application/json: + schema: + $ref: '#/components/schemas/get_connections_response' + '400': + description: Invalid request. + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/error_response' + application/json: + schema: + $ref: '#/components/schemas/error_response' + '403': + description: Invalid credentials. + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/error_response' + application/json: + schema: + $ref: '#/components/schemas/error_response' + '429': + description: Request was throttled. + security: + - kindeBearerAuth: [] + post: + tags: + - Connections + operationId: CreateConnection + description: Create Connection. + summary: Create Connection + requestBody: + description: Connection details. + required: true + content: + application/json: + schema: + type: object + properties: + name: + description: The internal name of the connection. + type: string + nullable: false + display_name: + description: The public facing name of the connection. + type: string + nullable: false + strategy: + description: The identity provider identifier for the connection. + type: string + enum: + - oauth2:apple + - oauth2:azure_ad + - oauth2:bitbucket + - oauth2:discord + - oauth2:facebook + - oauth2:github + - oauth2:gitlab + - oauth2:google + - oauth2:linkedin + - oauth2:microsoft + - oauth2:patreon + - oauth2:slack + - oauth2:stripe + - oauth2:twitch + - oauth2:twitter + - oauth2:xero + - saml:custom + - wsfed:azure_ad + nullable: false + enabled_applications: + description: >- + Client IDs of applications in which this connection is to be + enabled. + type: array + items: + type: string + options: + description: The connection's options (varies by strategy). + type: object + required: + - name + - display_name + - strategy + responses: + '201': + description: Connection successfully created + content: + application/json: + schema: + $ref: '#/components/schemas/create_connection_response' + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/create_connection_response' + '400': + description: Invalid request. + content: + application/json: + schema: + $ref: '#/components/schemas/error_response' + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/error_response' + '403': + description: Invalid credentials. + '429': + description: Request was throttled. + security: + - kindeBearerAuth: [] + /api/v1/connections/{connection_id}: + get: + tags: + - Connections + operationId: GetConnection + description: Get Connection. + summary: Get Connection + parameters: + - name: connection_id + in: path + description: The unique identifier for the connection. + required: true + schema: + type: string + responses: + '200': + description: Connection successfully retrieved. + content: + application/json: + schema: + $ref: '#/components/schemas/connection' + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/connection' + '400': + description: Invalid request. + content: + application/json: + schema: + $ref: '#/components/schemas/error_response' + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/error_response' + '403': + description: Invalid credentials. + '429': + description: Request was throttled. + security: + - kindeBearerAuth: [] + patch: + tags: + - Connections + operationId: UpdateConnection + description: Update Connection. + summary: Update Connection + parameters: + - name: connection_id + in: path + description: The unique identifier for the connection. + required: true + schema: + type: string + requestBody: + description: The fields of the connection to update. + required: true + content: + application/json: + schema: + type: object + properties: + name: + description: The internal name of the connection. + type: string + nullable: false + display_name: + description: The public facing name of the connection. + type: string + nullable: false + enabled_applications: + description: >- + Client IDs of applications in which this connection is to be + enabled. + type: array + items: + type: string + options: + description: The connection's options (varies by strategy). + type: object + responses: + '200': + description: Connection successfully updated. + content: + application/json: + schema: + $ref: '#/components/schemas/success_response' + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/success_response' + '400': + description: Invalid request. + content: + application/json: + schema: + $ref: '#/components/schemas/error_response' + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/error_response' + '403': + description: Invalid credentials. + '429': + description: Request was throttled. + security: + - kindeBearerAuth: [] /api/v1/environment/feature_flags: delete: tags: @@ -3408,6 +3782,14 @@ paths: description: >- Whether the property can be included in id and access tokens. + category_id: + description: Which category the property belongs to. + type: string + nullable: false + required: + - name + - is_private + - category_id responses: '200': description: Property successfully updated. @@ -5079,6 +5461,35 @@ components: has_more: description: Whether more records exist. type: boolean + create_connection_response: + type: object + properties: + message: + type: string + code: + type: string + connection: + type: object + properties: + id: + description: The connection's ID. + type: string + get_connections_response: + type: object + properties: + code: + type: string + description: Response code. + message: + type: string + description: Response message. + connections: + type: array + items: + $ref: '#/components/schemas/connection' + has_more: + description: Whether more records exist. + type: boolean token_introspect: type: object properties: @@ -5175,7 +5586,18 @@ components: id: type: string name: - type: boolean + type: string + connection: + type: object + properties: + id: + type: string + name: + type: string + display_name: + type: string + strategy: + type: string property: type: object properties: @@ -5184,7 +5606,7 @@ components: key: type: string name: - type: boolean + type: string is_private: type: boolean description: @@ -5751,6 +6173,9 @@ x-tagGroups: - name: Callbacks API tags: - Callbacks + - name: Connections API + tags: + - Connections - name: Environment API tags: - Environments @@ -5777,4 +6202,4 @@ x-tagGroups: - Subscribers - name: Users API tags: - - Users + - Users \ No newline at end of file