@distilled.cloud/cloudflare 0.29.0 → 0.29.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/services/abuse-reports.d.ts.map +1 -1
- package/lib/services/abuse-reports.js +26 -26
- package/lib/services/abuse-reports.js.map +1 -1
- package/lib/services/accounts.d.ts.map +1 -1
- package/lib/services/accounts.js +114 -123
- package/lib/services/accounts.js.map +1 -1
- package/lib/services/acm.d.ts.map +1 -1
- package/lib/services/acm.js +23 -23
- package/lib/services/acm.js.map +1 -1
- package/lib/services/addressing.d.ts.map +1 -1
- package/lib/services/addressing.js +132 -132
- package/lib/services/addressing.js.map +1 -1
- package/lib/services/ai-gateway.d.ts.map +1 -1
- package/lib/services/ai-gateway.js +213 -207
- package/lib/services/ai-gateway.js.map +1 -1
- package/lib/services/ai-security.d.ts.map +1 -1
- package/lib/services/ai-security.js +13 -13
- package/lib/services/ai-security.js.map +1 -1
- package/lib/services/ai.d.ts.map +1 -1
- package/lib/services/ai.js +62 -62
- package/lib/services/ai.js.map +1 -1
- package/lib/services/aisearch.d.ts.map +1 -1
- package/lib/services/aisearch.js +187 -193
- package/lib/services/aisearch.js.map +1 -1
- package/lib/services/alerting.d.ts.map +1 -1
- package/lib/services/alerting.js +78 -78
- package/lib/services/alerting.js.map +1 -1
- package/lib/services/api-gateway.d.ts.map +1 -1
- package/lib/services/api-gateway.js +168 -177
- package/lib/services/api-gateway.js.map +1 -1
- package/lib/services/argo.js +12 -12
- package/lib/services/argo.js.map +1 -1
- package/lib/services/audit-logs.d.ts.map +1 -1
- package/lib/services/audit-logs.js +9 -9
- package/lib/services/audit-logs.js.map +1 -1
- package/lib/services/billing.d.ts.map +1 -1
- package/lib/services/billing.js +11 -11
- package/lib/services/billing.js.map +1 -1
- package/lib/services/bot-management.d.ts.map +1 -1
- package/lib/services/bot-management.js +18 -30
- package/lib/services/bot-management.js.map +1 -1
- package/lib/services/botnet-feed.d.ts.map +1 -1
- package/lib/services/botnet-feed.js +12 -12
- package/lib/services/botnet-feed.js.map +1 -1
- package/lib/services/brand-protection.d.ts.map +1 -1
- package/lib/services/brand-protection.js +59 -59
- package/lib/services/brand-protection.js.map +1 -1
- package/lib/services/browser-rendering.d.ts.map +1 -1
- package/lib/services/browser-rendering.js +103 -103
- package/lib/services/browser-rendering.js.map +1 -1
- package/lib/services/cache.d.ts.map +1 -1
- package/lib/services/cache.js +72 -72
- package/lib/services/cache.js.map +1 -1
- package/lib/services/calls.d.ts.map +1 -1
- package/lib/services/calls.js +31 -31
- package/lib/services/calls.js.map +1 -1
- package/lib/services/certificate-authorities.js +6 -6
- package/lib/services/certificate-authorities.js.map +1 -1
- package/lib/services/client-certificates.js +18 -18
- package/lib/services/client-certificates.js.map +1 -1
- package/lib/services/cloud-connector.d.ts.map +1 -1
- package/lib/services/cloud-connector.js +8 -8
- package/lib/services/cloud-connector.js.map +1 -1
- package/lib/services/cloudforce-one.d.ts.map +1 -1
- package/lib/services/cloudforce-one.js +178 -178
- package/lib/services/cloudforce-one.js.map +1 -1
- package/lib/services/connectivity.js +25 -25
- package/lib/services/connectivity.js.map +1 -1
- package/lib/services/containers.js +49 -49
- package/lib/services/containers.js.map +1 -1
- package/lib/services/content-scanning.d.ts.map +1 -1
- package/lib/services/content-scanning.js +29 -29
- package/lib/services/content-scanning.js.map +1 -1
- package/lib/services/csam-scanner.d.ts.map +1 -1
- package/lib/services/csam-scanner.js +8 -8
- package/lib/services/csam-scanner.js.map +1 -1
- package/lib/services/custom-certificates.d.ts.map +1 -1
- package/lib/services/custom-certificates.js +24 -24
- package/lib/services/custom-certificates.js.map +1 -1
- package/lib/services/custom-csrs.d.ts.map +1 -1
- package/lib/services/custom-csrs.js +22 -22
- package/lib/services/custom-csrs.js.map +1 -1
- package/lib/services/custom-hostnames.d.ts.map +1 -1
- package/lib/services/custom-hostnames.js +40 -40
- package/lib/services/custom-hostnames.js.map +1 -1
- package/lib/services/custom-nameservers.js +11 -11
- package/lib/services/custom-nameservers.js.map +1 -1
- package/lib/services/custom-pages.d.ts.map +1 -1
- package/lib/services/custom-pages.js +43 -43
- package/lib/services/custom-pages.js.map +1 -1
- package/lib/services/d1.d.ts +4 -4
- package/lib/services/d1.d.ts.map +1 -1
- package/lib/services/d1.js +69 -51
- package/lib/services/d1.js.map +1 -1
- package/lib/services/dcv-delegation.js +3 -3
- package/lib/services/dcv-delegation.js.map +1 -1
- package/lib/services/ddos-protection.js +126 -126
- package/lib/services/ddos-protection.js.map +1 -1
- package/lib/services/diagnostics.js +27 -27
- package/lib/services/diagnostics.js.map +1 -1
- package/lib/services/dls.d.ts.map +1 -1
- package/lib/services/dls.js +26 -26
- package/lib/services/dls.js.map +1 -1
- package/lib/services/dns-firewall.d.ts.map +1 -1
- package/lib/services/dns-firewall.js +34 -34
- package/lib/services/dns-firewall.js.map +1 -1
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +268 -268
- package/lib/services/dns.js.map +1 -1
- package/lib/services/durable-objects.d.ts.map +1 -1
- package/lib/services/durable-objects.js +11 -11
- package/lib/services/durable-objects.js.map +1 -1
- package/lib/services/email-auth.d.ts.map +1 -1
- package/lib/services/email-auth.js +13 -13
- package/lib/services/email-auth.js.map +1 -1
- package/lib/services/email-routing.d.ts.map +1 -1
- package/lib/services/email-routing.js +70 -70
- package/lib/services/email-routing.js.map +1 -1
- package/lib/services/email-security.d.ts.map +1 -1
- package/lib/services/email-security.js +195 -195
- package/lib/services/email-security.js.map +1 -1
- package/lib/services/email-sending.d.ts.map +1 -1
- package/lib/services/email-sending.js +28 -28
- package/lib/services/email-sending.js.map +1 -1
- package/lib/services/filters.d.ts.map +1 -1
- package/lib/services/filters.js +25 -25
- package/lib/services/filters.js.map +1 -1
- package/lib/services/firewall.d.ts.map +1 -1
- package/lib/services/firewall.js +149 -149
- package/lib/services/firewall.js.map +1 -1
- package/lib/services/flagship.d.ts.map +1 -1
- package/lib/services/flagship.js +52 -52
- package/lib/services/flagship.js.map +1 -1
- package/lib/services/fraud.js +8 -8
- package/lib/services/fraud.js.map +1 -1
- package/lib/services/google-tag-gateway.d.ts.map +1 -1
- package/lib/services/google-tag-gateway.js +7 -7
- package/lib/services/google-tag-gateway.js.map +1 -1
- package/lib/services/healthchecks.d.ts.map +1 -1
- package/lib/services/healthchecks.js +31 -31
- package/lib/services/healthchecks.js.map +1 -1
- package/lib/services/hostnames.d.ts.map +1 -1
- package/lib/services/hostnames.js +10 -10
- package/lib/services/hostnames.js.map +1 -1
- package/lib/services/hyperdrive.d.ts.map +1 -1
- package/lib/services/hyperdrive.js +32 -32
- package/lib/services/hyperdrive.js.map +1 -1
- package/lib/services/iam.d.ts.map +1 -1
- package/lib/services/iam.js +113 -113
- package/lib/services/iam.js.map +1 -1
- package/lib/services/images.d.ts.map +1 -1
- package/lib/services/images.js +59 -59
- package/lib/services/images.js.map +1 -1
- package/lib/services/intel.d.ts.map +1 -1
- package/lib/services/intel.js +102 -102
- package/lib/services/intel.js.map +1 -1
- package/lib/services/ips.js +5 -5
- package/lib/services/ips.js.map +1 -1
- package/lib/services/keyless-certificates.js +17 -17
- package/lib/services/keyless-certificates.js.map +1 -1
- package/lib/services/kv.d.ts.map +1 -1
- package/lib/services/kv.js +54 -54
- package/lib/services/kv.js.map +1 -1
- package/lib/services/leaked-credential-checks.d.ts.map +1 -1
- package/lib/services/leaked-credential-checks.js +22 -22
- package/lib/services/leaked-credential-checks.js.map +1 -1
- package/lib/services/load-balancers.d.ts.map +1 -1
- package/lib/services/load-balancers.js +139 -157
- package/lib/services/load-balancers.js.map +1 -1
- package/lib/services/logpush.d.ts.map +1 -1
- package/lib/services/logpush.js +69 -69
- package/lib/services/logpush.js.map +1 -1
- package/lib/services/logs.d.ts.map +1 -1
- package/lib/services/logs.js +58 -58
- package/lib/services/logs.js.map +1 -1
- package/lib/services/magic-cloud-networking.d.ts.map +1 -1
- package/lib/services/magic-cloud-networking.js +138 -168
- package/lib/services/magic-cloud-networking.js.map +1 -1
- package/lib/services/magic-network-monitoring.d.ts.map +1 -1
- package/lib/services/magic-network-monitoring.js +47 -65
- package/lib/services/magic-network-monitoring.js.map +1 -1
- package/lib/services/magic-transit.d.ts.map +1 -1
- package/lib/services/magic-transit.js +340 -364
- package/lib/services/magic-transit.js.map +1 -1
- package/lib/services/managed-transforms.js +11 -11
- package/lib/services/managed-transforms.js.map +1 -1
- package/lib/services/memberships.d.ts.map +1 -1
- package/lib/services/memberships.js +25 -25
- package/lib/services/memberships.js.map +1 -1
- package/lib/services/moq.d.ts.map +1 -1
- package/lib/services/moq.js +23 -23
- package/lib/services/moq.js.map +1 -1
- package/lib/services/mtls-certificates.d.ts.map +1 -1
- package/lib/services/mtls-certificates.js +17 -17
- package/lib/services/mtls-certificates.js.map +1 -1
- package/lib/services/network-interconnects.d.ts.map +1 -1
- package/lib/services/network-interconnects.js +56 -56
- package/lib/services/network-interconnects.js.map +1 -1
- package/lib/services/organizations.d.ts.map +1 -1
- package/lib/services/organizations.js +42 -42
- package/lib/services/organizations.js.map +1 -1
- package/lib/services/origin-ca-certificates.js +14 -14
- package/lib/services/origin-ca-certificates.js.map +1 -1
- package/lib/services/origin-post-quantum-encryption.js +6 -6
- package/lib/services/origin-post-quantum-encryption.js.map +1 -1
- package/lib/services/origin-tls-client-auth.d.ts.map +1 -1
- package/lib/services/origin-tls-client-auth.js +52 -52
- package/lib/services/origin-tls-client-auth.js.map +1 -1
- package/lib/services/origin-tls-compliance-modes.js +12 -12
- package/lib/services/origin-tls-compliance-modes.js.map +1 -1
- package/lib/services/page-rules.d.ts.map +1 -1
- package/lib/services/page-rules.js +62 -62
- package/lib/services/page-rules.js.map +1 -1
- package/lib/services/page-shield.d.ts.map +1 -1
- package/lib/services/page-shield.js +45 -48
- package/lib/services/page-shield.js.map +1 -1
- package/lib/services/pages.d.ts.map +1 -1
- package/lib/services/pages.js +78 -78
- package/lib/services/pages.js.map +1 -1
- package/lib/services/pipelines.d.ts.map +1 -1
- package/lib/services/pipelines.js +102 -102
- package/lib/services/pipelines.js.map +1 -1
- package/lib/services/queues.d.ts.map +1 -1
- package/lib/services/queues.js +100 -103
- package/lib/services/queues.js.map +1 -1
- package/lib/services/r2-data-catalog.d.ts.map +1 -1
- package/lib/services/r2-data-catalog.js +42 -42
- package/lib/services/r2-data-catalog.js.map +1 -1
- package/lib/services/r2.d.ts.map +1 -1
- package/lib/services/r2.js +190 -190
- package/lib/services/r2.js.map +1 -1
- package/lib/services/radar.d.ts.map +1 -1
- package/lib/services/radar.js +991 -1009
- package/lib/services/radar.js.map +1 -1
- package/lib/services/rate-limits.d.ts.map +1 -1
- package/lib/services/rate-limits.js +24 -24
- package/lib/services/rate-limits.js.map +1 -1
- package/lib/services/realtime-kit.d.ts.map +1 -1
- package/lib/services/realtime-kit.js +276 -276
- package/lib/services/realtime-kit.js.map +1 -1
- package/lib/services/registrar.d.ts.map +1 -1
- package/lib/services/registrar.js +28 -28
- package/lib/services/registrar.js.map +1 -1
- package/lib/services/request-tracers.d.ts.map +1 -1
- package/lib/services/request-tracers.js +7 -7
- package/lib/services/request-tracers.js.map +1 -1
- package/lib/services/resource-sharing.d.ts.map +1 -1
- package/lib/services/resource-sharing.js +49 -49
- package/lib/services/resource-sharing.js.map +1 -1
- package/lib/services/resource-tagging.d.ts.map +1 -1
- package/lib/services/resource-tagging.js +56 -56
- package/lib/services/resource-tagging.js.map +1 -1
- package/lib/services/rules.d.ts.map +1 -1
- package/lib/services/rules.js +50 -50
- package/lib/services/rules.js.map +1 -1
- package/lib/services/rulesets.d.ts +2 -2
- package/lib/services/rulesets.d.ts.map +1 -1
- package/lib/services/rulesets.js +226 -190
- package/lib/services/rulesets.js.map +1 -1
- package/lib/services/rum.d.ts.map +1 -1
- package/lib/services/rum.js +35 -35
- package/lib/services/rum.js.map +1 -1
- package/lib/services/schema-validation.d.ts.map +1 -1
- package/lib/services/schema-validation.js +43 -46
- package/lib/services/schema-validation.js.map +1 -1
- package/lib/services/secrets-store.d.ts.map +1 -1
- package/lib/services/secrets-store.js +41 -41
- package/lib/services/secrets-store.js.map +1 -1
- package/lib/services/security-center.d.ts.map +1 -1
- package/lib/services/security-center.js +54 -57
- package/lib/services/security-center.js.map +1 -1
- package/lib/services/security-txt.d.ts.map +1 -1
- package/lib/services/security-txt.js +12 -12
- package/lib/services/security-txt.js.map +1 -1
- package/lib/services/snippets.d.ts.map +1 -1
- package/lib/services/snippets.js +31 -31
- package/lib/services/snippets.js.map +1 -1
- package/lib/services/spectrum.d.ts.map +1 -1
- package/lib/services/spectrum.js +35 -35
- package/lib/services/spectrum.js.map +1 -1
- package/lib/services/speed.d.ts.map +1 -1
- package/lib/services/speed.js +41 -41
- package/lib/services/speed.js.map +1 -1
- package/lib/services/ssl.d.ts.map +1 -1
- package/lib/services/ssl.js +48 -48
- package/lib/services/ssl.js.map +1 -1
- package/lib/services/stream.d.ts.map +1 -1
- package/lib/services/stream.js +147 -147
- package/lib/services/stream.js.map +1 -1
- package/lib/services/tenant-custom-nameservers.js +11 -11
- package/lib/services/tenant-custom-nameservers.js.map +1 -1
- package/lib/services/tenants.d.ts.map +1 -1
- package/lib/services/tenants.js +28 -28
- package/lib/services/tenants.js.map +1 -1
- package/lib/services/token-validation.d.ts.map +1 -1
- package/lib/services/token-validation.js +56 -56
- package/lib/services/token-validation.js.map +1 -1
- package/lib/services/turnstile.d.ts.map +1 -1
- package/lib/services/turnstile.js +27 -54
- package/lib/services/turnstile.js.map +1 -1
- package/lib/services/url-normalization.js +9 -9
- package/lib/services/url-normalization.js.map +1 -1
- package/lib/services/url-scanner.d.ts.map +1 -1
- package/lib/services/url-scanner.js +120 -120
- package/lib/services/url-scanner.js.map +1 -1
- package/lib/services/user.d.ts.map +1 -1
- package/lib/services/user.js +95 -95
- package/lib/services/user.js.map +1 -1
- package/lib/services/vectorize.d.ts +10 -10
- package/lib/services/vectorize.d.ts.map +1 -1
- package/lib/services/vectorize.js +59 -57
- package/lib/services/vectorize.js.map +1 -1
- package/lib/services/vulnerability-scanner.d.ts.map +1 -1
- package/lib/services/vulnerability-scanner.js +95 -95
- package/lib/services/vulnerability-scanner.js.map +1 -1
- package/lib/services/waiting-rooms.d.ts.map +1 -1
- package/lib/services/waiting-rooms.js +81 -81
- package/lib/services/waiting-rooms.js.map +1 -1
- package/lib/services/web3.d.ts.map +1 -1
- package/lib/services/web3.js +39 -39
- package/lib/services/web3.js.map +1 -1
- package/lib/services/workers-for-platforms.d.ts.map +1 -1
- package/lib/services/workers-for-platforms.js +139 -139
- package/lib/services/workers-for-platforms.js.map +1 -1
- package/lib/services/workers.d.ts.map +1 -1
- package/lib/services/workers.js +420 -420
- package/lib/services/workers.js.map +1 -1
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +88 -88
- package/lib/services/workflows.js.map +1 -1
- package/lib/services/zaraz.d.ts.map +1 -1
- package/lib/services/zaraz.js +36 -39
- package/lib/services/zaraz.js.map +1 -1
- package/lib/services/zero-trust.d.ts.map +1 -1
- package/lib/services/zero-trust.js +1765 -1771
- package/lib/services/zero-trust.js.map +1 -1
- package/lib/services/zones.d.ts.map +1 -1
- package/lib/services/zones.js +168 -168
- package/lib/services/zones.js.map +1 -1
- package/package.json +3 -2
- package/src/services/abuse-reports.ts +35 -36
- package/src/services/accounts.ts +714 -760
- package/src/services/acm.ts +115 -125
- package/src/services/addressing.ts +484 -512
- package/src/services/ai-gateway.ts +653 -672
- package/src/services/ai-security.ts +47 -53
- package/src/services/ai.ts +172 -185
- package/src/services/aisearch.ts +1814 -1861
- package/src/services/alerting.ts +710 -742
- package/src/services/api-gateway.ts +481 -508
- package/src/services/argo.ts +12 -12
- package/src/services/audit-logs.ts +45 -49
- package/src/services/billing.ts +121 -136
- package/src/services/bot-management.ts +122 -136
- package/src/services/botnet-feed.ts +68 -74
- package/src/services/brand-protection.ts +275 -294
- package/src/services/browser-rendering.ts +758 -769
- package/src/services/cache.ts +148 -158
- package/src/services/calls.ts +110 -120
- package/src/services/certificate-authorities.ts +6 -6
- package/src/services/client-certificates.ts +18 -18
- package/src/services/cloud-connector.ts +11 -12
- package/src/services/cloudforce-one.ts +589 -617
- package/src/services/connectivity.ts +25 -25
- package/src/services/containers.ts +49 -49
- package/src/services/content-scanning.ts +80 -89
- package/src/services/csam-scanner.ts +16 -17
- package/src/services/custom-certificates.ts +36 -38
- package/src/services/custom-csrs.ts +103 -105
- package/src/services/custom-hostnames.ts +44 -45
- package/src/services/custom-nameservers.ts +11 -11
- package/src/services/custom-pages.ts +173 -184
- package/src/services/d1.ts +335 -325
- package/src/services/dcv-delegation.ts +3 -3
- package/src/services/ddos-protection.ts +126 -126
- package/src/services/diagnostics.ts +27 -27
- package/src/services/dls.ts +82 -86
- package/src/services/dns-firewall.ts +65 -69
- package/src/services/dns.ts +1080 -1107
- package/src/services/durable-objects.ts +36 -38
- package/src/services/email-auth.ts +47 -52
- package/src/services/email-routing.ts +264 -288
- package/src/services/email-security.ts +205 -208
- package/src/services/email-sending.ts +94 -99
- package/src/services/filters.ts +97 -111
- package/src/services/firewall.ts +698 -753
- package/src/services/flagship.ts +321 -336
- package/src/services/fraud.ts +8 -8
- package/src/services/google-tag-gateway.ts +17 -19
- package/src/services/healthchecks.ts +269 -286
- package/src/services/hostnames.ts +94 -99
- package/src/services/hyperdrive.ts +310 -324
- package/src/services/iam.ts +205 -212
- package/src/services/images.ts +138 -150
- package/src/services/intel.ts +248 -261
- package/src/services/ips.ts +5 -5
- package/src/services/keyless-certificates.ts +17 -17
- package/src/services/kv.ts +106 -110
- package/src/services/leaked-credential-checks.ts +49 -53
- package/src/services/load-balancers.ts +1119 -1212
- package/src/services/logpush.ts +298 -313
- package/src/services/logs.ts +74 -77
- package/src/services/magic-cloud-networking.ts +1219 -1311
- package/src/services/magic-network-monitoring.ts +647 -685
- package/src/services/magic-transit.ts +1988 -2119
- package/src/services/managed-transforms.ts +11 -11
- package/src/services/memberships.ts +101 -105
- package/src/services/moq.ts +100 -110
- package/src/services/mtls-certificates.ts +30 -32
- package/src/services/network-interconnects.ts +137 -145
- package/src/services/organizations.ts +189 -192
- package/src/services/origin-ca-certificates.ts +14 -14
- package/src/services/origin-post-quantum-encryption.ts +6 -6
- package/src/services/origin-tls-client-auth.ts +219 -236
- package/src/services/origin-tls-compliance-modes.ts +12 -12
- package/src/services/page-rules.ts +365 -373
- package/src/services/page-shield.ts +489 -528
- package/src/services/pages.ts +309 -319
- package/src/services/pipelines.ts +534 -573
- package/src/services/queues.ts +598 -635
- package/src/services/r2-data-catalog.ts +59 -60
- package/src/services/r2.ts +654 -689
- package/src/services/radar.ts +3395 -3487
- package/src/services/rate-limits.ts +81 -93
- package/src/services/realtime-kit.ts +386 -399
- package/src/services/registrar.ts +90 -96
- package/src/services/request-tracers.ts +41 -43
- package/src/services/resource-sharing.ts +293 -305
- package/src/services/resource-tagging.ts +354 -366
- package/src/services/rules.ts +272 -292
- package/src/services/rulesets.ts +1214 -1116
- package/src/services/rum.ts +252 -273
- package/src/services/schema-validation.ts +284 -305
- package/src/services/secrets-store.ts +130 -138
- package/src/services/security-center.ts +64 -69
- package/src/services/security-txt.ts +48 -50
- package/src/services/snippets.ts +132 -142
- package/src/services/spectrum.ts +75 -80
- package/src/services/speed.ts +385 -397
- package/src/services/ssl.ts +64 -65
- package/src/services/stream.ts +658 -718
- package/src/services/tenant-custom-nameservers.ts +11 -11
- package/src/services/tenants.ts +86 -93
- package/src/services/token-validation.ts +145 -151
- package/src/services/turnstile.ts +344 -381
- package/src/services/url-normalization.ts +9 -9
- package/src/services/url-scanner.ts +393 -399
- package/src/services/user.ts +479 -503
- package/src/services/vectorize.ts +215 -230
- package/src/services/vulnerability-scanner.ts +145 -148
- package/src/services/waiting-rooms.ts +759 -825
- package/src/services/web3.ts +186 -197
- package/src/services/workers-for-platforms.ts +408 -432
- package/src/services/workers.ts +1175 -1239
- package/src/services/workflows.ts +585 -616
- package/src/services/zaraz.ts +168 -192
- package/src/services/zero-trust.ts +2965 -3074
- package/src/services/zones.ts +753 -785
package/src/services/rulesets.ts
CHANGED
|
@@ -53,7 +53,7 @@ interface Response {
|
|
|
53
53
|
/** The status code to return. */
|
|
54
54
|
statusCode: number;
|
|
55
55
|
}
|
|
56
|
-
const Response = /*@__PURE__*/
|
|
56
|
+
const Response = /*@__PURE__*/ Schema.suspend(() =>
|
|
57
57
|
Schema.Struct({
|
|
58
58
|
content: Schema.String,
|
|
59
59
|
contentType: Schema.String,
|
|
@@ -75,7 +75,7 @@ interface ActionParameters {
|
|
|
75
75
|
statusCode: number;
|
|
76
76
|
} | null;
|
|
77
77
|
}
|
|
78
|
-
const ActionParameters = /*@__PURE__*/
|
|
78
|
+
const ActionParameters = /*@__PURE__*/ Schema.suspend(() =>
|
|
79
79
|
Schema.Struct({
|
|
80
80
|
response: Schema.optional(Schema.Union([Response, Schema.Null])),
|
|
81
81
|
}),
|
|
@@ -87,7 +87,7 @@ interface ExposedCredentialCheck {
|
|
|
87
87
|
/** An expression that selects the user ID used in the credentials check. */
|
|
88
88
|
usernameExpression: string;
|
|
89
89
|
}
|
|
90
|
-
const ExposedCredentialCheck = /*@__PURE__*/
|
|
90
|
+
const ExposedCredentialCheck = /*@__PURE__*/ Schema.suspend(() =>
|
|
91
91
|
Schema.Struct({
|
|
92
92
|
passwordExpression: SensitiveString,
|
|
93
93
|
usernameExpression: Schema.String,
|
|
@@ -103,7 +103,7 @@ interface Logging {
|
|
|
103
103
|
/** Whether to generate a log when the rule matches. */
|
|
104
104
|
enabled: boolean;
|
|
105
105
|
}
|
|
106
|
-
const Logging = /*@__PURE__*/
|
|
106
|
+
const Logging = /*@__PURE__*/ Schema.suspend(() =>
|
|
107
107
|
Schema.Struct({
|
|
108
108
|
enabled: Schema.Boolean,
|
|
109
109
|
}),
|
|
@@ -127,7 +127,7 @@ interface Ratelimit {
|
|
|
127
127
|
/** A response header name provided by the origin, which contains the score to increment rate limit counter with. */
|
|
128
128
|
scoreResponseHeaderName?: string | null;
|
|
129
129
|
}
|
|
130
|
-
const Ratelimit = /*@__PURE__*/
|
|
130
|
+
const Ratelimit = /*@__PURE__*/ Schema.suspend(() =>
|
|
131
131
|
Schema.Struct({
|
|
132
132
|
characteristics: Schema.Array(Schema.String),
|
|
133
133
|
period: Schema.Number,
|
|
@@ -207,7 +207,7 @@ interface BlockRule {
|
|
|
207
207
|
/** The reference of the rule (the rule's ID by default). */
|
|
208
208
|
ref?: string | null;
|
|
209
209
|
}
|
|
210
|
-
const BlockRule = /*@__PURE__*/
|
|
210
|
+
const BlockRule = /*@__PURE__*/ Schema.suspend(() =>
|
|
211
211
|
Schema.Struct({
|
|
212
212
|
lastUpdated: Schema.String,
|
|
213
213
|
version: Schema.String,
|
|
@@ -289,7 +289,7 @@ interface RulesetsChallengeRule {
|
|
|
289
289
|
/** The reference of the rule (the rule's ID by default). */
|
|
290
290
|
ref?: string | null;
|
|
291
291
|
}
|
|
292
|
-
const RulesetsChallengeRule = /*@__PURE__*/
|
|
292
|
+
const RulesetsChallengeRule = /*@__PURE__*/ Schema.suspend(() =>
|
|
293
293
|
Schema.Struct({
|
|
294
294
|
lastUpdated: Schema.String,
|
|
295
295
|
version: Schema.String,
|
|
@@ -343,7 +343,7 @@ interface Algorithm {
|
|
|
343
343
|
| (string & {})
|
|
344
344
|
| null;
|
|
345
345
|
}
|
|
346
|
-
const Algorithm = /*@__PURE__*/
|
|
346
|
+
const Algorithm = /*@__PURE__*/ Schema.suspend(() =>
|
|
347
347
|
Schema.Struct({
|
|
348
348
|
name: Schema.optional(
|
|
349
349
|
Schema.Union([
|
|
@@ -378,7 +378,7 @@ interface ActionParameters2 {
|
|
|
378
378
|
| null;
|
|
379
379
|
}[];
|
|
380
380
|
}
|
|
381
|
-
const ActionParameters2 = /*@__PURE__*/
|
|
381
|
+
const ActionParameters2 = /*@__PURE__*/ Schema.suspend(() =>
|
|
382
382
|
Schema.Struct({
|
|
383
383
|
algorithms: Schema.Array(Algorithm),
|
|
384
384
|
}),
|
|
@@ -436,7 +436,7 @@ interface CompressResponseRule {
|
|
|
436
436
|
/** The reference of the rule (the rule's ID by default). */
|
|
437
437
|
ref?: string | null;
|
|
438
438
|
}
|
|
439
|
-
const CompressResponseRule = /*@__PURE__*/
|
|
439
|
+
const CompressResponseRule = /*@__PURE__*/ Schema.suspend(() =>
|
|
440
440
|
Schema.Struct({
|
|
441
441
|
lastUpdated: Schema.String,
|
|
442
442
|
version: Schema.String,
|
|
@@ -518,7 +518,7 @@ interface DdoSDynamicRule {
|
|
|
518
518
|
/** The reference of the rule (the rule's ID by default). */
|
|
519
519
|
ref?: string | null;
|
|
520
520
|
}
|
|
521
|
-
const DdoSDynamicRule = /*@__PURE__*/
|
|
521
|
+
const DdoSDynamicRule = /*@__PURE__*/ Schema.suspend(() =>
|
|
522
522
|
Schema.Struct({
|
|
523
523
|
lastUpdated: Schema.String,
|
|
524
524
|
version: Schema.String,
|
|
@@ -564,7 +564,7 @@ interface MatchedData {
|
|
|
564
564
|
/** The public key to encrypt matched data logs with. */
|
|
565
565
|
publicKey: string;
|
|
566
566
|
}
|
|
567
|
-
const MatchedData = /*@__PURE__*/
|
|
567
|
+
const MatchedData = /*@__PURE__*/ Schema.suspend(() =>
|
|
568
568
|
Schema.Struct({
|
|
569
569
|
publicKey: Schema.String,
|
|
570
570
|
}).pipe(Schema.encodeKeys({ publicKey: "public_key" })),
|
|
@@ -586,7 +586,7 @@ interface Category {
|
|
|
586
586
|
| (string & {})
|
|
587
587
|
| null;
|
|
588
588
|
}
|
|
589
|
-
const Category = /*@__PURE__*/
|
|
589
|
+
const Category = /*@__PURE__*/ Schema.suspend(() =>
|
|
590
590
|
Schema.Struct({
|
|
591
591
|
category: Schema.String,
|
|
592
592
|
action: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -628,7 +628,7 @@ interface Rule {
|
|
|
628
628
|
| (string & {})
|
|
629
629
|
| null;
|
|
630
630
|
}
|
|
631
|
-
const Rule = /*@__PURE__*/
|
|
631
|
+
const Rule = /*@__PURE__*/ Schema.suspend(() =>
|
|
632
632
|
Schema.Struct({
|
|
633
633
|
id: Schema.String,
|
|
634
634
|
action: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -699,7 +699,7 @@ interface Overrides {
|
|
|
699
699
|
| (string & {})
|
|
700
700
|
| null;
|
|
701
701
|
}
|
|
702
|
-
const Overrides = /*@__PURE__*/
|
|
702
|
+
const Overrides = /*@__PURE__*/ Schema.suspend(() =>
|
|
703
703
|
Schema.Struct({
|
|
704
704
|
action: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
705
705
|
categories: Schema.optional(
|
|
@@ -774,7 +774,7 @@ interface ActionParameters3 {
|
|
|
774
774
|
| null;
|
|
775
775
|
} | null;
|
|
776
776
|
}
|
|
777
|
-
const ActionParameters3 = /*@__PURE__*/
|
|
777
|
+
const ActionParameters3 = /*@__PURE__*/ Schema.suspend(() =>
|
|
778
778
|
Schema.Struct({
|
|
779
779
|
id: Schema.String,
|
|
780
780
|
matchedData: Schema.optional(Schema.Union([MatchedData, Schema.Null])),
|
|
@@ -871,7 +871,7 @@ interface ExecuteRule {
|
|
|
871
871
|
/** The reference of the rule (the rule's ID by default). */
|
|
872
872
|
ref?: string | null;
|
|
873
873
|
}
|
|
874
|
-
const ExecuteRule = /*@__PURE__*/
|
|
874
|
+
const ExecuteRule = /*@__PURE__*/ Schema.suspend(() =>
|
|
875
875
|
Schema.Struct({
|
|
876
876
|
lastUpdated: Schema.String,
|
|
877
877
|
version: Schema.String,
|
|
@@ -953,47 +953,46 @@ interface ForceConnectionCloseRule {
|
|
|
953
953
|
/** The reference of the rule (the rule's ID by default). */
|
|
954
954
|
ref?: string | null;
|
|
955
955
|
}
|
|
956
|
-
const ForceConnectionCloseRule = /*@__PURE__*/
|
|
957
|
-
(
|
|
958
|
-
Schema.
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
Schema.Union([ExposedCredentialCheck, Schema.Null]),
|
|
975
|
-
),
|
|
976
|
-
expression: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
977
|
-
logging: Schema.optional(Schema.Union([Logging, Schema.Null])),
|
|
978
|
-
ratelimit: Schema.optional(Schema.Union([Ratelimit, Schema.Null])),
|
|
979
|
-
ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
980
|
-
}).pipe(
|
|
981
|
-
Schema.encodeKeys({
|
|
982
|
-
lastUpdated: "last_updated",
|
|
983
|
-
version: "version",
|
|
984
|
-
id: "id",
|
|
985
|
-
action: "action",
|
|
986
|
-
actionParameters: "action_parameters",
|
|
987
|
-
categories: "categories",
|
|
988
|
-
description: "description",
|
|
989
|
-
enabled: "enabled",
|
|
990
|
-
exposedCredentialCheck: "exposed_credential_check",
|
|
991
|
-
expression: "expression",
|
|
992
|
-
logging: "logging",
|
|
993
|
-
ratelimit: "ratelimit",
|
|
994
|
-
ref: "ref",
|
|
995
|
-
}),
|
|
956
|
+
const ForceConnectionCloseRule = /*@__PURE__*/ Schema.suspend(() =>
|
|
957
|
+
Schema.Struct({
|
|
958
|
+
lastUpdated: Schema.String,
|
|
959
|
+
version: Schema.String,
|
|
960
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
961
|
+
action: Schema.optional(
|
|
962
|
+
Schema.Union([Schema.Literal("force_connection_close"), Schema.Null]),
|
|
963
|
+
),
|
|
964
|
+
actionParameters: Schema.optional(
|
|
965
|
+
Schema.Union([Schema.Unknown, Schema.Null]),
|
|
966
|
+
),
|
|
967
|
+
categories: Schema.optional(
|
|
968
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
969
|
+
),
|
|
970
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
971
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
972
|
+
exposedCredentialCheck: Schema.optional(
|
|
973
|
+
Schema.Union([ExposedCredentialCheck, Schema.Null]),
|
|
996
974
|
),
|
|
975
|
+
expression: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
976
|
+
logging: Schema.optional(Schema.Union([Logging, Schema.Null])),
|
|
977
|
+
ratelimit: Schema.optional(Schema.Union([Ratelimit, Schema.Null])),
|
|
978
|
+
ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
979
|
+
}).pipe(
|
|
980
|
+
Schema.encodeKeys({
|
|
981
|
+
lastUpdated: "last_updated",
|
|
982
|
+
version: "version",
|
|
983
|
+
id: "id",
|
|
984
|
+
action: "action",
|
|
985
|
+
actionParameters: "action_parameters",
|
|
986
|
+
categories: "categories",
|
|
987
|
+
description: "description",
|
|
988
|
+
enabled: "enabled",
|
|
989
|
+
exposedCredentialCheck: "exposed_credential_check",
|
|
990
|
+
expression: "expression",
|
|
991
|
+
logging: "logging",
|
|
992
|
+
ratelimit: "ratelimit",
|
|
993
|
+
ref: "ref",
|
|
994
|
+
}),
|
|
995
|
+
),
|
|
997
996
|
) as unknown as Schema.Codec<ForceConnectionCloseRule>;
|
|
998
997
|
|
|
999
998
|
interface RulesetsJSChallengeRule {
|
|
@@ -1036,7 +1035,7 @@ interface RulesetsJSChallengeRule {
|
|
|
1036
1035
|
/** The reference of the rule (the rule's ID by default). */
|
|
1037
1036
|
ref?: string | null;
|
|
1038
1037
|
}
|
|
1039
|
-
const RulesetsJSChallengeRule = /*@__PURE__*/
|
|
1038
|
+
const RulesetsJSChallengeRule = /*@__PURE__*/ Schema.suspend(() =>
|
|
1040
1039
|
Schema.Struct({
|
|
1041
1040
|
lastUpdated: Schema.String,
|
|
1042
1041
|
version: Schema.String,
|
|
@@ -1118,7 +1117,7 @@ interface LogRule {
|
|
|
1118
1117
|
/** The reference of the rule (the rule's ID by default). */
|
|
1119
1118
|
ref?: string | null;
|
|
1120
1119
|
}
|
|
1121
|
-
const LogRule = /*@__PURE__*/
|
|
1120
|
+
const LogRule = /*@__PURE__*/ Schema.suspend(() =>
|
|
1122
1121
|
Schema.Struct({
|
|
1123
1122
|
lastUpdated: Schema.String,
|
|
1124
1123
|
version: Schema.String,
|
|
@@ -1162,7 +1161,7 @@ interface CookieField {
|
|
|
1162
1161
|
/** The name of the cookie. */
|
|
1163
1162
|
name: string;
|
|
1164
1163
|
}
|
|
1165
|
-
const CookieField = /*@__PURE__*/
|
|
1164
|
+
const CookieField = /*@__PURE__*/ Schema.suspend(() =>
|
|
1166
1165
|
Schema.Struct({
|
|
1167
1166
|
name: Schema.String,
|
|
1168
1167
|
}),
|
|
@@ -1174,7 +1173,7 @@ interface RawResponseField {
|
|
|
1174
1173
|
/** Whether to log duplicate values of the same header. */
|
|
1175
1174
|
preserveDuplicates?: boolean | null;
|
|
1176
1175
|
}
|
|
1177
|
-
const RawResponseField = /*@__PURE__*/
|
|
1176
|
+
const RawResponseField = /*@__PURE__*/ Schema.suspend(() =>
|
|
1178
1177
|
Schema.Struct({
|
|
1179
1178
|
name: Schema.String,
|
|
1180
1179
|
preserveDuplicates: Schema.optional(
|
|
@@ -1204,7 +1203,7 @@ interface ActionParameters4 {
|
|
|
1204
1203
|
/** The transformed request fields to log. */
|
|
1205
1204
|
transformedRequestFields?: { name: string }[] | null;
|
|
1206
1205
|
}
|
|
1207
|
-
const ActionParameters4 = /*@__PURE__*/
|
|
1206
|
+
const ActionParameters4 = /*@__PURE__*/ Schema.suspend(() =>
|
|
1208
1207
|
Schema.Struct({
|
|
1209
1208
|
cookieFields: Schema.optional(
|
|
1210
1209
|
Schema.Union([Schema.Array(CookieField), Schema.Null]),
|
|
@@ -1282,7 +1281,7 @@ interface LogCustomFieldRule {
|
|
|
1282
1281
|
/** The reference of the rule (the rule's ID by default). */
|
|
1283
1282
|
ref?: string | null;
|
|
1284
1283
|
}
|
|
1285
|
-
const LogCustomFieldRule = /*@__PURE__*/
|
|
1284
|
+
const LogCustomFieldRule = /*@__PURE__*/ Schema.suspend(() =>
|
|
1286
1285
|
Schema.Struct({
|
|
1287
1286
|
lastUpdated: Schema.String,
|
|
1288
1287
|
version: Schema.String,
|
|
@@ -1364,7 +1363,7 @@ interface ManagedChallengeRule {
|
|
|
1364
1363
|
/** The reference of the rule (the rule's ID by default). */
|
|
1365
1364
|
ref?: string | null;
|
|
1366
1365
|
}
|
|
1367
|
-
const ManagedChallengeRule = /*@__PURE__*/
|
|
1366
|
+
const ManagedChallengeRule = /*@__PURE__*/ Schema.suspend(() =>
|
|
1368
1367
|
Schema.Struct({
|
|
1369
1368
|
lastUpdated: Schema.String,
|
|
1370
1369
|
version: Schema.String,
|
|
@@ -1412,7 +1411,7 @@ interface FromList {
|
|
|
1412
1411
|
/** The name of the list to match against. */
|
|
1413
1412
|
name: string;
|
|
1414
1413
|
}
|
|
1415
|
-
const FromList = /*@__PURE__*/
|
|
1414
|
+
const FromList = /*@__PURE__*/ Schema.suspend(() =>
|
|
1416
1415
|
Schema.Struct({
|
|
1417
1416
|
key: Schema.String,
|
|
1418
1417
|
name: Schema.String,
|
|
@@ -1425,7 +1424,7 @@ interface TargetURL {
|
|
|
1425
1424
|
/** A URL to redirect the request to. */
|
|
1426
1425
|
value?: string | null;
|
|
1427
1426
|
}
|
|
1428
|
-
const TargetURL = /*@__PURE__*/
|
|
1427
|
+
const TargetURL = /*@__PURE__*/ Schema.suspend(() =>
|
|
1429
1428
|
Schema.Struct({
|
|
1430
1429
|
expression: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1431
1430
|
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -1440,7 +1439,7 @@ interface FromValue {
|
|
|
1440
1439
|
/** The status code to use for the redirect. */
|
|
1441
1440
|
statusCode?: "301" | "302" | "303" | "307" | "308" | number | null;
|
|
1442
1441
|
}
|
|
1443
|
-
const FromValue = /*@__PURE__*/
|
|
1442
|
+
const FromValue = /*@__PURE__*/ Schema.suspend(() =>
|
|
1444
1443
|
Schema.Struct({
|
|
1445
1444
|
targetUrl: TargetURL,
|
|
1446
1445
|
preserveQueryString: Schema.optional(
|
|
@@ -1478,7 +1477,7 @@ interface ActionParameters5 {
|
|
|
1478
1477
|
statusCode?: "301" | "302" | "303" | "307" | "308" | number | null;
|
|
1479
1478
|
} | null;
|
|
1480
1479
|
}
|
|
1481
|
-
const ActionParameters5 = /*@__PURE__*/
|
|
1480
|
+
const ActionParameters5 = /*@__PURE__*/ Schema.suspend(() =>
|
|
1482
1481
|
Schema.Struct({
|
|
1483
1482
|
fromList: Schema.optional(Schema.Union([FromList, Schema.Null])),
|
|
1484
1483
|
fromValue: Schema.optional(Schema.Union([FromValue, Schema.Null])),
|
|
@@ -1534,7 +1533,7 @@ interface RedirectRule {
|
|
|
1534
1533
|
/** The reference of the rule (the rule's ID by default). */
|
|
1535
1534
|
ref?: string | null;
|
|
1536
1535
|
}
|
|
1537
|
-
const RedirectRule = /*@__PURE__*/
|
|
1536
|
+
const RedirectRule = /*@__PURE__*/ Schema.suspend(() =>
|
|
1538
1537
|
Schema.Struct({
|
|
1539
1538
|
lastUpdated: Schema.String,
|
|
1540
1539
|
version: Schema.String,
|
|
@@ -1582,7 +1581,7 @@ interface Uripath {
|
|
|
1582
1581
|
/** Whether to propagate the rewritten URI to origin. */
|
|
1583
1582
|
origin?: boolean | null;
|
|
1584
1583
|
}
|
|
1585
|
-
const Uripath = /*@__PURE__*/
|
|
1584
|
+
const Uripath = /*@__PURE__*/ Schema.suspend(() =>
|
|
1586
1585
|
Schema.Struct({
|
|
1587
1586
|
path: TargetURL,
|
|
1588
1587
|
origin: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
@@ -1595,7 +1594,7 @@ interface Uriquery {
|
|
|
1595
1594
|
/** Whether to propagate the rewritten URI to origin. */
|
|
1596
1595
|
origin?: boolean | null;
|
|
1597
1596
|
}
|
|
1598
|
-
const Uriquery = /*@__PURE__*/
|
|
1597
|
+
const Uriquery = /*@__PURE__*/ Schema.suspend(() =>
|
|
1599
1598
|
Schema.Struct({
|
|
1600
1599
|
query: TargetURL,
|
|
1601
1600
|
origin: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
@@ -1617,7 +1616,7 @@ interface ActionParameters6 {
|
|
|
1617
1616
|
}
|
|
1618
1617
|
| null;
|
|
1619
1618
|
}
|
|
1620
|
-
const ActionParameters6 = /*@__PURE__*/
|
|
1619
|
+
const ActionParameters6 = /*@__PURE__*/ Schema.suspend(() =>
|
|
1621
1620
|
Schema.Struct({
|
|
1622
1621
|
headers: Schema.optional(
|
|
1623
1622
|
Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]),
|
|
@@ -1680,7 +1679,7 @@ interface RewriteRule {
|
|
|
1680
1679
|
/** The reference of the rule (the rule's ID by default). */
|
|
1681
1680
|
ref?: string | null;
|
|
1682
1681
|
}
|
|
1683
|
-
const RewriteRule = /*@__PURE__*/
|
|
1682
|
+
const RewriteRule = /*@__PURE__*/ Schema.suspend(() =>
|
|
1684
1683
|
Schema.Struct({
|
|
1685
1684
|
lastUpdated: Schema.String,
|
|
1686
1685
|
version: Schema.String,
|
|
@@ -1728,7 +1727,7 @@ interface Origin {
|
|
|
1728
1727
|
/** A destination port to route to. */
|
|
1729
1728
|
port?: number | null;
|
|
1730
1729
|
}
|
|
1731
|
-
const Origin = /*@__PURE__*/
|
|
1730
|
+
const Origin = /*@__PURE__*/ Schema.suspend(() =>
|
|
1732
1731
|
Schema.Struct({
|
|
1733
1732
|
host: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1734
1733
|
port: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
@@ -1739,7 +1738,7 @@ interface Sni {
|
|
|
1739
1738
|
/** A value to override the SNI to. */
|
|
1740
1739
|
value: string;
|
|
1741
1740
|
}
|
|
1742
|
-
const Sni = /*@__PURE__*/
|
|
1741
|
+
const Sni = /*@__PURE__*/ Schema.suspend(() =>
|
|
1743
1742
|
Schema.Struct({
|
|
1744
1743
|
value: Schema.String,
|
|
1745
1744
|
}),
|
|
@@ -1753,7 +1752,7 @@ interface ActionParameters7 {
|
|
|
1753
1752
|
/** A Server Name Indication (SNI) override. */
|
|
1754
1753
|
sni?: { value: string } | null;
|
|
1755
1754
|
}
|
|
1756
|
-
const ActionParameters7 = /*@__PURE__*/
|
|
1755
|
+
const ActionParameters7 = /*@__PURE__*/ Schema.suspend(() =>
|
|
1757
1756
|
Schema.Struct({
|
|
1758
1757
|
hostHeader: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1759
1758
|
origin: Schema.optional(Schema.Union([Origin, Schema.Null])),
|
|
@@ -1811,7 +1810,7 @@ interface RouteRule {
|
|
|
1811
1810
|
/** The reference of the rule (the rule's ID by default). */
|
|
1812
1811
|
ref?: string | null;
|
|
1813
1812
|
}
|
|
1814
|
-
const RouteRule = /*@__PURE__*/
|
|
1813
|
+
const RouteRule = /*@__PURE__*/ Schema.suspend(() =>
|
|
1815
1814
|
Schema.Struct({
|
|
1816
1815
|
lastUpdated: Schema.String,
|
|
1817
1816
|
version: Schema.String,
|
|
@@ -1857,7 +1856,7 @@ interface ActionParameters8 {
|
|
|
1857
1856
|
/** A delta to change the score by, which can be either positive or negative. */
|
|
1858
1857
|
increment: number;
|
|
1859
1858
|
}
|
|
1860
|
-
const ActionParameters8 = /*@__PURE__*/
|
|
1859
|
+
const ActionParameters8 = /*@__PURE__*/ Schema.suspend(() =>
|
|
1861
1860
|
Schema.Struct({
|
|
1862
1861
|
increment: Schema.Number,
|
|
1863
1862
|
}),
|
|
@@ -1903,7 +1902,7 @@ interface ScoreRule {
|
|
|
1903
1902
|
/** The reference of the rule (the rule's ID by default). */
|
|
1904
1903
|
ref?: string | null;
|
|
1905
1904
|
}
|
|
1906
|
-
const ScoreRule = /*@__PURE__*/
|
|
1905
|
+
const ScoreRule = /*@__PURE__*/ Schema.suspend(() =>
|
|
1907
1906
|
Schema.Struct({
|
|
1908
1907
|
lastUpdated: Schema.String,
|
|
1909
1908
|
version: Schema.String,
|
|
@@ -1959,7 +1958,7 @@ interface ActionParametersContent {
|
|
|
1959
1958
|
/** The status code to use for the error. */
|
|
1960
1959
|
statusCode?: number | null;
|
|
1961
1960
|
}
|
|
1962
|
-
const ActionParametersContent = /*@__PURE__*/
|
|
1961
|
+
const ActionParametersContent = /*@__PURE__*/ Schema.suspend(() =>
|
|
1963
1962
|
Schema.Struct({
|
|
1964
1963
|
content: Schema.String,
|
|
1965
1964
|
contentType: Schema.optional(
|
|
@@ -2000,7 +1999,7 @@ interface ActionParametersAsset {
|
|
|
2000
1999
|
/** The status code to use for the error. */
|
|
2001
2000
|
statusCode?: number | null;
|
|
2002
2001
|
}
|
|
2003
|
-
const ActionParametersAsset = /*@__PURE__*/
|
|
2002
|
+
const ActionParametersAsset = /*@__PURE__*/ Schema.suspend(() =>
|
|
2004
2003
|
Schema.Struct({
|
|
2005
2004
|
assetName: Schema.String,
|
|
2006
2005
|
contentType: Schema.optional(
|
|
@@ -2090,7 +2089,7 @@ interface ServeErrorRule {
|
|
|
2090
2089
|
/** The reference of the rule (the rule's ID by default). */
|
|
2091
2090
|
ref?: string | null;
|
|
2092
2091
|
}
|
|
2093
|
-
const ServeErrorRule = /*@__PURE__*/
|
|
2092
|
+
const ServeErrorRule = /*@__PURE__*/ Schema.suspend(() =>
|
|
2094
2093
|
Schema.Struct({
|
|
2095
2094
|
lastUpdated: Schema.String,
|
|
2096
2095
|
version: Schema.String,
|
|
@@ -2141,7 +2140,7 @@ interface SetDirective {
|
|
|
2141
2140
|
/** Whether the directive should only be applied to the Cloudflare CDN cache. */
|
|
2142
2141
|
cloudflareOnly?: boolean | null;
|
|
2143
2142
|
}
|
|
2144
|
-
const SetDirective = /*@__PURE__*/
|
|
2143
|
+
const SetDirective = /*@__PURE__*/ Schema.suspend(() =>
|
|
2145
2144
|
Schema.Struct({
|
|
2146
2145
|
operation: Schema.Union([
|
|
2147
2146
|
Schema.Literals(["set", "remove"]),
|
|
@@ -2225,7 +2224,7 @@ interface ActionParameters9 {
|
|
|
2225
2224
|
cloudflareOnly?: boolean | null;
|
|
2226
2225
|
} | null;
|
|
2227
2226
|
}
|
|
2228
|
-
const ActionParameters9 = /*@__PURE__*/
|
|
2227
|
+
const ActionParameters9 = /*@__PURE__*/ Schema.suspend(() =>
|
|
2229
2228
|
Schema.Struct({
|
|
2230
2229
|
immutable: Schema.optional(Schema.Union([SetDirective, Schema.Null])),
|
|
2231
2230
|
maxAge: Schema.optional(Schema.Union([SetDirective, Schema.Null])),
|
|
@@ -2354,47 +2353,46 @@ interface RulesetsSetCacheControlRule {
|
|
|
2354
2353
|
/** The reference of the rule (the rule's ID by default). */
|
|
2355
2354
|
ref?: string | null;
|
|
2356
2355
|
}
|
|
2357
|
-
const RulesetsSetCacheControlRule = /*@__PURE__*/
|
|
2358
|
-
(
|
|
2359
|
-
Schema.
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
Schema.Union([ActionParameters9, Schema.Null]),
|
|
2368
|
-
),
|
|
2369
|
-
categories: Schema.optional(
|
|
2370
|
-
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
2371
|
-
),
|
|
2372
|
-
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2373
|
-
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2374
|
-
exposedCredentialCheck: Schema.optional(
|
|
2375
|
-
Schema.Union([ExposedCredentialCheck, Schema.Null]),
|
|
2376
|
-
),
|
|
2377
|
-
expression: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2378
|
-
logging: Schema.optional(Schema.Union([Logging, Schema.Null])),
|
|
2379
|
-
ratelimit: Schema.optional(Schema.Union([Ratelimit, Schema.Null])),
|
|
2380
|
-
ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2381
|
-
}).pipe(
|
|
2382
|
-
Schema.encodeKeys({
|
|
2383
|
-
lastUpdated: "last_updated",
|
|
2384
|
-
version: "version",
|
|
2385
|
-
id: "id",
|
|
2386
|
-
action: "action",
|
|
2387
|
-
actionParameters: "action_parameters",
|
|
2388
|
-
categories: "categories",
|
|
2389
|
-
description: "description",
|
|
2390
|
-
enabled: "enabled",
|
|
2391
|
-
exposedCredentialCheck: "exposed_credential_check",
|
|
2392
|
-
expression: "expression",
|
|
2393
|
-
logging: "logging",
|
|
2394
|
-
ratelimit: "ratelimit",
|
|
2395
|
-
ref: "ref",
|
|
2396
|
-
}),
|
|
2356
|
+
const RulesetsSetCacheControlRule = /*@__PURE__*/ Schema.suspend(() =>
|
|
2357
|
+
Schema.Struct({
|
|
2358
|
+
lastUpdated: Schema.String,
|
|
2359
|
+
version: Schema.String,
|
|
2360
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2361
|
+
action: Schema.optional(
|
|
2362
|
+
Schema.Union([Schema.Literal("set_cache_control"), Schema.Null]),
|
|
2363
|
+
),
|
|
2364
|
+
actionParameters: Schema.optional(
|
|
2365
|
+
Schema.Union([ActionParameters9, Schema.Null]),
|
|
2397
2366
|
),
|
|
2367
|
+
categories: Schema.optional(
|
|
2368
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
2369
|
+
),
|
|
2370
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2371
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2372
|
+
exposedCredentialCheck: Schema.optional(
|
|
2373
|
+
Schema.Union([ExposedCredentialCheck, Schema.Null]),
|
|
2374
|
+
),
|
|
2375
|
+
expression: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2376
|
+
logging: Schema.optional(Schema.Union([Logging, Schema.Null])),
|
|
2377
|
+
ratelimit: Schema.optional(Schema.Union([Ratelimit, Schema.Null])),
|
|
2378
|
+
ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2379
|
+
}).pipe(
|
|
2380
|
+
Schema.encodeKeys({
|
|
2381
|
+
lastUpdated: "last_updated",
|
|
2382
|
+
version: "version",
|
|
2383
|
+
id: "id",
|
|
2384
|
+
action: "action",
|
|
2385
|
+
actionParameters: "action_parameters",
|
|
2386
|
+
categories: "categories",
|
|
2387
|
+
description: "description",
|
|
2388
|
+
enabled: "enabled",
|
|
2389
|
+
exposedCredentialCheck: "exposed_credential_check",
|
|
2390
|
+
expression: "expression",
|
|
2391
|
+
logging: "logging",
|
|
2392
|
+
ratelimit: "ratelimit",
|
|
2393
|
+
ref: "ref",
|
|
2394
|
+
}),
|
|
2395
|
+
),
|
|
2398
2396
|
) as unknown as Schema.Codec<RulesetsSetCacheControlRule>;
|
|
2399
2397
|
|
|
2400
2398
|
interface BrowserTTL {
|
|
@@ -2408,7 +2406,7 @@ interface BrowserTTL {
|
|
|
2408
2406
|
/** The browser TTL (in seconds) if you choose the "override_origin" mode. */
|
|
2409
2407
|
default?: number | null;
|
|
2410
2408
|
}
|
|
2411
|
-
const BrowserTTL = /*@__PURE__*/
|
|
2409
|
+
const BrowserTTL = /*@__PURE__*/ Schema.suspend(() =>
|
|
2412
2410
|
Schema.Struct({
|
|
2413
2411
|
mode: Schema.Union([
|
|
2414
2412
|
Schema.Literals([
|
|
@@ -2429,7 +2427,7 @@ interface Cookie {
|
|
|
2429
2427
|
/** A list of cookies to include in the cache key. */
|
|
2430
2428
|
include?: string[] | null;
|
|
2431
2429
|
}
|
|
2432
|
-
const Cookie = /*@__PURE__*/
|
|
2430
|
+
const Cookie = /*@__PURE__*/ Schema.suspend(() =>
|
|
2433
2431
|
Schema.Struct({
|
|
2434
2432
|
checkPresence: Schema.optional(
|
|
2435
2433
|
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
@@ -2452,7 +2450,7 @@ interface Header {
|
|
|
2452
2450
|
/** A list of headers to include in the cache key. */
|
|
2453
2451
|
include?: string[] | null;
|
|
2454
2452
|
}
|
|
2455
|
-
const Header = /*@__PURE__*/
|
|
2453
|
+
const Header = /*@__PURE__*/ Schema.suspend(() =>
|
|
2456
2454
|
Schema.Struct({
|
|
2457
2455
|
checkPresence: Schema.optional(
|
|
2458
2456
|
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
@@ -2478,7 +2476,7 @@ interface Host {
|
|
|
2478
2476
|
/** Whether to use the resolved host in the cache key. */
|
|
2479
2477
|
resolved?: boolean | null;
|
|
2480
2478
|
}
|
|
2481
|
-
const Host = /*@__PURE__*/
|
|
2479
|
+
const Host = /*@__PURE__*/ Schema.suspend(() =>
|
|
2482
2480
|
Schema.Struct({
|
|
2483
2481
|
resolved: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2484
2482
|
}),
|
|
@@ -2490,7 +2488,7 @@ interface Exclude2 {
|
|
|
2490
2488
|
/** A list of query string parameters to exclude from the cache key. */
|
|
2491
2489
|
list?: string[] | null;
|
|
2492
2490
|
}
|
|
2493
|
-
const Exclude2 = /*@__PURE__*/
|
|
2491
|
+
const Exclude2 = /*@__PURE__*/ Schema.suspend(() =>
|
|
2494
2492
|
Schema.Struct({
|
|
2495
2493
|
all: Schema.optional(Schema.Union([Schema.Literal(true), Schema.Null])),
|
|
2496
2494
|
list: Schema.optional(
|
|
@@ -2505,7 +2503,7 @@ interface QueryString {
|
|
|
2505
2503
|
/** Which query string parameters to include in the cache key. */
|
|
2506
2504
|
include?: { all?: true | null; list?: string[] | null } | null;
|
|
2507
2505
|
}
|
|
2508
|
-
const QueryString = /*@__PURE__*/
|
|
2506
|
+
const QueryString = /*@__PURE__*/ Schema.suspend(() =>
|
|
2509
2507
|
Schema.Struct({
|
|
2510
2508
|
exclude: Schema.optional(Schema.Union([Exclude2, Schema.Null])),
|
|
2511
2509
|
include: Schema.optional(Schema.Union([Exclude2, Schema.Null])),
|
|
@@ -2520,7 +2518,7 @@ interface User {
|
|
|
2520
2518
|
/** Whether to use the user agent's language in the cache key. */
|
|
2521
2519
|
lang?: boolean | null;
|
|
2522
2520
|
}
|
|
2523
|
-
const User = /*@__PURE__*/
|
|
2521
|
+
const User = /*@__PURE__*/ Schema.suspend(() =>
|
|
2524
2522
|
Schema.Struct({
|
|
2525
2523
|
deviceType: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2526
2524
|
geo: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
@@ -2557,7 +2555,7 @@ interface CustomKey {
|
|
|
2557
2555
|
lang?: boolean | null;
|
|
2558
2556
|
} | null;
|
|
2559
2557
|
}
|
|
2560
|
-
const CustomKey = /*@__PURE__*/
|
|
2558
|
+
const CustomKey = /*@__PURE__*/ Schema.suspend(() =>
|
|
2561
2559
|
Schema.Struct({
|
|
2562
2560
|
cookie: Schema.optional(Schema.Union([Cookie, Schema.Null])),
|
|
2563
2561
|
header: Schema.optional(Schema.Union([Header, Schema.Null])),
|
|
@@ -2606,7 +2604,7 @@ interface CacheKey {
|
|
|
2606
2604
|
/** Whether to treat requests with the same query parameters the same, regardless of the order those query parameters are in. */
|
|
2607
2605
|
ignoreQueryStringsOrder?: boolean | null;
|
|
2608
2606
|
}
|
|
2609
|
-
const CacheKey = /*@__PURE__*/
|
|
2607
|
+
const CacheKey = /*@__PURE__*/ Schema.suspend(() =>
|
|
2610
2608
|
Schema.Struct({
|
|
2611
2609
|
cacheByDeviceType: Schema.optional(
|
|
2612
2610
|
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
@@ -2634,7 +2632,7 @@ interface CacheReserve {
|
|
|
2634
2632
|
/** The minimum file size eligible for storage in Cache Reserve. */
|
|
2635
2633
|
minimumFileSize?: number | null;
|
|
2636
2634
|
}
|
|
2637
|
-
const CacheReserve = /*@__PURE__*/
|
|
2635
|
+
const CacheReserve = /*@__PURE__*/ Schema.suspend(() =>
|
|
2638
2636
|
Schema.Struct({
|
|
2639
2637
|
eligible: Schema.Boolean,
|
|
2640
2638
|
minimumFileSize: Schema.optional(
|
|
@@ -2654,7 +2652,7 @@ interface StatusCodeRange {
|
|
|
2654
2652
|
/** The upper bound of the range. */
|
|
2655
2653
|
to?: number | null;
|
|
2656
2654
|
}
|
|
2657
|
-
const StatusCodeRange = /*@__PURE__*/
|
|
2655
|
+
const StatusCodeRange = /*@__PURE__*/ Schema.suspend(() =>
|
|
2658
2656
|
Schema.Struct({
|
|
2659
2657
|
from: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2660
2658
|
to: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
@@ -2669,7 +2667,7 @@ interface StatusCodeTTL {
|
|
|
2669
2667
|
/** A range of status codes to apply the TTL to. */
|
|
2670
2668
|
statusCodeRange?: { from?: number | null; to?: number | null } | null;
|
|
2671
2669
|
}
|
|
2672
|
-
const StatusCodeTTL = /*@__PURE__*/
|
|
2670
|
+
const StatusCodeTTL = /*@__PURE__*/ Schema.suspend(() =>
|
|
2673
2671
|
Schema.Struct({
|
|
2674
2672
|
value: Schema.Number,
|
|
2675
2673
|
statusCode: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
@@ -2703,7 +2701,7 @@ interface EdgeTTL {
|
|
|
2703
2701
|
}[]
|
|
2704
2702
|
| null;
|
|
2705
2703
|
}
|
|
2706
|
-
const EdgeTTL = /*@__PURE__*/
|
|
2704
|
+
const EdgeTTL = /*@__PURE__*/ Schema.suspend(() =>
|
|
2707
2705
|
Schema.Struct({
|
|
2708
2706
|
mode: Schema.Union([
|
|
2709
2707
|
Schema.Literals([
|
|
@@ -2730,7 +2728,7 @@ interface ServeStale {
|
|
|
2730
2728
|
/** Whether Cloudflare should disable serving stale content while getting the latest content from the origin. */
|
|
2731
2729
|
disableStaleWhileUpdating?: boolean | null;
|
|
2732
2730
|
}
|
|
2733
|
-
const ServeStale = /*@__PURE__*/
|
|
2731
|
+
const ServeStale = /*@__PURE__*/ Schema.suspend(() =>
|
|
2734
2732
|
Schema.Struct({
|
|
2735
2733
|
disableStaleWhileUpdating: Schema.optional(
|
|
2736
2734
|
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
@@ -2746,7 +2744,7 @@ interface SharedDictionary {
|
|
|
2746
2744
|
/** URL pattern for the Use-As-Dictionary match field. This pattern specifies which URLs can use this response as a dictionary. */
|
|
2747
2745
|
matchPattern: string;
|
|
2748
2746
|
}
|
|
2749
|
-
const SharedDictionary = /*@__PURE__*/
|
|
2747
|
+
const SharedDictionary = /*@__PURE__*/ Schema.suspend(() =>
|
|
2750
2748
|
Schema.Struct({
|
|
2751
2749
|
matchPattern: Schema.String,
|
|
2752
2750
|
}).pipe(Schema.encodeKeys({ matchPattern: "match_pattern" })),
|
|
@@ -2756,7 +2754,7 @@ interface Default {
|
|
|
2756
2754
|
/** How the header value is treated when building the cache key. */
|
|
2757
2755
|
action: "bypass" | "passthrough" | "normalize" | (string & {});
|
|
2758
2756
|
}
|
|
2759
|
-
const Default = /*@__PURE__*/
|
|
2757
|
+
const Default = /*@__PURE__*/ Schema.suspend(() =>
|
|
2760
2758
|
Schema.Struct({
|
|
2761
2759
|
action: Schema.Union([
|
|
2762
2760
|
Schema.Literals(["bypass", "passthrough", "normalize"]),
|
|
@@ -2773,7 +2771,7 @@ interface Vary {
|
|
|
2773
2771
|
/** A mapping of lowercase request header names to their vary configuration. */
|
|
2774
2772
|
headers?: Record<string, unknown> | null;
|
|
2775
2773
|
}
|
|
2776
|
-
const Vary = /*@__PURE__*/
|
|
2774
|
+
const Vary = /*@__PURE__*/ Schema.suspend(() =>
|
|
2777
2775
|
Schema.Struct({
|
|
2778
2776
|
default: Schema.optional(Schema.Union([Default, Schema.Null])),
|
|
2779
2777
|
headers: Schema.optional(
|
|
@@ -2869,7 +2867,7 @@ interface ActionParameters10 {
|
|
|
2869
2867
|
headers?: Record<string, unknown> | null;
|
|
2870
2868
|
} | null;
|
|
2871
2869
|
}
|
|
2872
|
-
const ActionParameters10 = /*@__PURE__*/
|
|
2870
|
+
const ActionParameters10 = /*@__PURE__*/ Schema.suspend(() =>
|
|
2873
2871
|
Schema.Struct({
|
|
2874
2872
|
additionalCacheablePorts: Schema.optional(
|
|
2875
2873
|
Schema.Union([Schema.Array(Schema.Number), Schema.Null]),
|
|
@@ -3039,7 +3037,7 @@ interface SetCacheSettingsRule {
|
|
|
3039
3037
|
/** The reference of the rule (the rule's ID by default). */
|
|
3040
3038
|
ref?: string | null;
|
|
3041
3039
|
}
|
|
3042
|
-
const SetCacheSettingsRule = /*@__PURE__*/
|
|
3040
|
+
const SetCacheSettingsRule = /*@__PURE__*/ Schema.suspend(() =>
|
|
3043
3041
|
Schema.Struct({
|
|
3044
3042
|
lastUpdated: Schema.String,
|
|
3045
3043
|
version: Schema.String,
|
|
@@ -3087,7 +3085,7 @@ interface AddCacheTagsValues {
|
|
|
3087
3085
|
/** A list of cache tag values. */
|
|
3088
3086
|
values: string[];
|
|
3089
3087
|
}
|
|
3090
|
-
const AddCacheTagsValues = /*@__PURE__*/
|
|
3088
|
+
const AddCacheTagsValues = /*@__PURE__*/ Schema.suspend(() =>
|
|
3091
3089
|
Schema.Struct({
|
|
3092
3090
|
operation: Schema.Union([
|
|
3093
3091
|
Schema.Literals(["add", "remove", "set"]),
|
|
@@ -3103,7 +3101,7 @@ interface AddCacheTagsExpression {
|
|
|
3103
3101
|
/** The operation to perform on the cache tags. */
|
|
3104
3102
|
operation: "add" | "remove" | "set" | (string & {});
|
|
3105
3103
|
}
|
|
3106
|
-
const AddCacheTagsExpression = /*@__PURE__*/
|
|
3104
|
+
const AddCacheTagsExpression = /*@__PURE__*/ Schema.suspend(() =>
|
|
3107
3105
|
Schema.Struct({
|
|
3108
3106
|
expression: Schema.String,
|
|
3109
3107
|
operation: Schema.Union([
|
|
@@ -3159,50 +3157,49 @@ interface RulesetsSetCacheTagsRule {
|
|
|
3159
3157
|
/** The reference of the rule (the rule's ID by default). */
|
|
3160
3158
|
ref?: string | null;
|
|
3161
3159
|
}
|
|
3162
|
-
const RulesetsSetCacheTagsRule = /*@__PURE__*/
|
|
3163
|
-
(
|
|
3164
|
-
Schema.
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
Schema.Union([
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
Schema.Union([ExposedCredentialCheck, Schema.Null]),
|
|
3184
|
-
),
|
|
3185
|
-
expression: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3186
|
-
logging: Schema.optional(Schema.Union([Logging, Schema.Null])),
|
|
3187
|
-
ratelimit: Schema.optional(Schema.Union([Ratelimit, Schema.Null])),
|
|
3188
|
-
ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3189
|
-
}).pipe(
|
|
3190
|
-
Schema.encodeKeys({
|
|
3191
|
-
lastUpdated: "last_updated",
|
|
3192
|
-
version: "version",
|
|
3193
|
-
id: "id",
|
|
3194
|
-
action: "action",
|
|
3195
|
-
actionParameters: "action_parameters",
|
|
3196
|
-
categories: "categories",
|
|
3197
|
-
description: "description",
|
|
3198
|
-
enabled: "enabled",
|
|
3199
|
-
exposedCredentialCheck: "exposed_credential_check",
|
|
3200
|
-
expression: "expression",
|
|
3201
|
-
logging: "logging",
|
|
3202
|
-
ratelimit: "ratelimit",
|
|
3203
|
-
ref: "ref",
|
|
3204
|
-
}),
|
|
3160
|
+
const RulesetsSetCacheTagsRule = /*@__PURE__*/ Schema.suspend(() =>
|
|
3161
|
+
Schema.Struct({
|
|
3162
|
+
lastUpdated: Schema.String,
|
|
3163
|
+
version: Schema.String,
|
|
3164
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3165
|
+
action: Schema.optional(
|
|
3166
|
+
Schema.Union([Schema.Literal("set_cache_tags"), Schema.Null]),
|
|
3167
|
+
),
|
|
3168
|
+
actionParameters: Schema.optional(
|
|
3169
|
+
Schema.Union([
|
|
3170
|
+
Schema.Union([AddCacheTagsValues, AddCacheTagsExpression]),
|
|
3171
|
+
Schema.Null,
|
|
3172
|
+
]),
|
|
3173
|
+
),
|
|
3174
|
+
categories: Schema.optional(
|
|
3175
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
3176
|
+
),
|
|
3177
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3178
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
3179
|
+
exposedCredentialCheck: Schema.optional(
|
|
3180
|
+
Schema.Union([ExposedCredentialCheck, Schema.Null]),
|
|
3205
3181
|
),
|
|
3182
|
+
expression: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3183
|
+
logging: Schema.optional(Schema.Union([Logging, Schema.Null])),
|
|
3184
|
+
ratelimit: Schema.optional(Schema.Union([Ratelimit, Schema.Null])),
|
|
3185
|
+
ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3186
|
+
}).pipe(
|
|
3187
|
+
Schema.encodeKeys({
|
|
3188
|
+
lastUpdated: "last_updated",
|
|
3189
|
+
version: "version",
|
|
3190
|
+
id: "id",
|
|
3191
|
+
action: "action",
|
|
3192
|
+
actionParameters: "action_parameters",
|
|
3193
|
+
categories: "categories",
|
|
3194
|
+
description: "description",
|
|
3195
|
+
enabled: "enabled",
|
|
3196
|
+
exposedCredentialCheck: "exposed_credential_check",
|
|
3197
|
+
expression: "expression",
|
|
3198
|
+
logging: "logging",
|
|
3199
|
+
ratelimit: "ratelimit",
|
|
3200
|
+
ref: "ref",
|
|
3201
|
+
}),
|
|
3202
|
+
),
|
|
3206
3203
|
) as unknown as Schema.Codec<RulesetsSetCacheTagsRule>;
|
|
3207
3204
|
|
|
3208
3205
|
interface Autominify {
|
|
@@ -3213,7 +3210,7 @@ interface Autominify {
|
|
|
3213
3210
|
/** Whether to minify JavaScript files. */
|
|
3214
3211
|
js?: boolean | null;
|
|
3215
3212
|
}
|
|
3216
|
-
const Autominify = /*@__PURE__*/
|
|
3213
|
+
const Autominify = /*@__PURE__*/ Schema.suspend(() =>
|
|
3217
3214
|
Schema.Struct({
|
|
3218
3215
|
css: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
3219
3216
|
html: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
@@ -3286,7 +3283,7 @@ interface ActionParameters11 {
|
|
|
3286
3283
|
/** Whether to enable Signed Exchanges (SXG). */
|
|
3287
3284
|
sxg?: boolean | null;
|
|
3288
3285
|
}
|
|
3289
|
-
const ActionParameters11 = /*@__PURE__*/
|
|
3286
|
+
const ActionParameters11 = /*@__PURE__*/ Schema.suspend(() =>
|
|
3290
3287
|
Schema.Struct({
|
|
3291
3288
|
automaticHttpsRewrites: Schema.optional(
|
|
3292
3289
|
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
@@ -3486,7 +3483,7 @@ interface SetConfigRule {
|
|
|
3486
3483
|
/** The reference of the rule (the rule's ID by default). */
|
|
3487
3484
|
ref?: string | null;
|
|
3488
3485
|
}
|
|
3489
|
-
const SetConfigRule = /*@__PURE__*/
|
|
3486
|
+
const SetConfigRule = /*@__PURE__*/ Schema.suspend(() =>
|
|
3490
3487
|
Schema.Struct({
|
|
3491
3488
|
lastUpdated: Schema.String,
|
|
3492
3489
|
version: Schema.String,
|
|
@@ -3581,7 +3578,7 @@ interface ActionParameters12 {
|
|
|
3581
3578
|
/** A list of ruleset IDs to skip the execution of. This option is incompatible with the ruleset and phases options. */
|
|
3582
3579
|
rulesets?: string[] | null;
|
|
3583
3580
|
}
|
|
3584
|
-
const ActionParameters12 = /*@__PURE__*/
|
|
3581
|
+
const ActionParameters12 = /*@__PURE__*/ Schema.suspend(() =>
|
|
3585
3582
|
Schema.Struct({
|
|
3586
3583
|
phase: Schema.optional(
|
|
3587
3584
|
Schema.Union([Schema.Literal("current"), Schema.Null]),
|
|
@@ -3739,7 +3736,7 @@ interface SkipRule {
|
|
|
3739
3736
|
/** The reference of the rule (the rule's ID by default). */
|
|
3740
3737
|
ref?: string | null;
|
|
3741
3738
|
}
|
|
3742
|
-
const SkipRule = /*@__PURE__*/
|
|
3739
|
+
const SkipRule = /*@__PURE__*/ Schema.suspend(() =>
|
|
3743
3740
|
Schema.Struct({
|
|
3744
3741
|
lastUpdated: Schema.String,
|
|
3745
3742
|
version: Schema.String,
|
|
@@ -3821,7 +3818,7 @@ interface BlockRuleParam {
|
|
|
3821
3818
|
/** The reference of the rule (the rule's ID by default). */
|
|
3822
3819
|
ref?: string | null;
|
|
3823
3820
|
}
|
|
3824
|
-
const BlockRuleParam = /*@__PURE__*/
|
|
3821
|
+
const BlockRuleParam = /*@__PURE__*/ Schema.suspend(() =>
|
|
3825
3822
|
Schema.Struct({
|
|
3826
3823
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3827
3824
|
action: Schema.optional(
|
|
@@ -3889,7 +3886,7 @@ interface RulesetsChallengeRule2 {
|
|
|
3889
3886
|
/** The reference of the rule (the rule's ID by default). */
|
|
3890
3887
|
ref?: string | null;
|
|
3891
3888
|
}
|
|
3892
|
-
const RulesetsChallengeRule2 = /*@__PURE__*/
|
|
3889
|
+
const RulesetsChallengeRule2 = /*@__PURE__*/ Schema.suspend(() =>
|
|
3893
3890
|
Schema.Struct({
|
|
3894
3891
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3895
3892
|
action: Schema.optional(
|
|
@@ -3969,48 +3966,47 @@ interface CompressResponseRuleParam {
|
|
|
3969
3966
|
/** The reference of the rule (the rule's ID by default). */
|
|
3970
3967
|
ref?: string | null;
|
|
3971
3968
|
}
|
|
3972
|
-
const CompressResponseRuleParam = /*@__PURE__*/
|
|
3973
|
-
(
|
|
3974
|
-
Schema.
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
Schema.Union([Schema.Literal("compress_response"), Schema.Null]),
|
|
3978
|
-
),
|
|
3979
|
-
actionParameters: Schema.optional(
|
|
3980
|
-
Schema.Union([ActionParameters2, Schema.Null]),
|
|
3981
|
-
),
|
|
3982
|
-
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3983
|
-
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
3984
|
-
exposedCredentialCheck: Schema.optional(
|
|
3985
|
-
Schema.Union([ExposedCredentialCheck, Schema.Null]),
|
|
3986
|
-
),
|
|
3987
|
-
expression: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3988
|
-
logging: Schema.optional(Schema.Union([Logging, Schema.Null])),
|
|
3989
|
-
ratelimit: Schema.optional(Schema.Union([Ratelimit, Schema.Null])),
|
|
3990
|
-
ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3991
|
-
}).pipe(
|
|
3992
|
-
Schema.encodeKeys({
|
|
3993
|
-
id: "id",
|
|
3994
|
-
action: "action",
|
|
3995
|
-
actionParameters: "action_parameters",
|
|
3996
|
-
description: "description",
|
|
3997
|
-
enabled: "enabled",
|
|
3998
|
-
exposedCredentialCheck: "exposed_credential_check",
|
|
3999
|
-
expression: "expression",
|
|
4000
|
-
logging: "logging",
|
|
4001
|
-
ratelimit: "ratelimit",
|
|
4002
|
-
ref: "ref",
|
|
4003
|
-
}),
|
|
3969
|
+
const CompressResponseRuleParam = /*@__PURE__*/ Schema.suspend(() =>
|
|
3970
|
+
Schema.Struct({
|
|
3971
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3972
|
+
action: Schema.optional(
|
|
3973
|
+
Schema.Union([Schema.Literal("compress_response"), Schema.Null]),
|
|
4004
3974
|
),
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
|
|
3975
|
+
actionParameters: Schema.optional(
|
|
3976
|
+
Schema.Union([ActionParameters2, Schema.Null]),
|
|
3977
|
+
),
|
|
3978
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3979
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
3980
|
+
exposedCredentialCheck: Schema.optional(
|
|
3981
|
+
Schema.Union([ExposedCredentialCheck, Schema.Null]),
|
|
3982
|
+
),
|
|
3983
|
+
expression: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3984
|
+
logging: Schema.optional(Schema.Union([Logging, Schema.Null])),
|
|
3985
|
+
ratelimit: Schema.optional(Schema.Union([Ratelimit, Schema.Null])),
|
|
3986
|
+
ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3987
|
+
}).pipe(
|
|
3988
|
+
Schema.encodeKeys({
|
|
3989
|
+
id: "id",
|
|
3990
|
+
action: "action",
|
|
3991
|
+
actionParameters: "action_parameters",
|
|
3992
|
+
description: "description",
|
|
3993
|
+
enabled: "enabled",
|
|
3994
|
+
exposedCredentialCheck: "exposed_credential_check",
|
|
3995
|
+
expression: "expression",
|
|
3996
|
+
logging: "logging",
|
|
3997
|
+
ratelimit: "ratelimit",
|
|
3998
|
+
ref: "ref",
|
|
3999
|
+
}),
|
|
4000
|
+
),
|
|
4001
|
+
) as unknown as Schema.Codec<CompressResponseRuleParam>;
|
|
4002
|
+
|
|
4003
|
+
interface DdoSDynamicRuleParam {
|
|
4004
|
+
/** The unique ID of the rule. */
|
|
4005
|
+
id?: string | null;
|
|
4006
|
+
/** The action to perform when the rule matches. */
|
|
4007
|
+
action?: "ddos_dynamic" | null;
|
|
4008
|
+
/** The parameters configuring the rule's action. */
|
|
4009
|
+
actionParameters?: unknown | null;
|
|
4014
4010
|
/** An informative description of the rule. */
|
|
4015
4011
|
description?: string | null;
|
|
4016
4012
|
/** Whether the rule should be executed. */
|
|
@@ -4038,7 +4034,7 @@ interface DdoSDynamicRuleParam {
|
|
|
4038
4034
|
/** The reference of the rule (the rule's ID by default). */
|
|
4039
4035
|
ref?: string | null;
|
|
4040
4036
|
}
|
|
4041
|
-
const DdoSDynamicRuleParam = /*@__PURE__*/
|
|
4037
|
+
const DdoSDynamicRuleParam = /*@__PURE__*/ Schema.suspend(() =>
|
|
4042
4038
|
Schema.Struct({
|
|
4043
4039
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4044
4040
|
action: Schema.optional(
|
|
@@ -4149,7 +4145,7 @@ interface ExecuteRuleParam {
|
|
|
4149
4145
|
/** The reference of the rule (the rule's ID by default). */
|
|
4150
4146
|
ref?: string | null;
|
|
4151
4147
|
}
|
|
4152
|
-
const ExecuteRuleParam = /*@__PURE__*/
|
|
4148
|
+
const ExecuteRuleParam = /*@__PURE__*/ Schema.suspend(() =>
|
|
4153
4149
|
Schema.Struct({
|
|
4154
4150
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4155
4151
|
action: Schema.optional(
|
|
@@ -4218,7 +4214,7 @@ interface ForceConnectionCloseRuleParam {
|
|
|
4218
4214
|
ref?: string | null;
|
|
4219
4215
|
}
|
|
4220
4216
|
const ForceConnectionCloseRuleParam =
|
|
4221
|
-
/*@__PURE__*/
|
|
4217
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
4222
4218
|
Schema.Struct({
|
|
4223
4219
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4224
4220
|
action: Schema.optional(
|
|
@@ -4286,39 +4282,38 @@ interface RulesetsJSChallengeRule2 {
|
|
|
4286
4282
|
/** The reference of the rule (the rule's ID by default). */
|
|
4287
4283
|
ref?: string | null;
|
|
4288
4284
|
}
|
|
4289
|
-
const RulesetsJSChallengeRule2 = /*@__PURE__*/
|
|
4290
|
-
(
|
|
4291
|
-
Schema.
|
|
4292
|
-
|
|
4293
|
-
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
|
|
4297
|
-
Schema.Union([Schema.Unknown, Schema.Null]),
|
|
4298
|
-
),
|
|
4299
|
-
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4300
|
-
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
4301
|
-
exposedCredentialCheck: Schema.optional(
|
|
4302
|
-
Schema.Union([ExposedCredentialCheck, Schema.Null]),
|
|
4303
|
-
),
|
|
4304
|
-
expression: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4305
|
-
logging: Schema.optional(Schema.Union([Logging, Schema.Null])),
|
|
4306
|
-
ratelimit: Schema.optional(Schema.Union([Ratelimit, Schema.Null])),
|
|
4307
|
-
ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4308
|
-
}).pipe(
|
|
4309
|
-
Schema.encodeKeys({
|
|
4310
|
-
id: "id",
|
|
4311
|
-
action: "action",
|
|
4312
|
-
actionParameters: "action_parameters",
|
|
4313
|
-
description: "description",
|
|
4314
|
-
enabled: "enabled",
|
|
4315
|
-
exposedCredentialCheck: "exposed_credential_check",
|
|
4316
|
-
expression: "expression",
|
|
4317
|
-
logging: "logging",
|
|
4318
|
-
ratelimit: "ratelimit",
|
|
4319
|
-
ref: "ref",
|
|
4320
|
-
}),
|
|
4285
|
+
const RulesetsJSChallengeRule2 = /*@__PURE__*/ Schema.suspend(() =>
|
|
4286
|
+
Schema.Struct({
|
|
4287
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4288
|
+
action: Schema.optional(
|
|
4289
|
+
Schema.Union([Schema.Literal("js_challenge"), Schema.Null]),
|
|
4290
|
+
),
|
|
4291
|
+
actionParameters: Schema.optional(
|
|
4292
|
+
Schema.Union([Schema.Unknown, Schema.Null]),
|
|
4321
4293
|
),
|
|
4294
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4295
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
4296
|
+
exposedCredentialCheck: Schema.optional(
|
|
4297
|
+
Schema.Union([ExposedCredentialCheck, Schema.Null]),
|
|
4298
|
+
),
|
|
4299
|
+
expression: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4300
|
+
logging: Schema.optional(Schema.Union([Logging, Schema.Null])),
|
|
4301
|
+
ratelimit: Schema.optional(Schema.Union([Ratelimit, Schema.Null])),
|
|
4302
|
+
ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4303
|
+
}).pipe(
|
|
4304
|
+
Schema.encodeKeys({
|
|
4305
|
+
id: "id",
|
|
4306
|
+
action: "action",
|
|
4307
|
+
actionParameters: "action_parameters",
|
|
4308
|
+
description: "description",
|
|
4309
|
+
enabled: "enabled",
|
|
4310
|
+
exposedCredentialCheck: "exposed_credential_check",
|
|
4311
|
+
expression: "expression",
|
|
4312
|
+
logging: "logging",
|
|
4313
|
+
ratelimit: "ratelimit",
|
|
4314
|
+
ref: "ref",
|
|
4315
|
+
}),
|
|
4316
|
+
),
|
|
4322
4317
|
) as unknown as Schema.Codec<RulesetsJSChallengeRule2>;
|
|
4323
4318
|
|
|
4324
4319
|
interface LogRuleParam {
|
|
@@ -4355,7 +4350,7 @@ interface LogRuleParam {
|
|
|
4355
4350
|
/** The reference of the rule (the rule's ID by default). */
|
|
4356
4351
|
ref?: string | null;
|
|
4357
4352
|
}
|
|
4358
|
-
const LogRuleParam = /*@__PURE__*/
|
|
4353
|
+
const LogRuleParam = /*@__PURE__*/ Schema.suspend(() =>
|
|
4359
4354
|
Schema.Struct({
|
|
4360
4355
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4361
4356
|
action: Schema.optional(Schema.Union([Schema.Literal("log"), Schema.Null])),
|
|
@@ -4431,7 +4426,7 @@ interface LogCustomFieldRuleParam {
|
|
|
4431
4426
|
/** The reference of the rule (the rule's ID by default). */
|
|
4432
4427
|
ref?: string | null;
|
|
4433
4428
|
}
|
|
4434
|
-
const LogCustomFieldRuleParam = /*@__PURE__*/
|
|
4429
|
+
const LogCustomFieldRuleParam = /*@__PURE__*/ Schema.suspend(() =>
|
|
4435
4430
|
Schema.Struct({
|
|
4436
4431
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4437
4432
|
action: Schema.optional(
|
|
@@ -4499,39 +4494,38 @@ interface ManagedChallengeRuleParam {
|
|
|
4499
4494
|
/** The reference of the rule (the rule's ID by default). */
|
|
4500
4495
|
ref?: string | null;
|
|
4501
4496
|
}
|
|
4502
|
-
const ManagedChallengeRuleParam = /*@__PURE__*/
|
|
4503
|
-
(
|
|
4504
|
-
Schema.
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
|
|
4514
|
-
|
|
4515
|
-
Schema.Union([ExposedCredentialCheck, Schema.Null]),
|
|
4516
|
-
),
|
|
4517
|
-
expression: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4518
|
-
logging: Schema.optional(Schema.Union([Logging, Schema.Null])),
|
|
4519
|
-
ratelimit: Schema.optional(Schema.Union([Ratelimit, Schema.Null])),
|
|
4520
|
-
ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4521
|
-
}).pipe(
|
|
4522
|
-
Schema.encodeKeys({
|
|
4523
|
-
id: "id",
|
|
4524
|
-
action: "action",
|
|
4525
|
-
actionParameters: "action_parameters",
|
|
4526
|
-
description: "description",
|
|
4527
|
-
enabled: "enabled",
|
|
4528
|
-
exposedCredentialCheck: "exposed_credential_check",
|
|
4529
|
-
expression: "expression",
|
|
4530
|
-
logging: "logging",
|
|
4531
|
-
ratelimit: "ratelimit",
|
|
4532
|
-
ref: "ref",
|
|
4533
|
-
}),
|
|
4497
|
+
const ManagedChallengeRuleParam = /*@__PURE__*/ Schema.suspend(() =>
|
|
4498
|
+
Schema.Struct({
|
|
4499
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4500
|
+
action: Schema.optional(
|
|
4501
|
+
Schema.Union([Schema.Literal("managed_challenge"), Schema.Null]),
|
|
4502
|
+
),
|
|
4503
|
+
actionParameters: Schema.optional(
|
|
4504
|
+
Schema.Union([Schema.Unknown, Schema.Null]),
|
|
4505
|
+
),
|
|
4506
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4507
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
4508
|
+
exposedCredentialCheck: Schema.optional(
|
|
4509
|
+
Schema.Union([ExposedCredentialCheck, Schema.Null]),
|
|
4534
4510
|
),
|
|
4511
|
+
expression: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4512
|
+
logging: Schema.optional(Schema.Union([Logging, Schema.Null])),
|
|
4513
|
+
ratelimit: Schema.optional(Schema.Union([Ratelimit, Schema.Null])),
|
|
4514
|
+
ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4515
|
+
}).pipe(
|
|
4516
|
+
Schema.encodeKeys({
|
|
4517
|
+
id: "id",
|
|
4518
|
+
action: "action",
|
|
4519
|
+
actionParameters: "action_parameters",
|
|
4520
|
+
description: "description",
|
|
4521
|
+
enabled: "enabled",
|
|
4522
|
+
exposedCredentialCheck: "exposed_credential_check",
|
|
4523
|
+
expression: "expression",
|
|
4524
|
+
logging: "logging",
|
|
4525
|
+
ratelimit: "ratelimit",
|
|
4526
|
+
ref: "ref",
|
|
4527
|
+
}),
|
|
4528
|
+
),
|
|
4535
4529
|
) as unknown as Schema.Codec<ManagedChallengeRuleParam>;
|
|
4536
4530
|
|
|
4537
4531
|
interface FromValue2 {
|
|
@@ -4540,23 +4534,15 @@ interface FromValue2 {
|
|
|
4540
4534
|
/** Whether to keep the query string of the original request. */
|
|
4541
4535
|
preserveQueryString?: boolean | null;
|
|
4542
4536
|
/** The status code to use for the redirect. */
|
|
4543
|
-
statusCode?:
|
|
4537
|
+
statusCode?: number | null;
|
|
4544
4538
|
}
|
|
4545
|
-
const FromValue2 = /*@__PURE__*/
|
|
4539
|
+
const FromValue2 = /*@__PURE__*/ Schema.suspend(() =>
|
|
4546
4540
|
Schema.Struct({
|
|
4547
4541
|
targetUrl: TargetURL,
|
|
4548
4542
|
preserveQueryString: Schema.optional(
|
|
4549
4543
|
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
4550
4544
|
),
|
|
4551
|
-
statusCode: Schema.optional(
|
|
4552
|
-
Schema.Union([
|
|
4553
|
-
Schema.Union([
|
|
4554
|
-
Schema.Literals(["301", "302", "303", "307", "308"]),
|
|
4555
|
-
Schema.String,
|
|
4556
|
-
]),
|
|
4557
|
-
Schema.Null,
|
|
4558
|
-
]),
|
|
4559
|
-
),
|
|
4545
|
+
statusCode: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
4560
4546
|
}).pipe(
|
|
4561
4547
|
Schema.encodeKeys({
|
|
4562
4548
|
targetUrl: "target_url",
|
|
@@ -4573,10 +4559,10 @@ interface ActionParameters13 {
|
|
|
4573
4559
|
fromValue?: {
|
|
4574
4560
|
targetUrl: { expression?: string | null; value?: string | null };
|
|
4575
4561
|
preserveQueryString?: boolean | null;
|
|
4576
|
-
statusCode?:
|
|
4562
|
+
statusCode?: number | null;
|
|
4577
4563
|
} | null;
|
|
4578
4564
|
}
|
|
4579
|
-
const ActionParameters13 = /*@__PURE__*/
|
|
4565
|
+
const ActionParameters13 = /*@__PURE__*/ Schema.suspend(() =>
|
|
4580
4566
|
Schema.Struct({
|
|
4581
4567
|
fromList: Schema.optional(Schema.Union([FromList, Schema.Null])),
|
|
4582
4568
|
fromValue: Schema.optional(Schema.Union([FromValue2, Schema.Null])),
|
|
@@ -4596,7 +4582,7 @@ interface RedirectRuleParam {
|
|
|
4596
4582
|
fromValue?: {
|
|
4597
4583
|
targetUrl: { expression?: string | null; value?: string | null };
|
|
4598
4584
|
preserveQueryString?: boolean | null;
|
|
4599
|
-
statusCode?:
|
|
4585
|
+
statusCode?: number | null;
|
|
4600
4586
|
} | null;
|
|
4601
4587
|
} | null;
|
|
4602
4588
|
/** An informative description of the rule. */
|
|
@@ -4626,7 +4612,7 @@ interface RedirectRuleParam {
|
|
|
4626
4612
|
/** The reference of the rule (the rule's ID by default). */
|
|
4627
4613
|
ref?: string | null;
|
|
4628
4614
|
}
|
|
4629
|
-
const RedirectRuleParam = /*@__PURE__*/
|
|
4615
|
+
const RedirectRuleParam = /*@__PURE__*/ Schema.suspend(() =>
|
|
4630
4616
|
Schema.Struct({
|
|
4631
4617
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4632
4618
|
action: Schema.optional(
|
|
@@ -4664,7 +4650,7 @@ interface Uripath2 {
|
|
|
4664
4650
|
/** A URI path rewrite. */
|
|
4665
4651
|
path: { expression?: string | null; value?: string | null };
|
|
4666
4652
|
}
|
|
4667
|
-
const Uripath2 = /*@__PURE__*/
|
|
4653
|
+
const Uripath2 = /*@__PURE__*/ Schema.suspend(() =>
|
|
4668
4654
|
Schema.Struct({
|
|
4669
4655
|
path: TargetURL,
|
|
4670
4656
|
}),
|
|
@@ -4674,7 +4660,7 @@ interface Uriquery2 {
|
|
|
4674
4660
|
/** A URI query rewrite. */
|
|
4675
4661
|
query: { expression?: string | null; value?: string | null };
|
|
4676
4662
|
}
|
|
4677
|
-
const Uriquery2 = /*@__PURE__*/
|
|
4663
|
+
const Uriquery2 = /*@__PURE__*/ Schema.suspend(() =>
|
|
4678
4664
|
Schema.Struct({
|
|
4679
4665
|
query: TargetURL,
|
|
4680
4666
|
}),
|
|
@@ -4689,7 +4675,7 @@ interface ActionParameters14 {
|
|
|
4689
4675
|
| { query: { expression?: string | null; value?: string | null } }
|
|
4690
4676
|
| null;
|
|
4691
4677
|
}
|
|
4692
|
-
const ActionParameters14 = /*@__PURE__*/
|
|
4678
|
+
const ActionParameters14 = /*@__PURE__*/ Schema.suspend(() =>
|
|
4693
4679
|
Schema.Struct({
|
|
4694
4680
|
headers: Schema.optional(
|
|
4695
4681
|
Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]),
|
|
@@ -4740,7 +4726,7 @@ interface RewriteRuleParam {
|
|
|
4740
4726
|
/** The reference of the rule (the rule's ID by default). */
|
|
4741
4727
|
ref?: string | null;
|
|
4742
4728
|
}
|
|
4743
|
-
const RewriteRuleParam = /*@__PURE__*/
|
|
4729
|
+
const RewriteRuleParam = /*@__PURE__*/ Schema.suspend(() =>
|
|
4744
4730
|
Schema.Struct({
|
|
4745
4731
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4746
4732
|
action: Schema.optional(
|
|
@@ -4812,7 +4798,7 @@ interface RouteRuleParam {
|
|
|
4812
4798
|
/** The reference of the rule (the rule's ID by default). */
|
|
4813
4799
|
ref?: string | null;
|
|
4814
4800
|
}
|
|
4815
|
-
const RouteRuleParam = /*@__PURE__*/
|
|
4801
|
+
const RouteRuleParam = /*@__PURE__*/ Schema.suspend(() =>
|
|
4816
4802
|
Schema.Struct({
|
|
4817
4803
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4818
4804
|
action: Schema.optional(
|
|
@@ -4880,7 +4866,7 @@ interface ScoreRuleParam {
|
|
|
4880
4866
|
/** The reference of the rule (the rule's ID by default). */
|
|
4881
4867
|
ref?: string | null;
|
|
4882
4868
|
}
|
|
4883
|
-
const ScoreRuleParam = /*@__PURE__*/
|
|
4869
|
+
const ScoreRuleParam = /*@__PURE__*/ Schema.suspend(() =>
|
|
4884
4870
|
Schema.Struct({
|
|
4885
4871
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4886
4872
|
action: Schema.optional(
|
|
@@ -4971,7 +4957,7 @@ interface ServeErrorRuleParam {
|
|
|
4971
4957
|
/** The reference of the rule (the rule's ID by default). */
|
|
4972
4958
|
ref?: string | null;
|
|
4973
4959
|
}
|
|
4974
|
-
const ServeErrorRuleParam = /*@__PURE__*/
|
|
4960
|
+
const ServeErrorRuleParam = /*@__PURE__*/ Schema.suspend(() =>
|
|
4975
4961
|
Schema.Struct({
|
|
4976
4962
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4977
4963
|
action: Schema.optional(
|
|
@@ -5095,39 +5081,38 @@ interface RulesetsSetCacheControlRule2 {
|
|
|
5095
5081
|
/** The reference of the rule (the rule's ID by default). */
|
|
5096
5082
|
ref?: string | null;
|
|
5097
5083
|
}
|
|
5098
|
-
const RulesetsSetCacheControlRule2 = /*@__PURE__*/
|
|
5099
|
-
(
|
|
5100
|
-
Schema.
|
|
5101
|
-
|
|
5102
|
-
|
|
5103
|
-
|
|
5104
|
-
|
|
5105
|
-
|
|
5106
|
-
|
|
5107
|
-
|
|
5108
|
-
|
|
5109
|
-
|
|
5110
|
-
|
|
5111
|
-
Schema.Union([ExposedCredentialCheck, Schema.Null]),
|
|
5112
|
-
),
|
|
5113
|
-
expression: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5114
|
-
logging: Schema.optional(Schema.Union([Logging, Schema.Null])),
|
|
5115
|
-
ratelimit: Schema.optional(Schema.Union([Ratelimit, Schema.Null])),
|
|
5116
|
-
ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5117
|
-
}).pipe(
|
|
5118
|
-
Schema.encodeKeys({
|
|
5119
|
-
id: "id",
|
|
5120
|
-
action: "action",
|
|
5121
|
-
actionParameters: "action_parameters",
|
|
5122
|
-
description: "description",
|
|
5123
|
-
enabled: "enabled",
|
|
5124
|
-
exposedCredentialCheck: "exposed_credential_check",
|
|
5125
|
-
expression: "expression",
|
|
5126
|
-
logging: "logging",
|
|
5127
|
-
ratelimit: "ratelimit",
|
|
5128
|
-
ref: "ref",
|
|
5129
|
-
}),
|
|
5084
|
+
const RulesetsSetCacheControlRule2 = /*@__PURE__*/ Schema.suspend(() =>
|
|
5085
|
+
Schema.Struct({
|
|
5086
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5087
|
+
action: Schema.optional(
|
|
5088
|
+
Schema.Union([Schema.Literal("set_cache_control"), Schema.Null]),
|
|
5089
|
+
),
|
|
5090
|
+
actionParameters: Schema.optional(
|
|
5091
|
+
Schema.Union([ActionParameters9, Schema.Null]),
|
|
5092
|
+
),
|
|
5093
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5094
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
5095
|
+
exposedCredentialCheck: Schema.optional(
|
|
5096
|
+
Schema.Union([ExposedCredentialCheck, Schema.Null]),
|
|
5130
5097
|
),
|
|
5098
|
+
expression: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5099
|
+
logging: Schema.optional(Schema.Union([Logging, Schema.Null])),
|
|
5100
|
+
ratelimit: Schema.optional(Schema.Union([Ratelimit, Schema.Null])),
|
|
5101
|
+
ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5102
|
+
}).pipe(
|
|
5103
|
+
Schema.encodeKeys({
|
|
5104
|
+
id: "id",
|
|
5105
|
+
action: "action",
|
|
5106
|
+
actionParameters: "action_parameters",
|
|
5107
|
+
description: "description",
|
|
5108
|
+
enabled: "enabled",
|
|
5109
|
+
exposedCredentialCheck: "exposed_credential_check",
|
|
5110
|
+
expression: "expression",
|
|
5111
|
+
logging: "logging",
|
|
5112
|
+
ratelimit: "ratelimit",
|
|
5113
|
+
ref: "ref",
|
|
5114
|
+
}),
|
|
5115
|
+
),
|
|
5131
5116
|
) as unknown as Schema.Codec<RulesetsSetCacheControlRule2>;
|
|
5132
5117
|
|
|
5133
5118
|
interface SetCacheSettingsRuleParam {
|
|
@@ -5240,39 +5225,38 @@ interface SetCacheSettingsRuleParam {
|
|
|
5240
5225
|
/** The reference of the rule (the rule's ID by default). */
|
|
5241
5226
|
ref?: string | null;
|
|
5242
5227
|
}
|
|
5243
|
-
const SetCacheSettingsRuleParam = /*@__PURE__*/
|
|
5244
|
-
(
|
|
5245
|
-
Schema.
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
|
|
5251
|
-
Schema.Union([ActionParameters10, Schema.Null]),
|
|
5252
|
-
),
|
|
5253
|
-
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5254
|
-
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
5255
|
-
exposedCredentialCheck: Schema.optional(
|
|
5256
|
-
Schema.Union([ExposedCredentialCheck, Schema.Null]),
|
|
5257
|
-
),
|
|
5258
|
-
expression: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5259
|
-
logging: Schema.optional(Schema.Union([Logging, Schema.Null])),
|
|
5260
|
-
ratelimit: Schema.optional(Schema.Union([Ratelimit, Schema.Null])),
|
|
5261
|
-
ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5262
|
-
}).pipe(
|
|
5263
|
-
Schema.encodeKeys({
|
|
5264
|
-
id: "id",
|
|
5265
|
-
action: "action",
|
|
5266
|
-
actionParameters: "action_parameters",
|
|
5267
|
-
description: "description",
|
|
5268
|
-
enabled: "enabled",
|
|
5269
|
-
exposedCredentialCheck: "exposed_credential_check",
|
|
5270
|
-
expression: "expression",
|
|
5271
|
-
logging: "logging",
|
|
5272
|
-
ratelimit: "ratelimit",
|
|
5273
|
-
ref: "ref",
|
|
5274
|
-
}),
|
|
5228
|
+
const SetCacheSettingsRuleParam = /*@__PURE__*/ Schema.suspend(() =>
|
|
5229
|
+
Schema.Struct({
|
|
5230
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5231
|
+
action: Schema.optional(
|
|
5232
|
+
Schema.Union([Schema.Literal("set_cache_settings"), Schema.Null]),
|
|
5233
|
+
),
|
|
5234
|
+
actionParameters: Schema.optional(
|
|
5235
|
+
Schema.Union([ActionParameters10, Schema.Null]),
|
|
5275
5236
|
),
|
|
5237
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5238
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
5239
|
+
exposedCredentialCheck: Schema.optional(
|
|
5240
|
+
Schema.Union([ExposedCredentialCheck, Schema.Null]),
|
|
5241
|
+
),
|
|
5242
|
+
expression: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5243
|
+
logging: Schema.optional(Schema.Union([Logging, Schema.Null])),
|
|
5244
|
+
ratelimit: Schema.optional(Schema.Union([Ratelimit, Schema.Null])),
|
|
5245
|
+
ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5246
|
+
}).pipe(
|
|
5247
|
+
Schema.encodeKeys({
|
|
5248
|
+
id: "id",
|
|
5249
|
+
action: "action",
|
|
5250
|
+
actionParameters: "action_parameters",
|
|
5251
|
+
description: "description",
|
|
5252
|
+
enabled: "enabled",
|
|
5253
|
+
exposedCredentialCheck: "exposed_credential_check",
|
|
5254
|
+
expression: "expression",
|
|
5255
|
+
logging: "logging",
|
|
5256
|
+
ratelimit: "ratelimit",
|
|
5257
|
+
ref: "ref",
|
|
5258
|
+
}),
|
|
5259
|
+
),
|
|
5276
5260
|
) as unknown as Schema.Codec<SetCacheSettingsRuleParam>;
|
|
5277
5261
|
|
|
5278
5262
|
interface RulesetsSetCacheTagsRule2 {
|
|
@@ -5315,42 +5299,41 @@ interface RulesetsSetCacheTagsRule2 {
|
|
|
5315
5299
|
/** The reference of the rule (the rule's ID by default). */
|
|
5316
5300
|
ref?: string | null;
|
|
5317
5301
|
}
|
|
5318
|
-
const RulesetsSetCacheTagsRule2 = /*@__PURE__*/
|
|
5319
|
-
(
|
|
5320
|
-
Schema.
|
|
5321
|
-
|
|
5322
|
-
|
|
5323
|
-
Schema.Union([Schema.Literal("set_cache_tags"), Schema.Null]),
|
|
5324
|
-
),
|
|
5325
|
-
actionParameters: Schema.optional(
|
|
5326
|
-
Schema.Union([
|
|
5327
|
-
Schema.Union([AddCacheTagsValues, AddCacheTagsExpression]),
|
|
5328
|
-
Schema.Null,
|
|
5329
|
-
]),
|
|
5330
|
-
),
|
|
5331
|
-
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5332
|
-
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
5333
|
-
exposedCredentialCheck: Schema.optional(
|
|
5334
|
-
Schema.Union([ExposedCredentialCheck, Schema.Null]),
|
|
5335
|
-
),
|
|
5336
|
-
expression: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5337
|
-
logging: Schema.optional(Schema.Union([Logging, Schema.Null])),
|
|
5338
|
-
ratelimit: Schema.optional(Schema.Union([Ratelimit, Schema.Null])),
|
|
5339
|
-
ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5340
|
-
}).pipe(
|
|
5341
|
-
Schema.encodeKeys({
|
|
5342
|
-
id: "id",
|
|
5343
|
-
action: "action",
|
|
5344
|
-
actionParameters: "action_parameters",
|
|
5345
|
-
description: "description",
|
|
5346
|
-
enabled: "enabled",
|
|
5347
|
-
exposedCredentialCheck: "exposed_credential_check",
|
|
5348
|
-
expression: "expression",
|
|
5349
|
-
logging: "logging",
|
|
5350
|
-
ratelimit: "ratelimit",
|
|
5351
|
-
ref: "ref",
|
|
5352
|
-
}),
|
|
5302
|
+
const RulesetsSetCacheTagsRule2 = /*@__PURE__*/ Schema.suspend(() =>
|
|
5303
|
+
Schema.Struct({
|
|
5304
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5305
|
+
action: Schema.optional(
|
|
5306
|
+
Schema.Union([Schema.Literal("set_cache_tags"), Schema.Null]),
|
|
5353
5307
|
),
|
|
5308
|
+
actionParameters: Schema.optional(
|
|
5309
|
+
Schema.Union([
|
|
5310
|
+
Schema.Union([AddCacheTagsValues, AddCacheTagsExpression]),
|
|
5311
|
+
Schema.Null,
|
|
5312
|
+
]),
|
|
5313
|
+
),
|
|
5314
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5315
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
5316
|
+
exposedCredentialCheck: Schema.optional(
|
|
5317
|
+
Schema.Union([ExposedCredentialCheck, Schema.Null]),
|
|
5318
|
+
),
|
|
5319
|
+
expression: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5320
|
+
logging: Schema.optional(Schema.Union([Logging, Schema.Null])),
|
|
5321
|
+
ratelimit: Schema.optional(Schema.Union([Ratelimit, Schema.Null])),
|
|
5322
|
+
ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5323
|
+
}).pipe(
|
|
5324
|
+
Schema.encodeKeys({
|
|
5325
|
+
id: "id",
|
|
5326
|
+
action: "action",
|
|
5327
|
+
actionParameters: "action_parameters",
|
|
5328
|
+
description: "description",
|
|
5329
|
+
enabled: "enabled",
|
|
5330
|
+
exposedCredentialCheck: "exposed_credential_check",
|
|
5331
|
+
expression: "expression",
|
|
5332
|
+
logging: "logging",
|
|
5333
|
+
ratelimit: "ratelimit",
|
|
5334
|
+
ref: "ref",
|
|
5335
|
+
}),
|
|
5336
|
+
),
|
|
5354
5337
|
) as unknown as Schema.Codec<RulesetsSetCacheTagsRule2>;
|
|
5355
5338
|
|
|
5356
5339
|
interface SetConfigRuleParam {
|
|
@@ -5429,7 +5412,7 @@ interface SetConfigRuleParam {
|
|
|
5429
5412
|
/** The reference of the rule (the rule's ID by default). */
|
|
5430
5413
|
ref?: string | null;
|
|
5431
5414
|
}
|
|
5432
|
-
const SetConfigRuleParam = /*@__PURE__*/
|
|
5415
|
+
const SetConfigRuleParam = /*@__PURE__*/ Schema.suspend(() =>
|
|
5433
5416
|
Schema.Struct({
|
|
5434
5417
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5435
5418
|
action: Schema.optional(
|
|
@@ -5543,7 +5526,7 @@ interface SkipRuleParam {
|
|
|
5543
5526
|
/** The reference of the rule (the rule's ID by default). */
|
|
5544
5527
|
ref?: string | null;
|
|
5545
5528
|
}
|
|
5546
|
-
const SkipRuleParam = /*@__PURE__*/
|
|
5529
|
+
const SkipRuleParam = /*@__PURE__*/ Schema.suspend(() =>
|
|
5547
5530
|
Schema.Struct({
|
|
5548
5531
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5549
5532
|
action: Schema.optional(
|
|
@@ -5577,6 +5560,57 @@ const SkipRuleParam = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
|
|
|
5577
5560
|
),
|
|
5578
5561
|
) as unknown as Schema.Codec<SkipRuleParam>;
|
|
5579
5562
|
|
|
5563
|
+
interface FromValue3 {
|
|
5564
|
+
/** A URL to redirect the request to. */
|
|
5565
|
+
targetUrl: { expression?: string | null; value?: string | null };
|
|
5566
|
+
/** Whether to keep the query string of the original request. */
|
|
5567
|
+
preserveQueryString?: boolean | null;
|
|
5568
|
+
/** The status code to use for the redirect. */
|
|
5569
|
+
statusCode?: "301" | "302" | "303" | "307" | "308" | (string & {}) | null;
|
|
5570
|
+
}
|
|
5571
|
+
const FromValue3 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
|
|
5572
|
+
Schema.Struct({
|
|
5573
|
+
targetUrl: TargetURL,
|
|
5574
|
+
preserveQueryString: Schema.optional(
|
|
5575
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
5576
|
+
),
|
|
5577
|
+
statusCode: Schema.optional(
|
|
5578
|
+
Schema.Union([
|
|
5579
|
+
Schema.Union([
|
|
5580
|
+
Schema.Literals(["301", "302", "303", "307", "308"]),
|
|
5581
|
+
Schema.String,
|
|
5582
|
+
]),
|
|
5583
|
+
Schema.Null,
|
|
5584
|
+
]),
|
|
5585
|
+
),
|
|
5586
|
+
}).pipe(
|
|
5587
|
+
Schema.encodeKeys({
|
|
5588
|
+
targetUrl: "target_url",
|
|
5589
|
+
preserveQueryString: "preserve_query_string",
|
|
5590
|
+
statusCode: "status_code",
|
|
5591
|
+
}),
|
|
5592
|
+
),
|
|
5593
|
+
) as unknown as Schema.Codec<FromValue3>;
|
|
5594
|
+
|
|
5595
|
+
interface ActionParameters15 {
|
|
5596
|
+
/** A redirect based on a bulk list lookup. */
|
|
5597
|
+
fromList?: { key: string; name: string } | null;
|
|
5598
|
+
/** A redirect based on the request properties. */
|
|
5599
|
+
fromValue?: {
|
|
5600
|
+
targetUrl: { expression?: string | null; value?: string | null };
|
|
5601
|
+
preserveQueryString?: boolean | null;
|
|
5602
|
+
statusCode?: "301" | "302" | "303" | "307" | "308" | (string & {}) | null;
|
|
5603
|
+
} | null;
|
|
5604
|
+
}
|
|
5605
|
+
const ActionParameters15 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
|
|
5606
|
+
Schema.Struct({
|
|
5607
|
+
fromList: Schema.optional(Schema.Union([FromList, Schema.Null])),
|
|
5608
|
+
fromValue: Schema.optional(Schema.Union([FromValue3, Schema.Null])),
|
|
5609
|
+
}).pipe(
|
|
5610
|
+
Schema.encodeKeys({ fromList: "from_list", fromValue: "from_value" }),
|
|
5611
|
+
),
|
|
5612
|
+
) as unknown as Schema.Codec<ActionParameters15>;
|
|
5613
|
+
|
|
5580
5614
|
interface RedirectRule2 {
|
|
5581
5615
|
/** The timestamp of when the rule was last modified. */
|
|
5582
5616
|
lastUpdated: string;
|
|
@@ -5624,7 +5658,7 @@ interface RedirectRule2 {
|
|
|
5624
5658
|
/** The reference of the rule (the rule's ID by default). */
|
|
5625
5659
|
ref?: string | null;
|
|
5626
5660
|
}
|
|
5627
|
-
const RedirectRule2 = /*@__PURE__*/
|
|
5661
|
+
const RedirectRule2 = /*@__PURE__*/ Schema.suspend(() =>
|
|
5628
5662
|
Schema.Struct({
|
|
5629
5663
|
lastUpdated: Schema.String,
|
|
5630
5664
|
version: Schema.String,
|
|
@@ -5633,7 +5667,7 @@ const RedirectRule2 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
|
|
|
5633
5667
|
Schema.Union([Schema.Literal("redirect"), Schema.Null]),
|
|
5634
5668
|
),
|
|
5635
5669
|
actionParameters: Schema.optional(
|
|
5636
|
-
Schema.Union([
|
|
5670
|
+
Schema.Union([ActionParameters15, Schema.Null]),
|
|
5637
5671
|
),
|
|
5638
5672
|
categories: Schema.optional(
|
|
5639
5673
|
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
@@ -5708,7 +5742,7 @@ interface ListPhasVersionsResponseResult {
|
|
|
5708
5742
|
description?: string | null;
|
|
5709
5743
|
}
|
|
5710
5744
|
const ListPhasVersionsResponseResult =
|
|
5711
|
-
/*@__PURE__*/
|
|
5745
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
5712
5746
|
Schema.Struct({
|
|
5713
5747
|
id: Schema.String,
|
|
5714
5748
|
kind: Schema.Union([
|
|
@@ -5769,33 +5803,108 @@ interface BeforePosition {
|
|
|
5769
5803
|
/** An index at which to place the rule, where index 1 is the first rule. */
|
|
5770
5804
|
index?: number | null;
|
|
5771
5805
|
}
|
|
5772
|
-
const BeforePosition = /*@__PURE__*/
|
|
5806
|
+
const BeforePosition = /*@__PURE__*/ Schema.suspend(() =>
|
|
5807
|
+
Schema.Struct({
|
|
5808
|
+
before: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5809
|
+
after: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5810
|
+
index: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
5811
|
+
}),
|
|
5812
|
+
) as unknown as Schema.Codec<BeforePosition>;
|
|
5813
|
+
|
|
5814
|
+
interface ListRulesetsResponseResultInfo {
|
|
5815
|
+
count?: number | null;
|
|
5816
|
+
cursor?: string | null;
|
|
5817
|
+
perPage?: number | null;
|
|
5818
|
+
}
|
|
5819
|
+
const ListRulesetsResponseResultInfo =
|
|
5820
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
5821
|
+
Schema.Struct({
|
|
5822
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
5823
|
+
cursor: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5824
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
5825
|
+
}).pipe(
|
|
5826
|
+
Schema.encodeKeys({
|
|
5827
|
+
count: "count",
|
|
5828
|
+
cursor: "cursor",
|
|
5829
|
+
perPage: "per_page",
|
|
5830
|
+
}),
|
|
5831
|
+
),
|
|
5832
|
+
) as unknown as Schema.Codec<ListRulesetsResponseResultInfo>;
|
|
5833
|
+
|
|
5834
|
+
interface RedirectRuleParam2 {
|
|
5835
|
+
/** The unique ID of the rule. */
|
|
5836
|
+
id?: string | null;
|
|
5837
|
+
/** The action to perform when the rule matches. */
|
|
5838
|
+
action?: "redirect" | null;
|
|
5839
|
+
/** The parameters configuring the rule's action. */
|
|
5840
|
+
actionParameters?: {
|
|
5841
|
+
fromList?: { key: string; name: string } | null;
|
|
5842
|
+
fromValue?: {
|
|
5843
|
+
targetUrl: { expression?: string | null; value?: string | null };
|
|
5844
|
+
preserveQueryString?: boolean | null;
|
|
5845
|
+
statusCode?: "301" | "302" | "303" | "307" | "308" | (string & {}) | null;
|
|
5846
|
+
} | null;
|
|
5847
|
+
} | null;
|
|
5848
|
+
/** An informative description of the rule. */
|
|
5849
|
+
description?: string | null;
|
|
5850
|
+
/** Whether the rule should be executed. */
|
|
5851
|
+
enabled?: boolean | null;
|
|
5852
|
+
/** Configuration for exposed credential checking. */
|
|
5853
|
+
exposedCredentialCheck?: {
|
|
5854
|
+
passwordExpression: string;
|
|
5855
|
+
usernameExpression: string;
|
|
5856
|
+
} | null;
|
|
5857
|
+
/** The expression defining which traffic will match the rule. */
|
|
5858
|
+
expression?: string | null;
|
|
5859
|
+
/** An object configuring the rule's logging behavior. */
|
|
5860
|
+
logging?: { enabled: boolean } | null;
|
|
5861
|
+
/** An object configuring the rule's rate limit behavior. */
|
|
5862
|
+
ratelimit?: {
|
|
5863
|
+
characteristics: string[];
|
|
5864
|
+
period: number;
|
|
5865
|
+
countingExpression?: string | null;
|
|
5866
|
+
mitigationTimeout?: number | null;
|
|
5867
|
+
requestsPerPeriod?: number | null;
|
|
5868
|
+
requestsToOrigin?: boolean | null;
|
|
5869
|
+
scorePerPeriod?: number | null;
|
|
5870
|
+
scoreResponseHeaderName?: string | null;
|
|
5871
|
+
} | null;
|
|
5872
|
+
/** The reference of the rule (the rule's ID by default). */
|
|
5873
|
+
ref?: string | null;
|
|
5874
|
+
}
|
|
5875
|
+
const RedirectRuleParam2 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
|
|
5773
5876
|
Schema.Struct({
|
|
5774
|
-
|
|
5775
|
-
|
|
5776
|
-
|
|
5777
|
-
}),
|
|
5778
|
-
) as unknown as Schema.Codec<BeforePosition>;
|
|
5779
|
-
|
|
5780
|
-
interface ListRulesetsResponseResultInfo {
|
|
5781
|
-
count?: number | null;
|
|
5782
|
-
cursor?: string | null;
|
|
5783
|
-
perPage?: number | null;
|
|
5784
|
-
}
|
|
5785
|
-
const ListRulesetsResponseResultInfo =
|
|
5786
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
|
|
5787
|
-
Schema.Struct({
|
|
5788
|
-
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
5789
|
-
cursor: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5790
|
-
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
5791
|
-
}).pipe(
|
|
5792
|
-
Schema.encodeKeys({
|
|
5793
|
-
count: "count",
|
|
5794
|
-
cursor: "cursor",
|
|
5795
|
-
perPage: "per_page",
|
|
5796
|
-
}),
|
|
5877
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5878
|
+
action: Schema.optional(
|
|
5879
|
+
Schema.Union([Schema.Literal("redirect"), Schema.Null]),
|
|
5797
5880
|
),
|
|
5798
|
-
|
|
5881
|
+
actionParameters: Schema.optional(
|
|
5882
|
+
Schema.Union([ActionParameters15, Schema.Null]),
|
|
5883
|
+
),
|
|
5884
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5885
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
5886
|
+
exposedCredentialCheck: Schema.optional(
|
|
5887
|
+
Schema.Union([ExposedCredentialCheck, Schema.Null]),
|
|
5888
|
+
),
|
|
5889
|
+
expression: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5890
|
+
logging: Schema.optional(Schema.Union([Logging, Schema.Null])),
|
|
5891
|
+
ratelimit: Schema.optional(Schema.Union([Ratelimit, Schema.Null])),
|
|
5892
|
+
ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5893
|
+
}).pipe(
|
|
5894
|
+
Schema.encodeKeys({
|
|
5895
|
+
id: "id",
|
|
5896
|
+
action: "action",
|
|
5897
|
+
actionParameters: "action_parameters",
|
|
5898
|
+
description: "description",
|
|
5899
|
+
enabled: "enabled",
|
|
5900
|
+
exposedCredentialCheck: "exposed_credential_check",
|
|
5901
|
+
expression: "expression",
|
|
5902
|
+
logging: "logging",
|
|
5903
|
+
ratelimit: "ratelimit",
|
|
5904
|
+
ref: "ref",
|
|
5905
|
+
}),
|
|
5906
|
+
),
|
|
5907
|
+
) as unknown as Schema.Codec<RedirectRuleParam2>;
|
|
5799
5908
|
|
|
5800
5909
|
// =============================================================================
|
|
5801
5910
|
// Pha
|
|
@@ -5820,7 +5929,7 @@ export interface GetPhasForZoneRequest extends GetPhasBaseRequest {
|
|
|
5820
5929
|
}
|
|
5821
5930
|
|
|
5822
5931
|
export const GetPhasForAccountRequest =
|
|
5823
|
-
/*@__PURE__*/
|
|
5932
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
5824
5933
|
Schema.Struct({
|
|
5825
5934
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
5826
5935
|
...GetPhasBaseFields,
|
|
@@ -5832,17 +5941,16 @@ export const GetPhasForAccountRequest =
|
|
|
5832
5941
|
),
|
|
5833
5942
|
) as unknown as Schema.Codec<GetPhasForAccountRequest>;
|
|
5834
5943
|
|
|
5835
|
-
export const GetPhasForZoneRequest = /*@__PURE__*/
|
|
5836
|
-
(
|
|
5837
|
-
Schema.
|
|
5838
|
-
|
|
5839
|
-
|
|
5840
|
-
|
|
5841
|
-
|
|
5842
|
-
|
|
5843
|
-
|
|
5844
|
-
|
|
5845
|
-
),
|
|
5944
|
+
export const GetPhasForZoneRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
5945
|
+
Schema.Struct({
|
|
5946
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
5947
|
+
...GetPhasBaseFields,
|
|
5948
|
+
}).pipe(
|
|
5949
|
+
T.Http({
|
|
5950
|
+
method: "GET",
|
|
5951
|
+
path: "/zones/{zone_id}/rulesets/phases/{rulesetPhase}/entrypoint",
|
|
5952
|
+
}),
|
|
5953
|
+
),
|
|
5846
5954
|
) as unknown as Schema.Codec<GetPhasForZoneRequest>;
|
|
5847
5955
|
|
|
5848
5956
|
export interface GetPhasResponse {
|
|
@@ -6815,7 +6923,7 @@ export interface GetPhasResponse {
|
|
|
6815
6923
|
description?: string | null;
|
|
6816
6924
|
}
|
|
6817
6925
|
|
|
6818
|
-
export const GetPhasResponse = /*@__PURE__*/
|
|
6926
|
+
export const GetPhasResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
6819
6927
|
Schema.Struct({
|
|
6820
6928
|
id: Schema.String,
|
|
6821
6929
|
kind: Schema.Union([
|
|
@@ -6907,7 +7015,7 @@ export const getPhasForAccount: API.OperationMethod<
|
|
|
6907
7015
|
GetPhasResponse,
|
|
6908
7016
|
GetPhasError,
|
|
6909
7017
|
Credentials | HttpClient.HttpClient
|
|
6910
|
-
> = /*@__PURE__*/
|
|
7018
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
6911
7019
|
input: GetPhasForAccountRequest,
|
|
6912
7020
|
output: GetPhasResponse,
|
|
6913
7021
|
errors: [RulesetNotFound, Forbidden],
|
|
@@ -6918,7 +7026,7 @@ export const getPhasForZone: API.OperationMethod<
|
|
|
6918
7026
|
GetPhasResponse,
|
|
6919
7027
|
GetPhasError,
|
|
6920
7028
|
Credentials | HttpClient.HttpClient
|
|
6921
|
-
> = /*@__PURE__*/
|
|
7029
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
6922
7030
|
input: GetPhasForZoneRequest,
|
|
6923
7031
|
output: GetPhasResponse,
|
|
6924
7032
|
errors: [RulesetNotFound, Forbidden],
|
|
@@ -7271,7 +7379,7 @@ interface PutPhasBaseRequest {
|
|
|
7271
7379
|
fromValue?: {
|
|
7272
7380
|
targetUrl: { expression?: string; value?: string };
|
|
7273
7381
|
preserveQueryString?: boolean;
|
|
7274
|
-
statusCode?:
|
|
7382
|
+
statusCode?: number;
|
|
7275
7383
|
};
|
|
7276
7384
|
};
|
|
7277
7385
|
description?: string;
|
|
@@ -7753,7 +7861,7 @@ export interface PutPhasForZoneRequest extends PutPhasBaseRequest {
|
|
|
7753
7861
|
}
|
|
7754
7862
|
|
|
7755
7863
|
export const PutPhasForAccountRequest =
|
|
7756
|
-
/*@__PURE__*/
|
|
7864
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
7757
7865
|
Schema.Struct({
|
|
7758
7866
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
7759
7867
|
...PutPhasBaseFields,
|
|
@@ -7765,17 +7873,16 @@ export const PutPhasForAccountRequest =
|
|
|
7765
7873
|
),
|
|
7766
7874
|
) as unknown as Schema.Codec<PutPhasForAccountRequest>;
|
|
7767
7875
|
|
|
7768
|
-
export const PutPhasForZoneRequest = /*@__PURE__*/
|
|
7769
|
-
(
|
|
7770
|
-
Schema.
|
|
7771
|
-
|
|
7772
|
-
|
|
7773
|
-
|
|
7774
|
-
|
|
7775
|
-
|
|
7776
|
-
|
|
7777
|
-
|
|
7778
|
-
),
|
|
7876
|
+
export const PutPhasForZoneRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
7877
|
+
Schema.Struct({
|
|
7878
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
7879
|
+
...PutPhasBaseFields,
|
|
7880
|
+
}).pipe(
|
|
7881
|
+
T.Http({
|
|
7882
|
+
method: "PUT",
|
|
7883
|
+
path: "/zones/{zone_id}/rulesets/phases/{rulesetPhase}/entrypoint",
|
|
7884
|
+
}),
|
|
7885
|
+
),
|
|
7779
7886
|
) as unknown as Schema.Codec<PutPhasForZoneRequest>;
|
|
7780
7887
|
|
|
7781
7888
|
export interface PutPhasResponse {
|
|
@@ -8177,7 +8284,7 @@ export interface PutPhasResponse {
|
|
|
8177
8284
|
| "303"
|
|
8178
8285
|
| "307"
|
|
8179
8286
|
| "308"
|
|
8180
|
-
|
|
|
8287
|
+
| number
|
|
8181
8288
|
| null;
|
|
8182
8289
|
} | null;
|
|
8183
8290
|
} | null;
|
|
@@ -8748,7 +8855,7 @@ export interface PutPhasResponse {
|
|
|
8748
8855
|
description?: string | null;
|
|
8749
8856
|
}
|
|
8750
8857
|
|
|
8751
|
-
export const PutPhasResponse = /*@__PURE__*/
|
|
8858
|
+
export const PutPhasResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
8752
8859
|
Schema.Struct({
|
|
8753
8860
|
id: Schema.String,
|
|
8754
8861
|
kind: Schema.Union([
|
|
@@ -8800,7 +8907,7 @@ export const PutPhasResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
|
|
|
8800
8907
|
LogRule,
|
|
8801
8908
|
LogCustomFieldRule,
|
|
8802
8909
|
ManagedChallengeRule,
|
|
8803
|
-
|
|
8910
|
+
RedirectRule,
|
|
8804
8911
|
RewriteRule,
|
|
8805
8912
|
RouteRule,
|
|
8806
8913
|
ScoreRule,
|
|
@@ -8844,7 +8951,7 @@ export const putPhasForAccount: API.OperationMethod<
|
|
|
8844
8951
|
PutPhasResponse,
|
|
8845
8952
|
PutPhasError,
|
|
8846
8953
|
Credentials | HttpClient.HttpClient
|
|
8847
|
-
> = /*@__PURE__*/
|
|
8954
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
8848
8955
|
input: PutPhasForAccountRequest,
|
|
8849
8956
|
output: PutPhasResponse,
|
|
8850
8957
|
errors: [RulesetNotFound, PhaseNotEntitled, Forbidden],
|
|
@@ -8855,7 +8962,7 @@ export const putPhasForZone: API.OperationMethod<
|
|
|
8855
8962
|
PutPhasResponse,
|
|
8856
8963
|
PutPhasError,
|
|
8857
8964
|
Credentials | HttpClient.HttpClient
|
|
8858
|
-
> = /*@__PURE__*/
|
|
8965
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
8859
8966
|
input: PutPhasForZoneRequest,
|
|
8860
8967
|
output: PutPhasResponse,
|
|
8861
8968
|
errors: [RulesetNotFound, PhaseNotEntitled, Forbidden],
|
|
@@ -8886,7 +8993,7 @@ export interface GetPhasVersionForZoneRequest extends GetPhasVersionBaseRequest
|
|
|
8886
8993
|
}
|
|
8887
8994
|
|
|
8888
8995
|
export const GetPhasVersionForAccountRequest =
|
|
8889
|
-
/*@__PURE__*/
|
|
8996
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
8890
8997
|
Schema.Struct({
|
|
8891
8998
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
8892
8999
|
...GetPhasVersionBaseFields,
|
|
@@ -8899,7 +9006,7 @@ export const GetPhasVersionForAccountRequest =
|
|
|
8899
9006
|
) as unknown as Schema.Codec<GetPhasVersionForAccountRequest>;
|
|
8900
9007
|
|
|
8901
9008
|
export const GetPhasVersionForZoneRequest =
|
|
8902
|
-
/*@__PURE__*/
|
|
9009
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
8903
9010
|
Schema.Struct({
|
|
8904
9011
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
8905
9012
|
...GetPhasVersionBaseFields,
|
|
@@ -9852,7 +9959,7 @@ export interface GetPhasVersionResponse {
|
|
|
9852
9959
|
}
|
|
9853
9960
|
|
|
9854
9961
|
export const GetPhasVersionResponse =
|
|
9855
|
-
/*@__PURE__*/
|
|
9962
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
9856
9963
|
Schema.Struct({
|
|
9857
9964
|
id: Schema.String,
|
|
9858
9965
|
kind: Schema.Union([
|
|
@@ -9939,7 +10046,7 @@ export const getPhasVersionForAccount: API.OperationMethod<
|
|
|
9939
10046
|
GetPhasVersionResponse,
|
|
9940
10047
|
GetPhasVersionError,
|
|
9941
10048
|
Credentials | HttpClient.HttpClient
|
|
9942
|
-
> = /*@__PURE__*/
|
|
10049
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
9943
10050
|
input: GetPhasVersionForAccountRequest,
|
|
9944
10051
|
output: GetPhasVersionResponse,
|
|
9945
10052
|
errors: [],
|
|
@@ -9950,7 +10057,7 @@ export const getPhasVersionForZone: API.OperationMethod<
|
|
|
9950
10057
|
GetPhasVersionResponse,
|
|
9951
10058
|
GetPhasVersionError,
|
|
9952
10059
|
Credentials | HttpClient.HttpClient
|
|
9953
|
-
> = /*@__PURE__*/
|
|
10060
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
9954
10061
|
input: GetPhasVersionForZoneRequest,
|
|
9955
10062
|
output: GetPhasVersionResponse,
|
|
9956
10063
|
errors: [],
|
|
@@ -9975,7 +10082,7 @@ export interface ListPhasVersionsForZoneRequest extends ListPhasVersionsBaseRequ
|
|
|
9975
10082
|
}
|
|
9976
10083
|
|
|
9977
10084
|
export const ListPhasVersionsForAccountRequest =
|
|
9978
|
-
/*@__PURE__*/
|
|
10085
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
9979
10086
|
Schema.Struct({
|
|
9980
10087
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
9981
10088
|
...ListPhasVersionsBaseFields,
|
|
@@ -9988,7 +10095,7 @@ export const ListPhasVersionsForAccountRequest =
|
|
|
9988
10095
|
) as unknown as Schema.Codec<ListPhasVersionsForAccountRequest>;
|
|
9989
10096
|
|
|
9990
10097
|
export const ListPhasVersionsForZoneRequest =
|
|
9991
|
-
/*@__PURE__*/
|
|
10098
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
9992
10099
|
Schema.Struct({
|
|
9993
10100
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
9994
10101
|
...ListPhasVersionsBaseFields,
|
|
@@ -10038,7 +10145,7 @@ export interface ListPhasVersionsResponse {
|
|
|
10038
10145
|
}
|
|
10039
10146
|
|
|
10040
10147
|
export const ListPhasVersionsResponse =
|
|
10041
|
-
/*@__PURE__*/
|
|
10148
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
10042
10149
|
Schema.Struct({
|
|
10043
10150
|
result: Schema.Array(ListPhasVersionsResponseResult),
|
|
10044
10151
|
}),
|
|
@@ -10051,7 +10158,7 @@ export const listPhasVersionsForAccount: API.PaginatedOperationMethod<
|
|
|
10051
10158
|
ListPhasVersionsResponse,
|
|
10052
10159
|
ListPhasVersionsError,
|
|
10053
10160
|
Credentials | HttpClient.HttpClient
|
|
10054
|
-
> = /*@__PURE__*/
|
|
10161
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
10055
10162
|
input: ListPhasVersionsForAccountRequest,
|
|
10056
10163
|
output: ListPhasVersionsResponse,
|
|
10057
10164
|
errors: [],
|
|
@@ -10066,7 +10173,7 @@ export const listPhasVersionsForZone: API.PaginatedOperationMethod<
|
|
|
10066
10173
|
ListPhasVersionsResponse,
|
|
10067
10174
|
ListPhasVersionsError,
|
|
10068
10175
|
Credentials | HttpClient.HttpClient
|
|
10069
|
-
> = /*@__PURE__*/
|
|
10176
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
10070
10177
|
input: ListPhasVersionsForZoneRequest,
|
|
10071
10178
|
output: ListPhasVersionsResponse,
|
|
10072
10179
|
errors: [],
|
|
@@ -10121,7 +10228,7 @@ const CreateRuleBaseFields = {
|
|
|
10121
10228
|
ActionParametersAsset,
|
|
10122
10229
|
ActionParameters,
|
|
10123
10230
|
ActionParameters4,
|
|
10124
|
-
|
|
10231
|
+
ActionParameters15,
|
|
10125
10232
|
ActionParameters14,
|
|
10126
10233
|
ActionParameters7,
|
|
10127
10234
|
ActionParameters9,
|
|
@@ -10510,7 +10617,7 @@ export interface CreateRuleForZoneRequest extends CreateRuleBaseRequest {
|
|
|
10510
10617
|
}
|
|
10511
10618
|
|
|
10512
10619
|
export const CreateRuleForAccountRequest =
|
|
10513
|
-
/*@__PURE__*/
|
|
10620
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
10514
10621
|
Schema.Struct({
|
|
10515
10622
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
10516
10623
|
...CreateRuleBaseFields,
|
|
@@ -10536,7 +10643,7 @@ export const CreateRuleForAccountRequest =
|
|
|
10536
10643
|
) as unknown as Schema.Codec<CreateRuleForAccountRequest>;
|
|
10537
10644
|
|
|
10538
10645
|
export const CreateRuleForZoneRequest =
|
|
10539
|
-
/*@__PURE__*/
|
|
10646
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
10540
10647
|
Schema.Struct({
|
|
10541
10648
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
10542
10649
|
...CreateRuleBaseFields,
|
|
@@ -11501,85 +11608,84 @@ export interface CreateRuleResponse {
|
|
|
11501
11608
|
description?: string | null;
|
|
11502
11609
|
}
|
|
11503
11610
|
|
|
11504
|
-
export const CreateRuleResponse = /*@__PURE__*/
|
|
11505
|
-
(
|
|
11506
|
-
Schema.
|
|
11507
|
-
|
|
11508
|
-
|
|
11509
|
-
|
|
11510
|
-
|
|
11611
|
+
export const CreateRuleResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
11612
|
+
Schema.Struct({
|
|
11613
|
+
id: Schema.String,
|
|
11614
|
+
kind: Schema.Union([
|
|
11615
|
+
Schema.Literals(["managed", "custom", "root", "zone"]),
|
|
11616
|
+
Schema.String,
|
|
11617
|
+
]),
|
|
11618
|
+
lastUpdated: Schema.String,
|
|
11619
|
+
name: Schema.String,
|
|
11620
|
+
phase: Schema.Union([
|
|
11621
|
+
Schema.Literals([
|
|
11622
|
+
"ddos_l4",
|
|
11623
|
+
"ddos_l7",
|
|
11624
|
+
"http_config_settings",
|
|
11625
|
+
"http_custom_errors",
|
|
11626
|
+
"http_log_custom_fields",
|
|
11627
|
+
"http_ratelimit",
|
|
11628
|
+
"http_request_cache_settings",
|
|
11629
|
+
"http_request_dynamic_redirect",
|
|
11630
|
+
"http_request_firewall_custom",
|
|
11631
|
+
"http_request_firewall_managed",
|
|
11632
|
+
"http_request_late_transform",
|
|
11633
|
+
"http_request_origin",
|
|
11634
|
+
"http_request_redirect",
|
|
11635
|
+
"http_request_sanitize",
|
|
11636
|
+
"http_request_sbfm",
|
|
11637
|
+
"http_request_transform",
|
|
11638
|
+
"http_response_cache_settings",
|
|
11639
|
+
"http_response_compression",
|
|
11640
|
+
"http_response_firewall_managed",
|
|
11641
|
+
"http_response_headers_transform",
|
|
11642
|
+
"magic_transit",
|
|
11643
|
+
"magic_transit_ids_managed",
|
|
11644
|
+
"magic_transit_managed",
|
|
11645
|
+
"magic_transit_ratelimit",
|
|
11511
11646
|
]),
|
|
11512
|
-
|
|
11513
|
-
|
|
11514
|
-
|
|
11515
|
-
|
|
11516
|
-
|
|
11517
|
-
|
|
11518
|
-
|
|
11519
|
-
|
|
11520
|
-
|
|
11521
|
-
|
|
11522
|
-
|
|
11523
|
-
|
|
11524
|
-
|
|
11525
|
-
|
|
11526
|
-
|
|
11527
|
-
|
|
11528
|
-
|
|
11529
|
-
|
|
11530
|
-
|
|
11531
|
-
|
|
11532
|
-
|
|
11533
|
-
|
|
11534
|
-
|
|
11535
|
-
|
|
11536
|
-
"magic_transit",
|
|
11537
|
-
"magic_transit_ids_managed",
|
|
11538
|
-
"magic_transit_managed",
|
|
11539
|
-
"magic_transit_ratelimit",
|
|
11540
|
-
]),
|
|
11541
|
-
Schema.String,
|
|
11647
|
+
Schema.String,
|
|
11648
|
+
]),
|
|
11649
|
+
rules: Schema.Array(
|
|
11650
|
+
Schema.Union([
|
|
11651
|
+
BlockRule,
|
|
11652
|
+
RulesetsChallengeRule,
|
|
11653
|
+
CompressResponseRule,
|
|
11654
|
+
DdoSDynamicRule,
|
|
11655
|
+
ExecuteRule,
|
|
11656
|
+
ForceConnectionCloseRule,
|
|
11657
|
+
RulesetsJSChallengeRule,
|
|
11658
|
+
LogRule,
|
|
11659
|
+
LogCustomFieldRule,
|
|
11660
|
+
ManagedChallengeRule,
|
|
11661
|
+
RedirectRule2,
|
|
11662
|
+
RewriteRule,
|
|
11663
|
+
RouteRule,
|
|
11664
|
+
ScoreRule,
|
|
11665
|
+
ServeErrorRule,
|
|
11666
|
+
RulesetsSetCacheControlRule,
|
|
11667
|
+
SetCacheSettingsRule,
|
|
11668
|
+
RulesetsSetCacheTagsRule,
|
|
11669
|
+
SetConfigRule,
|
|
11670
|
+
SkipRule,
|
|
11542
11671
|
]),
|
|
11543
|
-
|
|
11544
|
-
|
|
11545
|
-
|
|
11546
|
-
|
|
11547
|
-
|
|
11548
|
-
|
|
11549
|
-
|
|
11550
|
-
|
|
11551
|
-
|
|
11552
|
-
|
|
11553
|
-
|
|
11554
|
-
|
|
11555
|
-
|
|
11556
|
-
|
|
11557
|
-
|
|
11558
|
-
|
|
11559
|
-
|
|
11560
|
-
RulesetsSetCacheControlRule,
|
|
11561
|
-
SetCacheSettingsRule,
|
|
11562
|
-
RulesetsSetCacheTagsRule,
|
|
11563
|
-
SetConfigRule,
|
|
11564
|
-
SkipRule,
|
|
11565
|
-
]),
|
|
11566
|
-
),
|
|
11567
|
-
version: Schema.String,
|
|
11568
|
-
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
11569
|
-
})
|
|
11570
|
-
.pipe(
|
|
11571
|
-
Schema.encodeKeys({
|
|
11572
|
-
id: "id",
|
|
11573
|
-
kind: "kind",
|
|
11574
|
-
lastUpdated: "last_updated",
|
|
11575
|
-
name: "name",
|
|
11576
|
-
phase: "phase",
|
|
11577
|
-
rules: "rules",
|
|
11578
|
-
version: "version",
|
|
11579
|
-
description: "description",
|
|
11580
|
-
}),
|
|
11581
|
-
)
|
|
11582
|
-
.pipe(T.ResponsePath("result")),
|
|
11672
|
+
),
|
|
11673
|
+
version: Schema.String,
|
|
11674
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
11675
|
+
})
|
|
11676
|
+
.pipe(
|
|
11677
|
+
Schema.encodeKeys({
|
|
11678
|
+
id: "id",
|
|
11679
|
+
kind: "kind",
|
|
11680
|
+
lastUpdated: "last_updated",
|
|
11681
|
+
name: "name",
|
|
11682
|
+
phase: "phase",
|
|
11683
|
+
rules: "rules",
|
|
11684
|
+
version: "version",
|
|
11685
|
+
description: "description",
|
|
11686
|
+
}),
|
|
11687
|
+
)
|
|
11688
|
+
.pipe(T.ResponsePath("result")),
|
|
11583
11689
|
) as unknown as Schema.Codec<CreateRuleResponse>;
|
|
11584
11690
|
|
|
11585
11691
|
export type CreateRuleError = DefaultErrors;
|
|
@@ -11589,7 +11695,7 @@ export const createRuleForAccount: API.OperationMethod<
|
|
|
11589
11695
|
CreateRuleResponse,
|
|
11590
11696
|
CreateRuleError,
|
|
11591
11697
|
Credentials | HttpClient.HttpClient
|
|
11592
|
-
> = /*@__PURE__*/
|
|
11698
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
11593
11699
|
input: CreateRuleForAccountRequest,
|
|
11594
11700
|
output: CreateRuleResponse,
|
|
11595
11701
|
errors: [],
|
|
@@ -11600,7 +11706,7 @@ export const createRuleForZone: API.OperationMethod<
|
|
|
11600
11706
|
CreateRuleResponse,
|
|
11601
11707
|
CreateRuleError,
|
|
11602
11708
|
Credentials | HttpClient.HttpClient
|
|
11603
|
-
> = /*@__PURE__*/
|
|
11709
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
11604
11710
|
input: CreateRuleForZoneRequest,
|
|
11605
11711
|
output: CreateRuleResponse,
|
|
11606
11712
|
errors: [],
|
|
@@ -11648,7 +11754,7 @@ const PatchRuleBaseFields = {
|
|
|
11648
11754
|
ActionParametersAsset,
|
|
11649
11755
|
ActionParameters,
|
|
11650
11756
|
ActionParameters4,
|
|
11651
|
-
|
|
11757
|
+
ActionParameters15,
|
|
11652
11758
|
ActionParameters14,
|
|
11653
11759
|
ActionParameters7,
|
|
11654
11760
|
ActionParameters9,
|
|
@@ -12038,7 +12144,7 @@ export interface PatchRuleForZoneRequest extends PatchRuleBaseRequest {
|
|
|
12038
12144
|
}
|
|
12039
12145
|
|
|
12040
12146
|
export const PatchRuleForAccountRequest =
|
|
12041
|
-
/*@__PURE__*/
|
|
12147
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
12042
12148
|
Schema.Struct({
|
|
12043
12149
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
12044
12150
|
...PatchRuleBaseFields,
|
|
@@ -12064,7 +12170,7 @@ export const PatchRuleForAccountRequest =
|
|
|
12064
12170
|
) as unknown as Schema.Codec<PatchRuleForAccountRequest>;
|
|
12065
12171
|
|
|
12066
12172
|
export const PatchRuleForZoneRequest =
|
|
12067
|
-
/*@__PURE__*/
|
|
12173
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
12068
12174
|
Schema.Struct({
|
|
12069
12175
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
12070
12176
|
...PatchRuleBaseFields,
|
|
@@ -13029,85 +13135,84 @@ export interface PatchRuleResponse {
|
|
|
13029
13135
|
description?: string | null;
|
|
13030
13136
|
}
|
|
13031
13137
|
|
|
13032
|
-
export const PatchRuleResponse = /*@__PURE__*/
|
|
13033
|
-
(
|
|
13034
|
-
Schema.
|
|
13035
|
-
|
|
13036
|
-
|
|
13037
|
-
|
|
13038
|
-
|
|
13138
|
+
export const PatchRuleResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
13139
|
+
Schema.Struct({
|
|
13140
|
+
id: Schema.String,
|
|
13141
|
+
kind: Schema.Union([
|
|
13142
|
+
Schema.Literals(["managed", "custom", "root", "zone"]),
|
|
13143
|
+
Schema.String,
|
|
13144
|
+
]),
|
|
13145
|
+
lastUpdated: Schema.String,
|
|
13146
|
+
name: Schema.String,
|
|
13147
|
+
phase: Schema.Union([
|
|
13148
|
+
Schema.Literals([
|
|
13149
|
+
"ddos_l4",
|
|
13150
|
+
"ddos_l7",
|
|
13151
|
+
"http_config_settings",
|
|
13152
|
+
"http_custom_errors",
|
|
13153
|
+
"http_log_custom_fields",
|
|
13154
|
+
"http_ratelimit",
|
|
13155
|
+
"http_request_cache_settings",
|
|
13156
|
+
"http_request_dynamic_redirect",
|
|
13157
|
+
"http_request_firewall_custom",
|
|
13158
|
+
"http_request_firewall_managed",
|
|
13159
|
+
"http_request_late_transform",
|
|
13160
|
+
"http_request_origin",
|
|
13161
|
+
"http_request_redirect",
|
|
13162
|
+
"http_request_sanitize",
|
|
13163
|
+
"http_request_sbfm",
|
|
13164
|
+
"http_request_transform",
|
|
13165
|
+
"http_response_cache_settings",
|
|
13166
|
+
"http_response_compression",
|
|
13167
|
+
"http_response_firewall_managed",
|
|
13168
|
+
"http_response_headers_transform",
|
|
13169
|
+
"magic_transit",
|
|
13170
|
+
"magic_transit_ids_managed",
|
|
13171
|
+
"magic_transit_managed",
|
|
13172
|
+
"magic_transit_ratelimit",
|
|
13039
13173
|
]),
|
|
13040
|
-
|
|
13041
|
-
|
|
13042
|
-
|
|
13043
|
-
|
|
13044
|
-
|
|
13045
|
-
|
|
13046
|
-
|
|
13047
|
-
|
|
13048
|
-
|
|
13049
|
-
|
|
13050
|
-
|
|
13051
|
-
|
|
13052
|
-
|
|
13053
|
-
|
|
13054
|
-
|
|
13055
|
-
|
|
13056
|
-
|
|
13057
|
-
|
|
13058
|
-
|
|
13059
|
-
|
|
13060
|
-
|
|
13061
|
-
|
|
13062
|
-
|
|
13063
|
-
|
|
13064
|
-
"magic_transit",
|
|
13065
|
-
"magic_transit_ids_managed",
|
|
13066
|
-
"magic_transit_managed",
|
|
13067
|
-
"magic_transit_ratelimit",
|
|
13068
|
-
]),
|
|
13069
|
-
Schema.String,
|
|
13174
|
+
Schema.String,
|
|
13175
|
+
]),
|
|
13176
|
+
rules: Schema.Array(
|
|
13177
|
+
Schema.Union([
|
|
13178
|
+
BlockRule,
|
|
13179
|
+
RulesetsChallengeRule,
|
|
13180
|
+
CompressResponseRule,
|
|
13181
|
+
DdoSDynamicRule,
|
|
13182
|
+
ExecuteRule,
|
|
13183
|
+
ForceConnectionCloseRule,
|
|
13184
|
+
RulesetsJSChallengeRule,
|
|
13185
|
+
LogRule,
|
|
13186
|
+
LogCustomFieldRule,
|
|
13187
|
+
ManagedChallengeRule,
|
|
13188
|
+
RedirectRule2,
|
|
13189
|
+
RewriteRule,
|
|
13190
|
+
RouteRule,
|
|
13191
|
+
ScoreRule,
|
|
13192
|
+
ServeErrorRule,
|
|
13193
|
+
RulesetsSetCacheControlRule,
|
|
13194
|
+
SetCacheSettingsRule,
|
|
13195
|
+
RulesetsSetCacheTagsRule,
|
|
13196
|
+
SetConfigRule,
|
|
13197
|
+
SkipRule,
|
|
13070
13198
|
]),
|
|
13071
|
-
|
|
13072
|
-
|
|
13073
|
-
|
|
13074
|
-
|
|
13075
|
-
|
|
13076
|
-
|
|
13077
|
-
|
|
13078
|
-
|
|
13079
|
-
|
|
13080
|
-
|
|
13081
|
-
|
|
13082
|
-
|
|
13083
|
-
|
|
13084
|
-
|
|
13085
|
-
|
|
13086
|
-
|
|
13087
|
-
|
|
13088
|
-
RulesetsSetCacheControlRule,
|
|
13089
|
-
SetCacheSettingsRule,
|
|
13090
|
-
RulesetsSetCacheTagsRule,
|
|
13091
|
-
SetConfigRule,
|
|
13092
|
-
SkipRule,
|
|
13093
|
-
]),
|
|
13094
|
-
),
|
|
13095
|
-
version: Schema.String,
|
|
13096
|
-
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
13097
|
-
})
|
|
13098
|
-
.pipe(
|
|
13099
|
-
Schema.encodeKeys({
|
|
13100
|
-
id: "id",
|
|
13101
|
-
kind: "kind",
|
|
13102
|
-
lastUpdated: "last_updated",
|
|
13103
|
-
name: "name",
|
|
13104
|
-
phase: "phase",
|
|
13105
|
-
rules: "rules",
|
|
13106
|
-
version: "version",
|
|
13107
|
-
description: "description",
|
|
13108
|
-
}),
|
|
13109
|
-
)
|
|
13110
|
-
.pipe(T.ResponsePath("result")),
|
|
13199
|
+
),
|
|
13200
|
+
version: Schema.String,
|
|
13201
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
13202
|
+
})
|
|
13203
|
+
.pipe(
|
|
13204
|
+
Schema.encodeKeys({
|
|
13205
|
+
id: "id",
|
|
13206
|
+
kind: "kind",
|
|
13207
|
+
lastUpdated: "last_updated",
|
|
13208
|
+
name: "name",
|
|
13209
|
+
phase: "phase",
|
|
13210
|
+
rules: "rules",
|
|
13211
|
+
version: "version",
|
|
13212
|
+
description: "description",
|
|
13213
|
+
}),
|
|
13214
|
+
)
|
|
13215
|
+
.pipe(T.ResponsePath("result")),
|
|
13111
13216
|
) as unknown as Schema.Codec<PatchRuleResponse>;
|
|
13112
13217
|
|
|
13113
13218
|
export type PatchRuleError = DefaultErrors;
|
|
@@ -13117,7 +13222,7 @@ export const patchRuleForAccount: API.OperationMethod<
|
|
|
13117
13222
|
PatchRuleResponse,
|
|
13118
13223
|
PatchRuleError,
|
|
13119
13224
|
Credentials | HttpClient.HttpClient
|
|
13120
|
-
> = /*@__PURE__*/
|
|
13225
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
13121
13226
|
input: PatchRuleForAccountRequest,
|
|
13122
13227
|
output: PatchRuleResponse,
|
|
13123
13228
|
errors: [],
|
|
@@ -13128,7 +13233,7 @@ export const patchRuleForZone: API.OperationMethod<
|
|
|
13128
13233
|
PatchRuleResponse,
|
|
13129
13234
|
PatchRuleError,
|
|
13130
13235
|
Credentials | HttpClient.HttpClient
|
|
13131
|
-
> = /*@__PURE__*/
|
|
13236
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
13132
13237
|
input: PatchRuleForZoneRequest,
|
|
13133
13238
|
output: PatchRuleResponse,
|
|
13134
13239
|
errors: [],
|
|
@@ -13155,7 +13260,7 @@ export interface DeleteRuleForZoneRequest extends DeleteRuleBaseRequest {
|
|
|
13155
13260
|
}
|
|
13156
13261
|
|
|
13157
13262
|
export const DeleteRuleForAccountRequest =
|
|
13158
|
-
/*@__PURE__*/
|
|
13263
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
13159
13264
|
Schema.Struct({
|
|
13160
13265
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
13161
13266
|
...DeleteRuleBaseFields,
|
|
@@ -13168,7 +13273,7 @@ export const DeleteRuleForAccountRequest =
|
|
|
13168
13273
|
) as unknown as Schema.Codec<DeleteRuleForAccountRequest>;
|
|
13169
13274
|
|
|
13170
13275
|
export const DeleteRuleForZoneRequest =
|
|
13171
|
-
/*@__PURE__*/
|
|
13276
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
13172
13277
|
Schema.Struct({
|
|
13173
13278
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
13174
13279
|
...DeleteRuleBaseFields,
|
|
@@ -14120,85 +14225,84 @@ export interface DeleteRuleResponse {
|
|
|
14120
14225
|
description?: string | null;
|
|
14121
14226
|
}
|
|
14122
14227
|
|
|
14123
|
-
export const DeleteRuleResponse = /*@__PURE__*/
|
|
14124
|
-
(
|
|
14125
|
-
Schema.
|
|
14126
|
-
|
|
14127
|
-
|
|
14128
|
-
|
|
14129
|
-
|
|
14228
|
+
export const DeleteRuleResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
14229
|
+
Schema.Struct({
|
|
14230
|
+
id: Schema.String,
|
|
14231
|
+
kind: Schema.Union([
|
|
14232
|
+
Schema.Literals(["managed", "custom", "root", "zone"]),
|
|
14233
|
+
Schema.String,
|
|
14234
|
+
]),
|
|
14235
|
+
lastUpdated: Schema.String,
|
|
14236
|
+
name: Schema.String,
|
|
14237
|
+
phase: Schema.Union([
|
|
14238
|
+
Schema.Literals([
|
|
14239
|
+
"ddos_l4",
|
|
14240
|
+
"ddos_l7",
|
|
14241
|
+
"http_config_settings",
|
|
14242
|
+
"http_custom_errors",
|
|
14243
|
+
"http_log_custom_fields",
|
|
14244
|
+
"http_ratelimit",
|
|
14245
|
+
"http_request_cache_settings",
|
|
14246
|
+
"http_request_dynamic_redirect",
|
|
14247
|
+
"http_request_firewall_custom",
|
|
14248
|
+
"http_request_firewall_managed",
|
|
14249
|
+
"http_request_late_transform",
|
|
14250
|
+
"http_request_origin",
|
|
14251
|
+
"http_request_redirect",
|
|
14252
|
+
"http_request_sanitize",
|
|
14253
|
+
"http_request_sbfm",
|
|
14254
|
+
"http_request_transform",
|
|
14255
|
+
"http_response_cache_settings",
|
|
14256
|
+
"http_response_compression",
|
|
14257
|
+
"http_response_firewall_managed",
|
|
14258
|
+
"http_response_headers_transform",
|
|
14259
|
+
"magic_transit",
|
|
14260
|
+
"magic_transit_ids_managed",
|
|
14261
|
+
"magic_transit_managed",
|
|
14262
|
+
"magic_transit_ratelimit",
|
|
14130
14263
|
]),
|
|
14131
|
-
|
|
14132
|
-
|
|
14133
|
-
|
|
14134
|
-
|
|
14135
|
-
|
|
14136
|
-
|
|
14137
|
-
|
|
14138
|
-
|
|
14139
|
-
|
|
14140
|
-
|
|
14141
|
-
|
|
14142
|
-
|
|
14143
|
-
|
|
14144
|
-
|
|
14145
|
-
|
|
14146
|
-
|
|
14147
|
-
|
|
14148
|
-
|
|
14149
|
-
|
|
14150
|
-
|
|
14151
|
-
|
|
14152
|
-
|
|
14153
|
-
|
|
14154
|
-
|
|
14155
|
-
"magic_transit",
|
|
14156
|
-
"magic_transit_ids_managed",
|
|
14157
|
-
"magic_transit_managed",
|
|
14158
|
-
"magic_transit_ratelimit",
|
|
14159
|
-
]),
|
|
14160
|
-
Schema.String,
|
|
14264
|
+
Schema.String,
|
|
14265
|
+
]),
|
|
14266
|
+
rules: Schema.Array(
|
|
14267
|
+
Schema.Union([
|
|
14268
|
+
BlockRule,
|
|
14269
|
+
RulesetsChallengeRule,
|
|
14270
|
+
CompressResponseRule,
|
|
14271
|
+
DdoSDynamicRule,
|
|
14272
|
+
ExecuteRule,
|
|
14273
|
+
ForceConnectionCloseRule,
|
|
14274
|
+
RulesetsJSChallengeRule,
|
|
14275
|
+
LogRule,
|
|
14276
|
+
LogCustomFieldRule,
|
|
14277
|
+
ManagedChallengeRule,
|
|
14278
|
+
RedirectRule2,
|
|
14279
|
+
RewriteRule,
|
|
14280
|
+
RouteRule,
|
|
14281
|
+
ScoreRule,
|
|
14282
|
+
ServeErrorRule,
|
|
14283
|
+
RulesetsSetCacheControlRule,
|
|
14284
|
+
SetCacheSettingsRule,
|
|
14285
|
+
RulesetsSetCacheTagsRule,
|
|
14286
|
+
SetConfigRule,
|
|
14287
|
+
SkipRule,
|
|
14161
14288
|
]),
|
|
14162
|
-
|
|
14163
|
-
|
|
14164
|
-
|
|
14165
|
-
|
|
14166
|
-
|
|
14167
|
-
|
|
14168
|
-
|
|
14169
|
-
|
|
14170
|
-
|
|
14171
|
-
|
|
14172
|
-
|
|
14173
|
-
|
|
14174
|
-
|
|
14175
|
-
|
|
14176
|
-
|
|
14177
|
-
|
|
14178
|
-
|
|
14179
|
-
RulesetsSetCacheControlRule,
|
|
14180
|
-
SetCacheSettingsRule,
|
|
14181
|
-
RulesetsSetCacheTagsRule,
|
|
14182
|
-
SetConfigRule,
|
|
14183
|
-
SkipRule,
|
|
14184
|
-
]),
|
|
14185
|
-
),
|
|
14186
|
-
version: Schema.String,
|
|
14187
|
-
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
14188
|
-
})
|
|
14189
|
-
.pipe(
|
|
14190
|
-
Schema.encodeKeys({
|
|
14191
|
-
id: "id",
|
|
14192
|
-
kind: "kind",
|
|
14193
|
-
lastUpdated: "last_updated",
|
|
14194
|
-
name: "name",
|
|
14195
|
-
phase: "phase",
|
|
14196
|
-
rules: "rules",
|
|
14197
|
-
version: "version",
|
|
14198
|
-
description: "description",
|
|
14199
|
-
}),
|
|
14200
|
-
)
|
|
14201
|
-
.pipe(T.ResponsePath("result")),
|
|
14289
|
+
),
|
|
14290
|
+
version: Schema.String,
|
|
14291
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
14292
|
+
})
|
|
14293
|
+
.pipe(
|
|
14294
|
+
Schema.encodeKeys({
|
|
14295
|
+
id: "id",
|
|
14296
|
+
kind: "kind",
|
|
14297
|
+
lastUpdated: "last_updated",
|
|
14298
|
+
name: "name",
|
|
14299
|
+
phase: "phase",
|
|
14300
|
+
rules: "rules",
|
|
14301
|
+
version: "version",
|
|
14302
|
+
description: "description",
|
|
14303
|
+
}),
|
|
14304
|
+
)
|
|
14305
|
+
.pipe(T.ResponsePath("result")),
|
|
14202
14306
|
) as unknown as Schema.Codec<DeleteRuleResponse>;
|
|
14203
14307
|
|
|
14204
14308
|
export type DeleteRuleError = DefaultErrors;
|
|
@@ -14208,7 +14312,7 @@ export const deleteRuleForAccount: API.OperationMethod<
|
|
|
14208
14312
|
DeleteRuleResponse,
|
|
14209
14313
|
DeleteRuleError,
|
|
14210
14314
|
Credentials | HttpClient.HttpClient
|
|
14211
|
-
> = /*@__PURE__*/
|
|
14315
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
14212
14316
|
input: DeleteRuleForAccountRequest,
|
|
14213
14317
|
output: DeleteRuleResponse,
|
|
14214
14318
|
errors: [],
|
|
@@ -14219,7 +14323,7 @@ export const deleteRuleForZone: API.OperationMethod<
|
|
|
14219
14323
|
DeleteRuleResponse,
|
|
14220
14324
|
DeleteRuleError,
|
|
14221
14325
|
Credentials | HttpClient.HttpClient
|
|
14222
|
-
> = /*@__PURE__*/
|
|
14326
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
14223
14327
|
input: DeleteRuleForZoneRequest,
|
|
14224
14328
|
output: DeleteRuleResponse,
|
|
14225
14329
|
errors: [],
|
|
@@ -14248,7 +14352,7 @@ export interface GetRulesetForZoneRequest extends GetRulesetBaseRequest {
|
|
|
14248
14352
|
}
|
|
14249
14353
|
|
|
14250
14354
|
export const GetRulesetForAccountRequest =
|
|
14251
|
-
/*@__PURE__*/
|
|
14355
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
14252
14356
|
Schema.Struct({
|
|
14253
14357
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
14254
14358
|
...GetRulesetBaseFields,
|
|
@@ -14261,7 +14365,7 @@ export const GetRulesetForAccountRequest =
|
|
|
14261
14365
|
) as unknown as Schema.Codec<GetRulesetForAccountRequest>;
|
|
14262
14366
|
|
|
14263
14367
|
export const GetRulesetForZoneRequest =
|
|
14264
|
-
/*@__PURE__*/
|
|
14368
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
14265
14369
|
Schema.Struct({
|
|
14266
14370
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
14267
14371
|
...GetRulesetBaseFields,
|
|
@@ -15240,90 +15344,89 @@ export interface GetRulesetResponse {
|
|
|
15240
15344
|
description?: string | null;
|
|
15241
15345
|
}
|
|
15242
15346
|
|
|
15243
|
-
export const GetRulesetResponse = /*@__PURE__*/
|
|
15244
|
-
(
|
|
15245
|
-
Schema.
|
|
15246
|
-
|
|
15247
|
-
|
|
15248
|
-
|
|
15249
|
-
|
|
15347
|
+
export const GetRulesetResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
15348
|
+
Schema.Struct({
|
|
15349
|
+
id: Schema.String,
|
|
15350
|
+
kind: Schema.Union([
|
|
15351
|
+
Schema.Literals(["managed", "custom", "root", "zone"]),
|
|
15352
|
+
Schema.String,
|
|
15353
|
+
]),
|
|
15354
|
+
lastUpdated: Schema.String,
|
|
15355
|
+
name: Schema.String,
|
|
15356
|
+
phase: Schema.Union([
|
|
15357
|
+
Schema.Literals([
|
|
15358
|
+
"ddos_l4",
|
|
15359
|
+
"ddos_l7",
|
|
15360
|
+
"http_config_settings",
|
|
15361
|
+
"http_custom_errors",
|
|
15362
|
+
"http_log_custom_fields",
|
|
15363
|
+
"http_ratelimit",
|
|
15364
|
+
"http_request_cache_settings",
|
|
15365
|
+
"http_request_dynamic_redirect",
|
|
15366
|
+
"http_request_firewall_custom",
|
|
15367
|
+
"http_request_firewall_managed",
|
|
15368
|
+
"http_request_late_transform",
|
|
15369
|
+
"http_request_origin",
|
|
15370
|
+
"http_request_redirect",
|
|
15371
|
+
"http_request_sanitize",
|
|
15372
|
+
"http_request_sbfm",
|
|
15373
|
+
"http_request_transform",
|
|
15374
|
+
"http_response_cache_settings",
|
|
15375
|
+
"http_response_compression",
|
|
15376
|
+
"http_response_firewall_managed",
|
|
15377
|
+
"http_response_headers_transform",
|
|
15378
|
+
"magic_transit",
|
|
15379
|
+
"magic_transit_ids_managed",
|
|
15380
|
+
"magic_transit_managed",
|
|
15381
|
+
"magic_transit_ratelimit",
|
|
15250
15382
|
]),
|
|
15251
|
-
|
|
15252
|
-
|
|
15253
|
-
|
|
15254
|
-
|
|
15255
|
-
|
|
15256
|
-
|
|
15257
|
-
|
|
15258
|
-
|
|
15259
|
-
|
|
15260
|
-
|
|
15261
|
-
|
|
15262
|
-
|
|
15263
|
-
|
|
15264
|
-
|
|
15265
|
-
|
|
15266
|
-
|
|
15267
|
-
|
|
15268
|
-
|
|
15269
|
-
|
|
15270
|
-
|
|
15271
|
-
|
|
15272
|
-
|
|
15273
|
-
|
|
15274
|
-
|
|
15275
|
-
|
|
15276
|
-
|
|
15277
|
-
|
|
15278
|
-
|
|
15279
|
-
|
|
15280
|
-
Schema.String,
|
|
15383
|
+
Schema.String,
|
|
15384
|
+
]),
|
|
15385
|
+
rules: Schema.optional(
|
|
15386
|
+
Schema.Union([
|
|
15387
|
+
Schema.Array(
|
|
15388
|
+
Schema.Union([
|
|
15389
|
+
BlockRule,
|
|
15390
|
+
RulesetsChallengeRule,
|
|
15391
|
+
CompressResponseRule,
|
|
15392
|
+
DdoSDynamicRule,
|
|
15393
|
+
ExecuteRule,
|
|
15394
|
+
ForceConnectionCloseRule,
|
|
15395
|
+
RulesetsJSChallengeRule,
|
|
15396
|
+
LogRule,
|
|
15397
|
+
LogCustomFieldRule,
|
|
15398
|
+
ManagedChallengeRule,
|
|
15399
|
+
RedirectRule2,
|
|
15400
|
+
RewriteRule,
|
|
15401
|
+
RouteRule,
|
|
15402
|
+
ScoreRule,
|
|
15403
|
+
ServeErrorRule,
|
|
15404
|
+
RulesetsSetCacheControlRule,
|
|
15405
|
+
SetCacheSettingsRule,
|
|
15406
|
+
RulesetsSetCacheTagsRule,
|
|
15407
|
+
SetConfigRule,
|
|
15408
|
+
SkipRule,
|
|
15409
|
+
]),
|
|
15410
|
+
),
|
|
15411
|
+
Schema.Null,
|
|
15281
15412
|
]),
|
|
15282
|
-
|
|
15283
|
-
|
|
15284
|
-
|
|
15285
|
-
|
|
15286
|
-
|
|
15287
|
-
|
|
15288
|
-
|
|
15289
|
-
|
|
15290
|
-
|
|
15291
|
-
|
|
15292
|
-
|
|
15293
|
-
|
|
15294
|
-
|
|
15295
|
-
|
|
15296
|
-
|
|
15297
|
-
|
|
15298
|
-
|
|
15299
|
-
ScoreRule,
|
|
15300
|
-
ServeErrorRule,
|
|
15301
|
-
RulesetsSetCacheControlRule,
|
|
15302
|
-
SetCacheSettingsRule,
|
|
15303
|
-
RulesetsSetCacheTagsRule,
|
|
15304
|
-
SetConfigRule,
|
|
15305
|
-
SkipRule,
|
|
15306
|
-
]),
|
|
15307
|
-
),
|
|
15308
|
-
Schema.Null,
|
|
15309
|
-
]),
|
|
15310
|
-
),
|
|
15311
|
-
version: Schema.String,
|
|
15312
|
-
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
15313
|
-
})
|
|
15314
|
-
.pipe(
|
|
15315
|
-
Schema.encodeKeys({
|
|
15316
|
-
id: "id",
|
|
15317
|
-
kind: "kind",
|
|
15318
|
-
lastUpdated: "last_updated",
|
|
15319
|
-
name: "name",
|
|
15320
|
-
phase: "phase",
|
|
15321
|
-
rules: "rules",
|
|
15322
|
-
version: "version",
|
|
15323
|
-
description: "description",
|
|
15324
|
-
}),
|
|
15325
|
-
)
|
|
15326
|
-
.pipe(T.ResponsePath("result")),
|
|
15413
|
+
),
|
|
15414
|
+
version: Schema.String,
|
|
15415
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
15416
|
+
})
|
|
15417
|
+
.pipe(
|
|
15418
|
+
Schema.encodeKeys({
|
|
15419
|
+
id: "id",
|
|
15420
|
+
kind: "kind",
|
|
15421
|
+
lastUpdated: "last_updated",
|
|
15422
|
+
name: "name",
|
|
15423
|
+
phase: "phase",
|
|
15424
|
+
rules: "rules",
|
|
15425
|
+
version: "version",
|
|
15426
|
+
description: "description",
|
|
15427
|
+
}),
|
|
15428
|
+
)
|
|
15429
|
+
.pipe(T.ResponsePath("result")),
|
|
15327
15430
|
) as unknown as Schema.Codec<GetRulesetResponse>;
|
|
15328
15431
|
|
|
15329
15432
|
export type GetRulesetError = DefaultErrors | RulesetNotFound | Forbidden;
|
|
@@ -15333,7 +15436,7 @@ export const getRulesetForAccount: API.OperationMethod<
|
|
|
15333
15436
|
GetRulesetResponse,
|
|
15334
15437
|
GetRulesetError,
|
|
15335
15438
|
Credentials | HttpClient.HttpClient
|
|
15336
|
-
> = /*@__PURE__*/
|
|
15439
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
15337
15440
|
input: GetRulesetForAccountRequest,
|
|
15338
15441
|
output: GetRulesetResponse,
|
|
15339
15442
|
errors: [RulesetNotFound, Forbidden],
|
|
@@ -15344,7 +15447,7 @@ export const getRulesetForZone: API.OperationMethod<
|
|
|
15344
15447
|
GetRulesetResponse,
|
|
15345
15448
|
GetRulesetError,
|
|
15346
15449
|
Credentials | HttpClient.HttpClient
|
|
15347
|
-
> = /*@__PURE__*/
|
|
15450
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
15348
15451
|
input: GetRulesetForZoneRequest,
|
|
15349
15452
|
output: GetRulesetResponse,
|
|
15350
15453
|
errors: [RulesetNotFound, Forbidden],
|
|
@@ -15371,7 +15474,7 @@ export interface ListRulesetsForZoneRequest extends ListRulesetsBaseRequest {
|
|
|
15371
15474
|
}
|
|
15372
15475
|
|
|
15373
15476
|
export const ListRulesetsForAccountRequest =
|
|
15374
|
-
/*@__PURE__*/
|
|
15477
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
15375
15478
|
Schema.Struct({
|
|
15376
15479
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
15377
15480
|
...ListRulesetsBaseFields,
|
|
@@ -15379,7 +15482,7 @@ export const ListRulesetsForAccountRequest =
|
|
|
15379
15482
|
) as unknown as Schema.Codec<ListRulesetsForAccountRequest>;
|
|
15380
15483
|
|
|
15381
15484
|
export const ListRulesetsForZoneRequest =
|
|
15382
|
-
/*@__PURE__*/
|
|
15485
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
15383
15486
|
Schema.Struct({
|
|
15384
15487
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
15385
15488
|
...ListRulesetsBaseFields,
|
|
@@ -15428,14 +15531,13 @@ export interface ListRulesetsResponse {
|
|
|
15428
15531
|
} | null;
|
|
15429
15532
|
}
|
|
15430
15533
|
|
|
15431
|
-
export const ListRulesetsResponse = /*@__PURE__*/
|
|
15432
|
-
(
|
|
15433
|
-
Schema.
|
|
15434
|
-
|
|
15435
|
-
|
|
15436
|
-
|
|
15437
|
-
|
|
15438
|
-
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
|
|
15534
|
+
export const ListRulesetsResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
15535
|
+
Schema.Struct({
|
|
15536
|
+
result: Schema.Array(ListPhasVersionsResponseResult),
|
|
15537
|
+
resultInfo: Schema.optional(
|
|
15538
|
+
Schema.Union([ListRulesetsResponseResultInfo, Schema.Null]),
|
|
15539
|
+
),
|
|
15540
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
|
|
15439
15541
|
) as unknown as Schema.Codec<ListRulesetsResponse>;
|
|
15440
15542
|
|
|
15441
15543
|
export type ListRulesetsError = DefaultErrors;
|
|
@@ -15445,7 +15547,7 @@ export const listRulesetsForAccount: API.PaginatedOperationMethod<
|
|
|
15445
15547
|
ListRulesetsResponse,
|
|
15446
15548
|
ListRulesetsError,
|
|
15447
15549
|
Credentials | HttpClient.HttpClient
|
|
15448
|
-
> = /*@__PURE__*/
|
|
15550
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
15449
15551
|
input: ListRulesetsForAccountRequest,
|
|
15450
15552
|
output: ListRulesetsResponse,
|
|
15451
15553
|
errors: [],
|
|
@@ -15463,7 +15565,7 @@ export const listRulesetsForZone: API.PaginatedOperationMethod<
|
|
|
15463
15565
|
ListRulesetsResponse,
|
|
15464
15566
|
ListRulesetsError,
|
|
15465
15567
|
Credentials | HttpClient.HttpClient
|
|
15466
|
-
> = /*@__PURE__*/
|
|
15568
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
15467
15569
|
input: ListRulesetsForZoneRequest,
|
|
15468
15570
|
output: ListRulesetsResponse,
|
|
15469
15571
|
errors: [],
|
|
@@ -15525,7 +15627,7 @@ const CreateRulesetBaseFields = {
|
|
|
15525
15627
|
LogRuleParam,
|
|
15526
15628
|
LogCustomFieldRuleParam,
|
|
15527
15629
|
ManagedChallengeRuleParam,
|
|
15528
|
-
|
|
15630
|
+
RedirectRuleParam2,
|
|
15529
15631
|
RewriteRuleParam,
|
|
15530
15632
|
RouteRuleParam,
|
|
15531
15633
|
ScoreRuleParam,
|
|
@@ -16365,7 +16467,7 @@ export interface CreateRulesetForZoneRequest extends CreateRulesetBaseRequest {
|
|
|
16365
16467
|
}
|
|
16366
16468
|
|
|
16367
16469
|
export const CreateRulesetForAccountRequest =
|
|
16368
|
-
/*@__PURE__*/
|
|
16470
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
16369
16471
|
Schema.Struct({
|
|
16370
16472
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
16371
16473
|
...CreateRulesetBaseFields,
|
|
@@ -16375,7 +16477,7 @@ export const CreateRulesetForAccountRequest =
|
|
|
16375
16477
|
) as unknown as Schema.Codec<CreateRulesetForAccountRequest>;
|
|
16376
16478
|
|
|
16377
16479
|
export const CreateRulesetForZoneRequest =
|
|
16378
|
-
/*@__PURE__*/
|
|
16480
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
16379
16481
|
Schema.Struct({
|
|
16380
16482
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
16381
16483
|
...CreateRulesetBaseFields,
|
|
@@ -17352,90 +17454,89 @@ export interface CreateRulesetResponse {
|
|
|
17352
17454
|
description?: string | null;
|
|
17353
17455
|
}
|
|
17354
17456
|
|
|
17355
|
-
export const CreateRulesetResponse = /*@__PURE__*/
|
|
17356
|
-
(
|
|
17357
|
-
Schema.
|
|
17358
|
-
|
|
17359
|
-
|
|
17360
|
-
|
|
17361
|
-
|
|
17457
|
+
export const CreateRulesetResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
17458
|
+
Schema.Struct({
|
|
17459
|
+
id: Schema.String,
|
|
17460
|
+
kind: Schema.Union([
|
|
17461
|
+
Schema.Literals(["managed", "custom", "root", "zone"]),
|
|
17462
|
+
Schema.String,
|
|
17463
|
+
]),
|
|
17464
|
+
lastUpdated: Schema.String,
|
|
17465
|
+
name: Schema.String,
|
|
17466
|
+
phase: Schema.Union([
|
|
17467
|
+
Schema.Literals([
|
|
17468
|
+
"ddos_l4",
|
|
17469
|
+
"ddos_l7",
|
|
17470
|
+
"http_config_settings",
|
|
17471
|
+
"http_custom_errors",
|
|
17472
|
+
"http_log_custom_fields",
|
|
17473
|
+
"http_ratelimit",
|
|
17474
|
+
"http_request_cache_settings",
|
|
17475
|
+
"http_request_dynamic_redirect",
|
|
17476
|
+
"http_request_firewall_custom",
|
|
17477
|
+
"http_request_firewall_managed",
|
|
17478
|
+
"http_request_late_transform",
|
|
17479
|
+
"http_request_origin",
|
|
17480
|
+
"http_request_redirect",
|
|
17481
|
+
"http_request_sanitize",
|
|
17482
|
+
"http_request_sbfm",
|
|
17483
|
+
"http_request_transform",
|
|
17484
|
+
"http_response_cache_settings",
|
|
17485
|
+
"http_response_compression",
|
|
17486
|
+
"http_response_firewall_managed",
|
|
17487
|
+
"http_response_headers_transform",
|
|
17488
|
+
"magic_transit",
|
|
17489
|
+
"magic_transit_ids_managed",
|
|
17490
|
+
"magic_transit_managed",
|
|
17491
|
+
"magic_transit_ratelimit",
|
|
17362
17492
|
]),
|
|
17363
|
-
|
|
17364
|
-
|
|
17365
|
-
|
|
17366
|
-
|
|
17367
|
-
|
|
17368
|
-
|
|
17369
|
-
|
|
17370
|
-
|
|
17371
|
-
|
|
17372
|
-
|
|
17373
|
-
|
|
17374
|
-
|
|
17375
|
-
|
|
17376
|
-
|
|
17377
|
-
|
|
17378
|
-
|
|
17379
|
-
|
|
17380
|
-
|
|
17381
|
-
|
|
17382
|
-
|
|
17383
|
-
|
|
17384
|
-
|
|
17385
|
-
|
|
17386
|
-
|
|
17387
|
-
|
|
17388
|
-
|
|
17389
|
-
|
|
17390
|
-
|
|
17391
|
-
|
|
17392
|
-
Schema.String,
|
|
17493
|
+
Schema.String,
|
|
17494
|
+
]),
|
|
17495
|
+
rules: Schema.optional(
|
|
17496
|
+
Schema.Union([
|
|
17497
|
+
Schema.Array(
|
|
17498
|
+
Schema.Union([
|
|
17499
|
+
BlockRule,
|
|
17500
|
+
RulesetsChallengeRule,
|
|
17501
|
+
CompressResponseRule,
|
|
17502
|
+
DdoSDynamicRule,
|
|
17503
|
+
ExecuteRule,
|
|
17504
|
+
ForceConnectionCloseRule,
|
|
17505
|
+
RulesetsJSChallengeRule,
|
|
17506
|
+
LogRule,
|
|
17507
|
+
LogCustomFieldRule,
|
|
17508
|
+
ManagedChallengeRule,
|
|
17509
|
+
RedirectRule2,
|
|
17510
|
+
RewriteRule,
|
|
17511
|
+
RouteRule,
|
|
17512
|
+
ScoreRule,
|
|
17513
|
+
ServeErrorRule,
|
|
17514
|
+
RulesetsSetCacheControlRule,
|
|
17515
|
+
SetCacheSettingsRule,
|
|
17516
|
+
RulesetsSetCacheTagsRule,
|
|
17517
|
+
SetConfigRule,
|
|
17518
|
+
SkipRule,
|
|
17519
|
+
]),
|
|
17520
|
+
),
|
|
17521
|
+
Schema.Null,
|
|
17393
17522
|
]),
|
|
17394
|
-
|
|
17395
|
-
|
|
17396
|
-
|
|
17397
|
-
|
|
17398
|
-
|
|
17399
|
-
|
|
17400
|
-
|
|
17401
|
-
|
|
17402
|
-
|
|
17403
|
-
|
|
17404
|
-
|
|
17405
|
-
|
|
17406
|
-
|
|
17407
|
-
|
|
17408
|
-
|
|
17409
|
-
|
|
17410
|
-
|
|
17411
|
-
ScoreRule,
|
|
17412
|
-
ServeErrorRule,
|
|
17413
|
-
RulesetsSetCacheControlRule,
|
|
17414
|
-
SetCacheSettingsRule,
|
|
17415
|
-
RulesetsSetCacheTagsRule,
|
|
17416
|
-
SetConfigRule,
|
|
17417
|
-
SkipRule,
|
|
17418
|
-
]),
|
|
17419
|
-
),
|
|
17420
|
-
Schema.Null,
|
|
17421
|
-
]),
|
|
17422
|
-
),
|
|
17423
|
-
version: Schema.String,
|
|
17424
|
-
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
17425
|
-
})
|
|
17426
|
-
.pipe(
|
|
17427
|
-
Schema.encodeKeys({
|
|
17428
|
-
id: "id",
|
|
17429
|
-
kind: "kind",
|
|
17430
|
-
lastUpdated: "last_updated",
|
|
17431
|
-
name: "name",
|
|
17432
|
-
phase: "phase",
|
|
17433
|
-
rules: "rules",
|
|
17434
|
-
version: "version",
|
|
17435
|
-
description: "description",
|
|
17436
|
-
}),
|
|
17437
|
-
)
|
|
17438
|
-
.pipe(T.ResponsePath("result")),
|
|
17523
|
+
),
|
|
17524
|
+
version: Schema.String,
|
|
17525
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
17526
|
+
})
|
|
17527
|
+
.pipe(
|
|
17528
|
+
Schema.encodeKeys({
|
|
17529
|
+
id: "id",
|
|
17530
|
+
kind: "kind",
|
|
17531
|
+
lastUpdated: "last_updated",
|
|
17532
|
+
name: "name",
|
|
17533
|
+
phase: "phase",
|
|
17534
|
+
rules: "rules",
|
|
17535
|
+
version: "version",
|
|
17536
|
+
description: "description",
|
|
17537
|
+
}),
|
|
17538
|
+
)
|
|
17539
|
+
.pipe(T.ResponsePath("result")),
|
|
17439
17540
|
) as unknown as Schema.Codec<CreateRulesetResponse>;
|
|
17440
17541
|
|
|
17441
17542
|
export type CreateRulesetError = DefaultErrors | PhaseNotEntitled | Forbidden;
|
|
@@ -17445,7 +17546,7 @@ export const createRulesetForAccount: API.OperationMethod<
|
|
|
17445
17546
|
CreateRulesetResponse,
|
|
17446
17547
|
CreateRulesetError,
|
|
17447
17548
|
Credentials | HttpClient.HttpClient
|
|
17448
|
-
> = /*@__PURE__*/
|
|
17549
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
17449
17550
|
input: CreateRulesetForAccountRequest,
|
|
17450
17551
|
output: CreateRulesetResponse,
|
|
17451
17552
|
errors: [PhaseNotEntitled, Forbidden],
|
|
@@ -17456,7 +17557,7 @@ export const createRulesetForZone: API.OperationMethod<
|
|
|
17456
17557
|
CreateRulesetResponse,
|
|
17457
17558
|
CreateRulesetError,
|
|
17458
17559
|
Credentials | HttpClient.HttpClient
|
|
17459
|
-
> = /*@__PURE__*/
|
|
17560
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
17460
17561
|
input: CreateRulesetForZoneRequest,
|
|
17461
17562
|
output: CreateRulesetResponse,
|
|
17462
17563
|
errors: [PhaseNotEntitled, Forbidden],
|
|
@@ -17516,7 +17617,7 @@ const UpdateRulesetBaseFields = {
|
|
|
17516
17617
|
LogRuleParam,
|
|
17517
17618
|
LogCustomFieldRuleParam,
|
|
17518
17619
|
ManagedChallengeRuleParam,
|
|
17519
|
-
|
|
17620
|
+
RedirectRuleParam2,
|
|
17520
17621
|
RewriteRuleParam,
|
|
17521
17622
|
RouteRuleParam,
|
|
17522
17623
|
ScoreRuleParam,
|
|
@@ -18357,7 +18458,7 @@ export interface UpdateRulesetForZoneRequest extends UpdateRulesetBaseRequest {
|
|
|
18357
18458
|
}
|
|
18358
18459
|
|
|
18359
18460
|
export const UpdateRulesetForAccountRequest =
|
|
18360
|
-
/*@__PURE__*/
|
|
18461
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
18361
18462
|
Schema.Struct({
|
|
18362
18463
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
18363
18464
|
...UpdateRulesetBaseFields,
|
|
@@ -18370,7 +18471,7 @@ export const UpdateRulesetForAccountRequest =
|
|
|
18370
18471
|
) as unknown as Schema.Codec<UpdateRulesetForAccountRequest>;
|
|
18371
18472
|
|
|
18372
18473
|
export const UpdateRulesetForZoneRequest =
|
|
18373
|
-
/*@__PURE__*/
|
|
18474
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
18374
18475
|
Schema.Struct({
|
|
18375
18476
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
18376
18477
|
...UpdateRulesetBaseFields,
|
|
@@ -19349,90 +19450,89 @@ export interface UpdateRulesetResponse {
|
|
|
19349
19450
|
description?: string | null;
|
|
19350
19451
|
}
|
|
19351
19452
|
|
|
19352
|
-
export const UpdateRulesetResponse = /*@__PURE__*/
|
|
19353
|
-
(
|
|
19354
|
-
Schema.
|
|
19355
|
-
|
|
19356
|
-
|
|
19357
|
-
|
|
19358
|
-
|
|
19453
|
+
export const UpdateRulesetResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
19454
|
+
Schema.Struct({
|
|
19455
|
+
id: Schema.String,
|
|
19456
|
+
kind: Schema.Union([
|
|
19457
|
+
Schema.Literals(["managed", "custom", "root", "zone"]),
|
|
19458
|
+
Schema.String,
|
|
19459
|
+
]),
|
|
19460
|
+
lastUpdated: Schema.String,
|
|
19461
|
+
name: Schema.String,
|
|
19462
|
+
phase: Schema.Union([
|
|
19463
|
+
Schema.Literals([
|
|
19464
|
+
"ddos_l4",
|
|
19465
|
+
"ddos_l7",
|
|
19466
|
+
"http_config_settings",
|
|
19467
|
+
"http_custom_errors",
|
|
19468
|
+
"http_log_custom_fields",
|
|
19469
|
+
"http_ratelimit",
|
|
19470
|
+
"http_request_cache_settings",
|
|
19471
|
+
"http_request_dynamic_redirect",
|
|
19472
|
+
"http_request_firewall_custom",
|
|
19473
|
+
"http_request_firewall_managed",
|
|
19474
|
+
"http_request_late_transform",
|
|
19475
|
+
"http_request_origin",
|
|
19476
|
+
"http_request_redirect",
|
|
19477
|
+
"http_request_sanitize",
|
|
19478
|
+
"http_request_sbfm",
|
|
19479
|
+
"http_request_transform",
|
|
19480
|
+
"http_response_cache_settings",
|
|
19481
|
+
"http_response_compression",
|
|
19482
|
+
"http_response_firewall_managed",
|
|
19483
|
+
"http_response_headers_transform",
|
|
19484
|
+
"magic_transit",
|
|
19485
|
+
"magic_transit_ids_managed",
|
|
19486
|
+
"magic_transit_managed",
|
|
19487
|
+
"magic_transit_ratelimit",
|
|
19359
19488
|
]),
|
|
19360
|
-
|
|
19361
|
-
|
|
19362
|
-
|
|
19363
|
-
|
|
19364
|
-
|
|
19365
|
-
|
|
19366
|
-
|
|
19367
|
-
|
|
19368
|
-
|
|
19369
|
-
|
|
19370
|
-
|
|
19371
|
-
|
|
19372
|
-
|
|
19373
|
-
|
|
19374
|
-
|
|
19375
|
-
|
|
19376
|
-
|
|
19377
|
-
|
|
19378
|
-
|
|
19379
|
-
|
|
19380
|
-
|
|
19381
|
-
|
|
19382
|
-
|
|
19383
|
-
|
|
19384
|
-
|
|
19385
|
-
|
|
19386
|
-
|
|
19387
|
-
|
|
19388
|
-
|
|
19389
|
-
Schema.String,
|
|
19489
|
+
Schema.String,
|
|
19490
|
+
]),
|
|
19491
|
+
rules: Schema.optional(
|
|
19492
|
+
Schema.Union([
|
|
19493
|
+
Schema.Array(
|
|
19494
|
+
Schema.Union([
|
|
19495
|
+
BlockRule,
|
|
19496
|
+
RulesetsChallengeRule,
|
|
19497
|
+
CompressResponseRule,
|
|
19498
|
+
DdoSDynamicRule,
|
|
19499
|
+
ExecuteRule,
|
|
19500
|
+
ForceConnectionCloseRule,
|
|
19501
|
+
RulesetsJSChallengeRule,
|
|
19502
|
+
LogRule,
|
|
19503
|
+
LogCustomFieldRule,
|
|
19504
|
+
ManagedChallengeRule,
|
|
19505
|
+
RedirectRule2,
|
|
19506
|
+
RewriteRule,
|
|
19507
|
+
RouteRule,
|
|
19508
|
+
ScoreRule,
|
|
19509
|
+
ServeErrorRule,
|
|
19510
|
+
RulesetsSetCacheControlRule,
|
|
19511
|
+
SetCacheSettingsRule,
|
|
19512
|
+
RulesetsSetCacheTagsRule,
|
|
19513
|
+
SetConfigRule,
|
|
19514
|
+
SkipRule,
|
|
19515
|
+
]),
|
|
19516
|
+
),
|
|
19517
|
+
Schema.Null,
|
|
19390
19518
|
]),
|
|
19391
|
-
|
|
19392
|
-
|
|
19393
|
-
|
|
19394
|
-
|
|
19395
|
-
|
|
19396
|
-
|
|
19397
|
-
|
|
19398
|
-
|
|
19399
|
-
|
|
19400
|
-
|
|
19401
|
-
|
|
19402
|
-
|
|
19403
|
-
|
|
19404
|
-
|
|
19405
|
-
|
|
19406
|
-
|
|
19407
|
-
|
|
19408
|
-
ScoreRule,
|
|
19409
|
-
ServeErrorRule,
|
|
19410
|
-
RulesetsSetCacheControlRule,
|
|
19411
|
-
SetCacheSettingsRule,
|
|
19412
|
-
RulesetsSetCacheTagsRule,
|
|
19413
|
-
SetConfigRule,
|
|
19414
|
-
SkipRule,
|
|
19415
|
-
]),
|
|
19416
|
-
),
|
|
19417
|
-
Schema.Null,
|
|
19418
|
-
]),
|
|
19419
|
-
),
|
|
19420
|
-
version: Schema.String,
|
|
19421
|
-
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
19422
|
-
})
|
|
19423
|
-
.pipe(
|
|
19424
|
-
Schema.encodeKeys({
|
|
19425
|
-
id: "id",
|
|
19426
|
-
kind: "kind",
|
|
19427
|
-
lastUpdated: "last_updated",
|
|
19428
|
-
name: "name",
|
|
19429
|
-
phase: "phase",
|
|
19430
|
-
rules: "rules",
|
|
19431
|
-
version: "version",
|
|
19432
|
-
description: "description",
|
|
19433
|
-
}),
|
|
19434
|
-
)
|
|
19435
|
-
.pipe(T.ResponsePath("result")),
|
|
19519
|
+
),
|
|
19520
|
+
version: Schema.String,
|
|
19521
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
19522
|
+
})
|
|
19523
|
+
.pipe(
|
|
19524
|
+
Schema.encodeKeys({
|
|
19525
|
+
id: "id",
|
|
19526
|
+
kind: "kind",
|
|
19527
|
+
lastUpdated: "last_updated",
|
|
19528
|
+
name: "name",
|
|
19529
|
+
phase: "phase",
|
|
19530
|
+
rules: "rules",
|
|
19531
|
+
version: "version",
|
|
19532
|
+
description: "description",
|
|
19533
|
+
}),
|
|
19534
|
+
)
|
|
19535
|
+
.pipe(T.ResponsePath("result")),
|
|
19436
19536
|
) as unknown as Schema.Codec<UpdateRulesetResponse>;
|
|
19437
19537
|
|
|
19438
19538
|
export type UpdateRulesetError = DefaultErrors | RulesetNotFound | Forbidden;
|
|
@@ -19442,7 +19542,7 @@ export const updateRulesetForAccount: API.OperationMethod<
|
|
|
19442
19542
|
UpdateRulesetResponse,
|
|
19443
19543
|
UpdateRulesetError,
|
|
19444
19544
|
Credentials | HttpClient.HttpClient
|
|
19445
|
-
> = /*@__PURE__*/
|
|
19545
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
19446
19546
|
input: UpdateRulesetForAccountRequest,
|
|
19447
19547
|
output: UpdateRulesetResponse,
|
|
19448
19548
|
errors: [RulesetNotFound, Forbidden],
|
|
@@ -19453,7 +19553,7 @@ export const updateRulesetForZone: API.OperationMethod<
|
|
|
19453
19553
|
UpdateRulesetResponse,
|
|
19454
19554
|
UpdateRulesetError,
|
|
19455
19555
|
Credentials | HttpClient.HttpClient
|
|
19456
|
-
> = /*@__PURE__*/
|
|
19556
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
19457
19557
|
input: UpdateRulesetForZoneRequest,
|
|
19458
19558
|
output: UpdateRulesetResponse,
|
|
19459
19559
|
errors: [RulesetNotFound, Forbidden],
|
|
@@ -19478,7 +19578,7 @@ export interface DeleteRulesetForZoneRequest extends DeleteRulesetBaseRequest {
|
|
|
19478
19578
|
}
|
|
19479
19579
|
|
|
19480
19580
|
export const DeleteRulesetForAccountRequest =
|
|
19481
|
-
/*@__PURE__*/
|
|
19581
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
19482
19582
|
Schema.Struct({
|
|
19483
19583
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
19484
19584
|
...DeleteRulesetBaseFields,
|
|
@@ -19491,7 +19591,7 @@ export const DeleteRulesetForAccountRequest =
|
|
|
19491
19591
|
) as unknown as Schema.Codec<DeleteRulesetForAccountRequest>;
|
|
19492
19592
|
|
|
19493
19593
|
export const DeleteRulesetForZoneRequest =
|
|
19494
|
-
/*@__PURE__*/
|
|
19594
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
19495
19595
|
Schema.Struct({
|
|
19496
19596
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
19497
19597
|
...DeleteRulesetBaseFields,
|
|
@@ -19505,7 +19605,7 @@ export const DeleteRulesetForZoneRequest =
|
|
|
19505
19605
|
|
|
19506
19606
|
export type DeleteRulesetResponse = unknown;
|
|
19507
19607
|
|
|
19508
|
-
export const DeleteRulesetResponse = /*@__PURE__*/
|
|
19608
|
+
export const DeleteRulesetResponse = /*@__PURE__*/ Schema.suspend(
|
|
19509
19609
|
() => Schema.Unknown,
|
|
19510
19610
|
) as unknown as Schema.Codec<DeleteRulesetResponse>;
|
|
19511
19611
|
|
|
@@ -19516,7 +19616,7 @@ export const deleteRulesetForAccount: API.OperationMethod<
|
|
|
19516
19616
|
DeleteRulesetResponse,
|
|
19517
19617
|
DeleteRulesetError,
|
|
19518
19618
|
Credentials | HttpClient.HttpClient
|
|
19519
|
-
> = /*@__PURE__*/
|
|
19619
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
19520
19620
|
input: DeleteRulesetForAccountRequest,
|
|
19521
19621
|
output: DeleteRulesetResponse,
|
|
19522
19622
|
errors: [RulesetNotFound, Forbidden],
|
|
@@ -19527,7 +19627,7 @@ export const deleteRulesetForZone: API.OperationMethod<
|
|
|
19527
19627
|
DeleteRulesetResponse,
|
|
19528
19628
|
DeleteRulesetError,
|
|
19529
19629
|
Credentials | HttpClient.HttpClient
|
|
19530
|
-
> = /*@__PURE__*/
|
|
19630
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
19531
19631
|
input: DeleteRulesetForZoneRequest,
|
|
19532
19632
|
output: DeleteRulesetResponse,
|
|
19533
19633
|
errors: [RulesetNotFound, Forbidden],
|
|
@@ -19558,7 +19658,7 @@ export interface GetVersionForZoneRequest extends GetVersionBaseRequest {
|
|
|
19558
19658
|
}
|
|
19559
19659
|
|
|
19560
19660
|
export const GetVersionForAccountRequest =
|
|
19561
|
-
/*@__PURE__*/
|
|
19661
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
19562
19662
|
Schema.Struct({
|
|
19563
19663
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
19564
19664
|
...GetVersionBaseFields,
|
|
@@ -19571,7 +19671,7 @@ export const GetVersionForAccountRequest =
|
|
|
19571
19671
|
) as unknown as Schema.Codec<GetVersionForAccountRequest>;
|
|
19572
19672
|
|
|
19573
19673
|
export const GetVersionForZoneRequest =
|
|
19574
|
-
/*@__PURE__*/
|
|
19674
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
19575
19675
|
Schema.Struct({
|
|
19576
19676
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
19577
19677
|
...GetVersionBaseFields,
|
|
@@ -20523,85 +20623,84 @@ export interface GetVersionResponse {
|
|
|
20523
20623
|
description?: string | null;
|
|
20524
20624
|
}
|
|
20525
20625
|
|
|
20526
|
-
export const GetVersionResponse = /*@__PURE__*/
|
|
20527
|
-
(
|
|
20528
|
-
Schema.
|
|
20529
|
-
|
|
20530
|
-
|
|
20531
|
-
|
|
20532
|
-
|
|
20626
|
+
export const GetVersionResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
20627
|
+
Schema.Struct({
|
|
20628
|
+
id: Schema.String,
|
|
20629
|
+
kind: Schema.Union([
|
|
20630
|
+
Schema.Literals(["managed", "custom", "root", "zone"]),
|
|
20631
|
+
Schema.String,
|
|
20632
|
+
]),
|
|
20633
|
+
lastUpdated: Schema.String,
|
|
20634
|
+
name: Schema.String,
|
|
20635
|
+
phase: Schema.Union([
|
|
20636
|
+
Schema.Literals([
|
|
20637
|
+
"ddos_l4",
|
|
20638
|
+
"ddos_l7",
|
|
20639
|
+
"http_config_settings",
|
|
20640
|
+
"http_custom_errors",
|
|
20641
|
+
"http_log_custom_fields",
|
|
20642
|
+
"http_ratelimit",
|
|
20643
|
+
"http_request_cache_settings",
|
|
20644
|
+
"http_request_dynamic_redirect",
|
|
20645
|
+
"http_request_firewall_custom",
|
|
20646
|
+
"http_request_firewall_managed",
|
|
20647
|
+
"http_request_late_transform",
|
|
20648
|
+
"http_request_origin",
|
|
20649
|
+
"http_request_redirect",
|
|
20650
|
+
"http_request_sanitize",
|
|
20651
|
+
"http_request_sbfm",
|
|
20652
|
+
"http_request_transform",
|
|
20653
|
+
"http_response_cache_settings",
|
|
20654
|
+
"http_response_compression",
|
|
20655
|
+
"http_response_firewall_managed",
|
|
20656
|
+
"http_response_headers_transform",
|
|
20657
|
+
"magic_transit",
|
|
20658
|
+
"magic_transit_ids_managed",
|
|
20659
|
+
"magic_transit_managed",
|
|
20660
|
+
"magic_transit_ratelimit",
|
|
20533
20661
|
]),
|
|
20534
|
-
|
|
20535
|
-
|
|
20536
|
-
|
|
20537
|
-
|
|
20538
|
-
|
|
20539
|
-
|
|
20540
|
-
|
|
20541
|
-
|
|
20542
|
-
|
|
20543
|
-
|
|
20544
|
-
|
|
20545
|
-
|
|
20546
|
-
|
|
20547
|
-
|
|
20548
|
-
|
|
20549
|
-
|
|
20550
|
-
|
|
20551
|
-
|
|
20552
|
-
|
|
20553
|
-
|
|
20554
|
-
|
|
20555
|
-
|
|
20556
|
-
|
|
20557
|
-
|
|
20558
|
-
"magic_transit",
|
|
20559
|
-
"magic_transit_ids_managed",
|
|
20560
|
-
"magic_transit_managed",
|
|
20561
|
-
"magic_transit_ratelimit",
|
|
20562
|
-
]),
|
|
20563
|
-
Schema.String,
|
|
20662
|
+
Schema.String,
|
|
20663
|
+
]),
|
|
20664
|
+
rules: Schema.Array(
|
|
20665
|
+
Schema.Union([
|
|
20666
|
+
BlockRule,
|
|
20667
|
+
RulesetsChallengeRule,
|
|
20668
|
+
CompressResponseRule,
|
|
20669
|
+
DdoSDynamicRule,
|
|
20670
|
+
ExecuteRule,
|
|
20671
|
+
ForceConnectionCloseRule,
|
|
20672
|
+
RulesetsJSChallengeRule,
|
|
20673
|
+
LogRule,
|
|
20674
|
+
LogCustomFieldRule,
|
|
20675
|
+
ManagedChallengeRule,
|
|
20676
|
+
RedirectRule2,
|
|
20677
|
+
RewriteRule,
|
|
20678
|
+
RouteRule,
|
|
20679
|
+
ScoreRule,
|
|
20680
|
+
ServeErrorRule,
|
|
20681
|
+
RulesetsSetCacheControlRule,
|
|
20682
|
+
SetCacheSettingsRule,
|
|
20683
|
+
RulesetsSetCacheTagsRule,
|
|
20684
|
+
SetConfigRule,
|
|
20685
|
+
SkipRule,
|
|
20564
20686
|
]),
|
|
20565
|
-
|
|
20566
|
-
|
|
20567
|
-
|
|
20568
|
-
|
|
20569
|
-
|
|
20570
|
-
|
|
20571
|
-
|
|
20572
|
-
|
|
20573
|
-
|
|
20574
|
-
|
|
20575
|
-
|
|
20576
|
-
|
|
20577
|
-
|
|
20578
|
-
|
|
20579
|
-
|
|
20580
|
-
|
|
20581
|
-
|
|
20582
|
-
RulesetsSetCacheControlRule,
|
|
20583
|
-
SetCacheSettingsRule,
|
|
20584
|
-
RulesetsSetCacheTagsRule,
|
|
20585
|
-
SetConfigRule,
|
|
20586
|
-
SkipRule,
|
|
20587
|
-
]),
|
|
20588
|
-
),
|
|
20589
|
-
version: Schema.String,
|
|
20590
|
-
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
20591
|
-
})
|
|
20592
|
-
.pipe(
|
|
20593
|
-
Schema.encodeKeys({
|
|
20594
|
-
id: "id",
|
|
20595
|
-
kind: "kind",
|
|
20596
|
-
lastUpdated: "last_updated",
|
|
20597
|
-
name: "name",
|
|
20598
|
-
phase: "phase",
|
|
20599
|
-
rules: "rules",
|
|
20600
|
-
version: "version",
|
|
20601
|
-
description: "description",
|
|
20602
|
-
}),
|
|
20603
|
-
)
|
|
20604
|
-
.pipe(T.ResponsePath("result")),
|
|
20687
|
+
),
|
|
20688
|
+
version: Schema.String,
|
|
20689
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
20690
|
+
})
|
|
20691
|
+
.pipe(
|
|
20692
|
+
Schema.encodeKeys({
|
|
20693
|
+
id: "id",
|
|
20694
|
+
kind: "kind",
|
|
20695
|
+
lastUpdated: "last_updated",
|
|
20696
|
+
name: "name",
|
|
20697
|
+
phase: "phase",
|
|
20698
|
+
rules: "rules",
|
|
20699
|
+
version: "version",
|
|
20700
|
+
description: "description",
|
|
20701
|
+
}),
|
|
20702
|
+
)
|
|
20703
|
+
.pipe(T.ResponsePath("result")),
|
|
20605
20704
|
) as unknown as Schema.Codec<GetVersionResponse>;
|
|
20606
20705
|
|
|
20607
20706
|
export type GetVersionError = DefaultErrors;
|
|
@@ -20611,7 +20710,7 @@ export const getVersionForAccount: API.OperationMethod<
|
|
|
20611
20710
|
GetVersionResponse,
|
|
20612
20711
|
GetVersionError,
|
|
20613
20712
|
Credentials | HttpClient.HttpClient
|
|
20614
|
-
> = /*@__PURE__*/
|
|
20713
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
20615
20714
|
input: GetVersionForAccountRequest,
|
|
20616
20715
|
output: GetVersionResponse,
|
|
20617
20716
|
errors: [],
|
|
@@ -20622,7 +20721,7 @@ export const getVersionForZone: API.OperationMethod<
|
|
|
20622
20721
|
GetVersionResponse,
|
|
20623
20722
|
GetVersionError,
|
|
20624
20723
|
Credentials | HttpClient.HttpClient
|
|
20625
|
-
> = /*@__PURE__*/
|
|
20724
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
20626
20725
|
input: GetVersionForZoneRequest,
|
|
20627
20726
|
output: GetVersionResponse,
|
|
20628
20727
|
errors: [],
|
|
@@ -20647,7 +20746,7 @@ export interface ListVersionsForZoneRequest extends ListVersionsBaseRequest {
|
|
|
20647
20746
|
}
|
|
20648
20747
|
|
|
20649
20748
|
export const ListVersionsForAccountRequest =
|
|
20650
|
-
/*@__PURE__*/
|
|
20749
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
20651
20750
|
Schema.Struct({
|
|
20652
20751
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
20653
20752
|
...ListVersionsBaseFields,
|
|
@@ -20660,7 +20759,7 @@ export const ListVersionsForAccountRequest =
|
|
|
20660
20759
|
) as unknown as Schema.Codec<ListVersionsForAccountRequest>;
|
|
20661
20760
|
|
|
20662
20761
|
export const ListVersionsForZoneRequest =
|
|
20663
|
-
/*@__PURE__*/
|
|
20762
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
20664
20763
|
Schema.Struct({
|
|
20665
20764
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
20666
20765
|
...ListVersionsBaseFields,
|
|
@@ -20709,11 +20808,10 @@ export interface ListVersionsResponse {
|
|
|
20709
20808
|
}[];
|
|
20710
20809
|
}
|
|
20711
20810
|
|
|
20712
|
-
export const ListVersionsResponse = /*@__PURE__*/
|
|
20713
|
-
(
|
|
20714
|
-
Schema.
|
|
20715
|
-
|
|
20716
|
-
}),
|
|
20811
|
+
export const ListVersionsResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
20812
|
+
Schema.Struct({
|
|
20813
|
+
result: Schema.Array(ListPhasVersionsResponseResult),
|
|
20814
|
+
}),
|
|
20717
20815
|
) as unknown as Schema.Codec<ListVersionsResponse>;
|
|
20718
20816
|
|
|
20719
20817
|
export type ListVersionsError = DefaultErrors;
|
|
@@ -20723,7 +20821,7 @@ export const listVersionsForAccount: API.PaginatedOperationMethod<
|
|
|
20723
20821
|
ListVersionsResponse,
|
|
20724
20822
|
ListVersionsError,
|
|
20725
20823
|
Credentials | HttpClient.HttpClient
|
|
20726
|
-
> = /*@__PURE__*/
|
|
20824
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
20727
20825
|
input: ListVersionsForAccountRequest,
|
|
20728
20826
|
output: ListVersionsResponse,
|
|
20729
20827
|
errors: [],
|
|
@@ -20738,7 +20836,7 @@ export const listVersionsForZone: API.PaginatedOperationMethod<
|
|
|
20738
20836
|
ListVersionsResponse,
|
|
20739
20837
|
ListVersionsError,
|
|
20740
20838
|
Credentials | HttpClient.HttpClient
|
|
20741
|
-
> = /*@__PURE__*/
|
|
20839
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
20742
20840
|
input: ListVersionsForZoneRequest,
|
|
20743
20841
|
output: ListVersionsResponse,
|
|
20744
20842
|
errors: [],
|
|
@@ -20769,7 +20867,7 @@ export interface DeleteVersionForZoneRequest extends DeleteVersionBaseRequest {
|
|
|
20769
20867
|
}
|
|
20770
20868
|
|
|
20771
20869
|
export const DeleteVersionForAccountRequest =
|
|
20772
|
-
/*@__PURE__*/
|
|
20870
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
20773
20871
|
Schema.Struct({
|
|
20774
20872
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
20775
20873
|
...DeleteVersionBaseFields,
|
|
@@ -20782,7 +20880,7 @@ export const DeleteVersionForAccountRequest =
|
|
|
20782
20880
|
) as unknown as Schema.Codec<DeleteVersionForAccountRequest>;
|
|
20783
20881
|
|
|
20784
20882
|
export const DeleteVersionForZoneRequest =
|
|
20785
|
-
/*@__PURE__*/
|
|
20883
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
20786
20884
|
Schema.Struct({
|
|
20787
20885
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
20788
20886
|
...DeleteVersionBaseFields,
|
|
@@ -20796,7 +20894,7 @@ export const DeleteVersionForZoneRequest =
|
|
|
20796
20894
|
|
|
20797
20895
|
export type DeleteVersionResponse = unknown;
|
|
20798
20896
|
|
|
20799
|
-
export const DeleteVersionResponse = /*@__PURE__*/
|
|
20897
|
+
export const DeleteVersionResponse = /*@__PURE__*/ Schema.suspend(
|
|
20800
20898
|
() => Schema.Unknown,
|
|
20801
20899
|
) as unknown as Schema.Codec<DeleteVersionResponse>;
|
|
20802
20900
|
|
|
@@ -20807,7 +20905,7 @@ export const deleteVersionForAccount: API.OperationMethod<
|
|
|
20807
20905
|
DeleteVersionResponse,
|
|
20808
20906
|
DeleteVersionError,
|
|
20809
20907
|
Credentials | HttpClient.HttpClient
|
|
20810
|
-
> = /*@__PURE__*/
|
|
20908
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
20811
20909
|
input: DeleteVersionForAccountRequest,
|
|
20812
20910
|
output: DeleteVersionResponse,
|
|
20813
20911
|
errors: [],
|
|
@@ -20818,7 +20916,7 @@ export const deleteVersionForZone: API.OperationMethod<
|
|
|
20818
20916
|
DeleteVersionResponse,
|
|
20819
20917
|
DeleteVersionError,
|
|
20820
20918
|
Credentials | HttpClient.HttpClient
|
|
20821
|
-
> = /*@__PURE__*/
|
|
20919
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
20822
20920
|
input: DeleteVersionForZoneRequest,
|
|
20823
20921
|
output: DeleteVersionResponse,
|
|
20824
20922
|
errors: [],
|