From ca7a1ae11c1151d15a0b669c010581c9f2046290 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 1 Apr 2024 16:59:00 +0000 Subject: [PATCH] feat(api): OpenAPI spec update via Stainless API (#220) --- .../access/applications/applications.ts | 49 ++++++++++--------- .../access/applications/policies.ts | 6 +-- src/resources/zero-trust/access/bookmarks.ts | 2 +- .../access/certificates/certificates.ts | 2 +- .../zero-trust/access/service-tokens.ts | 4 +- .../zero-trust/access/users/users.ts | 4 +- .../access/applications/applications.test.ts | 4 +- 7 files changed, 37 insertions(+), 34 deletions(-) diff --git a/src/resources/zero-trust/access/applications/applications.ts b/src/resources/zero-trust/access/applications/applications.ts index a12d07f0ee..dd8ea9d325 100644 --- a/src/resources/zero-trust/access/applications/applications.ts +++ b/src/resources/zero-trust/access/applications/applications.ts @@ -426,7 +426,7 @@ export namespace ZeroTrustApps { /** * Allowed HTTP request headers. */ - allowed_headers?: Array; + allowed_headers?: Array; /** * Allowed HTTP request methods. @@ -438,7 +438,7 @@ export namespace ZeroTrustApps { /** * Allowed origins. */ - allowed_origins?: Array; + allowed_origins?: Array; /** * The maximum number of seconds the results of a preflight request can be cached. @@ -824,7 +824,7 @@ export namespace ZeroTrustApps { /** * Allowed HTTP request headers. */ - allowed_headers?: Array; + allowed_headers?: Array; /** * Allowed HTTP request methods. @@ -836,7 +836,7 @@ export namespace ZeroTrustApps { /** * Allowed origins. */ - allowed_origins?: Array; + allowed_origins?: Array; /** * The maximum number of seconds the results of a preflight request can be cached. @@ -1010,7 +1010,7 @@ export namespace ZeroTrustApps { /** * Allowed HTTP request headers. */ - allowed_headers?: Array; + allowed_headers?: Array; /** * Allowed HTTP request methods. @@ -1022,7 +1022,7 @@ export namespace ZeroTrustApps { /** * Allowed origins. */ - allowed_origins?: Array; + allowed_origins?: Array; /** * The maximum number of seconds the results of a preflight request can be cached. @@ -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. @@ -1418,7 +1421,7 @@ export namespace ApplicationCreateParams { /** * Allowed HTTP request headers. */ - allowed_headers?: Array; + allowed_headers?: Array; /** * Allowed HTTP request methods. @@ -1430,7 +1433,7 @@ export namespace ApplicationCreateParams { /** * Allowed origins. */ - allowed_origins?: Array; + allowed_origins?: Array; /** * The maximum number of seconds the results of a preflight request can be cached. @@ -1816,7 +1819,7 @@ export namespace ApplicationCreateParams { /** * Allowed HTTP request headers. */ - allowed_headers?: Array; + allowed_headers?: Array; /** * Allowed HTTP request methods. @@ -1828,7 +1831,7 @@ export namespace ApplicationCreateParams { /** * Allowed origins. */ - allowed_origins?: Array; + allowed_origins?: Array; /** * The maximum number of seconds the results of a preflight request can be cached. @@ -2006,7 +2009,7 @@ export namespace ApplicationCreateParams { /** * Allowed HTTP request headers. */ - allowed_headers?: Array; + allowed_headers?: Array; /** * Allowed HTTP request methods. @@ -2018,7 +2021,7 @@ export namespace ApplicationCreateParams { /** * Allowed origins. */ - allowed_origins?: Array; + allowed_origins?: Array; /** * The maximum number of seconds the results of a preflight request can be cached. @@ -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. @@ -2367,7 +2370,7 @@ export namespace ApplicationUpdateParams { /** * Allowed HTTP request headers. */ - allowed_headers?: Array; + allowed_headers?: Array; /** * Allowed HTTP request methods. @@ -2379,7 +2382,7 @@ export namespace ApplicationUpdateParams { /** * Allowed origins. */ - allowed_origins?: Array; + allowed_origins?: Array; /** * The maximum number of seconds the results of a preflight request can be cached. @@ -2765,7 +2768,7 @@ export namespace ApplicationUpdateParams { /** * Allowed HTTP request headers. */ - allowed_headers?: Array; + allowed_headers?: Array; /** * Allowed HTTP request methods. @@ -2777,7 +2780,7 @@ export namespace ApplicationUpdateParams { /** * Allowed origins. */ - allowed_origins?: Array; + allowed_origins?: Array; /** * The maximum number of seconds the results of a preflight request can be cached. @@ -2955,7 +2958,7 @@ export namespace ApplicationUpdateParams { /** * Allowed HTTP request headers. */ - allowed_headers?: Array; + allowed_headers?: Array; /** * Allowed HTTP request methods. @@ -2967,7 +2970,7 @@ export namespace ApplicationUpdateParams { /** * Allowed origins. */ - allowed_origins?: Array; + allowed_origins?: Array; /** * The maximum number of seconds the results of a preflight request can be cached. @@ -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. diff --git a/src/resources/zero-trust/access/applications/policies.ts b/src/resources/zero-trust/access/applications/policies.ts index 501a7a0648..c3636a7da5 100644 --- a/src/resources/zero-trust/access/applications/policies.ts +++ b/src/resources/zero-trust/access/applications/policies.ts @@ -362,7 +362,7 @@ export namespace ZeroTrustPolicies { /** * A list of emails that can approve the access request. */ - email_addresses?: Array; + email_addresses?: Array; /** * The UUID of an re-usable email list. @@ -1796,7 +1796,7 @@ export namespace PolicyCreateParams { /** * A list of emails that can approve the access request. */ - email_addresses?: Array; + email_addresses?: Array; /** * The UUID of an re-usable email list. @@ -2908,7 +2908,7 @@ export namespace PolicyUpdateParams { /** * A list of emails that can approve the access request. */ - email_addresses?: Array; + email_addresses?: Array; /** * The UUID of an re-usable email list. diff --git a/src/resources/zero-trust/access/bookmarks.ts b/src/resources/zero-trust/access/bookmarks.ts index dfd9d5d5be..4974f69c36 100644 --- a/src/resources/zero-trust/access/bookmarks.ts +++ b/src/resources/zero-trust/access/bookmarks.ts @@ -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. diff --git a/src/resources/zero-trust/access/certificates/certificates.ts b/src/resources/zero-trust/access/certificates/certificates.ts index 047e9735e0..a0c67cf30b 100644 --- a/src/resources/zero-trust/access/certificates/certificates.ts +++ b/src/resources/zero-trust/access/certificates/certificates.ts @@ -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. diff --git a/src/resources/zero-trust/access/service-tokens.ts b/src/resources/zero-trust/access/service-tokens.ts index 163c86a6d4..a9402e0eb2 100644 --- a/src/resources/zero-trust/access/service-tokens.ts +++ b/src/resources/zero-trust/access/service-tokens.ts @@ -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 @@ -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 diff --git a/src/resources/zero-trust/access/users/users.ts b/src/resources/zero-trust/access/users/users.ts index e8bce87d28..b480323d7a 100644 --- a/src/resources/zero-trust/access/users/users.ts +++ b/src/resources/zero-trust/access/users/users.ts @@ -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; } diff --git a/tests/api-resources/zero-trust/access/applications/applications.test.ts b/tests/api-resources/zero-trust/access/applications/applications.test.ts index 51a4f62aaa..a1d57cead5 100644 --- a/tests/api-resources/zero-trust/access/applications/applications.test.ts +++ b/tests/api-resources/zero-trust/access/applications/applications.test.ts @@ -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, @@ -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,