Skip to content

Commit be31780

Browse files
feat(api): OpenAPI spec update via Stainless API (#343)
1 parent d867646 commit be31780

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed

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

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,12 @@ export namespace Application {
382382
*/
383383
name?: string;
384384

385+
/**
386+
* Allows options preflight requests to bypass Access authentication and go
387+
* directly to the origin. Cannot turn on if cors_headers is set.
388+
*/
389+
options_preflight_bypass?: boolean;
390+
385391
/**
386392
* Enables cookie paths to scope an application's JWT to the application path. If
387393
* disabled, the JWT will scope to the hostname by default
@@ -637,6 +643,12 @@ export namespace Application {
637643
*/
638644
name?: string;
639645

646+
/**
647+
* Allows options preflight requests to bypass Access authentication and go
648+
* directly to the origin. Cannot turn on if cors_headers is set.
649+
*/
650+
options_preflight_bypass?: boolean;
651+
640652
/**
641653
* Enables cookie paths to scope an application's JWT to the application path. If
642654
* disabled, the JWT will scope to the hostname by default
@@ -776,6 +788,12 @@ export namespace Application {
776788
*/
777789
name?: string;
778790

791+
/**
792+
* Allows options preflight requests to bypass Access authentication and go
793+
* directly to the origin. Cannot turn on if cors_headers is set.
794+
*/
795+
options_preflight_bypass?: boolean;
796+
779797
/**
780798
* Enables cookie paths to scope an application's JWT to the application path. If
781799
* disabled, the JWT will scope to the hostname by default
@@ -1298,6 +1316,12 @@ export namespace ApplicationCreateParams {
12981316
*/
12991317
name?: string;
13001318

1319+
/**
1320+
* Body param: Allows options preflight requests to bypass Access authentication
1321+
* and go directly to the origin. Cannot turn on if cors_headers is set.
1322+
*/
1323+
options_preflight_bypass?: boolean;
1324+
13011325
/**
13021326
* Body param: Enables cookie paths to scope an application's JWT to the
13031327
* application path. If disabled, the JWT will scope to the hostname by default
@@ -1555,6 +1579,12 @@ export namespace ApplicationCreateParams {
15551579
*/
15561580
name?: string;
15571581

1582+
/**
1583+
* Body param: Allows options preflight requests to bypass Access authentication
1584+
* and go directly to the origin. Cannot turn on if cors_headers is set.
1585+
*/
1586+
options_preflight_bypass?: boolean;
1587+
15581588
/**
15591589
* Body param: Enables cookie paths to scope an application's JWT to the
15601590
* application path. If disabled, the JWT will scope to the hostname by default
@@ -1698,6 +1728,12 @@ export namespace ApplicationCreateParams {
16981728
*/
16991729
name?: string;
17001730

1731+
/**
1732+
* Body param: Allows options preflight requests to bypass Access authentication
1733+
* and go directly to the origin. Cannot turn on if cors_headers is set.
1734+
*/
1735+
options_preflight_bypass?: boolean;
1736+
17011737
/**
17021738
* Body param: Enables cookie paths to scope an application's JWT to the
17031739
* application path. If disabled, the JWT will scope to the hostname by default
@@ -2012,6 +2048,12 @@ export namespace ApplicationUpdateParams {
20122048
*/
20132049
name?: string;
20142050

2051+
/**
2052+
* Body param: Allows options preflight requests to bypass Access authentication
2053+
* and go directly to the origin. Cannot turn on if cors_headers is set.
2054+
*/
2055+
options_preflight_bypass?: boolean;
2056+
20152057
/**
20162058
* Body param: Enables cookie paths to scope an application's JWT to the
20172059
* application path. If disabled, the JWT will scope to the hostname by default
@@ -2269,6 +2311,12 @@ export namespace ApplicationUpdateParams {
22692311
*/
22702312
name?: string;
22712313

2314+
/**
2315+
* Body param: Allows options preflight requests to bypass Access authentication
2316+
* and go directly to the origin. Cannot turn on if cors_headers is set.
2317+
*/
2318+
options_preflight_bypass?: boolean;
2319+
22722320
/**
22732321
* Body param: Enables cookie paths to scope an application's JWT to the
22742322
* application path. If disabled, the JWT will scope to the hostname by default
@@ -2412,6 +2460,12 @@ export namespace ApplicationUpdateParams {
24122460
*/
24132461
name?: string;
24142462

2463+
/**
2464+
* Body param: Allows options preflight requests to bypass Access authentication
2465+
* and go directly to the origin. Cannot turn on if cors_headers is set.
2466+
*/
2467+
options_preflight_bypass?: boolean;
2468+
24152469
/**
24162470
* Body param: Enables cookie paths to scope an application's JWT to the
24172471
* application path. If disabled, the JWT will scope to the hostname by default

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ describe('resource applications', () => {
6262
http_only_cookie_attribute: true,
6363
logo_url: 'https://www.cloudflare.com/img/logo-web-badges/cf-logo-on-white-bg.svg',
6464
name: 'Admin Site',
65+
options_preflight_bypass: true,
6566
path_cookie_attribute: true,
6667
same_site_cookie_attribute: 'strict',
6768
self_hosted_domains: ['test.example.com/admin', 'test.anotherexample.com/staff'],
@@ -125,6 +126,7 @@ describe('resource applications', () => {
125126
http_only_cookie_attribute: true,
126127
logo_url: 'https://www.cloudflare.com/img/logo-web-badges/cf-logo-on-white-bg.svg',
127128
name: 'Admin Site',
129+
options_preflight_bypass: true,
128130
path_cookie_attribute: true,
129131
same_site_cookie_attribute: 'strict',
130132
self_hosted_domains: ['test.example.com/admin', 'test.anotherexample.com/staff'],

0 commit comments

Comments
 (0)