Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#363)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Apr 22, 2024
1 parent 2024ee4 commit 72ce33c
Showing 1 changed file with 126 additions and 0 deletions.
126 changes: 126 additions & 0 deletions src/resources/zero-trust/access/applications/applications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,8 @@ export namespace Application {

created_at?: string;

custom_claims?: AccessOIDCSaasApp.CustomClaims;

/**
* The OIDC flows supported by this application
*/
Expand Down Expand Up @@ -545,6 +547,41 @@ export namespace Application {

updated_at?: string;
}

export namespace AccessOIDCSaasApp {
export interface CustomClaims {
/**
* The name of the claim.
*/
name?: string;

/**
* A mapping from IdP ID to claim name.
*/
name_by_idp?: Record<string, string>;

/**
* If the claim is required when building an OIDC token.
*/
required?: boolean;

/**
* The scope of the claim.
*/
scope?: 'groups' | 'profile' | 'email' | 'openid';

source?: CustomClaims.Source;
}

export namespace CustomClaims {
export interface Source {
/**
* The name of the IdP claim.
*/
name?: string;
}
}
}
}

export interface BrowserSSHApplication {
Expand Down Expand Up @@ -1104,6 +1141,11 @@ export interface SaasAppSource {
* The name of the IdP attribute.
*/
name?: string;

/**
* A mapping from IdP ID to attribute name.
*/
name_by_idp?: Record<string, string>;
}

export interface SAMLSaasApp {
Expand Down Expand Up @@ -1176,6 +1218,11 @@ export interface SAMLSaasApp {

export namespace SAMLSaasApp {
export interface CustomAttributes {
/**
* The SAML FriendlyName of the attribute.
*/
friendly_name?: string;

/**
* The name of the attribute.
*/
Expand All @@ -1186,6 +1233,11 @@ export namespace SAMLSaasApp {
*/
name_format?: ApplicationsAPI.SaasAppNameFormat;

/**
* If the attribute is required when building a SAML assertion.
*/
required?: boolean;

source?: ApplicationsAPI.SaasAppSource;
}
}
Expand Down Expand Up @@ -1450,6 +1502,8 @@ export namespace ApplicationCreateParams {
*/
client_secret?: string;

custom_claims?: AccessOIDCSaasApp.CustomClaims;

/**
* The OIDC flows supported by this application
*/
Expand All @@ -1476,6 +1530,41 @@ export namespace ApplicationCreateParams {
*/
scopes?: Array<'openid' | 'groups' | 'email' | 'profile'>;
}

export namespace AccessOIDCSaasApp {
export interface CustomClaims {
/**
* The name of the claim.
*/
name?: string;

/**
* A mapping from IdP ID to claim name.
*/
name_by_idp?: Record<string, string>;

/**
* If the claim is required when building an OIDC token.
*/
required?: boolean;

/**
* The scope of the claim.
*/
scope?: 'groups' | 'profile' | 'email' | 'openid';

source?: CustomClaims.Source;
}

export namespace CustomClaims {
export interface Source {
/**
* The name of the IdP claim.
*/
name?: string;
}
}
}
}

export interface BrowserSSHApplication {
Expand Down Expand Up @@ -2182,6 +2271,8 @@ export namespace ApplicationUpdateParams {
*/
client_secret?: string;

custom_claims?: AccessOIDCSaasApp.CustomClaims;

/**
* The OIDC flows supported by this application
*/
Expand All @@ -2208,6 +2299,41 @@ export namespace ApplicationUpdateParams {
*/
scopes?: Array<'openid' | 'groups' | 'email' | 'profile'>;
}

export namespace AccessOIDCSaasApp {
export interface CustomClaims {
/**
* The name of the claim.
*/
name?: string;

/**
* A mapping from IdP ID to claim name.
*/
name_by_idp?: Record<string, string>;

/**
* If the claim is required when building an OIDC token.
*/
required?: boolean;

/**
* The scope of the claim.
*/
scope?: 'groups' | 'profile' | 'email' | 'openid';

source?: CustomClaims.Source;
}

export namespace CustomClaims {
export interface Source {
/**
* The name of the IdP claim.
*/
name?: string;
}
}
}
}

export interface BrowserSSHApplication {
Expand Down

0 comments on commit 72ce33c

Please sign in to comment.