@distilled.cloud/cloudflare 0.6.1 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/services/accounts.d.ts +901 -36
- package/lib/services/accounts.d.ts.map +1 -1
- package/lib/services/accounts.js +1386 -32
- package/lib/services/accounts.js.map +1 -1
- package/lib/services/addressing.d.ts +8 -2
- package/lib/services/addressing.d.ts.map +1 -1
- package/lib/services/addressing.js +14 -2
- package/lib/services/addressing.js.map +1 -1
- package/lib/services/ai-gateway.d.ts.map +1 -1
- package/lib/services/ai-gateway.js +7 -7
- package/lib/services/ai-gateway.js.map +1 -1
- package/lib/services/aisearch.d.ts.map +1 -1
- package/lib/services/aisearch.js +24 -9
- package/lib/services/aisearch.js.map +1 -1
- package/lib/services/alerting.js +2 -2
- package/lib/services/alerting.js.map +1 -1
- package/lib/services/api-gateway.d.ts +114 -16
- package/lib/services/api-gateway.d.ts.map +1 -1
- package/lib/services/api-gateway.js +187 -15
- package/lib/services/api-gateway.js.map +1 -1
- package/lib/services/audit-logs.d.ts +63 -3
- package/lib/services/audit-logs.d.ts.map +1 -1
- package/lib/services/audit-logs.js +62 -3
- package/lib/services/audit-logs.js.map +1 -1
- package/lib/services/bot-management.d.ts +54 -8
- package/lib/services/bot-management.d.ts.map +1 -1
- package/lib/services/bot-management.js +128 -16
- package/lib/services/bot-management.js.map +1 -1
- package/lib/services/brand-protection.d.ts.map +1 -1
- package/lib/services/brand-protection.js +26 -8
- package/lib/services/brand-protection.js.map +1 -1
- package/lib/services/browser-rendering.d.ts.map +1 -1
- package/lib/services/browser-rendering.js +13 -10
- package/lib/services/browser-rendering.js.map +1 -1
- package/lib/services/cloudforce-one.d.ts +61 -6
- package/lib/services/cloudforce-one.d.ts.map +1 -1
- package/lib/services/cloudforce-one.js +107 -6
- package/lib/services/cloudforce-one.js.map +1 -1
- package/lib/services/custom-certificates.d.ts +145 -8
- package/lib/services/custom-certificates.d.ts.map +1 -1
- package/lib/services/custom-certificates.js +226 -7
- package/lib/services/custom-certificates.js.map +1 -1
- package/lib/services/custom-hostnames.d.ts +8 -8
- package/lib/services/custom-hostnames.d.ts.map +1 -1
- package/lib/services/custom-hostnames.js +17 -14
- package/lib/services/custom-hostnames.js.map +1 -1
- package/lib/services/d1.d.ts +68 -8
- package/lib/services/d1.d.ts.map +1 -1
- package/lib/services/d1.js +96 -8
- package/lib/services/d1.js.map +1 -1
- package/lib/services/dns-firewall.d.ts +57 -4
- package/lib/services/dns-firewall.d.ts.map +1 -1
- package/lib/services/dns-firewall.js +86 -5
- package/lib/services/dns-firewall.js.map +1 -1
- package/lib/services/dns.d.ts +85 -745
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +118 -1424
- package/lib/services/dns.js.map +1 -1
- package/lib/services/email-routing.d.ts +59 -7
- package/lib/services/email-routing.d.ts.map +1 -1
- package/lib/services/email-routing.js +165 -7
- package/lib/services/email-routing.js.map +1 -1
- package/lib/services/firewall.d.ts +228 -39
- package/lib/services/firewall.d.ts.map +1 -1
- package/lib/services/firewall.js +220 -33
- package/lib/services/firewall.js.map +1 -1
- package/lib/services/healthchecks.d.ts +112 -6
- package/lib/services/healthchecks.d.ts.map +1 -1
- package/lib/services/healthchecks.js +248 -14
- package/lib/services/healthchecks.js.map +1 -1
- package/lib/services/hostnames.d.ts +5 -5
- package/lib/services/hostnames.d.ts.map +1 -1
- package/lib/services/hostnames.js +16 -4
- package/lib/services/hostnames.js.map +1 -1
- package/lib/services/hyperdrive.d.ts +223 -11
- package/lib/services/hyperdrive.d.ts.map +1 -1
- package/lib/services/hyperdrive.js +351 -11
- package/lib/services/hyperdrive.js.map +1 -1
- package/lib/services/iam.d.ts +62 -2
- package/lib/services/iam.d.ts.map +1 -1
- package/lib/services/iam.js +82 -11
- package/lib/services/iam.js.map +1 -1
- package/lib/services/images.d.ts +9 -1
- package/lib/services/images.d.ts.map +1 -1
- package/lib/services/images.js +12 -1
- package/lib/services/images.js.map +1 -1
- package/lib/services/intel.d.ts +4 -4
- package/lib/services/intel.d.ts.map +1 -1
- package/lib/services/intel.js +2 -3
- package/lib/services/intel.js.map +1 -1
- package/lib/services/kv.d.ts.map +1 -1
- package/lib/services/kv.js +2 -2
- package/lib/services/kv.js.map +1 -1
- package/lib/services/load-balancers.d.ts +537 -108
- package/lib/services/load-balancers.d.ts.map +1 -1
- package/lib/services/load-balancers.js +1266 -161
- package/lib/services/load-balancers.js.map +1 -1
- package/lib/services/logpush.d.ts +153 -9
- package/lib/services/logpush.d.ts.map +1 -1
- package/lib/services/logpush.js +246 -9
- package/lib/services/logpush.js.map +1 -1
- package/lib/services/magic-cloud-networking.d.ts.map +1 -1
- package/lib/services/magic-cloud-networking.js +54 -30
- package/lib/services/magic-cloud-networking.js.map +1 -1
- package/lib/services/magic-network-monitoring.d.ts +46 -5
- package/lib/services/magic-network-monitoring.d.ts.map +1 -1
- package/lib/services/magic-network-monitoring.js +79 -5
- package/lib/services/magic-network-monitoring.js.map +1 -1
- package/lib/services/magic-transit.d.ts +127 -21
- package/lib/services/magic-transit.d.ts.map +1 -1
- package/lib/services/magic-transit.js +291 -29
- package/lib/services/magic-transit.js.map +1 -1
- package/lib/services/memberships.d.ts +248 -52
- package/lib/services/memberships.d.ts.map +1 -1
- package/lib/services/memberships.js +360 -39
- package/lib/services/memberships.js.map +1 -1
- package/lib/services/page-rules.d.ts +432 -8
- package/lib/services/page-rules.d.ts.map +1 -1
- package/lib/services/page-rules.js +877 -33
- package/lib/services/page-rules.js.map +1 -1
- package/lib/services/pages.d.ts +457 -297
- package/lib/services/pages.d.ts.map +1 -1
- package/lib/services/pages.js +1366 -491
- package/lib/services/pages.js.map +1 -1
- package/lib/services/pipelines.d.ts +96 -76
- package/lib/services/pipelines.d.ts.map +1 -1
- package/lib/services/pipelines.js +145 -197
- package/lib/services/pipelines.js.map +1 -1
- package/lib/services/queues.d.ts +228 -12
- package/lib/services/queues.d.ts.map +1 -1
- package/lib/services/queues.js +487 -11
- package/lib/services/queues.js.map +1 -1
- package/lib/services/radar.d.ts +82 -18
- package/lib/services/radar.d.ts.map +1 -1
- package/lib/services/radar.js +111 -47
- package/lib/services/radar.js.map +1 -1
- package/lib/services/realtime-kit.d.ts +650 -334
- package/lib/services/realtime-kit.d.ts.map +1 -1
- package/lib/services/realtime-kit.js +1472 -693
- package/lib/services/realtime-kit.js.map +1 -1
- package/lib/services/request-tracers.d.ts +12 -1
- package/lib/services/request-tracers.d.ts.map +1 -1
- package/lib/services/request-tracers.js +28 -3
- package/lib/services/request-tracers.js.map +1 -1
- package/lib/services/rules.d.ts +65 -10
- package/lib/services/rules.d.ts.map +1 -1
- package/lib/services/rules.js +102 -8
- package/lib/services/rules.js.map +1 -1
- package/lib/services/rulesets.d.ts +7892 -1806
- package/lib/services/rulesets.d.ts.map +1 -1
- package/lib/services/rulesets.js +18720 -4149
- package/lib/services/rulesets.js.map +1 -1
- package/lib/services/rum.d.ts +45 -5
- package/lib/services/rum.d.ts.map +1 -1
- package/lib/services/rum.js +80 -4
- package/lib/services/rum.js.map +1 -1
- package/lib/services/schema-validation.js +2 -2
- package/lib/services/schema-validation.js.map +1 -1
- package/lib/services/spectrum.d.ts +139 -33
- package/lib/services/spectrum.d.ts.map +1 -1
- package/lib/services/spectrum.js +190 -34
- package/lib/services/spectrum.js.map +1 -1
- package/lib/services/speed.d.ts +345 -24
- package/lib/services/speed.d.ts.map +1 -1
- package/lib/services/speed.js +785 -19
- package/lib/services/speed.js.map +1 -1
- package/lib/services/ssl.d.ts +6 -6
- package/lib/services/ssl.d.ts.map +1 -1
- package/lib/services/ssl.js +5 -5
- package/lib/services/ssl.js.map +1 -1
- package/lib/services/stream.d.ts +171 -17
- package/lib/services/stream.d.ts.map +1 -1
- package/lib/services/stream.js +164 -11
- package/lib/services/stream.js.map +1 -1
- package/lib/services/token-validation.d.ts +16 -2
- package/lib/services/token-validation.d.ts.map +1 -1
- package/lib/services/token-validation.js +32 -2
- package/lib/services/token-validation.js.map +1 -1
- package/lib/services/url-scanner.d.ts +43 -11
- package/lib/services/url-scanner.d.ts.map +1 -1
- package/lib/services/url-scanner.js +46 -11
- package/lib/services/url-scanner.js.map +1 -1
- package/lib/services/user.d.ts +312 -21
- package/lib/services/user.d.ts.map +1 -1
- package/lib/services/user.js +442 -19
- package/lib/services/user.js.map +1 -1
- package/lib/services/workers-for-platforms.d.ts +223 -13
- package/lib/services/workers-for-platforms.d.ts.map +1 -1
- package/lib/services/workers-for-platforms.js +481 -13
- package/lib/services/workers-for-platforms.js.map +1 -1
- package/lib/services/workers.d.ts +345 -31
- package/lib/services/workers.d.ts.map +1 -1
- package/lib/services/workers.js +649 -34
- package/lib/services/workers.js.map +1 -1
- package/lib/services/zaraz.d.ts +212 -11
- package/lib/services/zaraz.d.ts.map +1 -1
- package/lib/services/zaraz.js +311 -30
- package/lib/services/zaraz.js.map +1 -1
- package/lib/services/zero-trust.d.ts +19333 -1905
- package/lib/services/zero-trust.d.ts.map +1 -1
- package/lib/services/zero-trust.js +30269 -5710
- package/lib/services/zero-trust.js.map +1 -1
- package/lib/services/zones.d.ts +61 -7
- package/lib/services/zones.d.ts.map +1 -1
- package/lib/services/zones.js +188 -7
- package/lib/services/zones.js.map +1 -1
- package/package.json +2 -2
- package/src/services/accounts.ts +2897 -63
- package/src/services/addressing.ts +28 -4
- package/src/services/ai-gateway.ts +9 -7
- package/src/services/aisearch.ts +28 -9
- package/src/services/alerting.ts +2 -2
- package/src/services/api-gateway.ts +410 -27
- package/src/services/audit-logs.ts +135 -5
- package/src/services/bot-management.ts +282 -24
- package/src/services/brand-protection.ts +28 -8
- package/src/services/browser-rendering.ts +31 -11
- package/src/services/cloudforce-one.ts +201 -9
- package/src/services/custom-certificates.ts +405 -14
- package/src/services/custom-hostnames.ts +29 -22
- package/src/services/d1.ts +180 -12
- package/src/services/dns-firewall.ts +163 -7
- package/src/services/dns.ts +213 -2389
- package/src/services/email-routing.ts +346 -12
- package/src/services/firewall.ts +556 -72
- package/src/services/healthchecks.ts +463 -18
- package/src/services/hostnames.ts +21 -9
- package/src/services/hyperdrive.ts +730 -17
- package/src/services/iam.ts +228 -24
- package/src/services/images.ts +29 -2
- package/src/services/intel.ts +6 -5
- package/src/services/kv.ts +6 -2
- package/src/services/load-balancers.ts +2387 -294
- package/src/services/logpush.ts +659 -15
- package/src/services/magic-cloud-networking.ts +74 -30
- package/src/services/magic-network-monitoring.ts +170 -8
- package/src/services/magic-transit.ts +631 -62
- package/src/services/memberships.ts +710 -91
- package/src/services/page-rules.ts +1592 -88
- package/src/services/pages.ts +2011 -1098
- package/src/services/pipelines.ts +285 -331
- package/src/services/queues.ts +1110 -22
- package/src/services/radar.ts +128 -64
- package/src/services/realtime-kit.ts +2829 -1603
- package/src/services/request-tracers.ts +54 -4
- package/src/services/rules.ts +214 -18
- package/src/services/rulesets.ts +34524 -6913
- package/src/services/rum.ts +187 -9
- package/src/services/schema-validation.ts +2 -2
- package/src/services/spectrum.ts +357 -67
- package/src/services/speed.ts +1845 -42
- package/src/services/ssl.ts +11 -11
- package/src/services/stream.ts +397 -22
- package/src/services/token-validation.ts +64 -4
- package/src/services/url-scanner.ts +92 -20
- package/src/services/user.ts +973 -34
- package/src/services/workers-for-platforms.ts +1012 -39
- package/src/services/workers.ts +1472 -120
- package/src/services/zaraz.ts +640 -37
- package/src/services/zero-trust.ts +55498 -12667
- package/src/services/zones.ts +360 -14
|
@@ -34,7 +34,10 @@ export interface GetPageRuleResponse {
|
|
|
34
34
|
id: string;
|
|
35
35
|
/** The set of actions to perform if the targets of this rule match the request. Actions can redirect to another URL or override settings, but not both. */
|
|
36
36
|
actions: (
|
|
37
|
-
|
|
|
37
|
+
| { id?: "always_use_https" | null }
|
|
38
|
+
| { id?: "automatic_https_rewrites" | null; value?: "on" | "off" | null }
|
|
39
|
+
| { id?: "browser_cache_ttl" | null; value?: number | null }
|
|
40
|
+
| { id?: "browser_check" | null; value?: "on" | "off" | null }
|
|
38
41
|
| { id?: "bypass_cache_on_cookie" | null; value?: string | null }
|
|
39
42
|
| { id?: "cache_by_device_type" | null; value?: "on" | "off" | null }
|
|
40
43
|
| { id?: "cache_deception_armor" | null; value?: "on" | "off" | null }
|
|
@@ -62,6 +65,16 @@ export interface GetPageRuleResponse {
|
|
|
62
65
|
} | null;
|
|
63
66
|
} | null;
|
|
64
67
|
}
|
|
68
|
+
| {
|
|
69
|
+
id?: "cache_level" | null;
|
|
70
|
+
value?:
|
|
71
|
+
| "bypass"
|
|
72
|
+
| "basic"
|
|
73
|
+
| "simplified"
|
|
74
|
+
| "aggressive"
|
|
75
|
+
| "cache_everything"
|
|
76
|
+
| null;
|
|
77
|
+
}
|
|
65
78
|
| { id?: "cache_on_cookie" | null; value?: string | null }
|
|
66
79
|
| {
|
|
67
80
|
id?: "cache_ttl_by_status" | null;
|
|
@@ -72,6 +85,7 @@ export interface GetPageRuleResponse {
|
|
|
72
85
|
| { id?: "disable_security" | null }
|
|
73
86
|
| { id?: "disable_zaraz" | null }
|
|
74
87
|
| { id?: "edge_cache_ttl" | null; value?: number | null }
|
|
88
|
+
| { id?: "email_obfuscation" | null; value?: "on" | "off" | null }
|
|
75
89
|
| { id?: "explicit_cache_control" | null; value?: "on" | "off" | null }
|
|
76
90
|
| {
|
|
77
91
|
id?: "forwarding_url" | null;
|
|
@@ -81,8 +95,33 @@ export interface GetPageRuleResponse {
|
|
|
81
95
|
} | null;
|
|
82
96
|
}
|
|
83
97
|
| { id?: "host_header_override" | null; value?: string | null }
|
|
98
|
+
| { id?: "ip_geolocation" | null; value?: "on" | "off" | null }
|
|
99
|
+
| { id?: "mirage" | null; value?: "on" | "off" | null }
|
|
100
|
+
| { id?: "opportunistic_encryption" | null; value?: "on" | "off" | null }
|
|
101
|
+
| { id?: "origin_error_page_pass_thru" | null; value?: "on" | "off" | null }
|
|
102
|
+
| { id?: "polish" | null; value?: "off" | "lossless" | "lossy" | null }
|
|
84
103
|
| { id?: "resolve_override" | null; value?: string | null }
|
|
85
104
|
| { id?: "respect_strong_etag" | null; value?: "on" | "off" | null }
|
|
105
|
+
| { id?: "response_buffering" | null; value?: "on" | "off" | null }
|
|
106
|
+
| { id?: "rocket_loader" | null; value?: "on" | "off" | null }
|
|
107
|
+
| {
|
|
108
|
+
id?: "security_level" | null;
|
|
109
|
+
value?:
|
|
110
|
+
| "off"
|
|
111
|
+
| "essentially_off"
|
|
112
|
+
| "low"
|
|
113
|
+
| "medium"
|
|
114
|
+
| "high"
|
|
115
|
+
| "under_attack"
|
|
116
|
+
| null;
|
|
117
|
+
}
|
|
118
|
+
| { id?: "sort_query_string_for_cache" | null; value?: "on" | "off" | null }
|
|
119
|
+
| {
|
|
120
|
+
id?: "ssl" | null;
|
|
121
|
+
value?: "off" | "flexible" | "full" | "strict" | "origin_pull" | null;
|
|
122
|
+
}
|
|
123
|
+
| { id?: "true_client_ip_header" | null; value?: "on" | "off" | null }
|
|
124
|
+
| { id?: "waf" | null; value?: "on" | "off" | null }
|
|
86
125
|
)[];
|
|
87
126
|
/** The timestamp of when the Page Rule was created. */
|
|
88
127
|
createdOn: string;
|
|
@@ -106,7 +145,36 @@ export const GetPageRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
106
145
|
id: Schema.String,
|
|
107
146
|
actions: Schema.Array(
|
|
108
147
|
Schema.Union([
|
|
109
|
-
Schema.
|
|
148
|
+
Schema.Struct({
|
|
149
|
+
id: Schema.optional(
|
|
150
|
+
Schema.Union([Schema.Literal("always_use_https"), Schema.Null]),
|
|
151
|
+
),
|
|
152
|
+
}),
|
|
153
|
+
Schema.Struct({
|
|
154
|
+
id: Schema.optional(
|
|
155
|
+
Schema.Union([
|
|
156
|
+
Schema.Literal("automatic_https_rewrites"),
|
|
157
|
+
Schema.Null,
|
|
158
|
+
]),
|
|
159
|
+
),
|
|
160
|
+
value: Schema.optional(
|
|
161
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
162
|
+
),
|
|
163
|
+
}),
|
|
164
|
+
Schema.Struct({
|
|
165
|
+
id: Schema.optional(
|
|
166
|
+
Schema.Union([Schema.Literal("browser_cache_ttl"), Schema.Null]),
|
|
167
|
+
),
|
|
168
|
+
value: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
169
|
+
}),
|
|
170
|
+
Schema.Struct({
|
|
171
|
+
id: Schema.optional(
|
|
172
|
+
Schema.Union([Schema.Literal("browser_check"), Schema.Null]),
|
|
173
|
+
),
|
|
174
|
+
value: Schema.optional(
|
|
175
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
176
|
+
),
|
|
177
|
+
}),
|
|
110
178
|
Schema.Struct({
|
|
111
179
|
id: Schema.optional(
|
|
112
180
|
Schema.Union([Schema.Literal("bypass_cache_on_cookie"), Schema.Null]),
|
|
@@ -246,6 +314,23 @@ export const GetPageRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
246
314
|
]),
|
|
247
315
|
),
|
|
248
316
|
}),
|
|
317
|
+
Schema.Struct({
|
|
318
|
+
id: Schema.optional(
|
|
319
|
+
Schema.Union([Schema.Literal("cache_level"), Schema.Null]),
|
|
320
|
+
),
|
|
321
|
+
value: Schema.optional(
|
|
322
|
+
Schema.Union([
|
|
323
|
+
Schema.Literals([
|
|
324
|
+
"bypass",
|
|
325
|
+
"basic",
|
|
326
|
+
"simplified",
|
|
327
|
+
"aggressive",
|
|
328
|
+
"cache_everything",
|
|
329
|
+
]),
|
|
330
|
+
Schema.Null,
|
|
331
|
+
]),
|
|
332
|
+
),
|
|
333
|
+
}),
|
|
249
334
|
Schema.Struct({
|
|
250
335
|
id: Schema.optional(
|
|
251
336
|
Schema.Union([Schema.Literal("cache_on_cookie"), Schema.Null]),
|
|
@@ -256,7 +341,12 @@ export const GetPageRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
256
341
|
id: Schema.optional(
|
|
257
342
|
Schema.Union([Schema.Literal("cache_ttl_by_status"), Schema.Null]),
|
|
258
343
|
),
|
|
259
|
-
value: Schema.optional(
|
|
344
|
+
value: Schema.optional(
|
|
345
|
+
Schema.Union([
|
|
346
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
347
|
+
Schema.Null,
|
|
348
|
+
]),
|
|
349
|
+
),
|
|
260
350
|
}),
|
|
261
351
|
Schema.Struct({
|
|
262
352
|
id: Schema.optional(
|
|
@@ -284,6 +374,14 @@ export const GetPageRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
284
374
|
),
|
|
285
375
|
value: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
286
376
|
}),
|
|
377
|
+
Schema.Struct({
|
|
378
|
+
id: Schema.optional(
|
|
379
|
+
Schema.Union([Schema.Literal("email_obfuscation"), Schema.Null]),
|
|
380
|
+
),
|
|
381
|
+
value: Schema.optional(
|
|
382
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
383
|
+
),
|
|
384
|
+
}),
|
|
287
385
|
Schema.Struct({
|
|
288
386
|
id: Schema.optional(
|
|
289
387
|
Schema.Union([Schema.Literal("explicit_cache_control"), Schema.Null]),
|
|
@@ -316,6 +414,55 @@ export const GetPageRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
316
414
|
),
|
|
317
415
|
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
318
416
|
}),
|
|
417
|
+
Schema.Struct({
|
|
418
|
+
id: Schema.optional(
|
|
419
|
+
Schema.Union([Schema.Literal("ip_geolocation"), Schema.Null]),
|
|
420
|
+
),
|
|
421
|
+
value: Schema.optional(
|
|
422
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
423
|
+
),
|
|
424
|
+
}),
|
|
425
|
+
Schema.Struct({
|
|
426
|
+
id: Schema.optional(
|
|
427
|
+
Schema.Union([Schema.Literal("mirage"), Schema.Null]),
|
|
428
|
+
),
|
|
429
|
+
value: Schema.optional(
|
|
430
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
431
|
+
),
|
|
432
|
+
}),
|
|
433
|
+
Schema.Struct({
|
|
434
|
+
id: Schema.optional(
|
|
435
|
+
Schema.Union([
|
|
436
|
+
Schema.Literal("opportunistic_encryption"),
|
|
437
|
+
Schema.Null,
|
|
438
|
+
]),
|
|
439
|
+
),
|
|
440
|
+
value: Schema.optional(
|
|
441
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
442
|
+
),
|
|
443
|
+
}),
|
|
444
|
+
Schema.Struct({
|
|
445
|
+
id: Schema.optional(
|
|
446
|
+
Schema.Union([
|
|
447
|
+
Schema.Literal("origin_error_page_pass_thru"),
|
|
448
|
+
Schema.Null,
|
|
449
|
+
]),
|
|
450
|
+
),
|
|
451
|
+
value: Schema.optional(
|
|
452
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
453
|
+
),
|
|
454
|
+
}),
|
|
455
|
+
Schema.Struct({
|
|
456
|
+
id: Schema.optional(
|
|
457
|
+
Schema.Union([Schema.Literal("polish"), Schema.Null]),
|
|
458
|
+
),
|
|
459
|
+
value: Schema.optional(
|
|
460
|
+
Schema.Union([
|
|
461
|
+
Schema.Literals(["off", "lossless", "lossy"]),
|
|
462
|
+
Schema.Null,
|
|
463
|
+
]),
|
|
464
|
+
),
|
|
465
|
+
}),
|
|
319
466
|
Schema.Struct({
|
|
320
467
|
id: Schema.optional(
|
|
321
468
|
Schema.Union([Schema.Literal("resolve_override"), Schema.Null]),
|
|
@@ -330,6 +477,80 @@ export const GetPageRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
330
477
|
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
331
478
|
),
|
|
332
479
|
}),
|
|
480
|
+
Schema.Struct({
|
|
481
|
+
id: Schema.optional(
|
|
482
|
+
Schema.Union([Schema.Literal("response_buffering"), Schema.Null]),
|
|
483
|
+
),
|
|
484
|
+
value: Schema.optional(
|
|
485
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
486
|
+
),
|
|
487
|
+
}),
|
|
488
|
+
Schema.Struct({
|
|
489
|
+
id: Schema.optional(
|
|
490
|
+
Schema.Union([Schema.Literal("rocket_loader"), Schema.Null]),
|
|
491
|
+
),
|
|
492
|
+
value: Schema.optional(
|
|
493
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
494
|
+
),
|
|
495
|
+
}),
|
|
496
|
+
Schema.Struct({
|
|
497
|
+
id: Schema.optional(
|
|
498
|
+
Schema.Union([Schema.Literal("security_level"), Schema.Null]),
|
|
499
|
+
),
|
|
500
|
+
value: Schema.optional(
|
|
501
|
+
Schema.Union([
|
|
502
|
+
Schema.Literals([
|
|
503
|
+
"off",
|
|
504
|
+
"essentially_off",
|
|
505
|
+
"low",
|
|
506
|
+
"medium",
|
|
507
|
+
"high",
|
|
508
|
+
"under_attack",
|
|
509
|
+
]),
|
|
510
|
+
Schema.Null,
|
|
511
|
+
]),
|
|
512
|
+
),
|
|
513
|
+
}),
|
|
514
|
+
Schema.Struct({
|
|
515
|
+
id: Schema.optional(
|
|
516
|
+
Schema.Union([
|
|
517
|
+
Schema.Literal("sort_query_string_for_cache"),
|
|
518
|
+
Schema.Null,
|
|
519
|
+
]),
|
|
520
|
+
),
|
|
521
|
+
value: Schema.optional(
|
|
522
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
523
|
+
),
|
|
524
|
+
}),
|
|
525
|
+
Schema.Struct({
|
|
526
|
+
id: Schema.optional(Schema.Union([Schema.Literal("ssl"), Schema.Null])),
|
|
527
|
+
value: Schema.optional(
|
|
528
|
+
Schema.Union([
|
|
529
|
+
Schema.Literals([
|
|
530
|
+
"off",
|
|
531
|
+
"flexible",
|
|
532
|
+
"full",
|
|
533
|
+
"strict",
|
|
534
|
+
"origin_pull",
|
|
535
|
+
]),
|
|
536
|
+
Schema.Null,
|
|
537
|
+
]),
|
|
538
|
+
),
|
|
539
|
+
}),
|
|
540
|
+
Schema.Struct({
|
|
541
|
+
id: Schema.optional(
|
|
542
|
+
Schema.Union([Schema.Literal("true_client_ip_header"), Schema.Null]),
|
|
543
|
+
),
|
|
544
|
+
value: Schema.optional(
|
|
545
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
546
|
+
),
|
|
547
|
+
}),
|
|
548
|
+
Schema.Struct({
|
|
549
|
+
id: Schema.optional(Schema.Union([Schema.Literal("waf"), Schema.Null])),
|
|
550
|
+
value: Schema.optional(
|
|
551
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
552
|
+
),
|
|
553
|
+
}),
|
|
333
554
|
]),
|
|
334
555
|
),
|
|
335
556
|
createdOn: Schema.String,
|
|
@@ -421,7 +642,10 @@ export const ListPageRulesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
421
642
|
export type ListPageRulesResponse = {
|
|
422
643
|
id: string;
|
|
423
644
|
actions: (
|
|
424
|
-
|
|
|
645
|
+
| { id?: "always_use_https" | null }
|
|
646
|
+
| { id?: "automatic_https_rewrites" | null; value?: "on" | "off" | null }
|
|
647
|
+
| { id?: "browser_cache_ttl" | null; value?: number | null }
|
|
648
|
+
| { id?: "browser_check" | null; value?: "on" | "off" | null }
|
|
425
649
|
| { id?: "bypass_cache_on_cookie" | null; value?: string | null }
|
|
426
650
|
| { id?: "cache_by_device_type" | null; value?: "on" | "off" | null }
|
|
427
651
|
| { id?: "cache_deception_armor" | null; value?: "on" | "off" | null }
|
|
@@ -449,6 +673,16 @@ export type ListPageRulesResponse = {
|
|
|
449
673
|
} | null;
|
|
450
674
|
} | null;
|
|
451
675
|
}
|
|
676
|
+
| {
|
|
677
|
+
id?: "cache_level" | null;
|
|
678
|
+
value?:
|
|
679
|
+
| "bypass"
|
|
680
|
+
| "basic"
|
|
681
|
+
| "simplified"
|
|
682
|
+
| "aggressive"
|
|
683
|
+
| "cache_everything"
|
|
684
|
+
| null;
|
|
685
|
+
}
|
|
452
686
|
| { id?: "cache_on_cookie" | null; value?: string | null }
|
|
453
687
|
| {
|
|
454
688
|
id?: "cache_ttl_by_status" | null;
|
|
@@ -459,6 +693,7 @@ export type ListPageRulesResponse = {
|
|
|
459
693
|
| { id?: "disable_security" | null }
|
|
460
694
|
| { id?: "disable_zaraz" | null }
|
|
461
695
|
| { id?: "edge_cache_ttl" | null; value?: number | null }
|
|
696
|
+
| { id?: "email_obfuscation" | null; value?: "on" | "off" | null }
|
|
462
697
|
| { id?: "explicit_cache_control" | null; value?: "on" | "off" | null }
|
|
463
698
|
| {
|
|
464
699
|
id?: "forwarding_url" | null;
|
|
@@ -468,8 +703,33 @@ export type ListPageRulesResponse = {
|
|
|
468
703
|
} | null;
|
|
469
704
|
}
|
|
470
705
|
| { id?: "host_header_override" | null; value?: string | null }
|
|
706
|
+
| { id?: "ip_geolocation" | null; value?: "on" | "off" | null }
|
|
707
|
+
| { id?: "mirage" | null; value?: "on" | "off" | null }
|
|
708
|
+
| { id?: "opportunistic_encryption" | null; value?: "on" | "off" | null }
|
|
709
|
+
| { id?: "origin_error_page_pass_thru" | null; value?: "on" | "off" | null }
|
|
710
|
+
| { id?: "polish" | null; value?: "off" | "lossless" | "lossy" | null }
|
|
471
711
|
| { id?: "resolve_override" | null; value?: string | null }
|
|
472
712
|
| { id?: "respect_strong_etag" | null; value?: "on" | "off" | null }
|
|
713
|
+
| { id?: "response_buffering" | null; value?: "on" | "off" | null }
|
|
714
|
+
| { id?: "rocket_loader" | null; value?: "on" | "off" | null }
|
|
715
|
+
| {
|
|
716
|
+
id?: "security_level" | null;
|
|
717
|
+
value?:
|
|
718
|
+
| "off"
|
|
719
|
+
| "essentially_off"
|
|
720
|
+
| "low"
|
|
721
|
+
| "medium"
|
|
722
|
+
| "high"
|
|
723
|
+
| "under_attack"
|
|
724
|
+
| null;
|
|
725
|
+
}
|
|
726
|
+
| { id?: "sort_query_string_for_cache" | null; value?: "on" | "off" | null }
|
|
727
|
+
| {
|
|
728
|
+
id?: "ssl" | null;
|
|
729
|
+
value?: "off" | "flexible" | "full" | "strict" | "origin_pull" | null;
|
|
730
|
+
}
|
|
731
|
+
| { id?: "true_client_ip_header" | null; value?: "on" | "off" | null }
|
|
732
|
+
| { id?: "waf" | null; value?: "on" | "off" | null }
|
|
473
733
|
)[];
|
|
474
734
|
createdOn: string;
|
|
475
735
|
modifiedOn: string;
|
|
@@ -489,7 +749,36 @@ export const ListPageRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
|
489
749
|
id: Schema.String,
|
|
490
750
|
actions: Schema.Array(
|
|
491
751
|
Schema.Union([
|
|
492
|
-
Schema.
|
|
752
|
+
Schema.Struct({
|
|
753
|
+
id: Schema.optional(
|
|
754
|
+
Schema.Union([Schema.Literal("always_use_https"), Schema.Null]),
|
|
755
|
+
),
|
|
756
|
+
}),
|
|
757
|
+
Schema.Struct({
|
|
758
|
+
id: Schema.optional(
|
|
759
|
+
Schema.Union([
|
|
760
|
+
Schema.Literal("automatic_https_rewrites"),
|
|
761
|
+
Schema.Null,
|
|
762
|
+
]),
|
|
763
|
+
),
|
|
764
|
+
value: Schema.optional(
|
|
765
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
766
|
+
),
|
|
767
|
+
}),
|
|
768
|
+
Schema.Struct({
|
|
769
|
+
id: Schema.optional(
|
|
770
|
+
Schema.Union([Schema.Literal("browser_cache_ttl"), Schema.Null]),
|
|
771
|
+
),
|
|
772
|
+
value: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
773
|
+
}),
|
|
774
|
+
Schema.Struct({
|
|
775
|
+
id: Schema.optional(
|
|
776
|
+
Schema.Union([Schema.Literal("browser_check"), Schema.Null]),
|
|
777
|
+
),
|
|
778
|
+
value: Schema.optional(
|
|
779
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
780
|
+
),
|
|
781
|
+
}),
|
|
493
782
|
Schema.Struct({
|
|
494
783
|
id: Schema.optional(
|
|
495
784
|
Schema.Union([
|
|
@@ -650,6 +939,23 @@ export const ListPageRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
|
650
939
|
]),
|
|
651
940
|
),
|
|
652
941
|
}),
|
|
942
|
+
Schema.Struct({
|
|
943
|
+
id: Schema.optional(
|
|
944
|
+
Schema.Union([Schema.Literal("cache_level"), Schema.Null]),
|
|
945
|
+
),
|
|
946
|
+
value: Schema.optional(
|
|
947
|
+
Schema.Union([
|
|
948
|
+
Schema.Literals([
|
|
949
|
+
"bypass",
|
|
950
|
+
"basic",
|
|
951
|
+
"simplified",
|
|
952
|
+
"aggressive",
|
|
953
|
+
"cache_everything",
|
|
954
|
+
]),
|
|
955
|
+
Schema.Null,
|
|
956
|
+
]),
|
|
957
|
+
),
|
|
958
|
+
}),
|
|
653
959
|
Schema.Struct({
|
|
654
960
|
id: Schema.optional(
|
|
655
961
|
Schema.Union([Schema.Literal("cache_on_cookie"), Schema.Null]),
|
|
@@ -661,7 +967,10 @@ export const ListPageRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
|
661
967
|
Schema.Union([Schema.Literal("cache_ttl_by_status"), Schema.Null]),
|
|
662
968
|
),
|
|
663
969
|
value: Schema.optional(
|
|
664
|
-
Schema.Union([
|
|
970
|
+
Schema.Union([
|
|
971
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
972
|
+
Schema.Null,
|
|
973
|
+
]),
|
|
665
974
|
),
|
|
666
975
|
}),
|
|
667
976
|
Schema.Struct({
|
|
@@ -690,6 +999,14 @@ export const ListPageRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
|
690
999
|
),
|
|
691
1000
|
value: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
692
1001
|
}),
|
|
1002
|
+
Schema.Struct({
|
|
1003
|
+
id: Schema.optional(
|
|
1004
|
+
Schema.Union([Schema.Literal("email_obfuscation"), Schema.Null]),
|
|
1005
|
+
),
|
|
1006
|
+
value: Schema.optional(
|
|
1007
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
1008
|
+
),
|
|
1009
|
+
}),
|
|
693
1010
|
Schema.Struct({
|
|
694
1011
|
id: Schema.optional(
|
|
695
1012
|
Schema.Union([
|
|
@@ -727,6 +1044,55 @@ export const ListPageRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
|
727
1044
|
),
|
|
728
1045
|
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
729
1046
|
}),
|
|
1047
|
+
Schema.Struct({
|
|
1048
|
+
id: Schema.optional(
|
|
1049
|
+
Schema.Union([Schema.Literal("ip_geolocation"), Schema.Null]),
|
|
1050
|
+
),
|
|
1051
|
+
value: Schema.optional(
|
|
1052
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
1053
|
+
),
|
|
1054
|
+
}),
|
|
1055
|
+
Schema.Struct({
|
|
1056
|
+
id: Schema.optional(
|
|
1057
|
+
Schema.Union([Schema.Literal("mirage"), Schema.Null]),
|
|
1058
|
+
),
|
|
1059
|
+
value: Schema.optional(
|
|
1060
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
1061
|
+
),
|
|
1062
|
+
}),
|
|
1063
|
+
Schema.Struct({
|
|
1064
|
+
id: Schema.optional(
|
|
1065
|
+
Schema.Union([
|
|
1066
|
+
Schema.Literal("opportunistic_encryption"),
|
|
1067
|
+
Schema.Null,
|
|
1068
|
+
]),
|
|
1069
|
+
),
|
|
1070
|
+
value: Schema.optional(
|
|
1071
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
1072
|
+
),
|
|
1073
|
+
}),
|
|
1074
|
+
Schema.Struct({
|
|
1075
|
+
id: Schema.optional(
|
|
1076
|
+
Schema.Union([
|
|
1077
|
+
Schema.Literal("origin_error_page_pass_thru"),
|
|
1078
|
+
Schema.Null,
|
|
1079
|
+
]),
|
|
1080
|
+
),
|
|
1081
|
+
value: Schema.optional(
|
|
1082
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
1083
|
+
),
|
|
1084
|
+
}),
|
|
1085
|
+
Schema.Struct({
|
|
1086
|
+
id: Schema.optional(
|
|
1087
|
+
Schema.Union([Schema.Literal("polish"), Schema.Null]),
|
|
1088
|
+
),
|
|
1089
|
+
value: Schema.optional(
|
|
1090
|
+
Schema.Union([
|
|
1091
|
+
Schema.Literals(["off", "lossless", "lossy"]),
|
|
1092
|
+
Schema.Null,
|
|
1093
|
+
]),
|
|
1094
|
+
),
|
|
1095
|
+
}),
|
|
730
1096
|
Schema.Struct({
|
|
731
1097
|
id: Schema.optional(
|
|
732
1098
|
Schema.Union([Schema.Literal("resolve_override"), Schema.Null]),
|
|
@@ -741,16 +1107,97 @@ export const ListPageRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
|
741
1107
|
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
742
1108
|
),
|
|
743
1109
|
}),
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
Schema.
|
|
1110
|
+
Schema.Struct({
|
|
1111
|
+
id: Schema.optional(
|
|
1112
|
+
Schema.Union([Schema.Literal("response_buffering"), Schema.Null]),
|
|
1113
|
+
),
|
|
1114
|
+
value: Schema.optional(
|
|
1115
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
1116
|
+
),
|
|
1117
|
+
}),
|
|
1118
|
+
Schema.Struct({
|
|
1119
|
+
id: Schema.optional(
|
|
1120
|
+
Schema.Union([Schema.Literal("rocket_loader"), Schema.Null]),
|
|
1121
|
+
),
|
|
1122
|
+
value: Schema.optional(
|
|
1123
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
1124
|
+
),
|
|
1125
|
+
}),
|
|
1126
|
+
Schema.Struct({
|
|
1127
|
+
id: Schema.optional(
|
|
1128
|
+
Schema.Union([Schema.Literal("security_level"), Schema.Null]),
|
|
1129
|
+
),
|
|
1130
|
+
value: Schema.optional(
|
|
1131
|
+
Schema.Union([
|
|
1132
|
+
Schema.Literals([
|
|
1133
|
+
"off",
|
|
1134
|
+
"essentially_off",
|
|
1135
|
+
"low",
|
|
1136
|
+
"medium",
|
|
1137
|
+
"high",
|
|
1138
|
+
"under_attack",
|
|
1139
|
+
]),
|
|
1140
|
+
Schema.Null,
|
|
1141
|
+
]),
|
|
1142
|
+
),
|
|
1143
|
+
}),
|
|
1144
|
+
Schema.Struct({
|
|
1145
|
+
id: Schema.optional(
|
|
1146
|
+
Schema.Union([
|
|
1147
|
+
Schema.Literal("sort_query_string_for_cache"),
|
|
1148
|
+
Schema.Null,
|
|
1149
|
+
]),
|
|
1150
|
+
),
|
|
1151
|
+
value: Schema.optional(
|
|
1152
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
1153
|
+
),
|
|
1154
|
+
}),
|
|
1155
|
+
Schema.Struct({
|
|
1156
|
+
id: Schema.optional(
|
|
1157
|
+
Schema.Union([Schema.Literal("ssl"), Schema.Null]),
|
|
1158
|
+
),
|
|
1159
|
+
value: Schema.optional(
|
|
1160
|
+
Schema.Union([
|
|
1161
|
+
Schema.Literals([
|
|
1162
|
+
"off",
|
|
1163
|
+
"flexible",
|
|
1164
|
+
"full",
|
|
1165
|
+
"strict",
|
|
1166
|
+
"origin_pull",
|
|
1167
|
+
]),
|
|
1168
|
+
Schema.Null,
|
|
1169
|
+
]),
|
|
1170
|
+
),
|
|
1171
|
+
}),
|
|
1172
|
+
Schema.Struct({
|
|
1173
|
+
id: Schema.optional(
|
|
1174
|
+
Schema.Union([
|
|
1175
|
+
Schema.Literal("true_client_ip_header"),
|
|
1176
|
+
Schema.Null,
|
|
1177
|
+
]),
|
|
1178
|
+
),
|
|
1179
|
+
value: Schema.optional(
|
|
1180
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
1181
|
+
),
|
|
1182
|
+
}),
|
|
1183
|
+
Schema.Struct({
|
|
1184
|
+
id: Schema.optional(
|
|
1185
|
+
Schema.Union([Schema.Literal("waf"), Schema.Null]),
|
|
1186
|
+
),
|
|
1187
|
+
value: Schema.optional(
|
|
1188
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
1189
|
+
),
|
|
1190
|
+
}),
|
|
1191
|
+
]),
|
|
1192
|
+
),
|
|
1193
|
+
createdOn: Schema.String,
|
|
1194
|
+
modifiedOn: Schema.String,
|
|
1195
|
+
priority: Schema.Number,
|
|
1196
|
+
status: Schema.Literals(["active", "disabled"]),
|
|
1197
|
+
targets: Schema.Array(
|
|
1198
|
+
Schema.Struct({
|
|
1199
|
+
constraint: Schema.optional(
|
|
1200
|
+
Schema.Union([
|
|
754
1201
|
Schema.Struct({
|
|
755
1202
|
operator: Schema.Literals([
|
|
756
1203
|
"matches",
|
|
@@ -802,7 +1249,10 @@ export interface CreatePageRuleRequest {
|
|
|
802
1249
|
zoneId: string;
|
|
803
1250
|
/** Body param: The set of actions to perform if the targets of this rule match the request. Actions can redirect to another URL or override settings, but not both. */
|
|
804
1251
|
actions: (
|
|
805
|
-
|
|
|
1252
|
+
| { id?: "always_use_https" }
|
|
1253
|
+
| { id?: "automatic_https_rewrites"; value?: "on" | "off" }
|
|
1254
|
+
| { id?: "browser_cache_ttl"; value?: number }
|
|
1255
|
+
| { id?: "browser_check"; value?: "on" | "off" }
|
|
806
1256
|
| { id?: "bypass_cache_on_cookie"; value?: string }
|
|
807
1257
|
| { id?: "cache_by_device_type"; value?: "on" | "off" }
|
|
808
1258
|
| { id?: "cache_deception_armor"; value?: "on" | "off" }
|
|
@@ -820,6 +1270,15 @@ export interface CreatePageRuleRequest {
|
|
|
820
1270
|
user?: { deviceType?: boolean; geo?: boolean; lang?: boolean };
|
|
821
1271
|
};
|
|
822
1272
|
}
|
|
1273
|
+
| {
|
|
1274
|
+
id?: "cache_level";
|
|
1275
|
+
value?:
|
|
1276
|
+
| "bypass"
|
|
1277
|
+
| "basic"
|
|
1278
|
+
| "simplified"
|
|
1279
|
+
| "aggressive"
|
|
1280
|
+
| "cache_everything";
|
|
1281
|
+
}
|
|
823
1282
|
| { id?: "cache_on_cookie"; value?: string }
|
|
824
1283
|
| { id?: "cache_ttl_by_status"; value?: Record<string, unknown> }
|
|
825
1284
|
| { id?: "disable_apps" }
|
|
@@ -827,14 +1286,39 @@ export interface CreatePageRuleRequest {
|
|
|
827
1286
|
| { id?: "disable_security" }
|
|
828
1287
|
| { id?: "disable_zaraz" }
|
|
829
1288
|
| { id?: "edge_cache_ttl"; value?: number }
|
|
1289
|
+
| { id?: "email_obfuscation"; value?: "on" | "off" }
|
|
830
1290
|
| { id?: "explicit_cache_control"; value?: "on" | "off" }
|
|
831
1291
|
| {
|
|
832
1292
|
id?: "forwarding_url";
|
|
833
1293
|
value?: { statusCode?: "301" | "302"; url?: string };
|
|
834
1294
|
}
|
|
835
1295
|
| { id?: "host_header_override"; value?: string }
|
|
1296
|
+
| { id?: "ip_geolocation"; value?: "on" | "off" }
|
|
1297
|
+
| { id?: "mirage"; value?: "on" | "off" }
|
|
1298
|
+
| { id?: "opportunistic_encryption"; value?: "on" | "off" }
|
|
1299
|
+
| { id?: "origin_error_page_pass_thru"; value?: "on" | "off" }
|
|
1300
|
+
| { id?: "polish"; value?: "off" | "lossless" | "lossy" }
|
|
836
1301
|
| { id?: "resolve_override"; value?: string }
|
|
837
1302
|
| { id?: "respect_strong_etag"; value?: "on" | "off" }
|
|
1303
|
+
| { id?: "response_buffering"; value?: "on" | "off" }
|
|
1304
|
+
| { id?: "rocket_loader"; value?: "on" | "off" }
|
|
1305
|
+
| {
|
|
1306
|
+
id?: "security_level";
|
|
1307
|
+
value?:
|
|
1308
|
+
| "off"
|
|
1309
|
+
| "essentially_off"
|
|
1310
|
+
| "low"
|
|
1311
|
+
| "medium"
|
|
1312
|
+
| "high"
|
|
1313
|
+
| "under_attack";
|
|
1314
|
+
}
|
|
1315
|
+
| { id?: "sort_query_string_for_cache"; value?: "on" | "off" }
|
|
1316
|
+
| {
|
|
1317
|
+
id?: "ssl";
|
|
1318
|
+
value?: "off" | "flexible" | "full" | "strict" | "origin_pull";
|
|
1319
|
+
}
|
|
1320
|
+
| { id?: "true_client_ip_header"; value?: "on" | "off" }
|
|
1321
|
+
| { id?: "waf"; value?: "on" | "off" }
|
|
838
1322
|
)[];
|
|
839
1323
|
/** Body param: The rule targets to evaluate on each request. */
|
|
840
1324
|
targets: {
|
|
@@ -854,7 +1338,21 @@ export const CreatePageRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
854
1338
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
855
1339
|
actions: Schema.Array(
|
|
856
1340
|
Schema.Union([
|
|
857
|
-
Schema.
|
|
1341
|
+
Schema.Struct({
|
|
1342
|
+
id: Schema.optional(Schema.Literal("always_use_https")),
|
|
1343
|
+
}),
|
|
1344
|
+
Schema.Struct({
|
|
1345
|
+
id: Schema.optional(Schema.Literal("automatic_https_rewrites")),
|
|
1346
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
1347
|
+
}),
|
|
1348
|
+
Schema.Struct({
|
|
1349
|
+
id: Schema.optional(Schema.Literal("browser_cache_ttl")),
|
|
1350
|
+
value: Schema.optional(Schema.Number),
|
|
1351
|
+
}),
|
|
1352
|
+
Schema.Struct({
|
|
1353
|
+
id: Schema.optional(Schema.Literal("browser_check")),
|
|
1354
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
1355
|
+
}),
|
|
858
1356
|
Schema.Struct({
|
|
859
1357
|
id: Schema.optional(Schema.Literal("bypass_cache_on_cookie")),
|
|
860
1358
|
value: Schema.optional(Schema.String),
|
|
@@ -940,13 +1438,25 @@ export const CreatePageRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
940
1438
|
),
|
|
941
1439
|
),
|
|
942
1440
|
}),
|
|
1441
|
+
Schema.Struct({
|
|
1442
|
+
id: Schema.optional(Schema.Literal("cache_level")),
|
|
1443
|
+
value: Schema.optional(
|
|
1444
|
+
Schema.Literals([
|
|
1445
|
+
"bypass",
|
|
1446
|
+
"basic",
|
|
1447
|
+
"simplified",
|
|
1448
|
+
"aggressive",
|
|
1449
|
+
"cache_everything",
|
|
1450
|
+
]),
|
|
1451
|
+
),
|
|
1452
|
+
}),
|
|
943
1453
|
Schema.Struct({
|
|
944
1454
|
id: Schema.optional(Schema.Literal("cache_on_cookie")),
|
|
945
1455
|
value: Schema.optional(Schema.String),
|
|
946
1456
|
}),
|
|
947
1457
|
Schema.Struct({
|
|
948
1458
|
id: Schema.optional(Schema.Literal("cache_ttl_by_status")),
|
|
949
|
-
value: Schema.optional(Schema.
|
|
1459
|
+
value: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
|
|
950
1460
|
}),
|
|
951
1461
|
Schema.Struct({
|
|
952
1462
|
id: Schema.optional(Schema.Literal("disable_apps")),
|
|
@@ -964,6 +1474,10 @@ export const CreatePageRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
964
1474
|
id: Schema.optional(Schema.Literal("edge_cache_ttl")),
|
|
965
1475
|
value: Schema.optional(Schema.Number),
|
|
966
1476
|
}),
|
|
1477
|
+
Schema.Struct({
|
|
1478
|
+
id: Schema.optional(Schema.Literal("email_obfuscation")),
|
|
1479
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
1480
|
+
}),
|
|
967
1481
|
Schema.Struct({
|
|
968
1482
|
id: Schema.optional(Schema.Literal("explicit_cache_control")),
|
|
969
1483
|
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
@@ -981,6 +1495,26 @@ export const CreatePageRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
981
1495
|
id: Schema.optional(Schema.Literal("host_header_override")),
|
|
982
1496
|
value: Schema.optional(Schema.String),
|
|
983
1497
|
}),
|
|
1498
|
+
Schema.Struct({
|
|
1499
|
+
id: Schema.optional(Schema.Literal("ip_geolocation")),
|
|
1500
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
1501
|
+
}),
|
|
1502
|
+
Schema.Struct({
|
|
1503
|
+
id: Schema.optional(Schema.Literal("mirage")),
|
|
1504
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
1505
|
+
}),
|
|
1506
|
+
Schema.Struct({
|
|
1507
|
+
id: Schema.optional(Schema.Literal("opportunistic_encryption")),
|
|
1508
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
1509
|
+
}),
|
|
1510
|
+
Schema.Struct({
|
|
1511
|
+
id: Schema.optional(Schema.Literal("origin_error_page_pass_thru")),
|
|
1512
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
1513
|
+
}),
|
|
1514
|
+
Schema.Struct({
|
|
1515
|
+
id: Schema.optional(Schema.Literal("polish")),
|
|
1516
|
+
value: Schema.optional(Schema.Literals(["off", "lossless", "lossy"])),
|
|
1517
|
+
}),
|
|
984
1518
|
Schema.Struct({
|
|
985
1519
|
id: Schema.optional(Schema.Literal("resolve_override")),
|
|
986
1520
|
value: Schema.optional(Schema.String),
|
|
@@ -989,6 +1523,45 @@ export const CreatePageRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
989
1523
|
id: Schema.optional(Schema.Literal("respect_strong_etag")),
|
|
990
1524
|
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
991
1525
|
}),
|
|
1526
|
+
Schema.Struct({
|
|
1527
|
+
id: Schema.optional(Schema.Literal("response_buffering")),
|
|
1528
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
1529
|
+
}),
|
|
1530
|
+
Schema.Struct({
|
|
1531
|
+
id: Schema.optional(Schema.Literal("rocket_loader")),
|
|
1532
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
1533
|
+
}),
|
|
1534
|
+
Schema.Struct({
|
|
1535
|
+
id: Schema.optional(Schema.Literal("security_level")),
|
|
1536
|
+
value: Schema.optional(
|
|
1537
|
+
Schema.Literals([
|
|
1538
|
+
"off",
|
|
1539
|
+
"essentially_off",
|
|
1540
|
+
"low",
|
|
1541
|
+
"medium",
|
|
1542
|
+
"high",
|
|
1543
|
+
"under_attack",
|
|
1544
|
+
]),
|
|
1545
|
+
),
|
|
1546
|
+
}),
|
|
1547
|
+
Schema.Struct({
|
|
1548
|
+
id: Schema.optional(Schema.Literal("sort_query_string_for_cache")),
|
|
1549
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
1550
|
+
}),
|
|
1551
|
+
Schema.Struct({
|
|
1552
|
+
id: Schema.optional(Schema.Literal("ssl")),
|
|
1553
|
+
value: Schema.optional(
|
|
1554
|
+
Schema.Literals(["off", "flexible", "full", "strict", "origin_pull"]),
|
|
1555
|
+
),
|
|
1556
|
+
}),
|
|
1557
|
+
Schema.Struct({
|
|
1558
|
+
id: Schema.optional(Schema.Literal("true_client_ip_header")),
|
|
1559
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
1560
|
+
}),
|
|
1561
|
+
Schema.Struct({
|
|
1562
|
+
id: Schema.optional(Schema.Literal("waf")),
|
|
1563
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
1564
|
+
}),
|
|
992
1565
|
]),
|
|
993
1566
|
),
|
|
994
1567
|
targets: Schema.Array(
|
|
@@ -1019,7 +1592,10 @@ export interface CreatePageRuleResponse {
|
|
|
1019
1592
|
id: string;
|
|
1020
1593
|
/** The set of actions to perform if the targets of this rule match the request. Actions can redirect to another URL or override settings, but not both. */
|
|
1021
1594
|
actions: (
|
|
1022
|
-
|
|
|
1595
|
+
| { id?: "always_use_https" | null }
|
|
1596
|
+
| { id?: "automatic_https_rewrites" | null; value?: "on" | "off" | null }
|
|
1597
|
+
| { id?: "browser_cache_ttl" | null; value?: number | null }
|
|
1598
|
+
| { id?: "browser_check" | null; value?: "on" | "off" | null }
|
|
1023
1599
|
| { id?: "bypass_cache_on_cookie" | null; value?: string | null }
|
|
1024
1600
|
| { id?: "cache_by_device_type" | null; value?: "on" | "off" | null }
|
|
1025
1601
|
| { id?: "cache_deception_armor" | null; value?: "on" | "off" | null }
|
|
@@ -1047,6 +1623,16 @@ export interface CreatePageRuleResponse {
|
|
|
1047
1623
|
} | null;
|
|
1048
1624
|
} | null;
|
|
1049
1625
|
}
|
|
1626
|
+
| {
|
|
1627
|
+
id?: "cache_level" | null;
|
|
1628
|
+
value?:
|
|
1629
|
+
| "bypass"
|
|
1630
|
+
| "basic"
|
|
1631
|
+
| "simplified"
|
|
1632
|
+
| "aggressive"
|
|
1633
|
+
| "cache_everything"
|
|
1634
|
+
| null;
|
|
1635
|
+
}
|
|
1050
1636
|
| { id?: "cache_on_cookie" | null; value?: string | null }
|
|
1051
1637
|
| {
|
|
1052
1638
|
id?: "cache_ttl_by_status" | null;
|
|
@@ -1057,6 +1643,7 @@ export interface CreatePageRuleResponse {
|
|
|
1057
1643
|
| { id?: "disable_security" | null }
|
|
1058
1644
|
| { id?: "disable_zaraz" | null }
|
|
1059
1645
|
| { id?: "edge_cache_ttl" | null; value?: number | null }
|
|
1646
|
+
| { id?: "email_obfuscation" | null; value?: "on" | "off" | null }
|
|
1060
1647
|
| { id?: "explicit_cache_control" | null; value?: "on" | "off" | null }
|
|
1061
1648
|
| {
|
|
1062
1649
|
id?: "forwarding_url" | null;
|
|
@@ -1066,8 +1653,33 @@ export interface CreatePageRuleResponse {
|
|
|
1066
1653
|
} | null;
|
|
1067
1654
|
}
|
|
1068
1655
|
| { id?: "host_header_override" | null; value?: string | null }
|
|
1656
|
+
| { id?: "ip_geolocation" | null; value?: "on" | "off" | null }
|
|
1657
|
+
| { id?: "mirage" | null; value?: "on" | "off" | null }
|
|
1658
|
+
| { id?: "opportunistic_encryption" | null; value?: "on" | "off" | null }
|
|
1659
|
+
| { id?: "origin_error_page_pass_thru" | null; value?: "on" | "off" | null }
|
|
1660
|
+
| { id?: "polish" | null; value?: "off" | "lossless" | "lossy" | null }
|
|
1069
1661
|
| { id?: "resolve_override" | null; value?: string | null }
|
|
1070
1662
|
| { id?: "respect_strong_etag" | null; value?: "on" | "off" | null }
|
|
1663
|
+
| { id?: "response_buffering" | null; value?: "on" | "off" | null }
|
|
1664
|
+
| { id?: "rocket_loader" | null; value?: "on" | "off" | null }
|
|
1665
|
+
| {
|
|
1666
|
+
id?: "security_level" | null;
|
|
1667
|
+
value?:
|
|
1668
|
+
| "off"
|
|
1669
|
+
| "essentially_off"
|
|
1670
|
+
| "low"
|
|
1671
|
+
| "medium"
|
|
1672
|
+
| "high"
|
|
1673
|
+
| "under_attack"
|
|
1674
|
+
| null;
|
|
1675
|
+
}
|
|
1676
|
+
| { id?: "sort_query_string_for_cache" | null; value?: "on" | "off" | null }
|
|
1677
|
+
| {
|
|
1678
|
+
id?: "ssl" | null;
|
|
1679
|
+
value?: "off" | "flexible" | "full" | "strict" | "origin_pull" | null;
|
|
1680
|
+
}
|
|
1681
|
+
| { id?: "true_client_ip_header" | null; value?: "on" | "off" | null }
|
|
1682
|
+
| { id?: "waf" | null; value?: "on" | "off" | null }
|
|
1071
1683
|
)[];
|
|
1072
1684
|
/** The timestamp of when the Page Rule was created. */
|
|
1073
1685
|
createdOn: string;
|
|
@@ -1092,7 +1704,36 @@ export const CreatePageRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
1092
1704
|
id: Schema.String,
|
|
1093
1705
|
actions: Schema.Array(
|
|
1094
1706
|
Schema.Union([
|
|
1095
|
-
Schema.
|
|
1707
|
+
Schema.Struct({
|
|
1708
|
+
id: Schema.optional(
|
|
1709
|
+
Schema.Union([Schema.Literal("always_use_https"), Schema.Null]),
|
|
1710
|
+
),
|
|
1711
|
+
}),
|
|
1712
|
+
Schema.Struct({
|
|
1713
|
+
id: Schema.optional(
|
|
1714
|
+
Schema.Union([
|
|
1715
|
+
Schema.Literal("automatic_https_rewrites"),
|
|
1716
|
+
Schema.Null,
|
|
1717
|
+
]),
|
|
1718
|
+
),
|
|
1719
|
+
value: Schema.optional(
|
|
1720
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
1721
|
+
),
|
|
1722
|
+
}),
|
|
1723
|
+
Schema.Struct({
|
|
1724
|
+
id: Schema.optional(
|
|
1725
|
+
Schema.Union([Schema.Literal("browser_cache_ttl"), Schema.Null]),
|
|
1726
|
+
),
|
|
1727
|
+
value: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1728
|
+
}),
|
|
1729
|
+
Schema.Struct({
|
|
1730
|
+
id: Schema.optional(
|
|
1731
|
+
Schema.Union([Schema.Literal("browser_check"), Schema.Null]),
|
|
1732
|
+
),
|
|
1733
|
+
value: Schema.optional(
|
|
1734
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
1735
|
+
),
|
|
1736
|
+
}),
|
|
1096
1737
|
Schema.Struct({
|
|
1097
1738
|
id: Schema.optional(
|
|
1098
1739
|
Schema.Union([
|
|
@@ -1253,6 +1894,23 @@ export const CreatePageRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
1253
1894
|
]),
|
|
1254
1895
|
),
|
|
1255
1896
|
}),
|
|
1897
|
+
Schema.Struct({
|
|
1898
|
+
id: Schema.optional(
|
|
1899
|
+
Schema.Union([Schema.Literal("cache_level"), Schema.Null]),
|
|
1900
|
+
),
|
|
1901
|
+
value: Schema.optional(
|
|
1902
|
+
Schema.Union([
|
|
1903
|
+
Schema.Literals([
|
|
1904
|
+
"bypass",
|
|
1905
|
+
"basic",
|
|
1906
|
+
"simplified",
|
|
1907
|
+
"aggressive",
|
|
1908
|
+
"cache_everything",
|
|
1909
|
+
]),
|
|
1910
|
+
Schema.Null,
|
|
1911
|
+
]),
|
|
1912
|
+
),
|
|
1913
|
+
}),
|
|
1256
1914
|
Schema.Struct({
|
|
1257
1915
|
id: Schema.optional(
|
|
1258
1916
|
Schema.Union([Schema.Literal("cache_on_cookie"), Schema.Null]),
|
|
@@ -1264,7 +1922,10 @@ export const CreatePageRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
1264
1922
|
Schema.Union([Schema.Literal("cache_ttl_by_status"), Schema.Null]),
|
|
1265
1923
|
),
|
|
1266
1924
|
value: Schema.optional(
|
|
1267
|
-
Schema.Union([
|
|
1925
|
+
Schema.Union([
|
|
1926
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
1927
|
+
Schema.Null,
|
|
1928
|
+
]),
|
|
1268
1929
|
),
|
|
1269
1930
|
}),
|
|
1270
1931
|
Schema.Struct({
|
|
@@ -1293,6 +1954,14 @@ export const CreatePageRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
1293
1954
|
),
|
|
1294
1955
|
value: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1295
1956
|
}),
|
|
1957
|
+
Schema.Struct({
|
|
1958
|
+
id: Schema.optional(
|
|
1959
|
+
Schema.Union([Schema.Literal("email_obfuscation"), Schema.Null]),
|
|
1960
|
+
),
|
|
1961
|
+
value: Schema.optional(
|
|
1962
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
1963
|
+
),
|
|
1964
|
+
}),
|
|
1296
1965
|
Schema.Struct({
|
|
1297
1966
|
id: Schema.optional(
|
|
1298
1967
|
Schema.Union([
|
|
@@ -1330,6 +1999,55 @@ export const CreatePageRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
1330
1999
|
),
|
|
1331
2000
|
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1332
2001
|
}),
|
|
2002
|
+
Schema.Struct({
|
|
2003
|
+
id: Schema.optional(
|
|
2004
|
+
Schema.Union([Schema.Literal("ip_geolocation"), Schema.Null]),
|
|
2005
|
+
),
|
|
2006
|
+
value: Schema.optional(
|
|
2007
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
2008
|
+
),
|
|
2009
|
+
}),
|
|
2010
|
+
Schema.Struct({
|
|
2011
|
+
id: Schema.optional(
|
|
2012
|
+
Schema.Union([Schema.Literal("mirage"), Schema.Null]),
|
|
2013
|
+
),
|
|
2014
|
+
value: Schema.optional(
|
|
2015
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
2016
|
+
),
|
|
2017
|
+
}),
|
|
2018
|
+
Schema.Struct({
|
|
2019
|
+
id: Schema.optional(
|
|
2020
|
+
Schema.Union([
|
|
2021
|
+
Schema.Literal("opportunistic_encryption"),
|
|
2022
|
+
Schema.Null,
|
|
2023
|
+
]),
|
|
2024
|
+
),
|
|
2025
|
+
value: Schema.optional(
|
|
2026
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
2027
|
+
),
|
|
2028
|
+
}),
|
|
2029
|
+
Schema.Struct({
|
|
2030
|
+
id: Schema.optional(
|
|
2031
|
+
Schema.Union([
|
|
2032
|
+
Schema.Literal("origin_error_page_pass_thru"),
|
|
2033
|
+
Schema.Null,
|
|
2034
|
+
]),
|
|
2035
|
+
),
|
|
2036
|
+
value: Schema.optional(
|
|
2037
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
2038
|
+
),
|
|
2039
|
+
}),
|
|
2040
|
+
Schema.Struct({
|
|
2041
|
+
id: Schema.optional(
|
|
2042
|
+
Schema.Union([Schema.Literal("polish"), Schema.Null]),
|
|
2043
|
+
),
|
|
2044
|
+
value: Schema.optional(
|
|
2045
|
+
Schema.Union([
|
|
2046
|
+
Schema.Literals(["off", "lossless", "lossy"]),
|
|
2047
|
+
Schema.Null,
|
|
2048
|
+
]),
|
|
2049
|
+
),
|
|
2050
|
+
}),
|
|
1333
2051
|
Schema.Struct({
|
|
1334
2052
|
id: Schema.optional(
|
|
1335
2053
|
Schema.Union([Schema.Literal("resolve_override"), Schema.Null]),
|
|
@@ -1344,33 +2062,114 @@ export const CreatePageRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
1344
2062
|
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
1345
2063
|
),
|
|
1346
2064
|
}),
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
Schema.
|
|
1357
|
-
Schema.
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
2065
|
+
Schema.Struct({
|
|
2066
|
+
id: Schema.optional(
|
|
2067
|
+
Schema.Union([Schema.Literal("response_buffering"), Schema.Null]),
|
|
2068
|
+
),
|
|
2069
|
+
value: Schema.optional(
|
|
2070
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
2071
|
+
),
|
|
2072
|
+
}),
|
|
2073
|
+
Schema.Struct({
|
|
2074
|
+
id: Schema.optional(
|
|
2075
|
+
Schema.Union([Schema.Literal("rocket_loader"), Schema.Null]),
|
|
2076
|
+
),
|
|
2077
|
+
value: Schema.optional(
|
|
2078
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
2079
|
+
),
|
|
2080
|
+
}),
|
|
2081
|
+
Schema.Struct({
|
|
2082
|
+
id: Schema.optional(
|
|
2083
|
+
Schema.Union([Schema.Literal("security_level"), Schema.Null]),
|
|
2084
|
+
),
|
|
2085
|
+
value: Schema.optional(
|
|
2086
|
+
Schema.Union([
|
|
2087
|
+
Schema.Literals([
|
|
2088
|
+
"off",
|
|
2089
|
+
"essentially_off",
|
|
2090
|
+
"low",
|
|
2091
|
+
"medium",
|
|
2092
|
+
"high",
|
|
2093
|
+
"under_attack",
|
|
2094
|
+
]),
|
|
2095
|
+
Schema.Null,
|
|
2096
|
+
]),
|
|
2097
|
+
),
|
|
2098
|
+
}),
|
|
2099
|
+
Schema.Struct({
|
|
2100
|
+
id: Schema.optional(
|
|
2101
|
+
Schema.Union([
|
|
2102
|
+
Schema.Literal("sort_query_string_for_cache"),
|
|
2103
|
+
Schema.Null,
|
|
2104
|
+
]),
|
|
2105
|
+
),
|
|
2106
|
+
value: Schema.optional(
|
|
2107
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
2108
|
+
),
|
|
2109
|
+
}),
|
|
2110
|
+
Schema.Struct({
|
|
2111
|
+
id: Schema.optional(
|
|
2112
|
+
Schema.Union([Schema.Literal("ssl"), Schema.Null]),
|
|
2113
|
+
),
|
|
2114
|
+
value: Schema.optional(
|
|
2115
|
+
Schema.Union([
|
|
2116
|
+
Schema.Literals([
|
|
2117
|
+
"off",
|
|
2118
|
+
"flexible",
|
|
2119
|
+
"full",
|
|
2120
|
+
"strict",
|
|
2121
|
+
"origin_pull",
|
|
2122
|
+
]),
|
|
2123
|
+
Schema.Null,
|
|
2124
|
+
]),
|
|
2125
|
+
),
|
|
2126
|
+
}),
|
|
2127
|
+
Schema.Struct({
|
|
2128
|
+
id: Schema.optional(
|
|
2129
|
+
Schema.Union([
|
|
2130
|
+
Schema.Literal("true_client_ip_header"),
|
|
2131
|
+
Schema.Null,
|
|
2132
|
+
]),
|
|
2133
|
+
),
|
|
2134
|
+
value: Schema.optional(
|
|
2135
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
2136
|
+
),
|
|
2137
|
+
}),
|
|
2138
|
+
Schema.Struct({
|
|
2139
|
+
id: Schema.optional(
|
|
2140
|
+
Schema.Union([Schema.Literal("waf"), Schema.Null]),
|
|
2141
|
+
),
|
|
2142
|
+
value: Schema.optional(
|
|
2143
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
2144
|
+
),
|
|
2145
|
+
}),
|
|
2146
|
+
]),
|
|
2147
|
+
),
|
|
2148
|
+
createdOn: Schema.String,
|
|
2149
|
+
modifiedOn: Schema.String,
|
|
2150
|
+
priority: Schema.Number,
|
|
2151
|
+
status: Schema.Literals(["active", "disabled"]),
|
|
2152
|
+
targets: Schema.Array(
|
|
2153
|
+
Schema.Struct({
|
|
2154
|
+
constraint: Schema.optional(
|
|
2155
|
+
Schema.Union([
|
|
2156
|
+
Schema.Struct({
|
|
2157
|
+
operator: Schema.Literals([
|
|
2158
|
+
"matches",
|
|
2159
|
+
"contains",
|
|
2160
|
+
"equals",
|
|
2161
|
+
"not_equal",
|
|
2162
|
+
"not_contain",
|
|
2163
|
+
]),
|
|
2164
|
+
value: Schema.String,
|
|
2165
|
+
}),
|
|
2166
|
+
Schema.Null,
|
|
2167
|
+
]),
|
|
2168
|
+
),
|
|
2169
|
+
target: Schema.optional(
|
|
2170
|
+
Schema.Union([Schema.Literal("url"), Schema.Null]),
|
|
2171
|
+
),
|
|
2172
|
+
}),
|
|
1374
2173
|
),
|
|
1375
2174
|
},
|
|
1376
2175
|
)
|
|
@@ -1408,7 +2207,10 @@ export interface UpdatePageRuleRequest {
|
|
|
1408
2207
|
zoneId: string;
|
|
1409
2208
|
/** Body param: The set of actions to perform if the targets of this rule match the request. Actions can redirect to another URL or override settings, but not both. */
|
|
1410
2209
|
actions: (
|
|
1411
|
-
|
|
|
2210
|
+
| { id?: "always_use_https" }
|
|
2211
|
+
| { id?: "automatic_https_rewrites"; value?: "on" | "off" }
|
|
2212
|
+
| { id?: "browser_cache_ttl"; value?: number }
|
|
2213
|
+
| { id?: "browser_check"; value?: "on" | "off" }
|
|
1412
2214
|
| { id?: "bypass_cache_on_cookie"; value?: string }
|
|
1413
2215
|
| { id?: "cache_by_device_type"; value?: "on" | "off" }
|
|
1414
2216
|
| { id?: "cache_deception_armor"; value?: "on" | "off" }
|
|
@@ -1426,6 +2228,15 @@ export interface UpdatePageRuleRequest {
|
|
|
1426
2228
|
user?: { deviceType?: boolean; geo?: boolean; lang?: boolean };
|
|
1427
2229
|
};
|
|
1428
2230
|
}
|
|
2231
|
+
| {
|
|
2232
|
+
id?: "cache_level";
|
|
2233
|
+
value?:
|
|
2234
|
+
| "bypass"
|
|
2235
|
+
| "basic"
|
|
2236
|
+
| "simplified"
|
|
2237
|
+
| "aggressive"
|
|
2238
|
+
| "cache_everything";
|
|
2239
|
+
}
|
|
1429
2240
|
| { id?: "cache_on_cookie"; value?: string }
|
|
1430
2241
|
| { id?: "cache_ttl_by_status"; value?: Record<string, unknown> }
|
|
1431
2242
|
| { id?: "disable_apps" }
|
|
@@ -1433,14 +2244,39 @@ export interface UpdatePageRuleRequest {
|
|
|
1433
2244
|
| { id?: "disable_security" }
|
|
1434
2245
|
| { id?: "disable_zaraz" }
|
|
1435
2246
|
| { id?: "edge_cache_ttl"; value?: number }
|
|
2247
|
+
| { id?: "email_obfuscation"; value?: "on" | "off" }
|
|
1436
2248
|
| { id?: "explicit_cache_control"; value?: "on" | "off" }
|
|
1437
2249
|
| {
|
|
1438
2250
|
id?: "forwarding_url";
|
|
1439
2251
|
value?: { statusCode?: "301" | "302"; url?: string };
|
|
1440
2252
|
}
|
|
1441
2253
|
| { id?: "host_header_override"; value?: string }
|
|
2254
|
+
| { id?: "ip_geolocation"; value?: "on" | "off" }
|
|
2255
|
+
| { id?: "mirage"; value?: "on" | "off" }
|
|
2256
|
+
| { id?: "opportunistic_encryption"; value?: "on" | "off" }
|
|
2257
|
+
| { id?: "origin_error_page_pass_thru"; value?: "on" | "off" }
|
|
2258
|
+
| { id?: "polish"; value?: "off" | "lossless" | "lossy" }
|
|
1442
2259
|
| { id?: "resolve_override"; value?: string }
|
|
1443
2260
|
| { id?: "respect_strong_etag"; value?: "on" | "off" }
|
|
2261
|
+
| { id?: "response_buffering"; value?: "on" | "off" }
|
|
2262
|
+
| { id?: "rocket_loader"; value?: "on" | "off" }
|
|
2263
|
+
| {
|
|
2264
|
+
id?: "security_level";
|
|
2265
|
+
value?:
|
|
2266
|
+
| "off"
|
|
2267
|
+
| "essentially_off"
|
|
2268
|
+
| "low"
|
|
2269
|
+
| "medium"
|
|
2270
|
+
| "high"
|
|
2271
|
+
| "under_attack";
|
|
2272
|
+
}
|
|
2273
|
+
| { id?: "sort_query_string_for_cache"; value?: "on" | "off" }
|
|
2274
|
+
| {
|
|
2275
|
+
id?: "ssl";
|
|
2276
|
+
value?: "off" | "flexible" | "full" | "strict" | "origin_pull";
|
|
2277
|
+
}
|
|
2278
|
+
| { id?: "true_client_ip_header"; value?: "on" | "off" }
|
|
2279
|
+
| { id?: "waf"; value?: "on" | "off" }
|
|
1444
2280
|
)[];
|
|
1445
2281
|
/** Body param: The rule targets to evaluate on each request. */
|
|
1446
2282
|
targets: {
|
|
@@ -1461,7 +2297,21 @@ export const UpdatePageRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1461
2297
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
1462
2298
|
actions: Schema.Array(
|
|
1463
2299
|
Schema.Union([
|
|
1464
|
-
Schema.
|
|
2300
|
+
Schema.Struct({
|
|
2301
|
+
id: Schema.optional(Schema.Literal("always_use_https")),
|
|
2302
|
+
}),
|
|
2303
|
+
Schema.Struct({
|
|
2304
|
+
id: Schema.optional(Schema.Literal("automatic_https_rewrites")),
|
|
2305
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
2306
|
+
}),
|
|
2307
|
+
Schema.Struct({
|
|
2308
|
+
id: Schema.optional(Schema.Literal("browser_cache_ttl")),
|
|
2309
|
+
value: Schema.optional(Schema.Number),
|
|
2310
|
+
}),
|
|
2311
|
+
Schema.Struct({
|
|
2312
|
+
id: Schema.optional(Schema.Literal("browser_check")),
|
|
2313
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
2314
|
+
}),
|
|
1465
2315
|
Schema.Struct({
|
|
1466
2316
|
id: Schema.optional(Schema.Literal("bypass_cache_on_cookie")),
|
|
1467
2317
|
value: Schema.optional(Schema.String),
|
|
@@ -1547,13 +2397,25 @@ export const UpdatePageRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1547
2397
|
),
|
|
1548
2398
|
),
|
|
1549
2399
|
}),
|
|
2400
|
+
Schema.Struct({
|
|
2401
|
+
id: Schema.optional(Schema.Literal("cache_level")),
|
|
2402
|
+
value: Schema.optional(
|
|
2403
|
+
Schema.Literals([
|
|
2404
|
+
"bypass",
|
|
2405
|
+
"basic",
|
|
2406
|
+
"simplified",
|
|
2407
|
+
"aggressive",
|
|
2408
|
+
"cache_everything",
|
|
2409
|
+
]),
|
|
2410
|
+
),
|
|
2411
|
+
}),
|
|
1550
2412
|
Schema.Struct({
|
|
1551
2413
|
id: Schema.optional(Schema.Literal("cache_on_cookie")),
|
|
1552
2414
|
value: Schema.optional(Schema.String),
|
|
1553
2415
|
}),
|
|
1554
2416
|
Schema.Struct({
|
|
1555
2417
|
id: Schema.optional(Schema.Literal("cache_ttl_by_status")),
|
|
1556
|
-
value: Schema.optional(Schema.
|
|
2418
|
+
value: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
|
|
1557
2419
|
}),
|
|
1558
2420
|
Schema.Struct({
|
|
1559
2421
|
id: Schema.optional(Schema.Literal("disable_apps")),
|
|
@@ -1571,6 +2433,10 @@ export const UpdatePageRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1571
2433
|
id: Schema.optional(Schema.Literal("edge_cache_ttl")),
|
|
1572
2434
|
value: Schema.optional(Schema.Number),
|
|
1573
2435
|
}),
|
|
2436
|
+
Schema.Struct({
|
|
2437
|
+
id: Schema.optional(Schema.Literal("email_obfuscation")),
|
|
2438
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
2439
|
+
}),
|
|
1574
2440
|
Schema.Struct({
|
|
1575
2441
|
id: Schema.optional(Schema.Literal("explicit_cache_control")),
|
|
1576
2442
|
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
@@ -1588,6 +2454,26 @@ export const UpdatePageRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1588
2454
|
id: Schema.optional(Schema.Literal("host_header_override")),
|
|
1589
2455
|
value: Schema.optional(Schema.String),
|
|
1590
2456
|
}),
|
|
2457
|
+
Schema.Struct({
|
|
2458
|
+
id: Schema.optional(Schema.Literal("ip_geolocation")),
|
|
2459
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
2460
|
+
}),
|
|
2461
|
+
Schema.Struct({
|
|
2462
|
+
id: Schema.optional(Schema.Literal("mirage")),
|
|
2463
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
2464
|
+
}),
|
|
2465
|
+
Schema.Struct({
|
|
2466
|
+
id: Schema.optional(Schema.Literal("opportunistic_encryption")),
|
|
2467
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
2468
|
+
}),
|
|
2469
|
+
Schema.Struct({
|
|
2470
|
+
id: Schema.optional(Schema.Literal("origin_error_page_pass_thru")),
|
|
2471
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
2472
|
+
}),
|
|
2473
|
+
Schema.Struct({
|
|
2474
|
+
id: Schema.optional(Schema.Literal("polish")),
|
|
2475
|
+
value: Schema.optional(Schema.Literals(["off", "lossless", "lossy"])),
|
|
2476
|
+
}),
|
|
1591
2477
|
Schema.Struct({
|
|
1592
2478
|
id: Schema.optional(Schema.Literal("resolve_override")),
|
|
1593
2479
|
value: Schema.optional(Schema.String),
|
|
@@ -1596,6 +2482,45 @@ export const UpdatePageRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1596
2482
|
id: Schema.optional(Schema.Literal("respect_strong_etag")),
|
|
1597
2483
|
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
1598
2484
|
}),
|
|
2485
|
+
Schema.Struct({
|
|
2486
|
+
id: Schema.optional(Schema.Literal("response_buffering")),
|
|
2487
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
2488
|
+
}),
|
|
2489
|
+
Schema.Struct({
|
|
2490
|
+
id: Schema.optional(Schema.Literal("rocket_loader")),
|
|
2491
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
2492
|
+
}),
|
|
2493
|
+
Schema.Struct({
|
|
2494
|
+
id: Schema.optional(Schema.Literal("security_level")),
|
|
2495
|
+
value: Schema.optional(
|
|
2496
|
+
Schema.Literals([
|
|
2497
|
+
"off",
|
|
2498
|
+
"essentially_off",
|
|
2499
|
+
"low",
|
|
2500
|
+
"medium",
|
|
2501
|
+
"high",
|
|
2502
|
+
"under_attack",
|
|
2503
|
+
]),
|
|
2504
|
+
),
|
|
2505
|
+
}),
|
|
2506
|
+
Schema.Struct({
|
|
2507
|
+
id: Schema.optional(Schema.Literal("sort_query_string_for_cache")),
|
|
2508
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
2509
|
+
}),
|
|
2510
|
+
Schema.Struct({
|
|
2511
|
+
id: Schema.optional(Schema.Literal("ssl")),
|
|
2512
|
+
value: Schema.optional(
|
|
2513
|
+
Schema.Literals(["off", "flexible", "full", "strict", "origin_pull"]),
|
|
2514
|
+
),
|
|
2515
|
+
}),
|
|
2516
|
+
Schema.Struct({
|
|
2517
|
+
id: Schema.optional(Schema.Literal("true_client_ip_header")),
|
|
2518
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
2519
|
+
}),
|
|
2520
|
+
Schema.Struct({
|
|
2521
|
+
id: Schema.optional(Schema.Literal("waf")),
|
|
2522
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
2523
|
+
}),
|
|
1599
2524
|
]),
|
|
1600
2525
|
),
|
|
1601
2526
|
targets: Schema.Array(
|
|
@@ -1626,7 +2551,10 @@ export interface UpdatePageRuleResponse {
|
|
|
1626
2551
|
id: string;
|
|
1627
2552
|
/** The set of actions to perform if the targets of this rule match the request. Actions can redirect to another URL or override settings, but not both. */
|
|
1628
2553
|
actions: (
|
|
1629
|
-
|
|
|
2554
|
+
| { id?: "always_use_https" | null }
|
|
2555
|
+
| { id?: "automatic_https_rewrites" | null; value?: "on" | "off" | null }
|
|
2556
|
+
| { id?: "browser_cache_ttl" | null; value?: number | null }
|
|
2557
|
+
| { id?: "browser_check" | null; value?: "on" | "off" | null }
|
|
1630
2558
|
| { id?: "bypass_cache_on_cookie" | null; value?: string | null }
|
|
1631
2559
|
| { id?: "cache_by_device_type" | null; value?: "on" | "off" | null }
|
|
1632
2560
|
| { id?: "cache_deception_armor" | null; value?: "on" | "off" | null }
|
|
@@ -1654,6 +2582,16 @@ export interface UpdatePageRuleResponse {
|
|
|
1654
2582
|
} | null;
|
|
1655
2583
|
} | null;
|
|
1656
2584
|
}
|
|
2585
|
+
| {
|
|
2586
|
+
id?: "cache_level" | null;
|
|
2587
|
+
value?:
|
|
2588
|
+
| "bypass"
|
|
2589
|
+
| "basic"
|
|
2590
|
+
| "simplified"
|
|
2591
|
+
| "aggressive"
|
|
2592
|
+
| "cache_everything"
|
|
2593
|
+
| null;
|
|
2594
|
+
}
|
|
1657
2595
|
| { id?: "cache_on_cookie" | null; value?: string | null }
|
|
1658
2596
|
| {
|
|
1659
2597
|
id?: "cache_ttl_by_status" | null;
|
|
@@ -1664,6 +2602,7 @@ export interface UpdatePageRuleResponse {
|
|
|
1664
2602
|
| { id?: "disable_security" | null }
|
|
1665
2603
|
| { id?: "disable_zaraz" | null }
|
|
1666
2604
|
| { id?: "edge_cache_ttl" | null; value?: number | null }
|
|
2605
|
+
| { id?: "email_obfuscation" | null; value?: "on" | "off" | null }
|
|
1667
2606
|
| { id?: "explicit_cache_control" | null; value?: "on" | "off" | null }
|
|
1668
2607
|
| {
|
|
1669
2608
|
id?: "forwarding_url" | null;
|
|
@@ -1673,8 +2612,33 @@ export interface UpdatePageRuleResponse {
|
|
|
1673
2612
|
} | null;
|
|
1674
2613
|
}
|
|
1675
2614
|
| { id?: "host_header_override" | null; value?: string | null }
|
|
2615
|
+
| { id?: "ip_geolocation" | null; value?: "on" | "off" | null }
|
|
2616
|
+
| { id?: "mirage" | null; value?: "on" | "off" | null }
|
|
2617
|
+
| { id?: "opportunistic_encryption" | null; value?: "on" | "off" | null }
|
|
2618
|
+
| { id?: "origin_error_page_pass_thru" | null; value?: "on" | "off" | null }
|
|
2619
|
+
| { id?: "polish" | null; value?: "off" | "lossless" | "lossy" | null }
|
|
1676
2620
|
| { id?: "resolve_override" | null; value?: string | null }
|
|
1677
2621
|
| { id?: "respect_strong_etag" | null; value?: "on" | "off" | null }
|
|
2622
|
+
| { id?: "response_buffering" | null; value?: "on" | "off" | null }
|
|
2623
|
+
| { id?: "rocket_loader" | null; value?: "on" | "off" | null }
|
|
2624
|
+
| {
|
|
2625
|
+
id?: "security_level" | null;
|
|
2626
|
+
value?:
|
|
2627
|
+
| "off"
|
|
2628
|
+
| "essentially_off"
|
|
2629
|
+
| "low"
|
|
2630
|
+
| "medium"
|
|
2631
|
+
| "high"
|
|
2632
|
+
| "under_attack"
|
|
2633
|
+
| null;
|
|
2634
|
+
}
|
|
2635
|
+
| { id?: "sort_query_string_for_cache" | null; value?: "on" | "off" | null }
|
|
2636
|
+
| {
|
|
2637
|
+
id?: "ssl" | null;
|
|
2638
|
+
value?: "off" | "flexible" | "full" | "strict" | "origin_pull" | null;
|
|
2639
|
+
}
|
|
2640
|
+
| { id?: "true_client_ip_header" | null; value?: "on" | "off" | null }
|
|
2641
|
+
| { id?: "waf" | null; value?: "on" | "off" | null }
|
|
1678
2642
|
)[];
|
|
1679
2643
|
/** The timestamp of when the Page Rule was created. */
|
|
1680
2644
|
createdOn: string;
|
|
@@ -1699,7 +2663,36 @@ export const UpdatePageRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
1699
2663
|
id: Schema.String,
|
|
1700
2664
|
actions: Schema.Array(
|
|
1701
2665
|
Schema.Union([
|
|
1702
|
-
Schema.
|
|
2666
|
+
Schema.Struct({
|
|
2667
|
+
id: Schema.optional(
|
|
2668
|
+
Schema.Union([Schema.Literal("always_use_https"), Schema.Null]),
|
|
2669
|
+
),
|
|
2670
|
+
}),
|
|
2671
|
+
Schema.Struct({
|
|
2672
|
+
id: Schema.optional(
|
|
2673
|
+
Schema.Union([
|
|
2674
|
+
Schema.Literal("automatic_https_rewrites"),
|
|
2675
|
+
Schema.Null,
|
|
2676
|
+
]),
|
|
2677
|
+
),
|
|
2678
|
+
value: Schema.optional(
|
|
2679
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
2680
|
+
),
|
|
2681
|
+
}),
|
|
2682
|
+
Schema.Struct({
|
|
2683
|
+
id: Schema.optional(
|
|
2684
|
+
Schema.Union([Schema.Literal("browser_cache_ttl"), Schema.Null]),
|
|
2685
|
+
),
|
|
2686
|
+
value: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2687
|
+
}),
|
|
2688
|
+
Schema.Struct({
|
|
2689
|
+
id: Schema.optional(
|
|
2690
|
+
Schema.Union([Schema.Literal("browser_check"), Schema.Null]),
|
|
2691
|
+
),
|
|
2692
|
+
value: Schema.optional(
|
|
2693
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
2694
|
+
),
|
|
2695
|
+
}),
|
|
1703
2696
|
Schema.Struct({
|
|
1704
2697
|
id: Schema.optional(
|
|
1705
2698
|
Schema.Union([
|
|
@@ -1860,6 +2853,23 @@ export const UpdatePageRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
1860
2853
|
]),
|
|
1861
2854
|
),
|
|
1862
2855
|
}),
|
|
2856
|
+
Schema.Struct({
|
|
2857
|
+
id: Schema.optional(
|
|
2858
|
+
Schema.Union([Schema.Literal("cache_level"), Schema.Null]),
|
|
2859
|
+
),
|
|
2860
|
+
value: Schema.optional(
|
|
2861
|
+
Schema.Union([
|
|
2862
|
+
Schema.Literals([
|
|
2863
|
+
"bypass",
|
|
2864
|
+
"basic",
|
|
2865
|
+
"simplified",
|
|
2866
|
+
"aggressive",
|
|
2867
|
+
"cache_everything",
|
|
2868
|
+
]),
|
|
2869
|
+
Schema.Null,
|
|
2870
|
+
]),
|
|
2871
|
+
),
|
|
2872
|
+
}),
|
|
1863
2873
|
Schema.Struct({
|
|
1864
2874
|
id: Schema.optional(
|
|
1865
2875
|
Schema.Union([Schema.Literal("cache_on_cookie"), Schema.Null]),
|
|
@@ -1871,7 +2881,10 @@ export const UpdatePageRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
1871
2881
|
Schema.Union([Schema.Literal("cache_ttl_by_status"), Schema.Null]),
|
|
1872
2882
|
),
|
|
1873
2883
|
value: Schema.optional(
|
|
1874
|
-
Schema.Union([
|
|
2884
|
+
Schema.Union([
|
|
2885
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
2886
|
+
Schema.Null,
|
|
2887
|
+
]),
|
|
1875
2888
|
),
|
|
1876
2889
|
}),
|
|
1877
2890
|
Schema.Struct({
|
|
@@ -1886,24 +2899,166 @@ export const UpdatePageRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
1886
2899
|
}),
|
|
1887
2900
|
Schema.Struct({
|
|
1888
2901
|
id: Schema.optional(
|
|
1889
|
-
Schema.Union([Schema.Literal("disable_security"), Schema.Null]),
|
|
2902
|
+
Schema.Union([Schema.Literal("disable_security"), Schema.Null]),
|
|
2903
|
+
),
|
|
2904
|
+
}),
|
|
2905
|
+
Schema.Struct({
|
|
2906
|
+
id: Schema.optional(
|
|
2907
|
+
Schema.Union([Schema.Literal("disable_zaraz"), Schema.Null]),
|
|
2908
|
+
),
|
|
2909
|
+
}),
|
|
2910
|
+
Schema.Struct({
|
|
2911
|
+
id: Schema.optional(
|
|
2912
|
+
Schema.Union([Schema.Literal("edge_cache_ttl"), Schema.Null]),
|
|
2913
|
+
),
|
|
2914
|
+
value: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2915
|
+
}),
|
|
2916
|
+
Schema.Struct({
|
|
2917
|
+
id: Schema.optional(
|
|
2918
|
+
Schema.Union([Schema.Literal("email_obfuscation"), Schema.Null]),
|
|
2919
|
+
),
|
|
2920
|
+
value: Schema.optional(
|
|
2921
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
2922
|
+
),
|
|
2923
|
+
}),
|
|
2924
|
+
Schema.Struct({
|
|
2925
|
+
id: Schema.optional(
|
|
2926
|
+
Schema.Union([
|
|
2927
|
+
Schema.Literal("explicit_cache_control"),
|
|
2928
|
+
Schema.Null,
|
|
2929
|
+
]),
|
|
2930
|
+
),
|
|
2931
|
+
value: Schema.optional(
|
|
2932
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
2933
|
+
),
|
|
2934
|
+
}),
|
|
2935
|
+
Schema.Struct({
|
|
2936
|
+
id: Schema.optional(
|
|
2937
|
+
Schema.Union([Schema.Literal("forwarding_url"), Schema.Null]),
|
|
2938
|
+
),
|
|
2939
|
+
value: Schema.optional(
|
|
2940
|
+
Schema.Union([
|
|
2941
|
+
Schema.Struct({
|
|
2942
|
+
statusCode: Schema.optional(
|
|
2943
|
+
Schema.Union([Schema.Literals(["301", "302"]), Schema.Null]),
|
|
2944
|
+
),
|
|
2945
|
+
url: Schema.optional(
|
|
2946
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
2947
|
+
),
|
|
2948
|
+
}).pipe(
|
|
2949
|
+
Schema.encodeKeys({ statusCode: "status_code", url: "url" }),
|
|
2950
|
+
),
|
|
2951
|
+
Schema.Null,
|
|
2952
|
+
]),
|
|
2953
|
+
),
|
|
2954
|
+
}),
|
|
2955
|
+
Schema.Struct({
|
|
2956
|
+
id: Schema.optional(
|
|
2957
|
+
Schema.Union([Schema.Literal("host_header_override"), Schema.Null]),
|
|
2958
|
+
),
|
|
2959
|
+
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2960
|
+
}),
|
|
2961
|
+
Schema.Struct({
|
|
2962
|
+
id: Schema.optional(
|
|
2963
|
+
Schema.Union([Schema.Literal("ip_geolocation"), Schema.Null]),
|
|
2964
|
+
),
|
|
2965
|
+
value: Schema.optional(
|
|
2966
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
2967
|
+
),
|
|
2968
|
+
}),
|
|
2969
|
+
Schema.Struct({
|
|
2970
|
+
id: Schema.optional(
|
|
2971
|
+
Schema.Union([Schema.Literal("mirage"), Schema.Null]),
|
|
2972
|
+
),
|
|
2973
|
+
value: Schema.optional(
|
|
2974
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
2975
|
+
),
|
|
2976
|
+
}),
|
|
2977
|
+
Schema.Struct({
|
|
2978
|
+
id: Schema.optional(
|
|
2979
|
+
Schema.Union([
|
|
2980
|
+
Schema.Literal("opportunistic_encryption"),
|
|
2981
|
+
Schema.Null,
|
|
2982
|
+
]),
|
|
2983
|
+
),
|
|
2984
|
+
value: Schema.optional(
|
|
2985
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
2986
|
+
),
|
|
2987
|
+
}),
|
|
2988
|
+
Schema.Struct({
|
|
2989
|
+
id: Schema.optional(
|
|
2990
|
+
Schema.Union([
|
|
2991
|
+
Schema.Literal("origin_error_page_pass_thru"),
|
|
2992
|
+
Schema.Null,
|
|
2993
|
+
]),
|
|
2994
|
+
),
|
|
2995
|
+
value: Schema.optional(
|
|
2996
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
2997
|
+
),
|
|
2998
|
+
}),
|
|
2999
|
+
Schema.Struct({
|
|
3000
|
+
id: Schema.optional(
|
|
3001
|
+
Schema.Union([Schema.Literal("polish"), Schema.Null]),
|
|
3002
|
+
),
|
|
3003
|
+
value: Schema.optional(
|
|
3004
|
+
Schema.Union([
|
|
3005
|
+
Schema.Literals(["off", "lossless", "lossy"]),
|
|
3006
|
+
Schema.Null,
|
|
3007
|
+
]),
|
|
3008
|
+
),
|
|
3009
|
+
}),
|
|
3010
|
+
Schema.Struct({
|
|
3011
|
+
id: Schema.optional(
|
|
3012
|
+
Schema.Union([Schema.Literal("resolve_override"), Schema.Null]),
|
|
3013
|
+
),
|
|
3014
|
+
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3015
|
+
}),
|
|
3016
|
+
Schema.Struct({
|
|
3017
|
+
id: Schema.optional(
|
|
3018
|
+
Schema.Union([Schema.Literal("respect_strong_etag"), Schema.Null]),
|
|
3019
|
+
),
|
|
3020
|
+
value: Schema.optional(
|
|
3021
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
3022
|
+
),
|
|
3023
|
+
}),
|
|
3024
|
+
Schema.Struct({
|
|
3025
|
+
id: Schema.optional(
|
|
3026
|
+
Schema.Union([Schema.Literal("response_buffering"), Schema.Null]),
|
|
3027
|
+
),
|
|
3028
|
+
value: Schema.optional(
|
|
3029
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
3030
|
+
),
|
|
3031
|
+
}),
|
|
3032
|
+
Schema.Struct({
|
|
3033
|
+
id: Schema.optional(
|
|
3034
|
+
Schema.Union([Schema.Literal("rocket_loader"), Schema.Null]),
|
|
1890
3035
|
),
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
id: Schema.optional(
|
|
1894
|
-
Schema.Union([Schema.Literal("disable_zaraz"), Schema.Null]),
|
|
3036
|
+
value: Schema.optional(
|
|
3037
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
1895
3038
|
),
|
|
1896
3039
|
}),
|
|
1897
3040
|
Schema.Struct({
|
|
1898
3041
|
id: Schema.optional(
|
|
1899
|
-
Schema.Union([Schema.Literal("
|
|
3042
|
+
Schema.Union([Schema.Literal("security_level"), Schema.Null]),
|
|
3043
|
+
),
|
|
3044
|
+
value: Schema.optional(
|
|
3045
|
+
Schema.Union([
|
|
3046
|
+
Schema.Literals([
|
|
3047
|
+
"off",
|
|
3048
|
+
"essentially_off",
|
|
3049
|
+
"low",
|
|
3050
|
+
"medium",
|
|
3051
|
+
"high",
|
|
3052
|
+
"under_attack",
|
|
3053
|
+
]),
|
|
3054
|
+
Schema.Null,
|
|
3055
|
+
]),
|
|
1900
3056
|
),
|
|
1901
|
-
value: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1902
3057
|
}),
|
|
1903
3058
|
Schema.Struct({
|
|
1904
3059
|
id: Schema.optional(
|
|
1905
3060
|
Schema.Union([
|
|
1906
|
-
Schema.Literal("
|
|
3061
|
+
Schema.Literal("sort_query_string_for_cache"),
|
|
1907
3062
|
Schema.Null,
|
|
1908
3063
|
]),
|
|
1909
3064
|
),
|
|
@@ -1913,39 +3068,35 @@ export const UpdatePageRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
1913
3068
|
}),
|
|
1914
3069
|
Schema.Struct({
|
|
1915
3070
|
id: Schema.optional(
|
|
1916
|
-
Schema.Union([Schema.Literal("
|
|
3071
|
+
Schema.Union([Schema.Literal("ssl"), Schema.Null]),
|
|
1917
3072
|
),
|
|
1918
3073
|
value: Schema.optional(
|
|
1919
3074
|
Schema.Union([
|
|
1920
|
-
Schema.
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
}).pipe(
|
|
1928
|
-
Schema.encodeKeys({ statusCode: "status_code", url: "url" }),
|
|
1929
|
-
),
|
|
3075
|
+
Schema.Literals([
|
|
3076
|
+
"off",
|
|
3077
|
+
"flexible",
|
|
3078
|
+
"full",
|
|
3079
|
+
"strict",
|
|
3080
|
+
"origin_pull",
|
|
3081
|
+
]),
|
|
1930
3082
|
Schema.Null,
|
|
1931
3083
|
]),
|
|
1932
3084
|
),
|
|
1933
3085
|
}),
|
|
1934
3086
|
Schema.Struct({
|
|
1935
3087
|
id: Schema.optional(
|
|
1936
|
-
Schema.Union([
|
|
3088
|
+
Schema.Union([
|
|
3089
|
+
Schema.Literal("true_client_ip_header"),
|
|
3090
|
+
Schema.Null,
|
|
3091
|
+
]),
|
|
1937
3092
|
),
|
|
1938
|
-
value: Schema.optional(
|
|
1939
|
-
|
|
1940
|
-
Schema.Struct({
|
|
1941
|
-
id: Schema.optional(
|
|
1942
|
-
Schema.Union([Schema.Literal("resolve_override"), Schema.Null]),
|
|
3093
|
+
value: Schema.optional(
|
|
3094
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
1943
3095
|
),
|
|
1944
|
-
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1945
3096
|
}),
|
|
1946
3097
|
Schema.Struct({
|
|
1947
3098
|
id: Schema.optional(
|
|
1948
|
-
Schema.Union([Schema.Literal("
|
|
3099
|
+
Schema.Union([Schema.Literal("waf"), Schema.Null]),
|
|
1949
3100
|
),
|
|
1950
3101
|
value: Schema.optional(
|
|
1951
3102
|
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
@@ -2015,7 +3166,10 @@ export interface PatchPageRuleRequest {
|
|
|
2015
3166
|
zoneId: string;
|
|
2016
3167
|
/** Body param: The set of actions to perform if the targets of this rule match the request. Actions can redirect to another URL or override settings, but not both. */
|
|
2017
3168
|
actions?: (
|
|
2018
|
-
|
|
|
3169
|
+
| { id?: "always_use_https" }
|
|
3170
|
+
| { id?: "automatic_https_rewrites"; value?: "on" | "off" }
|
|
3171
|
+
| { id?: "browser_cache_ttl"; value?: number }
|
|
3172
|
+
| { id?: "browser_check"; value?: "on" | "off" }
|
|
2019
3173
|
| { id?: "bypass_cache_on_cookie"; value?: string }
|
|
2020
3174
|
| { id?: "cache_by_device_type"; value?: "on" | "off" }
|
|
2021
3175
|
| { id?: "cache_deception_armor"; value?: "on" | "off" }
|
|
@@ -2033,6 +3187,15 @@ export interface PatchPageRuleRequest {
|
|
|
2033
3187
|
user?: { deviceType?: boolean; geo?: boolean; lang?: boolean };
|
|
2034
3188
|
};
|
|
2035
3189
|
}
|
|
3190
|
+
| {
|
|
3191
|
+
id?: "cache_level";
|
|
3192
|
+
value?:
|
|
3193
|
+
| "bypass"
|
|
3194
|
+
| "basic"
|
|
3195
|
+
| "simplified"
|
|
3196
|
+
| "aggressive"
|
|
3197
|
+
| "cache_everything";
|
|
3198
|
+
}
|
|
2036
3199
|
| { id?: "cache_on_cookie"; value?: string }
|
|
2037
3200
|
| { id?: "cache_ttl_by_status"; value?: Record<string, unknown> }
|
|
2038
3201
|
| { id?: "disable_apps" }
|
|
@@ -2040,14 +3203,39 @@ export interface PatchPageRuleRequest {
|
|
|
2040
3203
|
| { id?: "disable_security" }
|
|
2041
3204
|
| { id?: "disable_zaraz" }
|
|
2042
3205
|
| { id?: "edge_cache_ttl"; value?: number }
|
|
3206
|
+
| { id?: "email_obfuscation"; value?: "on" | "off" }
|
|
2043
3207
|
| { id?: "explicit_cache_control"; value?: "on" | "off" }
|
|
2044
3208
|
| {
|
|
2045
3209
|
id?: "forwarding_url";
|
|
2046
3210
|
value?: { statusCode?: "301" | "302"; url?: string };
|
|
2047
3211
|
}
|
|
2048
3212
|
| { id?: "host_header_override"; value?: string }
|
|
3213
|
+
| { id?: "ip_geolocation"; value?: "on" | "off" }
|
|
3214
|
+
| { id?: "mirage"; value?: "on" | "off" }
|
|
3215
|
+
| { id?: "opportunistic_encryption"; value?: "on" | "off" }
|
|
3216
|
+
| { id?: "origin_error_page_pass_thru"; value?: "on" | "off" }
|
|
3217
|
+
| { id?: "polish"; value?: "off" | "lossless" | "lossy" }
|
|
2049
3218
|
| { id?: "resolve_override"; value?: string }
|
|
2050
3219
|
| { id?: "respect_strong_etag"; value?: "on" | "off" }
|
|
3220
|
+
| { id?: "response_buffering"; value?: "on" | "off" }
|
|
3221
|
+
| { id?: "rocket_loader"; value?: "on" | "off" }
|
|
3222
|
+
| {
|
|
3223
|
+
id?: "security_level";
|
|
3224
|
+
value?:
|
|
3225
|
+
| "off"
|
|
3226
|
+
| "essentially_off"
|
|
3227
|
+
| "low"
|
|
3228
|
+
| "medium"
|
|
3229
|
+
| "high"
|
|
3230
|
+
| "under_attack";
|
|
3231
|
+
}
|
|
3232
|
+
| { id?: "sort_query_string_for_cache"; value?: "on" | "off" }
|
|
3233
|
+
| {
|
|
3234
|
+
id?: "ssl";
|
|
3235
|
+
value?: "off" | "flexible" | "full" | "strict" | "origin_pull";
|
|
3236
|
+
}
|
|
3237
|
+
| { id?: "true_client_ip_header"; value?: "on" | "off" }
|
|
3238
|
+
| { id?: "waf"; value?: "on" | "off" }
|
|
2051
3239
|
)[];
|
|
2052
3240
|
/** Body param: The priority of the rule, used to define which Page Rule is processed over another. A higher number indicates a higher priority. For example, if you have a catch-all Page Rule (rule A: `/i */
|
|
2053
3241
|
priority?: number;
|
|
@@ -2069,7 +3257,21 @@ export const PatchPageRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
2069
3257
|
actions: Schema.optional(
|
|
2070
3258
|
Schema.Array(
|
|
2071
3259
|
Schema.Union([
|
|
2072
|
-
Schema.
|
|
3260
|
+
Schema.Struct({
|
|
3261
|
+
id: Schema.optional(Schema.Literal("always_use_https")),
|
|
3262
|
+
}),
|
|
3263
|
+
Schema.Struct({
|
|
3264
|
+
id: Schema.optional(Schema.Literal("automatic_https_rewrites")),
|
|
3265
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
3266
|
+
}),
|
|
3267
|
+
Schema.Struct({
|
|
3268
|
+
id: Schema.optional(Schema.Literal("browser_cache_ttl")),
|
|
3269
|
+
value: Schema.optional(Schema.Number),
|
|
3270
|
+
}),
|
|
3271
|
+
Schema.Struct({
|
|
3272
|
+
id: Schema.optional(Schema.Literal("browser_check")),
|
|
3273
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
3274
|
+
}),
|
|
2073
3275
|
Schema.Struct({
|
|
2074
3276
|
id: Schema.optional(Schema.Literal("bypass_cache_on_cookie")),
|
|
2075
3277
|
value: Schema.optional(Schema.String),
|
|
@@ -2155,13 +3357,25 @@ export const PatchPageRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
2155
3357
|
),
|
|
2156
3358
|
),
|
|
2157
3359
|
}),
|
|
3360
|
+
Schema.Struct({
|
|
3361
|
+
id: Schema.optional(Schema.Literal("cache_level")),
|
|
3362
|
+
value: Schema.optional(
|
|
3363
|
+
Schema.Literals([
|
|
3364
|
+
"bypass",
|
|
3365
|
+
"basic",
|
|
3366
|
+
"simplified",
|
|
3367
|
+
"aggressive",
|
|
3368
|
+
"cache_everything",
|
|
3369
|
+
]),
|
|
3370
|
+
),
|
|
3371
|
+
}),
|
|
2158
3372
|
Schema.Struct({
|
|
2159
3373
|
id: Schema.optional(Schema.Literal("cache_on_cookie")),
|
|
2160
3374
|
value: Schema.optional(Schema.String),
|
|
2161
3375
|
}),
|
|
2162
3376
|
Schema.Struct({
|
|
2163
3377
|
id: Schema.optional(Schema.Literal("cache_ttl_by_status")),
|
|
2164
|
-
value: Schema.optional(Schema.
|
|
3378
|
+
value: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
|
|
2165
3379
|
}),
|
|
2166
3380
|
Schema.Struct({
|
|
2167
3381
|
id: Schema.optional(Schema.Literal("disable_apps")),
|
|
@@ -2179,6 +3393,10 @@ export const PatchPageRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
2179
3393
|
id: Schema.optional(Schema.Literal("edge_cache_ttl")),
|
|
2180
3394
|
value: Schema.optional(Schema.Number),
|
|
2181
3395
|
}),
|
|
3396
|
+
Schema.Struct({
|
|
3397
|
+
id: Schema.optional(Schema.Literal("email_obfuscation")),
|
|
3398
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
3399
|
+
}),
|
|
2182
3400
|
Schema.Struct({
|
|
2183
3401
|
id: Schema.optional(Schema.Literal("explicit_cache_control")),
|
|
2184
3402
|
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
@@ -2198,6 +3416,26 @@ export const PatchPageRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
2198
3416
|
id: Schema.optional(Schema.Literal("host_header_override")),
|
|
2199
3417
|
value: Schema.optional(Schema.String),
|
|
2200
3418
|
}),
|
|
3419
|
+
Schema.Struct({
|
|
3420
|
+
id: Schema.optional(Schema.Literal("ip_geolocation")),
|
|
3421
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
3422
|
+
}),
|
|
3423
|
+
Schema.Struct({
|
|
3424
|
+
id: Schema.optional(Schema.Literal("mirage")),
|
|
3425
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
3426
|
+
}),
|
|
3427
|
+
Schema.Struct({
|
|
3428
|
+
id: Schema.optional(Schema.Literal("opportunistic_encryption")),
|
|
3429
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
3430
|
+
}),
|
|
3431
|
+
Schema.Struct({
|
|
3432
|
+
id: Schema.optional(Schema.Literal("origin_error_page_pass_thru")),
|
|
3433
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
3434
|
+
}),
|
|
3435
|
+
Schema.Struct({
|
|
3436
|
+
id: Schema.optional(Schema.Literal("polish")),
|
|
3437
|
+
value: Schema.optional(Schema.Literals(["off", "lossless", "lossy"])),
|
|
3438
|
+
}),
|
|
2201
3439
|
Schema.Struct({
|
|
2202
3440
|
id: Schema.optional(Schema.Literal("resolve_override")),
|
|
2203
3441
|
value: Schema.optional(Schema.String),
|
|
@@ -2206,6 +3444,51 @@ export const PatchPageRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
2206
3444
|
id: Schema.optional(Schema.Literal("respect_strong_etag")),
|
|
2207
3445
|
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
2208
3446
|
}),
|
|
3447
|
+
Schema.Struct({
|
|
3448
|
+
id: Schema.optional(Schema.Literal("response_buffering")),
|
|
3449
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
3450
|
+
}),
|
|
3451
|
+
Schema.Struct({
|
|
3452
|
+
id: Schema.optional(Schema.Literal("rocket_loader")),
|
|
3453
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
3454
|
+
}),
|
|
3455
|
+
Schema.Struct({
|
|
3456
|
+
id: Schema.optional(Schema.Literal("security_level")),
|
|
3457
|
+
value: Schema.optional(
|
|
3458
|
+
Schema.Literals([
|
|
3459
|
+
"off",
|
|
3460
|
+
"essentially_off",
|
|
3461
|
+
"low",
|
|
3462
|
+
"medium",
|
|
3463
|
+
"high",
|
|
3464
|
+
"under_attack",
|
|
3465
|
+
]),
|
|
3466
|
+
),
|
|
3467
|
+
}),
|
|
3468
|
+
Schema.Struct({
|
|
3469
|
+
id: Schema.optional(Schema.Literal("sort_query_string_for_cache")),
|
|
3470
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
3471
|
+
}),
|
|
3472
|
+
Schema.Struct({
|
|
3473
|
+
id: Schema.optional(Schema.Literal("ssl")),
|
|
3474
|
+
value: Schema.optional(
|
|
3475
|
+
Schema.Literals([
|
|
3476
|
+
"off",
|
|
3477
|
+
"flexible",
|
|
3478
|
+
"full",
|
|
3479
|
+
"strict",
|
|
3480
|
+
"origin_pull",
|
|
3481
|
+
]),
|
|
3482
|
+
),
|
|
3483
|
+
}),
|
|
3484
|
+
Schema.Struct({
|
|
3485
|
+
id: Schema.optional(Schema.Literal("true_client_ip_header")),
|
|
3486
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
3487
|
+
}),
|
|
3488
|
+
Schema.Struct({
|
|
3489
|
+
id: Schema.optional(Schema.Literal("waf")),
|
|
3490
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
3491
|
+
}),
|
|
2209
3492
|
]),
|
|
2210
3493
|
),
|
|
2211
3494
|
),
|
|
@@ -2239,7 +3522,10 @@ export interface PatchPageRuleResponse {
|
|
|
2239
3522
|
id: string;
|
|
2240
3523
|
/** The set of actions to perform if the targets of this rule match the request. Actions can redirect to another URL or override settings, but not both. */
|
|
2241
3524
|
actions: (
|
|
2242
|
-
|
|
|
3525
|
+
| { id?: "always_use_https" | null }
|
|
3526
|
+
| { id?: "automatic_https_rewrites" | null; value?: "on" | "off" | null }
|
|
3527
|
+
| { id?: "browser_cache_ttl" | null; value?: number | null }
|
|
3528
|
+
| { id?: "browser_check" | null; value?: "on" | "off" | null }
|
|
2243
3529
|
| { id?: "bypass_cache_on_cookie" | null; value?: string | null }
|
|
2244
3530
|
| { id?: "cache_by_device_type" | null; value?: "on" | "off" | null }
|
|
2245
3531
|
| { id?: "cache_deception_armor" | null; value?: "on" | "off" | null }
|
|
@@ -2267,6 +3553,16 @@ export interface PatchPageRuleResponse {
|
|
|
2267
3553
|
} | null;
|
|
2268
3554
|
} | null;
|
|
2269
3555
|
}
|
|
3556
|
+
| {
|
|
3557
|
+
id?: "cache_level" | null;
|
|
3558
|
+
value?:
|
|
3559
|
+
| "bypass"
|
|
3560
|
+
| "basic"
|
|
3561
|
+
| "simplified"
|
|
3562
|
+
| "aggressive"
|
|
3563
|
+
| "cache_everything"
|
|
3564
|
+
| null;
|
|
3565
|
+
}
|
|
2270
3566
|
| { id?: "cache_on_cookie" | null; value?: string | null }
|
|
2271
3567
|
| {
|
|
2272
3568
|
id?: "cache_ttl_by_status" | null;
|
|
@@ -2277,6 +3573,7 @@ export interface PatchPageRuleResponse {
|
|
|
2277
3573
|
| { id?: "disable_security" | null }
|
|
2278
3574
|
| { id?: "disable_zaraz" | null }
|
|
2279
3575
|
| { id?: "edge_cache_ttl" | null; value?: number | null }
|
|
3576
|
+
| { id?: "email_obfuscation" | null; value?: "on" | "off" | null }
|
|
2280
3577
|
| { id?: "explicit_cache_control" | null; value?: "on" | "off" | null }
|
|
2281
3578
|
| {
|
|
2282
3579
|
id?: "forwarding_url" | null;
|
|
@@ -2286,8 +3583,33 @@ export interface PatchPageRuleResponse {
|
|
|
2286
3583
|
} | null;
|
|
2287
3584
|
}
|
|
2288
3585
|
| { id?: "host_header_override" | null; value?: string | null }
|
|
3586
|
+
| { id?: "ip_geolocation" | null; value?: "on" | "off" | null }
|
|
3587
|
+
| { id?: "mirage" | null; value?: "on" | "off" | null }
|
|
3588
|
+
| { id?: "opportunistic_encryption" | null; value?: "on" | "off" | null }
|
|
3589
|
+
| { id?: "origin_error_page_pass_thru" | null; value?: "on" | "off" | null }
|
|
3590
|
+
| { id?: "polish" | null; value?: "off" | "lossless" | "lossy" | null }
|
|
2289
3591
|
| { id?: "resolve_override" | null; value?: string | null }
|
|
2290
3592
|
| { id?: "respect_strong_etag" | null; value?: "on" | "off" | null }
|
|
3593
|
+
| { id?: "response_buffering" | null; value?: "on" | "off" | null }
|
|
3594
|
+
| { id?: "rocket_loader" | null; value?: "on" | "off" | null }
|
|
3595
|
+
| {
|
|
3596
|
+
id?: "security_level" | null;
|
|
3597
|
+
value?:
|
|
3598
|
+
| "off"
|
|
3599
|
+
| "essentially_off"
|
|
3600
|
+
| "low"
|
|
3601
|
+
| "medium"
|
|
3602
|
+
| "high"
|
|
3603
|
+
| "under_attack"
|
|
3604
|
+
| null;
|
|
3605
|
+
}
|
|
3606
|
+
| { id?: "sort_query_string_for_cache" | null; value?: "on" | "off" | null }
|
|
3607
|
+
| {
|
|
3608
|
+
id?: "ssl" | null;
|
|
3609
|
+
value?: "off" | "flexible" | "full" | "strict" | "origin_pull" | null;
|
|
3610
|
+
}
|
|
3611
|
+
| { id?: "true_client_ip_header" | null; value?: "on" | "off" | null }
|
|
3612
|
+
| { id?: "waf" | null; value?: "on" | "off" | null }
|
|
2291
3613
|
)[];
|
|
2292
3614
|
/** The timestamp of when the Page Rule was created. */
|
|
2293
3615
|
createdOn: string;
|
|
@@ -2311,7 +3633,36 @@ export const PatchPageRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
2311
3633
|
id: Schema.String,
|
|
2312
3634
|
actions: Schema.Array(
|
|
2313
3635
|
Schema.Union([
|
|
2314
|
-
Schema.
|
|
3636
|
+
Schema.Struct({
|
|
3637
|
+
id: Schema.optional(
|
|
3638
|
+
Schema.Union([Schema.Literal("always_use_https"), Schema.Null]),
|
|
3639
|
+
),
|
|
3640
|
+
}),
|
|
3641
|
+
Schema.Struct({
|
|
3642
|
+
id: Schema.optional(
|
|
3643
|
+
Schema.Union([
|
|
3644
|
+
Schema.Literal("automatic_https_rewrites"),
|
|
3645
|
+
Schema.Null,
|
|
3646
|
+
]),
|
|
3647
|
+
),
|
|
3648
|
+
value: Schema.optional(
|
|
3649
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
3650
|
+
),
|
|
3651
|
+
}),
|
|
3652
|
+
Schema.Struct({
|
|
3653
|
+
id: Schema.optional(
|
|
3654
|
+
Schema.Union([Schema.Literal("browser_cache_ttl"), Schema.Null]),
|
|
3655
|
+
),
|
|
3656
|
+
value: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3657
|
+
}),
|
|
3658
|
+
Schema.Struct({
|
|
3659
|
+
id: Schema.optional(
|
|
3660
|
+
Schema.Union([Schema.Literal("browser_check"), Schema.Null]),
|
|
3661
|
+
),
|
|
3662
|
+
value: Schema.optional(
|
|
3663
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
3664
|
+
),
|
|
3665
|
+
}),
|
|
2315
3666
|
Schema.Struct({
|
|
2316
3667
|
id: Schema.optional(
|
|
2317
3668
|
Schema.Union([Schema.Literal("bypass_cache_on_cookie"), Schema.Null]),
|
|
@@ -2451,6 +3802,23 @@ export const PatchPageRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
2451
3802
|
]),
|
|
2452
3803
|
),
|
|
2453
3804
|
}),
|
|
3805
|
+
Schema.Struct({
|
|
3806
|
+
id: Schema.optional(
|
|
3807
|
+
Schema.Union([Schema.Literal("cache_level"), Schema.Null]),
|
|
3808
|
+
),
|
|
3809
|
+
value: Schema.optional(
|
|
3810
|
+
Schema.Union([
|
|
3811
|
+
Schema.Literals([
|
|
3812
|
+
"bypass",
|
|
3813
|
+
"basic",
|
|
3814
|
+
"simplified",
|
|
3815
|
+
"aggressive",
|
|
3816
|
+
"cache_everything",
|
|
3817
|
+
]),
|
|
3818
|
+
Schema.Null,
|
|
3819
|
+
]),
|
|
3820
|
+
),
|
|
3821
|
+
}),
|
|
2454
3822
|
Schema.Struct({
|
|
2455
3823
|
id: Schema.optional(
|
|
2456
3824
|
Schema.Union([Schema.Literal("cache_on_cookie"), Schema.Null]),
|
|
@@ -2461,7 +3829,12 @@ export const PatchPageRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
2461
3829
|
id: Schema.optional(
|
|
2462
3830
|
Schema.Union([Schema.Literal("cache_ttl_by_status"), Schema.Null]),
|
|
2463
3831
|
),
|
|
2464
|
-
value: Schema.optional(
|
|
3832
|
+
value: Schema.optional(
|
|
3833
|
+
Schema.Union([
|
|
3834
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
3835
|
+
Schema.Null,
|
|
3836
|
+
]),
|
|
3837
|
+
),
|
|
2465
3838
|
}),
|
|
2466
3839
|
Schema.Struct({
|
|
2467
3840
|
id: Schema.optional(
|
|
@@ -2489,6 +3862,14 @@ export const PatchPageRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
2489
3862
|
),
|
|
2490
3863
|
value: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2491
3864
|
}),
|
|
3865
|
+
Schema.Struct({
|
|
3866
|
+
id: Schema.optional(
|
|
3867
|
+
Schema.Union([Schema.Literal("email_obfuscation"), Schema.Null]),
|
|
3868
|
+
),
|
|
3869
|
+
value: Schema.optional(
|
|
3870
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
3871
|
+
),
|
|
3872
|
+
}),
|
|
2492
3873
|
Schema.Struct({
|
|
2493
3874
|
id: Schema.optional(
|
|
2494
3875
|
Schema.Union([Schema.Literal("explicit_cache_control"), Schema.Null]),
|
|
@@ -2521,6 +3902,55 @@ export const PatchPageRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
2521
3902
|
),
|
|
2522
3903
|
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2523
3904
|
}),
|
|
3905
|
+
Schema.Struct({
|
|
3906
|
+
id: Schema.optional(
|
|
3907
|
+
Schema.Union([Schema.Literal("ip_geolocation"), Schema.Null]),
|
|
3908
|
+
),
|
|
3909
|
+
value: Schema.optional(
|
|
3910
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
3911
|
+
),
|
|
3912
|
+
}),
|
|
3913
|
+
Schema.Struct({
|
|
3914
|
+
id: Schema.optional(
|
|
3915
|
+
Schema.Union([Schema.Literal("mirage"), Schema.Null]),
|
|
3916
|
+
),
|
|
3917
|
+
value: Schema.optional(
|
|
3918
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
3919
|
+
),
|
|
3920
|
+
}),
|
|
3921
|
+
Schema.Struct({
|
|
3922
|
+
id: Schema.optional(
|
|
3923
|
+
Schema.Union([
|
|
3924
|
+
Schema.Literal("opportunistic_encryption"),
|
|
3925
|
+
Schema.Null,
|
|
3926
|
+
]),
|
|
3927
|
+
),
|
|
3928
|
+
value: Schema.optional(
|
|
3929
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
3930
|
+
),
|
|
3931
|
+
}),
|
|
3932
|
+
Schema.Struct({
|
|
3933
|
+
id: Schema.optional(
|
|
3934
|
+
Schema.Union([
|
|
3935
|
+
Schema.Literal("origin_error_page_pass_thru"),
|
|
3936
|
+
Schema.Null,
|
|
3937
|
+
]),
|
|
3938
|
+
),
|
|
3939
|
+
value: Schema.optional(
|
|
3940
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
3941
|
+
),
|
|
3942
|
+
}),
|
|
3943
|
+
Schema.Struct({
|
|
3944
|
+
id: Schema.optional(
|
|
3945
|
+
Schema.Union([Schema.Literal("polish"), Schema.Null]),
|
|
3946
|
+
),
|
|
3947
|
+
value: Schema.optional(
|
|
3948
|
+
Schema.Union([
|
|
3949
|
+
Schema.Literals(["off", "lossless", "lossy"]),
|
|
3950
|
+
Schema.Null,
|
|
3951
|
+
]),
|
|
3952
|
+
),
|
|
3953
|
+
}),
|
|
2524
3954
|
Schema.Struct({
|
|
2525
3955
|
id: Schema.optional(
|
|
2526
3956
|
Schema.Union([Schema.Literal("resolve_override"), Schema.Null]),
|
|
@@ -2535,6 +3965,80 @@ export const PatchPageRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
2535
3965
|
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
2536
3966
|
),
|
|
2537
3967
|
}),
|
|
3968
|
+
Schema.Struct({
|
|
3969
|
+
id: Schema.optional(
|
|
3970
|
+
Schema.Union([Schema.Literal("response_buffering"), Schema.Null]),
|
|
3971
|
+
),
|
|
3972
|
+
value: Schema.optional(
|
|
3973
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
3974
|
+
),
|
|
3975
|
+
}),
|
|
3976
|
+
Schema.Struct({
|
|
3977
|
+
id: Schema.optional(
|
|
3978
|
+
Schema.Union([Schema.Literal("rocket_loader"), Schema.Null]),
|
|
3979
|
+
),
|
|
3980
|
+
value: Schema.optional(
|
|
3981
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
3982
|
+
),
|
|
3983
|
+
}),
|
|
3984
|
+
Schema.Struct({
|
|
3985
|
+
id: Schema.optional(
|
|
3986
|
+
Schema.Union([Schema.Literal("security_level"), Schema.Null]),
|
|
3987
|
+
),
|
|
3988
|
+
value: Schema.optional(
|
|
3989
|
+
Schema.Union([
|
|
3990
|
+
Schema.Literals([
|
|
3991
|
+
"off",
|
|
3992
|
+
"essentially_off",
|
|
3993
|
+
"low",
|
|
3994
|
+
"medium",
|
|
3995
|
+
"high",
|
|
3996
|
+
"under_attack",
|
|
3997
|
+
]),
|
|
3998
|
+
Schema.Null,
|
|
3999
|
+
]),
|
|
4000
|
+
),
|
|
4001
|
+
}),
|
|
4002
|
+
Schema.Struct({
|
|
4003
|
+
id: Schema.optional(
|
|
4004
|
+
Schema.Union([
|
|
4005
|
+
Schema.Literal("sort_query_string_for_cache"),
|
|
4006
|
+
Schema.Null,
|
|
4007
|
+
]),
|
|
4008
|
+
),
|
|
4009
|
+
value: Schema.optional(
|
|
4010
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
4011
|
+
),
|
|
4012
|
+
}),
|
|
4013
|
+
Schema.Struct({
|
|
4014
|
+
id: Schema.optional(Schema.Union([Schema.Literal("ssl"), Schema.Null])),
|
|
4015
|
+
value: Schema.optional(
|
|
4016
|
+
Schema.Union([
|
|
4017
|
+
Schema.Literals([
|
|
4018
|
+
"off",
|
|
4019
|
+
"flexible",
|
|
4020
|
+
"full",
|
|
4021
|
+
"strict",
|
|
4022
|
+
"origin_pull",
|
|
4023
|
+
]),
|
|
4024
|
+
Schema.Null,
|
|
4025
|
+
]),
|
|
4026
|
+
),
|
|
4027
|
+
}),
|
|
4028
|
+
Schema.Struct({
|
|
4029
|
+
id: Schema.optional(
|
|
4030
|
+
Schema.Union([Schema.Literal("true_client_ip_header"), Schema.Null]),
|
|
4031
|
+
),
|
|
4032
|
+
value: Schema.optional(
|
|
4033
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
4034
|
+
),
|
|
4035
|
+
}),
|
|
4036
|
+
Schema.Struct({
|
|
4037
|
+
id: Schema.optional(Schema.Union([Schema.Literal("waf"), Schema.Null])),
|
|
4038
|
+
value: Schema.optional(
|
|
4039
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
|
|
4040
|
+
),
|
|
4041
|
+
}),
|
|
2538
4042
|
]),
|
|
2539
4043
|
),
|
|
2540
4044
|
createdOn: Schema.String,
|