From 46e5ce677c566e9bcc4c5c1efb015027c73179a7 Mon Sep 17 00:00:00 2001 From: tanya732 Date: Fri, 22 Aug 2025 09:37:13 +0530 Subject: [PATCH 1/4] Feat: Support for Token Vault --- src/management/__generated/models/index.ts | 29 +++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/src/management/__generated/models/index.ts b/src/management/__generated/models/index.ts index a8c29926c7..014d7e5214 100644 --- a/src/management/__generated/models/index.ts +++ b/src/management/__generated/models/index.ts @@ -1066,7 +1066,7 @@ export interface ClientCreate { */ token_endpoint_auth_method?: ClientCreateTokenEndpointAuthMethodEnum; /** - * Type of client used to determine which settings are applicable. Can be `spa`, `native`, `non_interactive`, or `regular_web`. + * Type of client used to determine which settings are applicable. Can be `spa`, `native`, `non_interactive`, `regular_web` or `resource_server`. * */ app_type?: ClientCreateAppTypeEnum; @@ -1190,6 +1190,11 @@ export interface ClientCreate { /** */ token_quota?: CreateTokenQuota; + /** + * The identifier of the resource server that this client is linked to. + * + */ + resource_server_identifier?: string; } export const ClientCreateTokenEndpointAuthMethodEnum = { @@ -1205,6 +1210,7 @@ export const ClientCreateAppTypeEnum = { spa: 'spa', regular_web: 'regular_web', non_interactive: 'non_interactive', + resource_server: 'resource_server', rms: 'rms', box: 'box', cloudbees: 'cloudbees', @@ -3439,6 +3445,9 @@ export interface ConnectionCreateOptions { /** */ gateway_authentication?: ConnectionCreateOptionsGatewayAuthentication | null; + /** + */ + federated_connections_access_tokens?: ConnectionCreateOptionsFederatedConnectionsAccessTokens | null; } export const ConnectionCreateOptionsPasswordPolicyEnum = { @@ -3514,6 +3523,16 @@ export interface ConnectionCreateOptionsCustomScripts { */ create?: string; } +/** + * Federated Connections Access Tokens + */ +export interface ConnectionCreateOptionsFederatedConnectionsAccessTokens { + /** + * Enables refresh tokens and access tokens collection for federated connections + * + */ + active?: boolean; +} /** * Token-based authentication settings to be applied when connection is using an sms strategy. */ @@ -3813,6 +3832,9 @@ export interface ConnectionUpdateOptions { /** */ gateway_authentication?: ConnectionCreateOptionsGatewayAuthentication | null; + /** + */ + federated_connections_access_tokens?: ConnectionCreateOptionsFederatedConnectionsAccessTokens | null; } export const ConnectionUpdateOptionsPasswordPolicyEnum = { @@ -16479,6 +16501,11 @@ export interface ResourceServer { /** */ subject_type_authorization?: ResourceServerSubjectTypeAuthorization; + /** + * The client ID of the client that this resource server is linked to + * + */ + client_id?: string; } export const ResourceServerSigningAlgEnum = { From 9ad036bf70a3a6e83f8921ae77a74c7e3c07d083 Mon Sep 17 00:00:00 2001 From: tanya732 Date: Fri, 5 Sep 2025 11:23:28 +0530 Subject: [PATCH 2/4] Added modified changes --- src/management/__generated/models/index.ts | 50 ++++++++++++++-------- 1 file changed, 32 insertions(+), 18 deletions(-) diff --git a/src/management/__generated/models/index.ts b/src/management/__generated/models/index.ts index 77572c1860..68783e5464 100644 --- a/src/management/__generated/models/index.ts +++ b/src/management/__generated/models/index.ts @@ -110,10 +110,10 @@ export interface Client { */ client_secret: string; /** - * Type of client used to determine which settings are applicable. Can be `spa`, `native`, `non_interactive`, or `regular_web`. + * The type of application this client represents * */ - app_type: string; + app_type: ClientAppTypeEnum; /** * URL of the logo to display for this client. Recommended size is 150x150 pixels. * @@ -292,6 +292,35 @@ export interface Client { token_quota: TokenQuota; } +export const ClientAppTypeEnum = { + native: 'native', + spa: 'spa', + regular_web: 'regular_web', + non_interactive: 'non_interactive', + resource_server: 'resource_server', + express_configuration: 'express_configuration', + rms: 'rms', + box: 'box', + cloudbees: 'cloudbees', + concur: 'concur', + dropbox: 'dropbox', + mscrm: 'mscrm', + echosign: 'echosign', + egnyte: 'egnyte', + newrelic: 'newrelic', + office365: 'office365', + salesforce: 'salesforce', + sentry: 'sentry', + sharepoint: 'sharepoint', + slack: 'slack', + springcm: 'springcm', + zendesk: 'zendesk', + zoom: 'zoom', + sso_integration: 'sso_integration', + oag: 'oag', +} as const; +export type ClientAppTypeEnum = (typeof ClientAppTypeEnum)[keyof typeof ClientAppTypeEnum]; + export const ClientTokenEndpointAuthMethodEnum = { none: 'none', client_secret_post: 'client_secret_post', @@ -2797,6 +2826,7 @@ export const ClientUpdateAppTypeEnum = { spa: 'spa', regular_web: 'regular_web', non_interactive: 'non_interactive', + resource_server: 'resource_server', rms: 'rms', box: 'box', cloudbees: 'cloudbees', @@ -3445,9 +3475,6 @@ export interface ConnectionCreateOptions { /** */ gateway_authentication?: ConnectionCreateOptionsGatewayAuthentication | null; - /** - */ - federated_connections_access_tokens?: ConnectionCreateOptionsFederatedConnectionsAccessTokens | null; } export const ConnectionCreateOptionsPasswordPolicyEnum = { @@ -3523,16 +3550,6 @@ export interface ConnectionCreateOptionsCustomScripts { */ create?: string; } -/** - * Federated Connections Access Tokens - */ -export interface ConnectionCreateOptionsFederatedConnectionsAccessTokens { - /** - * Enables refresh tokens and access tokens collection for federated connections - * - */ - active?: boolean; -} /** * Token-based authentication settings to be applied when connection is using an sms strategy. */ @@ -3832,9 +3849,6 @@ export interface ConnectionUpdateOptions { /** */ gateway_authentication?: ConnectionCreateOptionsGatewayAuthentication | null; - /** - */ - federated_connections_access_tokens?: ConnectionCreateOptionsFederatedConnectionsAccessTokens | null; } export const ConnectionUpdateOptionsPasswordPolicyEnum = { From a7f745ee6800fa888ac20ade22d348ff2af4f3f1 Mon Sep 17 00:00:00 2001 From: tanya732 Date: Fri, 5 Sep 2025 21:24:51 +0530 Subject: [PATCH 3/4] Updated description --- src/management/__generated/models/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/management/__generated/models/index.ts b/src/management/__generated/models/index.ts index 68783e5464..69214a2ed9 100644 --- a/src/management/__generated/models/index.ts +++ b/src/management/__generated/models/index.ts @@ -1095,7 +1095,7 @@ export interface ClientCreate { */ token_endpoint_auth_method?: ClientCreateTokenEndpointAuthMethodEnum; /** - * Type of client used to determine which settings are applicable. Can be `spa`, `native`, `non_interactive`, `regular_web` or `resource_server`. + * The type of application this client represents * */ app_type?: ClientCreateAppTypeEnum; From 941cc56dee7a134a5e5b0542aac24c5bd28e59b4 Mon Sep 17 00:00:00 2001 From: tanya732 Date: Wed, 10 Sep 2025 11:55:54 +0530 Subject: [PATCH 4/4] Added tests --- test/management/client.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/management/client.test.ts b/test/management/client.test.ts index f4de9620c1..3fe64002d0 100644 --- a/test/management/client.test.ts +++ b/test/management/client.test.ts @@ -189,7 +189,7 @@ describe('ClientsManager', () => { const data: ClientCreate = { name: 'test_name', description: 'test_description', - app_type: 'spa', + app_type: 'resource_server', logo_uri: 'test_logo_uri', token_quota: { client_credentials: { @@ -198,6 +198,7 @@ describe('ClientsManager', () => { enforce: true, }, }, + resource_server_identifier: 'https://test-token-vault-1.example.com', }; const response: Partial = { tenant: 'test_tenant',