Skip to content
Merged
47 changes: 44 additions & 3 deletions src/management/__generated/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -1066,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`, or `regular_web`.
* The type of application this client represents
*
*/
app_type?: ClientCreateAppTypeEnum;
Expand Down Expand Up @@ -1190,6 +1219,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 = {
Expand All @@ -1205,6 +1239,7 @@ export const ClientCreateAppTypeEnum = {
spa: 'spa',
regular_web: 'regular_web',
non_interactive: 'non_interactive',
resource_server: 'resource_server',
rms: 'rms',
box: 'box',
cloudbees: 'cloudbees',
Expand Down Expand Up @@ -2791,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',
Expand Down Expand Up @@ -16580,6 +16616,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 = {
Expand Down
3 changes: 2 additions & 1 deletion test/management/client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -198,6 +198,7 @@ describe('ClientsManager', () => {
enforce: true,
},
},
resource_server_identifier: 'https://test-token-vault-1.example.com',
};
const response: Partial<Client> = {
tenant: 'test_tenant',
Expand Down