Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Apr 1, 2024
1 parent 426f2d7 commit ca7a1ae
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 34 deletions.
49 changes: 26 additions & 23 deletions src/resources/zero-trust/access/applications/applications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ export namespace ZeroTrustApps {
/**
* Allowed HTTP request headers.
*/
allowed_headers?: Array<unknown>;
allowed_headers?: Array<string>;

/**
* Allowed HTTP request methods.
Expand All @@ -438,7 +438,7 @@ export namespace ZeroTrustApps {
/**
* Allowed origins.
*/
allowed_origins?: Array<unknown>;
allowed_origins?: Array<string>;

/**
* The maximum number of seconds the results of a preflight request can be cached.
Expand Down Expand Up @@ -824,7 +824,7 @@ export namespace ZeroTrustApps {
/**
* Allowed HTTP request headers.
*/
allowed_headers?: Array<unknown>;
allowed_headers?: Array<string>;

/**
* Allowed HTTP request methods.
Expand All @@ -836,7 +836,7 @@ export namespace ZeroTrustApps {
/**
* Allowed origins.
*/
allowed_origins?: Array<unknown>;
allowed_origins?: Array<string>;

/**
* The maximum number of seconds the results of a preflight request can be cached.
Expand Down Expand Up @@ -1010,7 +1010,7 @@ export namespace ZeroTrustApps {
/**
* Allowed HTTP request headers.
*/
allowed_headers?: Array<unknown>;
allowed_headers?: Array<string>;

/**
* Allowed HTTP request methods.
Expand All @@ -1022,7 +1022,7 @@ export namespace ZeroTrustApps {
/**
* Allowed origins.
*/
allowed_origins?: Array<unknown>;
allowed_origins?: Array<string>;

/**
* The maximum number of seconds the results of a preflight request can be cached.
Expand Down Expand Up @@ -1190,7 +1190,10 @@ export namespace ZeroTrustApps {
*/
id?: string;

app_launcher_visible?: unknown;
/**
* Displays the application in the App Launcher.
*/
app_launcher_visible?: boolean;

/**
* Audience tag.
Expand Down Expand Up @@ -1418,7 +1421,7 @@ export namespace ApplicationCreateParams {
/**
* Allowed HTTP request headers.
*/
allowed_headers?: Array<unknown>;
allowed_headers?: Array<string>;

/**
* Allowed HTTP request methods.
Expand All @@ -1430,7 +1433,7 @@ export namespace ApplicationCreateParams {
/**
* Allowed origins.
*/
allowed_origins?: Array<unknown>;
allowed_origins?: Array<string>;

/**
* The maximum number of seconds the results of a preflight request can be cached.
Expand Down Expand Up @@ -1816,7 +1819,7 @@ export namespace ApplicationCreateParams {
/**
* Allowed HTTP request headers.
*/
allowed_headers?: Array<unknown>;
allowed_headers?: Array<string>;

/**
* Allowed HTTP request methods.
Expand All @@ -1828,7 +1831,7 @@ export namespace ApplicationCreateParams {
/**
* Allowed origins.
*/
allowed_origins?: Array<unknown>;
allowed_origins?: Array<string>;

/**
* The maximum number of seconds the results of a preflight request can be cached.
Expand Down Expand Up @@ -2006,7 +2009,7 @@ export namespace ApplicationCreateParams {
/**
* Allowed HTTP request headers.
*/
allowed_headers?: Array<unknown>;
allowed_headers?: Array<string>;

/**
* Allowed HTTP request methods.
Expand All @@ -2018,7 +2021,7 @@ export namespace ApplicationCreateParams {
/**
* Allowed origins.
*/
allowed_origins?: Array<unknown>;
allowed_origins?: Array<string>;

/**
* The maximum number of seconds the results of a preflight request can be cached.
Expand Down Expand Up @@ -2155,9 +2158,9 @@ export namespace ApplicationCreateParams {
zone_id?: string;

/**
* Body param:
* Body param: Displays the application in the App Launcher.
*/
app_launcher_visible?: unknown;
app_launcher_visible?: boolean;

/**
* Body param: The URL or domain of the bookmark.
Expand Down Expand Up @@ -2367,7 +2370,7 @@ export namespace ApplicationUpdateParams {
/**
* Allowed HTTP request headers.
*/
allowed_headers?: Array<unknown>;
allowed_headers?: Array<string>;

/**
* Allowed HTTP request methods.
Expand All @@ -2379,7 +2382,7 @@ export namespace ApplicationUpdateParams {
/**
* Allowed origins.
*/
allowed_origins?: Array<unknown>;
allowed_origins?: Array<string>;

/**
* The maximum number of seconds the results of a preflight request can be cached.
Expand Down Expand Up @@ -2765,7 +2768,7 @@ export namespace ApplicationUpdateParams {
/**
* Allowed HTTP request headers.
*/
allowed_headers?: Array<unknown>;
allowed_headers?: Array<string>;

/**
* Allowed HTTP request methods.
Expand All @@ -2777,7 +2780,7 @@ export namespace ApplicationUpdateParams {
/**
* Allowed origins.
*/
allowed_origins?: Array<unknown>;
allowed_origins?: Array<string>;

/**
* The maximum number of seconds the results of a preflight request can be cached.
Expand Down Expand Up @@ -2955,7 +2958,7 @@ export namespace ApplicationUpdateParams {
/**
* Allowed HTTP request headers.
*/
allowed_headers?: Array<unknown>;
allowed_headers?: Array<string>;

/**
* Allowed HTTP request methods.
Expand All @@ -2967,7 +2970,7 @@ export namespace ApplicationUpdateParams {
/**
* Allowed origins.
*/
allowed_origins?: Array<unknown>;
allowed_origins?: Array<string>;

/**
* The maximum number of seconds the results of a preflight request can be cached.
Expand Down Expand Up @@ -3104,9 +3107,9 @@ export namespace ApplicationUpdateParams {
zone_id?: string;

/**
* Body param:
* Body param: Displays the application in the App Launcher.
*/
app_launcher_visible?: unknown;
app_launcher_visible?: boolean;

/**
* Body param: The URL or domain of the bookmark.
Expand Down
6 changes: 3 additions & 3 deletions src/resources/zero-trust/access/applications/policies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ export namespace ZeroTrustPolicies {
/**
* A list of emails that can approve the access request.
*/
email_addresses?: Array<unknown>;
email_addresses?: Array<string>;

/**
* The UUID of an re-usable email list.
Expand Down Expand Up @@ -1796,7 +1796,7 @@ export namespace PolicyCreateParams {
/**
* A list of emails that can approve the access request.
*/
email_addresses?: Array<unknown>;
email_addresses?: Array<string>;

/**
* The UUID of an re-usable email list.
Expand Down Expand Up @@ -2908,7 +2908,7 @@ export namespace PolicyUpdateParams {
/**
* A list of emails that can approve the access request.
*/
email_addresses?: Array<unknown>;
email_addresses?: Array<string>;

/**
* The UUID of an re-usable email list.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/zero-trust/access/bookmarks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export interface ZeroTrustBookmarks {
/**
* The unique identifier for the Bookmark application.
*/
id?: unknown;
id?: string;

/**
* Displays the application in the App Launcher.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ export interface ZeroTrustCertificates {
/**
* The ID of the application that will use this certificate.
*/
id?: unknown;
id?: string;

/**
* The hostnames of the applications that will use this certificate.
Expand Down
4 changes: 2 additions & 2 deletions src/resources/zero-trust/access/service-tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ export interface ServiceTokenCreateResponse {
/**
* The ID of the service token.
*/
id?: unknown;
id?: string;

/**
* The Client ID for the service token. Access will check for this value in the
Expand Down Expand Up @@ -261,7 +261,7 @@ export interface ServiceTokenRotateResponse {
/**
* The ID of the service token.
*/
id?: unknown;
id?: string;

/**
* The Client ID for the service token. Access will check for this value in the
Expand Down
4 changes: 2 additions & 2 deletions src/resources/zero-trust/access/users/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ export interface ZeroTrustUsers {
/**
* The unique API identifier for the Zero Trust seat.
*/
seat_uid?: unknown;
seat_uid?: string;

/**
* The unique API identifier for the user.
*/
uid?: unknown;
uid?: string;

updated_at?: string;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ describe('resource applications', () => {
allow_all_methods: true,
allow_all_origins: true,
allow_credentials: true,
allowed_headers: [{}, {}, {}],
allowed_headers: ['string', 'string', 'string'],
allowed_methods: ['GET'],
allowed_origins: ['https://example.com'],
max_age: -1,
Expand Down Expand Up @@ -109,7 +109,7 @@ describe('resource applications', () => {
allow_all_methods: true,
allow_all_origins: true,
allow_credentials: true,
allowed_headers: [{}, {}, {}],
allowed_headers: ['string', 'string', 'string'],
allowed_methods: ['GET'],
allowed_origins: ['https://example.com'],
max_age: -1,
Expand Down

0 comments on commit ca7a1ae

Please sign in to comment.