@distilled.cloud/cloudflare 0.22.3 → 0.22.4
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/abuse-reports.d.ts +39 -11
- package/lib/services/abuse-reports.d.ts.map +1 -1
- package/lib/services/abuse-reports.js +89 -11
- package/lib/services/abuse-reports.js.map +1 -1
- package/lib/services/accounts.d.ts +21 -1
- package/lib/services/accounts.d.ts.map +1 -1
- package/lib/services/accounts.js +33 -1
- package/lib/services/accounts.js.map +1 -1
- package/lib/services/ai.d.ts +97 -1
- package/lib/services/ai.d.ts.map +1 -1
- package/lib/services/ai.js +119 -2
- package/lib/services/ai.js.map +1 -1
- package/lib/services/bot-management.d.ts +16 -0
- package/lib/services/bot-management.d.ts.map +1 -1
- package/lib/services/bot-management.js +22 -0
- package/lib/services/bot-management.js.map +1 -1
- package/lib/services/browser-rendering.d.ts +25 -9
- package/lib/services/browser-rendering.d.ts.map +1 -1
- package/lib/services/browser-rendering.js +18 -9
- package/lib/services/browser-rendering.js.map +1 -1
- package/lib/services/cache.d.ts +11 -0
- package/lib/services/cache.d.ts.map +1 -1
- package/lib/services/cache.js +17 -1
- package/lib/services/cache.js.map +1 -1
- package/lib/services/connectivity.d.ts +18 -32
- package/lib/services/connectivity.d.ts.map +1 -1
- package/lib/services/connectivity.js +56 -66
- package/lib/services/connectivity.js.map +1 -1
- package/lib/services/d1.d.ts +18 -4
- package/lib/services/d1.d.ts.map +1 -1
- package/lib/services/d1.js +23 -5
- package/lib/services/d1.js.map +1 -1
- package/lib/services/dns.d.ts +129 -3
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +330 -6
- package/lib/services/dns.js.map +1 -1
- package/lib/services/magic-transit.d.ts +7 -1
- package/lib/services/magic-transit.d.ts.map +1 -1
- package/lib/services/magic-transit.js +7 -1
- package/lib/services/magic-transit.js.map +1 -1
- package/lib/services/network-interconnects.d.ts +5 -1
- package/lib/services/network-interconnects.d.ts.map +1 -1
- package/lib/services/network-interconnects.js +21 -1
- package/lib/services/network-interconnects.js.map +1 -1
- package/lib/services/queues.d.ts +6 -4
- package/lib/services/queues.d.ts.map +1 -1
- package/lib/services/queues.js +8 -4
- package/lib/services/queues.js.map +1 -1
- package/lib/services/r2.d.ts +11 -4
- package/lib/services/r2.d.ts.map +1 -1
- package/lib/services/r2.js +13 -4
- package/lib/services/r2.js.map +1 -1
- package/lib/services/resource-tagging.d.ts +4 -2
- package/lib/services/resource-tagging.d.ts.map +1 -1
- package/lib/services/resource-tagging.js +4 -1
- package/lib/services/resource-tagging.js.map +1 -1
- package/lib/services/rulesets.d.ts +510 -6
- package/lib/services/rulesets.d.ts.map +1 -1
- package/lib/services/rulesets.js +1298 -36
- package/lib/services/rulesets.js.map +1 -1
- package/lib/services/spectrum.d.ts +4 -8
- package/lib/services/spectrum.d.ts.map +1 -1
- package/lib/services/spectrum.js +12 -34
- package/lib/services/spectrum.js.map +1 -1
- package/lib/services/workers-for-platforms.d.ts +12 -2
- package/lib/services/workers-for-platforms.d.ts.map +1 -1
- package/lib/services/workers-for-platforms.js +35 -3
- package/lib/services/workers-for-platforms.js.map +1 -1
- package/lib/services/workers.d.ts +12 -2
- package/lib/services/workers.d.ts.map +1 -1
- package/lib/services/workers.js +35 -3
- package/lib/services/workers.js.map +1 -1
- package/lib/services/zero-trust.d.ts +1463 -557
- package/lib/services/zero-trust.d.ts.map +1 -1
- package/lib/services/zero-trust.js +1654 -93
- package/lib/services/zero-trust.js.map +1 -1
- package/lib/services/zones.d.ts +2 -0
- package/lib/services/zones.d.ts.map +1 -1
- package/lib/services/zones.js +1 -0
- package/lib/services/zones.js.map +1 -1
- package/package.json +2 -2
- package/src/services/abuse-reports.ts +173 -22
- package/src/services/accounts.ts +66 -2
- package/src/services/ai.ts +235 -2
- package/src/services/bot-management.ts +48 -0
- package/src/services/browser-rendering.ts +43 -18
- package/src/services/cache.ts +31 -0
- package/src/services/connectivity.ts +78 -70
- package/src/services/d1.ts +43 -8
- package/src/services/dns.ts +549 -12
- package/src/services/magic-transit.ts +14 -2
- package/src/services/network-interconnects.ts +41 -2
- package/src/services/queues.ts +16 -8
- package/src/services/r2.ts +30 -7
- package/src/services/resource-tagging.ts +8 -2
- package/src/services/rulesets.ts +3283 -963
- package/src/services/spectrum.ts +36 -52
- package/src/services/workers-for-platforms.ts +63 -4
- package/src/services/workers.ts +63 -4
- package/src/services/zero-trust.ts +3071 -478
- package/src/services/zones.ts +3 -0
package/src/services/rulesets.ts
CHANGED
|
@@ -16241,23 +16241,876 @@ export const listPhasVersionsForZone: API.PaginatedOperationMethod<
|
|
|
16241
16241
|
const CreateRuleBaseFields = {
|
|
16242
16242
|
rulesetId: Schema.String.pipe(T.HttpPath("rulesetId")),
|
|
16243
16243
|
id: Schema.optional(Schema.String),
|
|
16244
|
-
action: Schema.optional(
|
|
16244
|
+
action: Schema.optional(
|
|
16245
|
+
Schema.Union([
|
|
16246
|
+
Schema.Literals([
|
|
16247
|
+
"block",
|
|
16248
|
+
"challenge",
|
|
16249
|
+
"compress_response",
|
|
16250
|
+
"ddos_dynamic",
|
|
16251
|
+
"execute",
|
|
16252
|
+
"force_connection_close",
|
|
16253
|
+
"js_challenge",
|
|
16254
|
+
"log",
|
|
16255
|
+
"log_custom_field",
|
|
16256
|
+
"managed_challenge",
|
|
16257
|
+
"redirect",
|
|
16258
|
+
"rewrite",
|
|
16259
|
+
"route",
|
|
16260
|
+
"score",
|
|
16261
|
+
"serve_error",
|
|
16262
|
+
"set_cache_control",
|
|
16263
|
+
"set_cache_settings",
|
|
16264
|
+
"set_cache_tags",
|
|
16265
|
+
"set_config",
|
|
16266
|
+
"skip",
|
|
16267
|
+
]),
|
|
16268
|
+
Schema.String,
|
|
16269
|
+
]),
|
|
16270
|
+
),
|
|
16245
16271
|
actionParameters: Schema.optional(
|
|
16246
|
-
Schema.
|
|
16247
|
-
|
|
16248
|
-
Schema.
|
|
16249
|
-
|
|
16250
|
-
|
|
16251
|
-
|
|
16252
|
-
|
|
16253
|
-
|
|
16254
|
-
|
|
16255
|
-
|
|
16256
|
-
|
|
16272
|
+
Schema.Union([
|
|
16273
|
+
Schema.Struct({
|
|
16274
|
+
operation: Schema.Union([
|
|
16275
|
+
Schema.Literals(["add", "remove", "set"]),
|
|
16276
|
+
Schema.String,
|
|
16277
|
+
]),
|
|
16278
|
+
values: Schema.Array(Schema.String),
|
|
16279
|
+
}),
|
|
16280
|
+
Schema.Struct({
|
|
16281
|
+
expression: Schema.String,
|
|
16282
|
+
operation: Schema.Union([
|
|
16283
|
+
Schema.Literals(["add", "remove", "set"]),
|
|
16284
|
+
Schema.String,
|
|
16285
|
+
]),
|
|
16286
|
+
}),
|
|
16287
|
+
Schema.Struct({
|
|
16288
|
+
algorithms: Schema.Array(
|
|
16289
|
+
Schema.Struct({
|
|
16290
|
+
name: Schema.optional(
|
|
16291
|
+
Schema.Union([
|
|
16292
|
+
Schema.Literals([
|
|
16293
|
+
"none",
|
|
16294
|
+
"auto",
|
|
16295
|
+
"default",
|
|
16296
|
+
"gzip",
|
|
16297
|
+
"brotli",
|
|
16298
|
+
"zstd",
|
|
16299
|
+
]),
|
|
16300
|
+
Schema.String,
|
|
16301
|
+
]),
|
|
16302
|
+
),
|
|
16257
16303
|
}),
|
|
16258
16304
|
),
|
|
16305
|
+
}),
|
|
16306
|
+
Schema.Struct({
|
|
16307
|
+
id: Schema.String,
|
|
16308
|
+
matchedData: Schema.optional(
|
|
16309
|
+
Schema.Struct({
|
|
16310
|
+
publicKey: Schema.String,
|
|
16311
|
+
}).pipe(Schema.encodeKeys({ publicKey: "public_key" })),
|
|
16312
|
+
),
|
|
16313
|
+
overrides: Schema.optional(
|
|
16314
|
+
Schema.Struct({
|
|
16315
|
+
action: Schema.optional(Schema.String),
|
|
16316
|
+
categories: Schema.optional(
|
|
16317
|
+
Schema.Array(
|
|
16318
|
+
Schema.Struct({
|
|
16319
|
+
category: Schema.String,
|
|
16320
|
+
action: Schema.optional(Schema.String),
|
|
16321
|
+
enabled: Schema.optional(Schema.Boolean),
|
|
16322
|
+
sensitivityLevel: Schema.optional(
|
|
16323
|
+
Schema.Union([
|
|
16324
|
+
Schema.Literals(["default", "medium", "low", "eoff"]),
|
|
16325
|
+
Schema.String,
|
|
16326
|
+
]),
|
|
16327
|
+
),
|
|
16328
|
+
}).pipe(
|
|
16329
|
+
Schema.encodeKeys({
|
|
16330
|
+
category: "category",
|
|
16331
|
+
action: "action",
|
|
16332
|
+
enabled: "enabled",
|
|
16333
|
+
sensitivityLevel: "sensitivity_level",
|
|
16334
|
+
}),
|
|
16335
|
+
),
|
|
16336
|
+
),
|
|
16337
|
+
),
|
|
16338
|
+
enabled: Schema.optional(Schema.Boolean),
|
|
16339
|
+
rules: Schema.optional(
|
|
16340
|
+
Schema.Array(
|
|
16341
|
+
Schema.Struct({
|
|
16342
|
+
id: Schema.String,
|
|
16343
|
+
action: Schema.optional(Schema.String),
|
|
16344
|
+
enabled: Schema.optional(Schema.Boolean),
|
|
16345
|
+
scoreThreshold: Schema.optional(Schema.Number),
|
|
16346
|
+
sensitivityLevel: Schema.optional(
|
|
16347
|
+
Schema.Union([
|
|
16348
|
+
Schema.Literals(["default", "medium", "low", "eoff"]),
|
|
16349
|
+
Schema.String,
|
|
16350
|
+
]),
|
|
16351
|
+
),
|
|
16352
|
+
}).pipe(
|
|
16353
|
+
Schema.encodeKeys({
|
|
16354
|
+
id: "id",
|
|
16355
|
+
action: "action",
|
|
16356
|
+
enabled: "enabled",
|
|
16357
|
+
scoreThreshold: "score_threshold",
|
|
16358
|
+
sensitivityLevel: "sensitivity_level",
|
|
16359
|
+
}),
|
|
16360
|
+
),
|
|
16361
|
+
),
|
|
16362
|
+
),
|
|
16363
|
+
sensitivityLevel: Schema.optional(
|
|
16364
|
+
Schema.Union([
|
|
16365
|
+
Schema.Literals(["default", "medium", "low", "eoff"]),
|
|
16366
|
+
Schema.String,
|
|
16367
|
+
]),
|
|
16368
|
+
),
|
|
16369
|
+
}).pipe(
|
|
16370
|
+
Schema.encodeKeys({
|
|
16371
|
+
action: "action",
|
|
16372
|
+
categories: "categories",
|
|
16373
|
+
enabled: "enabled",
|
|
16374
|
+
rules: "rules",
|
|
16375
|
+
sensitivityLevel: "sensitivity_level",
|
|
16376
|
+
}),
|
|
16377
|
+
),
|
|
16378
|
+
),
|
|
16379
|
+
}).pipe(
|
|
16380
|
+
Schema.encodeKeys({
|
|
16381
|
+
id: "id",
|
|
16382
|
+
matchedData: "matched_data",
|
|
16383
|
+
overrides: "overrides",
|
|
16384
|
+
}),
|
|
16259
16385
|
),
|
|
16260
|
-
|
|
16386
|
+
Schema.Struct({
|
|
16387
|
+
increment: Schema.Number,
|
|
16388
|
+
}),
|
|
16389
|
+
Schema.Struct({
|
|
16390
|
+
content: Schema.String,
|
|
16391
|
+
contentType: Schema.optional(
|
|
16392
|
+
Schema.Union([
|
|
16393
|
+
Schema.Literals([
|
|
16394
|
+
"application/json",
|
|
16395
|
+
"text/html",
|
|
16396
|
+
"text/plain",
|
|
16397
|
+
"text/xml",
|
|
16398
|
+
]),
|
|
16399
|
+
Schema.String,
|
|
16400
|
+
]),
|
|
16401
|
+
),
|
|
16402
|
+
statusCode: Schema.optional(Schema.Number),
|
|
16403
|
+
}).pipe(
|
|
16404
|
+
Schema.encodeKeys({
|
|
16405
|
+
content: "content",
|
|
16406
|
+
contentType: "content_type",
|
|
16407
|
+
statusCode: "status_code",
|
|
16408
|
+
}),
|
|
16409
|
+
),
|
|
16410
|
+
Schema.Struct({
|
|
16411
|
+
assetName: Schema.String,
|
|
16412
|
+
contentType: Schema.optional(
|
|
16413
|
+
Schema.Union([
|
|
16414
|
+
Schema.Literals([
|
|
16415
|
+
"application/json",
|
|
16416
|
+
"text/html",
|
|
16417
|
+
"text/plain",
|
|
16418
|
+
"text/xml",
|
|
16419
|
+
]),
|
|
16420
|
+
Schema.String,
|
|
16421
|
+
]),
|
|
16422
|
+
),
|
|
16423
|
+
statusCode: Schema.optional(Schema.Number),
|
|
16424
|
+
}).pipe(
|
|
16425
|
+
Schema.encodeKeys({
|
|
16426
|
+
assetName: "asset_name",
|
|
16427
|
+
contentType: "content_type",
|
|
16428
|
+
statusCode: "status_code",
|
|
16429
|
+
}),
|
|
16430
|
+
),
|
|
16431
|
+
Schema.Struct({
|
|
16432
|
+
response: Schema.optional(
|
|
16433
|
+
Schema.Struct({
|
|
16434
|
+
content: Schema.String,
|
|
16435
|
+
contentType: Schema.String,
|
|
16436
|
+
statusCode: Schema.Number,
|
|
16437
|
+
}).pipe(
|
|
16438
|
+
Schema.encodeKeys({
|
|
16439
|
+
content: "content",
|
|
16440
|
+
contentType: "content_type",
|
|
16441
|
+
statusCode: "status_code",
|
|
16442
|
+
}),
|
|
16443
|
+
),
|
|
16444
|
+
),
|
|
16445
|
+
}),
|
|
16446
|
+
Schema.Struct({
|
|
16447
|
+
cookieFields: Schema.optional(
|
|
16448
|
+
Schema.Array(
|
|
16449
|
+
Schema.Struct({
|
|
16450
|
+
name: Schema.String,
|
|
16451
|
+
}),
|
|
16452
|
+
),
|
|
16453
|
+
),
|
|
16454
|
+
rawResponseFields: Schema.optional(
|
|
16455
|
+
Schema.Array(
|
|
16456
|
+
Schema.Struct({
|
|
16457
|
+
name: Schema.String,
|
|
16458
|
+
preserveDuplicates: Schema.optional(Schema.Boolean),
|
|
16459
|
+
}).pipe(
|
|
16460
|
+
Schema.encodeKeys({
|
|
16461
|
+
name: "name",
|
|
16462
|
+
preserveDuplicates: "preserve_duplicates",
|
|
16463
|
+
}),
|
|
16464
|
+
),
|
|
16465
|
+
),
|
|
16466
|
+
),
|
|
16467
|
+
requestFields: Schema.optional(
|
|
16468
|
+
Schema.Array(
|
|
16469
|
+
Schema.Struct({
|
|
16470
|
+
name: Schema.String,
|
|
16471
|
+
}),
|
|
16472
|
+
),
|
|
16473
|
+
),
|
|
16474
|
+
responseFields: Schema.optional(
|
|
16475
|
+
Schema.Array(
|
|
16476
|
+
Schema.Struct({
|
|
16477
|
+
name: Schema.String,
|
|
16478
|
+
preserveDuplicates: Schema.optional(Schema.Boolean),
|
|
16479
|
+
}).pipe(
|
|
16480
|
+
Schema.encodeKeys({
|
|
16481
|
+
name: "name",
|
|
16482
|
+
preserveDuplicates: "preserve_duplicates",
|
|
16483
|
+
}),
|
|
16484
|
+
),
|
|
16485
|
+
),
|
|
16486
|
+
),
|
|
16487
|
+
transformedRequestFields: Schema.optional(
|
|
16488
|
+
Schema.Array(
|
|
16489
|
+
Schema.Struct({
|
|
16490
|
+
name: Schema.String,
|
|
16491
|
+
}),
|
|
16492
|
+
),
|
|
16493
|
+
),
|
|
16494
|
+
}).pipe(
|
|
16495
|
+
Schema.encodeKeys({
|
|
16496
|
+
cookieFields: "cookie_fields",
|
|
16497
|
+
rawResponseFields: "raw_response_fields",
|
|
16498
|
+
requestFields: "request_fields",
|
|
16499
|
+
responseFields: "response_fields",
|
|
16500
|
+
transformedRequestFields: "transformed_request_fields",
|
|
16501
|
+
}),
|
|
16502
|
+
),
|
|
16503
|
+
Schema.Struct({
|
|
16504
|
+
fromList: Schema.optional(
|
|
16505
|
+
Schema.Struct({
|
|
16506
|
+
key: Schema.String,
|
|
16507
|
+
name: Schema.String,
|
|
16508
|
+
}),
|
|
16509
|
+
),
|
|
16510
|
+
fromValue: Schema.optional(
|
|
16511
|
+
Schema.Struct({
|
|
16512
|
+
targetUrl: Schema.Struct({
|
|
16513
|
+
expression: Schema.optional(Schema.String),
|
|
16514
|
+
value: Schema.optional(Schema.String),
|
|
16515
|
+
}),
|
|
16516
|
+
preserveQueryString: Schema.optional(Schema.Boolean),
|
|
16517
|
+
statusCode: Schema.optional(
|
|
16518
|
+
Schema.Union([
|
|
16519
|
+
Schema.Literals(["301", "302", "303", "307", "308"]),
|
|
16520
|
+
Schema.String,
|
|
16521
|
+
]),
|
|
16522
|
+
),
|
|
16523
|
+
}).pipe(
|
|
16524
|
+
Schema.encodeKeys({
|
|
16525
|
+
targetUrl: "target_url",
|
|
16526
|
+
preserveQueryString: "preserve_query_string",
|
|
16527
|
+
statusCode: "status_code",
|
|
16528
|
+
}),
|
|
16529
|
+
),
|
|
16530
|
+
),
|
|
16531
|
+
}).pipe(
|
|
16532
|
+
Schema.encodeKeys({ fromList: "from_list", fromValue: "from_value" }),
|
|
16533
|
+
),
|
|
16534
|
+
Schema.Struct({
|
|
16535
|
+
headers: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
|
|
16536
|
+
uri: Schema.optional(
|
|
16537
|
+
Schema.Union([
|
|
16538
|
+
Schema.Struct({
|
|
16539
|
+
path: Schema.Struct({
|
|
16540
|
+
expression: Schema.optional(Schema.String),
|
|
16541
|
+
value: Schema.optional(Schema.String),
|
|
16542
|
+
}),
|
|
16543
|
+
}),
|
|
16544
|
+
Schema.Struct({
|
|
16545
|
+
query: Schema.Struct({
|
|
16546
|
+
expression: Schema.optional(Schema.String),
|
|
16547
|
+
value: Schema.optional(Schema.String),
|
|
16548
|
+
}),
|
|
16549
|
+
}),
|
|
16550
|
+
]),
|
|
16551
|
+
),
|
|
16552
|
+
}),
|
|
16553
|
+
Schema.Struct({
|
|
16554
|
+
hostHeader: Schema.optional(Schema.String),
|
|
16555
|
+
origin: Schema.optional(
|
|
16556
|
+
Schema.Struct({
|
|
16557
|
+
host: Schema.optional(Schema.String),
|
|
16558
|
+
port: Schema.optional(Schema.Number),
|
|
16559
|
+
}),
|
|
16560
|
+
),
|
|
16561
|
+
sni: Schema.optional(
|
|
16562
|
+
Schema.Struct({
|
|
16563
|
+
value: Schema.String,
|
|
16564
|
+
}),
|
|
16565
|
+
),
|
|
16566
|
+
}).pipe(
|
|
16567
|
+
Schema.encodeKeys({
|
|
16568
|
+
hostHeader: "host_header",
|
|
16569
|
+
origin: "origin",
|
|
16570
|
+
sni: "sni",
|
|
16571
|
+
}),
|
|
16572
|
+
),
|
|
16573
|
+
Schema.Struct({
|
|
16574
|
+
immutable: Schema.optional(
|
|
16575
|
+
Schema.Struct({
|
|
16576
|
+
operation: Schema.Union([
|
|
16577
|
+
Schema.Literals(["set", "remove"]),
|
|
16578
|
+
Schema.String,
|
|
16579
|
+
]),
|
|
16580
|
+
cloudflareOnly: Schema.optional(Schema.Boolean),
|
|
16581
|
+
}).pipe(
|
|
16582
|
+
Schema.encodeKeys({
|
|
16583
|
+
operation: "operation",
|
|
16584
|
+
cloudflareOnly: "cloudflare_only",
|
|
16585
|
+
}),
|
|
16586
|
+
),
|
|
16587
|
+
),
|
|
16588
|
+
maxAge: Schema.optional(
|
|
16589
|
+
Schema.Struct({
|
|
16590
|
+
operation: Schema.Union([
|
|
16591
|
+
Schema.Literals(["set", "remove"]),
|
|
16592
|
+
Schema.String,
|
|
16593
|
+
]),
|
|
16594
|
+
cloudflareOnly: Schema.optional(Schema.Boolean),
|
|
16595
|
+
}).pipe(
|
|
16596
|
+
Schema.encodeKeys({
|
|
16597
|
+
operation: "operation",
|
|
16598
|
+
cloudflareOnly: "cloudflare_only",
|
|
16599
|
+
}),
|
|
16600
|
+
),
|
|
16601
|
+
),
|
|
16602
|
+
mustRevalidate: Schema.optional(
|
|
16603
|
+
Schema.Struct({
|
|
16604
|
+
operation: Schema.Union([
|
|
16605
|
+
Schema.Literals(["set", "remove"]),
|
|
16606
|
+
Schema.String,
|
|
16607
|
+
]),
|
|
16608
|
+
cloudflareOnly: Schema.optional(Schema.Boolean),
|
|
16609
|
+
}).pipe(
|
|
16610
|
+
Schema.encodeKeys({
|
|
16611
|
+
operation: "operation",
|
|
16612
|
+
cloudflareOnly: "cloudflare_only",
|
|
16613
|
+
}),
|
|
16614
|
+
),
|
|
16615
|
+
),
|
|
16616
|
+
mustUnderstand: Schema.optional(
|
|
16617
|
+
Schema.Struct({
|
|
16618
|
+
operation: Schema.Union([
|
|
16619
|
+
Schema.Literals(["set", "remove"]),
|
|
16620
|
+
Schema.String,
|
|
16621
|
+
]),
|
|
16622
|
+
cloudflareOnly: Schema.optional(Schema.Boolean),
|
|
16623
|
+
}).pipe(
|
|
16624
|
+
Schema.encodeKeys({
|
|
16625
|
+
operation: "operation",
|
|
16626
|
+
cloudflareOnly: "cloudflare_only",
|
|
16627
|
+
}),
|
|
16628
|
+
),
|
|
16629
|
+
),
|
|
16630
|
+
noCache: Schema.optional(
|
|
16631
|
+
Schema.Struct({
|
|
16632
|
+
operation: Schema.Union([
|
|
16633
|
+
Schema.Literals(["set", "remove"]),
|
|
16634
|
+
Schema.String,
|
|
16635
|
+
]),
|
|
16636
|
+
cloudflareOnly: Schema.optional(Schema.Boolean),
|
|
16637
|
+
}).pipe(
|
|
16638
|
+
Schema.encodeKeys({
|
|
16639
|
+
operation: "operation",
|
|
16640
|
+
cloudflareOnly: "cloudflare_only",
|
|
16641
|
+
}),
|
|
16642
|
+
),
|
|
16643
|
+
),
|
|
16644
|
+
noStore: Schema.optional(
|
|
16645
|
+
Schema.Struct({
|
|
16646
|
+
operation: Schema.Union([
|
|
16647
|
+
Schema.Literals(["set", "remove"]),
|
|
16648
|
+
Schema.String,
|
|
16649
|
+
]),
|
|
16650
|
+
cloudflareOnly: Schema.optional(Schema.Boolean),
|
|
16651
|
+
}).pipe(
|
|
16652
|
+
Schema.encodeKeys({
|
|
16653
|
+
operation: "operation",
|
|
16654
|
+
cloudflareOnly: "cloudflare_only",
|
|
16655
|
+
}),
|
|
16656
|
+
),
|
|
16657
|
+
),
|
|
16658
|
+
noTransform: Schema.optional(
|
|
16659
|
+
Schema.Struct({
|
|
16660
|
+
operation: Schema.Union([
|
|
16661
|
+
Schema.Literals(["set", "remove"]),
|
|
16662
|
+
Schema.String,
|
|
16663
|
+
]),
|
|
16664
|
+
cloudflareOnly: Schema.optional(Schema.Boolean),
|
|
16665
|
+
}).pipe(
|
|
16666
|
+
Schema.encodeKeys({
|
|
16667
|
+
operation: "operation",
|
|
16668
|
+
cloudflareOnly: "cloudflare_only",
|
|
16669
|
+
}),
|
|
16670
|
+
),
|
|
16671
|
+
),
|
|
16672
|
+
private: Schema.optional(
|
|
16673
|
+
Schema.Struct({
|
|
16674
|
+
operation: Schema.Union([
|
|
16675
|
+
Schema.Literals(["set", "remove"]),
|
|
16676
|
+
Schema.String,
|
|
16677
|
+
]),
|
|
16678
|
+
cloudflareOnly: Schema.optional(Schema.Boolean),
|
|
16679
|
+
}).pipe(
|
|
16680
|
+
Schema.encodeKeys({
|
|
16681
|
+
operation: "operation",
|
|
16682
|
+
cloudflareOnly: "cloudflare_only",
|
|
16683
|
+
}),
|
|
16684
|
+
),
|
|
16685
|
+
),
|
|
16686
|
+
proxyRevalidate: Schema.optional(
|
|
16687
|
+
Schema.Struct({
|
|
16688
|
+
operation: Schema.Union([
|
|
16689
|
+
Schema.Literals(["set", "remove"]),
|
|
16690
|
+
Schema.String,
|
|
16691
|
+
]),
|
|
16692
|
+
cloudflareOnly: Schema.optional(Schema.Boolean),
|
|
16693
|
+
}).pipe(
|
|
16694
|
+
Schema.encodeKeys({
|
|
16695
|
+
operation: "operation",
|
|
16696
|
+
cloudflareOnly: "cloudflare_only",
|
|
16697
|
+
}),
|
|
16698
|
+
),
|
|
16699
|
+
),
|
|
16700
|
+
public: Schema.optional(
|
|
16701
|
+
Schema.Struct({
|
|
16702
|
+
operation: Schema.Union([
|
|
16703
|
+
Schema.Literals(["set", "remove"]),
|
|
16704
|
+
Schema.String,
|
|
16705
|
+
]),
|
|
16706
|
+
cloudflareOnly: Schema.optional(Schema.Boolean),
|
|
16707
|
+
}).pipe(
|
|
16708
|
+
Schema.encodeKeys({
|
|
16709
|
+
operation: "operation",
|
|
16710
|
+
cloudflareOnly: "cloudflare_only",
|
|
16711
|
+
}),
|
|
16712
|
+
),
|
|
16713
|
+
),
|
|
16714
|
+
sMaxage: Schema.optional(
|
|
16715
|
+
Schema.Struct({
|
|
16716
|
+
operation: Schema.Union([
|
|
16717
|
+
Schema.Literals(["set", "remove"]),
|
|
16718
|
+
Schema.String,
|
|
16719
|
+
]),
|
|
16720
|
+
cloudflareOnly: Schema.optional(Schema.Boolean),
|
|
16721
|
+
}).pipe(
|
|
16722
|
+
Schema.encodeKeys({
|
|
16723
|
+
operation: "operation",
|
|
16724
|
+
cloudflareOnly: "cloudflare_only",
|
|
16725
|
+
}),
|
|
16726
|
+
),
|
|
16727
|
+
),
|
|
16728
|
+
staleIfError: Schema.optional(
|
|
16729
|
+
Schema.Struct({
|
|
16730
|
+
operation: Schema.Union([
|
|
16731
|
+
Schema.Literals(["set", "remove"]),
|
|
16732
|
+
Schema.String,
|
|
16733
|
+
]),
|
|
16734
|
+
cloudflareOnly: Schema.optional(Schema.Boolean),
|
|
16735
|
+
}).pipe(
|
|
16736
|
+
Schema.encodeKeys({
|
|
16737
|
+
operation: "operation",
|
|
16738
|
+
cloudflareOnly: "cloudflare_only",
|
|
16739
|
+
}),
|
|
16740
|
+
),
|
|
16741
|
+
),
|
|
16742
|
+
staleWhileRevalidate: Schema.optional(
|
|
16743
|
+
Schema.Struct({
|
|
16744
|
+
operation: Schema.Union([
|
|
16745
|
+
Schema.Literals(["set", "remove"]),
|
|
16746
|
+
Schema.String,
|
|
16747
|
+
]),
|
|
16748
|
+
cloudflareOnly: Schema.optional(Schema.Boolean),
|
|
16749
|
+
}).pipe(
|
|
16750
|
+
Schema.encodeKeys({
|
|
16751
|
+
operation: "operation",
|
|
16752
|
+
cloudflareOnly: "cloudflare_only",
|
|
16753
|
+
}),
|
|
16754
|
+
),
|
|
16755
|
+
),
|
|
16756
|
+
}).pipe(
|
|
16757
|
+
Schema.encodeKeys({
|
|
16758
|
+
immutable: "immutable",
|
|
16759
|
+
maxAge: "max-age",
|
|
16760
|
+
mustRevalidate: "must-revalidate",
|
|
16761
|
+
mustUnderstand: "must-understand",
|
|
16762
|
+
noCache: "no-cache",
|
|
16763
|
+
noStore: "no-store",
|
|
16764
|
+
noTransform: "no-transform",
|
|
16765
|
+
private: "private",
|
|
16766
|
+
proxyRevalidate: "proxy-revalidate",
|
|
16767
|
+
public: "public",
|
|
16768
|
+
sMaxage: "s-maxage",
|
|
16769
|
+
staleIfError: "stale-if-error",
|
|
16770
|
+
staleWhileRevalidate: "stale-while-revalidate",
|
|
16771
|
+
}),
|
|
16772
|
+
),
|
|
16773
|
+
Schema.Struct({
|
|
16774
|
+
additionalCacheablePorts: Schema.optional(Schema.Array(Schema.Number)),
|
|
16775
|
+
browserTtl: Schema.optional(
|
|
16776
|
+
Schema.Struct({
|
|
16777
|
+
mode: Schema.Union([
|
|
16778
|
+
Schema.Literals([
|
|
16779
|
+
"respect_origin",
|
|
16780
|
+
"bypass_by_default",
|
|
16781
|
+
"override_origin",
|
|
16782
|
+
"bypass",
|
|
16783
|
+
]),
|
|
16784
|
+
Schema.String,
|
|
16785
|
+
]),
|
|
16786
|
+
default: Schema.optional(Schema.Number),
|
|
16787
|
+
}),
|
|
16788
|
+
),
|
|
16789
|
+
cache: Schema.optional(Schema.Boolean),
|
|
16790
|
+
cacheKey: Schema.optional(
|
|
16791
|
+
Schema.Struct({
|
|
16792
|
+
cacheByDeviceType: Schema.optional(Schema.Boolean),
|
|
16793
|
+
cacheDeceptionArmor: Schema.optional(Schema.Boolean),
|
|
16794
|
+
customKey: Schema.optional(
|
|
16795
|
+
Schema.Struct({
|
|
16796
|
+
cookie: Schema.optional(
|
|
16797
|
+
Schema.Struct({
|
|
16798
|
+
checkPresence: Schema.optional(Schema.Array(Schema.String)),
|
|
16799
|
+
include: Schema.optional(Schema.Array(Schema.String)),
|
|
16800
|
+
}).pipe(
|
|
16801
|
+
Schema.encodeKeys({
|
|
16802
|
+
checkPresence: "check_presence",
|
|
16803
|
+
include: "include",
|
|
16804
|
+
}),
|
|
16805
|
+
),
|
|
16806
|
+
),
|
|
16807
|
+
header: Schema.optional(
|
|
16808
|
+
Schema.Struct({
|
|
16809
|
+
checkPresence: Schema.optional(Schema.Array(Schema.String)),
|
|
16810
|
+
contains: Schema.optional(
|
|
16811
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
16812
|
+
),
|
|
16813
|
+
excludeOrigin: Schema.optional(Schema.Boolean),
|
|
16814
|
+
include: Schema.optional(Schema.Array(Schema.String)),
|
|
16815
|
+
}).pipe(
|
|
16816
|
+
Schema.encodeKeys({
|
|
16817
|
+
checkPresence: "check_presence",
|
|
16818
|
+
contains: "contains",
|
|
16819
|
+
excludeOrigin: "exclude_origin",
|
|
16820
|
+
include: "include",
|
|
16821
|
+
}),
|
|
16822
|
+
),
|
|
16823
|
+
),
|
|
16824
|
+
host: Schema.optional(
|
|
16825
|
+
Schema.Struct({
|
|
16826
|
+
resolved: Schema.optional(Schema.Boolean),
|
|
16827
|
+
}),
|
|
16828
|
+
),
|
|
16829
|
+
queryString: Schema.optional(
|
|
16830
|
+
Schema.Struct({
|
|
16831
|
+
exclude: Schema.optional(
|
|
16832
|
+
Schema.Struct({
|
|
16833
|
+
all: Schema.optional(Schema.Literal(true)),
|
|
16834
|
+
list: Schema.optional(Schema.Array(Schema.String)),
|
|
16835
|
+
}),
|
|
16836
|
+
),
|
|
16837
|
+
include: Schema.optional(
|
|
16838
|
+
Schema.Struct({
|
|
16839
|
+
all: Schema.optional(Schema.Literal(true)),
|
|
16840
|
+
list: Schema.optional(Schema.Array(Schema.String)),
|
|
16841
|
+
}),
|
|
16842
|
+
),
|
|
16843
|
+
}),
|
|
16844
|
+
),
|
|
16845
|
+
user: Schema.optional(
|
|
16846
|
+
Schema.Struct({
|
|
16847
|
+
deviceType: Schema.optional(Schema.Boolean),
|
|
16848
|
+
geo: Schema.optional(Schema.Boolean),
|
|
16849
|
+
lang: Schema.optional(Schema.Boolean),
|
|
16850
|
+
}).pipe(
|
|
16851
|
+
Schema.encodeKeys({
|
|
16852
|
+
deviceType: "device_type",
|
|
16853
|
+
geo: "geo",
|
|
16854
|
+
lang: "lang",
|
|
16855
|
+
}),
|
|
16856
|
+
),
|
|
16857
|
+
),
|
|
16858
|
+
}).pipe(
|
|
16859
|
+
Schema.encodeKeys({
|
|
16860
|
+
cookie: "cookie",
|
|
16861
|
+
header: "header",
|
|
16862
|
+
host: "host",
|
|
16863
|
+
queryString: "query_string",
|
|
16864
|
+
user: "user",
|
|
16865
|
+
}),
|
|
16866
|
+
),
|
|
16867
|
+
),
|
|
16868
|
+
ignoreQueryStringsOrder: Schema.optional(Schema.Boolean),
|
|
16869
|
+
}).pipe(
|
|
16870
|
+
Schema.encodeKeys({
|
|
16871
|
+
cacheByDeviceType: "cache_by_device_type",
|
|
16872
|
+
cacheDeceptionArmor: "cache_deception_armor",
|
|
16873
|
+
customKey: "custom_key",
|
|
16874
|
+
ignoreQueryStringsOrder: "ignore_query_strings_order",
|
|
16875
|
+
}),
|
|
16876
|
+
),
|
|
16877
|
+
),
|
|
16878
|
+
cacheReserve: Schema.optional(
|
|
16879
|
+
Schema.Struct({
|
|
16880
|
+
eligible: Schema.Boolean,
|
|
16881
|
+
minimumFileSize: Schema.optional(Schema.Number),
|
|
16882
|
+
}).pipe(
|
|
16883
|
+
Schema.encodeKeys({
|
|
16884
|
+
eligible: "eligible",
|
|
16885
|
+
minimumFileSize: "minimum_file_size",
|
|
16886
|
+
}),
|
|
16887
|
+
),
|
|
16888
|
+
),
|
|
16889
|
+
edgeTtl: Schema.optional(
|
|
16890
|
+
Schema.Struct({
|
|
16891
|
+
mode: Schema.Union([
|
|
16892
|
+
Schema.Literals([
|
|
16893
|
+
"respect_origin",
|
|
16894
|
+
"bypass_by_default",
|
|
16895
|
+
"override_origin",
|
|
16896
|
+
]),
|
|
16897
|
+
Schema.String,
|
|
16898
|
+
]),
|
|
16899
|
+
default: Schema.optional(Schema.Number),
|
|
16900
|
+
statusCodeTtl: Schema.optional(
|
|
16901
|
+
Schema.Array(
|
|
16902
|
+
Schema.Struct({
|
|
16903
|
+
value: Schema.Number,
|
|
16904
|
+
statusCode: Schema.optional(Schema.Number),
|
|
16905
|
+
statusCodeRange: Schema.optional(
|
|
16906
|
+
Schema.Struct({
|
|
16907
|
+
from: Schema.optional(Schema.Number),
|
|
16908
|
+
to: Schema.optional(Schema.Number),
|
|
16909
|
+
}),
|
|
16910
|
+
),
|
|
16911
|
+
}).pipe(
|
|
16912
|
+
Schema.encodeKeys({
|
|
16913
|
+
value: "value",
|
|
16914
|
+
statusCode: "status_code",
|
|
16915
|
+
statusCodeRange: "status_code_range",
|
|
16916
|
+
}),
|
|
16917
|
+
),
|
|
16918
|
+
),
|
|
16919
|
+
),
|
|
16920
|
+
}).pipe(
|
|
16921
|
+
Schema.encodeKeys({
|
|
16922
|
+
mode: "mode",
|
|
16923
|
+
default: "default",
|
|
16924
|
+
statusCodeTtl: "status_code_ttl",
|
|
16925
|
+
}),
|
|
16926
|
+
),
|
|
16927
|
+
),
|
|
16928
|
+
originCacheControl: Schema.optional(Schema.Boolean),
|
|
16929
|
+
originErrorPagePassthru: Schema.optional(Schema.Boolean),
|
|
16930
|
+
readTimeout: Schema.optional(Schema.Number),
|
|
16931
|
+
respectStrongEtags: Schema.optional(Schema.Boolean),
|
|
16932
|
+
serveStale: Schema.optional(
|
|
16933
|
+
Schema.Struct({
|
|
16934
|
+
disableStaleWhileUpdating: Schema.optional(Schema.Boolean),
|
|
16935
|
+
}).pipe(
|
|
16936
|
+
Schema.encodeKeys({
|
|
16937
|
+
disableStaleWhileUpdating: "disable_stale_while_updating",
|
|
16938
|
+
}),
|
|
16939
|
+
),
|
|
16940
|
+
),
|
|
16941
|
+
sharedDictionary: Schema.optional(
|
|
16942
|
+
Schema.Struct({
|
|
16943
|
+
matchPattern: Schema.String,
|
|
16944
|
+
}).pipe(Schema.encodeKeys({ matchPattern: "match_pattern" })),
|
|
16945
|
+
),
|
|
16946
|
+
stripEtags: Schema.optional(Schema.Boolean),
|
|
16947
|
+
stripLastModified: Schema.optional(Schema.Boolean),
|
|
16948
|
+
stripSetCookie: Schema.optional(Schema.Boolean),
|
|
16949
|
+
}).pipe(
|
|
16950
|
+
Schema.encodeKeys({
|
|
16951
|
+
additionalCacheablePorts: "additional_cacheable_ports",
|
|
16952
|
+
browserTtl: "browser_ttl",
|
|
16953
|
+
cache: "cache",
|
|
16954
|
+
cacheKey: "cache_key",
|
|
16955
|
+
cacheReserve: "cache_reserve",
|
|
16956
|
+
edgeTtl: "edge_ttl",
|
|
16957
|
+
originCacheControl: "origin_cache_control",
|
|
16958
|
+
originErrorPagePassthru: "origin_error_page_passthru",
|
|
16959
|
+
readTimeout: "read_timeout",
|
|
16960
|
+
respectStrongEtags: "respect_strong_etags",
|
|
16961
|
+
serveStale: "serve_stale",
|
|
16962
|
+
sharedDictionary: "shared_dictionary",
|
|
16963
|
+
stripEtags: "strip_etags",
|
|
16964
|
+
stripLastModified: "strip_last_modified",
|
|
16965
|
+
stripSetCookie: "strip_set_cookie",
|
|
16966
|
+
}),
|
|
16967
|
+
),
|
|
16968
|
+
Schema.Struct({
|
|
16969
|
+
automaticHttpsRewrites: Schema.optional(Schema.Boolean),
|
|
16970
|
+
autominify: Schema.optional(
|
|
16971
|
+
Schema.Struct({
|
|
16972
|
+
css: Schema.optional(Schema.Boolean),
|
|
16973
|
+
html: Schema.optional(Schema.Boolean),
|
|
16974
|
+
js: Schema.optional(Schema.Boolean),
|
|
16975
|
+
}),
|
|
16976
|
+
),
|
|
16977
|
+
bic: Schema.optional(Schema.Boolean),
|
|
16978
|
+
contentConverter: Schema.optional(Schema.Boolean),
|
|
16979
|
+
disableApps: Schema.optional(Schema.Literal(true)),
|
|
16980
|
+
disablePayPerCrawl: Schema.optional(Schema.Literal(true)),
|
|
16981
|
+
disableRum: Schema.optional(Schema.Literal(true)),
|
|
16982
|
+
disableZaraz: Schema.optional(Schema.Literal(true)),
|
|
16983
|
+
emailObfuscation: Schema.optional(Schema.Boolean),
|
|
16984
|
+
fonts: Schema.optional(Schema.Boolean),
|
|
16985
|
+
hotlinkProtection: Schema.optional(Schema.Boolean),
|
|
16986
|
+
mirage: Schema.optional(Schema.Boolean),
|
|
16987
|
+
opportunisticEncryption: Schema.optional(Schema.Boolean),
|
|
16988
|
+
polish: Schema.optional(
|
|
16989
|
+
Schema.Union([
|
|
16990
|
+
Schema.Literals(["off", "lossless", "lossy", "webp"]),
|
|
16991
|
+
Schema.String,
|
|
16992
|
+
]),
|
|
16993
|
+
),
|
|
16994
|
+
redirectsForAiTraining: Schema.optional(Schema.Boolean),
|
|
16995
|
+
requestBodyBuffering: Schema.optional(
|
|
16996
|
+
Schema.Union([
|
|
16997
|
+
Schema.Literals(["none", "standard", "full"]),
|
|
16998
|
+
Schema.String,
|
|
16999
|
+
]),
|
|
17000
|
+
),
|
|
17001
|
+
responseBodyBuffering: Schema.optional(
|
|
17002
|
+
Schema.Union([Schema.Literals(["none", "standard"]), Schema.String]),
|
|
17003
|
+
),
|
|
17004
|
+
rocketLoader: Schema.optional(Schema.Boolean),
|
|
17005
|
+
securityLevel: Schema.optional(
|
|
17006
|
+
Schema.Union([
|
|
17007
|
+
Schema.Literals([
|
|
17008
|
+
"off",
|
|
17009
|
+
"essentially_off",
|
|
17010
|
+
"low",
|
|
17011
|
+
"medium",
|
|
17012
|
+
"high",
|
|
17013
|
+
"under_attack",
|
|
17014
|
+
]),
|
|
17015
|
+
Schema.String,
|
|
17016
|
+
]),
|
|
17017
|
+
),
|
|
17018
|
+
serverSideExcludes: Schema.optional(Schema.Boolean),
|
|
17019
|
+
ssl: Schema.optional(
|
|
17020
|
+
Schema.Union([
|
|
17021
|
+
Schema.Literals([
|
|
17022
|
+
"off",
|
|
17023
|
+
"flexible",
|
|
17024
|
+
"full",
|
|
17025
|
+
"strict",
|
|
17026
|
+
"origin_pull",
|
|
17027
|
+
]),
|
|
17028
|
+
Schema.String,
|
|
17029
|
+
]),
|
|
17030
|
+
),
|
|
17031
|
+
sxg: Schema.optional(Schema.Boolean),
|
|
17032
|
+
}).pipe(
|
|
17033
|
+
Schema.encodeKeys({
|
|
17034
|
+
automaticHttpsRewrites: "automatic_https_rewrites",
|
|
17035
|
+
autominify: "autominify",
|
|
17036
|
+
bic: "bic",
|
|
17037
|
+
contentConverter: "content_converter",
|
|
17038
|
+
disableApps: "disable_apps",
|
|
17039
|
+
disablePayPerCrawl: "disable_pay_per_crawl",
|
|
17040
|
+
disableRum: "disable_rum",
|
|
17041
|
+
disableZaraz: "disable_zaraz",
|
|
17042
|
+
emailObfuscation: "email_obfuscation",
|
|
17043
|
+
fonts: "fonts",
|
|
17044
|
+
hotlinkProtection: "hotlink_protection",
|
|
17045
|
+
mirage: "mirage",
|
|
17046
|
+
opportunisticEncryption: "opportunistic_encryption",
|
|
17047
|
+
polish: "polish",
|
|
17048
|
+
redirectsForAiTraining: "redirects_for_ai_training",
|
|
17049
|
+
requestBodyBuffering: "request_body_buffering",
|
|
17050
|
+
responseBodyBuffering: "response_body_buffering",
|
|
17051
|
+
rocketLoader: "rocket_loader",
|
|
17052
|
+
securityLevel: "security_level",
|
|
17053
|
+
serverSideExcludes: "server_side_excludes",
|
|
17054
|
+
ssl: "ssl",
|
|
17055
|
+
sxg: "sxg",
|
|
17056
|
+
}),
|
|
17057
|
+
),
|
|
17058
|
+
Schema.Struct({
|
|
17059
|
+
phase: Schema.optional(Schema.Literal("current")),
|
|
17060
|
+
phases: Schema.optional(
|
|
17061
|
+
Schema.Array(
|
|
17062
|
+
Schema.Union([
|
|
17063
|
+
Schema.Literals([
|
|
17064
|
+
"ddos_l4",
|
|
17065
|
+
"ddos_l7",
|
|
17066
|
+
"http_config_settings",
|
|
17067
|
+
"http_custom_errors",
|
|
17068
|
+
"http_log_custom_fields",
|
|
17069
|
+
"http_ratelimit",
|
|
17070
|
+
"http_request_cache_settings",
|
|
17071
|
+
"http_request_dynamic_redirect",
|
|
17072
|
+
"http_request_firewall_custom",
|
|
17073
|
+
"http_request_firewall_managed",
|
|
17074
|
+
"http_request_late_transform",
|
|
17075
|
+
"http_request_origin",
|
|
17076
|
+
"http_request_redirect",
|
|
17077
|
+
"http_request_sanitize",
|
|
17078
|
+
"http_request_sbfm",
|
|
17079
|
+
"http_request_transform",
|
|
17080
|
+
"http_response_cache_settings",
|
|
17081
|
+
"http_response_compression",
|
|
17082
|
+
"http_response_firewall_managed",
|
|
17083
|
+
"http_response_headers_transform",
|
|
17084
|
+
"magic_transit",
|
|
17085
|
+
"magic_transit_ids_managed",
|
|
17086
|
+
"magic_transit_managed",
|
|
17087
|
+
"magic_transit_ratelimit",
|
|
17088
|
+
]),
|
|
17089
|
+
Schema.String,
|
|
17090
|
+
]),
|
|
17091
|
+
),
|
|
17092
|
+
),
|
|
17093
|
+
products: Schema.optional(
|
|
17094
|
+
Schema.Array(
|
|
17095
|
+
Schema.Union([
|
|
17096
|
+
Schema.Literals([
|
|
17097
|
+
"bic",
|
|
17098
|
+
"hot",
|
|
17099
|
+
"rateLimit",
|
|
17100
|
+
"securityLevel",
|
|
17101
|
+
"uaBlock",
|
|
17102
|
+
"waf",
|
|
17103
|
+
"zoneLockdown",
|
|
17104
|
+
]),
|
|
17105
|
+
Schema.String,
|
|
17106
|
+
]),
|
|
17107
|
+
),
|
|
17108
|
+
),
|
|
17109
|
+
rules: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
|
|
17110
|
+
ruleset: Schema.optional(Schema.Literal("current")),
|
|
17111
|
+
rulesets: Schema.optional(Schema.Array(Schema.String)),
|
|
17112
|
+
}),
|
|
17113
|
+
]),
|
|
16261
17114
|
),
|
|
16262
17115
|
description: Schema.optional(Schema.String),
|
|
16263
17116
|
enabled: Schema.optional(Schema.Boolean),
|
|
@@ -16279,17 +17132,11 @@ const CreateRuleBaseFields = {
|
|
|
16279
17132
|
}),
|
|
16280
17133
|
),
|
|
16281
17134
|
position: Schema.optional(
|
|
16282
|
-
Schema.
|
|
16283
|
-
Schema.
|
|
16284
|
-
|
|
16285
|
-
|
|
16286
|
-
|
|
16287
|
-
after: Schema.optional(Schema.String),
|
|
16288
|
-
}),
|
|
16289
|
-
Schema.Struct({
|
|
16290
|
-
index: Schema.optional(Schema.Number),
|
|
16291
|
-
}),
|
|
16292
|
-
]),
|
|
17135
|
+
Schema.Struct({
|
|
17136
|
+
before: Schema.optional(Schema.String),
|
|
17137
|
+
after: Schema.optional(Schema.String),
|
|
17138
|
+
index: Schema.optional(Schema.Number),
|
|
17139
|
+
}),
|
|
16293
17140
|
),
|
|
16294
17141
|
ratelimit: Schema.optional(
|
|
16295
17142
|
Schema.Struct({
|
|
@@ -16322,11 +17169,324 @@ interface CreateRuleBaseRequest {
|
|
|
16322
17169
|
/** Body param: The unique ID of the rule. */
|
|
16323
17170
|
id?: string;
|
|
16324
17171
|
/** Body param: The action to perform when the rule matches. */
|
|
16325
|
-
action?:
|
|
17172
|
+
action?:
|
|
17173
|
+
| "block"
|
|
17174
|
+
| "challenge"
|
|
17175
|
+
| "compress_response"
|
|
17176
|
+
| "ddos_dynamic"
|
|
17177
|
+
| "execute"
|
|
17178
|
+
| "force_connection_close"
|
|
17179
|
+
| "js_challenge"
|
|
17180
|
+
| "log"
|
|
17181
|
+
| "log_custom_field"
|
|
17182
|
+
| "managed_challenge"
|
|
17183
|
+
| "redirect"
|
|
17184
|
+
| "rewrite"
|
|
17185
|
+
| "route"
|
|
17186
|
+
| "score"
|
|
17187
|
+
| "serve_error"
|
|
17188
|
+
| "set_cache_control"
|
|
17189
|
+
| "set_cache_settings"
|
|
17190
|
+
| "set_cache_tags"
|
|
17191
|
+
| "set_config"
|
|
17192
|
+
| "skip"
|
|
17193
|
+
| (string & {});
|
|
16326
17194
|
/** Body param: The parameters configuring the rule's action. */
|
|
16327
|
-
actionParameters?:
|
|
16328
|
-
|
|
16329
|
-
|
|
17195
|
+
actionParameters?:
|
|
17196
|
+
| {
|
|
17197
|
+
response?: { content: string; contentType: string; statusCode: number };
|
|
17198
|
+
}
|
|
17199
|
+
| {
|
|
17200
|
+
algorithms: {
|
|
17201
|
+
name?:
|
|
17202
|
+
| "none"
|
|
17203
|
+
| "auto"
|
|
17204
|
+
| "default"
|
|
17205
|
+
| "gzip"
|
|
17206
|
+
| "brotli"
|
|
17207
|
+
| "zstd"
|
|
17208
|
+
| (string & {});
|
|
17209
|
+
}[];
|
|
17210
|
+
}
|
|
17211
|
+
| {
|
|
17212
|
+
id: string;
|
|
17213
|
+
matchedData?: { publicKey: string };
|
|
17214
|
+
overrides?: {
|
|
17215
|
+
action?: string;
|
|
17216
|
+
categories?: {
|
|
17217
|
+
category: string;
|
|
17218
|
+
action?: string;
|
|
17219
|
+
enabled?: boolean;
|
|
17220
|
+
sensitivityLevel?:
|
|
17221
|
+
| "default"
|
|
17222
|
+
| "medium"
|
|
17223
|
+
| "low"
|
|
17224
|
+
| "eoff"
|
|
17225
|
+
| (string & {});
|
|
17226
|
+
}[];
|
|
17227
|
+
enabled?: boolean;
|
|
17228
|
+
rules?: {
|
|
17229
|
+
id: string;
|
|
17230
|
+
action?: string;
|
|
17231
|
+
enabled?: boolean;
|
|
17232
|
+
scoreThreshold?: number;
|
|
17233
|
+
sensitivityLevel?:
|
|
17234
|
+
| "default"
|
|
17235
|
+
| "medium"
|
|
17236
|
+
| "low"
|
|
17237
|
+
| "eoff"
|
|
17238
|
+
| (string & {});
|
|
17239
|
+
}[];
|
|
17240
|
+
sensitivityLevel?:
|
|
17241
|
+
| "default"
|
|
17242
|
+
| "medium"
|
|
17243
|
+
| "low"
|
|
17244
|
+
| "eoff"
|
|
17245
|
+
| (string & {});
|
|
17246
|
+
};
|
|
17247
|
+
}
|
|
17248
|
+
| {
|
|
17249
|
+
cookieFields?: { name: string }[];
|
|
17250
|
+
rawResponseFields?: { name: string; preserveDuplicates?: boolean }[];
|
|
17251
|
+
requestFields?: { name: string }[];
|
|
17252
|
+
responseFields?: { name: string; preserveDuplicates?: boolean }[];
|
|
17253
|
+
transformedRequestFields?: { name: string }[];
|
|
17254
|
+
}
|
|
17255
|
+
| {
|
|
17256
|
+
fromList?: { key: string; name: string };
|
|
17257
|
+
fromValue?: {
|
|
17258
|
+
targetUrl: { expression?: string; value?: string };
|
|
17259
|
+
preserveQueryString?: boolean;
|
|
17260
|
+
statusCode?: "301" | "302" | "303" | "307" | "308" | (string & {});
|
|
17261
|
+
};
|
|
17262
|
+
}
|
|
17263
|
+
| {
|
|
17264
|
+
headers?: Record<string, unknown>;
|
|
17265
|
+
uri?:
|
|
17266
|
+
| { path: { expression?: string; value?: string } }
|
|
17267
|
+
| { query: { expression?: string; value?: string } };
|
|
17268
|
+
}
|
|
17269
|
+
| {
|
|
17270
|
+
hostHeader?: string;
|
|
17271
|
+
origin?: { host?: string; port?: number };
|
|
17272
|
+
sni?: { value: string };
|
|
17273
|
+
}
|
|
17274
|
+
| { increment: number }
|
|
17275
|
+
| {
|
|
17276
|
+
content: string;
|
|
17277
|
+
contentType?:
|
|
17278
|
+
| "application/json"
|
|
17279
|
+
| "text/html"
|
|
17280
|
+
| "text/plain"
|
|
17281
|
+
| "text/xml"
|
|
17282
|
+
| (string & {});
|
|
17283
|
+
statusCode?: number;
|
|
17284
|
+
}
|
|
17285
|
+
| {
|
|
17286
|
+
assetName: string;
|
|
17287
|
+
contentType?:
|
|
17288
|
+
| "application/json"
|
|
17289
|
+
| "text/html"
|
|
17290
|
+
| "text/plain"
|
|
17291
|
+
| "text/xml"
|
|
17292
|
+
| (string & {});
|
|
17293
|
+
statusCode?: number;
|
|
17294
|
+
}
|
|
17295
|
+
| {
|
|
17296
|
+
immutable?: {
|
|
17297
|
+
operation: "set" | "remove" | (string & {});
|
|
17298
|
+
cloudflareOnly?: boolean;
|
|
17299
|
+
};
|
|
17300
|
+
maxAge?: {
|
|
17301
|
+
operation: "set" | "remove" | (string & {});
|
|
17302
|
+
cloudflareOnly?: boolean;
|
|
17303
|
+
};
|
|
17304
|
+
mustRevalidate?: {
|
|
17305
|
+
operation: "set" | "remove" | (string & {});
|
|
17306
|
+
cloudflareOnly?: boolean;
|
|
17307
|
+
};
|
|
17308
|
+
mustUnderstand?: {
|
|
17309
|
+
operation: "set" | "remove" | (string & {});
|
|
17310
|
+
cloudflareOnly?: boolean;
|
|
17311
|
+
};
|
|
17312
|
+
noCache?: {
|
|
17313
|
+
operation: "set" | "remove" | (string & {});
|
|
17314
|
+
cloudflareOnly?: boolean;
|
|
17315
|
+
};
|
|
17316
|
+
noStore?: {
|
|
17317
|
+
operation: "set" | "remove" | (string & {});
|
|
17318
|
+
cloudflareOnly?: boolean;
|
|
17319
|
+
};
|
|
17320
|
+
noTransform?: {
|
|
17321
|
+
operation: "set" | "remove" | (string & {});
|
|
17322
|
+
cloudflareOnly?: boolean;
|
|
17323
|
+
};
|
|
17324
|
+
private?: {
|
|
17325
|
+
operation: "set" | "remove" | (string & {});
|
|
17326
|
+
cloudflareOnly?: boolean;
|
|
17327
|
+
};
|
|
17328
|
+
proxyRevalidate?: {
|
|
17329
|
+
operation: "set" | "remove" | (string & {});
|
|
17330
|
+
cloudflareOnly?: boolean;
|
|
17331
|
+
};
|
|
17332
|
+
public?: {
|
|
17333
|
+
operation: "set" | "remove" | (string & {});
|
|
17334
|
+
cloudflareOnly?: boolean;
|
|
17335
|
+
};
|
|
17336
|
+
sMaxage?: {
|
|
17337
|
+
operation: "set" | "remove" | (string & {});
|
|
17338
|
+
cloudflareOnly?: boolean;
|
|
17339
|
+
};
|
|
17340
|
+
staleIfError?: {
|
|
17341
|
+
operation: "set" | "remove" | (string & {});
|
|
17342
|
+
cloudflareOnly?: boolean;
|
|
17343
|
+
};
|
|
17344
|
+
staleWhileRevalidate?: {
|
|
17345
|
+
operation: "set" | "remove" | (string & {});
|
|
17346
|
+
cloudflareOnly?: boolean;
|
|
17347
|
+
};
|
|
17348
|
+
}
|
|
17349
|
+
| {
|
|
17350
|
+
additionalCacheablePorts?: number[];
|
|
17351
|
+
browserTtl?: {
|
|
17352
|
+
mode:
|
|
17353
|
+
| "respect_origin"
|
|
17354
|
+
| "bypass_by_default"
|
|
17355
|
+
| "override_origin"
|
|
17356
|
+
| "bypass"
|
|
17357
|
+
| (string & {});
|
|
17358
|
+
default?: number;
|
|
17359
|
+
};
|
|
17360
|
+
cache?: boolean;
|
|
17361
|
+
cacheKey?: {
|
|
17362
|
+
cacheByDeviceType?: boolean;
|
|
17363
|
+
cacheDeceptionArmor?: boolean;
|
|
17364
|
+
customKey?: {
|
|
17365
|
+
cookie?: { checkPresence?: string[]; include?: string[] };
|
|
17366
|
+
header?: {
|
|
17367
|
+
checkPresence?: string[];
|
|
17368
|
+
contains?: Record<string, unknown>;
|
|
17369
|
+
excludeOrigin?: boolean;
|
|
17370
|
+
include?: string[];
|
|
17371
|
+
};
|
|
17372
|
+
host?: { resolved?: boolean };
|
|
17373
|
+
queryString?: {
|
|
17374
|
+
exclude?: { all?: true; list?: string[] };
|
|
17375
|
+
include?: { all?: true; list?: string[] };
|
|
17376
|
+
};
|
|
17377
|
+
user?: { deviceType?: boolean; geo?: boolean; lang?: boolean };
|
|
17378
|
+
};
|
|
17379
|
+
ignoreQueryStringsOrder?: boolean;
|
|
17380
|
+
};
|
|
17381
|
+
cacheReserve?: { eligible: boolean; minimumFileSize?: number };
|
|
17382
|
+
edgeTtl?: {
|
|
17383
|
+
mode:
|
|
17384
|
+
| "respect_origin"
|
|
17385
|
+
| "bypass_by_default"
|
|
17386
|
+
| "override_origin"
|
|
17387
|
+
| (string & {});
|
|
17388
|
+
default?: number;
|
|
17389
|
+
statusCodeTtl?: {
|
|
17390
|
+
value: number;
|
|
17391
|
+
statusCode?: number;
|
|
17392
|
+
statusCodeRange?: { from?: number; to?: number };
|
|
17393
|
+
}[];
|
|
17394
|
+
};
|
|
17395
|
+
originCacheControl?: boolean;
|
|
17396
|
+
originErrorPagePassthru?: boolean;
|
|
17397
|
+
readTimeout?: number;
|
|
17398
|
+
respectStrongEtags?: boolean;
|
|
17399
|
+
serveStale?: { disableStaleWhileUpdating?: boolean };
|
|
17400
|
+
sharedDictionary?: { matchPattern: string };
|
|
17401
|
+
stripEtags?: boolean;
|
|
17402
|
+
stripLastModified?: boolean;
|
|
17403
|
+
stripSetCookie?: boolean;
|
|
17404
|
+
}
|
|
17405
|
+
| { operation: "add" | "remove" | "set" | (string & {}); values: string[] }
|
|
17406
|
+
| {
|
|
17407
|
+
expression: string;
|
|
17408
|
+
operation: "add" | "remove" | "set" | (string & {});
|
|
17409
|
+
}
|
|
17410
|
+
| {
|
|
17411
|
+
automaticHttpsRewrites?: boolean;
|
|
17412
|
+
autominify?: { css?: boolean; html?: boolean; js?: boolean };
|
|
17413
|
+
bic?: boolean;
|
|
17414
|
+
contentConverter?: boolean;
|
|
17415
|
+
disableApps?: true;
|
|
17416
|
+
disablePayPerCrawl?: true;
|
|
17417
|
+
disableRum?: true;
|
|
17418
|
+
disableZaraz?: true;
|
|
17419
|
+
emailObfuscation?: boolean;
|
|
17420
|
+
fonts?: boolean;
|
|
17421
|
+
hotlinkProtection?: boolean;
|
|
17422
|
+
mirage?: boolean;
|
|
17423
|
+
opportunisticEncryption?: boolean;
|
|
17424
|
+
polish?: "off" | "lossless" | "lossy" | "webp" | (string & {});
|
|
17425
|
+
redirectsForAiTraining?: boolean;
|
|
17426
|
+
requestBodyBuffering?: "none" | "standard" | "full" | (string & {});
|
|
17427
|
+
responseBodyBuffering?: "none" | "standard" | (string & {});
|
|
17428
|
+
rocketLoader?: boolean;
|
|
17429
|
+
securityLevel?:
|
|
17430
|
+
| "off"
|
|
17431
|
+
| "essentially_off"
|
|
17432
|
+
| "low"
|
|
17433
|
+
| "medium"
|
|
17434
|
+
| "high"
|
|
17435
|
+
| "under_attack"
|
|
17436
|
+
| (string & {});
|
|
17437
|
+
serverSideExcludes?: boolean;
|
|
17438
|
+
ssl?:
|
|
17439
|
+
| "off"
|
|
17440
|
+
| "flexible"
|
|
17441
|
+
| "full"
|
|
17442
|
+
| "strict"
|
|
17443
|
+
| "origin_pull"
|
|
17444
|
+
| (string & {});
|
|
17445
|
+
sxg?: boolean;
|
|
17446
|
+
}
|
|
17447
|
+
| {
|
|
17448
|
+
phase?: "current";
|
|
17449
|
+
phases?: (
|
|
17450
|
+
| "ddos_l4"
|
|
17451
|
+
| "ddos_l7"
|
|
17452
|
+
| "http_config_settings"
|
|
17453
|
+
| "http_custom_errors"
|
|
17454
|
+
| "http_log_custom_fields"
|
|
17455
|
+
| "http_ratelimit"
|
|
17456
|
+
| "http_request_cache_settings"
|
|
17457
|
+
| "http_request_dynamic_redirect"
|
|
17458
|
+
| "http_request_firewall_custom"
|
|
17459
|
+
| "http_request_firewall_managed"
|
|
17460
|
+
| "http_request_late_transform"
|
|
17461
|
+
| "http_request_origin"
|
|
17462
|
+
| "http_request_redirect"
|
|
17463
|
+
| "http_request_sanitize"
|
|
17464
|
+
| "http_request_sbfm"
|
|
17465
|
+
| "http_request_transform"
|
|
17466
|
+
| "http_response_cache_settings"
|
|
17467
|
+
| "http_response_compression"
|
|
17468
|
+
| "http_response_firewall_managed"
|
|
17469
|
+
| "http_response_headers_transform"
|
|
17470
|
+
| "magic_transit"
|
|
17471
|
+
| "magic_transit_ids_managed"
|
|
17472
|
+
| "magic_transit_managed"
|
|
17473
|
+
| "magic_transit_ratelimit"
|
|
17474
|
+
| (string & {})
|
|
17475
|
+
)[];
|
|
17476
|
+
products?: (
|
|
17477
|
+
| "bic"
|
|
17478
|
+
| "hot"
|
|
17479
|
+
| "rateLimit"
|
|
17480
|
+
| "securityLevel"
|
|
17481
|
+
| "uaBlock"
|
|
17482
|
+
| "waf"
|
|
17483
|
+
| "zoneLockdown"
|
|
17484
|
+
| (string & {})
|
|
17485
|
+
)[];
|
|
17486
|
+
rules?: Record<string, unknown>;
|
|
17487
|
+
ruleset?: "current";
|
|
17488
|
+
rulesets?: string[];
|
|
17489
|
+
};
|
|
16330
17490
|
/** Body param: An informative description of the rule. */
|
|
16331
17491
|
description?: string;
|
|
16332
17492
|
/** Body param: Whether the rule should be executed. */
|
|
@@ -16341,7 +17501,7 @@ interface CreateRuleBaseRequest {
|
|
|
16341
17501
|
/** Body param: An object configuring the rule's logging behavior. */
|
|
16342
17502
|
logging?: { enabled: boolean };
|
|
16343
17503
|
/** Body param: An object configuring where the rule will be placed. */
|
|
16344
|
-
position?: { before?: string
|
|
17504
|
+
position?: { before?: string; after?: string; index?: number };
|
|
16345
17505
|
/** Body param: An object configuring the rule's rate limit behavior. */
|
|
16346
17506
|
ratelimit?: {
|
|
16347
17507
|
characteristics: string[];
|
|
@@ -19390,154 +20550,589 @@ export const CreateRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
19390
20550
|
Schema.Null,
|
|
19391
20551
|
]),
|
|
19392
20552
|
),
|
|
19393
|
-
noTransform: Schema.optional(
|
|
20553
|
+
noTransform: Schema.optional(
|
|
20554
|
+
Schema.Union([
|
|
20555
|
+
Schema.Struct({
|
|
20556
|
+
operation: Schema.Union([
|
|
20557
|
+
Schema.Literals(["set", "remove"]),
|
|
20558
|
+
Schema.String,
|
|
20559
|
+
]),
|
|
20560
|
+
cloudflareOnly: Schema.optional(
|
|
20561
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
20562
|
+
),
|
|
20563
|
+
}).pipe(
|
|
20564
|
+
Schema.encodeKeys({
|
|
20565
|
+
operation: "operation",
|
|
20566
|
+
cloudflareOnly: "cloudflare_only",
|
|
20567
|
+
}),
|
|
20568
|
+
),
|
|
20569
|
+
Schema.Null,
|
|
20570
|
+
]),
|
|
20571
|
+
),
|
|
20572
|
+
private: Schema.optional(
|
|
20573
|
+
Schema.Union([
|
|
20574
|
+
Schema.Struct({
|
|
20575
|
+
operation: Schema.Union([
|
|
20576
|
+
Schema.Literals(["set", "remove"]),
|
|
20577
|
+
Schema.String,
|
|
20578
|
+
]),
|
|
20579
|
+
cloudflareOnly: Schema.optional(
|
|
20580
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
20581
|
+
),
|
|
20582
|
+
}).pipe(
|
|
20583
|
+
Schema.encodeKeys({
|
|
20584
|
+
operation: "operation",
|
|
20585
|
+
cloudflareOnly: "cloudflare_only",
|
|
20586
|
+
}),
|
|
20587
|
+
),
|
|
20588
|
+
Schema.Null,
|
|
20589
|
+
]),
|
|
20590
|
+
),
|
|
20591
|
+
proxyRevalidate: Schema.optional(
|
|
20592
|
+
Schema.Union([
|
|
20593
|
+
Schema.Struct({
|
|
20594
|
+
operation: Schema.Union([
|
|
20595
|
+
Schema.Literals(["set", "remove"]),
|
|
20596
|
+
Schema.String,
|
|
20597
|
+
]),
|
|
20598
|
+
cloudflareOnly: Schema.optional(
|
|
20599
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
20600
|
+
),
|
|
20601
|
+
}).pipe(
|
|
20602
|
+
Schema.encodeKeys({
|
|
20603
|
+
operation: "operation",
|
|
20604
|
+
cloudflareOnly: "cloudflare_only",
|
|
20605
|
+
}),
|
|
20606
|
+
),
|
|
20607
|
+
Schema.Null,
|
|
20608
|
+
]),
|
|
20609
|
+
),
|
|
20610
|
+
public: Schema.optional(
|
|
20611
|
+
Schema.Union([
|
|
20612
|
+
Schema.Struct({
|
|
20613
|
+
operation: Schema.Union([
|
|
20614
|
+
Schema.Literals(["set", "remove"]),
|
|
20615
|
+
Schema.String,
|
|
20616
|
+
]),
|
|
20617
|
+
cloudflareOnly: Schema.optional(
|
|
20618
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
20619
|
+
),
|
|
20620
|
+
}).pipe(
|
|
20621
|
+
Schema.encodeKeys({
|
|
20622
|
+
operation: "operation",
|
|
20623
|
+
cloudflareOnly: "cloudflare_only",
|
|
20624
|
+
}),
|
|
20625
|
+
),
|
|
20626
|
+
Schema.Null,
|
|
20627
|
+
]),
|
|
20628
|
+
),
|
|
20629
|
+
sMaxage: Schema.optional(
|
|
20630
|
+
Schema.Union([
|
|
20631
|
+
Schema.Struct({
|
|
20632
|
+
operation: Schema.Union([
|
|
20633
|
+
Schema.Literals(["set", "remove"]),
|
|
20634
|
+
Schema.String,
|
|
20635
|
+
]),
|
|
20636
|
+
cloudflareOnly: Schema.optional(
|
|
20637
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
20638
|
+
),
|
|
20639
|
+
}).pipe(
|
|
20640
|
+
Schema.encodeKeys({
|
|
20641
|
+
operation: "operation",
|
|
20642
|
+
cloudflareOnly: "cloudflare_only",
|
|
20643
|
+
}),
|
|
20644
|
+
),
|
|
20645
|
+
Schema.Null,
|
|
20646
|
+
]),
|
|
20647
|
+
),
|
|
20648
|
+
staleIfError: Schema.optional(
|
|
20649
|
+
Schema.Union([
|
|
20650
|
+
Schema.Struct({
|
|
20651
|
+
operation: Schema.Union([
|
|
20652
|
+
Schema.Literals(["set", "remove"]),
|
|
20653
|
+
Schema.String,
|
|
20654
|
+
]),
|
|
20655
|
+
cloudflareOnly: Schema.optional(
|
|
20656
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
20657
|
+
),
|
|
20658
|
+
}).pipe(
|
|
20659
|
+
Schema.encodeKeys({
|
|
20660
|
+
operation: "operation",
|
|
20661
|
+
cloudflareOnly: "cloudflare_only",
|
|
20662
|
+
}),
|
|
20663
|
+
),
|
|
20664
|
+
Schema.Null,
|
|
20665
|
+
]),
|
|
20666
|
+
),
|
|
20667
|
+
staleWhileRevalidate: Schema.optional(
|
|
20668
|
+
Schema.Union([
|
|
20669
|
+
Schema.Struct({
|
|
20670
|
+
operation: Schema.Union([
|
|
20671
|
+
Schema.Literals(["set", "remove"]),
|
|
20672
|
+
Schema.String,
|
|
20673
|
+
]),
|
|
20674
|
+
cloudflareOnly: Schema.optional(
|
|
20675
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
20676
|
+
),
|
|
20677
|
+
}).pipe(
|
|
20678
|
+
Schema.encodeKeys({
|
|
20679
|
+
operation: "operation",
|
|
20680
|
+
cloudflareOnly: "cloudflare_only",
|
|
20681
|
+
}),
|
|
20682
|
+
),
|
|
20683
|
+
Schema.Null,
|
|
20684
|
+
]),
|
|
20685
|
+
),
|
|
20686
|
+
}).pipe(
|
|
20687
|
+
Schema.encodeKeys({
|
|
20688
|
+
immutable: "immutable",
|
|
20689
|
+
maxAge: "max-age",
|
|
20690
|
+
mustRevalidate: "must-revalidate",
|
|
20691
|
+
mustUnderstand: "must-understand",
|
|
20692
|
+
noCache: "no-cache",
|
|
20693
|
+
noStore: "no-store",
|
|
20694
|
+
noTransform: "no-transform",
|
|
20695
|
+
private: "private",
|
|
20696
|
+
proxyRevalidate: "proxy-revalidate",
|
|
20697
|
+
public: "public",
|
|
20698
|
+
sMaxage: "s-maxage",
|
|
20699
|
+
staleIfError: "stale-if-error",
|
|
20700
|
+
staleWhileRevalidate: "stale-while-revalidate",
|
|
20701
|
+
}),
|
|
20702
|
+
),
|
|
20703
|
+
Schema.Null,
|
|
20704
|
+
]),
|
|
20705
|
+
),
|
|
20706
|
+
categories: Schema.optional(
|
|
20707
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
20708
|
+
),
|
|
20709
|
+
description: Schema.optional(
|
|
20710
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
20711
|
+
),
|
|
20712
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
20713
|
+
exposedCredentialCheck: Schema.optional(
|
|
20714
|
+
Schema.Union([
|
|
20715
|
+
Schema.Struct({
|
|
20716
|
+
passwordExpression: SensitiveString,
|
|
20717
|
+
usernameExpression: Schema.String,
|
|
20718
|
+
}).pipe(
|
|
20719
|
+
Schema.encodeKeys({
|
|
20720
|
+
passwordExpression: "password_expression",
|
|
20721
|
+
usernameExpression: "username_expression",
|
|
20722
|
+
}),
|
|
20723
|
+
),
|
|
20724
|
+
Schema.Null,
|
|
20725
|
+
]),
|
|
20726
|
+
),
|
|
20727
|
+
expression: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
20728
|
+
logging: Schema.optional(
|
|
20729
|
+
Schema.Union([
|
|
20730
|
+
Schema.Struct({
|
|
20731
|
+
enabled: Schema.Boolean,
|
|
20732
|
+
}),
|
|
20733
|
+
Schema.Null,
|
|
20734
|
+
]),
|
|
20735
|
+
),
|
|
20736
|
+
ratelimit: Schema.optional(
|
|
20737
|
+
Schema.Union([
|
|
20738
|
+
Schema.Struct({
|
|
20739
|
+
characteristics: Schema.Array(Schema.String),
|
|
20740
|
+
period: Schema.Number,
|
|
20741
|
+
countingExpression: Schema.optional(
|
|
20742
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
20743
|
+
),
|
|
20744
|
+
mitigationTimeout: Schema.optional(
|
|
20745
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
20746
|
+
),
|
|
20747
|
+
requestsPerPeriod: Schema.optional(
|
|
20748
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
20749
|
+
),
|
|
20750
|
+
requestsToOrigin: Schema.optional(
|
|
20751
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
20752
|
+
),
|
|
20753
|
+
scorePerPeriod: Schema.optional(
|
|
20754
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
20755
|
+
),
|
|
20756
|
+
scoreResponseHeaderName: Schema.optional(
|
|
20757
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
20758
|
+
),
|
|
20759
|
+
}).pipe(
|
|
20760
|
+
Schema.encodeKeys({
|
|
20761
|
+
characteristics: "characteristics",
|
|
20762
|
+
period: "period",
|
|
20763
|
+
countingExpression: "counting_expression",
|
|
20764
|
+
mitigationTimeout: "mitigation_timeout",
|
|
20765
|
+
requestsPerPeriod: "requests_per_period",
|
|
20766
|
+
requestsToOrigin: "requests_to_origin",
|
|
20767
|
+
scorePerPeriod: "score_per_period",
|
|
20768
|
+
scoreResponseHeaderName: "score_response_header_name",
|
|
20769
|
+
}),
|
|
20770
|
+
),
|
|
20771
|
+
Schema.Null,
|
|
20772
|
+
]),
|
|
20773
|
+
),
|
|
20774
|
+
ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
20775
|
+
}).pipe(
|
|
20776
|
+
Schema.encodeKeys({
|
|
20777
|
+
lastUpdated: "last_updated",
|
|
20778
|
+
version: "version",
|
|
20779
|
+
id: "id",
|
|
20780
|
+
action: "action",
|
|
20781
|
+
actionParameters: "action_parameters",
|
|
20782
|
+
categories: "categories",
|
|
20783
|
+
description: "description",
|
|
20784
|
+
enabled: "enabled",
|
|
20785
|
+
exposedCredentialCheck: "exposed_credential_check",
|
|
20786
|
+
expression: "expression",
|
|
20787
|
+
logging: "logging",
|
|
20788
|
+
ratelimit: "ratelimit",
|
|
20789
|
+
ref: "ref",
|
|
20790
|
+
}),
|
|
20791
|
+
),
|
|
20792
|
+
Schema.Struct({
|
|
20793
|
+
lastUpdated: Schema.String,
|
|
20794
|
+
version: Schema.String,
|
|
20795
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
20796
|
+
action: Schema.optional(
|
|
20797
|
+
Schema.Union([Schema.Literal("set_cache_settings"), Schema.Null]),
|
|
20798
|
+
),
|
|
20799
|
+
actionParameters: Schema.optional(
|
|
20800
|
+
Schema.Union([
|
|
20801
|
+
Schema.Struct({
|
|
20802
|
+
additionalCacheablePorts: Schema.optional(
|
|
20803
|
+
Schema.Union([Schema.Array(Schema.Number), Schema.Null]),
|
|
20804
|
+
),
|
|
20805
|
+
browserTtl: Schema.optional(
|
|
19394
20806
|
Schema.Union([
|
|
19395
20807
|
Schema.Struct({
|
|
19396
|
-
|
|
19397
|
-
Schema.Literals([
|
|
20808
|
+
mode: Schema.Union([
|
|
20809
|
+
Schema.Literals([
|
|
20810
|
+
"respect_origin",
|
|
20811
|
+
"bypass_by_default",
|
|
20812
|
+
"override_origin",
|
|
20813
|
+
"bypass",
|
|
20814
|
+
]),
|
|
19398
20815
|
Schema.String,
|
|
19399
20816
|
]),
|
|
19400
|
-
|
|
19401
|
-
Schema.Union([Schema.
|
|
20817
|
+
default: Schema.optional(
|
|
20818
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
19402
20819
|
),
|
|
19403
|
-
})
|
|
19404
|
-
Schema.encodeKeys({
|
|
19405
|
-
operation: "operation",
|
|
19406
|
-
cloudflareOnly: "cloudflare_only",
|
|
19407
|
-
}),
|
|
19408
|
-
),
|
|
20820
|
+
}),
|
|
19409
20821
|
Schema.Null,
|
|
19410
20822
|
]),
|
|
19411
20823
|
),
|
|
19412
|
-
|
|
20824
|
+
cache: Schema.optional(
|
|
20825
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
20826
|
+
),
|
|
20827
|
+
cacheKey: Schema.optional(
|
|
19413
20828
|
Schema.Union([
|
|
19414
20829
|
Schema.Struct({
|
|
19415
|
-
|
|
19416
|
-
Schema.
|
|
19417
|
-
|
|
19418
|
-
|
|
19419
|
-
|
|
20830
|
+
cacheByDeviceType: Schema.optional(
|
|
20831
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
20832
|
+
),
|
|
20833
|
+
cacheDeceptionArmor: Schema.optional(
|
|
20834
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
20835
|
+
),
|
|
20836
|
+
customKey: Schema.optional(
|
|
20837
|
+
Schema.Union([
|
|
20838
|
+
Schema.Struct({
|
|
20839
|
+
cookie: Schema.optional(
|
|
20840
|
+
Schema.Union([
|
|
20841
|
+
Schema.Struct({
|
|
20842
|
+
checkPresence: Schema.optional(
|
|
20843
|
+
Schema.Union([
|
|
20844
|
+
Schema.Array(Schema.String),
|
|
20845
|
+
Schema.Null,
|
|
20846
|
+
]),
|
|
20847
|
+
),
|
|
20848
|
+
include: Schema.optional(
|
|
20849
|
+
Schema.Union([
|
|
20850
|
+
Schema.Array(Schema.String),
|
|
20851
|
+
Schema.Null,
|
|
20852
|
+
]),
|
|
20853
|
+
),
|
|
20854
|
+
}).pipe(
|
|
20855
|
+
Schema.encodeKeys({
|
|
20856
|
+
checkPresence: "check_presence",
|
|
20857
|
+
include: "include",
|
|
20858
|
+
}),
|
|
20859
|
+
),
|
|
20860
|
+
Schema.Null,
|
|
20861
|
+
]),
|
|
20862
|
+
),
|
|
20863
|
+
header: Schema.optional(
|
|
20864
|
+
Schema.Union([
|
|
20865
|
+
Schema.Struct({
|
|
20866
|
+
checkPresence: Schema.optional(
|
|
20867
|
+
Schema.Union([
|
|
20868
|
+
Schema.Array(Schema.String),
|
|
20869
|
+
Schema.Null,
|
|
20870
|
+
]),
|
|
20871
|
+
),
|
|
20872
|
+
contains: Schema.optional(
|
|
20873
|
+
Schema.Union([
|
|
20874
|
+
Schema.Record(
|
|
20875
|
+
Schema.String,
|
|
20876
|
+
Schema.Unknown,
|
|
20877
|
+
),
|
|
20878
|
+
Schema.Null,
|
|
20879
|
+
]),
|
|
20880
|
+
),
|
|
20881
|
+
excludeOrigin: Schema.optional(
|
|
20882
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
20883
|
+
),
|
|
20884
|
+
include: Schema.optional(
|
|
20885
|
+
Schema.Union([
|
|
20886
|
+
Schema.Array(Schema.String),
|
|
20887
|
+
Schema.Null,
|
|
20888
|
+
]),
|
|
20889
|
+
),
|
|
20890
|
+
}).pipe(
|
|
20891
|
+
Schema.encodeKeys({
|
|
20892
|
+
checkPresence: "check_presence",
|
|
20893
|
+
contains: "contains",
|
|
20894
|
+
excludeOrigin: "exclude_origin",
|
|
20895
|
+
include: "include",
|
|
20896
|
+
}),
|
|
20897
|
+
),
|
|
20898
|
+
Schema.Null,
|
|
20899
|
+
]),
|
|
20900
|
+
),
|
|
20901
|
+
host: Schema.optional(
|
|
20902
|
+
Schema.Union([
|
|
20903
|
+
Schema.Struct({
|
|
20904
|
+
resolved: Schema.optional(
|
|
20905
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
20906
|
+
),
|
|
20907
|
+
}),
|
|
20908
|
+
Schema.Null,
|
|
20909
|
+
]),
|
|
20910
|
+
),
|
|
20911
|
+
queryString: Schema.optional(
|
|
20912
|
+
Schema.Union([
|
|
20913
|
+
Schema.Struct({
|
|
20914
|
+
exclude: Schema.optional(
|
|
20915
|
+
Schema.Union([
|
|
20916
|
+
Schema.Struct({
|
|
20917
|
+
all: Schema.optional(
|
|
20918
|
+
Schema.Union([
|
|
20919
|
+
Schema.Literal(true),
|
|
20920
|
+
Schema.Null,
|
|
20921
|
+
]),
|
|
20922
|
+
),
|
|
20923
|
+
list: Schema.optional(
|
|
20924
|
+
Schema.Union([
|
|
20925
|
+
Schema.Array(Schema.String),
|
|
20926
|
+
Schema.Null,
|
|
20927
|
+
]),
|
|
20928
|
+
),
|
|
20929
|
+
}),
|
|
20930
|
+
Schema.Null,
|
|
20931
|
+
]),
|
|
20932
|
+
),
|
|
20933
|
+
include: Schema.optional(
|
|
20934
|
+
Schema.Union([
|
|
20935
|
+
Schema.Struct({
|
|
20936
|
+
all: Schema.optional(
|
|
20937
|
+
Schema.Union([
|
|
20938
|
+
Schema.Literal(true),
|
|
20939
|
+
Schema.Null,
|
|
20940
|
+
]),
|
|
20941
|
+
),
|
|
20942
|
+
list: Schema.optional(
|
|
20943
|
+
Schema.Union([
|
|
20944
|
+
Schema.Array(Schema.String),
|
|
20945
|
+
Schema.Null,
|
|
20946
|
+
]),
|
|
20947
|
+
),
|
|
20948
|
+
}),
|
|
20949
|
+
Schema.Null,
|
|
20950
|
+
]),
|
|
20951
|
+
),
|
|
20952
|
+
}),
|
|
20953
|
+
Schema.Null,
|
|
20954
|
+
]),
|
|
20955
|
+
),
|
|
20956
|
+
user: Schema.optional(
|
|
20957
|
+
Schema.Union([
|
|
20958
|
+
Schema.Struct({
|
|
20959
|
+
deviceType: Schema.optional(
|
|
20960
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
20961
|
+
),
|
|
20962
|
+
geo: Schema.optional(
|
|
20963
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
20964
|
+
),
|
|
20965
|
+
lang: Schema.optional(
|
|
20966
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
20967
|
+
),
|
|
20968
|
+
}).pipe(
|
|
20969
|
+
Schema.encodeKeys({
|
|
20970
|
+
deviceType: "device_type",
|
|
20971
|
+
geo: "geo",
|
|
20972
|
+
lang: "lang",
|
|
20973
|
+
}),
|
|
20974
|
+
),
|
|
20975
|
+
Schema.Null,
|
|
20976
|
+
]),
|
|
20977
|
+
),
|
|
20978
|
+
}).pipe(
|
|
20979
|
+
Schema.encodeKeys({
|
|
20980
|
+
cookie: "cookie",
|
|
20981
|
+
header: "header",
|
|
20982
|
+
host: "host",
|
|
20983
|
+
queryString: "query_string",
|
|
20984
|
+
user: "user",
|
|
20985
|
+
}),
|
|
20986
|
+
),
|
|
20987
|
+
Schema.Null,
|
|
20988
|
+
]),
|
|
20989
|
+
),
|
|
20990
|
+
ignoreQueryStringsOrder: Schema.optional(
|
|
19420
20991
|
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
19421
20992
|
),
|
|
19422
20993
|
}).pipe(
|
|
19423
20994
|
Schema.encodeKeys({
|
|
19424
|
-
|
|
19425
|
-
|
|
20995
|
+
cacheByDeviceType: "cache_by_device_type",
|
|
20996
|
+
cacheDeceptionArmor: "cache_deception_armor",
|
|
20997
|
+
customKey: "custom_key",
|
|
20998
|
+
ignoreQueryStringsOrder: "ignore_query_strings_order",
|
|
19426
20999
|
}),
|
|
19427
21000
|
),
|
|
19428
21001
|
Schema.Null,
|
|
19429
21002
|
]),
|
|
19430
21003
|
),
|
|
19431
|
-
|
|
21004
|
+
cacheReserve: Schema.optional(
|
|
19432
21005
|
Schema.Union([
|
|
19433
21006
|
Schema.Struct({
|
|
19434
|
-
|
|
19435
|
-
|
|
19436
|
-
Schema.
|
|
19437
|
-
]),
|
|
19438
|
-
cloudflareOnly: Schema.optional(
|
|
19439
|
-
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
21007
|
+
eligible: Schema.Boolean,
|
|
21008
|
+
minimumFileSize: Schema.optional(
|
|
21009
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
19440
21010
|
),
|
|
19441
21011
|
}).pipe(
|
|
19442
21012
|
Schema.encodeKeys({
|
|
19443
|
-
|
|
19444
|
-
|
|
21013
|
+
eligible: "eligible",
|
|
21014
|
+
minimumFileSize: "minimum_file_size",
|
|
19445
21015
|
}),
|
|
19446
21016
|
),
|
|
19447
21017
|
Schema.Null,
|
|
19448
21018
|
]),
|
|
19449
21019
|
),
|
|
19450
|
-
|
|
21020
|
+
edgeTtl: Schema.optional(
|
|
19451
21021
|
Schema.Union([
|
|
19452
21022
|
Schema.Struct({
|
|
19453
|
-
|
|
19454
|
-
Schema.Literals([
|
|
21023
|
+
mode: Schema.Union([
|
|
21024
|
+
Schema.Literals([
|
|
21025
|
+
"respect_origin",
|
|
21026
|
+
"bypass_by_default",
|
|
21027
|
+
"override_origin",
|
|
21028
|
+
]),
|
|
19455
21029
|
Schema.String,
|
|
19456
21030
|
]),
|
|
19457
|
-
|
|
19458
|
-
Schema.Union([Schema.
|
|
21031
|
+
default: Schema.optional(
|
|
21032
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
21033
|
+
),
|
|
21034
|
+
statusCodeTtl: Schema.optional(
|
|
21035
|
+
Schema.Union([
|
|
21036
|
+
Schema.Array(
|
|
21037
|
+
Schema.Struct({
|
|
21038
|
+
value: Schema.Number,
|
|
21039
|
+
statusCode: Schema.optional(
|
|
21040
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
21041
|
+
),
|
|
21042
|
+
statusCodeRange: Schema.optional(
|
|
21043
|
+
Schema.Union([
|
|
21044
|
+
Schema.Struct({
|
|
21045
|
+
from: Schema.optional(
|
|
21046
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
21047
|
+
),
|
|
21048
|
+
to: Schema.optional(
|
|
21049
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
21050
|
+
),
|
|
21051
|
+
}),
|
|
21052
|
+
Schema.Null,
|
|
21053
|
+
]),
|
|
21054
|
+
),
|
|
21055
|
+
}).pipe(
|
|
21056
|
+
Schema.encodeKeys({
|
|
21057
|
+
value: "value",
|
|
21058
|
+
statusCode: "status_code",
|
|
21059
|
+
statusCodeRange: "status_code_range",
|
|
21060
|
+
}),
|
|
21061
|
+
),
|
|
21062
|
+
),
|
|
21063
|
+
Schema.Null,
|
|
21064
|
+
]),
|
|
19459
21065
|
),
|
|
19460
21066
|
}).pipe(
|
|
19461
21067
|
Schema.encodeKeys({
|
|
19462
|
-
|
|
19463
|
-
|
|
21068
|
+
mode: "mode",
|
|
21069
|
+
default: "default",
|
|
21070
|
+
statusCodeTtl: "status_code_ttl",
|
|
19464
21071
|
}),
|
|
19465
21072
|
),
|
|
19466
21073
|
Schema.Null,
|
|
19467
21074
|
]),
|
|
19468
21075
|
),
|
|
19469
|
-
|
|
19470
|
-
Schema.Union([
|
|
19471
|
-
Schema.Struct({
|
|
19472
|
-
operation: Schema.Union([
|
|
19473
|
-
Schema.Literals(["set", "remove"]),
|
|
19474
|
-
Schema.String,
|
|
19475
|
-
]),
|
|
19476
|
-
cloudflareOnly: Schema.optional(
|
|
19477
|
-
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
19478
|
-
),
|
|
19479
|
-
}).pipe(
|
|
19480
|
-
Schema.encodeKeys({
|
|
19481
|
-
operation: "operation",
|
|
19482
|
-
cloudflareOnly: "cloudflare_only",
|
|
19483
|
-
}),
|
|
19484
|
-
),
|
|
19485
|
-
Schema.Null,
|
|
19486
|
-
]),
|
|
21076
|
+
originCacheControl: Schema.optional(
|
|
21077
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
19487
21078
|
),
|
|
19488
|
-
|
|
21079
|
+
originErrorPagePassthru: Schema.optional(
|
|
21080
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
21081
|
+
),
|
|
21082
|
+
readTimeout: Schema.optional(
|
|
21083
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
21084
|
+
),
|
|
21085
|
+
respectStrongEtags: Schema.optional(
|
|
21086
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
21087
|
+
),
|
|
21088
|
+
serveStale: Schema.optional(
|
|
19489
21089
|
Schema.Union([
|
|
19490
21090
|
Schema.Struct({
|
|
19491
|
-
|
|
19492
|
-
Schema.Literals(["set", "remove"]),
|
|
19493
|
-
Schema.String,
|
|
19494
|
-
]),
|
|
19495
|
-
cloudflareOnly: Schema.optional(
|
|
21091
|
+
disableStaleWhileUpdating: Schema.optional(
|
|
19496
21092
|
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
19497
21093
|
),
|
|
19498
21094
|
}).pipe(
|
|
19499
21095
|
Schema.encodeKeys({
|
|
19500
|
-
|
|
19501
|
-
cloudflareOnly: "cloudflare_only",
|
|
21096
|
+
disableStaleWhileUpdating: "disable_stale_while_updating",
|
|
19502
21097
|
}),
|
|
19503
21098
|
),
|
|
19504
21099
|
Schema.Null,
|
|
19505
21100
|
]),
|
|
19506
21101
|
),
|
|
19507
|
-
|
|
21102
|
+
sharedDictionary: Schema.optional(
|
|
19508
21103
|
Schema.Union([
|
|
19509
21104
|
Schema.Struct({
|
|
19510
|
-
|
|
19511
|
-
|
|
19512
|
-
Schema.String,
|
|
19513
|
-
]),
|
|
19514
|
-
cloudflareOnly: Schema.optional(
|
|
19515
|
-
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
19516
|
-
),
|
|
19517
|
-
}).pipe(
|
|
19518
|
-
Schema.encodeKeys({
|
|
19519
|
-
operation: "operation",
|
|
19520
|
-
cloudflareOnly: "cloudflare_only",
|
|
19521
|
-
}),
|
|
19522
|
-
),
|
|
21105
|
+
matchPattern: Schema.String,
|
|
21106
|
+
}).pipe(Schema.encodeKeys({ matchPattern: "match_pattern" })),
|
|
19523
21107
|
Schema.Null,
|
|
19524
21108
|
]),
|
|
19525
21109
|
),
|
|
21110
|
+
stripEtags: Schema.optional(
|
|
21111
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
21112
|
+
),
|
|
21113
|
+
stripLastModified: Schema.optional(
|
|
21114
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
21115
|
+
),
|
|
21116
|
+
stripSetCookie: Schema.optional(
|
|
21117
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
21118
|
+
),
|
|
19526
21119
|
}).pipe(
|
|
19527
21120
|
Schema.encodeKeys({
|
|
19528
|
-
|
|
19529
|
-
|
|
19530
|
-
|
|
19531
|
-
|
|
19532
|
-
|
|
19533
|
-
|
|
19534
|
-
|
|
19535
|
-
|
|
19536
|
-
|
|
19537
|
-
|
|
19538
|
-
|
|
19539
|
-
|
|
19540
|
-
|
|
21121
|
+
additionalCacheablePorts: "additional_cacheable_ports",
|
|
21122
|
+
browserTtl: "browser_ttl",
|
|
21123
|
+
cache: "cache",
|
|
21124
|
+
cacheKey: "cache_key",
|
|
21125
|
+
cacheReserve: "cache_reserve",
|
|
21126
|
+
edgeTtl: "edge_ttl",
|
|
21127
|
+
originCacheControl: "origin_cache_control",
|
|
21128
|
+
originErrorPagePassthru: "origin_error_page_passthru",
|
|
21129
|
+
readTimeout: "read_timeout",
|
|
21130
|
+
respectStrongEtags: "respect_strong_etags",
|
|
21131
|
+
serveStale: "serve_stale",
|
|
21132
|
+
sharedDictionary: "shared_dictionary",
|
|
21133
|
+
stripEtags: "strip_etags",
|
|
21134
|
+
stripLastModified: "strip_last_modified",
|
|
21135
|
+
stripSetCookie: "strip_set_cookie",
|
|
19541
21136
|
}),
|
|
19542
21137
|
),
|
|
19543
21138
|
Schema.Null,
|
|
@@ -19634,347 +21229,439 @@ export const CreateRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
19634
21229
|
version: Schema.String,
|
|
19635
21230
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
19636
21231
|
action: Schema.optional(
|
|
19637
|
-
Schema.Union([Schema.Literal("
|
|
21232
|
+
Schema.Union([Schema.Literal("set_cache_tags"), Schema.Null]),
|
|
21233
|
+
),
|
|
21234
|
+
actionParameters: Schema.optional(
|
|
21235
|
+
Schema.Union([
|
|
21236
|
+
Schema.Union([
|
|
21237
|
+
Schema.Struct({
|
|
21238
|
+
operation: Schema.Union([
|
|
21239
|
+
Schema.Literals(["add", "remove", "set"]),
|
|
21240
|
+
Schema.String,
|
|
21241
|
+
]),
|
|
21242
|
+
values: Schema.Array(Schema.String),
|
|
21243
|
+
}),
|
|
21244
|
+
Schema.Struct({
|
|
21245
|
+
expression: Schema.String,
|
|
21246
|
+
operation: Schema.Union([
|
|
21247
|
+
Schema.Literals(["add", "remove", "set"]),
|
|
21248
|
+
Schema.String,
|
|
21249
|
+
]),
|
|
21250
|
+
}),
|
|
21251
|
+
]),
|
|
21252
|
+
Schema.Null,
|
|
21253
|
+
]),
|
|
21254
|
+
),
|
|
21255
|
+
categories: Schema.optional(
|
|
21256
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
21257
|
+
),
|
|
21258
|
+
description: Schema.optional(
|
|
21259
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
21260
|
+
),
|
|
21261
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
21262
|
+
exposedCredentialCheck: Schema.optional(
|
|
21263
|
+
Schema.Union([
|
|
21264
|
+
Schema.Struct({
|
|
21265
|
+
passwordExpression: SensitiveString,
|
|
21266
|
+
usernameExpression: Schema.String,
|
|
21267
|
+
}).pipe(
|
|
21268
|
+
Schema.encodeKeys({
|
|
21269
|
+
passwordExpression: "password_expression",
|
|
21270
|
+
usernameExpression: "username_expression",
|
|
21271
|
+
}),
|
|
21272
|
+
),
|
|
21273
|
+
Schema.Null,
|
|
21274
|
+
]),
|
|
21275
|
+
),
|
|
21276
|
+
expression: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
21277
|
+
logging: Schema.optional(
|
|
21278
|
+
Schema.Union([
|
|
21279
|
+
Schema.Struct({
|
|
21280
|
+
enabled: Schema.Boolean,
|
|
21281
|
+
}),
|
|
21282
|
+
Schema.Null,
|
|
21283
|
+
]),
|
|
21284
|
+
),
|
|
21285
|
+
ratelimit: Schema.optional(
|
|
21286
|
+
Schema.Union([
|
|
21287
|
+
Schema.Struct({
|
|
21288
|
+
characteristics: Schema.Array(Schema.String),
|
|
21289
|
+
period: Schema.Number,
|
|
21290
|
+
countingExpression: Schema.optional(
|
|
21291
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
21292
|
+
),
|
|
21293
|
+
mitigationTimeout: Schema.optional(
|
|
21294
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
21295
|
+
),
|
|
21296
|
+
requestsPerPeriod: Schema.optional(
|
|
21297
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
21298
|
+
),
|
|
21299
|
+
requestsToOrigin: Schema.optional(
|
|
21300
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
21301
|
+
),
|
|
21302
|
+
scorePerPeriod: Schema.optional(
|
|
21303
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
21304
|
+
),
|
|
21305
|
+
scoreResponseHeaderName: Schema.optional(
|
|
21306
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
21307
|
+
),
|
|
21308
|
+
}).pipe(
|
|
21309
|
+
Schema.encodeKeys({
|
|
21310
|
+
characteristics: "characteristics",
|
|
21311
|
+
period: "period",
|
|
21312
|
+
countingExpression: "counting_expression",
|
|
21313
|
+
mitigationTimeout: "mitigation_timeout",
|
|
21314
|
+
requestsPerPeriod: "requests_per_period",
|
|
21315
|
+
requestsToOrigin: "requests_to_origin",
|
|
21316
|
+
scorePerPeriod: "score_per_period",
|
|
21317
|
+
scoreResponseHeaderName: "score_response_header_name",
|
|
21318
|
+
}),
|
|
21319
|
+
),
|
|
21320
|
+
Schema.Null,
|
|
21321
|
+
]),
|
|
21322
|
+
),
|
|
21323
|
+
ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
21324
|
+
}).pipe(
|
|
21325
|
+
Schema.encodeKeys({
|
|
21326
|
+
lastUpdated: "last_updated",
|
|
21327
|
+
version: "version",
|
|
21328
|
+
id: "id",
|
|
21329
|
+
action: "action",
|
|
21330
|
+
actionParameters: "action_parameters",
|
|
21331
|
+
categories: "categories",
|
|
21332
|
+
description: "description",
|
|
21333
|
+
enabled: "enabled",
|
|
21334
|
+
exposedCredentialCheck: "exposed_credential_check",
|
|
21335
|
+
expression: "expression",
|
|
21336
|
+
logging: "logging",
|
|
21337
|
+
ratelimit: "ratelimit",
|
|
21338
|
+
ref: "ref",
|
|
21339
|
+
}),
|
|
21340
|
+
),
|
|
21341
|
+
Schema.Struct({
|
|
21342
|
+
lastUpdated: Schema.String,
|
|
21343
|
+
version: Schema.String,
|
|
21344
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
21345
|
+
action: Schema.optional(
|
|
21346
|
+
Schema.Union([Schema.Literal("set_config"), Schema.Null]),
|
|
19638
21347
|
),
|
|
19639
21348
|
actionParameters: Schema.optional(
|
|
19640
21349
|
Schema.Union([
|
|
19641
21350
|
Schema.Struct({
|
|
19642
|
-
|
|
19643
|
-
Schema.Union([Schema.
|
|
21351
|
+
automaticHttpsRewrites: Schema.optional(
|
|
21352
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
21353
|
+
),
|
|
21354
|
+
autominify: Schema.optional(
|
|
21355
|
+
Schema.Union([
|
|
21356
|
+
Schema.Struct({
|
|
21357
|
+
css: Schema.optional(
|
|
21358
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
21359
|
+
),
|
|
21360
|
+
html: Schema.optional(
|
|
21361
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
21362
|
+
),
|
|
21363
|
+
js: Schema.optional(
|
|
21364
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
21365
|
+
),
|
|
21366
|
+
}),
|
|
21367
|
+
Schema.Null,
|
|
21368
|
+
]),
|
|
21369
|
+
),
|
|
21370
|
+
bic: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
21371
|
+
contentConverter: Schema.optional(
|
|
21372
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
21373
|
+
),
|
|
21374
|
+
disableApps: Schema.optional(
|
|
21375
|
+
Schema.Union([Schema.Literal(true), Schema.Null]),
|
|
21376
|
+
),
|
|
21377
|
+
disablePayPerCrawl: Schema.optional(
|
|
21378
|
+
Schema.Union([Schema.Literal(true), Schema.Null]),
|
|
21379
|
+
),
|
|
21380
|
+
disableRum: Schema.optional(
|
|
21381
|
+
Schema.Union([Schema.Literal(true), Schema.Null]),
|
|
19644
21382
|
),
|
|
19645
|
-
|
|
21383
|
+
disableZaraz: Schema.optional(
|
|
21384
|
+
Schema.Union([Schema.Literal(true), Schema.Null]),
|
|
21385
|
+
),
|
|
21386
|
+
emailObfuscation: Schema.optional(
|
|
21387
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
21388
|
+
),
|
|
21389
|
+
fonts: Schema.optional(
|
|
21390
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
21391
|
+
),
|
|
21392
|
+
hotlinkProtection: Schema.optional(
|
|
21393
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
21394
|
+
),
|
|
21395
|
+
mirage: Schema.optional(
|
|
21396
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
21397
|
+
),
|
|
21398
|
+
opportunisticEncryption: Schema.optional(
|
|
21399
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
21400
|
+
),
|
|
21401
|
+
polish: Schema.optional(
|
|
19646
21402
|
Schema.Union([
|
|
19647
|
-
Schema.
|
|
19648
|
-
|
|
19649
|
-
|
|
19650
|
-
|
|
19651
|
-
"bypass_by_default",
|
|
19652
|
-
"override_origin",
|
|
19653
|
-
"bypass",
|
|
19654
|
-
]),
|
|
19655
|
-
Schema.String,
|
|
19656
|
-
]),
|
|
19657
|
-
default: Schema.optional(
|
|
19658
|
-
Schema.Union([Schema.Number, Schema.Null]),
|
|
19659
|
-
),
|
|
19660
|
-
}),
|
|
21403
|
+
Schema.Union([
|
|
21404
|
+
Schema.Literals(["off", "lossless", "lossy", "webp"]),
|
|
21405
|
+
Schema.String,
|
|
21406
|
+
]),
|
|
19661
21407
|
Schema.Null,
|
|
19662
21408
|
]),
|
|
19663
21409
|
),
|
|
19664
|
-
|
|
21410
|
+
redirectsForAiTraining: Schema.optional(
|
|
19665
21411
|
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
19666
21412
|
),
|
|
19667
|
-
|
|
21413
|
+
requestBodyBuffering: Schema.optional(
|
|
19668
21414
|
Schema.Union([
|
|
19669
|
-
Schema.
|
|
19670
|
-
|
|
19671
|
-
|
|
19672
|
-
|
|
19673
|
-
cacheDeceptionArmor: Schema.optional(
|
|
19674
|
-
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
19675
|
-
),
|
|
19676
|
-
customKey: Schema.optional(
|
|
19677
|
-
Schema.Union([
|
|
19678
|
-
Schema.Struct({
|
|
19679
|
-
cookie: Schema.optional(
|
|
19680
|
-
Schema.Union([
|
|
19681
|
-
Schema.Struct({
|
|
19682
|
-
checkPresence: Schema.optional(
|
|
19683
|
-
Schema.Union([
|
|
19684
|
-
Schema.Array(Schema.String),
|
|
19685
|
-
Schema.Null,
|
|
19686
|
-
]),
|
|
19687
|
-
),
|
|
19688
|
-
include: Schema.optional(
|
|
19689
|
-
Schema.Union([
|
|
19690
|
-
Schema.Array(Schema.String),
|
|
19691
|
-
Schema.Null,
|
|
19692
|
-
]),
|
|
19693
|
-
),
|
|
19694
|
-
}).pipe(
|
|
19695
|
-
Schema.encodeKeys({
|
|
19696
|
-
checkPresence: "check_presence",
|
|
19697
|
-
include: "include",
|
|
19698
|
-
}),
|
|
19699
|
-
),
|
|
19700
|
-
Schema.Null,
|
|
19701
|
-
]),
|
|
19702
|
-
),
|
|
19703
|
-
header: Schema.optional(
|
|
19704
|
-
Schema.Union([
|
|
19705
|
-
Schema.Struct({
|
|
19706
|
-
checkPresence: Schema.optional(
|
|
19707
|
-
Schema.Union([
|
|
19708
|
-
Schema.Array(Schema.String),
|
|
19709
|
-
Schema.Null,
|
|
19710
|
-
]),
|
|
19711
|
-
),
|
|
19712
|
-
contains: Schema.optional(
|
|
19713
|
-
Schema.Union([
|
|
19714
|
-
Schema.Record(
|
|
19715
|
-
Schema.String,
|
|
19716
|
-
Schema.Unknown,
|
|
19717
|
-
),
|
|
19718
|
-
Schema.Null,
|
|
19719
|
-
]),
|
|
19720
|
-
),
|
|
19721
|
-
excludeOrigin: Schema.optional(
|
|
19722
|
-
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
19723
|
-
),
|
|
19724
|
-
include: Schema.optional(
|
|
19725
|
-
Schema.Union([
|
|
19726
|
-
Schema.Array(Schema.String),
|
|
19727
|
-
Schema.Null,
|
|
19728
|
-
]),
|
|
19729
|
-
),
|
|
19730
|
-
}).pipe(
|
|
19731
|
-
Schema.encodeKeys({
|
|
19732
|
-
checkPresence: "check_presence",
|
|
19733
|
-
contains: "contains",
|
|
19734
|
-
excludeOrigin: "exclude_origin",
|
|
19735
|
-
include: "include",
|
|
19736
|
-
}),
|
|
19737
|
-
),
|
|
19738
|
-
Schema.Null,
|
|
19739
|
-
]),
|
|
19740
|
-
),
|
|
19741
|
-
host: Schema.optional(
|
|
19742
|
-
Schema.Union([
|
|
19743
|
-
Schema.Struct({
|
|
19744
|
-
resolved: Schema.optional(
|
|
19745
|
-
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
19746
|
-
),
|
|
19747
|
-
}),
|
|
19748
|
-
Schema.Null,
|
|
19749
|
-
]),
|
|
19750
|
-
),
|
|
19751
|
-
queryString: Schema.optional(
|
|
19752
|
-
Schema.Union([
|
|
19753
|
-
Schema.Struct({
|
|
19754
|
-
exclude: Schema.optional(
|
|
19755
|
-
Schema.Union([
|
|
19756
|
-
Schema.Struct({
|
|
19757
|
-
all: Schema.optional(
|
|
19758
|
-
Schema.Union([
|
|
19759
|
-
Schema.Literal(true),
|
|
19760
|
-
Schema.Null,
|
|
19761
|
-
]),
|
|
19762
|
-
),
|
|
19763
|
-
list: Schema.optional(
|
|
19764
|
-
Schema.Union([
|
|
19765
|
-
Schema.Array(Schema.String),
|
|
19766
|
-
Schema.Null,
|
|
19767
|
-
]),
|
|
19768
|
-
),
|
|
19769
|
-
}),
|
|
19770
|
-
Schema.Null,
|
|
19771
|
-
]),
|
|
19772
|
-
),
|
|
19773
|
-
include: Schema.optional(
|
|
19774
|
-
Schema.Union([
|
|
19775
|
-
Schema.Struct({
|
|
19776
|
-
all: Schema.optional(
|
|
19777
|
-
Schema.Union([
|
|
19778
|
-
Schema.Literal(true),
|
|
19779
|
-
Schema.Null,
|
|
19780
|
-
]),
|
|
19781
|
-
),
|
|
19782
|
-
list: Schema.optional(
|
|
19783
|
-
Schema.Union([
|
|
19784
|
-
Schema.Array(Schema.String),
|
|
19785
|
-
Schema.Null,
|
|
19786
|
-
]),
|
|
19787
|
-
),
|
|
19788
|
-
}),
|
|
19789
|
-
Schema.Null,
|
|
19790
|
-
]),
|
|
19791
|
-
),
|
|
19792
|
-
}),
|
|
19793
|
-
Schema.Null,
|
|
19794
|
-
]),
|
|
19795
|
-
),
|
|
19796
|
-
user: Schema.optional(
|
|
19797
|
-
Schema.Union([
|
|
19798
|
-
Schema.Struct({
|
|
19799
|
-
deviceType: Schema.optional(
|
|
19800
|
-
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
19801
|
-
),
|
|
19802
|
-
geo: Schema.optional(
|
|
19803
|
-
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
19804
|
-
),
|
|
19805
|
-
lang: Schema.optional(
|
|
19806
|
-
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
19807
|
-
),
|
|
19808
|
-
}).pipe(
|
|
19809
|
-
Schema.encodeKeys({
|
|
19810
|
-
deviceType: "device_type",
|
|
19811
|
-
geo: "geo",
|
|
19812
|
-
lang: "lang",
|
|
19813
|
-
}),
|
|
19814
|
-
),
|
|
19815
|
-
Schema.Null,
|
|
19816
|
-
]),
|
|
19817
|
-
),
|
|
19818
|
-
}).pipe(
|
|
19819
|
-
Schema.encodeKeys({
|
|
19820
|
-
cookie: "cookie",
|
|
19821
|
-
header: "header",
|
|
19822
|
-
host: "host",
|
|
19823
|
-
queryString: "query_string",
|
|
19824
|
-
user: "user",
|
|
19825
|
-
}),
|
|
19826
|
-
),
|
|
19827
|
-
Schema.Null,
|
|
19828
|
-
]),
|
|
19829
|
-
),
|
|
19830
|
-
ignoreQueryStringsOrder: Schema.optional(
|
|
19831
|
-
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
19832
|
-
),
|
|
19833
|
-
}).pipe(
|
|
19834
|
-
Schema.encodeKeys({
|
|
19835
|
-
cacheByDeviceType: "cache_by_device_type",
|
|
19836
|
-
cacheDeceptionArmor: "cache_deception_armor",
|
|
19837
|
-
customKey: "custom_key",
|
|
19838
|
-
ignoreQueryStringsOrder: "ignore_query_strings_order",
|
|
19839
|
-
}),
|
|
19840
|
-
),
|
|
21415
|
+
Schema.Union([
|
|
21416
|
+
Schema.Literals(["none", "standard", "full"]),
|
|
21417
|
+
Schema.String,
|
|
21418
|
+
]),
|
|
19841
21419
|
Schema.Null,
|
|
19842
21420
|
]),
|
|
19843
21421
|
),
|
|
19844
|
-
|
|
21422
|
+
responseBodyBuffering: Schema.optional(
|
|
19845
21423
|
Schema.Union([
|
|
19846
|
-
Schema.
|
|
19847
|
-
|
|
19848
|
-
|
|
19849
|
-
|
|
19850
|
-
|
|
19851
|
-
|
|
19852
|
-
|
|
19853
|
-
|
|
19854
|
-
|
|
19855
|
-
|
|
19856
|
-
|
|
21424
|
+
Schema.Union([
|
|
21425
|
+
Schema.Literals(["none", "standard"]),
|
|
21426
|
+
Schema.String,
|
|
21427
|
+
]),
|
|
21428
|
+
Schema.Null,
|
|
21429
|
+
]),
|
|
21430
|
+
),
|
|
21431
|
+
rocketLoader: Schema.optional(
|
|
21432
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
21433
|
+
),
|
|
21434
|
+
securityLevel: Schema.optional(
|
|
21435
|
+
Schema.Union([
|
|
21436
|
+
Schema.Union([
|
|
21437
|
+
Schema.Literals([
|
|
21438
|
+
"off",
|
|
21439
|
+
"essentially_off",
|
|
21440
|
+
"low",
|
|
21441
|
+
"medium",
|
|
21442
|
+
"high",
|
|
21443
|
+
"under_attack",
|
|
21444
|
+
]),
|
|
21445
|
+
Schema.String,
|
|
21446
|
+
]),
|
|
19857
21447
|
Schema.Null,
|
|
19858
21448
|
]),
|
|
19859
21449
|
),
|
|
19860
|
-
|
|
21450
|
+
serverSideExcludes: Schema.optional(
|
|
21451
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
21452
|
+
),
|
|
21453
|
+
ssl: Schema.optional(
|
|
19861
21454
|
Schema.Union([
|
|
19862
|
-
Schema.
|
|
19863
|
-
|
|
19864
|
-
|
|
19865
|
-
|
|
19866
|
-
|
|
19867
|
-
|
|
19868
|
-
|
|
19869
|
-
Schema.String,
|
|
21455
|
+
Schema.Union([
|
|
21456
|
+
Schema.Literals([
|
|
21457
|
+
"off",
|
|
21458
|
+
"flexible",
|
|
21459
|
+
"full",
|
|
21460
|
+
"strict",
|
|
21461
|
+
"origin_pull",
|
|
19870
21462
|
]),
|
|
19871
|
-
|
|
19872
|
-
|
|
19873
|
-
),
|
|
19874
|
-
statusCodeTtl: Schema.optional(
|
|
19875
|
-
Schema.Union([
|
|
19876
|
-
Schema.Array(
|
|
19877
|
-
Schema.Struct({
|
|
19878
|
-
value: Schema.Number,
|
|
19879
|
-
statusCode: Schema.optional(
|
|
19880
|
-
Schema.Union([Schema.Number, Schema.Null]),
|
|
19881
|
-
),
|
|
19882
|
-
statusCodeRange: Schema.optional(
|
|
19883
|
-
Schema.Union([
|
|
19884
|
-
Schema.Struct({
|
|
19885
|
-
from: Schema.optional(
|
|
19886
|
-
Schema.Union([Schema.Number, Schema.Null]),
|
|
19887
|
-
),
|
|
19888
|
-
to: Schema.optional(
|
|
19889
|
-
Schema.Union([Schema.Number, Schema.Null]),
|
|
19890
|
-
),
|
|
19891
|
-
}),
|
|
19892
|
-
Schema.Null,
|
|
19893
|
-
]),
|
|
19894
|
-
),
|
|
19895
|
-
}).pipe(
|
|
19896
|
-
Schema.encodeKeys({
|
|
19897
|
-
value: "value",
|
|
19898
|
-
statusCode: "status_code",
|
|
19899
|
-
statusCodeRange: "status_code_range",
|
|
19900
|
-
}),
|
|
19901
|
-
),
|
|
19902
|
-
),
|
|
19903
|
-
Schema.Null,
|
|
19904
|
-
]),
|
|
19905
|
-
),
|
|
19906
|
-
}).pipe(
|
|
19907
|
-
Schema.encodeKeys({
|
|
19908
|
-
mode: "mode",
|
|
19909
|
-
default: "default",
|
|
19910
|
-
statusCodeTtl: "status_code_ttl",
|
|
19911
|
-
}),
|
|
19912
|
-
),
|
|
21463
|
+
Schema.String,
|
|
21464
|
+
]),
|
|
19913
21465
|
Schema.Null,
|
|
19914
21466
|
]),
|
|
19915
21467
|
),
|
|
19916
|
-
|
|
19917
|
-
|
|
21468
|
+
sxg: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
21469
|
+
}).pipe(
|
|
21470
|
+
Schema.encodeKeys({
|
|
21471
|
+
automaticHttpsRewrites: "automatic_https_rewrites",
|
|
21472
|
+
autominify: "autominify",
|
|
21473
|
+
bic: "bic",
|
|
21474
|
+
contentConverter: "content_converter",
|
|
21475
|
+
disableApps: "disable_apps",
|
|
21476
|
+
disablePayPerCrawl: "disable_pay_per_crawl",
|
|
21477
|
+
disableRum: "disable_rum",
|
|
21478
|
+
disableZaraz: "disable_zaraz",
|
|
21479
|
+
emailObfuscation: "email_obfuscation",
|
|
21480
|
+
fonts: "fonts",
|
|
21481
|
+
hotlinkProtection: "hotlink_protection",
|
|
21482
|
+
mirage: "mirage",
|
|
21483
|
+
opportunisticEncryption: "opportunistic_encryption",
|
|
21484
|
+
polish: "polish",
|
|
21485
|
+
redirectsForAiTraining: "redirects_for_ai_training",
|
|
21486
|
+
requestBodyBuffering: "request_body_buffering",
|
|
21487
|
+
responseBodyBuffering: "response_body_buffering",
|
|
21488
|
+
rocketLoader: "rocket_loader",
|
|
21489
|
+
securityLevel: "security_level",
|
|
21490
|
+
serverSideExcludes: "server_side_excludes",
|
|
21491
|
+
ssl: "ssl",
|
|
21492
|
+
sxg: "sxg",
|
|
21493
|
+
}),
|
|
21494
|
+
),
|
|
21495
|
+
Schema.Null,
|
|
21496
|
+
]),
|
|
21497
|
+
),
|
|
21498
|
+
categories: Schema.optional(
|
|
21499
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
21500
|
+
),
|
|
21501
|
+
description: Schema.optional(
|
|
21502
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
21503
|
+
),
|
|
21504
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
21505
|
+
exposedCredentialCheck: Schema.optional(
|
|
21506
|
+
Schema.Union([
|
|
21507
|
+
Schema.Struct({
|
|
21508
|
+
passwordExpression: SensitiveString,
|
|
21509
|
+
usernameExpression: Schema.String,
|
|
21510
|
+
}).pipe(
|
|
21511
|
+
Schema.encodeKeys({
|
|
21512
|
+
passwordExpression: "password_expression",
|
|
21513
|
+
usernameExpression: "username_expression",
|
|
21514
|
+
}),
|
|
21515
|
+
),
|
|
21516
|
+
Schema.Null,
|
|
21517
|
+
]),
|
|
21518
|
+
),
|
|
21519
|
+
expression: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
21520
|
+
logging: Schema.optional(
|
|
21521
|
+
Schema.Union([
|
|
21522
|
+
Schema.Struct({
|
|
21523
|
+
enabled: Schema.Boolean,
|
|
21524
|
+
}),
|
|
21525
|
+
Schema.Null,
|
|
21526
|
+
]),
|
|
21527
|
+
),
|
|
21528
|
+
ratelimit: Schema.optional(
|
|
21529
|
+
Schema.Union([
|
|
21530
|
+
Schema.Struct({
|
|
21531
|
+
characteristics: Schema.Array(Schema.String),
|
|
21532
|
+
period: Schema.Number,
|
|
21533
|
+
countingExpression: Schema.optional(
|
|
21534
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
19918
21535
|
),
|
|
19919
|
-
|
|
19920
|
-
Schema.Union([Schema.
|
|
21536
|
+
mitigationTimeout: Schema.optional(
|
|
21537
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
19921
21538
|
),
|
|
19922
|
-
|
|
21539
|
+
requestsPerPeriod: Schema.optional(
|
|
19923
21540
|
Schema.Union([Schema.Number, Schema.Null]),
|
|
19924
21541
|
),
|
|
19925
|
-
|
|
21542
|
+
requestsToOrigin: Schema.optional(
|
|
19926
21543
|
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
19927
21544
|
),
|
|
19928
|
-
|
|
21545
|
+
scorePerPeriod: Schema.optional(
|
|
21546
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
21547
|
+
),
|
|
21548
|
+
scoreResponseHeaderName: Schema.optional(
|
|
21549
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
21550
|
+
),
|
|
21551
|
+
}).pipe(
|
|
21552
|
+
Schema.encodeKeys({
|
|
21553
|
+
characteristics: "characteristics",
|
|
21554
|
+
period: "period",
|
|
21555
|
+
countingExpression: "counting_expression",
|
|
21556
|
+
mitigationTimeout: "mitigation_timeout",
|
|
21557
|
+
requestsPerPeriod: "requests_per_period",
|
|
21558
|
+
requestsToOrigin: "requests_to_origin",
|
|
21559
|
+
scorePerPeriod: "score_per_period",
|
|
21560
|
+
scoreResponseHeaderName: "score_response_header_name",
|
|
21561
|
+
}),
|
|
21562
|
+
),
|
|
21563
|
+
Schema.Null,
|
|
21564
|
+
]),
|
|
21565
|
+
),
|
|
21566
|
+
ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
21567
|
+
}).pipe(
|
|
21568
|
+
Schema.encodeKeys({
|
|
21569
|
+
lastUpdated: "last_updated",
|
|
21570
|
+
version: "version",
|
|
21571
|
+
id: "id",
|
|
21572
|
+
action: "action",
|
|
21573
|
+
actionParameters: "action_parameters",
|
|
21574
|
+
categories: "categories",
|
|
21575
|
+
description: "description",
|
|
21576
|
+
enabled: "enabled",
|
|
21577
|
+
exposedCredentialCheck: "exposed_credential_check",
|
|
21578
|
+
expression: "expression",
|
|
21579
|
+
logging: "logging",
|
|
21580
|
+
ratelimit: "ratelimit",
|
|
21581
|
+
ref: "ref",
|
|
21582
|
+
}),
|
|
21583
|
+
),
|
|
21584
|
+
Schema.Struct({
|
|
21585
|
+
lastUpdated: Schema.String,
|
|
21586
|
+
version: Schema.String,
|
|
21587
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
21588
|
+
action: Schema.optional(
|
|
21589
|
+
Schema.Union([Schema.Literal("skip"), Schema.Null]),
|
|
21590
|
+
),
|
|
21591
|
+
actionParameters: Schema.optional(
|
|
21592
|
+
Schema.Union([
|
|
21593
|
+
Schema.Struct({
|
|
21594
|
+
phase: Schema.optional(
|
|
21595
|
+
Schema.Union([Schema.Literal("current"), Schema.Null]),
|
|
21596
|
+
),
|
|
21597
|
+
phases: Schema.optional(
|
|
19929
21598
|
Schema.Union([
|
|
19930
|
-
Schema.
|
|
19931
|
-
|
|
19932
|
-
Schema.
|
|
19933
|
-
|
|
19934
|
-
|
|
19935
|
-
|
|
19936
|
-
|
|
19937
|
-
|
|
21599
|
+
Schema.Array(
|
|
21600
|
+
Schema.Union([
|
|
21601
|
+
Schema.Literals([
|
|
21602
|
+
"ddos_l4",
|
|
21603
|
+
"ddos_l7",
|
|
21604
|
+
"http_config_settings",
|
|
21605
|
+
"http_custom_errors",
|
|
21606
|
+
"http_log_custom_fields",
|
|
21607
|
+
"http_ratelimit",
|
|
21608
|
+
"http_request_cache_settings",
|
|
21609
|
+
"http_request_dynamic_redirect",
|
|
21610
|
+
"http_request_firewall_custom",
|
|
21611
|
+
"http_request_firewall_managed",
|
|
21612
|
+
"http_request_late_transform",
|
|
21613
|
+
"http_request_origin",
|
|
21614
|
+
"http_request_redirect",
|
|
21615
|
+
"http_request_sanitize",
|
|
21616
|
+
"http_request_sbfm",
|
|
21617
|
+
"http_request_transform",
|
|
21618
|
+
"http_response_cache_settings",
|
|
21619
|
+
"http_response_compression",
|
|
21620
|
+
"http_response_firewall_managed",
|
|
21621
|
+
"http_response_headers_transform",
|
|
21622
|
+
"magic_transit",
|
|
21623
|
+
"magic_transit_ids_managed",
|
|
21624
|
+
"magic_transit_managed",
|
|
21625
|
+
"magic_transit_ratelimit",
|
|
21626
|
+
]),
|
|
21627
|
+
Schema.String,
|
|
21628
|
+
]),
|
|
19938
21629
|
),
|
|
19939
21630
|
Schema.Null,
|
|
19940
21631
|
]),
|
|
19941
21632
|
),
|
|
19942
|
-
|
|
21633
|
+
products: Schema.optional(
|
|
19943
21634
|
Schema.Union([
|
|
19944
|
-
Schema.
|
|
19945
|
-
|
|
19946
|
-
|
|
21635
|
+
Schema.Array(
|
|
21636
|
+
Schema.Union([
|
|
21637
|
+
Schema.Literals([
|
|
21638
|
+
"bic",
|
|
21639
|
+
"hot",
|
|
21640
|
+
"rateLimit",
|
|
21641
|
+
"securityLevel",
|
|
21642
|
+
"uaBlock",
|
|
21643
|
+
"waf",
|
|
21644
|
+
"zoneLockdown",
|
|
21645
|
+
]),
|
|
21646
|
+
Schema.String,
|
|
21647
|
+
]),
|
|
21648
|
+
),
|
|
19947
21649
|
Schema.Null,
|
|
19948
21650
|
]),
|
|
19949
21651
|
),
|
|
19950
|
-
|
|
19951
|
-
Schema.Union([
|
|
21652
|
+
rules: Schema.optional(
|
|
21653
|
+
Schema.Union([
|
|
21654
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
21655
|
+
Schema.Null,
|
|
21656
|
+
]),
|
|
19952
21657
|
),
|
|
19953
|
-
|
|
19954
|
-
Schema.Union([Schema.
|
|
21658
|
+
ruleset: Schema.optional(
|
|
21659
|
+
Schema.Union([Schema.Literal("current"), Schema.Null]),
|
|
19955
21660
|
),
|
|
19956
|
-
|
|
19957
|
-
Schema.Union([Schema.
|
|
21661
|
+
rulesets: Schema.optional(
|
|
21662
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
19958
21663
|
),
|
|
19959
|
-
})
|
|
19960
|
-
Schema.encodeKeys({
|
|
19961
|
-
additionalCacheablePorts: "additional_cacheable_ports",
|
|
19962
|
-
browserTtl: "browser_ttl",
|
|
19963
|
-
cache: "cache",
|
|
19964
|
-
cacheKey: "cache_key",
|
|
19965
|
-
cacheReserve: "cache_reserve",
|
|
19966
|
-
edgeTtl: "edge_ttl",
|
|
19967
|
-
originCacheControl: "origin_cache_control",
|
|
19968
|
-
originErrorPagePassthru: "origin_error_page_passthru",
|
|
19969
|
-
readTimeout: "read_timeout",
|
|
19970
|
-
respectStrongEtags: "respect_strong_etags",
|
|
19971
|
-
serveStale: "serve_stale",
|
|
19972
|
-
sharedDictionary: "shared_dictionary",
|
|
19973
|
-
stripEtags: "strip_etags",
|
|
19974
|
-
stripLastModified: "strip_last_modified",
|
|
19975
|
-
stripSetCookie: "strip_set_cookie",
|
|
19976
|
-
}),
|
|
19977
|
-
),
|
|
21664
|
+
}),
|
|
19978
21665
|
Schema.Null,
|
|
19979
21666
|
]),
|
|
19980
21667
|
),
|
|
@@ -20064,599 +21751,925 @@ export const CreateRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
20064
21751
|
ref: "ref",
|
|
20065
21752
|
}),
|
|
20066
21753
|
),
|
|
21754
|
+
]),
|
|
21755
|
+
),
|
|
21756
|
+
version: Schema.String,
|
|
21757
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
21758
|
+
})
|
|
21759
|
+
.pipe(
|
|
21760
|
+
Schema.encodeKeys({
|
|
21761
|
+
id: "id",
|
|
21762
|
+
kind: "kind",
|
|
21763
|
+
lastUpdated: "last_updated",
|
|
21764
|
+
name: "name",
|
|
21765
|
+
phase: "phase",
|
|
21766
|
+
rules: "rules",
|
|
21767
|
+
version: "version",
|
|
21768
|
+
description: "description",
|
|
21769
|
+
}),
|
|
21770
|
+
)
|
|
21771
|
+
.pipe(
|
|
21772
|
+
T.ResponsePath("result"),
|
|
21773
|
+
) as unknown as Schema.Schema<CreateRuleResponse>;
|
|
21774
|
+
|
|
21775
|
+
export type CreateRuleError = DefaultErrors;
|
|
21776
|
+
|
|
21777
|
+
export const createRuleForAccount: API.OperationMethod<
|
|
21778
|
+
CreateRuleForAccountRequest,
|
|
21779
|
+
CreateRuleResponse,
|
|
21780
|
+
CreateRuleError,
|
|
21781
|
+
Credentials | HttpClient.HttpClient
|
|
21782
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
21783
|
+
input: CreateRuleForAccountRequest,
|
|
21784
|
+
output: CreateRuleResponse,
|
|
21785
|
+
errors: [],
|
|
21786
|
+
}));
|
|
21787
|
+
|
|
21788
|
+
export const createRuleForZone: API.OperationMethod<
|
|
21789
|
+
CreateRuleForZoneRequest,
|
|
21790
|
+
CreateRuleResponse,
|
|
21791
|
+
CreateRuleError,
|
|
21792
|
+
Credentials | HttpClient.HttpClient
|
|
21793
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
21794
|
+
input: CreateRuleForZoneRequest,
|
|
21795
|
+
output: CreateRuleResponse,
|
|
21796
|
+
errors: [],
|
|
21797
|
+
}));
|
|
21798
|
+
|
|
21799
|
+
const PatchRuleBaseFields = {
|
|
21800
|
+
rulesetId: Schema.String.pipe(T.HttpPath("rulesetId")),
|
|
21801
|
+
ruleId: Schema.String.pipe(T.HttpPath("ruleId")),
|
|
21802
|
+
id: Schema.optional(Schema.String),
|
|
21803
|
+
action: Schema.optional(
|
|
21804
|
+
Schema.Union([
|
|
21805
|
+
Schema.Literals([
|
|
21806
|
+
"block",
|
|
21807
|
+
"challenge",
|
|
21808
|
+
"compress_response",
|
|
21809
|
+
"ddos_dynamic",
|
|
21810
|
+
"execute",
|
|
21811
|
+
"force_connection_close",
|
|
21812
|
+
"js_challenge",
|
|
21813
|
+
"log",
|
|
21814
|
+
"log_custom_field",
|
|
21815
|
+
"managed_challenge",
|
|
21816
|
+
"redirect",
|
|
21817
|
+
"rewrite",
|
|
21818
|
+
"route",
|
|
21819
|
+
"score",
|
|
21820
|
+
"serve_error",
|
|
21821
|
+
"set_cache_control",
|
|
21822
|
+
"set_cache_settings",
|
|
21823
|
+
"set_cache_tags",
|
|
21824
|
+
"set_config",
|
|
21825
|
+
"skip",
|
|
21826
|
+
]),
|
|
21827
|
+
Schema.String,
|
|
21828
|
+
]),
|
|
21829
|
+
),
|
|
21830
|
+
actionParameters: Schema.optional(
|
|
21831
|
+
Schema.Union([
|
|
20067
21832
|
Schema.Struct({
|
|
20068
|
-
|
|
20069
|
-
|
|
20070
|
-
|
|
20071
|
-
|
|
20072
|
-
|
|
21833
|
+
operation: Schema.Union([
|
|
21834
|
+
Schema.Literals(["add", "remove", "set"]),
|
|
21835
|
+
Schema.String,
|
|
21836
|
+
]),
|
|
21837
|
+
values: Schema.Array(Schema.String),
|
|
21838
|
+
}),
|
|
21839
|
+
Schema.Struct({
|
|
21840
|
+
expression: Schema.String,
|
|
21841
|
+
operation: Schema.Union([
|
|
21842
|
+
Schema.Literals(["add", "remove", "set"]),
|
|
21843
|
+
Schema.String,
|
|
21844
|
+
]),
|
|
21845
|
+
}),
|
|
21846
|
+
Schema.Struct({
|
|
21847
|
+
algorithms: Schema.Array(
|
|
21848
|
+
Schema.Struct({
|
|
21849
|
+
name: Schema.optional(
|
|
21850
|
+
Schema.Union([
|
|
21851
|
+
Schema.Literals([
|
|
21852
|
+
"none",
|
|
21853
|
+
"auto",
|
|
21854
|
+
"default",
|
|
21855
|
+
"gzip",
|
|
21856
|
+
"brotli",
|
|
21857
|
+
"zstd",
|
|
21858
|
+
]),
|
|
21859
|
+
Schema.String,
|
|
21860
|
+
]),
|
|
21861
|
+
),
|
|
21862
|
+
}),
|
|
20073
21863
|
),
|
|
20074
|
-
|
|
20075
|
-
|
|
20076
|
-
|
|
20077
|
-
|
|
20078
|
-
|
|
20079
|
-
|
|
20080
|
-
|
|
20081
|
-
|
|
20082
|
-
|
|
20083
|
-
|
|
20084
|
-
|
|
20085
|
-
|
|
20086
|
-
|
|
20087
|
-
|
|
20088
|
-
Schema.String,
|
|
20089
|
-
|
|
20090
|
-
|
|
21864
|
+
}),
|
|
21865
|
+
Schema.Struct({
|
|
21866
|
+
id: Schema.String,
|
|
21867
|
+
matchedData: Schema.optional(
|
|
21868
|
+
Schema.Struct({
|
|
21869
|
+
publicKey: Schema.String,
|
|
21870
|
+
}).pipe(Schema.encodeKeys({ publicKey: "public_key" })),
|
|
21871
|
+
),
|
|
21872
|
+
overrides: Schema.optional(
|
|
21873
|
+
Schema.Struct({
|
|
21874
|
+
action: Schema.optional(Schema.String),
|
|
21875
|
+
categories: Schema.optional(
|
|
21876
|
+
Schema.Array(
|
|
21877
|
+
Schema.Struct({
|
|
21878
|
+
category: Schema.String,
|
|
21879
|
+
action: Schema.optional(Schema.String),
|
|
21880
|
+
enabled: Schema.optional(Schema.Boolean),
|
|
21881
|
+
sensitivityLevel: Schema.optional(
|
|
21882
|
+
Schema.Union([
|
|
21883
|
+
Schema.Literals(["default", "medium", "low", "eoff"]),
|
|
21884
|
+
Schema.String,
|
|
21885
|
+
]),
|
|
21886
|
+
),
|
|
21887
|
+
}).pipe(
|
|
21888
|
+
Schema.encodeKeys({
|
|
21889
|
+
category: "category",
|
|
21890
|
+
action: "action",
|
|
21891
|
+
enabled: "enabled",
|
|
21892
|
+
sensitivityLevel: "sensitivity_level",
|
|
21893
|
+
}),
|
|
21894
|
+
),
|
|
21895
|
+
),
|
|
21896
|
+
),
|
|
21897
|
+
enabled: Schema.optional(Schema.Boolean),
|
|
21898
|
+
rules: Schema.optional(
|
|
21899
|
+
Schema.Array(
|
|
21900
|
+
Schema.Struct({
|
|
21901
|
+
id: Schema.String,
|
|
21902
|
+
action: Schema.optional(Schema.String),
|
|
21903
|
+
enabled: Schema.optional(Schema.Boolean),
|
|
21904
|
+
scoreThreshold: Schema.optional(Schema.Number),
|
|
21905
|
+
sensitivityLevel: Schema.optional(
|
|
21906
|
+
Schema.Union([
|
|
21907
|
+
Schema.Literals(["default", "medium", "low", "eoff"]),
|
|
21908
|
+
Schema.String,
|
|
21909
|
+
]),
|
|
21910
|
+
),
|
|
21911
|
+
}).pipe(
|
|
21912
|
+
Schema.encodeKeys({
|
|
21913
|
+
id: "id",
|
|
21914
|
+
action: "action",
|
|
21915
|
+
enabled: "enabled",
|
|
21916
|
+
scoreThreshold: "score_threshold",
|
|
21917
|
+
sensitivityLevel: "sensitivity_level",
|
|
21918
|
+
}),
|
|
21919
|
+
),
|
|
21920
|
+
),
|
|
21921
|
+
),
|
|
21922
|
+
sensitivityLevel: Schema.optional(
|
|
21923
|
+
Schema.Union([
|
|
21924
|
+
Schema.Literals(["default", "medium", "low", "eoff"]),
|
|
21925
|
+
Schema.String,
|
|
21926
|
+
]),
|
|
21927
|
+
),
|
|
21928
|
+
}).pipe(
|
|
21929
|
+
Schema.encodeKeys({
|
|
21930
|
+
action: "action",
|
|
21931
|
+
categories: "categories",
|
|
21932
|
+
enabled: "enabled",
|
|
21933
|
+
rules: "rules",
|
|
21934
|
+
sensitivityLevel: "sensitivity_level",
|
|
21935
|
+
}),
|
|
21936
|
+
),
|
|
21937
|
+
),
|
|
21938
|
+
}).pipe(
|
|
21939
|
+
Schema.encodeKeys({
|
|
21940
|
+
id: "id",
|
|
21941
|
+
matchedData: "matched_data",
|
|
21942
|
+
overrides: "overrides",
|
|
21943
|
+
}),
|
|
21944
|
+
),
|
|
21945
|
+
Schema.Struct({
|
|
21946
|
+
increment: Schema.Number,
|
|
21947
|
+
}),
|
|
21948
|
+
Schema.Struct({
|
|
21949
|
+
content: Schema.String,
|
|
21950
|
+
contentType: Schema.optional(
|
|
21951
|
+
Schema.Union([
|
|
21952
|
+
Schema.Literals([
|
|
21953
|
+
"application/json",
|
|
21954
|
+
"text/html",
|
|
21955
|
+
"text/plain",
|
|
21956
|
+
"text/xml",
|
|
20091
21957
|
]),
|
|
20092
|
-
Schema.
|
|
21958
|
+
Schema.String,
|
|
20093
21959
|
]),
|
|
20094
21960
|
),
|
|
20095
|
-
|
|
20096
|
-
|
|
21961
|
+
statusCode: Schema.optional(Schema.Number),
|
|
21962
|
+
}).pipe(
|
|
21963
|
+
Schema.encodeKeys({
|
|
21964
|
+
content: "content",
|
|
21965
|
+
contentType: "content_type",
|
|
21966
|
+
statusCode: "status_code",
|
|
21967
|
+
}),
|
|
21968
|
+
),
|
|
21969
|
+
Schema.Struct({
|
|
21970
|
+
assetName: Schema.String,
|
|
21971
|
+
contentType: Schema.optional(
|
|
21972
|
+
Schema.Union([
|
|
21973
|
+
Schema.Literals([
|
|
21974
|
+
"application/json",
|
|
21975
|
+
"text/html",
|
|
21976
|
+
"text/plain",
|
|
21977
|
+
"text/xml",
|
|
21978
|
+
]),
|
|
21979
|
+
Schema.String,
|
|
21980
|
+
]),
|
|
20097
21981
|
),
|
|
20098
|
-
|
|
20099
|
-
|
|
21982
|
+
statusCode: Schema.optional(Schema.Number),
|
|
21983
|
+
}).pipe(
|
|
21984
|
+
Schema.encodeKeys({
|
|
21985
|
+
assetName: "asset_name",
|
|
21986
|
+
contentType: "content_type",
|
|
21987
|
+
statusCode: "status_code",
|
|
21988
|
+
}),
|
|
21989
|
+
),
|
|
21990
|
+
Schema.Struct({
|
|
21991
|
+
response: Schema.optional(
|
|
21992
|
+
Schema.Struct({
|
|
21993
|
+
content: Schema.String,
|
|
21994
|
+
contentType: Schema.String,
|
|
21995
|
+
statusCode: Schema.Number,
|
|
21996
|
+
}).pipe(
|
|
21997
|
+
Schema.encodeKeys({
|
|
21998
|
+
content: "content",
|
|
21999
|
+
contentType: "content_type",
|
|
22000
|
+
statusCode: "status_code",
|
|
22001
|
+
}),
|
|
22002
|
+
),
|
|
20100
22003
|
),
|
|
20101
|
-
|
|
20102
|
-
|
|
20103
|
-
|
|
22004
|
+
}),
|
|
22005
|
+
Schema.Struct({
|
|
22006
|
+
cookieFields: Schema.optional(
|
|
22007
|
+
Schema.Array(
|
|
20104
22008
|
Schema.Struct({
|
|
20105
|
-
|
|
20106
|
-
|
|
22009
|
+
name: Schema.String,
|
|
22010
|
+
}),
|
|
22011
|
+
),
|
|
22012
|
+
),
|
|
22013
|
+
rawResponseFields: Schema.optional(
|
|
22014
|
+
Schema.Array(
|
|
22015
|
+
Schema.Struct({
|
|
22016
|
+
name: Schema.String,
|
|
22017
|
+
preserveDuplicates: Schema.optional(Schema.Boolean),
|
|
20107
22018
|
}).pipe(
|
|
20108
22019
|
Schema.encodeKeys({
|
|
20109
|
-
|
|
20110
|
-
|
|
22020
|
+
name: "name",
|
|
22021
|
+
preserveDuplicates: "preserve_duplicates",
|
|
20111
22022
|
}),
|
|
20112
22023
|
),
|
|
20113
|
-
|
|
20114
|
-
|
|
20115
|
-
|
|
20116
|
-
|
|
20117
|
-
|
|
20118
|
-
|
|
20119
|
-
|
|
20120
|
-
|
|
20121
|
-
|
|
20122
|
-
|
|
20123
|
-
|
|
20124
|
-
|
|
20125
|
-
|
|
20126
|
-
|
|
20127
|
-
Schema.Struct({
|
|
20128
|
-
characteristics: Schema.Array(Schema.String),
|
|
20129
|
-
period: Schema.Number,
|
|
20130
|
-
countingExpression: Schema.optional(
|
|
20131
|
-
Schema.Union([Schema.String, Schema.Null]),
|
|
20132
|
-
),
|
|
20133
|
-
mitigationTimeout: Schema.optional(
|
|
20134
|
-
Schema.Union([Schema.Number, Schema.Null]),
|
|
20135
|
-
),
|
|
20136
|
-
requestsPerPeriod: Schema.optional(
|
|
20137
|
-
Schema.Union([Schema.Number, Schema.Null]),
|
|
20138
|
-
),
|
|
20139
|
-
requestsToOrigin: Schema.optional(
|
|
20140
|
-
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
20141
|
-
),
|
|
20142
|
-
scorePerPeriod: Schema.optional(
|
|
20143
|
-
Schema.Union([Schema.Number, Schema.Null]),
|
|
20144
|
-
),
|
|
20145
|
-
scoreResponseHeaderName: Schema.optional(
|
|
20146
|
-
Schema.Union([Schema.String, Schema.Null]),
|
|
20147
|
-
),
|
|
22024
|
+
),
|
|
22025
|
+
),
|
|
22026
|
+
requestFields: Schema.optional(
|
|
22027
|
+
Schema.Array(
|
|
22028
|
+
Schema.Struct({
|
|
22029
|
+
name: Schema.String,
|
|
22030
|
+
}),
|
|
22031
|
+
),
|
|
22032
|
+
),
|
|
22033
|
+
responseFields: Schema.optional(
|
|
22034
|
+
Schema.Array(
|
|
22035
|
+
Schema.Struct({
|
|
22036
|
+
name: Schema.String,
|
|
22037
|
+
preserveDuplicates: Schema.optional(Schema.Boolean),
|
|
20148
22038
|
}).pipe(
|
|
20149
22039
|
Schema.encodeKeys({
|
|
20150
|
-
|
|
20151
|
-
|
|
20152
|
-
countingExpression: "counting_expression",
|
|
20153
|
-
mitigationTimeout: "mitigation_timeout",
|
|
20154
|
-
requestsPerPeriod: "requests_per_period",
|
|
20155
|
-
requestsToOrigin: "requests_to_origin",
|
|
20156
|
-
scorePerPeriod: "score_per_period",
|
|
20157
|
-
scoreResponseHeaderName: "score_response_header_name",
|
|
22040
|
+
name: "name",
|
|
22041
|
+
preserveDuplicates: "preserve_duplicates",
|
|
20158
22042
|
}),
|
|
20159
22043
|
),
|
|
20160
|
-
|
|
20161
|
-
|
|
22044
|
+
),
|
|
22045
|
+
),
|
|
22046
|
+
transformedRequestFields: Schema.optional(
|
|
22047
|
+
Schema.Array(
|
|
22048
|
+
Schema.Struct({
|
|
22049
|
+
name: Schema.String,
|
|
22050
|
+
}),
|
|
22051
|
+
),
|
|
20162
22052
|
),
|
|
20163
|
-
ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
20164
22053
|
}).pipe(
|
|
20165
22054
|
Schema.encodeKeys({
|
|
20166
|
-
|
|
20167
|
-
|
|
20168
|
-
|
|
20169
|
-
|
|
20170
|
-
|
|
20171
|
-
categories: "categories",
|
|
20172
|
-
description: "description",
|
|
20173
|
-
enabled: "enabled",
|
|
20174
|
-
exposedCredentialCheck: "exposed_credential_check",
|
|
20175
|
-
expression: "expression",
|
|
20176
|
-
logging: "logging",
|
|
20177
|
-
ratelimit: "ratelimit",
|
|
20178
|
-
ref: "ref",
|
|
22055
|
+
cookieFields: "cookie_fields",
|
|
22056
|
+
rawResponseFields: "raw_response_fields",
|
|
22057
|
+
requestFields: "request_fields",
|
|
22058
|
+
responseFields: "response_fields",
|
|
22059
|
+
transformedRequestFields: "transformed_request_fields",
|
|
20179
22060
|
}),
|
|
20180
22061
|
),
|
|
20181
22062
|
Schema.Struct({
|
|
20182
|
-
|
|
20183
|
-
|
|
20184
|
-
|
|
20185
|
-
|
|
20186
|
-
|
|
22063
|
+
fromList: Schema.optional(
|
|
22064
|
+
Schema.Struct({
|
|
22065
|
+
key: Schema.String,
|
|
22066
|
+
name: Schema.String,
|
|
22067
|
+
}),
|
|
20187
22068
|
),
|
|
20188
|
-
|
|
22069
|
+
fromValue: Schema.optional(
|
|
22070
|
+
Schema.Struct({
|
|
22071
|
+
targetUrl: Schema.Struct({
|
|
22072
|
+
expression: Schema.optional(Schema.String),
|
|
22073
|
+
value: Schema.optional(Schema.String),
|
|
22074
|
+
}),
|
|
22075
|
+
preserveQueryString: Schema.optional(Schema.Boolean),
|
|
22076
|
+
statusCode: Schema.optional(
|
|
22077
|
+
Schema.Union([
|
|
22078
|
+
Schema.Literals(["301", "302", "303", "307", "308"]),
|
|
22079
|
+
Schema.String,
|
|
22080
|
+
]),
|
|
22081
|
+
),
|
|
22082
|
+
}).pipe(
|
|
22083
|
+
Schema.encodeKeys({
|
|
22084
|
+
targetUrl: "target_url",
|
|
22085
|
+
preserveQueryString: "preserve_query_string",
|
|
22086
|
+
statusCode: "status_code",
|
|
22087
|
+
}),
|
|
22088
|
+
),
|
|
22089
|
+
),
|
|
22090
|
+
}).pipe(
|
|
22091
|
+
Schema.encodeKeys({ fromList: "from_list", fromValue: "from_value" }),
|
|
22092
|
+
),
|
|
22093
|
+
Schema.Struct({
|
|
22094
|
+
headers: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
|
|
22095
|
+
uri: Schema.optional(
|
|
20189
22096
|
Schema.Union([
|
|
20190
22097
|
Schema.Struct({
|
|
20191
|
-
|
|
20192
|
-
Schema.
|
|
20193
|
-
|
|
20194
|
-
autominify: Schema.optional(
|
|
20195
|
-
Schema.Union([
|
|
20196
|
-
Schema.Struct({
|
|
20197
|
-
css: Schema.optional(
|
|
20198
|
-
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
20199
|
-
),
|
|
20200
|
-
html: Schema.optional(
|
|
20201
|
-
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
20202
|
-
),
|
|
20203
|
-
js: Schema.optional(
|
|
20204
|
-
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
20205
|
-
),
|
|
20206
|
-
}),
|
|
20207
|
-
Schema.Null,
|
|
20208
|
-
]),
|
|
20209
|
-
),
|
|
20210
|
-
bic: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
20211
|
-
contentConverter: Schema.optional(
|
|
20212
|
-
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
20213
|
-
),
|
|
20214
|
-
disableApps: Schema.optional(
|
|
20215
|
-
Schema.Union([Schema.Literal(true), Schema.Null]),
|
|
20216
|
-
),
|
|
20217
|
-
disablePayPerCrawl: Schema.optional(
|
|
20218
|
-
Schema.Union([Schema.Literal(true), Schema.Null]),
|
|
20219
|
-
),
|
|
20220
|
-
disableRum: Schema.optional(
|
|
20221
|
-
Schema.Union([Schema.Literal(true), Schema.Null]),
|
|
20222
|
-
),
|
|
20223
|
-
disableZaraz: Schema.optional(
|
|
20224
|
-
Schema.Union([Schema.Literal(true), Schema.Null]),
|
|
20225
|
-
),
|
|
20226
|
-
emailObfuscation: Schema.optional(
|
|
20227
|
-
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
20228
|
-
),
|
|
20229
|
-
fonts: Schema.optional(
|
|
20230
|
-
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
20231
|
-
),
|
|
20232
|
-
hotlinkProtection: Schema.optional(
|
|
20233
|
-
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
20234
|
-
),
|
|
20235
|
-
mirage: Schema.optional(
|
|
20236
|
-
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
20237
|
-
),
|
|
20238
|
-
opportunisticEncryption: Schema.optional(
|
|
20239
|
-
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
20240
|
-
),
|
|
20241
|
-
polish: Schema.optional(
|
|
20242
|
-
Schema.Union([
|
|
20243
|
-
Schema.Union([
|
|
20244
|
-
Schema.Literals(["off", "lossless", "lossy", "webp"]),
|
|
20245
|
-
Schema.String,
|
|
20246
|
-
]),
|
|
20247
|
-
Schema.Null,
|
|
20248
|
-
]),
|
|
20249
|
-
),
|
|
20250
|
-
redirectsForAiTraining: Schema.optional(
|
|
20251
|
-
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
20252
|
-
),
|
|
20253
|
-
requestBodyBuffering: Schema.optional(
|
|
20254
|
-
Schema.Union([
|
|
20255
|
-
Schema.Union([
|
|
20256
|
-
Schema.Literals(["none", "standard", "full"]),
|
|
20257
|
-
Schema.String,
|
|
20258
|
-
]),
|
|
20259
|
-
Schema.Null,
|
|
20260
|
-
]),
|
|
20261
|
-
),
|
|
20262
|
-
responseBodyBuffering: Schema.optional(
|
|
20263
|
-
Schema.Union([
|
|
20264
|
-
Schema.Union([
|
|
20265
|
-
Schema.Literals(["none", "standard"]),
|
|
20266
|
-
Schema.String,
|
|
20267
|
-
]),
|
|
20268
|
-
Schema.Null,
|
|
20269
|
-
]),
|
|
20270
|
-
),
|
|
20271
|
-
rocketLoader: Schema.optional(
|
|
20272
|
-
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
20273
|
-
),
|
|
20274
|
-
securityLevel: Schema.optional(
|
|
20275
|
-
Schema.Union([
|
|
20276
|
-
Schema.Union([
|
|
20277
|
-
Schema.Literals([
|
|
20278
|
-
"off",
|
|
20279
|
-
"essentially_off",
|
|
20280
|
-
"low",
|
|
20281
|
-
"medium",
|
|
20282
|
-
"high",
|
|
20283
|
-
"under_attack",
|
|
20284
|
-
]),
|
|
20285
|
-
Schema.String,
|
|
20286
|
-
]),
|
|
20287
|
-
Schema.Null,
|
|
20288
|
-
]),
|
|
20289
|
-
),
|
|
20290
|
-
serverSideExcludes: Schema.optional(
|
|
20291
|
-
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
20292
|
-
),
|
|
20293
|
-
ssl: Schema.optional(
|
|
20294
|
-
Schema.Union([
|
|
20295
|
-
Schema.Union([
|
|
20296
|
-
Schema.Literals([
|
|
20297
|
-
"off",
|
|
20298
|
-
"flexible",
|
|
20299
|
-
"full",
|
|
20300
|
-
"strict",
|
|
20301
|
-
"origin_pull",
|
|
20302
|
-
]),
|
|
20303
|
-
Schema.String,
|
|
20304
|
-
]),
|
|
20305
|
-
Schema.Null,
|
|
20306
|
-
]),
|
|
20307
|
-
),
|
|
20308
|
-
sxg: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
20309
|
-
}).pipe(
|
|
20310
|
-
Schema.encodeKeys({
|
|
20311
|
-
automaticHttpsRewrites: "automatic_https_rewrites",
|
|
20312
|
-
autominify: "autominify",
|
|
20313
|
-
bic: "bic",
|
|
20314
|
-
contentConverter: "content_converter",
|
|
20315
|
-
disableApps: "disable_apps",
|
|
20316
|
-
disablePayPerCrawl: "disable_pay_per_crawl",
|
|
20317
|
-
disableRum: "disable_rum",
|
|
20318
|
-
disableZaraz: "disable_zaraz",
|
|
20319
|
-
emailObfuscation: "email_obfuscation",
|
|
20320
|
-
fonts: "fonts",
|
|
20321
|
-
hotlinkProtection: "hotlink_protection",
|
|
20322
|
-
mirage: "mirage",
|
|
20323
|
-
opportunisticEncryption: "opportunistic_encryption",
|
|
20324
|
-
polish: "polish",
|
|
20325
|
-
redirectsForAiTraining: "redirects_for_ai_training",
|
|
20326
|
-
requestBodyBuffering: "request_body_buffering",
|
|
20327
|
-
responseBodyBuffering: "response_body_buffering",
|
|
20328
|
-
rocketLoader: "rocket_loader",
|
|
20329
|
-
securityLevel: "security_level",
|
|
20330
|
-
serverSideExcludes: "server_side_excludes",
|
|
20331
|
-
ssl: "ssl",
|
|
20332
|
-
sxg: "sxg",
|
|
22098
|
+
path: Schema.Struct({
|
|
22099
|
+
expression: Schema.optional(Schema.String),
|
|
22100
|
+
value: Schema.optional(Schema.String),
|
|
20333
22101
|
}),
|
|
20334
|
-
),
|
|
20335
|
-
Schema.
|
|
22102
|
+
}),
|
|
22103
|
+
Schema.Struct({
|
|
22104
|
+
query: Schema.Struct({
|
|
22105
|
+
expression: Schema.optional(Schema.String),
|
|
22106
|
+
value: Schema.optional(Schema.String),
|
|
22107
|
+
}),
|
|
22108
|
+
}),
|
|
20336
22109
|
]),
|
|
20337
22110
|
),
|
|
20338
|
-
|
|
20339
|
-
|
|
22111
|
+
}),
|
|
22112
|
+
Schema.Struct({
|
|
22113
|
+
hostHeader: Schema.optional(Schema.String),
|
|
22114
|
+
origin: Schema.optional(
|
|
22115
|
+
Schema.Struct({
|
|
22116
|
+
host: Schema.optional(Schema.String),
|
|
22117
|
+
port: Schema.optional(Schema.Number),
|
|
22118
|
+
}),
|
|
22119
|
+
),
|
|
22120
|
+
sni: Schema.optional(
|
|
22121
|
+
Schema.Struct({
|
|
22122
|
+
value: Schema.String,
|
|
22123
|
+
}),
|
|
22124
|
+
),
|
|
22125
|
+
}).pipe(
|
|
22126
|
+
Schema.encodeKeys({
|
|
22127
|
+
hostHeader: "host_header",
|
|
22128
|
+
origin: "origin",
|
|
22129
|
+
sni: "sni",
|
|
22130
|
+
}),
|
|
22131
|
+
),
|
|
22132
|
+
Schema.Struct({
|
|
22133
|
+
immutable: Schema.optional(
|
|
22134
|
+
Schema.Struct({
|
|
22135
|
+
operation: Schema.Union([
|
|
22136
|
+
Schema.Literals(["set", "remove"]),
|
|
22137
|
+
Schema.String,
|
|
22138
|
+
]),
|
|
22139
|
+
cloudflareOnly: Schema.optional(Schema.Boolean),
|
|
22140
|
+
}).pipe(
|
|
22141
|
+
Schema.encodeKeys({
|
|
22142
|
+
operation: "operation",
|
|
22143
|
+
cloudflareOnly: "cloudflare_only",
|
|
22144
|
+
}),
|
|
22145
|
+
),
|
|
22146
|
+
),
|
|
22147
|
+
maxAge: Schema.optional(
|
|
22148
|
+
Schema.Struct({
|
|
22149
|
+
operation: Schema.Union([
|
|
22150
|
+
Schema.Literals(["set", "remove"]),
|
|
22151
|
+
Schema.String,
|
|
22152
|
+
]),
|
|
22153
|
+
cloudflareOnly: Schema.optional(Schema.Boolean),
|
|
22154
|
+
}).pipe(
|
|
22155
|
+
Schema.encodeKeys({
|
|
22156
|
+
operation: "operation",
|
|
22157
|
+
cloudflareOnly: "cloudflare_only",
|
|
22158
|
+
}),
|
|
22159
|
+
),
|
|
22160
|
+
),
|
|
22161
|
+
mustRevalidate: Schema.optional(
|
|
22162
|
+
Schema.Struct({
|
|
22163
|
+
operation: Schema.Union([
|
|
22164
|
+
Schema.Literals(["set", "remove"]),
|
|
22165
|
+
Schema.String,
|
|
22166
|
+
]),
|
|
22167
|
+
cloudflareOnly: Schema.optional(Schema.Boolean),
|
|
22168
|
+
}).pipe(
|
|
22169
|
+
Schema.encodeKeys({
|
|
22170
|
+
operation: "operation",
|
|
22171
|
+
cloudflareOnly: "cloudflare_only",
|
|
22172
|
+
}),
|
|
22173
|
+
),
|
|
22174
|
+
),
|
|
22175
|
+
mustUnderstand: Schema.optional(
|
|
22176
|
+
Schema.Struct({
|
|
22177
|
+
operation: Schema.Union([
|
|
22178
|
+
Schema.Literals(["set", "remove"]),
|
|
22179
|
+
Schema.String,
|
|
22180
|
+
]),
|
|
22181
|
+
cloudflareOnly: Schema.optional(Schema.Boolean),
|
|
22182
|
+
}).pipe(
|
|
22183
|
+
Schema.encodeKeys({
|
|
22184
|
+
operation: "operation",
|
|
22185
|
+
cloudflareOnly: "cloudflare_only",
|
|
22186
|
+
}),
|
|
22187
|
+
),
|
|
22188
|
+
),
|
|
22189
|
+
noCache: Schema.optional(
|
|
22190
|
+
Schema.Struct({
|
|
22191
|
+
operation: Schema.Union([
|
|
22192
|
+
Schema.Literals(["set", "remove"]),
|
|
22193
|
+
Schema.String,
|
|
22194
|
+
]),
|
|
22195
|
+
cloudflareOnly: Schema.optional(Schema.Boolean),
|
|
22196
|
+
}).pipe(
|
|
22197
|
+
Schema.encodeKeys({
|
|
22198
|
+
operation: "operation",
|
|
22199
|
+
cloudflareOnly: "cloudflare_only",
|
|
22200
|
+
}),
|
|
22201
|
+
),
|
|
22202
|
+
),
|
|
22203
|
+
noStore: Schema.optional(
|
|
22204
|
+
Schema.Struct({
|
|
22205
|
+
operation: Schema.Union([
|
|
22206
|
+
Schema.Literals(["set", "remove"]),
|
|
22207
|
+
Schema.String,
|
|
22208
|
+
]),
|
|
22209
|
+
cloudflareOnly: Schema.optional(Schema.Boolean),
|
|
22210
|
+
}).pipe(
|
|
22211
|
+
Schema.encodeKeys({
|
|
22212
|
+
operation: "operation",
|
|
22213
|
+
cloudflareOnly: "cloudflare_only",
|
|
22214
|
+
}),
|
|
22215
|
+
),
|
|
22216
|
+
),
|
|
22217
|
+
noTransform: Schema.optional(
|
|
22218
|
+
Schema.Struct({
|
|
22219
|
+
operation: Schema.Union([
|
|
22220
|
+
Schema.Literals(["set", "remove"]),
|
|
22221
|
+
Schema.String,
|
|
22222
|
+
]),
|
|
22223
|
+
cloudflareOnly: Schema.optional(Schema.Boolean),
|
|
22224
|
+
}).pipe(
|
|
22225
|
+
Schema.encodeKeys({
|
|
22226
|
+
operation: "operation",
|
|
22227
|
+
cloudflareOnly: "cloudflare_only",
|
|
22228
|
+
}),
|
|
22229
|
+
),
|
|
20340
22230
|
),
|
|
20341
|
-
|
|
20342
|
-
Schema.
|
|
22231
|
+
private: Schema.optional(
|
|
22232
|
+
Schema.Struct({
|
|
22233
|
+
operation: Schema.Union([
|
|
22234
|
+
Schema.Literals(["set", "remove"]),
|
|
22235
|
+
Schema.String,
|
|
22236
|
+
]),
|
|
22237
|
+
cloudflareOnly: Schema.optional(Schema.Boolean),
|
|
22238
|
+
}).pipe(
|
|
22239
|
+
Schema.encodeKeys({
|
|
22240
|
+
operation: "operation",
|
|
22241
|
+
cloudflareOnly: "cloudflare_only",
|
|
22242
|
+
}),
|
|
22243
|
+
),
|
|
20343
22244
|
),
|
|
20344
|
-
|
|
20345
|
-
|
|
20346
|
-
|
|
20347
|
-
|
|
20348
|
-
|
|
20349
|
-
|
|
20350
|
-
|
|
20351
|
-
|
|
20352
|
-
|
|
20353
|
-
|
|
20354
|
-
|
|
20355
|
-
),
|
|
20356
|
-
|
|
20357
|
-
]),
|
|
22245
|
+
proxyRevalidate: Schema.optional(
|
|
22246
|
+
Schema.Struct({
|
|
22247
|
+
operation: Schema.Union([
|
|
22248
|
+
Schema.Literals(["set", "remove"]),
|
|
22249
|
+
Schema.String,
|
|
22250
|
+
]),
|
|
22251
|
+
cloudflareOnly: Schema.optional(Schema.Boolean),
|
|
22252
|
+
}).pipe(
|
|
22253
|
+
Schema.encodeKeys({
|
|
22254
|
+
operation: "operation",
|
|
22255
|
+
cloudflareOnly: "cloudflare_only",
|
|
22256
|
+
}),
|
|
22257
|
+
),
|
|
20358
22258
|
),
|
|
20359
|
-
|
|
20360
|
-
|
|
20361
|
-
|
|
20362
|
-
|
|
20363
|
-
|
|
22259
|
+
public: Schema.optional(
|
|
22260
|
+
Schema.Struct({
|
|
22261
|
+
operation: Schema.Union([
|
|
22262
|
+
Schema.Literals(["set", "remove"]),
|
|
22263
|
+
Schema.String,
|
|
22264
|
+
]),
|
|
22265
|
+
cloudflareOnly: Schema.optional(Schema.Boolean),
|
|
22266
|
+
}).pipe(
|
|
22267
|
+
Schema.encodeKeys({
|
|
22268
|
+
operation: "operation",
|
|
22269
|
+
cloudflareOnly: "cloudflare_only",
|
|
20364
22270
|
}),
|
|
20365
|
-
|
|
20366
|
-
]),
|
|
22271
|
+
),
|
|
20367
22272
|
),
|
|
20368
|
-
|
|
20369
|
-
Schema.
|
|
20370
|
-
Schema.
|
|
20371
|
-
|
|
20372
|
-
|
|
20373
|
-
|
|
20374
|
-
|
|
20375
|
-
|
|
20376
|
-
|
|
20377
|
-
|
|
20378
|
-
|
|
20379
|
-
|
|
20380
|
-
|
|
20381
|
-
|
|
20382
|
-
|
|
20383
|
-
|
|
20384
|
-
|
|
20385
|
-
|
|
20386
|
-
|
|
20387
|
-
|
|
20388
|
-
|
|
20389
|
-
|
|
20390
|
-
|
|
20391
|
-
|
|
20392
|
-
|
|
20393
|
-
|
|
20394
|
-
|
|
20395
|
-
|
|
20396
|
-
|
|
20397
|
-
|
|
20398
|
-
|
|
20399
|
-
|
|
20400
|
-
|
|
20401
|
-
|
|
20402
|
-
),
|
|
20403
|
-
|
|
20404
|
-
|
|
22273
|
+
sMaxage: Schema.optional(
|
|
22274
|
+
Schema.Struct({
|
|
22275
|
+
operation: Schema.Union([
|
|
22276
|
+
Schema.Literals(["set", "remove"]),
|
|
22277
|
+
Schema.String,
|
|
22278
|
+
]),
|
|
22279
|
+
cloudflareOnly: Schema.optional(Schema.Boolean),
|
|
22280
|
+
}).pipe(
|
|
22281
|
+
Schema.encodeKeys({
|
|
22282
|
+
operation: "operation",
|
|
22283
|
+
cloudflareOnly: "cloudflare_only",
|
|
22284
|
+
}),
|
|
22285
|
+
),
|
|
22286
|
+
),
|
|
22287
|
+
staleIfError: Schema.optional(
|
|
22288
|
+
Schema.Struct({
|
|
22289
|
+
operation: Schema.Union([
|
|
22290
|
+
Schema.Literals(["set", "remove"]),
|
|
22291
|
+
Schema.String,
|
|
22292
|
+
]),
|
|
22293
|
+
cloudflareOnly: Schema.optional(Schema.Boolean),
|
|
22294
|
+
}).pipe(
|
|
22295
|
+
Schema.encodeKeys({
|
|
22296
|
+
operation: "operation",
|
|
22297
|
+
cloudflareOnly: "cloudflare_only",
|
|
22298
|
+
}),
|
|
22299
|
+
),
|
|
22300
|
+
),
|
|
22301
|
+
staleWhileRevalidate: Schema.optional(
|
|
22302
|
+
Schema.Struct({
|
|
22303
|
+
operation: Schema.Union([
|
|
22304
|
+
Schema.Literals(["set", "remove"]),
|
|
22305
|
+
Schema.String,
|
|
22306
|
+
]),
|
|
22307
|
+
cloudflareOnly: Schema.optional(Schema.Boolean),
|
|
22308
|
+
}).pipe(
|
|
22309
|
+
Schema.encodeKeys({
|
|
22310
|
+
operation: "operation",
|
|
22311
|
+
cloudflareOnly: "cloudflare_only",
|
|
22312
|
+
}),
|
|
22313
|
+
),
|
|
20405
22314
|
),
|
|
20406
|
-
ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
20407
22315
|
}).pipe(
|
|
20408
22316
|
Schema.encodeKeys({
|
|
20409
|
-
|
|
20410
|
-
|
|
20411
|
-
|
|
20412
|
-
|
|
20413
|
-
|
|
20414
|
-
|
|
20415
|
-
|
|
20416
|
-
|
|
20417
|
-
|
|
20418
|
-
|
|
20419
|
-
|
|
20420
|
-
|
|
20421
|
-
|
|
22317
|
+
immutable: "immutable",
|
|
22318
|
+
maxAge: "max-age",
|
|
22319
|
+
mustRevalidate: "must-revalidate",
|
|
22320
|
+
mustUnderstand: "must-understand",
|
|
22321
|
+
noCache: "no-cache",
|
|
22322
|
+
noStore: "no-store",
|
|
22323
|
+
noTransform: "no-transform",
|
|
22324
|
+
private: "private",
|
|
22325
|
+
proxyRevalidate: "proxy-revalidate",
|
|
22326
|
+
public: "public",
|
|
22327
|
+
sMaxage: "s-maxage",
|
|
22328
|
+
staleIfError: "stale-if-error",
|
|
22329
|
+
staleWhileRevalidate: "stale-while-revalidate",
|
|
20422
22330
|
}),
|
|
20423
22331
|
),
|
|
20424
22332
|
Schema.Struct({
|
|
20425
|
-
|
|
20426
|
-
|
|
20427
|
-
|
|
20428
|
-
|
|
20429
|
-
|
|
22333
|
+
additionalCacheablePorts: Schema.optional(Schema.Array(Schema.Number)),
|
|
22334
|
+
browserTtl: Schema.optional(
|
|
22335
|
+
Schema.Struct({
|
|
22336
|
+
mode: Schema.Union([
|
|
22337
|
+
Schema.Literals([
|
|
22338
|
+
"respect_origin",
|
|
22339
|
+
"bypass_by_default",
|
|
22340
|
+
"override_origin",
|
|
22341
|
+
"bypass",
|
|
22342
|
+
]),
|
|
22343
|
+
Schema.String,
|
|
22344
|
+
]),
|
|
22345
|
+
default: Schema.optional(Schema.Number),
|
|
22346
|
+
}),
|
|
20430
22347
|
),
|
|
20431
|
-
|
|
20432
|
-
|
|
20433
|
-
|
|
20434
|
-
|
|
20435
|
-
|
|
20436
|
-
|
|
20437
|
-
|
|
20438
|
-
Schema.
|
|
20439
|
-
Schema.
|
|
20440
|
-
Schema.
|
|
20441
|
-
|
|
20442
|
-
|
|
20443
|
-
|
|
20444
|
-
|
|
20445
|
-
|
|
20446
|
-
|
|
20447
|
-
"http_ratelimit",
|
|
20448
|
-
"http_request_cache_settings",
|
|
20449
|
-
"http_request_dynamic_redirect",
|
|
20450
|
-
"http_request_firewall_custom",
|
|
20451
|
-
"http_request_firewall_managed",
|
|
20452
|
-
"http_request_late_transform",
|
|
20453
|
-
"http_request_origin",
|
|
20454
|
-
"http_request_redirect",
|
|
20455
|
-
"http_request_sanitize",
|
|
20456
|
-
"http_request_sbfm",
|
|
20457
|
-
"http_request_transform",
|
|
20458
|
-
"http_response_cache_settings",
|
|
20459
|
-
"http_response_compression",
|
|
20460
|
-
"http_response_firewall_managed",
|
|
20461
|
-
"http_response_headers_transform",
|
|
20462
|
-
"magic_transit",
|
|
20463
|
-
"magic_transit_ids_managed",
|
|
20464
|
-
"magic_transit_managed",
|
|
20465
|
-
"magic_transit_ratelimit",
|
|
20466
|
-
]),
|
|
20467
|
-
Schema.String,
|
|
20468
|
-
]),
|
|
22348
|
+
cache: Schema.optional(Schema.Boolean),
|
|
22349
|
+
cacheKey: Schema.optional(
|
|
22350
|
+
Schema.Struct({
|
|
22351
|
+
cacheByDeviceType: Schema.optional(Schema.Boolean),
|
|
22352
|
+
cacheDeceptionArmor: Schema.optional(Schema.Boolean),
|
|
22353
|
+
customKey: Schema.optional(
|
|
22354
|
+
Schema.Struct({
|
|
22355
|
+
cookie: Schema.optional(
|
|
22356
|
+
Schema.Struct({
|
|
22357
|
+
checkPresence: Schema.optional(Schema.Array(Schema.String)),
|
|
22358
|
+
include: Schema.optional(Schema.Array(Schema.String)),
|
|
22359
|
+
}).pipe(
|
|
22360
|
+
Schema.encodeKeys({
|
|
22361
|
+
checkPresence: "check_presence",
|
|
22362
|
+
include: "include",
|
|
22363
|
+
}),
|
|
20469
22364
|
),
|
|
20470
|
-
|
|
20471
|
-
|
|
20472
|
-
|
|
20473
|
-
|
|
20474
|
-
|
|
20475
|
-
|
|
20476
|
-
|
|
20477
|
-
|
|
20478
|
-
|
|
20479
|
-
|
|
20480
|
-
|
|
20481
|
-
|
|
20482
|
-
|
|
20483
|
-
|
|
20484
|
-
|
|
20485
|
-
|
|
20486
|
-
Schema.String,
|
|
20487
|
-
]),
|
|
22365
|
+
),
|
|
22366
|
+
header: Schema.optional(
|
|
22367
|
+
Schema.Struct({
|
|
22368
|
+
checkPresence: Schema.optional(Schema.Array(Schema.String)),
|
|
22369
|
+
contains: Schema.optional(
|
|
22370
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
22371
|
+
),
|
|
22372
|
+
excludeOrigin: Schema.optional(Schema.Boolean),
|
|
22373
|
+
include: Schema.optional(Schema.Array(Schema.String)),
|
|
22374
|
+
}).pipe(
|
|
22375
|
+
Schema.encodeKeys({
|
|
22376
|
+
checkPresence: "check_presence",
|
|
22377
|
+
contains: "contains",
|
|
22378
|
+
excludeOrigin: "exclude_origin",
|
|
22379
|
+
include: "include",
|
|
22380
|
+
}),
|
|
20488
22381
|
),
|
|
20489
|
-
|
|
20490
|
-
|
|
20491
|
-
|
|
20492
|
-
|
|
20493
|
-
|
|
20494
|
-
|
|
20495
|
-
|
|
20496
|
-
|
|
20497
|
-
|
|
20498
|
-
|
|
20499
|
-
|
|
22382
|
+
),
|
|
22383
|
+
host: Schema.optional(
|
|
22384
|
+
Schema.Struct({
|
|
22385
|
+
resolved: Schema.optional(Schema.Boolean),
|
|
22386
|
+
}),
|
|
22387
|
+
),
|
|
22388
|
+
queryString: Schema.optional(
|
|
22389
|
+
Schema.Struct({
|
|
22390
|
+
exclude: Schema.optional(
|
|
22391
|
+
Schema.Struct({
|
|
22392
|
+
all: Schema.optional(Schema.Literal(true)),
|
|
22393
|
+
list: Schema.optional(Schema.Array(Schema.String)),
|
|
22394
|
+
}),
|
|
22395
|
+
),
|
|
22396
|
+
include: Schema.optional(
|
|
22397
|
+
Schema.Struct({
|
|
22398
|
+
all: Schema.optional(Schema.Literal(true)),
|
|
22399
|
+
list: Schema.optional(Schema.Array(Schema.String)),
|
|
22400
|
+
}),
|
|
22401
|
+
),
|
|
22402
|
+
}),
|
|
22403
|
+
),
|
|
22404
|
+
user: Schema.optional(
|
|
22405
|
+
Schema.Struct({
|
|
22406
|
+
deviceType: Schema.optional(Schema.Boolean),
|
|
22407
|
+
geo: Schema.optional(Schema.Boolean),
|
|
22408
|
+
lang: Schema.optional(Schema.Boolean),
|
|
22409
|
+
}).pipe(
|
|
22410
|
+
Schema.encodeKeys({
|
|
22411
|
+
deviceType: "device_type",
|
|
22412
|
+
geo: "geo",
|
|
22413
|
+
lang: "lang",
|
|
22414
|
+
}),
|
|
22415
|
+
),
|
|
22416
|
+
),
|
|
22417
|
+
}).pipe(
|
|
22418
|
+
Schema.encodeKeys({
|
|
22419
|
+
cookie: "cookie",
|
|
22420
|
+
header: "header",
|
|
22421
|
+
host: "host",
|
|
22422
|
+
queryString: "query_string",
|
|
22423
|
+
user: "user",
|
|
22424
|
+
}),
|
|
20500
22425
|
),
|
|
20501
|
-
|
|
20502
|
-
|
|
22426
|
+
),
|
|
22427
|
+
ignoreQueryStringsOrder: Schema.optional(Schema.Boolean),
|
|
22428
|
+
}).pipe(
|
|
22429
|
+
Schema.encodeKeys({
|
|
22430
|
+
cacheByDeviceType: "cache_by_device_type",
|
|
22431
|
+
cacheDeceptionArmor: "cache_deception_armor",
|
|
22432
|
+
customKey: "custom_key",
|
|
22433
|
+
ignoreQueryStringsOrder: "ignore_query_strings_order",
|
|
22434
|
+
}),
|
|
22435
|
+
),
|
|
22436
|
+
),
|
|
22437
|
+
cacheReserve: Schema.optional(
|
|
22438
|
+
Schema.Struct({
|
|
22439
|
+
eligible: Schema.Boolean,
|
|
22440
|
+
minimumFileSize: Schema.optional(Schema.Number),
|
|
22441
|
+
}).pipe(
|
|
22442
|
+
Schema.encodeKeys({
|
|
22443
|
+
eligible: "eligible",
|
|
22444
|
+
minimumFileSize: "minimum_file_size",
|
|
22445
|
+
}),
|
|
22446
|
+
),
|
|
22447
|
+
),
|
|
22448
|
+
edgeTtl: Schema.optional(
|
|
22449
|
+
Schema.Struct({
|
|
22450
|
+
mode: Schema.Union([
|
|
22451
|
+
Schema.Literals([
|
|
22452
|
+
"respect_origin",
|
|
22453
|
+
"bypass_by_default",
|
|
22454
|
+
"override_origin",
|
|
22455
|
+
]),
|
|
22456
|
+
Schema.String,
|
|
22457
|
+
]),
|
|
22458
|
+
default: Schema.optional(Schema.Number),
|
|
22459
|
+
statusCodeTtl: Schema.optional(
|
|
22460
|
+
Schema.Array(
|
|
22461
|
+
Schema.Struct({
|
|
22462
|
+
value: Schema.Number,
|
|
22463
|
+
statusCode: Schema.optional(Schema.Number),
|
|
22464
|
+
statusCodeRange: Schema.optional(
|
|
22465
|
+
Schema.Struct({
|
|
22466
|
+
from: Schema.optional(Schema.Number),
|
|
22467
|
+
to: Schema.optional(Schema.Number),
|
|
22468
|
+
}),
|
|
22469
|
+
),
|
|
22470
|
+
}).pipe(
|
|
22471
|
+
Schema.encodeKeys({
|
|
22472
|
+
value: "value",
|
|
22473
|
+
statusCode: "status_code",
|
|
22474
|
+
statusCodeRange: "status_code_range",
|
|
22475
|
+
}),
|
|
22476
|
+
),
|
|
20503
22477
|
),
|
|
22478
|
+
),
|
|
22479
|
+
}).pipe(
|
|
22480
|
+
Schema.encodeKeys({
|
|
22481
|
+
mode: "mode",
|
|
22482
|
+
default: "default",
|
|
22483
|
+
statusCodeTtl: "status_code_ttl",
|
|
20504
22484
|
}),
|
|
20505
|
-
|
|
20506
|
-
]),
|
|
22485
|
+
),
|
|
20507
22486
|
),
|
|
20508
|
-
|
|
20509
|
-
|
|
22487
|
+
originCacheControl: Schema.optional(Schema.Boolean),
|
|
22488
|
+
originErrorPagePassthru: Schema.optional(Schema.Boolean),
|
|
22489
|
+
readTimeout: Schema.optional(Schema.Number),
|
|
22490
|
+
respectStrongEtags: Schema.optional(Schema.Boolean),
|
|
22491
|
+
serveStale: Schema.optional(
|
|
22492
|
+
Schema.Struct({
|
|
22493
|
+
disableStaleWhileUpdating: Schema.optional(Schema.Boolean),
|
|
22494
|
+
}).pipe(
|
|
22495
|
+
Schema.encodeKeys({
|
|
22496
|
+
disableStaleWhileUpdating: "disable_stale_while_updating",
|
|
22497
|
+
}),
|
|
22498
|
+
),
|
|
20510
22499
|
),
|
|
20511
|
-
|
|
20512
|
-
Schema.
|
|
22500
|
+
sharedDictionary: Schema.optional(
|
|
22501
|
+
Schema.Struct({
|
|
22502
|
+
matchPattern: Schema.String,
|
|
22503
|
+
}).pipe(Schema.encodeKeys({ matchPattern: "match_pattern" })),
|
|
20513
22504
|
),
|
|
20514
|
-
|
|
20515
|
-
|
|
22505
|
+
stripEtags: Schema.optional(Schema.Boolean),
|
|
22506
|
+
stripLastModified: Schema.optional(Schema.Boolean),
|
|
22507
|
+
stripSetCookie: Schema.optional(Schema.Boolean),
|
|
22508
|
+
}).pipe(
|
|
22509
|
+
Schema.encodeKeys({
|
|
22510
|
+
additionalCacheablePorts: "additional_cacheable_ports",
|
|
22511
|
+
browserTtl: "browser_ttl",
|
|
22512
|
+
cache: "cache",
|
|
22513
|
+
cacheKey: "cache_key",
|
|
22514
|
+
cacheReserve: "cache_reserve",
|
|
22515
|
+
edgeTtl: "edge_ttl",
|
|
22516
|
+
originCacheControl: "origin_cache_control",
|
|
22517
|
+
originErrorPagePassthru: "origin_error_page_passthru",
|
|
22518
|
+
readTimeout: "read_timeout",
|
|
22519
|
+
respectStrongEtags: "respect_strong_etags",
|
|
22520
|
+
serveStale: "serve_stale",
|
|
22521
|
+
sharedDictionary: "shared_dictionary",
|
|
22522
|
+
stripEtags: "strip_etags",
|
|
22523
|
+
stripLastModified: "strip_last_modified",
|
|
22524
|
+
stripSetCookie: "strip_set_cookie",
|
|
22525
|
+
}),
|
|
22526
|
+
),
|
|
22527
|
+
Schema.Struct({
|
|
22528
|
+
automaticHttpsRewrites: Schema.optional(Schema.Boolean),
|
|
22529
|
+
autominify: Schema.optional(
|
|
22530
|
+
Schema.Struct({
|
|
22531
|
+
css: Schema.optional(Schema.Boolean),
|
|
22532
|
+
html: Schema.optional(Schema.Boolean),
|
|
22533
|
+
js: Schema.optional(Schema.Boolean),
|
|
22534
|
+
}),
|
|
22535
|
+
),
|
|
22536
|
+
bic: Schema.optional(Schema.Boolean),
|
|
22537
|
+
contentConverter: Schema.optional(Schema.Boolean),
|
|
22538
|
+
disableApps: Schema.optional(Schema.Literal(true)),
|
|
22539
|
+
disablePayPerCrawl: Schema.optional(Schema.Literal(true)),
|
|
22540
|
+
disableRum: Schema.optional(Schema.Literal(true)),
|
|
22541
|
+
disableZaraz: Schema.optional(Schema.Literal(true)),
|
|
22542
|
+
emailObfuscation: Schema.optional(Schema.Boolean),
|
|
22543
|
+
fonts: Schema.optional(Schema.Boolean),
|
|
22544
|
+
hotlinkProtection: Schema.optional(Schema.Boolean),
|
|
22545
|
+
mirage: Schema.optional(Schema.Boolean),
|
|
22546
|
+
opportunisticEncryption: Schema.optional(Schema.Boolean),
|
|
22547
|
+
polish: Schema.optional(
|
|
20516
22548
|
Schema.Union([
|
|
20517
|
-
Schema.
|
|
20518
|
-
|
|
20519
|
-
usernameExpression: Schema.String,
|
|
20520
|
-
}).pipe(
|
|
20521
|
-
Schema.encodeKeys({
|
|
20522
|
-
passwordExpression: "password_expression",
|
|
20523
|
-
usernameExpression: "username_expression",
|
|
20524
|
-
}),
|
|
20525
|
-
),
|
|
20526
|
-
Schema.Null,
|
|
22549
|
+
Schema.Literals(["off", "lossless", "lossy", "webp"]),
|
|
22550
|
+
Schema.String,
|
|
20527
22551
|
]),
|
|
20528
22552
|
),
|
|
20529
|
-
|
|
20530
|
-
|
|
22553
|
+
redirectsForAiTraining: Schema.optional(Schema.Boolean),
|
|
22554
|
+
requestBodyBuffering: Schema.optional(
|
|
20531
22555
|
Schema.Union([
|
|
20532
|
-
Schema.
|
|
20533
|
-
|
|
20534
|
-
}),
|
|
20535
|
-
Schema.Null,
|
|
22556
|
+
Schema.Literals(["none", "standard", "full"]),
|
|
22557
|
+
Schema.String,
|
|
20536
22558
|
]),
|
|
20537
22559
|
),
|
|
20538
|
-
|
|
22560
|
+
responseBodyBuffering: Schema.optional(
|
|
22561
|
+
Schema.Union([Schema.Literals(["none", "standard"]), Schema.String]),
|
|
22562
|
+
),
|
|
22563
|
+
rocketLoader: Schema.optional(Schema.Boolean),
|
|
22564
|
+
securityLevel: Schema.optional(
|
|
20539
22565
|
Schema.Union([
|
|
20540
|
-
Schema.
|
|
20541
|
-
|
|
20542
|
-
|
|
20543
|
-
|
|
20544
|
-
|
|
20545
|
-
|
|
20546
|
-
|
|
20547
|
-
|
|
20548
|
-
|
|
20549
|
-
requestsPerPeriod: Schema.optional(
|
|
20550
|
-
Schema.Union([Schema.Number, Schema.Null]),
|
|
20551
|
-
),
|
|
20552
|
-
requestsToOrigin: Schema.optional(
|
|
20553
|
-
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
20554
|
-
),
|
|
20555
|
-
scorePerPeriod: Schema.optional(
|
|
20556
|
-
Schema.Union([Schema.Number, Schema.Null]),
|
|
20557
|
-
),
|
|
20558
|
-
scoreResponseHeaderName: Schema.optional(
|
|
20559
|
-
Schema.Union([Schema.String, Schema.Null]),
|
|
20560
|
-
),
|
|
20561
|
-
}).pipe(
|
|
20562
|
-
Schema.encodeKeys({
|
|
20563
|
-
characteristics: "characteristics",
|
|
20564
|
-
period: "period",
|
|
20565
|
-
countingExpression: "counting_expression",
|
|
20566
|
-
mitigationTimeout: "mitigation_timeout",
|
|
20567
|
-
requestsPerPeriod: "requests_per_period",
|
|
20568
|
-
requestsToOrigin: "requests_to_origin",
|
|
20569
|
-
scorePerPeriod: "score_per_period",
|
|
20570
|
-
scoreResponseHeaderName: "score_response_header_name",
|
|
20571
|
-
}),
|
|
20572
|
-
),
|
|
20573
|
-
Schema.Null,
|
|
22566
|
+
Schema.Literals([
|
|
22567
|
+
"off",
|
|
22568
|
+
"essentially_off",
|
|
22569
|
+
"low",
|
|
22570
|
+
"medium",
|
|
22571
|
+
"high",
|
|
22572
|
+
"under_attack",
|
|
22573
|
+
]),
|
|
22574
|
+
Schema.String,
|
|
20574
22575
|
]),
|
|
20575
22576
|
),
|
|
20576
|
-
|
|
22577
|
+
serverSideExcludes: Schema.optional(Schema.Boolean),
|
|
22578
|
+
ssl: Schema.optional(
|
|
22579
|
+
Schema.Union([
|
|
22580
|
+
Schema.Literals([
|
|
22581
|
+
"off",
|
|
22582
|
+
"flexible",
|
|
22583
|
+
"full",
|
|
22584
|
+
"strict",
|
|
22585
|
+
"origin_pull",
|
|
22586
|
+
]),
|
|
22587
|
+
Schema.String,
|
|
22588
|
+
]),
|
|
22589
|
+
),
|
|
22590
|
+
sxg: Schema.optional(Schema.Boolean),
|
|
20577
22591
|
}).pipe(
|
|
20578
22592
|
Schema.encodeKeys({
|
|
20579
|
-
|
|
20580
|
-
|
|
20581
|
-
|
|
20582
|
-
|
|
20583
|
-
|
|
20584
|
-
|
|
20585
|
-
|
|
20586
|
-
|
|
20587
|
-
|
|
20588
|
-
|
|
20589
|
-
|
|
20590
|
-
|
|
20591
|
-
|
|
22593
|
+
automaticHttpsRewrites: "automatic_https_rewrites",
|
|
22594
|
+
autominify: "autominify",
|
|
22595
|
+
bic: "bic",
|
|
22596
|
+
contentConverter: "content_converter",
|
|
22597
|
+
disableApps: "disable_apps",
|
|
22598
|
+
disablePayPerCrawl: "disable_pay_per_crawl",
|
|
22599
|
+
disableRum: "disable_rum",
|
|
22600
|
+
disableZaraz: "disable_zaraz",
|
|
22601
|
+
emailObfuscation: "email_obfuscation",
|
|
22602
|
+
fonts: "fonts",
|
|
22603
|
+
hotlinkProtection: "hotlink_protection",
|
|
22604
|
+
mirage: "mirage",
|
|
22605
|
+
opportunisticEncryption: "opportunistic_encryption",
|
|
22606
|
+
polish: "polish",
|
|
22607
|
+
redirectsForAiTraining: "redirects_for_ai_training",
|
|
22608
|
+
requestBodyBuffering: "request_body_buffering",
|
|
22609
|
+
responseBodyBuffering: "response_body_buffering",
|
|
22610
|
+
rocketLoader: "rocket_loader",
|
|
22611
|
+
securityLevel: "security_level",
|
|
22612
|
+
serverSideExcludes: "server_side_excludes",
|
|
22613
|
+
ssl: "ssl",
|
|
22614
|
+
sxg: "sxg",
|
|
20592
22615
|
}),
|
|
20593
22616
|
),
|
|
20594
|
-
|
|
20595
|
-
|
|
20596
|
-
|
|
20597
|
-
|
|
20598
|
-
|
|
20599
|
-
|
|
20600
|
-
|
|
20601
|
-
|
|
20602
|
-
|
|
20603
|
-
|
|
20604
|
-
|
|
20605
|
-
|
|
20606
|
-
|
|
20607
|
-
|
|
20608
|
-
|
|
20609
|
-
|
|
20610
|
-
|
|
20611
|
-
|
|
20612
|
-
|
|
20613
|
-
|
|
20614
|
-
|
|
20615
|
-
|
|
20616
|
-
|
|
20617
|
-
|
|
20618
|
-
|
|
20619
|
-
|
|
20620
|
-
|
|
20621
|
-
|
|
20622
|
-
|
|
20623
|
-
|
|
20624
|
-
|
|
20625
|
-
|
|
20626
|
-
|
|
20627
|
-
|
|
20628
|
-
export const createRuleForZone: API.OperationMethod<
|
|
20629
|
-
CreateRuleForZoneRequest,
|
|
20630
|
-
CreateRuleResponse,
|
|
20631
|
-
CreateRuleError,
|
|
20632
|
-
Credentials | HttpClient.HttpClient
|
|
20633
|
-
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
20634
|
-
input: CreateRuleForZoneRequest,
|
|
20635
|
-
output: CreateRuleResponse,
|
|
20636
|
-
errors: [],
|
|
20637
|
-
}));
|
|
20638
|
-
|
|
20639
|
-
const PatchRuleBaseFields = {
|
|
20640
|
-
rulesetId: Schema.String.pipe(T.HttpPath("rulesetId")),
|
|
20641
|
-
ruleId: Schema.String.pipe(T.HttpPath("ruleId")),
|
|
20642
|
-
id: Schema.optional(Schema.String),
|
|
20643
|
-
action: Schema.optional(Schema.Literal("block")),
|
|
20644
|
-
actionParameters: Schema.optional(
|
|
20645
|
-
Schema.Struct({
|
|
20646
|
-
response: Schema.optional(
|
|
20647
|
-
Schema.Struct({
|
|
20648
|
-
content: Schema.String,
|
|
20649
|
-
contentType: Schema.String,
|
|
20650
|
-
statusCode: Schema.Number,
|
|
20651
|
-
}).pipe(
|
|
20652
|
-
Schema.encodeKeys({
|
|
20653
|
-
content: "content",
|
|
20654
|
-
contentType: "content_type",
|
|
20655
|
-
statusCode: "status_code",
|
|
20656
|
-
}),
|
|
22617
|
+
Schema.Struct({
|
|
22618
|
+
phase: Schema.optional(Schema.Literal("current")),
|
|
22619
|
+
phases: Schema.optional(
|
|
22620
|
+
Schema.Array(
|
|
22621
|
+
Schema.Union([
|
|
22622
|
+
Schema.Literals([
|
|
22623
|
+
"ddos_l4",
|
|
22624
|
+
"ddos_l7",
|
|
22625
|
+
"http_config_settings",
|
|
22626
|
+
"http_custom_errors",
|
|
22627
|
+
"http_log_custom_fields",
|
|
22628
|
+
"http_ratelimit",
|
|
22629
|
+
"http_request_cache_settings",
|
|
22630
|
+
"http_request_dynamic_redirect",
|
|
22631
|
+
"http_request_firewall_custom",
|
|
22632
|
+
"http_request_firewall_managed",
|
|
22633
|
+
"http_request_late_transform",
|
|
22634
|
+
"http_request_origin",
|
|
22635
|
+
"http_request_redirect",
|
|
22636
|
+
"http_request_sanitize",
|
|
22637
|
+
"http_request_sbfm",
|
|
22638
|
+
"http_request_transform",
|
|
22639
|
+
"http_response_cache_settings",
|
|
22640
|
+
"http_response_compression",
|
|
22641
|
+
"http_response_firewall_managed",
|
|
22642
|
+
"http_response_headers_transform",
|
|
22643
|
+
"magic_transit",
|
|
22644
|
+
"magic_transit_ids_managed",
|
|
22645
|
+
"magic_transit_managed",
|
|
22646
|
+
"magic_transit_ratelimit",
|
|
22647
|
+
]),
|
|
22648
|
+
Schema.String,
|
|
22649
|
+
]),
|
|
22650
|
+
),
|
|
20657
22651
|
),
|
|
20658
|
-
|
|
20659
|
-
|
|
22652
|
+
products: Schema.optional(
|
|
22653
|
+
Schema.Array(
|
|
22654
|
+
Schema.Union([
|
|
22655
|
+
Schema.Literals([
|
|
22656
|
+
"bic",
|
|
22657
|
+
"hot",
|
|
22658
|
+
"rateLimit",
|
|
22659
|
+
"securityLevel",
|
|
22660
|
+
"uaBlock",
|
|
22661
|
+
"waf",
|
|
22662
|
+
"zoneLockdown",
|
|
22663
|
+
]),
|
|
22664
|
+
Schema.String,
|
|
22665
|
+
]),
|
|
22666
|
+
),
|
|
22667
|
+
),
|
|
22668
|
+
rules: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
|
|
22669
|
+
ruleset: Schema.optional(Schema.Literal("current")),
|
|
22670
|
+
rulesets: Schema.optional(Schema.Array(Schema.String)),
|
|
22671
|
+
}),
|
|
22672
|
+
]),
|
|
20660
22673
|
),
|
|
20661
22674
|
description: Schema.optional(Schema.String),
|
|
20662
22675
|
enabled: Schema.optional(Schema.Boolean),
|
|
@@ -20678,17 +22691,11 @@ const PatchRuleBaseFields = {
|
|
|
20678
22691
|
}),
|
|
20679
22692
|
),
|
|
20680
22693
|
position: Schema.optional(
|
|
20681
|
-
Schema.
|
|
20682
|
-
Schema.
|
|
20683
|
-
|
|
20684
|
-
|
|
20685
|
-
|
|
20686
|
-
after: Schema.optional(Schema.String),
|
|
20687
|
-
}),
|
|
20688
|
-
Schema.Struct({
|
|
20689
|
-
index: Schema.optional(Schema.Number),
|
|
20690
|
-
}),
|
|
20691
|
-
]),
|
|
22694
|
+
Schema.Struct({
|
|
22695
|
+
before: Schema.optional(Schema.String),
|
|
22696
|
+
after: Schema.optional(Schema.String),
|
|
22697
|
+
index: Schema.optional(Schema.Number),
|
|
22698
|
+
}),
|
|
20692
22699
|
),
|
|
20693
22700
|
ratelimit: Schema.optional(
|
|
20694
22701
|
Schema.Struct({
|
|
@@ -20722,11 +22729,324 @@ interface PatchRuleBaseRequest {
|
|
|
20722
22729
|
/** Body param: The unique ID of the rule. */
|
|
20723
22730
|
id?: string;
|
|
20724
22731
|
/** Body param: The action to perform when the rule matches. */
|
|
20725
|
-
action?:
|
|
22732
|
+
action?:
|
|
22733
|
+
| "block"
|
|
22734
|
+
| "challenge"
|
|
22735
|
+
| "compress_response"
|
|
22736
|
+
| "ddos_dynamic"
|
|
22737
|
+
| "execute"
|
|
22738
|
+
| "force_connection_close"
|
|
22739
|
+
| "js_challenge"
|
|
22740
|
+
| "log"
|
|
22741
|
+
| "log_custom_field"
|
|
22742
|
+
| "managed_challenge"
|
|
22743
|
+
| "redirect"
|
|
22744
|
+
| "rewrite"
|
|
22745
|
+
| "route"
|
|
22746
|
+
| "score"
|
|
22747
|
+
| "serve_error"
|
|
22748
|
+
| "set_cache_control"
|
|
22749
|
+
| "set_cache_settings"
|
|
22750
|
+
| "set_cache_tags"
|
|
22751
|
+
| "set_config"
|
|
22752
|
+
| "skip"
|
|
22753
|
+
| (string & {});
|
|
20726
22754
|
/** Body param: The parameters configuring the rule's action. */
|
|
20727
|
-
actionParameters?:
|
|
20728
|
-
|
|
20729
|
-
|
|
22755
|
+
actionParameters?:
|
|
22756
|
+
| {
|
|
22757
|
+
response?: { content: string; contentType: string; statusCode: number };
|
|
22758
|
+
}
|
|
22759
|
+
| {
|
|
22760
|
+
algorithms: {
|
|
22761
|
+
name?:
|
|
22762
|
+
| "none"
|
|
22763
|
+
| "auto"
|
|
22764
|
+
| "default"
|
|
22765
|
+
| "gzip"
|
|
22766
|
+
| "brotli"
|
|
22767
|
+
| "zstd"
|
|
22768
|
+
| (string & {});
|
|
22769
|
+
}[];
|
|
22770
|
+
}
|
|
22771
|
+
| {
|
|
22772
|
+
id: string;
|
|
22773
|
+
matchedData?: { publicKey: string };
|
|
22774
|
+
overrides?: {
|
|
22775
|
+
action?: string;
|
|
22776
|
+
categories?: {
|
|
22777
|
+
category: string;
|
|
22778
|
+
action?: string;
|
|
22779
|
+
enabled?: boolean;
|
|
22780
|
+
sensitivityLevel?:
|
|
22781
|
+
| "default"
|
|
22782
|
+
| "medium"
|
|
22783
|
+
| "low"
|
|
22784
|
+
| "eoff"
|
|
22785
|
+
| (string & {});
|
|
22786
|
+
}[];
|
|
22787
|
+
enabled?: boolean;
|
|
22788
|
+
rules?: {
|
|
22789
|
+
id: string;
|
|
22790
|
+
action?: string;
|
|
22791
|
+
enabled?: boolean;
|
|
22792
|
+
scoreThreshold?: number;
|
|
22793
|
+
sensitivityLevel?:
|
|
22794
|
+
| "default"
|
|
22795
|
+
| "medium"
|
|
22796
|
+
| "low"
|
|
22797
|
+
| "eoff"
|
|
22798
|
+
| (string & {});
|
|
22799
|
+
}[];
|
|
22800
|
+
sensitivityLevel?:
|
|
22801
|
+
| "default"
|
|
22802
|
+
| "medium"
|
|
22803
|
+
| "low"
|
|
22804
|
+
| "eoff"
|
|
22805
|
+
| (string & {});
|
|
22806
|
+
};
|
|
22807
|
+
}
|
|
22808
|
+
| {
|
|
22809
|
+
cookieFields?: { name: string }[];
|
|
22810
|
+
rawResponseFields?: { name: string; preserveDuplicates?: boolean }[];
|
|
22811
|
+
requestFields?: { name: string }[];
|
|
22812
|
+
responseFields?: { name: string; preserveDuplicates?: boolean }[];
|
|
22813
|
+
transformedRequestFields?: { name: string }[];
|
|
22814
|
+
}
|
|
22815
|
+
| {
|
|
22816
|
+
fromList?: { key: string; name: string };
|
|
22817
|
+
fromValue?: {
|
|
22818
|
+
targetUrl: { expression?: string; value?: string };
|
|
22819
|
+
preserveQueryString?: boolean;
|
|
22820
|
+
statusCode?: "301" | "302" | "303" | "307" | "308" | (string & {});
|
|
22821
|
+
};
|
|
22822
|
+
}
|
|
22823
|
+
| {
|
|
22824
|
+
headers?: Record<string, unknown>;
|
|
22825
|
+
uri?:
|
|
22826
|
+
| { path: { expression?: string; value?: string } }
|
|
22827
|
+
| { query: { expression?: string; value?: string } };
|
|
22828
|
+
}
|
|
22829
|
+
| {
|
|
22830
|
+
hostHeader?: string;
|
|
22831
|
+
origin?: { host?: string; port?: number };
|
|
22832
|
+
sni?: { value: string };
|
|
22833
|
+
}
|
|
22834
|
+
| { increment: number }
|
|
22835
|
+
| {
|
|
22836
|
+
content: string;
|
|
22837
|
+
contentType?:
|
|
22838
|
+
| "application/json"
|
|
22839
|
+
| "text/html"
|
|
22840
|
+
| "text/plain"
|
|
22841
|
+
| "text/xml"
|
|
22842
|
+
| (string & {});
|
|
22843
|
+
statusCode?: number;
|
|
22844
|
+
}
|
|
22845
|
+
| {
|
|
22846
|
+
assetName: string;
|
|
22847
|
+
contentType?:
|
|
22848
|
+
| "application/json"
|
|
22849
|
+
| "text/html"
|
|
22850
|
+
| "text/plain"
|
|
22851
|
+
| "text/xml"
|
|
22852
|
+
| (string & {});
|
|
22853
|
+
statusCode?: number;
|
|
22854
|
+
}
|
|
22855
|
+
| {
|
|
22856
|
+
immutable?: {
|
|
22857
|
+
operation: "set" | "remove" | (string & {});
|
|
22858
|
+
cloudflareOnly?: boolean;
|
|
22859
|
+
};
|
|
22860
|
+
maxAge?: {
|
|
22861
|
+
operation: "set" | "remove" | (string & {});
|
|
22862
|
+
cloudflareOnly?: boolean;
|
|
22863
|
+
};
|
|
22864
|
+
mustRevalidate?: {
|
|
22865
|
+
operation: "set" | "remove" | (string & {});
|
|
22866
|
+
cloudflareOnly?: boolean;
|
|
22867
|
+
};
|
|
22868
|
+
mustUnderstand?: {
|
|
22869
|
+
operation: "set" | "remove" | (string & {});
|
|
22870
|
+
cloudflareOnly?: boolean;
|
|
22871
|
+
};
|
|
22872
|
+
noCache?: {
|
|
22873
|
+
operation: "set" | "remove" | (string & {});
|
|
22874
|
+
cloudflareOnly?: boolean;
|
|
22875
|
+
};
|
|
22876
|
+
noStore?: {
|
|
22877
|
+
operation: "set" | "remove" | (string & {});
|
|
22878
|
+
cloudflareOnly?: boolean;
|
|
22879
|
+
};
|
|
22880
|
+
noTransform?: {
|
|
22881
|
+
operation: "set" | "remove" | (string & {});
|
|
22882
|
+
cloudflareOnly?: boolean;
|
|
22883
|
+
};
|
|
22884
|
+
private?: {
|
|
22885
|
+
operation: "set" | "remove" | (string & {});
|
|
22886
|
+
cloudflareOnly?: boolean;
|
|
22887
|
+
};
|
|
22888
|
+
proxyRevalidate?: {
|
|
22889
|
+
operation: "set" | "remove" | (string & {});
|
|
22890
|
+
cloudflareOnly?: boolean;
|
|
22891
|
+
};
|
|
22892
|
+
public?: {
|
|
22893
|
+
operation: "set" | "remove" | (string & {});
|
|
22894
|
+
cloudflareOnly?: boolean;
|
|
22895
|
+
};
|
|
22896
|
+
sMaxage?: {
|
|
22897
|
+
operation: "set" | "remove" | (string & {});
|
|
22898
|
+
cloudflareOnly?: boolean;
|
|
22899
|
+
};
|
|
22900
|
+
staleIfError?: {
|
|
22901
|
+
operation: "set" | "remove" | (string & {});
|
|
22902
|
+
cloudflareOnly?: boolean;
|
|
22903
|
+
};
|
|
22904
|
+
staleWhileRevalidate?: {
|
|
22905
|
+
operation: "set" | "remove" | (string & {});
|
|
22906
|
+
cloudflareOnly?: boolean;
|
|
22907
|
+
};
|
|
22908
|
+
}
|
|
22909
|
+
| {
|
|
22910
|
+
additionalCacheablePorts?: number[];
|
|
22911
|
+
browserTtl?: {
|
|
22912
|
+
mode:
|
|
22913
|
+
| "respect_origin"
|
|
22914
|
+
| "bypass_by_default"
|
|
22915
|
+
| "override_origin"
|
|
22916
|
+
| "bypass"
|
|
22917
|
+
| (string & {});
|
|
22918
|
+
default?: number;
|
|
22919
|
+
};
|
|
22920
|
+
cache?: boolean;
|
|
22921
|
+
cacheKey?: {
|
|
22922
|
+
cacheByDeviceType?: boolean;
|
|
22923
|
+
cacheDeceptionArmor?: boolean;
|
|
22924
|
+
customKey?: {
|
|
22925
|
+
cookie?: { checkPresence?: string[]; include?: string[] };
|
|
22926
|
+
header?: {
|
|
22927
|
+
checkPresence?: string[];
|
|
22928
|
+
contains?: Record<string, unknown>;
|
|
22929
|
+
excludeOrigin?: boolean;
|
|
22930
|
+
include?: string[];
|
|
22931
|
+
};
|
|
22932
|
+
host?: { resolved?: boolean };
|
|
22933
|
+
queryString?: {
|
|
22934
|
+
exclude?: { all?: true; list?: string[] };
|
|
22935
|
+
include?: { all?: true; list?: string[] };
|
|
22936
|
+
};
|
|
22937
|
+
user?: { deviceType?: boolean; geo?: boolean; lang?: boolean };
|
|
22938
|
+
};
|
|
22939
|
+
ignoreQueryStringsOrder?: boolean;
|
|
22940
|
+
};
|
|
22941
|
+
cacheReserve?: { eligible: boolean; minimumFileSize?: number };
|
|
22942
|
+
edgeTtl?: {
|
|
22943
|
+
mode:
|
|
22944
|
+
| "respect_origin"
|
|
22945
|
+
| "bypass_by_default"
|
|
22946
|
+
| "override_origin"
|
|
22947
|
+
| (string & {});
|
|
22948
|
+
default?: number;
|
|
22949
|
+
statusCodeTtl?: {
|
|
22950
|
+
value: number;
|
|
22951
|
+
statusCode?: number;
|
|
22952
|
+
statusCodeRange?: { from?: number; to?: number };
|
|
22953
|
+
}[];
|
|
22954
|
+
};
|
|
22955
|
+
originCacheControl?: boolean;
|
|
22956
|
+
originErrorPagePassthru?: boolean;
|
|
22957
|
+
readTimeout?: number;
|
|
22958
|
+
respectStrongEtags?: boolean;
|
|
22959
|
+
serveStale?: { disableStaleWhileUpdating?: boolean };
|
|
22960
|
+
sharedDictionary?: { matchPattern: string };
|
|
22961
|
+
stripEtags?: boolean;
|
|
22962
|
+
stripLastModified?: boolean;
|
|
22963
|
+
stripSetCookie?: boolean;
|
|
22964
|
+
}
|
|
22965
|
+
| { operation: "add" | "remove" | "set" | (string & {}); values: string[] }
|
|
22966
|
+
| {
|
|
22967
|
+
expression: string;
|
|
22968
|
+
operation: "add" | "remove" | "set" | (string & {});
|
|
22969
|
+
}
|
|
22970
|
+
| {
|
|
22971
|
+
automaticHttpsRewrites?: boolean;
|
|
22972
|
+
autominify?: { css?: boolean; html?: boolean; js?: boolean };
|
|
22973
|
+
bic?: boolean;
|
|
22974
|
+
contentConverter?: boolean;
|
|
22975
|
+
disableApps?: true;
|
|
22976
|
+
disablePayPerCrawl?: true;
|
|
22977
|
+
disableRum?: true;
|
|
22978
|
+
disableZaraz?: true;
|
|
22979
|
+
emailObfuscation?: boolean;
|
|
22980
|
+
fonts?: boolean;
|
|
22981
|
+
hotlinkProtection?: boolean;
|
|
22982
|
+
mirage?: boolean;
|
|
22983
|
+
opportunisticEncryption?: boolean;
|
|
22984
|
+
polish?: "off" | "lossless" | "lossy" | "webp" | (string & {});
|
|
22985
|
+
redirectsForAiTraining?: boolean;
|
|
22986
|
+
requestBodyBuffering?: "none" | "standard" | "full" | (string & {});
|
|
22987
|
+
responseBodyBuffering?: "none" | "standard" | (string & {});
|
|
22988
|
+
rocketLoader?: boolean;
|
|
22989
|
+
securityLevel?:
|
|
22990
|
+
| "off"
|
|
22991
|
+
| "essentially_off"
|
|
22992
|
+
| "low"
|
|
22993
|
+
| "medium"
|
|
22994
|
+
| "high"
|
|
22995
|
+
| "under_attack"
|
|
22996
|
+
| (string & {});
|
|
22997
|
+
serverSideExcludes?: boolean;
|
|
22998
|
+
ssl?:
|
|
22999
|
+
| "off"
|
|
23000
|
+
| "flexible"
|
|
23001
|
+
| "full"
|
|
23002
|
+
| "strict"
|
|
23003
|
+
| "origin_pull"
|
|
23004
|
+
| (string & {});
|
|
23005
|
+
sxg?: boolean;
|
|
23006
|
+
}
|
|
23007
|
+
| {
|
|
23008
|
+
phase?: "current";
|
|
23009
|
+
phases?: (
|
|
23010
|
+
| "ddos_l4"
|
|
23011
|
+
| "ddos_l7"
|
|
23012
|
+
| "http_config_settings"
|
|
23013
|
+
| "http_custom_errors"
|
|
23014
|
+
| "http_log_custom_fields"
|
|
23015
|
+
| "http_ratelimit"
|
|
23016
|
+
| "http_request_cache_settings"
|
|
23017
|
+
| "http_request_dynamic_redirect"
|
|
23018
|
+
| "http_request_firewall_custom"
|
|
23019
|
+
| "http_request_firewall_managed"
|
|
23020
|
+
| "http_request_late_transform"
|
|
23021
|
+
| "http_request_origin"
|
|
23022
|
+
| "http_request_redirect"
|
|
23023
|
+
| "http_request_sanitize"
|
|
23024
|
+
| "http_request_sbfm"
|
|
23025
|
+
| "http_request_transform"
|
|
23026
|
+
| "http_response_cache_settings"
|
|
23027
|
+
| "http_response_compression"
|
|
23028
|
+
| "http_response_firewall_managed"
|
|
23029
|
+
| "http_response_headers_transform"
|
|
23030
|
+
| "magic_transit"
|
|
23031
|
+
| "magic_transit_ids_managed"
|
|
23032
|
+
| "magic_transit_managed"
|
|
23033
|
+
| "magic_transit_ratelimit"
|
|
23034
|
+
| (string & {})
|
|
23035
|
+
)[];
|
|
23036
|
+
products?: (
|
|
23037
|
+
| "bic"
|
|
23038
|
+
| "hot"
|
|
23039
|
+
| "rateLimit"
|
|
23040
|
+
| "securityLevel"
|
|
23041
|
+
| "uaBlock"
|
|
23042
|
+
| "waf"
|
|
23043
|
+
| "zoneLockdown"
|
|
23044
|
+
| (string & {})
|
|
23045
|
+
)[];
|
|
23046
|
+
rules?: Record<string, unknown>;
|
|
23047
|
+
ruleset?: "current";
|
|
23048
|
+
rulesets?: string[];
|
|
23049
|
+
};
|
|
20730
23050
|
/** Body param: An informative description of the rule. */
|
|
20731
23051
|
description?: string;
|
|
20732
23052
|
/** Body param: Whether the rule should be executed. */
|
|
@@ -20741,7 +23061,7 @@ interface PatchRuleBaseRequest {
|
|
|
20741
23061
|
/** Body param: An object configuring the rule's logging behavior. */
|
|
20742
23062
|
logging?: { enabled: boolean };
|
|
20743
23063
|
/** Body param: An object configuring where the rule will be placed. */
|
|
20744
|
-
position?: { before?: string
|
|
23064
|
+
position?: { before?: string; after?: string; index?: number };
|
|
20745
23065
|
/** Body param: An object configuring the rule's rate limit behavior. */
|
|
20746
23066
|
ratelimit?: {
|
|
20747
23067
|
characteristics: string[];
|