Skip to content

Commit

Permalink
chore: build SDK from openapi.yaml changes
Browse files Browse the repository at this point in the history
  • Loading branch information
team-devx-bot committed Feb 15, 2024
1 parent cabfea8 commit df93c3e
Showing 1 changed file with 138 additions and 21 deletions.
159 changes: 138 additions & 21 deletions src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,11 @@ export interface ApplicationCreationResponse {
*/
'credentials'?: ApplicationCreationResponseCredentials;
/**
* ID of the auth strategy to use for the application. If null or not included, the default application auth strategy will be used.
* @type {string}
*
* @type {AuthStrategy}
* @memberof ApplicationCreationResponse
*/
'auth_strategy_id': string | null;
'auth_strategy': AuthStrategy;
/**
* An ISO-8601 timestamp representation of entity creation date.
* @type {string}
Expand Down Expand Up @@ -231,11 +231,11 @@ export interface ApplicationUpdateResponse {
*/
'redirect_uri'?: string | null;
/**
* ID of the auth strategy to use for the application. If null or not included, the default application auth strategy will be used.
* @type {string}
*
* @type {AuthStrategy}
* @memberof ApplicationUpdateResponse
*/
'auth_strategy_id'?: string | null;
'auth_strategy'?: AuthStrategy;
/**
* An ISO-8601 timestamp representation of entity creation date.
* @type {string}
Expand All @@ -249,6 +249,132 @@ export interface ApplicationUpdateResponse {
*/
'updated_at': string;
}
/**
*
* @export
* @interface AuthStrategy
*/
export interface AuthStrategy {
/**
* The Application Auth Strategy ID.
* @type {string}
* @memberof AuthStrategy
*/
'id': string;
/**
*
* @type {string}
* @memberof AuthStrategy
*/
'name': string;
/**
*
* @type {string}
* @memberof AuthStrategy
*/
'credential_type': AuthStrategyCredentialTypeEnum;
/**
*
* @type {Array<string>}
* @memberof AuthStrategy
*/
'auth_methods': Array<string>;
}

export const AuthStrategyCredentialTypeEnum = {
ClientCredentials: 'client_credentials',
SelfManagedClientCredentials: 'self_managed_client_credentials'
} as const;

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

/**
* Properties common to all Application Auth Strategies
* @export
* @interface AuthStrategyBase
*/
export interface AuthStrategyBase {
/**
* The Application Auth Strategy ID.
* @type {string}
* @memberof AuthStrategyBase
*/
'id': string;
/**
*
* @type {string}
* @memberof AuthStrategyBase
*/
'name': string;
/**
*
* @type {CredentialType}
* @memberof AuthStrategyBase
*/
'credential_type': CredentialType;
}
/**
* Client Credential Auth strategy that the application uses.
* @export
* @interface AuthStrategyClientCredentials
*/
export interface AuthStrategyClientCredentials {
/**
*
* @type {string}
* @memberof AuthStrategyClientCredentials
*/
'credential_type': AuthStrategyClientCredentialsCredentialTypeEnum;
/**
*
* @type {Array<string>}
* @memberof AuthStrategyClientCredentials
*/
'auth_methods': Array<string>;
}

export const AuthStrategyClientCredentialsCredentialTypeEnum = {
ClientCredentials: 'client_credentials',
SelfManagedClientCredentials: 'self_managed_client_credentials'
} as const;

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

/**
*
* @export
* @enum {string}
*/

export const AuthStrategyCredentialType = {
ClientCredentials: 'client_credentials',
SelfManagedClientCredentials: 'self_managed_client_credentials',
KeyAuth: 'key_auth'
} as const;

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


/**
* KeyAuth Auth strategy that the application uses.
* @export
* @interface AuthStrategyKeyAuth
*/
export interface AuthStrategyKeyAuth {
/**
*
* @type {string}
* @memberof AuthStrategyKeyAuth
*/
'credential_type': AuthStrategyKeyAuthCredentialTypeEnum;
}

export const AuthStrategyKeyAuthCredentialTypeEnum = {
KeyAuth: 'key_auth'
} as const;

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

/**
* The request schema for the authenticate endpoint.
* @export
Expand Down Expand Up @@ -596,7 +722,7 @@ export interface CredentialCreationResponse {
'display_name': string;
}
/**
*
* type of the application auth strategy
* @export
* @enum {string}
*/
Expand Down Expand Up @@ -901,11 +1027,11 @@ export interface GetApplicationResponse {
*/
'redirect_uri'?: string | null;
/**
* ID of the auth strategy to use for the application. If null or not included, the default application auth strategy will be used.
* @type {string}
*
* @type {AuthStrategy}
* @memberof GetApplicationResponse
*/
'auth_strategy_id'?: string | null;
'auth_strategy'?: AuthStrategy;
/**
* An ISO-8601 timestamp representation of entity creation date.
* @type {string}
Expand Down Expand Up @@ -1327,26 +1453,17 @@ export interface ListAuthStrategiesItem {
'name': string;
/**
*
* @type {string}
* @type {AuthStrategyCredentialType}
* @memberof ListAuthStrategiesItem
*/
'credential_type': ListAuthStrategiesItemCredentialTypeEnum;
'credential_type': AuthStrategyCredentialType;
/**
*
* @type {Array<string>}
* @memberof ListAuthStrategiesItem
*/
'auth_methods'?: Array<string>;
}

export const ListAuthStrategiesItemCredentialTypeEnum = {
ClientCredentials: 'client_credentials',
SelfManagedClientCredentials: 'self_managed_client_credentials',
KeyAuth: 'key_auth'
} as const;

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

/**
*
* @export
Expand Down

0 comments on commit df93c3e

Please sign in to comment.