Skip to content

Commit 5302ac9

Browse files
committed
Feat: Added Support for Application Access Permission
1 parent 757a04e commit 5302ac9

2 files changed

Lines changed: 109 additions & 0 deletions

File tree

src/management/__generated/managers/client-grants-manager.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ export class ClientGrantsManager extends BaseAPI {
8383
key: 'client_id',
8484
config: {},
8585
},
86+
{
87+
key: 'subject_type',
88+
config: {},
89+
},
8690
]);
8791

8892
const response = await this.request(

src/management/__generated/models/index.ts

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2219,6 +2219,14 @@ export interface ClientGrant {
22192219
*
22202220
*/
22212221
allow_any_organization: boolean;
2222+
/**
2223+
*/
2224+
subject_type?: ClientGrantSubjectTypeEnum;
2225+
/**
2226+
* Types of authorization_details allowed for this client grant.
2227+
*
2228+
*/
2229+
authorization_details_types?: Array<string>;
22222230
}
22232231

22242232
export const ClientGrantOrganizationUsageEnum = {
@@ -2229,6 +2237,13 @@ export const ClientGrantOrganizationUsageEnum = {
22292237
export type ClientGrantOrganizationUsageEnum =
22302238
(typeof ClientGrantOrganizationUsageEnum)[keyof typeof ClientGrantOrganizationUsageEnum];
22312239

2240+
export const ClientGrantSubjectTypeEnum = {
2241+
client: 'client',
2242+
user: 'user',
2243+
} as const;
2244+
export type ClientGrantSubjectTypeEnum =
2245+
(typeof ClientGrantSubjectTypeEnum)[keyof typeof ClientGrantSubjectTypeEnum];
2246+
22322247
/**
22332248
*
22342249
*/
@@ -2258,6 +2273,14 @@ export interface ClientGrantCreate {
22582273
*
22592274
*/
22602275
scope: Array<string>;
2276+
/**
2277+
*/
2278+
subject_type?: ClientGrantCreateSubjectTypeEnum;
2279+
/**
2280+
* Types of authorization_details allowed for this client grant.
2281+
*
2282+
*/
2283+
authorization_details_types?: Array<string>;
22612284
}
22622285

22632286
export const ClientGrantCreateOrganizationUsageEnum = {
@@ -2268,6 +2291,13 @@ export const ClientGrantCreateOrganizationUsageEnum = {
22682291
export type ClientGrantCreateOrganizationUsageEnum =
22692292
(typeof ClientGrantCreateOrganizationUsageEnum)[keyof typeof ClientGrantCreateOrganizationUsageEnum];
22702293

2294+
export const ClientGrantCreateSubjectTypeEnum = {
2295+
client: 'client',
2296+
user: 'user',
2297+
} as const;
2298+
export type ClientGrantCreateSubjectTypeEnum =
2299+
(typeof ClientGrantCreateSubjectTypeEnum)[keyof typeof ClientGrantCreateSubjectTypeEnum];
2300+
22712301
/**
22722302
* Configuration related to JWTs for the client.
22732303
*/
@@ -16436,6 +16466,9 @@ export interface ResourceServer {
1643616466
/**
1643716467
*/
1643816468
proof_of_possession: ResourceServerProofOfPossession | null;
16469+
/**
16470+
*/
16471+
subject_type_authorization?: ResourceServerSubjectTypeAuthorization;
1643916472
}
1644016473

1644116474
export const ResourceServerSigningAlgEnum = {
@@ -16531,6 +16564,9 @@ export interface ResourceServerCreate {
1653116564
/**
1653216565
*/
1653316566
proof_of_possession?: ResourceServerProofOfPossession | null;
16567+
/**
16568+
*/
16569+
subject_type_authorization?: ResourceServerSubjectTypeAuthorization;
1653416570
}
1653516571

1653616572
export const ResourceServerCreateSigningAlgEnum = {
@@ -16580,6 +16616,56 @@ export const ResourceServerProofOfPossessionMechanismEnum = {
1658016616
export type ResourceServerProofOfPossessionMechanismEnum =
1658116617
(typeof ResourceServerProofOfPossessionMechanismEnum)[keyof typeof ResourceServerProofOfPossessionMechanismEnum];
1658216618

16619+
/**
16620+
* Defines application permission access for a resource server
16621+
*/
16622+
export interface ResourceServerSubjectTypeAuthorization {
16623+
/**
16624+
*/
16625+
user?: ResourceServerSubjectTypeAuthorizationUser;
16626+
/**
16627+
*/
16628+
client?: ResourceServerSubjectTypeAuthorizationClient;
16629+
}
16630+
/**
16631+
* Access Permissions for client-initiated flows
16632+
*/
16633+
export interface ResourceServerSubjectTypeAuthorizationClient {
16634+
[key: string]: any | any;
16635+
/**
16636+
* Defines the client flows policy for the resource server
16637+
*
16638+
*/
16639+
policy?: ResourceServerSubjectTypeAuthorizationClientPolicyEnum;
16640+
}
16641+
16642+
export const ResourceServerSubjectTypeAuthorizationClientPolicyEnum = {
16643+
deny_all: 'deny_all',
16644+
require_client_grant: 'require_client_grant',
16645+
} as const;
16646+
export type ResourceServerSubjectTypeAuthorizationClientPolicyEnum =
16647+
(typeof ResourceServerSubjectTypeAuthorizationClientPolicyEnum)[keyof typeof ResourceServerSubjectTypeAuthorizationClientPolicyEnum];
16648+
16649+
/**
16650+
* Access Permissions for user-initiated flows
16651+
*/
16652+
export interface ResourceServerSubjectTypeAuthorizationUser {
16653+
[key: string]: any | any;
16654+
/**
16655+
* Defines the user flows policy for the resource server
16656+
*
16657+
*/
16658+
policy?: ResourceServerSubjectTypeAuthorizationUserPolicyEnum;
16659+
}
16660+
16661+
export const ResourceServerSubjectTypeAuthorizationUserPolicyEnum = {
16662+
allow_all: 'allow_all',
16663+
deny_all: 'deny_all',
16664+
require_client_grant: 'require_client_grant',
16665+
} as const;
16666+
export type ResourceServerSubjectTypeAuthorizationUserPolicyEnum =
16667+
(typeof ResourceServerSubjectTypeAuthorizationUserPolicyEnum)[keyof typeof ResourceServerSubjectTypeAuthorizationUserPolicyEnum];
16668+
1658316669
/**
1658416670
*
1658516671
*/
@@ -16698,6 +16784,9 @@ export interface ResourceServerUpdate {
1669816784
/**
1669916785
*/
1670016786
proof_of_possession?: ResourceServerProofOfPossession | null;
16787+
/**
16788+
*/
16789+
subject_type_authorization?: ResourceServerSubjectTypeAuthorization;
1670116790
}
1670216791

1670316792
export const ResourceServerUpdateSigningAlgEnum = {
@@ -19148,6 +19237,17 @@ export interface DeleteClientGrantsByIdRequest {
1914819237
*/
1914919238
id: string;
1915019239
}
19240+
19241+
/**
19242+
*
19243+
*/
19244+
export const GetClientGrantsSubjectTypeEnum = {
19245+
client: 'client',
19246+
user: 'user',
19247+
} as const;
19248+
export type GetClientGrantsSubjectTypeEnum =
19249+
(typeof GetClientGrantsSubjectTypeEnum)[keyof typeof GetClientGrantsSubjectTypeEnum];
19250+
1915119251
/**
1915219252
*
1915319253
*/
@@ -19177,6 +19277,11 @@ export interface GetClientGrantsRequest {
1917719277
*
1917819278
*/
1917919279
client_id?: string;
19280+
/**
19281+
* The subject type for this grant.
19282+
*
19283+
*/
19284+
subject_type?: GetClientGrantsSubjectTypeEnum;
1918019285
}
1918119286
/**
1918219287
*

0 commit comments

Comments
 (0)