Skip to content

Commit 68e36c7

Browse files
feat(api): OpenAPI spec update via Stainless API (#220)
1 parent 0a3005b commit 68e36c7

File tree

7 files changed

+37
-34
lines changed

7 files changed

+37
-34
lines changed

src/resources/zero-trust/access/applications/applications.ts

Lines changed: 26 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ export namespace ZeroTrustApps {
426426
/**
427427
* Allowed HTTP request headers.
428428
*/
429-
allowed_headers?: Array<unknown>;
429+
allowed_headers?: Array<string>;
430430

431431
/**
432432
* Allowed HTTP request methods.
@@ -438,7 +438,7 @@ export namespace ZeroTrustApps {
438438
/**
439439
* Allowed origins.
440440
*/
441-
allowed_origins?: Array<unknown>;
441+
allowed_origins?: Array<string>;
442442

443443
/**
444444
* The maximum number of seconds the results of a preflight request can be cached.
@@ -824,7 +824,7 @@ export namespace ZeroTrustApps {
824824
/**
825825
* Allowed HTTP request headers.
826826
*/
827-
allowed_headers?: Array<unknown>;
827+
allowed_headers?: Array<string>;
828828

829829
/**
830830
* Allowed HTTP request methods.
@@ -836,7 +836,7 @@ export namespace ZeroTrustApps {
836836
/**
837837
* Allowed origins.
838838
*/
839-
allowed_origins?: Array<unknown>;
839+
allowed_origins?: Array<string>;
840840

841841
/**
842842
* The maximum number of seconds the results of a preflight request can be cached.
@@ -1010,7 +1010,7 @@ export namespace ZeroTrustApps {
10101010
/**
10111011
* Allowed HTTP request headers.
10121012
*/
1013-
allowed_headers?: Array<unknown>;
1013+
allowed_headers?: Array<string>;
10141014

10151015
/**
10161016
* Allowed HTTP request methods.
@@ -1022,7 +1022,7 @@ export namespace ZeroTrustApps {
10221022
/**
10231023
* Allowed origins.
10241024
*/
1025-
allowed_origins?: Array<unknown>;
1025+
allowed_origins?: Array<string>;
10261026

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

1193-
app_launcher_visible?: unknown;
1193+
/**
1194+
* Displays the application in the App Launcher.
1195+
*/
1196+
app_launcher_visible?: boolean;
11941197

11951198
/**
11961199
* Audience tag.
@@ -1418,7 +1421,7 @@ export namespace ApplicationCreateParams {
14181421
/**
14191422
* Allowed HTTP request headers.
14201423
*/
1421-
allowed_headers?: Array<unknown>;
1424+
allowed_headers?: Array<string>;
14221425

14231426
/**
14241427
* Allowed HTTP request methods.
@@ -1430,7 +1433,7 @@ export namespace ApplicationCreateParams {
14301433
/**
14311434
* Allowed origins.
14321435
*/
1433-
allowed_origins?: Array<unknown>;
1436+
allowed_origins?: Array<string>;
14341437

14351438
/**
14361439
* The maximum number of seconds the results of a preflight request can be cached.
@@ -1816,7 +1819,7 @@ export namespace ApplicationCreateParams {
18161819
/**
18171820
* Allowed HTTP request headers.
18181821
*/
1819-
allowed_headers?: Array<unknown>;
1822+
allowed_headers?: Array<string>;
18201823

18211824
/**
18221825
* Allowed HTTP request methods.
@@ -1828,7 +1831,7 @@ export namespace ApplicationCreateParams {
18281831
/**
18291832
* Allowed origins.
18301833
*/
1831-
allowed_origins?: Array<unknown>;
1834+
allowed_origins?: Array<string>;
18321835

18331836
/**
18341837
* The maximum number of seconds the results of a preflight request can be cached.
@@ -2006,7 +2009,7 @@ export namespace ApplicationCreateParams {
20062009
/**
20072010
* Allowed HTTP request headers.
20082011
*/
2009-
allowed_headers?: Array<unknown>;
2012+
allowed_headers?: Array<string>;
20102013

20112014
/**
20122015
* Allowed HTTP request methods.
@@ -2018,7 +2021,7 @@ export namespace ApplicationCreateParams {
20182021
/**
20192022
* Allowed origins.
20202023
*/
2021-
allowed_origins?: Array<unknown>;
2024+
allowed_origins?: Array<string>;
20222025

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

21572160
/**
2158-
* Body param:
2161+
* Body param: Displays the application in the App Launcher.
21592162
*/
2160-
app_launcher_visible?: unknown;
2163+
app_launcher_visible?: boolean;
21612164

21622165
/**
21632166
* Body param: The URL or domain of the bookmark.
@@ -2367,7 +2370,7 @@ export namespace ApplicationUpdateParams {
23672370
/**
23682371
* Allowed HTTP request headers.
23692372
*/
2370-
allowed_headers?: Array<unknown>;
2373+
allowed_headers?: Array<string>;
23712374

23722375
/**
23732376
* Allowed HTTP request methods.
@@ -2379,7 +2382,7 @@ export namespace ApplicationUpdateParams {
23792382
/**
23802383
* Allowed origins.
23812384
*/
2382-
allowed_origins?: Array<unknown>;
2385+
allowed_origins?: Array<string>;
23832386

23842387
/**
23852388
* The maximum number of seconds the results of a preflight request can be cached.
@@ -2765,7 +2768,7 @@ export namespace ApplicationUpdateParams {
27652768
/**
27662769
* Allowed HTTP request headers.
27672770
*/
2768-
allowed_headers?: Array<unknown>;
2771+
allowed_headers?: Array<string>;
27692772

27702773
/**
27712774
* Allowed HTTP request methods.
@@ -2777,7 +2780,7 @@ export namespace ApplicationUpdateParams {
27772780
/**
27782781
* Allowed origins.
27792782
*/
2780-
allowed_origins?: Array<unknown>;
2783+
allowed_origins?: Array<string>;
27812784

27822785
/**
27832786
* The maximum number of seconds the results of a preflight request can be cached.
@@ -2955,7 +2958,7 @@ export namespace ApplicationUpdateParams {
29552958
/**
29562959
* Allowed HTTP request headers.
29572960
*/
2958-
allowed_headers?: Array<unknown>;
2961+
allowed_headers?: Array<string>;
29592962

29602963
/**
29612964
* Allowed HTTP request methods.
@@ -2967,7 +2970,7 @@ export namespace ApplicationUpdateParams {
29672970
/**
29682971
* Allowed origins.
29692972
*/
2970-
allowed_origins?: Array<unknown>;
2973+
allowed_origins?: Array<string>;
29712974

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

31063109
/**
3107-
* Body param:
3110+
* Body param: Displays the application in the App Launcher.
31083111
*/
3109-
app_launcher_visible?: unknown;
3112+
app_launcher_visible?: boolean;
31103113

31113114
/**
31123115
* Body param: The URL or domain of the bookmark.

src/resources/zero-trust/access/applications/policies.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ export namespace ZeroTrustPolicies {
362362
/**
363363
* A list of emails that can approve the access request.
364364
*/
365-
email_addresses?: Array<unknown>;
365+
email_addresses?: Array<string>;
366366

367367
/**
368368
* The UUID of an re-usable email list.
@@ -1796,7 +1796,7 @@ export namespace PolicyCreateParams {
17961796
/**
17971797
* A list of emails that can approve the access request.
17981798
*/
1799-
email_addresses?: Array<unknown>;
1799+
email_addresses?: Array<string>;
18001800

18011801
/**
18021802
* The UUID of an re-usable email list.
@@ -2908,7 +2908,7 @@ export namespace PolicyUpdateParams {
29082908
/**
29092909
* A list of emails that can approve the access request.
29102910
*/
2911-
email_addresses?: Array<unknown>;
2911+
email_addresses?: Array<string>;
29122912

29132913
/**
29142914
* The UUID of an re-usable email list.

src/resources/zero-trust/access/bookmarks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export interface ZeroTrustBookmarks {
8383
/**
8484
* The unique identifier for the Bookmark application.
8585
*/
86-
id?: unknown;
86+
id?: string;
8787

8888
/**
8989
* Displays the application in the App Launcher.

src/resources/zero-trust/access/certificates/certificates.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ export interface ZeroTrustCertificates {
208208
/**
209209
* The ID of the application that will use this certificate.
210210
*/
211-
id?: unknown;
211+
id?: string;
212212

213213
/**
214214
* The hostnames of the applications that will use this certificate.

src/resources/zero-trust/access/service-tokens.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ export interface ServiceTokenCreateResponse {
226226
/**
227227
* The ID of the service token.
228228
*/
229-
id?: unknown;
229+
id?: string;
230230

231231
/**
232232
* The Client ID for the service token. Access will check for this value in the
@@ -261,7 +261,7 @@ export interface ServiceTokenRotateResponse {
261261
/**
262262
* The ID of the service token.
263263
*/
264-
id?: unknown;
264+
id?: string;
265265

266266
/**
267267
* The Client ID for the service token. Access will check for this value in the

src/resources/zero-trust/access/users/users.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,12 @@ export interface ZeroTrustUsers {
6969
/**
7070
* The unique API identifier for the Zero Trust seat.
7171
*/
72-
seat_uid?: unknown;
72+
seat_uid?: string;
7373

7474
/**
7575
* The unique API identifier for the user.
7676
*/
77-
uid?: unknown;
77+
uid?: string;
7878

7979
updated_at?: string;
8080
}

tests/api-resources/zero-trust/access/applications/applications.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ describe('resource applications', () => {
4545
allow_all_methods: true,
4646
allow_all_origins: true,
4747
allow_credentials: true,
48-
allowed_headers: [{}, {}, {}],
48+
allowed_headers: ['string', 'string', 'string'],
4949
allowed_methods: ['GET'],
5050
allowed_origins: ['https://example.com'],
5151
max_age: -1,
@@ -109,7 +109,7 @@ describe('resource applications', () => {
109109
allow_all_methods: true,
110110
allow_all_origins: true,
111111
allow_credentials: true,
112-
allowed_headers: [{}, {}, {}],
112+
allowed_headers: ['string', 'string', 'string'],
113113
allowed_methods: ['GET'],
114114
allowed_origins: ['https://example.com'],
115115
max_age: -1,

0 commit comments

Comments
 (0)