Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions src/management/__generated/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,16 @@ export const AssessorsTypeEnum = {
} as const;
export type AssessorsTypeEnum = (typeof AssessorsTypeEnum)[keyof typeof AssessorsTypeEnum];

/**
*
*/
export const AsyncApprovalNotificationsChannelsEnum = {
guardian_push: 'guardian-push',
email: 'email',
} as const;
export type AsyncApprovalNotificationsChannelsEnum =
(typeof AsyncApprovalNotificationsChannelsEnum)[keyof typeof AsyncApprovalNotificationsChannelsEnum];

/**
*
*/
Expand Down Expand Up @@ -652,6 +662,11 @@ export interface Client {
*
*/
skip_non_verifiable_callback_uri_confirmation_prompt?: boolean;
/**
* Array of notification channels for contacting the user when their approval is required. Valid values are `guardian-push`, `email`.
*
*/
async_approval_notification_channels?: Array<AsyncApprovalNotificationsChannelsEnum>;
}

export const ClientAppTypeEnum = {
Expand Down Expand Up @@ -1598,6 +1613,11 @@ export interface ClientCreate {
*
*/
skip_non_verifiable_callback_uri_confirmation_prompt?: boolean;
/**
* Array of notification channels for contacting the user when their approval is required. Valid values are `guardian-push`, `email`.
*
*/
async_approval_notification_channels?: Array<AsyncApprovalNotificationsChannelsEnum>;
}

export const ClientCreateTokenEndpointAuthMethodEnum = {
Expand Down Expand Up @@ -3206,6 +3226,11 @@ export interface ClientUpdate {
*
*/
skip_non_verifiable_callback_uri_confirmation_prompt?: boolean;
/**
* Array of notification channels for contacting the user when their approval is required. Valid values are `guardian-push`, `email`.
*
*/
async_approval_notification_channels?: Array<AsyncApprovalNotificationsChannelsEnum>;
}

export const ClientUpdateTokenEndpointAuthMethodEnum = {
Expand Down
18 changes: 18 additions & 0 deletions test/management/client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ describe('ClientsManager', () => {
enforce: true,
},
},
async_approval_notification_channels: ['guardian-push', 'email'],
},
];

Expand Down Expand Up @@ -132,6 +133,9 @@ describe('ClientsManager', () => {
expect(clients.data[0].logo_uri).toBe(response[0].logo_uri);
expect(clients.data[0].token_quota).toStrictEqual(response[0].token_quota);
expect(clients.data[0].refresh_token).toBe(response[0].refresh_token);
expect(clients.data[0].async_approval_notification_channels).toStrictEqual(
response[0].async_approval_notification_channels
);
done();
});
});
Expand Down Expand Up @@ -199,6 +203,7 @@ describe('ClientsManager', () => {
},
},
resource_server_identifier: 'https://test-token-vault-1.example.com',
async_approval_notification_channels: ['guardian-push', 'email'],
};
const response: Partial<Client> = {
tenant: 'test_tenant',
Expand All @@ -216,6 +221,7 @@ describe('ClientsManager', () => {
enforce: true,
},
},
async_approval_notification_channels: ['guardian-push', 'email'],
};
let request: nock.Scope;

Expand Down Expand Up @@ -274,6 +280,9 @@ describe('ClientsManager', () => {
expect(client.data.app_type).toBe(response.app_type);
expect(client.data.logo_uri).toBe(response.logo_uri);
expect(client.data.token_quota).toStrictEqual(response.token_quota);
expect(client.data.async_approval_notification_channels).toStrictEqual(
response.async_approval_notification_channels
);
done();
});
});
Expand All @@ -296,6 +305,7 @@ describe('ClientsManager', () => {
enforce: true,
},
},
async_approval_notification_channels: ['guardian-push', 'email'],
};
let request: nock.Scope;

Expand Down Expand Up @@ -329,6 +339,9 @@ describe('ClientsManager', () => {
expect(client.data.logo_uri).toBe(response.logo_uri);
expect(client.data.token_quota).toStrictEqual(response.token_quota);
expect(client.data.refresh_token).toBe(response.refresh_token);
expect(client.data.async_approval_notification_channels).toStrictEqual(
response.async_approval_notification_channels
);

done();
});
Expand All @@ -348,6 +361,7 @@ describe('ClientsManager', () => {
enforce: true,
},
},
async_approval_notification_channels: ['email'],
};
const response: Partial<Client> = {
tenant: 'test_tenant',
Expand All @@ -365,6 +379,7 @@ describe('ClientsManager', () => {
enforce: true,
},
},
async_approval_notification_channels: ['email'],
};

let request: nock.Scope;
Expand Down Expand Up @@ -412,6 +427,9 @@ describe('ClientsManager', () => {
expect(client.data.logo_uri).toBe(response.logo_uri);
expect(client.data.token_quota).toStrictEqual(response.token_quota);
expect(client.data.refresh_token).toBe(response.refresh_token);
expect(client.data.async_approval_notification_channels).toStrictEqual(
response.async_approval_notification_channels
);

done();
});
Expand Down