@distilled.cloud/cloudflare 0.6.1 → 0.7.1
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
|
@@ -15,7 +15,24 @@ export const GetPageRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
15
15
|
export const GetPageRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
16
16
|
id: Schema.String,
|
|
17
17
|
actions: Schema.Array(Schema.Union([
|
|
18
|
-
Schema.
|
|
18
|
+
Schema.Struct({
|
|
19
|
+
id: Schema.optional(Schema.Union([Schema.Literal("always_use_https"), Schema.Null])),
|
|
20
|
+
}),
|
|
21
|
+
Schema.Struct({
|
|
22
|
+
id: Schema.optional(Schema.Union([
|
|
23
|
+
Schema.Literal("automatic_https_rewrites"),
|
|
24
|
+
Schema.Null,
|
|
25
|
+
])),
|
|
26
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
27
|
+
}),
|
|
28
|
+
Schema.Struct({
|
|
29
|
+
id: Schema.optional(Schema.Union([Schema.Literal("browser_cache_ttl"), Schema.Null])),
|
|
30
|
+
value: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
31
|
+
}),
|
|
32
|
+
Schema.Struct({
|
|
33
|
+
id: Schema.optional(Schema.Union([Schema.Literal("browser_check"), Schema.Null])),
|
|
34
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
35
|
+
}),
|
|
19
36
|
Schema.Struct({
|
|
20
37
|
id: Schema.optional(Schema.Union([Schema.Literal("bypass_cache_on_cookie"), Schema.Null])),
|
|
21
38
|
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -101,13 +118,29 @@ export const GetPageRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
101
118
|
Schema.Null,
|
|
102
119
|
])),
|
|
103
120
|
}),
|
|
121
|
+
Schema.Struct({
|
|
122
|
+
id: Schema.optional(Schema.Union([Schema.Literal("cache_level"), Schema.Null])),
|
|
123
|
+
value: Schema.optional(Schema.Union([
|
|
124
|
+
Schema.Literals([
|
|
125
|
+
"bypass",
|
|
126
|
+
"basic",
|
|
127
|
+
"simplified",
|
|
128
|
+
"aggressive",
|
|
129
|
+
"cache_everything",
|
|
130
|
+
]),
|
|
131
|
+
Schema.Null,
|
|
132
|
+
])),
|
|
133
|
+
}),
|
|
104
134
|
Schema.Struct({
|
|
105
135
|
id: Schema.optional(Schema.Union([Schema.Literal("cache_on_cookie"), Schema.Null])),
|
|
106
136
|
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
107
137
|
}),
|
|
108
138
|
Schema.Struct({
|
|
109
139
|
id: Schema.optional(Schema.Union([Schema.Literal("cache_ttl_by_status"), Schema.Null])),
|
|
110
|
-
value: Schema.optional(Schema.Union([
|
|
140
|
+
value: Schema.optional(Schema.Union([
|
|
141
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
142
|
+
Schema.Null,
|
|
143
|
+
])),
|
|
111
144
|
}),
|
|
112
145
|
Schema.Struct({
|
|
113
146
|
id: Schema.optional(Schema.Union([Schema.Literal("disable_apps"), Schema.Null])),
|
|
@@ -125,6 +158,10 @@ export const GetPageRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
125
158
|
id: Schema.optional(Schema.Union([Schema.Literal("edge_cache_ttl"), Schema.Null])),
|
|
126
159
|
value: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
127
160
|
}),
|
|
161
|
+
Schema.Struct({
|
|
162
|
+
id: Schema.optional(Schema.Union([Schema.Literal("email_obfuscation"), Schema.Null])),
|
|
163
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
164
|
+
}),
|
|
128
165
|
Schema.Struct({
|
|
129
166
|
id: Schema.optional(Schema.Union([Schema.Literal("explicit_cache_control"), Schema.Null])),
|
|
130
167
|
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
@@ -143,6 +180,35 @@ export const GetPageRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
143
180
|
id: Schema.optional(Schema.Union([Schema.Literal("host_header_override"), Schema.Null])),
|
|
144
181
|
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
145
182
|
}),
|
|
183
|
+
Schema.Struct({
|
|
184
|
+
id: Schema.optional(Schema.Union([Schema.Literal("ip_geolocation"), Schema.Null])),
|
|
185
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
186
|
+
}),
|
|
187
|
+
Schema.Struct({
|
|
188
|
+
id: Schema.optional(Schema.Union([Schema.Literal("mirage"), Schema.Null])),
|
|
189
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
190
|
+
}),
|
|
191
|
+
Schema.Struct({
|
|
192
|
+
id: Schema.optional(Schema.Union([
|
|
193
|
+
Schema.Literal("opportunistic_encryption"),
|
|
194
|
+
Schema.Null,
|
|
195
|
+
])),
|
|
196
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
197
|
+
}),
|
|
198
|
+
Schema.Struct({
|
|
199
|
+
id: Schema.optional(Schema.Union([
|
|
200
|
+
Schema.Literal("origin_error_page_pass_thru"),
|
|
201
|
+
Schema.Null,
|
|
202
|
+
])),
|
|
203
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
204
|
+
}),
|
|
205
|
+
Schema.Struct({
|
|
206
|
+
id: Schema.optional(Schema.Union([Schema.Literal("polish"), Schema.Null])),
|
|
207
|
+
value: Schema.optional(Schema.Union([
|
|
208
|
+
Schema.Literals(["off", "lossless", "lossy"]),
|
|
209
|
+
Schema.Null,
|
|
210
|
+
])),
|
|
211
|
+
}),
|
|
146
212
|
Schema.Struct({
|
|
147
213
|
id: Schema.optional(Schema.Union([Schema.Literal("resolve_override"), Schema.Null])),
|
|
148
214
|
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -151,6 +217,56 @@ export const GetPageRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
151
217
|
id: Schema.optional(Schema.Union([Schema.Literal("respect_strong_etag"), Schema.Null])),
|
|
152
218
|
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
153
219
|
}),
|
|
220
|
+
Schema.Struct({
|
|
221
|
+
id: Schema.optional(Schema.Union([Schema.Literal("response_buffering"), Schema.Null])),
|
|
222
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
223
|
+
}),
|
|
224
|
+
Schema.Struct({
|
|
225
|
+
id: Schema.optional(Schema.Union([Schema.Literal("rocket_loader"), Schema.Null])),
|
|
226
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
227
|
+
}),
|
|
228
|
+
Schema.Struct({
|
|
229
|
+
id: Schema.optional(Schema.Union([Schema.Literal("security_level"), Schema.Null])),
|
|
230
|
+
value: Schema.optional(Schema.Union([
|
|
231
|
+
Schema.Literals([
|
|
232
|
+
"off",
|
|
233
|
+
"essentially_off",
|
|
234
|
+
"low",
|
|
235
|
+
"medium",
|
|
236
|
+
"high",
|
|
237
|
+
"under_attack",
|
|
238
|
+
]),
|
|
239
|
+
Schema.Null,
|
|
240
|
+
])),
|
|
241
|
+
}),
|
|
242
|
+
Schema.Struct({
|
|
243
|
+
id: Schema.optional(Schema.Union([
|
|
244
|
+
Schema.Literal("sort_query_string_for_cache"),
|
|
245
|
+
Schema.Null,
|
|
246
|
+
])),
|
|
247
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
248
|
+
}),
|
|
249
|
+
Schema.Struct({
|
|
250
|
+
id: Schema.optional(Schema.Union([Schema.Literal("ssl"), Schema.Null])),
|
|
251
|
+
value: Schema.optional(Schema.Union([
|
|
252
|
+
Schema.Literals([
|
|
253
|
+
"off",
|
|
254
|
+
"flexible",
|
|
255
|
+
"full",
|
|
256
|
+
"strict",
|
|
257
|
+
"origin_pull",
|
|
258
|
+
]),
|
|
259
|
+
Schema.Null,
|
|
260
|
+
])),
|
|
261
|
+
}),
|
|
262
|
+
Schema.Struct({
|
|
263
|
+
id: Schema.optional(Schema.Union([Schema.Literal("true_client_ip_header"), Schema.Null])),
|
|
264
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
265
|
+
}),
|
|
266
|
+
Schema.Struct({
|
|
267
|
+
id: Schema.optional(Schema.Union([Schema.Literal("waf"), Schema.Null])),
|
|
268
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
269
|
+
}),
|
|
154
270
|
])),
|
|
155
271
|
createdOn: Schema.String,
|
|
156
272
|
modifiedOn: Schema.String,
|
|
@@ -198,7 +314,24 @@ export const ListPageRulesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
198
314
|
export const ListPageRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
|
|
199
315
|
id: Schema.String,
|
|
200
316
|
actions: Schema.Array(Schema.Union([
|
|
201
|
-
Schema.
|
|
317
|
+
Schema.Struct({
|
|
318
|
+
id: Schema.optional(Schema.Union([Schema.Literal("always_use_https"), Schema.Null])),
|
|
319
|
+
}),
|
|
320
|
+
Schema.Struct({
|
|
321
|
+
id: Schema.optional(Schema.Union([
|
|
322
|
+
Schema.Literal("automatic_https_rewrites"),
|
|
323
|
+
Schema.Null,
|
|
324
|
+
])),
|
|
325
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
326
|
+
}),
|
|
327
|
+
Schema.Struct({
|
|
328
|
+
id: Schema.optional(Schema.Union([Schema.Literal("browser_cache_ttl"), Schema.Null])),
|
|
329
|
+
value: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
330
|
+
}),
|
|
331
|
+
Schema.Struct({
|
|
332
|
+
id: Schema.optional(Schema.Union([Schema.Literal("browser_check"), Schema.Null])),
|
|
333
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
334
|
+
}),
|
|
202
335
|
Schema.Struct({
|
|
203
336
|
id: Schema.optional(Schema.Union([
|
|
204
337
|
Schema.Literal("bypass_cache_on_cookie"),
|
|
@@ -305,13 +438,29 @@ export const ListPageRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Sc
|
|
|
305
438
|
Schema.Null,
|
|
306
439
|
])),
|
|
307
440
|
}),
|
|
441
|
+
Schema.Struct({
|
|
442
|
+
id: Schema.optional(Schema.Union([Schema.Literal("cache_level"), Schema.Null])),
|
|
443
|
+
value: Schema.optional(Schema.Union([
|
|
444
|
+
Schema.Literals([
|
|
445
|
+
"bypass",
|
|
446
|
+
"basic",
|
|
447
|
+
"simplified",
|
|
448
|
+
"aggressive",
|
|
449
|
+
"cache_everything",
|
|
450
|
+
]),
|
|
451
|
+
Schema.Null,
|
|
452
|
+
])),
|
|
453
|
+
}),
|
|
308
454
|
Schema.Struct({
|
|
309
455
|
id: Schema.optional(Schema.Union([Schema.Literal("cache_on_cookie"), Schema.Null])),
|
|
310
456
|
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
311
457
|
}),
|
|
312
458
|
Schema.Struct({
|
|
313
459
|
id: Schema.optional(Schema.Union([Schema.Literal("cache_ttl_by_status"), Schema.Null])),
|
|
314
|
-
value: Schema.optional(Schema.Union([
|
|
460
|
+
value: Schema.optional(Schema.Union([
|
|
461
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
462
|
+
Schema.Null,
|
|
463
|
+
])),
|
|
315
464
|
}),
|
|
316
465
|
Schema.Struct({
|
|
317
466
|
id: Schema.optional(Schema.Union([Schema.Literal("disable_apps"), Schema.Null])),
|
|
@@ -329,6 +478,10 @@ export const ListPageRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Sc
|
|
|
329
478
|
id: Schema.optional(Schema.Union([Schema.Literal("edge_cache_ttl"), Schema.Null])),
|
|
330
479
|
value: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
331
480
|
}),
|
|
481
|
+
Schema.Struct({
|
|
482
|
+
id: Schema.optional(Schema.Union([Schema.Literal("email_obfuscation"), Schema.Null])),
|
|
483
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
484
|
+
}),
|
|
332
485
|
Schema.Struct({
|
|
333
486
|
id: Schema.optional(Schema.Union([
|
|
334
487
|
Schema.Literal("explicit_cache_control"),
|
|
@@ -350,6 +503,35 @@ export const ListPageRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Sc
|
|
|
350
503
|
id: Schema.optional(Schema.Union([Schema.Literal("host_header_override"), Schema.Null])),
|
|
351
504
|
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
352
505
|
}),
|
|
506
|
+
Schema.Struct({
|
|
507
|
+
id: Schema.optional(Schema.Union([Schema.Literal("ip_geolocation"), Schema.Null])),
|
|
508
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
509
|
+
}),
|
|
510
|
+
Schema.Struct({
|
|
511
|
+
id: Schema.optional(Schema.Union([Schema.Literal("mirage"), Schema.Null])),
|
|
512
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
513
|
+
}),
|
|
514
|
+
Schema.Struct({
|
|
515
|
+
id: Schema.optional(Schema.Union([
|
|
516
|
+
Schema.Literal("opportunistic_encryption"),
|
|
517
|
+
Schema.Null,
|
|
518
|
+
])),
|
|
519
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
520
|
+
}),
|
|
521
|
+
Schema.Struct({
|
|
522
|
+
id: Schema.optional(Schema.Union([
|
|
523
|
+
Schema.Literal("origin_error_page_pass_thru"),
|
|
524
|
+
Schema.Null,
|
|
525
|
+
])),
|
|
526
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
527
|
+
}),
|
|
528
|
+
Schema.Struct({
|
|
529
|
+
id: Schema.optional(Schema.Union([Schema.Literal("polish"), Schema.Null])),
|
|
530
|
+
value: Schema.optional(Schema.Union([
|
|
531
|
+
Schema.Literals(["off", "lossless", "lossy"]),
|
|
532
|
+
Schema.Null,
|
|
533
|
+
])),
|
|
534
|
+
}),
|
|
353
535
|
Schema.Struct({
|
|
354
536
|
id: Schema.optional(Schema.Union([Schema.Literal("resolve_override"), Schema.Null])),
|
|
355
537
|
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -358,6 +540,59 @@ export const ListPageRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Sc
|
|
|
358
540
|
id: Schema.optional(Schema.Union([Schema.Literal("respect_strong_etag"), Schema.Null])),
|
|
359
541
|
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
360
542
|
}),
|
|
543
|
+
Schema.Struct({
|
|
544
|
+
id: Schema.optional(Schema.Union([Schema.Literal("response_buffering"), Schema.Null])),
|
|
545
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
546
|
+
}),
|
|
547
|
+
Schema.Struct({
|
|
548
|
+
id: Schema.optional(Schema.Union([Schema.Literal("rocket_loader"), Schema.Null])),
|
|
549
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
550
|
+
}),
|
|
551
|
+
Schema.Struct({
|
|
552
|
+
id: Schema.optional(Schema.Union([Schema.Literal("security_level"), Schema.Null])),
|
|
553
|
+
value: Schema.optional(Schema.Union([
|
|
554
|
+
Schema.Literals([
|
|
555
|
+
"off",
|
|
556
|
+
"essentially_off",
|
|
557
|
+
"low",
|
|
558
|
+
"medium",
|
|
559
|
+
"high",
|
|
560
|
+
"under_attack",
|
|
561
|
+
]),
|
|
562
|
+
Schema.Null,
|
|
563
|
+
])),
|
|
564
|
+
}),
|
|
565
|
+
Schema.Struct({
|
|
566
|
+
id: Schema.optional(Schema.Union([
|
|
567
|
+
Schema.Literal("sort_query_string_for_cache"),
|
|
568
|
+
Schema.Null,
|
|
569
|
+
])),
|
|
570
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
571
|
+
}),
|
|
572
|
+
Schema.Struct({
|
|
573
|
+
id: Schema.optional(Schema.Union([Schema.Literal("ssl"), Schema.Null])),
|
|
574
|
+
value: Schema.optional(Schema.Union([
|
|
575
|
+
Schema.Literals([
|
|
576
|
+
"off",
|
|
577
|
+
"flexible",
|
|
578
|
+
"full",
|
|
579
|
+
"strict",
|
|
580
|
+
"origin_pull",
|
|
581
|
+
]),
|
|
582
|
+
Schema.Null,
|
|
583
|
+
])),
|
|
584
|
+
}),
|
|
585
|
+
Schema.Struct({
|
|
586
|
+
id: Schema.optional(Schema.Union([
|
|
587
|
+
Schema.Literal("true_client_ip_header"),
|
|
588
|
+
Schema.Null,
|
|
589
|
+
])),
|
|
590
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
591
|
+
}),
|
|
592
|
+
Schema.Struct({
|
|
593
|
+
id: Schema.optional(Schema.Union([Schema.Literal("waf"), Schema.Null])),
|
|
594
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
595
|
+
}),
|
|
361
596
|
])),
|
|
362
597
|
createdOn: Schema.String,
|
|
363
598
|
modifiedOn: Schema.String,
|
|
@@ -396,7 +631,21 @@ export const listPageRules = API.make(() => ({
|
|
|
396
631
|
export const CreatePageRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
397
632
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
398
633
|
actions: Schema.Array(Schema.Union([
|
|
399
|
-
Schema.
|
|
634
|
+
Schema.Struct({
|
|
635
|
+
id: Schema.optional(Schema.Literal("always_use_https")),
|
|
636
|
+
}),
|
|
637
|
+
Schema.Struct({
|
|
638
|
+
id: Schema.optional(Schema.Literal("automatic_https_rewrites")),
|
|
639
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
640
|
+
}),
|
|
641
|
+
Schema.Struct({
|
|
642
|
+
id: Schema.optional(Schema.Literal("browser_cache_ttl")),
|
|
643
|
+
value: Schema.optional(Schema.Number),
|
|
644
|
+
}),
|
|
645
|
+
Schema.Struct({
|
|
646
|
+
id: Schema.optional(Schema.Literal("browser_check")),
|
|
647
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
648
|
+
}),
|
|
400
649
|
Schema.Struct({
|
|
401
650
|
id: Schema.optional(Schema.Literal("bypass_cache_on_cookie")),
|
|
402
651
|
value: Schema.optional(Schema.String),
|
|
@@ -458,13 +707,23 @@ export const CreatePageRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
458
707
|
user: "user",
|
|
459
708
|
}))),
|
|
460
709
|
}),
|
|
710
|
+
Schema.Struct({
|
|
711
|
+
id: Schema.optional(Schema.Literal("cache_level")),
|
|
712
|
+
value: Schema.optional(Schema.Literals([
|
|
713
|
+
"bypass",
|
|
714
|
+
"basic",
|
|
715
|
+
"simplified",
|
|
716
|
+
"aggressive",
|
|
717
|
+
"cache_everything",
|
|
718
|
+
])),
|
|
719
|
+
}),
|
|
461
720
|
Schema.Struct({
|
|
462
721
|
id: Schema.optional(Schema.Literal("cache_on_cookie")),
|
|
463
722
|
value: Schema.optional(Schema.String),
|
|
464
723
|
}),
|
|
465
724
|
Schema.Struct({
|
|
466
725
|
id: Schema.optional(Schema.Literal("cache_ttl_by_status")),
|
|
467
|
-
value: Schema.optional(Schema.
|
|
726
|
+
value: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
|
|
468
727
|
}),
|
|
469
728
|
Schema.Struct({
|
|
470
729
|
id: Schema.optional(Schema.Literal("disable_apps")),
|
|
@@ -482,6 +741,10 @@ export const CreatePageRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
482
741
|
id: Schema.optional(Schema.Literal("edge_cache_ttl")),
|
|
483
742
|
value: Schema.optional(Schema.Number),
|
|
484
743
|
}),
|
|
744
|
+
Schema.Struct({
|
|
745
|
+
id: Schema.optional(Schema.Literal("email_obfuscation")),
|
|
746
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
747
|
+
}),
|
|
485
748
|
Schema.Struct({
|
|
486
749
|
id: Schema.optional(Schema.Literal("explicit_cache_control")),
|
|
487
750
|
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
@@ -497,6 +760,26 @@ export const CreatePageRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
497
760
|
id: Schema.optional(Schema.Literal("host_header_override")),
|
|
498
761
|
value: Schema.optional(Schema.String),
|
|
499
762
|
}),
|
|
763
|
+
Schema.Struct({
|
|
764
|
+
id: Schema.optional(Schema.Literal("ip_geolocation")),
|
|
765
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
766
|
+
}),
|
|
767
|
+
Schema.Struct({
|
|
768
|
+
id: Schema.optional(Schema.Literal("mirage")),
|
|
769
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
770
|
+
}),
|
|
771
|
+
Schema.Struct({
|
|
772
|
+
id: Schema.optional(Schema.Literal("opportunistic_encryption")),
|
|
773
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
774
|
+
}),
|
|
775
|
+
Schema.Struct({
|
|
776
|
+
id: Schema.optional(Schema.Literal("origin_error_page_pass_thru")),
|
|
777
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
778
|
+
}),
|
|
779
|
+
Schema.Struct({
|
|
780
|
+
id: Schema.optional(Schema.Literal("polish")),
|
|
781
|
+
value: Schema.optional(Schema.Literals(["off", "lossless", "lossy"])),
|
|
782
|
+
}),
|
|
500
783
|
Schema.Struct({
|
|
501
784
|
id: Schema.optional(Schema.Literal("resolve_override")),
|
|
502
785
|
value: Schema.optional(Schema.String),
|
|
@@ -505,6 +788,41 @@ export const CreatePageRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
505
788
|
id: Schema.optional(Schema.Literal("respect_strong_etag")),
|
|
506
789
|
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
507
790
|
}),
|
|
791
|
+
Schema.Struct({
|
|
792
|
+
id: Schema.optional(Schema.Literal("response_buffering")),
|
|
793
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
794
|
+
}),
|
|
795
|
+
Schema.Struct({
|
|
796
|
+
id: Schema.optional(Schema.Literal("rocket_loader")),
|
|
797
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
798
|
+
}),
|
|
799
|
+
Schema.Struct({
|
|
800
|
+
id: Schema.optional(Schema.Literal("security_level")),
|
|
801
|
+
value: Schema.optional(Schema.Literals([
|
|
802
|
+
"off",
|
|
803
|
+
"essentially_off",
|
|
804
|
+
"low",
|
|
805
|
+
"medium",
|
|
806
|
+
"high",
|
|
807
|
+
"under_attack",
|
|
808
|
+
])),
|
|
809
|
+
}),
|
|
810
|
+
Schema.Struct({
|
|
811
|
+
id: Schema.optional(Schema.Literal("sort_query_string_for_cache")),
|
|
812
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
813
|
+
}),
|
|
814
|
+
Schema.Struct({
|
|
815
|
+
id: Schema.optional(Schema.Literal("ssl")),
|
|
816
|
+
value: Schema.optional(Schema.Literals(["off", "flexible", "full", "strict", "origin_pull"])),
|
|
817
|
+
}),
|
|
818
|
+
Schema.Struct({
|
|
819
|
+
id: Schema.optional(Schema.Literal("true_client_ip_header")),
|
|
820
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
821
|
+
}),
|
|
822
|
+
Schema.Struct({
|
|
823
|
+
id: Schema.optional(Schema.Literal("waf")),
|
|
824
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
825
|
+
}),
|
|
508
826
|
])),
|
|
509
827
|
targets: Schema.Array(Schema.Struct({
|
|
510
828
|
constraint: Schema.optional(Schema.Struct({
|
|
@@ -525,7 +843,24 @@ export const CreatePageRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
525
843
|
export const CreatePageRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
526
844
|
id: Schema.String,
|
|
527
845
|
actions: Schema.Array(Schema.Union([
|
|
528
|
-
Schema.
|
|
846
|
+
Schema.Struct({
|
|
847
|
+
id: Schema.optional(Schema.Union([Schema.Literal("always_use_https"), Schema.Null])),
|
|
848
|
+
}),
|
|
849
|
+
Schema.Struct({
|
|
850
|
+
id: Schema.optional(Schema.Union([
|
|
851
|
+
Schema.Literal("automatic_https_rewrites"),
|
|
852
|
+
Schema.Null,
|
|
853
|
+
])),
|
|
854
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
855
|
+
}),
|
|
856
|
+
Schema.Struct({
|
|
857
|
+
id: Schema.optional(Schema.Union([Schema.Literal("browser_cache_ttl"), Schema.Null])),
|
|
858
|
+
value: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
859
|
+
}),
|
|
860
|
+
Schema.Struct({
|
|
861
|
+
id: Schema.optional(Schema.Union([Schema.Literal("browser_check"), Schema.Null])),
|
|
862
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
863
|
+
}),
|
|
529
864
|
Schema.Struct({
|
|
530
865
|
id: Schema.optional(Schema.Union([
|
|
531
866
|
Schema.Literal("bypass_cache_on_cookie"),
|
|
@@ -632,13 +967,29 @@ export const CreatePageRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
632
967
|
Schema.Null,
|
|
633
968
|
])),
|
|
634
969
|
}),
|
|
970
|
+
Schema.Struct({
|
|
971
|
+
id: Schema.optional(Schema.Union([Schema.Literal("cache_level"), Schema.Null])),
|
|
972
|
+
value: Schema.optional(Schema.Union([
|
|
973
|
+
Schema.Literals([
|
|
974
|
+
"bypass",
|
|
975
|
+
"basic",
|
|
976
|
+
"simplified",
|
|
977
|
+
"aggressive",
|
|
978
|
+
"cache_everything",
|
|
979
|
+
]),
|
|
980
|
+
Schema.Null,
|
|
981
|
+
])),
|
|
982
|
+
}),
|
|
635
983
|
Schema.Struct({
|
|
636
984
|
id: Schema.optional(Schema.Union([Schema.Literal("cache_on_cookie"), Schema.Null])),
|
|
637
985
|
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
638
986
|
}),
|
|
639
987
|
Schema.Struct({
|
|
640
988
|
id: Schema.optional(Schema.Union([Schema.Literal("cache_ttl_by_status"), Schema.Null])),
|
|
641
|
-
value: Schema.optional(Schema.Union([
|
|
989
|
+
value: Schema.optional(Schema.Union([
|
|
990
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
991
|
+
Schema.Null,
|
|
992
|
+
])),
|
|
642
993
|
}),
|
|
643
994
|
Schema.Struct({
|
|
644
995
|
id: Schema.optional(Schema.Union([Schema.Literal("disable_apps"), Schema.Null])),
|
|
@@ -656,6 +1007,10 @@ export const CreatePageRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
656
1007
|
id: Schema.optional(Schema.Union([Schema.Literal("edge_cache_ttl"), Schema.Null])),
|
|
657
1008
|
value: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
658
1009
|
}),
|
|
1010
|
+
Schema.Struct({
|
|
1011
|
+
id: Schema.optional(Schema.Union([Schema.Literal("email_obfuscation"), Schema.Null])),
|
|
1012
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
1013
|
+
}),
|
|
659
1014
|
Schema.Struct({
|
|
660
1015
|
id: Schema.optional(Schema.Union([
|
|
661
1016
|
Schema.Literal("explicit_cache_control"),
|
|
@@ -678,27 +1033,109 @@ export const CreatePageRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
678
1033
|
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
679
1034
|
}),
|
|
680
1035
|
Schema.Struct({
|
|
681
|
-
id: Schema.optional(Schema.Union([Schema.Literal("
|
|
682
|
-
value: Schema.optional(Schema.Union([Schema.
|
|
1036
|
+
id: Schema.optional(Schema.Union([Schema.Literal("ip_geolocation"), Schema.Null])),
|
|
1037
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
683
1038
|
}),
|
|
684
1039
|
Schema.Struct({
|
|
685
|
-
id: Schema.optional(Schema.Union([Schema.Literal("
|
|
1040
|
+
id: Schema.optional(Schema.Union([Schema.Literal("mirage"), Schema.Null])),
|
|
686
1041
|
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
687
1042
|
}),
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
1043
|
+
Schema.Struct({
|
|
1044
|
+
id: Schema.optional(Schema.Union([
|
|
1045
|
+
Schema.Literal("opportunistic_encryption"),
|
|
1046
|
+
Schema.Null,
|
|
1047
|
+
])),
|
|
1048
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
1049
|
+
}),
|
|
1050
|
+
Schema.Struct({
|
|
1051
|
+
id: Schema.optional(Schema.Union([
|
|
1052
|
+
Schema.Literal("origin_error_page_pass_thru"),
|
|
1053
|
+
Schema.Null,
|
|
1054
|
+
])),
|
|
1055
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
1056
|
+
}),
|
|
1057
|
+
Schema.Struct({
|
|
1058
|
+
id: Schema.optional(Schema.Union([Schema.Literal("polish"), Schema.Null])),
|
|
1059
|
+
value: Schema.optional(Schema.Union([
|
|
1060
|
+
Schema.Literals(["off", "lossless", "lossy"]),
|
|
1061
|
+
Schema.Null,
|
|
1062
|
+
])),
|
|
1063
|
+
}),
|
|
1064
|
+
Schema.Struct({
|
|
1065
|
+
id: Schema.optional(Schema.Union([Schema.Literal("resolve_override"), Schema.Null])),
|
|
1066
|
+
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1067
|
+
}),
|
|
1068
|
+
Schema.Struct({
|
|
1069
|
+
id: Schema.optional(Schema.Union([Schema.Literal("respect_strong_etag"), Schema.Null])),
|
|
1070
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
1071
|
+
}),
|
|
1072
|
+
Schema.Struct({
|
|
1073
|
+
id: Schema.optional(Schema.Union([Schema.Literal("response_buffering"), Schema.Null])),
|
|
1074
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
1075
|
+
}),
|
|
1076
|
+
Schema.Struct({
|
|
1077
|
+
id: Schema.optional(Schema.Union([Schema.Literal("rocket_loader"), Schema.Null])),
|
|
1078
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
1079
|
+
}),
|
|
1080
|
+
Schema.Struct({
|
|
1081
|
+
id: Schema.optional(Schema.Union([Schema.Literal("security_level"), Schema.Null])),
|
|
1082
|
+
value: Schema.optional(Schema.Union([
|
|
1083
|
+
Schema.Literals([
|
|
1084
|
+
"off",
|
|
1085
|
+
"essentially_off",
|
|
1086
|
+
"low",
|
|
1087
|
+
"medium",
|
|
1088
|
+
"high",
|
|
1089
|
+
"under_attack",
|
|
1090
|
+
]),
|
|
1091
|
+
Schema.Null,
|
|
1092
|
+
])),
|
|
1093
|
+
}),
|
|
1094
|
+
Schema.Struct({
|
|
1095
|
+
id: Schema.optional(Schema.Union([
|
|
1096
|
+
Schema.Literal("sort_query_string_for_cache"),
|
|
1097
|
+
Schema.Null,
|
|
1098
|
+
])),
|
|
1099
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
1100
|
+
}),
|
|
1101
|
+
Schema.Struct({
|
|
1102
|
+
id: Schema.optional(Schema.Union([Schema.Literal("ssl"), Schema.Null])),
|
|
1103
|
+
value: Schema.optional(Schema.Union([
|
|
1104
|
+
Schema.Literals([
|
|
1105
|
+
"off",
|
|
1106
|
+
"flexible",
|
|
1107
|
+
"full",
|
|
1108
|
+
"strict",
|
|
1109
|
+
"origin_pull",
|
|
1110
|
+
]),
|
|
1111
|
+
Schema.Null,
|
|
1112
|
+
])),
|
|
1113
|
+
}),
|
|
1114
|
+
Schema.Struct({
|
|
1115
|
+
id: Schema.optional(Schema.Union([
|
|
1116
|
+
Schema.Literal("true_client_ip_header"),
|
|
1117
|
+
Schema.Null,
|
|
1118
|
+
])),
|
|
1119
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
1120
|
+
}),
|
|
1121
|
+
Schema.Struct({
|
|
1122
|
+
id: Schema.optional(Schema.Union([Schema.Literal("waf"), Schema.Null])),
|
|
1123
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
1124
|
+
}),
|
|
1125
|
+
])),
|
|
1126
|
+
createdOn: Schema.String,
|
|
1127
|
+
modifiedOn: Schema.String,
|
|
1128
|
+
priority: Schema.Number,
|
|
1129
|
+
status: Schema.Literals(["active", "disabled"]),
|
|
1130
|
+
targets: Schema.Array(Schema.Struct({
|
|
1131
|
+
constraint: Schema.optional(Schema.Union([
|
|
1132
|
+
Schema.Struct({
|
|
1133
|
+
operator: Schema.Literals([
|
|
1134
|
+
"matches",
|
|
1135
|
+
"contains",
|
|
1136
|
+
"equals",
|
|
1137
|
+
"not_equal",
|
|
1138
|
+
"not_contain",
|
|
702
1139
|
]),
|
|
703
1140
|
value: Schema.String,
|
|
704
1141
|
}),
|
|
@@ -726,7 +1163,21 @@ export const UpdatePageRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
726
1163
|
pageruleId: Schema.String.pipe(T.HttpPath("pageruleId")),
|
|
727
1164
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
728
1165
|
actions: Schema.Array(Schema.Union([
|
|
729
|
-
Schema.
|
|
1166
|
+
Schema.Struct({
|
|
1167
|
+
id: Schema.optional(Schema.Literal("always_use_https")),
|
|
1168
|
+
}),
|
|
1169
|
+
Schema.Struct({
|
|
1170
|
+
id: Schema.optional(Schema.Literal("automatic_https_rewrites")),
|
|
1171
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
1172
|
+
}),
|
|
1173
|
+
Schema.Struct({
|
|
1174
|
+
id: Schema.optional(Schema.Literal("browser_cache_ttl")),
|
|
1175
|
+
value: Schema.optional(Schema.Number),
|
|
1176
|
+
}),
|
|
1177
|
+
Schema.Struct({
|
|
1178
|
+
id: Schema.optional(Schema.Literal("browser_check")),
|
|
1179
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
1180
|
+
}),
|
|
730
1181
|
Schema.Struct({
|
|
731
1182
|
id: Schema.optional(Schema.Literal("bypass_cache_on_cookie")),
|
|
732
1183
|
value: Schema.optional(Schema.String),
|
|
@@ -788,13 +1239,23 @@ export const UpdatePageRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
788
1239
|
user: "user",
|
|
789
1240
|
}))),
|
|
790
1241
|
}),
|
|
1242
|
+
Schema.Struct({
|
|
1243
|
+
id: Schema.optional(Schema.Literal("cache_level")),
|
|
1244
|
+
value: Schema.optional(Schema.Literals([
|
|
1245
|
+
"bypass",
|
|
1246
|
+
"basic",
|
|
1247
|
+
"simplified",
|
|
1248
|
+
"aggressive",
|
|
1249
|
+
"cache_everything",
|
|
1250
|
+
])),
|
|
1251
|
+
}),
|
|
791
1252
|
Schema.Struct({
|
|
792
1253
|
id: Schema.optional(Schema.Literal("cache_on_cookie")),
|
|
793
1254
|
value: Schema.optional(Schema.String),
|
|
794
1255
|
}),
|
|
795
1256
|
Schema.Struct({
|
|
796
1257
|
id: Schema.optional(Schema.Literal("cache_ttl_by_status")),
|
|
797
|
-
value: Schema.optional(Schema.
|
|
1258
|
+
value: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
|
|
798
1259
|
}),
|
|
799
1260
|
Schema.Struct({
|
|
800
1261
|
id: Schema.optional(Schema.Literal("disable_apps")),
|
|
@@ -812,6 +1273,10 @@ export const UpdatePageRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
812
1273
|
id: Schema.optional(Schema.Literal("edge_cache_ttl")),
|
|
813
1274
|
value: Schema.optional(Schema.Number),
|
|
814
1275
|
}),
|
|
1276
|
+
Schema.Struct({
|
|
1277
|
+
id: Schema.optional(Schema.Literal("email_obfuscation")),
|
|
1278
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
1279
|
+
}),
|
|
815
1280
|
Schema.Struct({
|
|
816
1281
|
id: Schema.optional(Schema.Literal("explicit_cache_control")),
|
|
817
1282
|
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
@@ -827,6 +1292,26 @@ export const UpdatePageRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
827
1292
|
id: Schema.optional(Schema.Literal("host_header_override")),
|
|
828
1293
|
value: Schema.optional(Schema.String),
|
|
829
1294
|
}),
|
|
1295
|
+
Schema.Struct({
|
|
1296
|
+
id: Schema.optional(Schema.Literal("ip_geolocation")),
|
|
1297
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
1298
|
+
}),
|
|
1299
|
+
Schema.Struct({
|
|
1300
|
+
id: Schema.optional(Schema.Literal("mirage")),
|
|
1301
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
1302
|
+
}),
|
|
1303
|
+
Schema.Struct({
|
|
1304
|
+
id: Schema.optional(Schema.Literal("opportunistic_encryption")),
|
|
1305
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
1306
|
+
}),
|
|
1307
|
+
Schema.Struct({
|
|
1308
|
+
id: Schema.optional(Schema.Literal("origin_error_page_pass_thru")),
|
|
1309
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
1310
|
+
}),
|
|
1311
|
+
Schema.Struct({
|
|
1312
|
+
id: Schema.optional(Schema.Literal("polish")),
|
|
1313
|
+
value: Schema.optional(Schema.Literals(["off", "lossless", "lossy"])),
|
|
1314
|
+
}),
|
|
830
1315
|
Schema.Struct({
|
|
831
1316
|
id: Schema.optional(Schema.Literal("resolve_override")),
|
|
832
1317
|
value: Schema.optional(Schema.String),
|
|
@@ -835,6 +1320,41 @@ export const UpdatePageRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
835
1320
|
id: Schema.optional(Schema.Literal("respect_strong_etag")),
|
|
836
1321
|
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
837
1322
|
}),
|
|
1323
|
+
Schema.Struct({
|
|
1324
|
+
id: Schema.optional(Schema.Literal("response_buffering")),
|
|
1325
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
1326
|
+
}),
|
|
1327
|
+
Schema.Struct({
|
|
1328
|
+
id: Schema.optional(Schema.Literal("rocket_loader")),
|
|
1329
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
1330
|
+
}),
|
|
1331
|
+
Schema.Struct({
|
|
1332
|
+
id: Schema.optional(Schema.Literal("security_level")),
|
|
1333
|
+
value: Schema.optional(Schema.Literals([
|
|
1334
|
+
"off",
|
|
1335
|
+
"essentially_off",
|
|
1336
|
+
"low",
|
|
1337
|
+
"medium",
|
|
1338
|
+
"high",
|
|
1339
|
+
"under_attack",
|
|
1340
|
+
])),
|
|
1341
|
+
}),
|
|
1342
|
+
Schema.Struct({
|
|
1343
|
+
id: Schema.optional(Schema.Literal("sort_query_string_for_cache")),
|
|
1344
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
1345
|
+
}),
|
|
1346
|
+
Schema.Struct({
|
|
1347
|
+
id: Schema.optional(Schema.Literal("ssl")),
|
|
1348
|
+
value: Schema.optional(Schema.Literals(["off", "flexible", "full", "strict", "origin_pull"])),
|
|
1349
|
+
}),
|
|
1350
|
+
Schema.Struct({
|
|
1351
|
+
id: Schema.optional(Schema.Literal("true_client_ip_header")),
|
|
1352
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
1353
|
+
}),
|
|
1354
|
+
Schema.Struct({
|
|
1355
|
+
id: Schema.optional(Schema.Literal("waf")),
|
|
1356
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
1357
|
+
}),
|
|
838
1358
|
])),
|
|
839
1359
|
targets: Schema.Array(Schema.Struct({
|
|
840
1360
|
constraint: Schema.optional(Schema.Struct({
|
|
@@ -855,7 +1375,24 @@ export const UpdatePageRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
855
1375
|
export const UpdatePageRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
856
1376
|
id: Schema.String,
|
|
857
1377
|
actions: Schema.Array(Schema.Union([
|
|
858
|
-
Schema.
|
|
1378
|
+
Schema.Struct({
|
|
1379
|
+
id: Schema.optional(Schema.Union([Schema.Literal("always_use_https"), Schema.Null])),
|
|
1380
|
+
}),
|
|
1381
|
+
Schema.Struct({
|
|
1382
|
+
id: Schema.optional(Schema.Union([
|
|
1383
|
+
Schema.Literal("automatic_https_rewrites"),
|
|
1384
|
+
Schema.Null,
|
|
1385
|
+
])),
|
|
1386
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
1387
|
+
}),
|
|
1388
|
+
Schema.Struct({
|
|
1389
|
+
id: Schema.optional(Schema.Union([Schema.Literal("browser_cache_ttl"), Schema.Null])),
|
|
1390
|
+
value: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1391
|
+
}),
|
|
1392
|
+
Schema.Struct({
|
|
1393
|
+
id: Schema.optional(Schema.Union([Schema.Literal("browser_check"), Schema.Null])),
|
|
1394
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
1395
|
+
}),
|
|
859
1396
|
Schema.Struct({
|
|
860
1397
|
id: Schema.optional(Schema.Union([
|
|
861
1398
|
Schema.Literal("bypass_cache_on_cookie"),
|
|
@@ -962,13 +1499,29 @@ export const UpdatePageRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
962
1499
|
Schema.Null,
|
|
963
1500
|
])),
|
|
964
1501
|
}),
|
|
1502
|
+
Schema.Struct({
|
|
1503
|
+
id: Schema.optional(Schema.Union([Schema.Literal("cache_level"), Schema.Null])),
|
|
1504
|
+
value: Schema.optional(Schema.Union([
|
|
1505
|
+
Schema.Literals([
|
|
1506
|
+
"bypass",
|
|
1507
|
+
"basic",
|
|
1508
|
+
"simplified",
|
|
1509
|
+
"aggressive",
|
|
1510
|
+
"cache_everything",
|
|
1511
|
+
]),
|
|
1512
|
+
Schema.Null,
|
|
1513
|
+
])),
|
|
1514
|
+
}),
|
|
965
1515
|
Schema.Struct({
|
|
966
1516
|
id: Schema.optional(Schema.Union([Schema.Literal("cache_on_cookie"), Schema.Null])),
|
|
967
1517
|
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
968
1518
|
}),
|
|
969
1519
|
Schema.Struct({
|
|
970
1520
|
id: Schema.optional(Schema.Union([Schema.Literal("cache_ttl_by_status"), Schema.Null])),
|
|
971
|
-
value: Schema.optional(Schema.Union([
|
|
1521
|
+
value: Schema.optional(Schema.Union([
|
|
1522
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
1523
|
+
Schema.Null,
|
|
1524
|
+
])),
|
|
972
1525
|
}),
|
|
973
1526
|
Schema.Struct({
|
|
974
1527
|
id: Schema.optional(Schema.Union([Schema.Literal("disable_apps"), Schema.Null])),
|
|
@@ -986,6 +1539,10 @@ export const UpdatePageRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
986
1539
|
id: Schema.optional(Schema.Union([Schema.Literal("edge_cache_ttl"), Schema.Null])),
|
|
987
1540
|
value: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
988
1541
|
}),
|
|
1542
|
+
Schema.Struct({
|
|
1543
|
+
id: Schema.optional(Schema.Union([Schema.Literal("email_obfuscation"), Schema.Null])),
|
|
1544
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
1545
|
+
}),
|
|
989
1546
|
Schema.Struct({
|
|
990
1547
|
id: Schema.optional(Schema.Union([
|
|
991
1548
|
Schema.Literal("explicit_cache_control"),
|
|
@@ -1007,6 +1564,35 @@ export const UpdatePageRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
1007
1564
|
id: Schema.optional(Schema.Union([Schema.Literal("host_header_override"), Schema.Null])),
|
|
1008
1565
|
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1009
1566
|
}),
|
|
1567
|
+
Schema.Struct({
|
|
1568
|
+
id: Schema.optional(Schema.Union([Schema.Literal("ip_geolocation"), Schema.Null])),
|
|
1569
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
1570
|
+
}),
|
|
1571
|
+
Schema.Struct({
|
|
1572
|
+
id: Schema.optional(Schema.Union([Schema.Literal("mirage"), Schema.Null])),
|
|
1573
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
1574
|
+
}),
|
|
1575
|
+
Schema.Struct({
|
|
1576
|
+
id: Schema.optional(Schema.Union([
|
|
1577
|
+
Schema.Literal("opportunistic_encryption"),
|
|
1578
|
+
Schema.Null,
|
|
1579
|
+
])),
|
|
1580
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
1581
|
+
}),
|
|
1582
|
+
Schema.Struct({
|
|
1583
|
+
id: Schema.optional(Schema.Union([
|
|
1584
|
+
Schema.Literal("origin_error_page_pass_thru"),
|
|
1585
|
+
Schema.Null,
|
|
1586
|
+
])),
|
|
1587
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
1588
|
+
}),
|
|
1589
|
+
Schema.Struct({
|
|
1590
|
+
id: Schema.optional(Schema.Union([Schema.Literal("polish"), Schema.Null])),
|
|
1591
|
+
value: Schema.optional(Schema.Union([
|
|
1592
|
+
Schema.Literals(["off", "lossless", "lossy"]),
|
|
1593
|
+
Schema.Null,
|
|
1594
|
+
])),
|
|
1595
|
+
}),
|
|
1010
1596
|
Schema.Struct({
|
|
1011
1597
|
id: Schema.optional(Schema.Union([Schema.Literal("resolve_override"), Schema.Null])),
|
|
1012
1598
|
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -1015,6 +1601,59 @@ export const UpdatePageRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
1015
1601
|
id: Schema.optional(Schema.Union([Schema.Literal("respect_strong_etag"), Schema.Null])),
|
|
1016
1602
|
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
1017
1603
|
}),
|
|
1604
|
+
Schema.Struct({
|
|
1605
|
+
id: Schema.optional(Schema.Union([Schema.Literal("response_buffering"), Schema.Null])),
|
|
1606
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
1607
|
+
}),
|
|
1608
|
+
Schema.Struct({
|
|
1609
|
+
id: Schema.optional(Schema.Union([Schema.Literal("rocket_loader"), Schema.Null])),
|
|
1610
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
1611
|
+
}),
|
|
1612
|
+
Schema.Struct({
|
|
1613
|
+
id: Schema.optional(Schema.Union([Schema.Literal("security_level"), Schema.Null])),
|
|
1614
|
+
value: Schema.optional(Schema.Union([
|
|
1615
|
+
Schema.Literals([
|
|
1616
|
+
"off",
|
|
1617
|
+
"essentially_off",
|
|
1618
|
+
"low",
|
|
1619
|
+
"medium",
|
|
1620
|
+
"high",
|
|
1621
|
+
"under_attack",
|
|
1622
|
+
]),
|
|
1623
|
+
Schema.Null,
|
|
1624
|
+
])),
|
|
1625
|
+
}),
|
|
1626
|
+
Schema.Struct({
|
|
1627
|
+
id: Schema.optional(Schema.Union([
|
|
1628
|
+
Schema.Literal("sort_query_string_for_cache"),
|
|
1629
|
+
Schema.Null,
|
|
1630
|
+
])),
|
|
1631
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
1632
|
+
}),
|
|
1633
|
+
Schema.Struct({
|
|
1634
|
+
id: Schema.optional(Schema.Union([Schema.Literal("ssl"), Schema.Null])),
|
|
1635
|
+
value: Schema.optional(Schema.Union([
|
|
1636
|
+
Schema.Literals([
|
|
1637
|
+
"off",
|
|
1638
|
+
"flexible",
|
|
1639
|
+
"full",
|
|
1640
|
+
"strict",
|
|
1641
|
+
"origin_pull",
|
|
1642
|
+
]),
|
|
1643
|
+
Schema.Null,
|
|
1644
|
+
])),
|
|
1645
|
+
}),
|
|
1646
|
+
Schema.Struct({
|
|
1647
|
+
id: Schema.optional(Schema.Union([
|
|
1648
|
+
Schema.Literal("true_client_ip_header"),
|
|
1649
|
+
Schema.Null,
|
|
1650
|
+
])),
|
|
1651
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
1652
|
+
}),
|
|
1653
|
+
Schema.Struct({
|
|
1654
|
+
id: Schema.optional(Schema.Union([Schema.Literal("waf"), Schema.Null])),
|
|
1655
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
1656
|
+
}),
|
|
1018
1657
|
])),
|
|
1019
1658
|
createdOn: Schema.String,
|
|
1020
1659
|
modifiedOn: Schema.String,
|
|
@@ -1056,7 +1695,21 @@ export const PatchPageRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1056
1695
|
pageruleId: Schema.String.pipe(T.HttpPath("pageruleId")),
|
|
1057
1696
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
1058
1697
|
actions: Schema.optional(Schema.Array(Schema.Union([
|
|
1059
|
-
Schema.
|
|
1698
|
+
Schema.Struct({
|
|
1699
|
+
id: Schema.optional(Schema.Literal("always_use_https")),
|
|
1700
|
+
}),
|
|
1701
|
+
Schema.Struct({
|
|
1702
|
+
id: Schema.optional(Schema.Literal("automatic_https_rewrites")),
|
|
1703
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
1704
|
+
}),
|
|
1705
|
+
Schema.Struct({
|
|
1706
|
+
id: Schema.optional(Schema.Literal("browser_cache_ttl")),
|
|
1707
|
+
value: Schema.optional(Schema.Number),
|
|
1708
|
+
}),
|
|
1709
|
+
Schema.Struct({
|
|
1710
|
+
id: Schema.optional(Schema.Literal("browser_check")),
|
|
1711
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
1712
|
+
}),
|
|
1060
1713
|
Schema.Struct({
|
|
1061
1714
|
id: Schema.optional(Schema.Literal("bypass_cache_on_cookie")),
|
|
1062
1715
|
value: Schema.optional(Schema.String),
|
|
@@ -1118,13 +1771,23 @@ export const PatchPageRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1118
1771
|
user: "user",
|
|
1119
1772
|
}))),
|
|
1120
1773
|
}),
|
|
1774
|
+
Schema.Struct({
|
|
1775
|
+
id: Schema.optional(Schema.Literal("cache_level")),
|
|
1776
|
+
value: Schema.optional(Schema.Literals([
|
|
1777
|
+
"bypass",
|
|
1778
|
+
"basic",
|
|
1779
|
+
"simplified",
|
|
1780
|
+
"aggressive",
|
|
1781
|
+
"cache_everything",
|
|
1782
|
+
])),
|
|
1783
|
+
}),
|
|
1121
1784
|
Schema.Struct({
|
|
1122
1785
|
id: Schema.optional(Schema.Literal("cache_on_cookie")),
|
|
1123
1786
|
value: Schema.optional(Schema.String),
|
|
1124
1787
|
}),
|
|
1125
1788
|
Schema.Struct({
|
|
1126
1789
|
id: Schema.optional(Schema.Literal("cache_ttl_by_status")),
|
|
1127
|
-
value: Schema.optional(Schema.
|
|
1790
|
+
value: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
|
|
1128
1791
|
}),
|
|
1129
1792
|
Schema.Struct({
|
|
1130
1793
|
id: Schema.optional(Schema.Literal("disable_apps")),
|
|
@@ -1142,6 +1805,10 @@ export const PatchPageRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1142
1805
|
id: Schema.optional(Schema.Literal("edge_cache_ttl")),
|
|
1143
1806
|
value: Schema.optional(Schema.Number),
|
|
1144
1807
|
}),
|
|
1808
|
+
Schema.Struct({
|
|
1809
|
+
id: Schema.optional(Schema.Literal("email_obfuscation")),
|
|
1810
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
1811
|
+
}),
|
|
1145
1812
|
Schema.Struct({
|
|
1146
1813
|
id: Schema.optional(Schema.Literal("explicit_cache_control")),
|
|
1147
1814
|
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
@@ -1157,6 +1824,26 @@ export const PatchPageRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1157
1824
|
id: Schema.optional(Schema.Literal("host_header_override")),
|
|
1158
1825
|
value: Schema.optional(Schema.String),
|
|
1159
1826
|
}),
|
|
1827
|
+
Schema.Struct({
|
|
1828
|
+
id: Schema.optional(Schema.Literal("ip_geolocation")),
|
|
1829
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
1830
|
+
}),
|
|
1831
|
+
Schema.Struct({
|
|
1832
|
+
id: Schema.optional(Schema.Literal("mirage")),
|
|
1833
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
1834
|
+
}),
|
|
1835
|
+
Schema.Struct({
|
|
1836
|
+
id: Schema.optional(Schema.Literal("opportunistic_encryption")),
|
|
1837
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
1838
|
+
}),
|
|
1839
|
+
Schema.Struct({
|
|
1840
|
+
id: Schema.optional(Schema.Literal("origin_error_page_pass_thru")),
|
|
1841
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
1842
|
+
}),
|
|
1843
|
+
Schema.Struct({
|
|
1844
|
+
id: Schema.optional(Schema.Literal("polish")),
|
|
1845
|
+
value: Schema.optional(Schema.Literals(["off", "lossless", "lossy"])),
|
|
1846
|
+
}),
|
|
1160
1847
|
Schema.Struct({
|
|
1161
1848
|
id: Schema.optional(Schema.Literal("resolve_override")),
|
|
1162
1849
|
value: Schema.optional(Schema.String),
|
|
@@ -1165,6 +1852,47 @@ export const PatchPageRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1165
1852
|
id: Schema.optional(Schema.Literal("respect_strong_etag")),
|
|
1166
1853
|
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
1167
1854
|
}),
|
|
1855
|
+
Schema.Struct({
|
|
1856
|
+
id: Schema.optional(Schema.Literal("response_buffering")),
|
|
1857
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
1858
|
+
}),
|
|
1859
|
+
Schema.Struct({
|
|
1860
|
+
id: Schema.optional(Schema.Literal("rocket_loader")),
|
|
1861
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
1862
|
+
}),
|
|
1863
|
+
Schema.Struct({
|
|
1864
|
+
id: Schema.optional(Schema.Literal("security_level")),
|
|
1865
|
+
value: Schema.optional(Schema.Literals([
|
|
1866
|
+
"off",
|
|
1867
|
+
"essentially_off",
|
|
1868
|
+
"low",
|
|
1869
|
+
"medium",
|
|
1870
|
+
"high",
|
|
1871
|
+
"under_attack",
|
|
1872
|
+
])),
|
|
1873
|
+
}),
|
|
1874
|
+
Schema.Struct({
|
|
1875
|
+
id: Schema.optional(Schema.Literal("sort_query_string_for_cache")),
|
|
1876
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
1877
|
+
}),
|
|
1878
|
+
Schema.Struct({
|
|
1879
|
+
id: Schema.optional(Schema.Literal("ssl")),
|
|
1880
|
+
value: Schema.optional(Schema.Literals([
|
|
1881
|
+
"off",
|
|
1882
|
+
"flexible",
|
|
1883
|
+
"full",
|
|
1884
|
+
"strict",
|
|
1885
|
+
"origin_pull",
|
|
1886
|
+
])),
|
|
1887
|
+
}),
|
|
1888
|
+
Schema.Struct({
|
|
1889
|
+
id: Schema.optional(Schema.Literal("true_client_ip_header")),
|
|
1890
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
1891
|
+
}),
|
|
1892
|
+
Schema.Struct({
|
|
1893
|
+
id: Schema.optional(Schema.Literal("waf")),
|
|
1894
|
+
value: Schema.optional(Schema.Literals(["on", "off"])),
|
|
1895
|
+
}),
|
|
1168
1896
|
]))),
|
|
1169
1897
|
priority: Schema.optional(Schema.Number),
|
|
1170
1898
|
status: Schema.optional(Schema.Literals(["active", "disabled"])),
|
|
@@ -1185,7 +1913,24 @@ export const PatchPageRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1185
1913
|
export const PatchPageRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1186
1914
|
id: Schema.String,
|
|
1187
1915
|
actions: Schema.Array(Schema.Union([
|
|
1188
|
-
Schema.
|
|
1916
|
+
Schema.Struct({
|
|
1917
|
+
id: Schema.optional(Schema.Union([Schema.Literal("always_use_https"), Schema.Null])),
|
|
1918
|
+
}),
|
|
1919
|
+
Schema.Struct({
|
|
1920
|
+
id: Schema.optional(Schema.Union([
|
|
1921
|
+
Schema.Literal("automatic_https_rewrites"),
|
|
1922
|
+
Schema.Null,
|
|
1923
|
+
])),
|
|
1924
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
1925
|
+
}),
|
|
1926
|
+
Schema.Struct({
|
|
1927
|
+
id: Schema.optional(Schema.Union([Schema.Literal("browser_cache_ttl"), Schema.Null])),
|
|
1928
|
+
value: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1929
|
+
}),
|
|
1930
|
+
Schema.Struct({
|
|
1931
|
+
id: Schema.optional(Schema.Union([Schema.Literal("browser_check"), Schema.Null])),
|
|
1932
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
1933
|
+
}),
|
|
1189
1934
|
Schema.Struct({
|
|
1190
1935
|
id: Schema.optional(Schema.Union([Schema.Literal("bypass_cache_on_cookie"), Schema.Null])),
|
|
1191
1936
|
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -1271,13 +2016,29 @@ export const PatchPageRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1271
2016
|
Schema.Null,
|
|
1272
2017
|
])),
|
|
1273
2018
|
}),
|
|
2019
|
+
Schema.Struct({
|
|
2020
|
+
id: Schema.optional(Schema.Union([Schema.Literal("cache_level"), Schema.Null])),
|
|
2021
|
+
value: Schema.optional(Schema.Union([
|
|
2022
|
+
Schema.Literals([
|
|
2023
|
+
"bypass",
|
|
2024
|
+
"basic",
|
|
2025
|
+
"simplified",
|
|
2026
|
+
"aggressive",
|
|
2027
|
+
"cache_everything",
|
|
2028
|
+
]),
|
|
2029
|
+
Schema.Null,
|
|
2030
|
+
])),
|
|
2031
|
+
}),
|
|
1274
2032
|
Schema.Struct({
|
|
1275
2033
|
id: Schema.optional(Schema.Union([Schema.Literal("cache_on_cookie"), Schema.Null])),
|
|
1276
2034
|
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1277
2035
|
}),
|
|
1278
2036
|
Schema.Struct({
|
|
1279
2037
|
id: Schema.optional(Schema.Union([Schema.Literal("cache_ttl_by_status"), Schema.Null])),
|
|
1280
|
-
value: Schema.optional(Schema.Union([
|
|
2038
|
+
value: Schema.optional(Schema.Union([
|
|
2039
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
2040
|
+
Schema.Null,
|
|
2041
|
+
])),
|
|
1281
2042
|
}),
|
|
1282
2043
|
Schema.Struct({
|
|
1283
2044
|
id: Schema.optional(Schema.Union([Schema.Literal("disable_apps"), Schema.Null])),
|
|
@@ -1295,6 +2056,10 @@ export const PatchPageRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1295
2056
|
id: Schema.optional(Schema.Union([Schema.Literal("edge_cache_ttl"), Schema.Null])),
|
|
1296
2057
|
value: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1297
2058
|
}),
|
|
2059
|
+
Schema.Struct({
|
|
2060
|
+
id: Schema.optional(Schema.Union([Schema.Literal("email_obfuscation"), Schema.Null])),
|
|
2061
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
2062
|
+
}),
|
|
1298
2063
|
Schema.Struct({
|
|
1299
2064
|
id: Schema.optional(Schema.Union([Schema.Literal("explicit_cache_control"), Schema.Null])),
|
|
1300
2065
|
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
@@ -1313,6 +2078,35 @@ export const PatchPageRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1313
2078
|
id: Schema.optional(Schema.Union([Schema.Literal("host_header_override"), Schema.Null])),
|
|
1314
2079
|
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1315
2080
|
}),
|
|
2081
|
+
Schema.Struct({
|
|
2082
|
+
id: Schema.optional(Schema.Union([Schema.Literal("ip_geolocation"), Schema.Null])),
|
|
2083
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
2084
|
+
}),
|
|
2085
|
+
Schema.Struct({
|
|
2086
|
+
id: Schema.optional(Schema.Union([Schema.Literal("mirage"), Schema.Null])),
|
|
2087
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
2088
|
+
}),
|
|
2089
|
+
Schema.Struct({
|
|
2090
|
+
id: Schema.optional(Schema.Union([
|
|
2091
|
+
Schema.Literal("opportunistic_encryption"),
|
|
2092
|
+
Schema.Null,
|
|
2093
|
+
])),
|
|
2094
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
2095
|
+
}),
|
|
2096
|
+
Schema.Struct({
|
|
2097
|
+
id: Schema.optional(Schema.Union([
|
|
2098
|
+
Schema.Literal("origin_error_page_pass_thru"),
|
|
2099
|
+
Schema.Null,
|
|
2100
|
+
])),
|
|
2101
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
2102
|
+
}),
|
|
2103
|
+
Schema.Struct({
|
|
2104
|
+
id: Schema.optional(Schema.Union([Schema.Literal("polish"), Schema.Null])),
|
|
2105
|
+
value: Schema.optional(Schema.Union([
|
|
2106
|
+
Schema.Literals(["off", "lossless", "lossy"]),
|
|
2107
|
+
Schema.Null,
|
|
2108
|
+
])),
|
|
2109
|
+
}),
|
|
1316
2110
|
Schema.Struct({
|
|
1317
2111
|
id: Schema.optional(Schema.Union([Schema.Literal("resolve_override"), Schema.Null])),
|
|
1318
2112
|
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -1321,6 +2115,56 @@ export const PatchPageRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1321
2115
|
id: Schema.optional(Schema.Union([Schema.Literal("respect_strong_etag"), Schema.Null])),
|
|
1322
2116
|
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
1323
2117
|
}),
|
|
2118
|
+
Schema.Struct({
|
|
2119
|
+
id: Schema.optional(Schema.Union([Schema.Literal("response_buffering"), Schema.Null])),
|
|
2120
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
2121
|
+
}),
|
|
2122
|
+
Schema.Struct({
|
|
2123
|
+
id: Schema.optional(Schema.Union([Schema.Literal("rocket_loader"), Schema.Null])),
|
|
2124
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
2125
|
+
}),
|
|
2126
|
+
Schema.Struct({
|
|
2127
|
+
id: Schema.optional(Schema.Union([Schema.Literal("security_level"), Schema.Null])),
|
|
2128
|
+
value: Schema.optional(Schema.Union([
|
|
2129
|
+
Schema.Literals([
|
|
2130
|
+
"off",
|
|
2131
|
+
"essentially_off",
|
|
2132
|
+
"low",
|
|
2133
|
+
"medium",
|
|
2134
|
+
"high",
|
|
2135
|
+
"under_attack",
|
|
2136
|
+
]),
|
|
2137
|
+
Schema.Null,
|
|
2138
|
+
])),
|
|
2139
|
+
}),
|
|
2140
|
+
Schema.Struct({
|
|
2141
|
+
id: Schema.optional(Schema.Union([
|
|
2142
|
+
Schema.Literal("sort_query_string_for_cache"),
|
|
2143
|
+
Schema.Null,
|
|
2144
|
+
])),
|
|
2145
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
2146
|
+
}),
|
|
2147
|
+
Schema.Struct({
|
|
2148
|
+
id: Schema.optional(Schema.Union([Schema.Literal("ssl"), Schema.Null])),
|
|
2149
|
+
value: Schema.optional(Schema.Union([
|
|
2150
|
+
Schema.Literals([
|
|
2151
|
+
"off",
|
|
2152
|
+
"flexible",
|
|
2153
|
+
"full",
|
|
2154
|
+
"strict",
|
|
2155
|
+
"origin_pull",
|
|
2156
|
+
]),
|
|
2157
|
+
Schema.Null,
|
|
2158
|
+
])),
|
|
2159
|
+
}),
|
|
2160
|
+
Schema.Struct({
|
|
2161
|
+
id: Schema.optional(Schema.Union([Schema.Literal("true_client_ip_header"), Schema.Null])),
|
|
2162
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
2163
|
+
}),
|
|
2164
|
+
Schema.Struct({
|
|
2165
|
+
id: Schema.optional(Schema.Union([Schema.Literal("waf"), Schema.Null])),
|
|
2166
|
+
value: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
|
|
2167
|
+
}),
|
|
1324
2168
|
])),
|
|
1325
2169
|
createdOn: Schema.String,
|
|
1326
2170
|
modifiedOn: Schema.String,
|