@distilled.cloud/cloudflare 0.29.0 → 0.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/services/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/lib/services/rulesets.js
CHANGED
|
@@ -27,7 +27,7 @@ export class RulesetNotFound extends T.applyErrorMatchers(Schema.TaggedErrorClas
|
|
|
27
27
|
message: Schema.String,
|
|
28
28
|
}), [{ code: 10003 }, { code: 10001 }]) {
|
|
29
29
|
}
|
|
30
|
-
const Response = /*@__PURE__*/
|
|
30
|
+
const Response = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
31
31
|
content: Schema.String,
|
|
32
32
|
contentType: Schema.String,
|
|
33
33
|
statusCode: Schema.Number,
|
|
@@ -36,20 +36,20 @@ const Response = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct(
|
|
|
36
36
|
contentType: "content_type",
|
|
37
37
|
statusCode: "status_code",
|
|
38
38
|
})));
|
|
39
|
-
const ActionParameters = /*@__PURE__*/
|
|
39
|
+
const ActionParameters = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
40
40
|
response: Schema.optional(Schema.Union([Response, Schema.Null])),
|
|
41
41
|
}));
|
|
42
|
-
const ExposedCredentialCheck = /*@__PURE__*/
|
|
42
|
+
const ExposedCredentialCheck = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
43
43
|
passwordExpression: SensitiveString,
|
|
44
44
|
usernameExpression: Schema.String,
|
|
45
45
|
}).pipe(Schema.encodeKeys({
|
|
46
46
|
passwordExpression: "password_expression",
|
|
47
47
|
usernameExpression: "username_expression",
|
|
48
48
|
})));
|
|
49
|
-
const Logging = /*@__PURE__*/
|
|
49
|
+
const Logging = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
50
50
|
enabled: Schema.Boolean,
|
|
51
51
|
}));
|
|
52
|
-
const Ratelimit = /*@__PURE__*/
|
|
52
|
+
const Ratelimit = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
53
53
|
characteristics: Schema.Array(Schema.String),
|
|
54
54
|
period: Schema.Number,
|
|
55
55
|
countingExpression: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -68,7 +68,7 @@ const Ratelimit = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct
|
|
|
68
68
|
scorePerPeriod: "score_per_period",
|
|
69
69
|
scoreResponseHeaderName: "score_response_header_name",
|
|
70
70
|
})));
|
|
71
|
-
const BlockRule = /*@__PURE__*/
|
|
71
|
+
const BlockRule = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
72
72
|
lastUpdated: Schema.String,
|
|
73
73
|
version: Schema.String,
|
|
74
74
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -97,7 +97,7 @@ const BlockRule = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct
|
|
|
97
97
|
ratelimit: "ratelimit",
|
|
98
98
|
ref: "ref",
|
|
99
99
|
})));
|
|
100
|
-
const RulesetsChallengeRule = /*@__PURE__*/
|
|
100
|
+
const RulesetsChallengeRule = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
101
101
|
lastUpdated: Schema.String,
|
|
102
102
|
version: Schema.String,
|
|
103
103
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -126,7 +126,7 @@ const RulesetsChallengeRule = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => S
|
|
|
126
126
|
ratelimit: "ratelimit",
|
|
127
127
|
ref: "ref",
|
|
128
128
|
})));
|
|
129
|
-
const Algorithm = /*@__PURE__*/
|
|
129
|
+
const Algorithm = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
130
130
|
name: Schema.optional(Schema.Union([
|
|
131
131
|
Schema.Union([
|
|
132
132
|
Schema.Literals([
|
|
@@ -142,10 +142,10 @@ const Algorithm = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct
|
|
|
142
142
|
Schema.Null,
|
|
143
143
|
])),
|
|
144
144
|
}));
|
|
145
|
-
const ActionParameters2 = /*@__PURE__*/
|
|
145
|
+
const ActionParameters2 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
146
146
|
algorithms: Schema.Array(Algorithm),
|
|
147
147
|
}));
|
|
148
|
-
const CompressResponseRule = /*@__PURE__*/
|
|
148
|
+
const CompressResponseRule = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
149
149
|
lastUpdated: Schema.String,
|
|
150
150
|
version: Schema.String,
|
|
151
151
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -174,7 +174,7 @@ const CompressResponseRule = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Sc
|
|
|
174
174
|
ratelimit: "ratelimit",
|
|
175
175
|
ref: "ref",
|
|
176
176
|
})));
|
|
177
|
-
const DdoSDynamicRule = /*@__PURE__*/
|
|
177
|
+
const DdoSDynamicRule = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
178
178
|
lastUpdated: Schema.String,
|
|
179
179
|
version: Schema.String,
|
|
180
180
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -203,10 +203,10 @@ const DdoSDynamicRule = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.
|
|
|
203
203
|
ratelimit: "ratelimit",
|
|
204
204
|
ref: "ref",
|
|
205
205
|
})));
|
|
206
|
-
const MatchedData = /*@__PURE__*/
|
|
206
|
+
const MatchedData = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
207
207
|
publicKey: Schema.String,
|
|
208
208
|
}).pipe(Schema.encodeKeys({ publicKey: "public_key" })));
|
|
209
|
-
const Category = /*@__PURE__*/
|
|
209
|
+
const Category = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
210
210
|
category: Schema.String,
|
|
211
211
|
action: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
212
212
|
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
@@ -223,7 +223,7 @@ const Category = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct(
|
|
|
223
223
|
enabled: "enabled",
|
|
224
224
|
sensitivityLevel: "sensitivity_level",
|
|
225
225
|
})));
|
|
226
|
-
const Rule = /*@__PURE__*/
|
|
226
|
+
const Rule = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
227
227
|
id: Schema.String,
|
|
228
228
|
action: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
229
229
|
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
@@ -242,7 +242,7 @@ const Rule = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
|
242
242
|
scoreThreshold: "score_threshold",
|
|
243
243
|
sensitivityLevel: "sensitivity_level",
|
|
244
244
|
})));
|
|
245
|
-
const Overrides = /*@__PURE__*/
|
|
245
|
+
const Overrides = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
246
246
|
action: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
247
247
|
categories: Schema.optional(Schema.Union([Schema.Array(Category), Schema.Null])),
|
|
248
248
|
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
@@ -261,7 +261,7 @@ const Overrides = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct
|
|
|
261
261
|
rules: "rules",
|
|
262
262
|
sensitivityLevel: "sensitivity_level",
|
|
263
263
|
})));
|
|
264
|
-
const ActionParameters3 = /*@__PURE__*/
|
|
264
|
+
const ActionParameters3 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
265
265
|
id: Schema.String,
|
|
266
266
|
matchedData: Schema.optional(Schema.Union([MatchedData, Schema.Null])),
|
|
267
267
|
overrides: Schema.optional(Schema.Union([Overrides, Schema.Null])),
|
|
@@ -270,7 +270,7 @@ const ActionParameters3 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schem
|
|
|
270
270
|
matchedData: "matched_data",
|
|
271
271
|
overrides: "overrides",
|
|
272
272
|
})));
|
|
273
|
-
const ExecuteRule = /*@__PURE__*/
|
|
273
|
+
const ExecuteRule = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
274
274
|
lastUpdated: Schema.String,
|
|
275
275
|
version: Schema.String,
|
|
276
276
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -299,7 +299,7 @@ const ExecuteRule = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Stru
|
|
|
299
299
|
ratelimit: "ratelimit",
|
|
300
300
|
ref: "ref",
|
|
301
301
|
})));
|
|
302
|
-
const ForceConnectionCloseRule = /*@__PURE__*/
|
|
302
|
+
const ForceConnectionCloseRule = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
303
303
|
lastUpdated: Schema.String,
|
|
304
304
|
version: Schema.String,
|
|
305
305
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -328,7 +328,7 @@ const ForceConnectionCloseRule = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =
|
|
|
328
328
|
ratelimit: "ratelimit",
|
|
329
329
|
ref: "ref",
|
|
330
330
|
})));
|
|
331
|
-
const RulesetsJSChallengeRule = /*@__PURE__*/
|
|
331
|
+
const RulesetsJSChallengeRule = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
332
332
|
lastUpdated: Schema.String,
|
|
333
333
|
version: Schema.String,
|
|
334
334
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -357,7 +357,7 @@ const RulesetsJSChallengeRule = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
|
|
|
357
357
|
ratelimit: "ratelimit",
|
|
358
358
|
ref: "ref",
|
|
359
359
|
})));
|
|
360
|
-
const LogRule = /*@__PURE__*/
|
|
360
|
+
const LogRule = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
361
361
|
lastUpdated: Schema.String,
|
|
362
362
|
version: Schema.String,
|
|
363
363
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -386,17 +386,17 @@ const LogRule = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
|
386
386
|
ratelimit: "ratelimit",
|
|
387
387
|
ref: "ref",
|
|
388
388
|
})));
|
|
389
|
-
const CookieField = /*@__PURE__*/
|
|
389
|
+
const CookieField = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
390
390
|
name: Schema.String,
|
|
391
391
|
}));
|
|
392
|
-
const RawResponseField = /*@__PURE__*/
|
|
392
|
+
const RawResponseField = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
393
393
|
name: Schema.String,
|
|
394
394
|
preserveDuplicates: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
395
395
|
}).pipe(Schema.encodeKeys({
|
|
396
396
|
name: "name",
|
|
397
397
|
preserveDuplicates: "preserve_duplicates",
|
|
398
398
|
})));
|
|
399
|
-
const ActionParameters4 = /*@__PURE__*/
|
|
399
|
+
const ActionParameters4 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
400
400
|
cookieFields: Schema.optional(Schema.Union([Schema.Array(CookieField), Schema.Null])),
|
|
401
401
|
rawResponseFields: Schema.optional(Schema.Union([Schema.Array(RawResponseField), Schema.Null])),
|
|
402
402
|
requestFields: Schema.optional(Schema.Union([Schema.Array(CookieField), Schema.Null])),
|
|
@@ -409,7 +409,7 @@ const ActionParameters4 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schem
|
|
|
409
409
|
responseFields: "response_fields",
|
|
410
410
|
transformedRequestFields: "transformed_request_fields",
|
|
411
411
|
})));
|
|
412
|
-
const LogCustomFieldRule = /*@__PURE__*/
|
|
412
|
+
const LogCustomFieldRule = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
413
413
|
lastUpdated: Schema.String,
|
|
414
414
|
version: Schema.String,
|
|
415
415
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -438,7 +438,7 @@ const LogCustomFieldRule = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Sche
|
|
|
438
438
|
ratelimit: "ratelimit",
|
|
439
439
|
ref: "ref",
|
|
440
440
|
})));
|
|
441
|
-
const ManagedChallengeRule = /*@__PURE__*/
|
|
441
|
+
const ManagedChallengeRule = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
442
442
|
lastUpdated: Schema.String,
|
|
443
443
|
version: Schema.String,
|
|
444
444
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -467,15 +467,15 @@ const ManagedChallengeRule = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Sc
|
|
|
467
467
|
ratelimit: "ratelimit",
|
|
468
468
|
ref: "ref",
|
|
469
469
|
})));
|
|
470
|
-
const FromList = /*@__PURE__*/
|
|
470
|
+
const FromList = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
471
471
|
key: Schema.String,
|
|
472
472
|
name: Schema.String,
|
|
473
473
|
}));
|
|
474
|
-
const TargetURL = /*@__PURE__*/
|
|
474
|
+
const TargetURL = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
475
475
|
expression: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
476
476
|
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
477
477
|
}));
|
|
478
|
-
const FromValue = /*@__PURE__*/
|
|
478
|
+
const FromValue = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
479
479
|
targetUrl: TargetURL,
|
|
480
480
|
preserveQueryString: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
481
481
|
statusCode: Schema.optional(Schema.Union([
|
|
@@ -494,11 +494,11 @@ const FromValue = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct
|
|
|
494
494
|
preserveQueryString: "preserve_query_string",
|
|
495
495
|
statusCode: "status_code",
|
|
496
496
|
})));
|
|
497
|
-
const ActionParameters5 = /*@__PURE__*/
|
|
497
|
+
const ActionParameters5 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
498
498
|
fromList: Schema.optional(Schema.Union([FromList, Schema.Null])),
|
|
499
499
|
fromValue: Schema.optional(Schema.Union([FromValue, Schema.Null])),
|
|
500
500
|
}).pipe(Schema.encodeKeys({ fromList: "from_list", fromValue: "from_value" })));
|
|
501
|
-
const RedirectRule = /*@__PURE__*/
|
|
501
|
+
const RedirectRule = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
502
502
|
lastUpdated: Schema.String,
|
|
503
503
|
version: Schema.String,
|
|
504
504
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -527,19 +527,19 @@ const RedirectRule = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Str
|
|
|
527
527
|
ratelimit: "ratelimit",
|
|
528
528
|
ref: "ref",
|
|
529
529
|
})));
|
|
530
|
-
const Uripath = /*@__PURE__*/
|
|
530
|
+
const Uripath = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
531
531
|
path: TargetURL,
|
|
532
532
|
origin: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
533
533
|
}));
|
|
534
|
-
const Uriquery = /*@__PURE__*/
|
|
534
|
+
const Uriquery = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
535
535
|
query: TargetURL,
|
|
536
536
|
origin: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
537
537
|
}));
|
|
538
|
-
const ActionParameters6 = /*@__PURE__*/
|
|
538
|
+
const ActionParameters6 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
539
539
|
headers: Schema.optional(Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null])),
|
|
540
540
|
uri: Schema.optional(Schema.Union([Schema.Union([Uripath, Uriquery]), Schema.Null])),
|
|
541
541
|
}));
|
|
542
|
-
const RewriteRule = /*@__PURE__*/
|
|
542
|
+
const RewriteRule = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
543
543
|
lastUpdated: Schema.String,
|
|
544
544
|
version: Schema.String,
|
|
545
545
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -568,14 +568,14 @@ const RewriteRule = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Stru
|
|
|
568
568
|
ratelimit: "ratelimit",
|
|
569
569
|
ref: "ref",
|
|
570
570
|
})));
|
|
571
|
-
const Origin = /*@__PURE__*/
|
|
571
|
+
const Origin = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
572
572
|
host: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
573
573
|
port: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
574
574
|
}));
|
|
575
|
-
const Sni = /*@__PURE__*/
|
|
575
|
+
const Sni = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
576
576
|
value: Schema.String,
|
|
577
577
|
}));
|
|
578
|
-
const ActionParameters7 = /*@__PURE__*/
|
|
578
|
+
const ActionParameters7 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
579
579
|
hostHeader: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
580
580
|
origin: Schema.optional(Schema.Union([Origin, Schema.Null])),
|
|
581
581
|
sni: Schema.optional(Schema.Union([Sni, Schema.Null])),
|
|
@@ -584,7 +584,7 @@ const ActionParameters7 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schem
|
|
|
584
584
|
origin: "origin",
|
|
585
585
|
sni: "sni",
|
|
586
586
|
})));
|
|
587
|
-
const RouteRule = /*@__PURE__*/
|
|
587
|
+
const RouteRule = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
588
588
|
lastUpdated: Schema.String,
|
|
589
589
|
version: Schema.String,
|
|
590
590
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -613,10 +613,10 @@ const RouteRule = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct
|
|
|
613
613
|
ratelimit: "ratelimit",
|
|
614
614
|
ref: "ref",
|
|
615
615
|
})));
|
|
616
|
-
const ActionParameters8 = /*@__PURE__*/
|
|
616
|
+
const ActionParameters8 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
617
617
|
increment: Schema.Number,
|
|
618
618
|
}));
|
|
619
|
-
const ScoreRule = /*@__PURE__*/
|
|
619
|
+
const ScoreRule = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
620
620
|
lastUpdated: Schema.String,
|
|
621
621
|
version: Schema.String,
|
|
622
622
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -645,7 +645,7 @@ const ScoreRule = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct
|
|
|
645
645
|
ratelimit: "ratelimit",
|
|
646
646
|
ref: "ref",
|
|
647
647
|
})));
|
|
648
|
-
const ActionParametersContent = /*@__PURE__*/
|
|
648
|
+
const ActionParametersContent = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
649
649
|
content: Schema.String,
|
|
650
650
|
contentType: Schema.optional(Schema.Union([
|
|
651
651
|
Schema.Union([
|
|
@@ -665,7 +665,7 @@ const ActionParametersContent = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
|
|
|
665
665
|
contentType: "content_type",
|
|
666
666
|
statusCode: "status_code",
|
|
667
667
|
})));
|
|
668
|
-
const ActionParametersAsset = /*@__PURE__*/
|
|
668
|
+
const ActionParametersAsset = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
669
669
|
assetName: Schema.String,
|
|
670
670
|
contentType: Schema.optional(Schema.Union([
|
|
671
671
|
Schema.Union([
|
|
@@ -685,7 +685,7 @@ const ActionParametersAsset = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => S
|
|
|
685
685
|
contentType: "content_type",
|
|
686
686
|
statusCode: "status_code",
|
|
687
687
|
})));
|
|
688
|
-
const ServeErrorRule = /*@__PURE__*/
|
|
688
|
+
const ServeErrorRule = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
689
689
|
lastUpdated: Schema.String,
|
|
690
690
|
version: Schema.String,
|
|
691
691
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -717,7 +717,7 @@ const ServeErrorRule = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.S
|
|
|
717
717
|
ratelimit: "ratelimit",
|
|
718
718
|
ref: "ref",
|
|
719
719
|
})));
|
|
720
|
-
const SetDirective = /*@__PURE__*/
|
|
720
|
+
const SetDirective = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
721
721
|
operation: Schema.Union([
|
|
722
722
|
Schema.Literals(["set", "remove"]),
|
|
723
723
|
Schema.String,
|
|
@@ -727,7 +727,7 @@ const SetDirective = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Str
|
|
|
727
727
|
operation: "operation",
|
|
728
728
|
cloudflareOnly: "cloudflare_only",
|
|
729
729
|
})));
|
|
730
|
-
const ActionParameters9 = /*@__PURE__*/
|
|
730
|
+
const ActionParameters9 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
731
731
|
immutable: Schema.optional(Schema.Union([SetDirective, Schema.Null])),
|
|
732
732
|
maxAge: Schema.optional(Schema.Union([SetDirective, Schema.Null])),
|
|
733
733
|
mustRevalidate: Schema.optional(Schema.Union([SetDirective, Schema.Null])),
|
|
@@ -756,7 +756,7 @@ const ActionParameters9 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schem
|
|
|
756
756
|
staleIfError: "stale-if-error",
|
|
757
757
|
staleWhileRevalidate: "stale-while-revalidate",
|
|
758
758
|
})));
|
|
759
|
-
const RulesetsSetCacheControlRule = /*@__PURE__*/
|
|
759
|
+
const RulesetsSetCacheControlRule = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
760
760
|
lastUpdated: Schema.String,
|
|
761
761
|
version: Schema.String,
|
|
762
762
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -785,7 +785,7 @@ const RulesetsSetCacheControlRule = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend((
|
|
|
785
785
|
ratelimit: "ratelimit",
|
|
786
786
|
ref: "ref",
|
|
787
787
|
})));
|
|
788
|
-
const BrowserTTL = /*@__PURE__*/
|
|
788
|
+
const BrowserTTL = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
789
789
|
mode: Schema.Union([
|
|
790
790
|
Schema.Literals([
|
|
791
791
|
"respect_origin",
|
|
@@ -797,11 +797,11 @@ const BrowserTTL = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struc
|
|
|
797
797
|
]),
|
|
798
798
|
default: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
799
799
|
}));
|
|
800
|
-
const Cookie = /*@__PURE__*/
|
|
800
|
+
const Cookie = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
801
801
|
checkPresence: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
802
802
|
include: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
803
803
|
}).pipe(Schema.encodeKeys({ checkPresence: "check_presence", include: "include" })));
|
|
804
|
-
const Header = /*@__PURE__*/
|
|
804
|
+
const Header = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
805
805
|
checkPresence: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
806
806
|
contains: Schema.optional(Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null])),
|
|
807
807
|
excludeOrigin: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
@@ -812,23 +812,23 @@ const Header = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
|
812
812
|
excludeOrigin: "exclude_origin",
|
|
813
813
|
include: "include",
|
|
814
814
|
})));
|
|
815
|
-
const Host = /*@__PURE__*/
|
|
815
|
+
const Host = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
816
816
|
resolved: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
817
817
|
}));
|
|
818
|
-
const Exclude2 = /*@__PURE__*/
|
|
818
|
+
const Exclude2 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
819
819
|
all: Schema.optional(Schema.Union([Schema.Literal(true), Schema.Null])),
|
|
820
820
|
list: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
821
821
|
}));
|
|
822
|
-
const QueryString = /*@__PURE__*/
|
|
822
|
+
const QueryString = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
823
823
|
exclude: Schema.optional(Schema.Union([Exclude2, Schema.Null])),
|
|
824
824
|
include: Schema.optional(Schema.Union([Exclude2, Schema.Null])),
|
|
825
825
|
}));
|
|
826
|
-
const User = /*@__PURE__*/
|
|
826
|
+
const User = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
827
827
|
deviceType: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
828
828
|
geo: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
829
829
|
lang: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
830
830
|
}).pipe(Schema.encodeKeys({ deviceType: "device_type", geo: "geo", lang: "lang" })));
|
|
831
|
-
const CustomKey = /*@__PURE__*/
|
|
831
|
+
const CustomKey = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
832
832
|
cookie: Schema.optional(Schema.Union([Cookie, Schema.Null])),
|
|
833
833
|
header: Schema.optional(Schema.Union([Header, Schema.Null])),
|
|
834
834
|
host: Schema.optional(Schema.Union([Host, Schema.Null])),
|
|
@@ -841,7 +841,7 @@ const CustomKey = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct
|
|
|
841
841
|
queryString: "query_string",
|
|
842
842
|
user: "user",
|
|
843
843
|
})));
|
|
844
|
-
const CacheKey = /*@__PURE__*/
|
|
844
|
+
const CacheKey = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
845
845
|
cacheByDeviceType: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
846
846
|
cacheDeceptionArmor: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
847
847
|
customKey: Schema.optional(Schema.Union([CustomKey, Schema.Null])),
|
|
@@ -852,18 +852,18 @@ const CacheKey = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct(
|
|
|
852
852
|
customKey: "custom_key",
|
|
853
853
|
ignoreQueryStringsOrder: "ignore_query_strings_order",
|
|
854
854
|
})));
|
|
855
|
-
const CacheReserve = /*@__PURE__*/
|
|
855
|
+
const CacheReserve = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
856
856
|
eligible: Schema.Boolean,
|
|
857
857
|
minimumFileSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
858
858
|
}).pipe(Schema.encodeKeys({
|
|
859
859
|
eligible: "eligible",
|
|
860
860
|
minimumFileSize: "minimum_file_size",
|
|
861
861
|
})));
|
|
862
|
-
const StatusCodeRange = /*@__PURE__*/
|
|
862
|
+
const StatusCodeRange = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
863
863
|
from: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
864
864
|
to: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
865
865
|
}));
|
|
866
|
-
const StatusCodeTTL = /*@__PURE__*/
|
|
866
|
+
const StatusCodeTTL = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
867
867
|
value: Schema.Number,
|
|
868
868
|
statusCode: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
869
869
|
statusCodeRange: Schema.optional(Schema.Union([StatusCodeRange, Schema.Null])),
|
|
@@ -872,7 +872,7 @@ const StatusCodeTTL = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.St
|
|
|
872
872
|
statusCode: "status_code",
|
|
873
873
|
statusCodeRange: "status_code_range",
|
|
874
874
|
})));
|
|
875
|
-
const EdgeTTL = /*@__PURE__*/
|
|
875
|
+
const EdgeTTL = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
876
876
|
mode: Schema.Union([
|
|
877
877
|
Schema.Literals([
|
|
878
878
|
"respect_origin",
|
|
@@ -888,25 +888,25 @@ const EdgeTTL = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
|
888
888
|
default: "default",
|
|
889
889
|
statusCodeTtl: "status_code_ttl",
|
|
890
890
|
})));
|
|
891
|
-
const ServeStale = /*@__PURE__*/
|
|
891
|
+
const ServeStale = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
892
892
|
disableStaleWhileUpdating: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
893
893
|
}).pipe(Schema.encodeKeys({
|
|
894
894
|
disableStaleWhileUpdating: "disable_stale_while_updating",
|
|
895
895
|
})));
|
|
896
|
-
const SharedDictionary = /*@__PURE__*/
|
|
896
|
+
const SharedDictionary = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
897
897
|
matchPattern: Schema.String,
|
|
898
898
|
}).pipe(Schema.encodeKeys({ matchPattern: "match_pattern" })));
|
|
899
|
-
const Default = /*@__PURE__*/
|
|
899
|
+
const Default = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
900
900
|
action: Schema.Union([
|
|
901
901
|
Schema.Literals(["bypass", "passthrough", "normalize"]),
|
|
902
902
|
Schema.String,
|
|
903
903
|
]),
|
|
904
904
|
}));
|
|
905
|
-
const Vary = /*@__PURE__*/
|
|
905
|
+
const Vary = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
906
906
|
default: Schema.optional(Schema.Union([Default, Schema.Null])),
|
|
907
907
|
headers: Schema.optional(Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null])),
|
|
908
908
|
}));
|
|
909
|
-
const ActionParameters10 = /*@__PURE__*/
|
|
909
|
+
const ActionParameters10 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
910
910
|
additionalCacheablePorts: Schema.optional(Schema.Union([Schema.Array(Schema.Number), Schema.Null])),
|
|
911
911
|
browserTtl: Schema.optional(Schema.Union([BrowserTTL, Schema.Null])),
|
|
912
912
|
cache: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
@@ -941,7 +941,7 @@ const ActionParameters10 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Sche
|
|
|
941
941
|
stripSetCookie: "strip_set_cookie",
|
|
942
942
|
vary: "vary",
|
|
943
943
|
})));
|
|
944
|
-
const SetCacheSettingsRule = /*@__PURE__*/
|
|
944
|
+
const SetCacheSettingsRule = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
945
945
|
lastUpdated: Schema.String,
|
|
946
946
|
version: Schema.String,
|
|
947
947
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -970,21 +970,21 @@ const SetCacheSettingsRule = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Sc
|
|
|
970
970
|
ratelimit: "ratelimit",
|
|
971
971
|
ref: "ref",
|
|
972
972
|
})));
|
|
973
|
-
const AddCacheTagsValues = /*@__PURE__*/
|
|
973
|
+
const AddCacheTagsValues = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
974
974
|
operation: Schema.Union([
|
|
975
975
|
Schema.Literals(["add", "remove", "set"]),
|
|
976
976
|
Schema.String,
|
|
977
977
|
]),
|
|
978
978
|
values: Schema.Array(Schema.String),
|
|
979
979
|
}));
|
|
980
|
-
const AddCacheTagsExpression = /*@__PURE__*/
|
|
980
|
+
const AddCacheTagsExpression = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
981
981
|
expression: Schema.String,
|
|
982
982
|
operation: Schema.Union([
|
|
983
983
|
Schema.Literals(["add", "remove", "set"]),
|
|
984
984
|
Schema.String,
|
|
985
985
|
]),
|
|
986
986
|
}));
|
|
987
|
-
const RulesetsSetCacheTagsRule = /*@__PURE__*/
|
|
987
|
+
const RulesetsSetCacheTagsRule = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
988
988
|
lastUpdated: Schema.String,
|
|
989
989
|
version: Schema.String,
|
|
990
990
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -1016,12 +1016,12 @@ const RulesetsSetCacheTagsRule = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =
|
|
|
1016
1016
|
ratelimit: "ratelimit",
|
|
1017
1017
|
ref: "ref",
|
|
1018
1018
|
})));
|
|
1019
|
-
const Autominify = /*@__PURE__*/
|
|
1019
|
+
const Autominify = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1020
1020
|
css: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1021
1021
|
html: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1022
1022
|
js: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1023
1023
|
}));
|
|
1024
|
-
const ActionParameters11 = /*@__PURE__*/
|
|
1024
|
+
const ActionParameters11 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1025
1025
|
automaticHttpsRewrites: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1026
1026
|
autominify: Schema.optional(Schema.Union([Autominify, Schema.Null])),
|
|
1027
1027
|
bic: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
@@ -1102,7 +1102,7 @@ const ActionParameters11 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Sche
|
|
|
1102
1102
|
ssl: "ssl",
|
|
1103
1103
|
sxg: "sxg",
|
|
1104
1104
|
})));
|
|
1105
|
-
const SetConfigRule = /*@__PURE__*/
|
|
1105
|
+
const SetConfigRule = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1106
1106
|
lastUpdated: Schema.String,
|
|
1107
1107
|
version: Schema.String,
|
|
1108
1108
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -1131,7 +1131,7 @@ const SetConfigRule = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.St
|
|
|
1131
1131
|
ratelimit: "ratelimit",
|
|
1132
1132
|
ref: "ref",
|
|
1133
1133
|
})));
|
|
1134
|
-
const ActionParameters12 = /*@__PURE__*/
|
|
1134
|
+
const ActionParameters12 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1135
1135
|
phase: Schema.optional(Schema.Union([Schema.Literal("current"), Schema.Null])),
|
|
1136
1136
|
phases: Schema.optional(Schema.Union([
|
|
1137
1137
|
Schema.Array(Schema.Union([
|
|
@@ -1184,7 +1184,7 @@ const ActionParameters12 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Sche
|
|
|
1184
1184
|
ruleset: Schema.optional(Schema.Union([Schema.Literal("current"), Schema.Null])),
|
|
1185
1185
|
rulesets: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1186
1186
|
}));
|
|
1187
|
-
const SkipRule = /*@__PURE__*/
|
|
1187
|
+
const SkipRule = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1188
1188
|
lastUpdated: Schema.String,
|
|
1189
1189
|
version: Schema.String,
|
|
1190
1190
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -1213,7 +1213,7 @@ const SkipRule = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct(
|
|
|
1213
1213
|
ratelimit: "ratelimit",
|
|
1214
1214
|
ref: "ref",
|
|
1215
1215
|
})));
|
|
1216
|
-
const BlockRuleParam = /*@__PURE__*/
|
|
1216
|
+
const BlockRuleParam = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1217
1217
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1218
1218
|
action: Schema.optional(Schema.Union([Schema.Literal("block"), Schema.Null])),
|
|
1219
1219
|
actionParameters: Schema.optional(Schema.Union([ActionParameters, Schema.Null])),
|
|
@@ -1236,7 +1236,7 @@ const BlockRuleParam = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.S
|
|
|
1236
1236
|
ratelimit: "ratelimit",
|
|
1237
1237
|
ref: "ref",
|
|
1238
1238
|
})));
|
|
1239
|
-
const RulesetsChallengeRule2 = /*@__PURE__*/
|
|
1239
|
+
const RulesetsChallengeRule2 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1240
1240
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1241
1241
|
action: Schema.optional(Schema.Union([Schema.Literal("challenge"), Schema.Null])),
|
|
1242
1242
|
actionParameters: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
@@ -1259,7 +1259,7 @@ const RulesetsChallengeRule2 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
|
|
|
1259
1259
|
ratelimit: "ratelimit",
|
|
1260
1260
|
ref: "ref",
|
|
1261
1261
|
})));
|
|
1262
|
-
const CompressResponseRuleParam = /*@__PURE__*/
|
|
1262
|
+
const CompressResponseRuleParam = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1263
1263
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1264
1264
|
action: Schema.optional(Schema.Union([Schema.Literal("compress_response"), Schema.Null])),
|
|
1265
1265
|
actionParameters: Schema.optional(Schema.Union([ActionParameters2, Schema.Null])),
|
|
@@ -1282,7 +1282,7 @@ const CompressResponseRuleParam = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
|
|
|
1282
1282
|
ratelimit: "ratelimit",
|
|
1283
1283
|
ref: "ref",
|
|
1284
1284
|
})));
|
|
1285
|
-
const DdoSDynamicRuleParam = /*@__PURE__*/
|
|
1285
|
+
const DdoSDynamicRuleParam = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1286
1286
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1287
1287
|
action: Schema.optional(Schema.Union([Schema.Literal("ddos_dynamic"), Schema.Null])),
|
|
1288
1288
|
actionParameters: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
@@ -1305,7 +1305,7 @@ const DdoSDynamicRuleParam = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Sc
|
|
|
1305
1305
|
ratelimit: "ratelimit",
|
|
1306
1306
|
ref: "ref",
|
|
1307
1307
|
})));
|
|
1308
|
-
const ExecuteRuleParam = /*@__PURE__*/
|
|
1308
|
+
const ExecuteRuleParam = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1309
1309
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1310
1310
|
action: Schema.optional(Schema.Union([Schema.Literal("execute"), Schema.Null])),
|
|
1311
1311
|
actionParameters: Schema.optional(Schema.Union([ActionParameters3, Schema.Null])),
|
|
@@ -1329,7 +1329,7 @@ const ExecuteRuleParam = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema
|
|
|
1329
1329
|
ref: "ref",
|
|
1330
1330
|
})));
|
|
1331
1331
|
const ForceConnectionCloseRuleParam =
|
|
1332
|
-
/*@__PURE__*/
|
|
1332
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1333
1333
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1334
1334
|
action: Schema.optional(Schema.Union([Schema.Literal("force_connection_close"), Schema.Null])),
|
|
1335
1335
|
actionParameters: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
@@ -1352,7 +1352,7 @@ const ForceConnectionCloseRuleParam =
|
|
|
1352
1352
|
ratelimit: "ratelimit",
|
|
1353
1353
|
ref: "ref",
|
|
1354
1354
|
})));
|
|
1355
|
-
const RulesetsJSChallengeRule2 = /*@__PURE__*/
|
|
1355
|
+
const RulesetsJSChallengeRule2 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1356
1356
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1357
1357
|
action: Schema.optional(Schema.Union([Schema.Literal("js_challenge"), Schema.Null])),
|
|
1358
1358
|
actionParameters: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
@@ -1375,7 +1375,7 @@ const RulesetsJSChallengeRule2 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =
|
|
|
1375
1375
|
ratelimit: "ratelimit",
|
|
1376
1376
|
ref: "ref",
|
|
1377
1377
|
})));
|
|
1378
|
-
const LogRuleParam = /*@__PURE__*/
|
|
1378
|
+
const LogRuleParam = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1379
1379
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1380
1380
|
action: Schema.optional(Schema.Union([Schema.Literal("log"), Schema.Null])),
|
|
1381
1381
|
actionParameters: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
@@ -1398,7 +1398,7 @@ const LogRuleParam = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Str
|
|
|
1398
1398
|
ratelimit: "ratelimit",
|
|
1399
1399
|
ref: "ref",
|
|
1400
1400
|
})));
|
|
1401
|
-
const LogCustomFieldRuleParam = /*@__PURE__*/
|
|
1401
|
+
const LogCustomFieldRuleParam = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1402
1402
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1403
1403
|
action: Schema.optional(Schema.Union([Schema.Literal("log_custom_field"), Schema.Null])),
|
|
1404
1404
|
actionParameters: Schema.optional(Schema.Union([ActionParameters4, Schema.Null])),
|
|
@@ -1421,7 +1421,7 @@ const LogCustomFieldRuleParam = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
|
|
|
1421
1421
|
ratelimit: "ratelimit",
|
|
1422
1422
|
ref: "ref",
|
|
1423
1423
|
})));
|
|
1424
|
-
const ManagedChallengeRuleParam = /*@__PURE__*/
|
|
1424
|
+
const ManagedChallengeRuleParam = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1425
1425
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1426
1426
|
action: Schema.optional(Schema.Union([Schema.Literal("managed_challenge"), Schema.Null])),
|
|
1427
1427
|
actionParameters: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
@@ -1444,26 +1444,20 @@ const ManagedChallengeRuleParam = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
|
|
|
1444
1444
|
ratelimit: "ratelimit",
|
|
1445
1445
|
ref: "ref",
|
|
1446
1446
|
})));
|
|
1447
|
-
const FromValue2 = /*@__PURE__*/
|
|
1447
|
+
const FromValue2 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1448
1448
|
targetUrl: TargetURL,
|
|
1449
1449
|
preserveQueryString: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1450
|
-
statusCode: Schema.optional(Schema.Union([
|
|
1451
|
-
Schema.Union([
|
|
1452
|
-
Schema.Literals(["301", "302", "303", "307", "308"]),
|
|
1453
|
-
Schema.String,
|
|
1454
|
-
]),
|
|
1455
|
-
Schema.Null,
|
|
1456
|
-
])),
|
|
1450
|
+
statusCode: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1457
1451
|
}).pipe(Schema.encodeKeys({
|
|
1458
1452
|
targetUrl: "target_url",
|
|
1459
1453
|
preserveQueryString: "preserve_query_string",
|
|
1460
1454
|
statusCode: "status_code",
|
|
1461
1455
|
})));
|
|
1462
|
-
const ActionParameters13 = /*@__PURE__*/
|
|
1456
|
+
const ActionParameters13 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1463
1457
|
fromList: Schema.optional(Schema.Union([FromList, Schema.Null])),
|
|
1464
1458
|
fromValue: Schema.optional(Schema.Union([FromValue2, Schema.Null])),
|
|
1465
1459
|
}).pipe(Schema.encodeKeys({ fromList: "from_list", fromValue: "from_value" })));
|
|
1466
|
-
const RedirectRuleParam = /*@__PURE__*/
|
|
1460
|
+
const RedirectRuleParam = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1467
1461
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1468
1462
|
action: Schema.optional(Schema.Union([Schema.Literal("redirect"), Schema.Null])),
|
|
1469
1463
|
actionParameters: Schema.optional(Schema.Union([ActionParameters13, Schema.Null])),
|
|
@@ -1486,17 +1480,17 @@ const RedirectRuleParam = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schem
|
|
|
1486
1480
|
ratelimit: "ratelimit",
|
|
1487
1481
|
ref: "ref",
|
|
1488
1482
|
})));
|
|
1489
|
-
const Uripath2 = /*@__PURE__*/
|
|
1483
|
+
const Uripath2 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1490
1484
|
path: TargetURL,
|
|
1491
1485
|
}));
|
|
1492
|
-
const Uriquery2 = /*@__PURE__*/
|
|
1486
|
+
const Uriquery2 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1493
1487
|
query: TargetURL,
|
|
1494
1488
|
}));
|
|
1495
|
-
const ActionParameters14 = /*@__PURE__*/
|
|
1489
|
+
const ActionParameters14 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1496
1490
|
headers: Schema.optional(Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null])),
|
|
1497
1491
|
uri: Schema.optional(Schema.Union([Schema.Union([Uripath2, Uriquery2]), Schema.Null])),
|
|
1498
1492
|
}));
|
|
1499
|
-
const RewriteRuleParam = /*@__PURE__*/
|
|
1493
|
+
const RewriteRuleParam = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1500
1494
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1501
1495
|
action: Schema.optional(Schema.Union([Schema.Literal("rewrite"), Schema.Null])),
|
|
1502
1496
|
actionParameters: Schema.optional(Schema.Union([ActionParameters14, Schema.Null])),
|
|
@@ -1519,7 +1513,7 @@ const RewriteRuleParam = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema
|
|
|
1519
1513
|
ratelimit: "ratelimit",
|
|
1520
1514
|
ref: "ref",
|
|
1521
1515
|
})));
|
|
1522
|
-
const RouteRuleParam = /*@__PURE__*/
|
|
1516
|
+
const RouteRuleParam = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1523
1517
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1524
1518
|
action: Schema.optional(Schema.Union([Schema.Literal("route"), Schema.Null])),
|
|
1525
1519
|
actionParameters: Schema.optional(Schema.Union([ActionParameters7, Schema.Null])),
|
|
@@ -1542,7 +1536,7 @@ const RouteRuleParam = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.S
|
|
|
1542
1536
|
ratelimit: "ratelimit",
|
|
1543
1537
|
ref: "ref",
|
|
1544
1538
|
})));
|
|
1545
|
-
const ScoreRuleParam = /*@__PURE__*/
|
|
1539
|
+
const ScoreRuleParam = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1546
1540
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1547
1541
|
action: Schema.optional(Schema.Union([Schema.Literal("score"), Schema.Null])),
|
|
1548
1542
|
actionParameters: Schema.optional(Schema.Union([ActionParameters8, Schema.Null])),
|
|
@@ -1565,7 +1559,7 @@ const ScoreRuleParam = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.S
|
|
|
1565
1559
|
ratelimit: "ratelimit",
|
|
1566
1560
|
ref: "ref",
|
|
1567
1561
|
})));
|
|
1568
|
-
const ServeErrorRuleParam = /*@__PURE__*/
|
|
1562
|
+
const ServeErrorRuleParam = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1569
1563
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1570
1564
|
action: Schema.optional(Schema.Union([Schema.Literal("serve_error"), Schema.Null])),
|
|
1571
1565
|
actionParameters: Schema.optional(Schema.Union([
|
|
@@ -1591,7 +1585,7 @@ const ServeErrorRuleParam = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Sch
|
|
|
1591
1585
|
ratelimit: "ratelimit",
|
|
1592
1586
|
ref: "ref",
|
|
1593
1587
|
})));
|
|
1594
|
-
const RulesetsSetCacheControlRule2 = /*@__PURE__*/
|
|
1588
|
+
const RulesetsSetCacheControlRule2 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1595
1589
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1596
1590
|
action: Schema.optional(Schema.Union([Schema.Literal("set_cache_control"), Schema.Null])),
|
|
1597
1591
|
actionParameters: Schema.optional(Schema.Union([ActionParameters9, Schema.Null])),
|
|
@@ -1614,7 +1608,7 @@ const RulesetsSetCacheControlRule2 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
|
|
|
1614
1608
|
ratelimit: "ratelimit",
|
|
1615
1609
|
ref: "ref",
|
|
1616
1610
|
})));
|
|
1617
|
-
const SetCacheSettingsRuleParam = /*@__PURE__*/
|
|
1611
|
+
const SetCacheSettingsRuleParam = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1618
1612
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1619
1613
|
action: Schema.optional(Schema.Union([Schema.Literal("set_cache_settings"), Schema.Null])),
|
|
1620
1614
|
actionParameters: Schema.optional(Schema.Union([ActionParameters10, Schema.Null])),
|
|
@@ -1637,7 +1631,7 @@ const SetCacheSettingsRuleParam = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
|
|
|
1637
1631
|
ratelimit: "ratelimit",
|
|
1638
1632
|
ref: "ref",
|
|
1639
1633
|
})));
|
|
1640
|
-
const RulesetsSetCacheTagsRule2 = /*@__PURE__*/
|
|
1634
|
+
const RulesetsSetCacheTagsRule2 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1641
1635
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1642
1636
|
action: Schema.optional(Schema.Union([Schema.Literal("set_cache_tags"), Schema.Null])),
|
|
1643
1637
|
actionParameters: Schema.optional(Schema.Union([
|
|
@@ -1663,7 +1657,7 @@ const RulesetsSetCacheTagsRule2 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
|
|
|
1663
1657
|
ratelimit: "ratelimit",
|
|
1664
1658
|
ref: "ref",
|
|
1665
1659
|
})));
|
|
1666
|
-
const SetConfigRuleParam = /*@__PURE__*/
|
|
1660
|
+
const SetConfigRuleParam = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1667
1661
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1668
1662
|
action: Schema.optional(Schema.Union([Schema.Literal("set_config"), Schema.Null])),
|
|
1669
1663
|
actionParameters: Schema.optional(Schema.Union([ActionParameters11, Schema.Null])),
|
|
@@ -1686,7 +1680,7 @@ const SetConfigRuleParam = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Sche
|
|
|
1686
1680
|
ratelimit: "ratelimit",
|
|
1687
1681
|
ref: "ref",
|
|
1688
1682
|
})));
|
|
1689
|
-
const SkipRuleParam = /*@__PURE__*/
|
|
1683
|
+
const SkipRuleParam = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1690
1684
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1691
1685
|
action: Schema.optional(Schema.Union([Schema.Literal("skip"), Schema.Null])),
|
|
1692
1686
|
actionParameters: Schema.optional(Schema.Union([ActionParameters12, Schema.Null])),
|
|
@@ -1709,12 +1703,31 @@ const SkipRuleParam = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.St
|
|
|
1709
1703
|
ratelimit: "ratelimit",
|
|
1710
1704
|
ref: "ref",
|
|
1711
1705
|
})));
|
|
1712
|
-
const
|
|
1706
|
+
const FromValue3 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1707
|
+
targetUrl: TargetURL,
|
|
1708
|
+
preserveQueryString: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1709
|
+
statusCode: Schema.optional(Schema.Union([
|
|
1710
|
+
Schema.Union([
|
|
1711
|
+
Schema.Literals(["301", "302", "303", "307", "308"]),
|
|
1712
|
+
Schema.String,
|
|
1713
|
+
]),
|
|
1714
|
+
Schema.Null,
|
|
1715
|
+
])),
|
|
1716
|
+
}).pipe(Schema.encodeKeys({
|
|
1717
|
+
targetUrl: "target_url",
|
|
1718
|
+
preserveQueryString: "preserve_query_string",
|
|
1719
|
+
statusCode: "status_code",
|
|
1720
|
+
})));
|
|
1721
|
+
const ActionParameters15 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1722
|
+
fromList: Schema.optional(Schema.Union([FromList, Schema.Null])),
|
|
1723
|
+
fromValue: Schema.optional(Schema.Union([FromValue3, Schema.Null])),
|
|
1724
|
+
}).pipe(Schema.encodeKeys({ fromList: "from_list", fromValue: "from_value" })));
|
|
1725
|
+
const RedirectRule2 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1713
1726
|
lastUpdated: Schema.String,
|
|
1714
1727
|
version: Schema.String,
|
|
1715
1728
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1716
1729
|
action: Schema.optional(Schema.Union([Schema.Literal("redirect"), Schema.Null])),
|
|
1717
|
-
actionParameters: Schema.optional(Schema.Union([
|
|
1730
|
+
actionParameters: Schema.optional(Schema.Union([ActionParameters15, Schema.Null])),
|
|
1718
1731
|
categories: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1719
1732
|
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1720
1733
|
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
@@ -1739,7 +1752,7 @@ const RedirectRule2 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.St
|
|
|
1739
1752
|
ref: "ref",
|
|
1740
1753
|
})));
|
|
1741
1754
|
const ListPhasVersionsResponseResult =
|
|
1742
|
-
/*@__PURE__*/
|
|
1755
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1743
1756
|
id: Schema.String,
|
|
1744
1757
|
kind: Schema.Union([
|
|
1745
1758
|
Schema.Literals(["managed", "custom", "root", "zone"]),
|
|
@@ -1787,13 +1800,13 @@ const ListPhasVersionsResponseResult =
|
|
|
1787
1800
|
version: "version",
|
|
1788
1801
|
description: "description",
|
|
1789
1802
|
})));
|
|
1790
|
-
const BeforePosition = /*@__PURE__*/
|
|
1803
|
+
const BeforePosition = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1791
1804
|
before: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1792
1805
|
after: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1793
1806
|
index: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1794
1807
|
}));
|
|
1795
1808
|
const ListRulesetsResponseResultInfo =
|
|
1796
|
-
/*@__PURE__*/
|
|
1809
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1797
1810
|
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1798
1811
|
cursor: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1799
1812
|
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
@@ -1802,6 +1815,29 @@ const ListRulesetsResponseResultInfo =
|
|
|
1802
1815
|
cursor: "cursor",
|
|
1803
1816
|
perPage: "per_page",
|
|
1804
1817
|
})));
|
|
1818
|
+
const RedirectRuleParam2 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1819
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1820
|
+
action: Schema.optional(Schema.Union([Schema.Literal("redirect"), Schema.Null])),
|
|
1821
|
+
actionParameters: Schema.optional(Schema.Union([ActionParameters15, Schema.Null])),
|
|
1822
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1823
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1824
|
+
exposedCredentialCheck: Schema.optional(Schema.Union([ExposedCredentialCheck, Schema.Null])),
|
|
1825
|
+
expression: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1826
|
+
logging: Schema.optional(Schema.Union([Logging, Schema.Null])),
|
|
1827
|
+
ratelimit: Schema.optional(Schema.Union([Ratelimit, Schema.Null])),
|
|
1828
|
+
ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1829
|
+
}).pipe(Schema.encodeKeys({
|
|
1830
|
+
id: "id",
|
|
1831
|
+
action: "action",
|
|
1832
|
+
actionParameters: "action_parameters",
|
|
1833
|
+
description: "description",
|
|
1834
|
+
enabled: "enabled",
|
|
1835
|
+
exposedCredentialCheck: "exposed_credential_check",
|
|
1836
|
+
expression: "expression",
|
|
1837
|
+
logging: "logging",
|
|
1838
|
+
ratelimit: "ratelimit",
|
|
1839
|
+
ref: "ref",
|
|
1840
|
+
})));
|
|
1805
1841
|
// =============================================================================
|
|
1806
1842
|
// Pha
|
|
1807
1843
|
// =============================================================================
|
|
@@ -1809,21 +1845,21 @@ const GetPhasBaseFields = {
|
|
|
1809
1845
|
rulesetPhase: Schema.String.pipe(T.HttpPath("rulesetPhase")),
|
|
1810
1846
|
};
|
|
1811
1847
|
export const GetPhasForAccountRequest =
|
|
1812
|
-
/*@__PURE__*/
|
|
1848
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1813
1849
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1814
1850
|
...GetPhasBaseFields,
|
|
1815
1851
|
}).pipe(T.Http({
|
|
1816
1852
|
method: "GET",
|
|
1817
1853
|
path: "/accounts/{account_id}/rulesets/phases/{rulesetPhase}/entrypoint",
|
|
1818
1854
|
})));
|
|
1819
|
-
export const GetPhasForZoneRequest = /*@__PURE__*/
|
|
1855
|
+
export const GetPhasForZoneRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1820
1856
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
1821
1857
|
...GetPhasBaseFields,
|
|
1822
1858
|
}).pipe(T.Http({
|
|
1823
1859
|
method: "GET",
|
|
1824
1860
|
path: "/zones/{zone_id}/rulesets/phases/{rulesetPhase}/entrypoint",
|
|
1825
1861
|
})));
|
|
1826
|
-
export const GetPhasResponse = /*@__PURE__*/
|
|
1862
|
+
export const GetPhasResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1827
1863
|
id: Schema.String,
|
|
1828
1864
|
kind: Schema.Union([
|
|
1829
1865
|
Schema.Literals(["managed", "custom", "root", "zone"]),
|
|
@@ -1899,12 +1935,12 @@ export const GetPhasResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
|
|
|
1899
1935
|
description: "description",
|
|
1900
1936
|
}))
|
|
1901
1937
|
.pipe(T.ResponsePath("result")));
|
|
1902
|
-
export const getPhasForAccount = /*@__PURE__*/
|
|
1938
|
+
export const getPhasForAccount = /*@__PURE__*/ API.make(() => ({
|
|
1903
1939
|
input: GetPhasForAccountRequest,
|
|
1904
1940
|
output: GetPhasResponse,
|
|
1905
1941
|
errors: [RulesetNotFound, Forbidden],
|
|
1906
1942
|
}));
|
|
1907
|
-
export const getPhasForZone = /*@__PURE__*/
|
|
1943
|
+
export const getPhasForZone = /*@__PURE__*/ API.make(() => ({
|
|
1908
1944
|
input: GetPhasForZoneRequest,
|
|
1909
1945
|
output: GetPhasResponse,
|
|
1910
1946
|
errors: [RulesetNotFound, Forbidden],
|
|
@@ -1937,21 +1973,21 @@ const PutPhasBaseFields = {
|
|
|
1937
1973
|
]))),
|
|
1938
1974
|
};
|
|
1939
1975
|
export const PutPhasForAccountRequest =
|
|
1940
|
-
/*@__PURE__*/
|
|
1976
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1941
1977
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1942
1978
|
...PutPhasBaseFields,
|
|
1943
1979
|
}).pipe(T.Http({
|
|
1944
1980
|
method: "PUT",
|
|
1945
1981
|
path: "/accounts/{account_id}/rulesets/phases/{rulesetPhase}/entrypoint",
|
|
1946
1982
|
})));
|
|
1947
|
-
export const PutPhasForZoneRequest = /*@__PURE__*/
|
|
1983
|
+
export const PutPhasForZoneRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1948
1984
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
1949
1985
|
...PutPhasBaseFields,
|
|
1950
1986
|
}).pipe(T.Http({
|
|
1951
1987
|
method: "PUT",
|
|
1952
1988
|
path: "/zones/{zone_id}/rulesets/phases/{rulesetPhase}/entrypoint",
|
|
1953
1989
|
})));
|
|
1954
|
-
export const PutPhasResponse = /*@__PURE__*/
|
|
1990
|
+
export const PutPhasResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1955
1991
|
id: Schema.String,
|
|
1956
1992
|
kind: Schema.Union([
|
|
1957
1993
|
Schema.Literals(["managed", "custom", "root", "zone"]),
|
|
@@ -2000,7 +2036,7 @@ export const PutPhasResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
|
|
|
2000
2036
|
LogRule,
|
|
2001
2037
|
LogCustomFieldRule,
|
|
2002
2038
|
ManagedChallengeRule,
|
|
2003
|
-
|
|
2039
|
+
RedirectRule,
|
|
2004
2040
|
RewriteRule,
|
|
2005
2041
|
RouteRule,
|
|
2006
2042
|
ScoreRule,
|
|
@@ -2027,12 +2063,12 @@ export const PutPhasResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
|
|
|
2027
2063
|
description: "description",
|
|
2028
2064
|
}))
|
|
2029
2065
|
.pipe(T.ResponsePath("result")));
|
|
2030
|
-
export const putPhasForAccount = /*@__PURE__*/
|
|
2066
|
+
export const putPhasForAccount = /*@__PURE__*/ API.make(() => ({
|
|
2031
2067
|
input: PutPhasForAccountRequest,
|
|
2032
2068
|
output: PutPhasResponse,
|
|
2033
2069
|
errors: [RulesetNotFound, PhaseNotEntitled, Forbidden],
|
|
2034
2070
|
}));
|
|
2035
|
-
export const putPhasForZone = /*@__PURE__*/
|
|
2071
|
+
export const putPhasForZone = /*@__PURE__*/ API.make(() => ({
|
|
2036
2072
|
input: PutPhasForZoneRequest,
|
|
2037
2073
|
output: PutPhasResponse,
|
|
2038
2074
|
errors: [RulesetNotFound, PhaseNotEntitled, Forbidden],
|
|
@@ -2045,7 +2081,7 @@ const GetPhasVersionBaseFields = {
|
|
|
2045
2081
|
rulesetPhase: Schema.String.pipe(T.HttpPath("rulesetPhase")),
|
|
2046
2082
|
};
|
|
2047
2083
|
export const GetPhasVersionForAccountRequest =
|
|
2048
|
-
/*@__PURE__*/
|
|
2084
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2049
2085
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2050
2086
|
...GetPhasVersionBaseFields,
|
|
2051
2087
|
}).pipe(T.Http({
|
|
@@ -2053,7 +2089,7 @@ export const GetPhasVersionForAccountRequest =
|
|
|
2053
2089
|
path: "/accounts/{account_id}/rulesets/phases/{rulesetPhase}/entrypoint/versions/{rulesetVersion}",
|
|
2054
2090
|
})));
|
|
2055
2091
|
export const GetPhasVersionForZoneRequest =
|
|
2056
|
-
/*@__PURE__*/
|
|
2092
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2057
2093
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
2058
2094
|
...GetPhasVersionBaseFields,
|
|
2059
2095
|
}).pipe(T.Http({
|
|
@@ -2061,7 +2097,7 @@ export const GetPhasVersionForZoneRequest =
|
|
|
2061
2097
|
path: "/zones/{zone_id}/rulesets/phases/{rulesetPhase}/entrypoint/versions/{rulesetVersion}",
|
|
2062
2098
|
})));
|
|
2063
2099
|
export const GetPhasVersionResponse =
|
|
2064
|
-
/*@__PURE__*/
|
|
2100
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2065
2101
|
id: Schema.String,
|
|
2066
2102
|
kind: Schema.Union([
|
|
2067
2103
|
Schema.Literals(["managed", "custom", "root", "zone"]),
|
|
@@ -2134,12 +2170,12 @@ export const GetPhasVersionResponse =
|
|
|
2134
2170
|
description: "description",
|
|
2135
2171
|
}))
|
|
2136
2172
|
.pipe(T.ResponsePath("result")));
|
|
2137
|
-
export const getPhasVersionForAccount = /*@__PURE__*/
|
|
2173
|
+
export const getPhasVersionForAccount = /*@__PURE__*/ API.make(() => ({
|
|
2138
2174
|
input: GetPhasVersionForAccountRequest,
|
|
2139
2175
|
output: GetPhasVersionResponse,
|
|
2140
2176
|
errors: [],
|
|
2141
2177
|
}));
|
|
2142
|
-
export const getPhasVersionForZone = /*@__PURE__*/
|
|
2178
|
+
export const getPhasVersionForZone = /*@__PURE__*/ API.make(() => ({
|
|
2143
2179
|
input: GetPhasVersionForZoneRequest,
|
|
2144
2180
|
output: GetPhasVersionResponse,
|
|
2145
2181
|
errors: [],
|
|
@@ -2148,7 +2184,7 @@ const ListPhasVersionsBaseFields = {
|
|
|
2148
2184
|
rulesetPhase: Schema.String.pipe(T.HttpPath("rulesetPhase")),
|
|
2149
2185
|
};
|
|
2150
2186
|
export const ListPhasVersionsForAccountRequest =
|
|
2151
|
-
/*@__PURE__*/
|
|
2187
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2152
2188
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2153
2189
|
...ListPhasVersionsBaseFields,
|
|
2154
2190
|
}).pipe(T.Http({
|
|
@@ -2156,7 +2192,7 @@ export const ListPhasVersionsForAccountRequest =
|
|
|
2156
2192
|
path: "/accounts/{account_id}/rulesets/phases/{rulesetPhase}/entrypoint/versions",
|
|
2157
2193
|
})));
|
|
2158
2194
|
export const ListPhasVersionsForZoneRequest =
|
|
2159
|
-
/*@__PURE__*/
|
|
2195
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2160
2196
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
2161
2197
|
...ListPhasVersionsBaseFields,
|
|
2162
2198
|
}).pipe(T.Http({
|
|
@@ -2164,10 +2200,10 @@ export const ListPhasVersionsForZoneRequest =
|
|
|
2164
2200
|
path: "/zones/{zone_id}/rulesets/phases/{rulesetPhase}/entrypoint/versions",
|
|
2165
2201
|
})));
|
|
2166
2202
|
export const ListPhasVersionsResponse =
|
|
2167
|
-
/*@__PURE__*/
|
|
2203
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2168
2204
|
result: Schema.Array(ListPhasVersionsResponseResult),
|
|
2169
2205
|
}));
|
|
2170
|
-
export const listPhasVersionsForAccount = /*@__PURE__*/
|
|
2206
|
+
export const listPhasVersionsForAccount = /*@__PURE__*/ API.makePaginated(() => ({
|
|
2171
2207
|
input: ListPhasVersionsForAccountRequest,
|
|
2172
2208
|
output: ListPhasVersionsResponse,
|
|
2173
2209
|
errors: [],
|
|
@@ -2176,7 +2212,7 @@ export const listPhasVersionsForAccount = /*@__PURE__*/ /*#__PURE__*/ API.makePa
|
|
|
2176
2212
|
items: "result",
|
|
2177
2213
|
},
|
|
2178
2214
|
}));
|
|
2179
|
-
export const listPhasVersionsForZone = /*@__PURE__*/
|
|
2215
|
+
export const listPhasVersionsForZone = /*@__PURE__*/ API.makePaginated(() => ({
|
|
2180
2216
|
input: ListPhasVersionsForZoneRequest,
|
|
2181
2217
|
output: ListPhasVersionsResponse,
|
|
2182
2218
|
errors: [],
|
|
@@ -2226,7 +2262,7 @@ const CreateRuleBaseFields = {
|
|
|
2226
2262
|
ActionParametersAsset,
|
|
2227
2263
|
ActionParameters,
|
|
2228
2264
|
ActionParameters4,
|
|
2229
|
-
|
|
2265
|
+
ActionParameters15,
|
|
2230
2266
|
ActionParameters14,
|
|
2231
2267
|
ActionParameters7,
|
|
2232
2268
|
ActionParameters9,
|
|
@@ -2244,7 +2280,7 @@ const CreateRuleBaseFields = {
|
|
|
2244
2280
|
ref: Schema.optional(Schema.String),
|
|
2245
2281
|
};
|
|
2246
2282
|
export const CreateRuleForAccountRequest =
|
|
2247
|
-
/*@__PURE__*/
|
|
2283
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2248
2284
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2249
2285
|
...CreateRuleBaseFields,
|
|
2250
2286
|
}).pipe(Schema.encodeKeys({
|
|
@@ -2264,7 +2300,7 @@ export const CreateRuleForAccountRequest =
|
|
|
2264
2300
|
path: "/accounts/{account_id}/rulesets/{rulesetId}/rules",
|
|
2265
2301
|
})));
|
|
2266
2302
|
export const CreateRuleForZoneRequest =
|
|
2267
|
-
/*@__PURE__*/
|
|
2303
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2268
2304
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
2269
2305
|
...CreateRuleBaseFields,
|
|
2270
2306
|
}).pipe(Schema.encodeKeys({
|
|
@@ -2283,7 +2319,7 @@ export const CreateRuleForZoneRequest =
|
|
|
2283
2319
|
method: "POST",
|
|
2284
2320
|
path: "/zones/{zone_id}/rulesets/{rulesetId}/rules",
|
|
2285
2321
|
})));
|
|
2286
|
-
export const CreateRuleResponse = /*@__PURE__*/
|
|
2322
|
+
export const CreateRuleResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2287
2323
|
id: Schema.String,
|
|
2288
2324
|
kind: Schema.Union([
|
|
2289
2325
|
Schema.Literals(["managed", "custom", "root", "zone"]),
|
|
@@ -2356,12 +2392,12 @@ export const CreateRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
|
|
|
2356
2392
|
description: "description",
|
|
2357
2393
|
}))
|
|
2358
2394
|
.pipe(T.ResponsePath("result")));
|
|
2359
|
-
export const createRuleForAccount = /*@__PURE__*/
|
|
2395
|
+
export const createRuleForAccount = /*@__PURE__*/ API.make(() => ({
|
|
2360
2396
|
input: CreateRuleForAccountRequest,
|
|
2361
2397
|
output: CreateRuleResponse,
|
|
2362
2398
|
errors: [],
|
|
2363
2399
|
}));
|
|
2364
|
-
export const createRuleForZone = /*@__PURE__*/
|
|
2400
|
+
export const createRuleForZone = /*@__PURE__*/ API.make(() => ({
|
|
2365
2401
|
input: CreateRuleForZoneRequest,
|
|
2366
2402
|
output: CreateRuleResponse,
|
|
2367
2403
|
errors: [],
|
|
@@ -2405,7 +2441,7 @@ const PatchRuleBaseFields = {
|
|
|
2405
2441
|
ActionParametersAsset,
|
|
2406
2442
|
ActionParameters,
|
|
2407
2443
|
ActionParameters4,
|
|
2408
|
-
|
|
2444
|
+
ActionParameters15,
|
|
2409
2445
|
ActionParameters14,
|
|
2410
2446
|
ActionParameters7,
|
|
2411
2447
|
ActionParameters9,
|
|
@@ -2423,7 +2459,7 @@ const PatchRuleBaseFields = {
|
|
|
2423
2459
|
ref: Schema.optional(Schema.String),
|
|
2424
2460
|
};
|
|
2425
2461
|
export const PatchRuleForAccountRequest =
|
|
2426
|
-
/*@__PURE__*/
|
|
2462
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2427
2463
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2428
2464
|
...PatchRuleBaseFields,
|
|
2429
2465
|
}).pipe(Schema.encodeKeys({
|
|
@@ -2443,7 +2479,7 @@ export const PatchRuleForAccountRequest =
|
|
|
2443
2479
|
path: "/accounts/{account_id}/rulesets/{rulesetId}/rules/{ruleId}",
|
|
2444
2480
|
})));
|
|
2445
2481
|
export const PatchRuleForZoneRequest =
|
|
2446
|
-
/*@__PURE__*/
|
|
2482
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2447
2483
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
2448
2484
|
...PatchRuleBaseFields,
|
|
2449
2485
|
}).pipe(Schema.encodeKeys({
|
|
@@ -2462,7 +2498,7 @@ export const PatchRuleForZoneRequest =
|
|
|
2462
2498
|
method: "PATCH",
|
|
2463
2499
|
path: "/zones/{zone_id}/rulesets/{rulesetId}/rules/{ruleId}",
|
|
2464
2500
|
})));
|
|
2465
|
-
export const PatchRuleResponse = /*@__PURE__*/
|
|
2501
|
+
export const PatchRuleResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2466
2502
|
id: Schema.String,
|
|
2467
2503
|
kind: Schema.Union([
|
|
2468
2504
|
Schema.Literals(["managed", "custom", "root", "zone"]),
|
|
@@ -2535,12 +2571,12 @@ export const PatchRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =
|
|
|
2535
2571
|
description: "description",
|
|
2536
2572
|
}))
|
|
2537
2573
|
.pipe(T.ResponsePath("result")));
|
|
2538
|
-
export const patchRuleForAccount = /*@__PURE__*/
|
|
2574
|
+
export const patchRuleForAccount = /*@__PURE__*/ API.make(() => ({
|
|
2539
2575
|
input: PatchRuleForAccountRequest,
|
|
2540
2576
|
output: PatchRuleResponse,
|
|
2541
2577
|
errors: [],
|
|
2542
2578
|
}));
|
|
2543
|
-
export const patchRuleForZone = /*@__PURE__*/
|
|
2579
|
+
export const patchRuleForZone = /*@__PURE__*/ API.make(() => ({
|
|
2544
2580
|
input: PatchRuleForZoneRequest,
|
|
2545
2581
|
output: PatchRuleResponse,
|
|
2546
2582
|
errors: [],
|
|
@@ -2550,7 +2586,7 @@ const DeleteRuleBaseFields = {
|
|
|
2550
2586
|
ruleId: Schema.String.pipe(T.HttpPath("ruleId")),
|
|
2551
2587
|
};
|
|
2552
2588
|
export const DeleteRuleForAccountRequest =
|
|
2553
|
-
/*@__PURE__*/
|
|
2589
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2554
2590
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2555
2591
|
...DeleteRuleBaseFields,
|
|
2556
2592
|
}).pipe(T.Http({
|
|
@@ -2558,14 +2594,14 @@ export const DeleteRuleForAccountRequest =
|
|
|
2558
2594
|
path: "/accounts/{account_id}/rulesets/{rulesetId}/rules/{ruleId}",
|
|
2559
2595
|
})));
|
|
2560
2596
|
export const DeleteRuleForZoneRequest =
|
|
2561
|
-
/*@__PURE__*/
|
|
2597
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2562
2598
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
2563
2599
|
...DeleteRuleBaseFields,
|
|
2564
2600
|
}).pipe(T.Http({
|
|
2565
2601
|
method: "DELETE",
|
|
2566
2602
|
path: "/zones/{zone_id}/rulesets/{rulesetId}/rules/{ruleId}",
|
|
2567
2603
|
})));
|
|
2568
|
-
export const DeleteRuleResponse = /*@__PURE__*/
|
|
2604
|
+
export const DeleteRuleResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2569
2605
|
id: Schema.String,
|
|
2570
2606
|
kind: Schema.Union([
|
|
2571
2607
|
Schema.Literals(["managed", "custom", "root", "zone"]),
|
|
@@ -2638,12 +2674,12 @@ export const DeleteRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
|
|
|
2638
2674
|
description: "description",
|
|
2639
2675
|
}))
|
|
2640
2676
|
.pipe(T.ResponsePath("result")));
|
|
2641
|
-
export const deleteRuleForAccount = /*@__PURE__*/
|
|
2677
|
+
export const deleteRuleForAccount = /*@__PURE__*/ API.make(() => ({
|
|
2642
2678
|
input: DeleteRuleForAccountRequest,
|
|
2643
2679
|
output: DeleteRuleResponse,
|
|
2644
2680
|
errors: [],
|
|
2645
2681
|
}));
|
|
2646
|
-
export const deleteRuleForZone = /*@__PURE__*/
|
|
2682
|
+
export const deleteRuleForZone = /*@__PURE__*/ API.make(() => ({
|
|
2647
2683
|
input: DeleteRuleForZoneRequest,
|
|
2648
2684
|
output: DeleteRuleResponse,
|
|
2649
2685
|
errors: [],
|
|
@@ -2655,7 +2691,7 @@ const GetRulesetBaseFields = {
|
|
|
2655
2691
|
rulesetId: Schema.String.pipe(T.HttpPath("rulesetId")),
|
|
2656
2692
|
};
|
|
2657
2693
|
export const GetRulesetForAccountRequest =
|
|
2658
|
-
/*@__PURE__*/
|
|
2694
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2659
2695
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2660
2696
|
...GetRulesetBaseFields,
|
|
2661
2697
|
}).pipe(T.Http({
|
|
@@ -2663,11 +2699,11 @@ export const GetRulesetForAccountRequest =
|
|
|
2663
2699
|
path: "/accounts/{account_id}/rulesets/{rulesetId}",
|
|
2664
2700
|
})));
|
|
2665
2701
|
export const GetRulesetForZoneRequest =
|
|
2666
|
-
/*@__PURE__*/
|
|
2702
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2667
2703
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
2668
2704
|
...GetRulesetBaseFields,
|
|
2669
2705
|
}).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/rulesets/{rulesetId}" })));
|
|
2670
|
-
export const GetRulesetResponse = /*@__PURE__*/
|
|
2706
|
+
export const GetRulesetResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2671
2707
|
id: Schema.String,
|
|
2672
2708
|
kind: Schema.Union([
|
|
2673
2709
|
Schema.Literals(["managed", "custom", "root", "zone"]),
|
|
@@ -2743,12 +2779,12 @@ export const GetRulesetResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
|
|
|
2743
2779
|
description: "description",
|
|
2744
2780
|
}))
|
|
2745
2781
|
.pipe(T.ResponsePath("result")));
|
|
2746
|
-
export const getRulesetForAccount = /*@__PURE__*/
|
|
2782
|
+
export const getRulesetForAccount = /*@__PURE__*/ API.make(() => ({
|
|
2747
2783
|
input: GetRulesetForAccountRequest,
|
|
2748
2784
|
output: GetRulesetResponse,
|
|
2749
2785
|
errors: [RulesetNotFound, Forbidden],
|
|
2750
2786
|
}));
|
|
2751
|
-
export const getRulesetForZone = /*@__PURE__*/
|
|
2787
|
+
export const getRulesetForZone = /*@__PURE__*/ API.make(() => ({
|
|
2752
2788
|
input: GetRulesetForZoneRequest,
|
|
2753
2789
|
output: GetRulesetResponse,
|
|
2754
2790
|
errors: [RulesetNotFound, Forbidden],
|
|
@@ -2758,20 +2794,20 @@ const ListRulesetsBaseFields = {
|
|
|
2758
2794
|
cursor: Schema.optional(Schema.String).pipe(T.HttpQuery("cursor")),
|
|
2759
2795
|
};
|
|
2760
2796
|
export const ListRulesetsForAccountRequest =
|
|
2761
|
-
/*@__PURE__*/
|
|
2797
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2762
2798
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2763
2799
|
...ListRulesetsBaseFields,
|
|
2764
2800
|
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/rulesets" })));
|
|
2765
2801
|
export const ListRulesetsForZoneRequest =
|
|
2766
|
-
/*@__PURE__*/
|
|
2802
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2767
2803
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
2768
2804
|
...ListRulesetsBaseFields,
|
|
2769
2805
|
}).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/rulesets" })));
|
|
2770
|
-
export const ListRulesetsResponse = /*@__PURE__*/
|
|
2806
|
+
export const ListRulesetsResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2771
2807
|
result: Schema.Array(ListPhasVersionsResponseResult),
|
|
2772
2808
|
resultInfo: Schema.optional(Schema.Union([ListRulesetsResponseResultInfo, Schema.Null])),
|
|
2773
2809
|
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })));
|
|
2774
|
-
export const listRulesetsForAccount = /*@__PURE__*/
|
|
2810
|
+
export const listRulesetsForAccount = /*@__PURE__*/ API.makePaginated(() => ({
|
|
2775
2811
|
input: ListRulesetsForAccountRequest,
|
|
2776
2812
|
output: ListRulesetsResponse,
|
|
2777
2813
|
errors: [],
|
|
@@ -2783,7 +2819,7 @@ export const listRulesetsForAccount = /*@__PURE__*/ /*#__PURE__*/ API.makePagina
|
|
|
2783
2819
|
pageSize: "perPage",
|
|
2784
2820
|
},
|
|
2785
2821
|
}));
|
|
2786
|
-
export const listRulesetsForZone = /*@__PURE__*/
|
|
2822
|
+
export const listRulesetsForZone = /*@__PURE__*/ API.makePaginated(() => ({
|
|
2787
2823
|
input: ListRulesetsForZoneRequest,
|
|
2788
2824
|
output: ListRulesetsResponse,
|
|
2789
2825
|
errors: [],
|
|
@@ -2842,7 +2878,7 @@ const CreateRulesetBaseFields = {
|
|
|
2842
2878
|
LogRuleParam,
|
|
2843
2879
|
LogCustomFieldRuleParam,
|
|
2844
2880
|
ManagedChallengeRuleParam,
|
|
2845
|
-
|
|
2881
|
+
RedirectRuleParam2,
|
|
2846
2882
|
RewriteRuleParam,
|
|
2847
2883
|
RouteRuleParam,
|
|
2848
2884
|
ScoreRuleParam,
|
|
@@ -2855,16 +2891,16 @@ const CreateRulesetBaseFields = {
|
|
|
2855
2891
|
]))),
|
|
2856
2892
|
};
|
|
2857
2893
|
export const CreateRulesetForAccountRequest =
|
|
2858
|
-
/*@__PURE__*/
|
|
2894
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2859
2895
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2860
2896
|
...CreateRulesetBaseFields,
|
|
2861
2897
|
}).pipe(T.Http({ method: "POST", path: "/accounts/{account_id}/rulesets" })));
|
|
2862
2898
|
export const CreateRulesetForZoneRequest =
|
|
2863
|
-
/*@__PURE__*/
|
|
2899
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2864
2900
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
2865
2901
|
...CreateRulesetBaseFields,
|
|
2866
2902
|
}).pipe(T.Http({ method: "POST", path: "/zones/{zone_id}/rulesets" })));
|
|
2867
|
-
export const CreateRulesetResponse = /*@__PURE__*/
|
|
2903
|
+
export const CreateRulesetResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2868
2904
|
id: Schema.String,
|
|
2869
2905
|
kind: Schema.Union([
|
|
2870
2906
|
Schema.Literals(["managed", "custom", "root", "zone"]),
|
|
@@ -2940,12 +2976,12 @@ export const CreateRulesetResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
|
|
|
2940
2976
|
description: "description",
|
|
2941
2977
|
}))
|
|
2942
2978
|
.pipe(T.ResponsePath("result")));
|
|
2943
|
-
export const createRulesetForAccount = /*@__PURE__*/
|
|
2979
|
+
export const createRulesetForAccount = /*@__PURE__*/ API.make(() => ({
|
|
2944
2980
|
input: CreateRulesetForAccountRequest,
|
|
2945
2981
|
output: CreateRulesetResponse,
|
|
2946
2982
|
errors: [PhaseNotEntitled, Forbidden],
|
|
2947
2983
|
}));
|
|
2948
|
-
export const createRulesetForZone = /*@__PURE__*/
|
|
2984
|
+
export const createRulesetForZone = /*@__PURE__*/ API.make(() => ({
|
|
2949
2985
|
input: CreateRulesetForZoneRequest,
|
|
2950
2986
|
output: CreateRulesetResponse,
|
|
2951
2987
|
errors: [PhaseNotEntitled, Forbidden],
|
|
@@ -2998,7 +3034,7 @@ const UpdateRulesetBaseFields = {
|
|
|
2998
3034
|
LogRuleParam,
|
|
2999
3035
|
LogCustomFieldRuleParam,
|
|
3000
3036
|
ManagedChallengeRuleParam,
|
|
3001
|
-
|
|
3037
|
+
RedirectRuleParam2,
|
|
3002
3038
|
RewriteRuleParam,
|
|
3003
3039
|
RouteRuleParam,
|
|
3004
3040
|
ScoreRuleParam,
|
|
@@ -3011,7 +3047,7 @@ const UpdateRulesetBaseFields = {
|
|
|
3011
3047
|
]))),
|
|
3012
3048
|
};
|
|
3013
3049
|
export const UpdateRulesetForAccountRequest =
|
|
3014
|
-
/*@__PURE__*/
|
|
3050
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3015
3051
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3016
3052
|
...UpdateRulesetBaseFields,
|
|
3017
3053
|
}).pipe(T.Http({
|
|
@@ -3019,11 +3055,11 @@ export const UpdateRulesetForAccountRequest =
|
|
|
3019
3055
|
path: "/accounts/{account_id}/rulesets/{rulesetId}",
|
|
3020
3056
|
})));
|
|
3021
3057
|
export const UpdateRulesetForZoneRequest =
|
|
3022
|
-
/*@__PURE__*/
|
|
3058
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3023
3059
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
3024
3060
|
...UpdateRulesetBaseFields,
|
|
3025
3061
|
}).pipe(T.Http({ method: "PUT", path: "/zones/{zone_id}/rulesets/{rulesetId}" })));
|
|
3026
|
-
export const UpdateRulesetResponse = /*@__PURE__*/
|
|
3062
|
+
export const UpdateRulesetResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3027
3063
|
id: Schema.String,
|
|
3028
3064
|
kind: Schema.Union([
|
|
3029
3065
|
Schema.Literals(["managed", "custom", "root", "zone"]),
|
|
@@ -3099,12 +3135,12 @@ export const UpdateRulesetResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
|
|
|
3099
3135
|
description: "description",
|
|
3100
3136
|
}))
|
|
3101
3137
|
.pipe(T.ResponsePath("result")));
|
|
3102
|
-
export const updateRulesetForAccount = /*@__PURE__*/
|
|
3138
|
+
export const updateRulesetForAccount = /*@__PURE__*/ API.make(() => ({
|
|
3103
3139
|
input: UpdateRulesetForAccountRequest,
|
|
3104
3140
|
output: UpdateRulesetResponse,
|
|
3105
3141
|
errors: [RulesetNotFound, Forbidden],
|
|
3106
3142
|
}));
|
|
3107
|
-
export const updateRulesetForZone = /*@__PURE__*/
|
|
3143
|
+
export const updateRulesetForZone = /*@__PURE__*/ API.make(() => ({
|
|
3108
3144
|
input: UpdateRulesetForZoneRequest,
|
|
3109
3145
|
output: UpdateRulesetResponse,
|
|
3110
3146
|
errors: [RulesetNotFound, Forbidden],
|
|
@@ -3113,7 +3149,7 @@ const DeleteRulesetBaseFields = {
|
|
|
3113
3149
|
rulesetId: Schema.String.pipe(T.HttpPath("rulesetId")),
|
|
3114
3150
|
};
|
|
3115
3151
|
export const DeleteRulesetForAccountRequest =
|
|
3116
|
-
/*@__PURE__*/
|
|
3152
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3117
3153
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3118
3154
|
...DeleteRulesetBaseFields,
|
|
3119
3155
|
}).pipe(T.Http({
|
|
@@ -3121,20 +3157,20 @@ export const DeleteRulesetForAccountRequest =
|
|
|
3121
3157
|
path: "/accounts/{account_id}/rulesets/{rulesetId}",
|
|
3122
3158
|
})));
|
|
3123
3159
|
export const DeleteRulesetForZoneRequest =
|
|
3124
|
-
/*@__PURE__*/
|
|
3160
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3125
3161
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
3126
3162
|
...DeleteRulesetBaseFields,
|
|
3127
3163
|
}).pipe(T.Http({
|
|
3128
3164
|
method: "DELETE",
|
|
3129
3165
|
path: "/zones/{zone_id}/rulesets/{rulesetId}",
|
|
3130
3166
|
})));
|
|
3131
|
-
export const DeleteRulesetResponse = /*@__PURE__*/
|
|
3132
|
-
export const deleteRulesetForAccount = /*@__PURE__*/
|
|
3167
|
+
export const DeleteRulesetResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Unknown);
|
|
3168
|
+
export const deleteRulesetForAccount = /*@__PURE__*/ API.make(() => ({
|
|
3133
3169
|
input: DeleteRulesetForAccountRequest,
|
|
3134
3170
|
output: DeleteRulesetResponse,
|
|
3135
3171
|
errors: [RulesetNotFound, Forbidden],
|
|
3136
3172
|
}));
|
|
3137
|
-
export const deleteRulesetForZone = /*@__PURE__*/
|
|
3173
|
+
export const deleteRulesetForZone = /*@__PURE__*/ API.make(() => ({
|
|
3138
3174
|
input: DeleteRulesetForZoneRequest,
|
|
3139
3175
|
output: DeleteRulesetResponse,
|
|
3140
3176
|
errors: [RulesetNotFound, Forbidden],
|
|
@@ -3147,7 +3183,7 @@ const GetVersionBaseFields = {
|
|
|
3147
3183
|
rulesetVersion: Schema.String.pipe(T.HttpPath("rulesetVersion")),
|
|
3148
3184
|
};
|
|
3149
3185
|
export const GetVersionForAccountRequest =
|
|
3150
|
-
/*@__PURE__*/
|
|
3186
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3151
3187
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3152
3188
|
...GetVersionBaseFields,
|
|
3153
3189
|
}).pipe(T.Http({
|
|
@@ -3155,14 +3191,14 @@ export const GetVersionForAccountRequest =
|
|
|
3155
3191
|
path: "/accounts/{account_id}/rulesets/{rulesetId}/versions/{rulesetVersion}",
|
|
3156
3192
|
})));
|
|
3157
3193
|
export const GetVersionForZoneRequest =
|
|
3158
|
-
/*@__PURE__*/
|
|
3194
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3159
3195
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
3160
3196
|
...GetVersionBaseFields,
|
|
3161
3197
|
}).pipe(T.Http({
|
|
3162
3198
|
method: "GET",
|
|
3163
3199
|
path: "/zones/{zone_id}/rulesets/{rulesetId}/versions/{rulesetVersion}",
|
|
3164
3200
|
})));
|
|
3165
|
-
export const GetVersionResponse = /*@__PURE__*/
|
|
3201
|
+
export const GetVersionResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3166
3202
|
id: Schema.String,
|
|
3167
3203
|
kind: Schema.Union([
|
|
3168
3204
|
Schema.Literals(["managed", "custom", "root", "zone"]),
|
|
@@ -3235,12 +3271,12 @@ export const GetVersionResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
|
|
|
3235
3271
|
description: "description",
|
|
3236
3272
|
}))
|
|
3237
3273
|
.pipe(T.ResponsePath("result")));
|
|
3238
|
-
export const getVersionForAccount = /*@__PURE__*/
|
|
3274
|
+
export const getVersionForAccount = /*@__PURE__*/ API.make(() => ({
|
|
3239
3275
|
input: GetVersionForAccountRequest,
|
|
3240
3276
|
output: GetVersionResponse,
|
|
3241
3277
|
errors: [],
|
|
3242
3278
|
}));
|
|
3243
|
-
export const getVersionForZone = /*@__PURE__*/
|
|
3279
|
+
export const getVersionForZone = /*@__PURE__*/ API.make(() => ({
|
|
3244
3280
|
input: GetVersionForZoneRequest,
|
|
3245
3281
|
output: GetVersionResponse,
|
|
3246
3282
|
errors: [],
|
|
@@ -3249,7 +3285,7 @@ const ListVersionsBaseFields = {
|
|
|
3249
3285
|
rulesetId: Schema.String.pipe(T.HttpPath("rulesetId")),
|
|
3250
3286
|
};
|
|
3251
3287
|
export const ListVersionsForAccountRequest =
|
|
3252
|
-
/*@__PURE__*/
|
|
3288
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3253
3289
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3254
3290
|
...ListVersionsBaseFields,
|
|
3255
3291
|
}).pipe(T.Http({
|
|
@@ -3257,17 +3293,17 @@ export const ListVersionsForAccountRequest =
|
|
|
3257
3293
|
path: "/accounts/{account_id}/rulesets/{rulesetId}/versions",
|
|
3258
3294
|
})));
|
|
3259
3295
|
export const ListVersionsForZoneRequest =
|
|
3260
|
-
/*@__PURE__*/
|
|
3296
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3261
3297
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
3262
3298
|
...ListVersionsBaseFields,
|
|
3263
3299
|
}).pipe(T.Http({
|
|
3264
3300
|
method: "GET",
|
|
3265
3301
|
path: "/zones/{zone_id}/rulesets/{rulesetId}/versions",
|
|
3266
3302
|
})));
|
|
3267
|
-
export const ListVersionsResponse = /*@__PURE__*/
|
|
3303
|
+
export const ListVersionsResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3268
3304
|
result: Schema.Array(ListPhasVersionsResponseResult),
|
|
3269
3305
|
}));
|
|
3270
|
-
export const listVersionsForAccount = /*@__PURE__*/
|
|
3306
|
+
export const listVersionsForAccount = /*@__PURE__*/ API.makePaginated(() => ({
|
|
3271
3307
|
input: ListVersionsForAccountRequest,
|
|
3272
3308
|
output: ListVersionsResponse,
|
|
3273
3309
|
errors: [],
|
|
@@ -3276,7 +3312,7 @@ export const listVersionsForAccount = /*@__PURE__*/ /*#__PURE__*/ API.makePagina
|
|
|
3276
3312
|
items: "result",
|
|
3277
3313
|
},
|
|
3278
3314
|
}));
|
|
3279
|
-
export const listVersionsForZone = /*@__PURE__*/
|
|
3315
|
+
export const listVersionsForZone = /*@__PURE__*/ API.makePaginated(() => ({
|
|
3280
3316
|
input: ListVersionsForZoneRequest,
|
|
3281
3317
|
output: ListVersionsResponse,
|
|
3282
3318
|
errors: [],
|
|
@@ -3290,7 +3326,7 @@ const DeleteVersionBaseFields = {
|
|
|
3290
3326
|
rulesetVersion: Schema.String.pipe(T.HttpPath("rulesetVersion")),
|
|
3291
3327
|
};
|
|
3292
3328
|
export const DeleteVersionForAccountRequest =
|
|
3293
|
-
/*@__PURE__*/
|
|
3329
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3294
3330
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3295
3331
|
...DeleteVersionBaseFields,
|
|
3296
3332
|
}).pipe(T.Http({
|
|
@@ -3298,20 +3334,20 @@ export const DeleteVersionForAccountRequest =
|
|
|
3298
3334
|
path: "/accounts/{account_id}/rulesets/{rulesetId}/versions/{rulesetVersion}",
|
|
3299
3335
|
})));
|
|
3300
3336
|
export const DeleteVersionForZoneRequest =
|
|
3301
|
-
/*@__PURE__*/
|
|
3337
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3302
3338
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
3303
3339
|
...DeleteVersionBaseFields,
|
|
3304
3340
|
}).pipe(T.Http({
|
|
3305
3341
|
method: "DELETE",
|
|
3306
3342
|
path: "/zones/{zone_id}/rulesets/{rulesetId}/versions/{rulesetVersion}",
|
|
3307
3343
|
})));
|
|
3308
|
-
export const DeleteVersionResponse = /*@__PURE__*/
|
|
3309
|
-
export const deleteVersionForAccount = /*@__PURE__*/
|
|
3344
|
+
export const DeleteVersionResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Unknown);
|
|
3345
|
+
export const deleteVersionForAccount = /*@__PURE__*/ API.make(() => ({
|
|
3310
3346
|
input: DeleteVersionForAccountRequest,
|
|
3311
3347
|
output: DeleteVersionResponse,
|
|
3312
3348
|
errors: [],
|
|
3313
3349
|
}));
|
|
3314
|
-
export const deleteVersionForZone = /*@__PURE__*/
|
|
3350
|
+
export const deleteVersionForZone = /*@__PURE__*/ API.make(() => ({
|
|
3315
3351
|
input: DeleteVersionForZoneRequest,
|
|
3316
3352
|
output: DeleteVersionResponse,
|
|
3317
3353
|
errors: [],
|