@@ -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
22242232export const ClientGrantOrganizationUsageEnum = {
@@ -2229,6 +2237,13 @@ export const ClientGrantOrganizationUsageEnum = {
22292237export 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
22632286export const ClientGrantCreateOrganizationUsageEnum = {
@@ -2268,6 +2291,13 @@ export const ClientGrantCreateOrganizationUsageEnum = {
22682291export 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 */
@@ -10244,6 +10274,11 @@ export interface PatchClientGrantsByIdRequest {
1024410274 *
1024510275 */
1024610276 allow_any_organization?: boolean | null;
10277+ /**
10278+ * Types of authorization_details allowed for this client grant.
10279+ *
10280+ */
10281+ authorization_details_types?: Array<string>;
1024710282}
1024810283
1024910284export const PatchClientGrantsByIdRequestOrganizationUsageEnum = {
@@ -16436,6 +16471,9 @@ export interface ResourceServer {
1643616471 /**
1643716472 */
1643816473 proof_of_possession: ResourceServerProofOfPossession | null;
16474+ /**
16475+ */
16476+ subject_type_authorization?: ResourceServerSubjectTypeAuthorization;
1643916477}
1644016478
1644116479export const ResourceServerSigningAlgEnum = {
@@ -16531,6 +16569,9 @@ export interface ResourceServerCreate {
1653116569 /**
1653216570 */
1653316571 proof_of_possession?: ResourceServerProofOfPossession | null;
16572+ /**
16573+ */
16574+ subject_type_authorization?: ResourceServerSubjectTypeAuthorization;
1653416575}
1653516576
1653616577export const ResourceServerCreateSigningAlgEnum = {
@@ -16580,6 +16621,56 @@ export const ResourceServerProofOfPossessionMechanismEnum = {
1658016621export type ResourceServerProofOfPossessionMechanismEnum =
1658116622 (typeof ResourceServerProofOfPossessionMechanismEnum)[keyof typeof ResourceServerProofOfPossessionMechanismEnum];
1658216623
16624+ /**
16625+ * Defines application permission access for a resource server
16626+ */
16627+ export interface ResourceServerSubjectTypeAuthorization {
16628+ /**
16629+ */
16630+ user?: ResourceServerSubjectTypeAuthorizationUser;
16631+ /**
16632+ */
16633+ client?: ResourceServerSubjectTypeAuthorizationClient;
16634+ }
16635+ /**
16636+ * Access Permissions for client-initiated flows
16637+ */
16638+ export interface ResourceServerSubjectTypeAuthorizationClient {
16639+ [key: string]: any | any;
16640+ /**
16641+ * Defines the client flows policy for the resource server
16642+ *
16643+ */
16644+ policy?: ResourceServerSubjectTypeAuthorizationClientPolicyEnum;
16645+ }
16646+
16647+ export const ResourceServerSubjectTypeAuthorizationClientPolicyEnum = {
16648+ deny_all: 'deny_all',
16649+ require_client_grant: 'require_client_grant',
16650+ } as const;
16651+ export type ResourceServerSubjectTypeAuthorizationClientPolicyEnum =
16652+ (typeof ResourceServerSubjectTypeAuthorizationClientPolicyEnum)[keyof typeof ResourceServerSubjectTypeAuthorizationClientPolicyEnum];
16653+
16654+ /**
16655+ * Access Permissions for user-initiated flows
16656+ */
16657+ export interface ResourceServerSubjectTypeAuthorizationUser {
16658+ [key: string]: any | any;
16659+ /**
16660+ * Defines the user flows policy for the resource server
16661+ *
16662+ */
16663+ policy?: ResourceServerSubjectTypeAuthorizationUserPolicyEnum;
16664+ }
16665+
16666+ export const ResourceServerSubjectTypeAuthorizationUserPolicyEnum = {
16667+ allow_all: 'allow_all',
16668+ deny_all: 'deny_all',
16669+ require_client_grant: 'require_client_grant',
16670+ } as const;
16671+ export type ResourceServerSubjectTypeAuthorizationUserPolicyEnum =
16672+ (typeof ResourceServerSubjectTypeAuthorizationUserPolicyEnum)[keyof typeof ResourceServerSubjectTypeAuthorizationUserPolicyEnum];
16673+
1658316674/**
1658416675 *
1658516676 */
@@ -16698,6 +16789,9 @@ export interface ResourceServerUpdate {
1669816789 /**
1669916790 */
1670016791 proof_of_possession?: ResourceServerProofOfPossession | null;
16792+ /**
16793+ */
16794+ subject_type_authorization?: ResourceServerSubjectTypeAuthorization;
1670116795}
1670216796
1670316797export const ResourceServerUpdateSigningAlgEnum = {
@@ -19148,6 +19242,26 @@ export interface DeleteClientGrantsByIdRequest {
1914819242 */
1914919243 id: string;
1915019244}
19245+
19246+ /**
19247+ *
19248+ */
19249+ export const GetClientGrantsAllowAnyOrganizationEnum = {
19250+ true: true,
19251+ } as const;
19252+ export type GetClientGrantsAllowAnyOrganizationEnum =
19253+ (typeof GetClientGrantsAllowAnyOrganizationEnum)[keyof typeof GetClientGrantsAllowAnyOrganizationEnum];
19254+
19255+ /**
19256+ *
19257+ */
19258+ export const GetClientGrantsSubjectTypeEnum = {
19259+ client: 'client',
19260+ user: 'user',
19261+ } as const;
19262+ export type GetClientGrantsSubjectTypeEnum =
19263+ (typeof GetClientGrantsSubjectTypeEnum)[keyof typeof GetClientGrantsSubjectTypeEnum];
19264+
1915119265/**
1915219266 *
1915319267 */
@@ -19167,6 +19281,16 @@ export interface GetClientGrantsRequest {
1916719281 *
1916819282 */
1916919283 include_totals?: boolean;
19284+ /**
19285+ * Optional Id from which to start selection.
19286+ *
19287+ */
19288+ from?: string;
19289+ /**
19290+ * Number of results per page. Defaults to 50.
19291+ *
19292+ */
19293+ take?: number;
1917019294 /**
1917119295 * Optional filter on audience.
1917219296 *
@@ -19177,6 +19301,16 @@ export interface GetClientGrantsRequest {
1917719301 *
1917819302 */
1917919303 client_id?: string;
19304+ /**
19305+ * Optional filter on allow_any_organization.
19306+ *
19307+ */
19308+ allow_any_organization?: GetClientGrantsAllowAnyOrganizationEnum;
19309+ /**
19310+ * The subject type for this grant.
19311+ *
19312+ */
19313+ subject_type?: GetClientGrantsSubjectTypeEnum;
1918019314}
1918119315/**
1918219316 *
0 commit comments