diff --git a/src/api.ts b/src/api.ts index f4c56b3..c852e5c 100644 --- a/src/api.ts +++ b/src/api.ts @@ -232,10 +232,10 @@ export interface ApplicationUpdateResponse { 'redirect_uri'?: string | null; /** * - * @type {AuthStrategy} + * @type {PortalAuthStrategy} * @memberof ApplicationUpdateResponse */ - 'auth_strategy'?: AuthStrategy; + 'auth_strategy'?: PortalAuthStrategy; /** * An ISO-8601 timestamp representation of entity creation date. * @type {string} @@ -792,8 +792,9 @@ export type DocumentContentTypeEnum = typeof DocumentContentTypeEnum[keyof typeo */ export const DocumentFormatContentTypeEnum = { - Json: 'application/json', - VndKonnectDocumentNodesjson: 'application/vnd.konnect.document-nodes+json' + TextMarkdown: 'text/markdown', + ApplicationJson: 'application/json', + ApplicationVndKonnectDocumentNodesjson: 'application/vnd.konnect.document-nodes+json' } as const; export type DocumentFormatContentTypeEnum = typeof DocumentFormatContentTypeEnum[keyof typeof DocumentFormatContentTypeEnum]; @@ -1868,6 +1869,89 @@ export interface PortalAppearanceVariablesCatalogPrimaryHeader { */ 'text'?: string; } +/** + * @type PortalAuthStrategy + * @export + */ +export type PortalAuthStrategy = PortalAuthStrategyClientCredentials | PortalAuthStrategyKeyAuth; + +/** + * Client Credential Auth strategy that the application uses. + * @export + * @interface PortalAuthStrategyClientCredentials + */ +export interface PortalAuthStrategyClientCredentials { + /** + * The Application Auth Strategy ID. + * @type {string} + * @memberof PortalAuthStrategyClientCredentials + */ + 'id': string; + /** + * + * @type {string} + * @memberof PortalAuthStrategyClientCredentials + */ + 'name': string; + /** + * + * @type {string} + * @memberof PortalAuthStrategyClientCredentials + */ + 'credential_type': PortalAuthStrategyClientCredentialsCredentialTypeEnum; + /** + * + * @type {Array} + * @memberof PortalAuthStrategyClientCredentials + */ + 'auth_methods': Array; +} + +export const PortalAuthStrategyClientCredentialsCredentialTypeEnum = { + ClientCredentials: 'client_credentials', + SelfManagedClientCredentials: 'self_managed_client_credentials' +} as const; + +export type PortalAuthStrategyClientCredentialsCredentialTypeEnum = typeof PortalAuthStrategyClientCredentialsCredentialTypeEnum[keyof typeof PortalAuthStrategyClientCredentialsCredentialTypeEnum]; + +/** + * KeyAuth Auth strategy that the application uses. + * @export + * @interface PortalAuthStrategyKeyAuth + */ +export interface PortalAuthStrategyKeyAuth { + /** + * The Application Auth Strategy ID. + * @type {string} + * @memberof PortalAuthStrategyKeyAuth + */ + 'id': string; + /** + * + * @type {string} + * @memberof PortalAuthStrategyKeyAuth + */ + 'name': string; + /** + * + * @type {string} + * @memberof PortalAuthStrategyKeyAuth + */ + 'credential_type': PortalAuthStrategyKeyAuthCredentialTypeEnum; + /** + * + * @type {Array} + * @memberof PortalAuthStrategyKeyAuth + */ + 'key_names': Array; +} + +export const PortalAuthStrategyKeyAuthCredentialTypeEnum = { + KeyAuth: 'key_auth' +} as const; + +export type PortalAuthStrategyKeyAuthCredentialTypeEnum = typeof PortalAuthStrategyKeyAuthCredentialTypeEnum[keyof typeof PortalAuthStrategyKeyAuthCredentialTypeEnum]; + /** * describe the portal execution context * @export