Skip to content

Commit b1b9980

Browse files
feat(api): api update
1 parent 4777963 commit b1b9980

File tree

4 files changed

+39
-2
lines changed

4 files changed

+39
-2
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1752
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-70a10a5a2a1ad186b926adc1495ede7dc3df082272838633c1c7e6d43f8483db.yml
3-
openapi_spec_hash: 1b4af36aa1670bc92a0815f572ec8e45
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-dbf820133fda5d5f88170bea1f579cbf51f58883c727ec475d3091e334f62618.yml
3+
openapi_spec_hash: cad99035781372477dd6e995664b414e
44
config_hash: 4b927ddc073213712e291a61ccf872b0

src/resources/zero-trust/gateway/configurations/configurations.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,11 @@ export interface GatewayConfigurationSettings {
441441
*/
442442
antivirus?: AntiVirusSettings | null;
443443

444+
/**
445+
* Setting to enable App Control
446+
*/
447+
'app-control-settings'?: GatewayConfigurationSettings.AppControlSettings | null;
448+
444449
/**
445450
* Block page layout settings.
446451
*/
@@ -500,6 +505,16 @@ export interface GatewayConfigurationSettings {
500505
}
501506

502507
export namespace GatewayConfigurationSettings {
508+
/**
509+
* Setting to enable App Control
510+
*/
511+
export interface AppControlSettings {
512+
/**
513+
* Enable App Control
514+
*/
515+
enabled?: boolean;
516+
}
517+
503518
/**
504519
* Certificate settings for Gateway TLS interception. If not specified, the
505520
* Cloudflare Root CA will be used.
@@ -553,6 +568,11 @@ export interface GatewayConfigurationSettingsParam {
553568
*/
554569
antivirus?: AntiVirusSettingsParam | null;
555570

571+
/**
572+
* Setting to enable App Control
573+
*/
574+
'app-control-settings'?: GatewayConfigurationSettingsParam.AppControlSettings | null;
575+
556576
/**
557577
* Block page layout settings.
558578
*/
@@ -612,6 +632,16 @@ export interface GatewayConfigurationSettingsParam {
612632
}
613633

614634
export namespace GatewayConfigurationSettingsParam {
635+
/**
636+
* Setting to enable App Control
637+
*/
638+
export interface AppControlSettings {
639+
/**
640+
* Enable App Control
641+
*/
642+
enabled?: boolean;
643+
}
644+
615645
/**
616646
* Certificate settings for Gateway TLS interception. If not specified, the
617647
* Cloudflare Root CA will be used.

src/resources/zero-trust/gateway/rules.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,11 @@ export interface GatewayRule {
368368
* version number of the rule
369369
*/
370370
version?: number;
371+
372+
/**
373+
* Warning for a misconfigured rule, if any.
374+
*/
375+
warning_status?: string | null;
371376
}
372377

373378
export namespace GatewayRule {

tests/api-resources/zero-trust/gateway/configurations/configurations.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ describe('resource configurations', () => {
3939
support_url: 'support_url',
4040
},
4141
},
42+
'app-control-settings': { enabled: false },
4243
block_page: {
4344
background_color: 'background_color',
4445
enabled: true,
@@ -96,6 +97,7 @@ describe('resource configurations', () => {
9697
support_url: 'support_url',
9798
},
9899
},
100+
'app-control-settings': { enabled: false },
99101
block_page: {
100102
background_color: 'background_color',
101103
enabled: true,

0 commit comments

Comments
 (0)