@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/src/services/firewall.ts
CHANGED
|
@@ -98,14 +98,11 @@ interface AccessRuleIPConfiguration {
|
|
|
98
98
|
/** The IP address to match. This address will be compared to the IP address of incoming requests. */
|
|
99
99
|
value?: string | null;
|
|
100
100
|
}
|
|
101
|
-
const AccessRuleIPConfiguration = /*@__PURE__*/
|
|
102
|
-
(
|
|
103
|
-
Schema.
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
),
|
|
107
|
-
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
108
|
-
}),
|
|
101
|
+
const AccessRuleIPConfiguration = /*@__PURE__*/ Schema.suspend(() =>
|
|
102
|
+
Schema.Struct({
|
|
103
|
+
target: Schema.optional(Schema.Union([Schema.Literal("ip"), Schema.Null])),
|
|
104
|
+
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
105
|
+
}),
|
|
109
106
|
) as unknown as Schema.Codec<AccessRuleIPConfiguration>;
|
|
110
107
|
|
|
111
108
|
interface Ipv6Configuration {
|
|
@@ -114,7 +111,7 @@ interface Ipv6Configuration {
|
|
|
114
111
|
/** The IPv6 address to match. */
|
|
115
112
|
value?: string | null;
|
|
116
113
|
}
|
|
117
|
-
const Ipv6Configuration = /*@__PURE__*/
|
|
114
|
+
const Ipv6Configuration = /*@__PURE__*/ Schema.suspend(() =>
|
|
118
115
|
Schema.Struct({
|
|
119
116
|
target: Schema.optional(Schema.Union([Schema.Literal("ip6"), Schema.Null])),
|
|
120
117
|
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -127,14 +124,13 @@ interface AccessRuleCIDRConfiguration {
|
|
|
127
124
|
/** The IP address range to match. You can only use prefix lengths `/16` and `/24` for IPv4 ranges, and prefix lengths `/32`, `/48`, and `/64` for IPv6 ranges. */
|
|
128
125
|
value?: string | null;
|
|
129
126
|
}
|
|
130
|
-
const AccessRuleCIDRConfiguration = /*@__PURE__*/
|
|
131
|
-
(
|
|
132
|
-
Schema.
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
}),
|
|
127
|
+
const AccessRuleCIDRConfiguration = /*@__PURE__*/ Schema.suspend(() =>
|
|
128
|
+
Schema.Struct({
|
|
129
|
+
target: Schema.optional(
|
|
130
|
+
Schema.Union([Schema.Literal("ip_range"), Schema.Null]),
|
|
131
|
+
),
|
|
132
|
+
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
133
|
+
}),
|
|
138
134
|
) as unknown as Schema.Codec<AccessRuleCIDRConfiguration>;
|
|
139
135
|
|
|
140
136
|
interface Asnconfiguration {
|
|
@@ -143,7 +139,7 @@ interface Asnconfiguration {
|
|
|
143
139
|
/** The AS number to match. */
|
|
144
140
|
value?: string | null;
|
|
145
141
|
}
|
|
146
|
-
const Asnconfiguration = /*@__PURE__*/
|
|
142
|
+
const Asnconfiguration = /*@__PURE__*/ Schema.suspend(() =>
|
|
147
143
|
Schema.Struct({
|
|
148
144
|
target: Schema.optional(Schema.Union([Schema.Literal("asn"), Schema.Null])),
|
|
149
145
|
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -156,7 +152,7 @@ interface CountryConfiguration {
|
|
|
156
152
|
/** The two-letter ISO-3166-1 alpha-2 code to match. For more information, refer to [IP Access rules: Parameters](https://developers.cloudflare.com/waf/tools/ip-access-rules/parameters/#country). */
|
|
157
153
|
value?: string | null;
|
|
158
154
|
}
|
|
159
|
-
const CountryConfiguration = /*@__PURE__*/
|
|
155
|
+
const CountryConfiguration = /*@__PURE__*/ Schema.suspend(() =>
|
|
160
156
|
Schema.Struct({
|
|
161
157
|
target: Schema.optional(
|
|
162
158
|
Schema.Union([Schema.Literal("country"), Schema.Null]),
|
|
@@ -173,7 +169,7 @@ interface Scope {
|
|
|
173
169
|
/** Defines the scope of the rule. */
|
|
174
170
|
type?: "user" | "organization" | (string & {}) | null;
|
|
175
171
|
}
|
|
176
|
-
const Scope = /*@__PURE__*/
|
|
172
|
+
const Scope = /*@__PURE__*/ Schema.suspend(() =>
|
|
177
173
|
Schema.Struct({
|
|
178
174
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
179
175
|
email: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -230,7 +226,7 @@ interface ListAccessRulesResponseResult {
|
|
|
230
226
|
} | null;
|
|
231
227
|
}
|
|
232
228
|
const ListAccessRulesResponseResult =
|
|
233
|
-
/*@__PURE__*/
|
|
229
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
234
230
|
Schema.Struct({
|
|
235
231
|
id: Schema.String,
|
|
236
232
|
allowedModes: Schema.Array(
|
|
@@ -287,7 +283,7 @@ interface ListAccessRulesResponseResultInfo {
|
|
|
287
283
|
totalCount?: number | null;
|
|
288
284
|
}
|
|
289
285
|
const ListAccessRulesResponseResultInfo =
|
|
290
|
-
/*@__PURE__*/
|
|
286
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
291
287
|
Schema.Struct({
|
|
292
288
|
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
293
289
|
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
@@ -323,31 +319,30 @@ interface ListLockdownsResponseResult {
|
|
|
323
319
|
urls: string[];
|
|
324
320
|
priority?: number | null;
|
|
325
321
|
}
|
|
326
|
-
const ListLockdownsResponseResult = /*@__PURE__*/
|
|
327
|
-
(
|
|
328
|
-
Schema.
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
Schema.Union([AccessRuleIPConfiguration, AccessRuleCIDRConfiguration]),
|
|
332
|
-
),
|
|
333
|
-
createdOn: Schema.String,
|
|
334
|
-
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
335
|
-
modifiedOn: Schema.String,
|
|
336
|
-
paused: Schema.Boolean,
|
|
337
|
-
urls: Schema.Array(Schema.String),
|
|
338
|
-
priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
339
|
-
}).pipe(
|
|
340
|
-
Schema.encodeKeys({
|
|
341
|
-
id: "id",
|
|
342
|
-
configurations: "configurations",
|
|
343
|
-
createdOn: "created_on",
|
|
344
|
-
description: "description",
|
|
345
|
-
modifiedOn: "modified_on",
|
|
346
|
-
paused: "paused",
|
|
347
|
-
urls: "urls",
|
|
348
|
-
priority: "priority",
|
|
349
|
-
}),
|
|
322
|
+
const ListLockdownsResponseResult = /*@__PURE__*/ Schema.suspend(() =>
|
|
323
|
+
Schema.Struct({
|
|
324
|
+
id: Schema.String,
|
|
325
|
+
configurations: Schema.Array(
|
|
326
|
+
Schema.Union([AccessRuleIPConfiguration, AccessRuleCIDRConfiguration]),
|
|
350
327
|
),
|
|
328
|
+
createdOn: Schema.String,
|
|
329
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
330
|
+
modifiedOn: Schema.String,
|
|
331
|
+
paused: Schema.Boolean,
|
|
332
|
+
urls: Schema.Array(Schema.String),
|
|
333
|
+
priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
334
|
+
}).pipe(
|
|
335
|
+
Schema.encodeKeys({
|
|
336
|
+
id: "id",
|
|
337
|
+
configurations: "configurations",
|
|
338
|
+
createdOn: "created_on",
|
|
339
|
+
description: "description",
|
|
340
|
+
modifiedOn: "modified_on",
|
|
341
|
+
paused: "paused",
|
|
342
|
+
urls: "urls",
|
|
343
|
+
priority: "priority",
|
|
344
|
+
}),
|
|
345
|
+
),
|
|
351
346
|
) as unknown as Schema.Codec<ListLockdownsResponseResult>;
|
|
352
347
|
|
|
353
348
|
interface FirewallFilter {
|
|
@@ -362,7 +357,7 @@ interface FirewallFilter {
|
|
|
362
357
|
/** A short reference tag. Allows you to select related filters. */
|
|
363
358
|
ref?: string | null;
|
|
364
359
|
}
|
|
365
|
-
const FirewallFilter = /*@__PURE__*/
|
|
360
|
+
const FirewallFilter = /*@__PURE__*/ Schema.suspend(() =>
|
|
366
361
|
Schema.Struct({
|
|
367
362
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
368
363
|
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -378,7 +373,7 @@ interface DeletedFilter {
|
|
|
378
373
|
/** When true, indicates that the firewall rule was deleted. */
|
|
379
374
|
deleted: boolean;
|
|
380
375
|
}
|
|
381
|
-
const DeletedFilter = /*@__PURE__*/
|
|
376
|
+
const DeletedFilter = /*@__PURE__*/ Schema.suspend(() =>
|
|
382
377
|
Schema.Struct({
|
|
383
378
|
id: Schema.String,
|
|
384
379
|
deleted: Schema.Boolean,
|
|
@@ -430,57 +425,56 @@ interface BulkPutRulesResponseResult {
|
|
|
430
425
|
/** A short reference tag. Allows you to select related firewall rules. */
|
|
431
426
|
ref?: string | null;
|
|
432
427
|
}
|
|
433
|
-
const BulkPutRulesResponseResult = /*@__PURE__*/
|
|
434
|
-
(
|
|
435
|
-
Schema.
|
|
436
|
-
|
|
437
|
-
|
|
428
|
+
const BulkPutRulesResponseResult = /*@__PURE__*/ Schema.suspend(() =>
|
|
429
|
+
Schema.Struct({
|
|
430
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
431
|
+
action: Schema.optional(
|
|
432
|
+
Schema.Union([
|
|
438
433
|
Schema.Union([
|
|
434
|
+
Schema.Literals([
|
|
435
|
+
"block",
|
|
436
|
+
"challenge",
|
|
437
|
+
"js_challenge",
|
|
438
|
+
"managed_challenge",
|
|
439
|
+
"allow",
|
|
440
|
+
"log",
|
|
441
|
+
"bypass",
|
|
442
|
+
]),
|
|
443
|
+
Schema.String,
|
|
444
|
+
]),
|
|
445
|
+
Schema.Null,
|
|
446
|
+
]),
|
|
447
|
+
),
|
|
448
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
449
|
+
filter: Schema.optional(
|
|
450
|
+
Schema.Union([
|
|
451
|
+
Schema.Union([DeletedFilter, FirewallFilter]),
|
|
452
|
+
Schema.Null,
|
|
453
|
+
]),
|
|
454
|
+
),
|
|
455
|
+
paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
456
|
+
priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
457
|
+
products: Schema.optional(
|
|
458
|
+
Schema.Union([
|
|
459
|
+
Schema.Array(
|
|
439
460
|
Schema.Union([
|
|
440
461
|
Schema.Literals([
|
|
441
|
-
"
|
|
442
|
-
"
|
|
443
|
-
"
|
|
444
|
-
"
|
|
445
|
-
"
|
|
446
|
-
"
|
|
447
|
-
"
|
|
462
|
+
"zoneLockdown",
|
|
463
|
+
"uaBlock",
|
|
464
|
+
"bic",
|
|
465
|
+
"hot",
|
|
466
|
+
"securityLevel",
|
|
467
|
+
"rateLimit",
|
|
468
|
+
"waf",
|
|
448
469
|
]),
|
|
449
470
|
Schema.String,
|
|
450
471
|
]),
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
),
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
Schema.Union([DeletedFilter, FirewallFilter]),
|
|
458
|
-
Schema.Null,
|
|
459
|
-
]),
|
|
460
|
-
),
|
|
461
|
-
paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
462
|
-
priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
463
|
-
products: Schema.optional(
|
|
464
|
-
Schema.Union([
|
|
465
|
-
Schema.Array(
|
|
466
|
-
Schema.Union([
|
|
467
|
-
Schema.Literals([
|
|
468
|
-
"zoneLockdown",
|
|
469
|
-
"uaBlock",
|
|
470
|
-
"bic",
|
|
471
|
-
"hot",
|
|
472
|
-
"securityLevel",
|
|
473
|
-
"rateLimit",
|
|
474
|
-
"waf",
|
|
475
|
-
]),
|
|
476
|
-
Schema.String,
|
|
477
|
-
]),
|
|
478
|
-
),
|
|
479
|
-
Schema.Null,
|
|
480
|
-
]),
|
|
481
|
-
),
|
|
482
|
-
ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
483
|
-
}),
|
|
472
|
+
),
|
|
473
|
+
Schema.Null,
|
|
474
|
+
]),
|
|
475
|
+
),
|
|
476
|
+
ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
477
|
+
}),
|
|
484
478
|
) as unknown as Schema.Codec<BulkPutRulesResponseResult>;
|
|
485
479
|
|
|
486
480
|
interface Response {
|
|
@@ -489,7 +483,7 @@ interface Response {
|
|
|
489
483
|
/** The content type of the body. Must be one of the following: `text/plain`, `text/xml`, or `application/json`. */
|
|
490
484
|
contentType?: string | null;
|
|
491
485
|
}
|
|
492
|
-
const Response = /*@__PURE__*/
|
|
486
|
+
const Response = /*@__PURE__*/ Schema.suspend(() =>
|
|
493
487
|
Schema.Struct({
|
|
494
488
|
body: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
495
489
|
contentType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -511,7 +505,7 @@ interface Action {
|
|
|
511
505
|
/** The time in seconds during which Cloudflare will perform the mitigation action. Must be an integer value greater than or equal to the period. Notes: If "mode" is "challenge", "managed_challenge", or " */
|
|
512
506
|
timeout?: number | null;
|
|
513
507
|
}
|
|
514
|
-
const Action = /*@__PURE__*/
|
|
508
|
+
const Action = /*@__PURE__*/ Schema.suspend(() =>
|
|
515
509
|
Schema.Struct({
|
|
516
510
|
mode: Schema.optional(
|
|
517
511
|
Schema.Union([
|
|
@@ -543,7 +537,7 @@ interface FirewallFilterParam {
|
|
|
543
537
|
/** A short reference tag. Allows you to select related filters. */
|
|
544
538
|
ref?: string | null;
|
|
545
539
|
}
|
|
546
|
-
const FirewallFilterParam = /*@__PURE__*/
|
|
540
|
+
const FirewallFilterParam = /*@__PURE__*/ Schema.suspend(() =>
|
|
547
541
|
Schema.Struct({
|
|
548
542
|
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
549
543
|
expression: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -558,7 +552,7 @@ interface Configuration {
|
|
|
558
552
|
/** The exact user agent string to match. This value will be compared to the received `User-Agent` HTTP header value. */
|
|
559
553
|
value?: string | null;
|
|
560
554
|
}
|
|
561
|
-
const Configuration = /*@__PURE__*/
|
|
555
|
+
const Configuration = /*@__PURE__*/ Schema.suspend(() =>
|
|
562
556
|
Schema.Struct({
|
|
563
557
|
target: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
564
558
|
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -583,30 +577,27 @@ interface ListUaRulesResponseResult {
|
|
|
583
577
|
/** When true, indicates that the rule is currently paused. */
|
|
584
578
|
paused?: boolean | null;
|
|
585
579
|
}
|
|
586
|
-
const ListUaRulesResponseResult = /*@__PURE__*/
|
|
587
|
-
(
|
|
588
|
-
Schema.
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
594
|
-
mode: Schema.optional(
|
|
580
|
+
const ListUaRulesResponseResult = /*@__PURE__*/ Schema.suspend(() =>
|
|
581
|
+
Schema.Struct({
|
|
582
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
583
|
+
configuration: Schema.optional(Schema.Union([Configuration, Schema.Null])),
|
|
584
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
585
|
+
mode: Schema.optional(
|
|
586
|
+
Schema.Union([
|
|
595
587
|
Schema.Union([
|
|
596
|
-
Schema.
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
"managed_challenge",
|
|
602
|
-
]),
|
|
603
|
-
Schema.String,
|
|
588
|
+
Schema.Literals([
|
|
589
|
+
"block",
|
|
590
|
+
"challenge",
|
|
591
|
+
"js_challenge",
|
|
592
|
+
"managed_challenge",
|
|
604
593
|
]),
|
|
605
|
-
Schema.
|
|
594
|
+
Schema.String,
|
|
606
595
|
]),
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
596
|
+
Schema.Null,
|
|
597
|
+
]),
|
|
598
|
+
),
|
|
599
|
+
paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
600
|
+
}),
|
|
610
601
|
) as unknown as Schema.Codec<ListUaRulesResponseResult>;
|
|
611
602
|
|
|
612
603
|
interface Configuration2 {
|
|
@@ -615,7 +606,7 @@ interface Configuration2 {
|
|
|
615
606
|
/** the user agent to exactly match */
|
|
616
607
|
value?: string | null;
|
|
617
608
|
}
|
|
618
|
-
const Configuration2 = /*@__PURE__*/
|
|
609
|
+
const Configuration2 = /*@__PURE__*/ Schema.suspend(() =>
|
|
619
610
|
Schema.Struct({
|
|
620
611
|
target: Schema.optional(Schema.Union([Schema.Literal("ua"), Schema.Null])),
|
|
621
612
|
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -669,7 +660,7 @@ interface RewriteAction {
|
|
|
669
660
|
| (string & {})
|
|
670
661
|
| null;
|
|
671
662
|
}
|
|
672
|
-
const RewriteAction = /*@__PURE__*/
|
|
663
|
+
const RewriteAction = /*@__PURE__*/ Schema.suspend(() =>
|
|
673
664
|
Schema.Struct({
|
|
674
665
|
block: Schema.optional(
|
|
675
666
|
Schema.Union([
|
|
@@ -809,7 +800,7 @@ interface ListWafOverridesResponseResult {
|
|
|
809
800
|
urls?: string[] | null;
|
|
810
801
|
}
|
|
811
802
|
const ListWafOverridesResponseResult =
|
|
812
|
-
/*@__PURE__*/
|
|
803
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
813
804
|
Schema.Struct({
|
|
814
805
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
815
806
|
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -850,7 +841,7 @@ const ListWafOverridesResponseResult =
|
|
|
850
841
|
interface Source {
|
|
851
842
|
pointer?: string | null;
|
|
852
843
|
}
|
|
853
|
-
const Source = /*@__PURE__*/
|
|
844
|
+
const Source = /*@__PURE__*/ Schema.suspend(() =>
|
|
854
845
|
Schema.Struct({
|
|
855
846
|
pointer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
856
847
|
}),
|
|
@@ -862,7 +853,7 @@ interface ResponseInfo {
|
|
|
862
853
|
documentationUrl?: string | null;
|
|
863
854
|
source?: { pointer?: string | null } | null;
|
|
864
855
|
}
|
|
865
|
-
const ResponseInfo = /*@__PURE__*/
|
|
856
|
+
const ResponseInfo = /*@__PURE__*/ Schema.suspend(() =>
|
|
866
857
|
Schema.Struct({
|
|
867
858
|
code: Schema.Number,
|
|
868
859
|
message: Schema.String,
|
|
@@ -897,20 +888,19 @@ interface FirewallAPIResponseSingle {
|
|
|
897
888
|
/** Defines whether the API call was successful. */
|
|
898
889
|
success: true;
|
|
899
890
|
}
|
|
900
|
-
const FirewallAPIResponseSingle = /*@__PURE__*/
|
|
901
|
-
(
|
|
902
|
-
Schema.
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
}),
|
|
891
|
+
const FirewallAPIResponseSingle = /*@__PURE__*/ Schema.suspend(() =>
|
|
892
|
+
Schema.Struct({
|
|
893
|
+
errors: Schema.Array(ResponseInfo),
|
|
894
|
+
messages: Schema.Array(ResponseInfo),
|
|
895
|
+
result: Schema.Unknown,
|
|
896
|
+
success: Schema.Literal(true),
|
|
897
|
+
}),
|
|
908
898
|
) as unknown as Schema.Codec<FirewallAPIResponseSingle>;
|
|
909
899
|
|
|
910
900
|
interface Result {
|
|
911
901
|
result?: unknown | null;
|
|
912
902
|
}
|
|
913
|
-
const Result = /*@__PURE__*/
|
|
903
|
+
const Result = /*@__PURE__*/ Schema.suspend(() =>
|
|
914
904
|
Schema.Struct({
|
|
915
905
|
result: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
916
906
|
}),
|
|
@@ -935,7 +925,7 @@ interface ListWafPackageGroupsResponseResult {
|
|
|
935
925
|
packageId?: string | null;
|
|
936
926
|
}
|
|
937
927
|
const ListWafPackageGroupsResponseResult =
|
|
938
|
-
/*@__PURE__*/
|
|
928
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
939
929
|
Schema.Struct({
|
|
940
930
|
id: Schema.String,
|
|
941
931
|
description: Schema.Union([Schema.String, Schema.Null]),
|
|
@@ -974,7 +964,7 @@ interface WafruleGroup {
|
|
|
974
964
|
/** Defines the name of the rule group. */
|
|
975
965
|
name?: string | null;
|
|
976
966
|
}
|
|
977
|
-
const WafruleGroup = /*@__PURE__*/
|
|
967
|
+
const WafruleGroup = /*@__PURE__*/ Schema.suspend(() =>
|
|
978
968
|
Schema.Struct({
|
|
979
969
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
980
970
|
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -997,29 +987,28 @@ interface WafmanagedRulesAnomalyRule {
|
|
|
997
987
|
/** Defines the order in which the individual WAF rule is executed within its rule group. */
|
|
998
988
|
priority: string;
|
|
999
989
|
}
|
|
1000
|
-
const WafmanagedRulesAnomalyRule = /*@__PURE__*/
|
|
1001
|
-
(
|
|
1002
|
-
Schema.
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
Schema.Union([Schema.Literals(["on", "off"]), Schema.String]),
|
|
1006
|
-
),
|
|
1007
|
-
description: Schema.String,
|
|
1008
|
-
group: WafruleGroup,
|
|
1009
|
-
mode: Schema.Union([Schema.Literals(["on", "off"]), Schema.String]),
|
|
1010
|
-
packageId: Schema.String,
|
|
1011
|
-
priority: Schema.String,
|
|
1012
|
-
}).pipe(
|
|
1013
|
-
Schema.encodeKeys({
|
|
1014
|
-
id: "id",
|
|
1015
|
-
allowedModes: "allowed_modes",
|
|
1016
|
-
description: "description",
|
|
1017
|
-
group: "group",
|
|
1018
|
-
mode: "mode",
|
|
1019
|
-
packageId: "package_id",
|
|
1020
|
-
priority: "priority",
|
|
1021
|
-
}),
|
|
990
|
+
const WafmanagedRulesAnomalyRule = /*@__PURE__*/ Schema.suspend(() =>
|
|
991
|
+
Schema.Struct({
|
|
992
|
+
id: Schema.String,
|
|
993
|
+
allowedModes: Schema.Array(
|
|
994
|
+
Schema.Union([Schema.Literals(["on", "off"]), Schema.String]),
|
|
1022
995
|
),
|
|
996
|
+
description: Schema.String,
|
|
997
|
+
group: WafruleGroup,
|
|
998
|
+
mode: Schema.Union([Schema.Literals(["on", "off"]), Schema.String]),
|
|
999
|
+
packageId: Schema.String,
|
|
1000
|
+
priority: Schema.String,
|
|
1001
|
+
}).pipe(
|
|
1002
|
+
Schema.encodeKeys({
|
|
1003
|
+
id: "id",
|
|
1004
|
+
allowedModes: "allowed_modes",
|
|
1005
|
+
description: "description",
|
|
1006
|
+
group: "group",
|
|
1007
|
+
mode: "mode",
|
|
1008
|
+
packageId: "package_id",
|
|
1009
|
+
priority: "priority",
|
|
1010
|
+
}),
|
|
1011
|
+
),
|
|
1023
1012
|
) as unknown as Schema.Codec<WafmanagedRulesAnomalyRule>;
|
|
1024
1013
|
|
|
1025
1014
|
interface WafmanagedRulesTraditionalDenyRule {
|
|
@@ -1054,7 +1043,7 @@ interface WafmanagedRulesTraditionalDenyRule {
|
|
|
1054
1043
|
priority: string;
|
|
1055
1044
|
}
|
|
1056
1045
|
const WafmanagedRulesTraditionalDenyRule =
|
|
1057
|
-
/*@__PURE__*/
|
|
1046
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1058
1047
|
Schema.Struct({
|
|
1059
1048
|
id: Schema.String,
|
|
1060
1049
|
allowedModes: Schema.Array(
|
|
@@ -1124,7 +1113,7 @@ export interface GetAccessRuleForZoneRequest extends GetAccessRuleBaseRequest {
|
|
|
1124
1113
|
}
|
|
1125
1114
|
|
|
1126
1115
|
export const GetAccessRuleForAccountRequest =
|
|
1127
|
-
/*@__PURE__*/
|
|
1116
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1128
1117
|
Schema.Struct({
|
|
1129
1118
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1130
1119
|
...GetAccessRuleBaseFields,
|
|
@@ -1137,7 +1126,7 @@ export const GetAccessRuleForAccountRequest =
|
|
|
1137
1126
|
) as unknown as Schema.Codec<GetAccessRuleForAccountRequest>;
|
|
1138
1127
|
|
|
1139
1128
|
export const GetAccessRuleForZoneRequest =
|
|
1140
|
-
/*@__PURE__*/
|
|
1129
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1141
1130
|
Schema.Struct({
|
|
1142
1131
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
1143
1132
|
...GetAccessRuleBaseFields,
|
|
@@ -1190,30 +1179,11 @@ export interface GetAccessRuleResponse {
|
|
|
1190
1179
|
} | null;
|
|
1191
1180
|
}
|
|
1192
1181
|
|
|
1193
|
-
export const GetAccessRuleResponse = /*@__PURE__*/
|
|
1194
|
-
(
|
|
1195
|
-
Schema.
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
Schema.Union([
|
|
1199
|
-
Schema.Literals([
|
|
1200
|
-
"block",
|
|
1201
|
-
"challenge",
|
|
1202
|
-
"whitelist",
|
|
1203
|
-
"js_challenge",
|
|
1204
|
-
"managed_challenge",
|
|
1205
|
-
]),
|
|
1206
|
-
Schema.String,
|
|
1207
|
-
]),
|
|
1208
|
-
),
|
|
1209
|
-
configuration: Schema.Union([
|
|
1210
|
-
AccessRuleIPConfiguration,
|
|
1211
|
-
Ipv6Configuration,
|
|
1212
|
-
AccessRuleCIDRConfiguration,
|
|
1213
|
-
Asnconfiguration,
|
|
1214
|
-
CountryConfiguration,
|
|
1215
|
-
]),
|
|
1216
|
-
mode: Schema.Union([
|
|
1182
|
+
export const GetAccessRuleResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
1183
|
+
Schema.Struct({
|
|
1184
|
+
id: Schema.String,
|
|
1185
|
+
allowedModes: Schema.Array(
|
|
1186
|
+
Schema.Union([
|
|
1217
1187
|
Schema.Literals([
|
|
1218
1188
|
"block",
|
|
1219
1189
|
"challenge",
|
|
@@ -1223,24 +1193,42 @@ export const GetAccessRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
|
|
|
1223
1193
|
]),
|
|
1224
1194
|
Schema.String,
|
|
1225
1195
|
]),
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1196
|
+
),
|
|
1197
|
+
configuration: Schema.Union([
|
|
1198
|
+
AccessRuleIPConfiguration,
|
|
1199
|
+
Ipv6Configuration,
|
|
1200
|
+
AccessRuleCIDRConfiguration,
|
|
1201
|
+
Asnconfiguration,
|
|
1202
|
+
CountryConfiguration,
|
|
1203
|
+
]),
|
|
1204
|
+
mode: Schema.Union([
|
|
1205
|
+
Schema.Literals([
|
|
1206
|
+
"block",
|
|
1207
|
+
"challenge",
|
|
1208
|
+
"whitelist",
|
|
1209
|
+
"js_challenge",
|
|
1210
|
+
"managed_challenge",
|
|
1211
|
+
]),
|
|
1212
|
+
Schema.String,
|
|
1213
|
+
]),
|
|
1214
|
+
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1215
|
+
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1216
|
+
notes: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1217
|
+
scope: Schema.optional(Schema.Union([Scope, Schema.Null])),
|
|
1218
|
+
})
|
|
1219
|
+
.pipe(
|
|
1220
|
+
Schema.encodeKeys({
|
|
1221
|
+
id: "id",
|
|
1222
|
+
allowedModes: "allowed_modes",
|
|
1223
|
+
configuration: "configuration",
|
|
1224
|
+
mode: "mode",
|
|
1225
|
+
createdOn: "created_on",
|
|
1226
|
+
modifiedOn: "modified_on",
|
|
1227
|
+
notes: "notes",
|
|
1228
|
+
scope: "scope",
|
|
1229
|
+
}),
|
|
1230
|
+
)
|
|
1231
|
+
.pipe(T.ResponsePath("result")),
|
|
1244
1232
|
) as unknown as Schema.Codec<GetAccessRuleResponse>;
|
|
1245
1233
|
|
|
1246
1234
|
export type GetAccessRuleError = DefaultErrors | AccessRuleNotFound | Forbidden;
|
|
@@ -1250,7 +1238,7 @@ export const getAccessRuleForAccount: API.OperationMethod<
|
|
|
1250
1238
|
GetAccessRuleResponse,
|
|
1251
1239
|
GetAccessRuleError,
|
|
1252
1240
|
Credentials | HttpClient.HttpClient
|
|
1253
|
-
> = /*@__PURE__*/
|
|
1241
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1254
1242
|
input: GetAccessRuleForAccountRequest,
|
|
1255
1243
|
output: GetAccessRuleResponse,
|
|
1256
1244
|
errors: [AccessRuleNotFound, Forbidden],
|
|
@@ -1261,7 +1249,7 @@ export const getAccessRuleForZone: API.OperationMethod<
|
|
|
1261
1249
|
GetAccessRuleResponse,
|
|
1262
1250
|
GetAccessRuleError,
|
|
1263
1251
|
Credentials | HttpClient.HttpClient
|
|
1264
|
-
> = /*@__PURE__*/
|
|
1252
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1265
1253
|
input: GetAccessRuleForZoneRequest,
|
|
1266
1254
|
output: GetAccessRuleResponse,
|
|
1267
1255
|
errors: [AccessRuleNotFound, Forbidden],
|
|
@@ -1349,7 +1337,7 @@ export interface ListAccessRulesForZoneRequest extends ListAccessRulesBaseReques
|
|
|
1349
1337
|
}
|
|
1350
1338
|
|
|
1351
1339
|
export const ListAccessRulesForAccountRequest =
|
|
1352
|
-
/*@__PURE__*/
|
|
1340
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1353
1341
|
Schema.Struct({
|
|
1354
1342
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1355
1343
|
...ListAccessRulesBaseFields,
|
|
@@ -1362,7 +1350,7 @@ export const ListAccessRulesForAccountRequest =
|
|
|
1362
1350
|
) as unknown as Schema.Codec<ListAccessRulesForAccountRequest>;
|
|
1363
1351
|
|
|
1364
1352
|
export const ListAccessRulesForZoneRequest =
|
|
1365
|
-
/*@__PURE__*/
|
|
1353
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1366
1354
|
Schema.Struct({
|
|
1367
1355
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
1368
1356
|
...ListAccessRulesBaseFields,
|
|
@@ -1416,7 +1404,7 @@ export interface ListAccessRulesResponse {
|
|
|
1416
1404
|
}
|
|
1417
1405
|
|
|
1418
1406
|
export const ListAccessRulesResponse =
|
|
1419
|
-
/*@__PURE__*/
|
|
1407
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1420
1408
|
Schema.Struct({
|
|
1421
1409
|
result: Schema.Array(ListAccessRulesResponseResult),
|
|
1422
1410
|
resultInfo: Schema.optional(
|
|
@@ -1432,7 +1420,7 @@ export const listAccessRulesForAccount: API.PaginatedOperationMethod<
|
|
|
1432
1420
|
ListAccessRulesResponse,
|
|
1433
1421
|
ListAccessRulesError,
|
|
1434
1422
|
Credentials | HttpClient.HttpClient
|
|
1435
|
-
> = /*@__PURE__*/
|
|
1423
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
1436
1424
|
input: ListAccessRulesForAccountRequest,
|
|
1437
1425
|
output: ListAccessRulesResponse,
|
|
1438
1426
|
errors: [Forbidden],
|
|
@@ -1450,7 +1438,7 @@ export const listAccessRulesForZone: API.PaginatedOperationMethod<
|
|
|
1450
1438
|
ListAccessRulesResponse,
|
|
1451
1439
|
ListAccessRulesError,
|
|
1452
1440
|
Credentials | HttpClient.HttpClient
|
|
1453
|
-
> = /*@__PURE__*/
|
|
1441
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
1454
1442
|
input: ListAccessRulesForZoneRequest,
|
|
1455
1443
|
output: ListAccessRulesResponse,
|
|
1456
1444
|
errors: [Forbidden],
|
|
@@ -1515,7 +1503,7 @@ export interface CreateAccessRuleForZoneRequest extends CreateAccessRuleBaseRequ
|
|
|
1515
1503
|
}
|
|
1516
1504
|
|
|
1517
1505
|
export const CreateAccessRuleForAccountRequest =
|
|
1518
|
-
/*@__PURE__*/
|
|
1506
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1519
1507
|
Schema.Struct({
|
|
1520
1508
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1521
1509
|
...CreateAccessRuleBaseFields,
|
|
@@ -1528,7 +1516,7 @@ export const CreateAccessRuleForAccountRequest =
|
|
|
1528
1516
|
) as unknown as Schema.Codec<CreateAccessRuleForAccountRequest>;
|
|
1529
1517
|
|
|
1530
1518
|
export const CreateAccessRuleForZoneRequest =
|
|
1531
|
-
/*@__PURE__*/
|
|
1519
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1532
1520
|
Schema.Struct({
|
|
1533
1521
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
1534
1522
|
...CreateAccessRuleBaseFields,
|
|
@@ -1582,7 +1570,7 @@ export interface CreateAccessRuleResponse {
|
|
|
1582
1570
|
}
|
|
1583
1571
|
|
|
1584
1572
|
export const CreateAccessRuleResponse =
|
|
1585
|
-
/*@__PURE__*/
|
|
1573
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1586
1574
|
Schema.Struct({
|
|
1587
1575
|
id: Schema.String,
|
|
1588
1576
|
allowedModes: Schema.Array(
|
|
@@ -1644,7 +1632,7 @@ export const createAccessRuleForAccount: API.OperationMethod<
|
|
|
1644
1632
|
CreateAccessRuleResponse,
|
|
1645
1633
|
CreateAccessRuleError,
|
|
1646
1634
|
Credentials | HttpClient.HttpClient
|
|
1647
|
-
> = /*@__PURE__*/
|
|
1635
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1648
1636
|
input: CreateAccessRuleForAccountRequest,
|
|
1649
1637
|
output: CreateAccessRuleResponse,
|
|
1650
1638
|
errors: [DuplicateAccessRule, Forbidden],
|
|
@@ -1655,7 +1643,7 @@ export const createAccessRuleForZone: API.OperationMethod<
|
|
|
1655
1643
|
CreateAccessRuleResponse,
|
|
1656
1644
|
CreateAccessRuleError,
|
|
1657
1645
|
Credentials | HttpClient.HttpClient
|
|
1658
|
-
> = /*@__PURE__*/
|
|
1646
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1659
1647
|
input: CreateAccessRuleForZoneRequest,
|
|
1660
1648
|
output: CreateAccessRuleResponse,
|
|
1661
1649
|
errors: [DuplicateAccessRule, Forbidden],
|
|
@@ -1715,7 +1703,7 @@ export interface PatchAccessRuleForZoneRequest extends PatchAccessRuleBaseReques
|
|
|
1715
1703
|
}
|
|
1716
1704
|
|
|
1717
1705
|
export const PatchAccessRuleForAccountRequest =
|
|
1718
|
-
/*@__PURE__*/
|
|
1706
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1719
1707
|
Schema.Struct({
|
|
1720
1708
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1721
1709
|
...PatchAccessRuleBaseFields,
|
|
@@ -1728,7 +1716,7 @@ export const PatchAccessRuleForAccountRequest =
|
|
|
1728
1716
|
) as unknown as Schema.Codec<PatchAccessRuleForAccountRequest>;
|
|
1729
1717
|
|
|
1730
1718
|
export const PatchAccessRuleForZoneRequest =
|
|
1731
|
-
/*@__PURE__*/
|
|
1719
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1732
1720
|
Schema.Struct({
|
|
1733
1721
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
1734
1722
|
...PatchAccessRuleBaseFields,
|
|
@@ -1782,7 +1770,7 @@ export interface PatchAccessRuleResponse {
|
|
|
1782
1770
|
}
|
|
1783
1771
|
|
|
1784
1772
|
export const PatchAccessRuleResponse =
|
|
1785
|
-
/*@__PURE__*/
|
|
1773
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1786
1774
|
Schema.Struct({
|
|
1787
1775
|
id: Schema.String,
|
|
1788
1776
|
allowedModes: Schema.Array(
|
|
@@ -1844,7 +1832,7 @@ export const patchAccessRuleForAccount: API.OperationMethod<
|
|
|
1844
1832
|
PatchAccessRuleResponse,
|
|
1845
1833
|
PatchAccessRuleError,
|
|
1846
1834
|
Credentials | HttpClient.HttpClient
|
|
1847
|
-
> = /*@__PURE__*/
|
|
1835
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1848
1836
|
input: PatchAccessRuleForAccountRequest,
|
|
1849
1837
|
output: PatchAccessRuleResponse,
|
|
1850
1838
|
errors: [AccessRuleNotFound, Forbidden],
|
|
@@ -1855,7 +1843,7 @@ export const patchAccessRuleForZone: API.OperationMethod<
|
|
|
1855
1843
|
PatchAccessRuleResponse,
|
|
1856
1844
|
PatchAccessRuleError,
|
|
1857
1845
|
Credentials | HttpClient.HttpClient
|
|
1858
|
-
> = /*@__PURE__*/
|
|
1846
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1859
1847
|
input: PatchAccessRuleForZoneRequest,
|
|
1860
1848
|
output: PatchAccessRuleResponse,
|
|
1861
1849
|
errors: [AccessRuleNotFound, Forbidden],
|
|
@@ -1880,7 +1868,7 @@ export interface DeleteAccessRuleForZoneRequest extends DeleteAccessRuleBaseRequ
|
|
|
1880
1868
|
}
|
|
1881
1869
|
|
|
1882
1870
|
export const DeleteAccessRuleForAccountRequest =
|
|
1883
|
-
/*@__PURE__*/
|
|
1871
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1884
1872
|
Schema.Struct({
|
|
1885
1873
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1886
1874
|
...DeleteAccessRuleBaseFields,
|
|
@@ -1893,7 +1881,7 @@ export const DeleteAccessRuleForAccountRequest =
|
|
|
1893
1881
|
) as unknown as Schema.Codec<DeleteAccessRuleForAccountRequest>;
|
|
1894
1882
|
|
|
1895
1883
|
export const DeleteAccessRuleForZoneRequest =
|
|
1896
|
-
/*@__PURE__*/
|
|
1884
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1897
1885
|
Schema.Struct({
|
|
1898
1886
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
1899
1887
|
...DeleteAccessRuleBaseFields,
|
|
@@ -1911,7 +1899,7 @@ export interface DeleteAccessRuleResponse {
|
|
|
1911
1899
|
}
|
|
1912
1900
|
|
|
1913
1901
|
export const DeleteAccessRuleResponse =
|
|
1914
|
-
/*@__PURE__*/
|
|
1902
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1915
1903
|
Schema.Struct({
|
|
1916
1904
|
id: Schema.String,
|
|
1917
1905
|
}).pipe(T.ResponsePath("result")),
|
|
@@ -1927,7 +1915,7 @@ export const deleteAccessRuleForAccount: API.OperationMethod<
|
|
|
1927
1915
|
DeleteAccessRuleResponse,
|
|
1928
1916
|
DeleteAccessRuleError,
|
|
1929
1917
|
Credentials | HttpClient.HttpClient
|
|
1930
|
-
> = /*@__PURE__*/
|
|
1918
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1931
1919
|
input: DeleteAccessRuleForAccountRequest,
|
|
1932
1920
|
output: DeleteAccessRuleResponse,
|
|
1933
1921
|
errors: [AccessRuleNotFound, Forbidden],
|
|
@@ -1938,7 +1926,7 @@ export const deleteAccessRuleForZone: API.OperationMethod<
|
|
|
1938
1926
|
DeleteAccessRuleResponse,
|
|
1939
1927
|
DeleteAccessRuleError,
|
|
1940
1928
|
Credentials | HttpClient.HttpClient
|
|
1941
|
-
> = /*@__PURE__*/
|
|
1929
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1942
1930
|
input: DeleteAccessRuleForZoneRequest,
|
|
1943
1931
|
output: DeleteAccessRuleResponse,
|
|
1944
1932
|
errors: [AccessRuleNotFound, Forbidden],
|
|
@@ -1954,17 +1942,16 @@ export interface GetLockdownRequest {
|
|
|
1954
1942
|
zoneId: string;
|
|
1955
1943
|
}
|
|
1956
1944
|
|
|
1957
|
-
export const GetLockdownRequest = /*@__PURE__*/
|
|
1958
|
-
(
|
|
1959
|
-
Schema.
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
),
|
|
1945
|
+
export const GetLockdownRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
1946
|
+
Schema.Struct({
|
|
1947
|
+
lockDownsId: Schema.String.pipe(T.HttpPath("lockDownsId")),
|
|
1948
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
1949
|
+
}).pipe(
|
|
1950
|
+
T.Http({
|
|
1951
|
+
method: "GET",
|
|
1952
|
+
path: "/zones/{zone_id}/firewall/lockdowns/{lockDownsId}",
|
|
1953
|
+
}),
|
|
1954
|
+
),
|
|
1968
1955
|
) as unknown as Schema.Codec<GetLockdownRequest>;
|
|
1969
1956
|
|
|
1970
1957
|
export interface GetLockdownResponse {
|
|
@@ -1988,33 +1975,32 @@ export interface GetLockdownResponse {
|
|
|
1988
1975
|
priority?: number | null;
|
|
1989
1976
|
}
|
|
1990
1977
|
|
|
1991
|
-
export const GetLockdownResponse = /*@__PURE__*/
|
|
1992
|
-
(
|
|
1993
|
-
Schema.
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
.
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
.pipe(T.ResponsePath("result")),
|
|
1978
|
+
export const GetLockdownResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
1979
|
+
Schema.Struct({
|
|
1980
|
+
id: Schema.String,
|
|
1981
|
+
configurations: Schema.Array(
|
|
1982
|
+
Schema.Union([AccessRuleIPConfiguration, AccessRuleCIDRConfiguration]),
|
|
1983
|
+
),
|
|
1984
|
+
createdOn: Schema.String,
|
|
1985
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1986
|
+
modifiedOn: Schema.String,
|
|
1987
|
+
paused: Schema.Boolean,
|
|
1988
|
+
urls: Schema.Array(Schema.String),
|
|
1989
|
+
priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1990
|
+
})
|
|
1991
|
+
.pipe(
|
|
1992
|
+
Schema.encodeKeys({
|
|
1993
|
+
id: "id",
|
|
1994
|
+
configurations: "configurations",
|
|
1995
|
+
createdOn: "created_on",
|
|
1996
|
+
description: "description",
|
|
1997
|
+
modifiedOn: "modified_on",
|
|
1998
|
+
paused: "paused",
|
|
1999
|
+
urls: "urls",
|
|
2000
|
+
priority: "priority",
|
|
2001
|
+
}),
|
|
2002
|
+
)
|
|
2003
|
+
.pipe(T.ResponsePath("result")),
|
|
2018
2004
|
) as unknown as Schema.Codec<GetLockdownResponse>;
|
|
2019
2005
|
|
|
2020
2006
|
export type GetLockdownError = DefaultErrors | LockdownNotFound | Forbidden;
|
|
@@ -2024,7 +2010,7 @@ export const getLockdown: API.OperationMethod<
|
|
|
2024
2010
|
GetLockdownResponse,
|
|
2025
2011
|
GetLockdownError,
|
|
2026
2012
|
Credentials | HttpClient.HttpClient
|
|
2027
|
-
> = /*@__PURE__*/
|
|
2013
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2028
2014
|
input: GetLockdownRequest,
|
|
2029
2015
|
output: GetLockdownResponse,
|
|
2030
2016
|
errors: [LockdownNotFound, Forbidden],
|
|
@@ -2055,32 +2041,29 @@ export interface ListLockdownsRequest {
|
|
|
2055
2041
|
uriSearch?: string;
|
|
2056
2042
|
}
|
|
2057
2043
|
|
|
2058
|
-
export const ListLockdownsRequest = /*@__PURE__*/
|
|
2059
|
-
(
|
|
2060
|
-
Schema.
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
T.HttpQuery("description"),
|
|
2067
|
-
),
|
|
2068
|
-
descriptionSearch: Schema.optional(Schema.String).pipe(
|
|
2069
|
-
T.HttpQuery("description_search"),
|
|
2070
|
-
),
|
|
2071
|
-
ip: Schema.optional(Schema.String).pipe(T.HttpQuery("ip")),
|
|
2072
|
-
ipRangeSearch: Schema.optional(Schema.String).pipe(
|
|
2073
|
-
T.HttpQuery("ip_range_search"),
|
|
2074
|
-
),
|
|
2075
|
-
ipSearch: Schema.optional(Schema.String).pipe(T.HttpQuery("ip_search")),
|
|
2076
|
-
modifiedOn: Schema.optional(Schema.String).pipe(
|
|
2077
|
-
T.HttpQuery("modified_on"),
|
|
2078
|
-
),
|
|
2079
|
-
priority: Schema.optional(Schema.Number).pipe(T.HttpQuery("priority")),
|
|
2080
|
-
uriSearch: Schema.optional(Schema.String).pipe(T.HttpQuery("uri_search")),
|
|
2081
|
-
}).pipe(
|
|
2082
|
-
T.Http({ method: "GET", path: "/zones/{zone_id}/firewall/lockdowns" }),
|
|
2044
|
+
export const ListLockdownsRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
2045
|
+
Schema.Struct({
|
|
2046
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
2047
|
+
page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
|
|
2048
|
+
perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
|
|
2049
|
+
createdOn: Schema.optional(Schema.String).pipe(T.HttpQuery("created_on")),
|
|
2050
|
+
description: Schema.optional(Schema.String).pipe(
|
|
2051
|
+
T.HttpQuery("description"),
|
|
2083
2052
|
),
|
|
2053
|
+
descriptionSearch: Schema.optional(Schema.String).pipe(
|
|
2054
|
+
T.HttpQuery("description_search"),
|
|
2055
|
+
),
|
|
2056
|
+
ip: Schema.optional(Schema.String).pipe(T.HttpQuery("ip")),
|
|
2057
|
+
ipRangeSearch: Schema.optional(Schema.String).pipe(
|
|
2058
|
+
T.HttpQuery("ip_range_search"),
|
|
2059
|
+
),
|
|
2060
|
+
ipSearch: Schema.optional(Schema.String).pipe(T.HttpQuery("ip_search")),
|
|
2061
|
+
modifiedOn: Schema.optional(Schema.String).pipe(T.HttpQuery("modified_on")),
|
|
2062
|
+
priority: Schema.optional(Schema.Number).pipe(T.HttpQuery("priority")),
|
|
2063
|
+
uriSearch: Schema.optional(Schema.String).pipe(T.HttpQuery("uri_search")),
|
|
2064
|
+
}).pipe(
|
|
2065
|
+
T.Http({ method: "GET", path: "/zones/{zone_id}/firewall/lockdowns" }),
|
|
2066
|
+
),
|
|
2084
2067
|
) as unknown as Schema.Codec<ListLockdownsRequest>;
|
|
2085
2068
|
|
|
2086
2069
|
export interface ListLockdownsResponse {
|
|
@@ -2105,14 +2088,13 @@ export interface ListLockdownsResponse {
|
|
|
2105
2088
|
} | null;
|
|
2106
2089
|
}
|
|
2107
2090
|
|
|
2108
|
-
export const ListLockdownsResponse = /*@__PURE__*/
|
|
2109
|
-
(
|
|
2110
|
-
Schema.
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
|
|
2091
|
+
export const ListLockdownsResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
2092
|
+
Schema.Struct({
|
|
2093
|
+
result: Schema.Array(ListLockdownsResponseResult),
|
|
2094
|
+
resultInfo: Schema.optional(
|
|
2095
|
+
Schema.Union([ListAccessRulesResponseResultInfo, Schema.Null]),
|
|
2096
|
+
),
|
|
2097
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
|
|
2116
2098
|
) as unknown as Schema.Codec<ListLockdownsResponse>;
|
|
2117
2099
|
|
|
2118
2100
|
export type ListLockdownsError = DefaultErrors | Forbidden;
|
|
@@ -2122,7 +2104,7 @@ export const listLockdowns: API.PaginatedOperationMethod<
|
|
|
2122
2104
|
ListLockdownsResponse,
|
|
2123
2105
|
ListLockdownsError,
|
|
2124
2106
|
Credentials | HttpClient.HttpClient
|
|
2125
|
-
> = /*@__PURE__*/
|
|
2107
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
2126
2108
|
input: ListLockdownsRequest,
|
|
2127
2109
|
output: ListLockdownsResponse,
|
|
2128
2110
|
errors: [Forbidden],
|
|
@@ -2153,20 +2135,19 @@ export interface CreateLockdownRequest {
|
|
|
2153
2135
|
priority?: number;
|
|
2154
2136
|
}
|
|
2155
2137
|
|
|
2156
|
-
export const CreateLockdownRequest = /*@__PURE__*/
|
|
2157
|
-
(
|
|
2158
|
-
Schema.
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
Schema.Union([AccessRuleIPConfiguration, AccessRuleCIDRConfiguration]),
|
|
2162
|
-
),
|
|
2163
|
-
urls: Schema.Array(Schema.String),
|
|
2164
|
-
description: Schema.optional(Schema.String),
|
|
2165
|
-
paused: Schema.optional(Schema.Boolean),
|
|
2166
|
-
priority: Schema.optional(Schema.Number),
|
|
2167
|
-
}).pipe(
|
|
2168
|
-
T.Http({ method: "POST", path: "/zones/{zone_id}/firewall/lockdowns" }),
|
|
2138
|
+
export const CreateLockdownRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
2139
|
+
Schema.Struct({
|
|
2140
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
2141
|
+
configurations: Schema.Array(
|
|
2142
|
+
Schema.Union([AccessRuleIPConfiguration, AccessRuleCIDRConfiguration]),
|
|
2169
2143
|
),
|
|
2144
|
+
urls: Schema.Array(Schema.String),
|
|
2145
|
+
description: Schema.optional(Schema.String),
|
|
2146
|
+
paused: Schema.optional(Schema.Boolean),
|
|
2147
|
+
priority: Schema.optional(Schema.Number),
|
|
2148
|
+
}).pipe(
|
|
2149
|
+
T.Http({ method: "POST", path: "/zones/{zone_id}/firewall/lockdowns" }),
|
|
2150
|
+
),
|
|
2170
2151
|
) as unknown as Schema.Codec<CreateLockdownRequest>;
|
|
2171
2152
|
|
|
2172
2153
|
export interface CreateLockdownResponse {
|
|
@@ -2191,7 +2172,7 @@ export interface CreateLockdownResponse {
|
|
|
2191
2172
|
}
|
|
2192
2173
|
|
|
2193
2174
|
export const CreateLockdownResponse =
|
|
2194
|
-
/*@__PURE__*/
|
|
2175
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
2195
2176
|
Schema.Struct({
|
|
2196
2177
|
id: Schema.String,
|
|
2197
2178
|
configurations: Schema.Array(
|
|
@@ -2226,7 +2207,7 @@ export const createLockdown: API.OperationMethod<
|
|
|
2226
2207
|
CreateLockdownResponse,
|
|
2227
2208
|
CreateLockdownError,
|
|
2228
2209
|
Credentials | HttpClient.HttpClient
|
|
2229
|
-
> = /*@__PURE__*/
|
|
2210
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2230
2211
|
input: CreateLockdownRequest,
|
|
2231
2212
|
output: CreateLockdownResponse,
|
|
2232
2213
|
errors: [DuplicateLockdown, Forbidden],
|
|
@@ -2248,24 +2229,23 @@ export interface UpdateLockdownRequest {
|
|
|
2248
2229
|
priority?: number;
|
|
2249
2230
|
}
|
|
2250
2231
|
|
|
2251
|
-
export const UpdateLockdownRequest = /*@__PURE__*/
|
|
2252
|
-
(
|
|
2253
|
-
Schema.
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
Schema.Union([AccessRuleIPConfiguration, AccessRuleCIDRConfiguration]),
|
|
2258
|
-
),
|
|
2259
|
-
urls: Schema.Array(Schema.String),
|
|
2260
|
-
description: Schema.optional(Schema.String),
|
|
2261
|
-
paused: Schema.optional(Schema.Boolean),
|
|
2262
|
-
priority: Schema.optional(Schema.Number),
|
|
2263
|
-
}).pipe(
|
|
2264
|
-
T.Http({
|
|
2265
|
-
method: "PUT",
|
|
2266
|
-
path: "/zones/{zone_id}/firewall/lockdowns/{lockDownsId}",
|
|
2267
|
-
}),
|
|
2232
|
+
export const UpdateLockdownRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
2233
|
+
Schema.Struct({
|
|
2234
|
+
lockDownsId: Schema.String.pipe(T.HttpPath("lockDownsId")),
|
|
2235
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
2236
|
+
configurations: Schema.Array(
|
|
2237
|
+
Schema.Union([AccessRuleIPConfiguration, AccessRuleCIDRConfiguration]),
|
|
2268
2238
|
),
|
|
2239
|
+
urls: Schema.Array(Schema.String),
|
|
2240
|
+
description: Schema.optional(Schema.String),
|
|
2241
|
+
paused: Schema.optional(Schema.Boolean),
|
|
2242
|
+
priority: Schema.optional(Schema.Number),
|
|
2243
|
+
}).pipe(
|
|
2244
|
+
T.Http({
|
|
2245
|
+
method: "PUT",
|
|
2246
|
+
path: "/zones/{zone_id}/firewall/lockdowns/{lockDownsId}",
|
|
2247
|
+
}),
|
|
2248
|
+
),
|
|
2269
2249
|
) as unknown as Schema.Codec<UpdateLockdownRequest>;
|
|
2270
2250
|
|
|
2271
2251
|
export interface UpdateLockdownResponse {
|
|
@@ -2290,7 +2270,7 @@ export interface UpdateLockdownResponse {
|
|
|
2290
2270
|
}
|
|
2291
2271
|
|
|
2292
2272
|
export const UpdateLockdownResponse =
|
|
2293
|
-
/*@__PURE__*/
|
|
2273
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
2294
2274
|
Schema.Struct({
|
|
2295
2275
|
id: Schema.String,
|
|
2296
2276
|
configurations: Schema.Array(
|
|
@@ -2329,7 +2309,7 @@ export const updateLockdown: API.OperationMethod<
|
|
|
2329
2309
|
UpdateLockdownResponse,
|
|
2330
2310
|
UpdateLockdownError,
|
|
2331
2311
|
Credentials | HttpClient.HttpClient
|
|
2332
|
-
> = /*@__PURE__*/
|
|
2312
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2333
2313
|
input: UpdateLockdownRequest,
|
|
2334
2314
|
output: UpdateLockdownResponse,
|
|
2335
2315
|
errors: [LockdownNotFound, DuplicateLockdown, Forbidden],
|
|
@@ -2341,17 +2321,16 @@ export interface DeleteLockdownRequest {
|
|
|
2341
2321
|
zoneId: string;
|
|
2342
2322
|
}
|
|
2343
2323
|
|
|
2344
|
-
export const DeleteLockdownRequest = /*@__PURE__*/
|
|
2345
|
-
(
|
|
2346
|
-
Schema.
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
),
|
|
2324
|
+
export const DeleteLockdownRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
2325
|
+
Schema.Struct({
|
|
2326
|
+
lockDownsId: Schema.String.pipe(T.HttpPath("lockDownsId")),
|
|
2327
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
2328
|
+
}).pipe(
|
|
2329
|
+
T.Http({
|
|
2330
|
+
method: "DELETE",
|
|
2331
|
+
path: "/zones/{zone_id}/firewall/lockdowns/{lockDownsId}",
|
|
2332
|
+
}),
|
|
2333
|
+
),
|
|
2355
2334
|
) as unknown as Schema.Codec<DeleteLockdownRequest>;
|
|
2356
2335
|
|
|
2357
2336
|
export interface DeleteLockdownResponse {
|
|
@@ -2360,7 +2339,7 @@ export interface DeleteLockdownResponse {
|
|
|
2360
2339
|
}
|
|
2361
2340
|
|
|
2362
2341
|
export const DeleteLockdownResponse =
|
|
2363
|
-
/*@__PURE__*/
|
|
2342
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
2364
2343
|
Schema.Struct({
|
|
2365
2344
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2366
2345
|
}).pipe(T.ResponsePath("result")),
|
|
@@ -2373,7 +2352,7 @@ export const deleteLockdown: API.OperationMethod<
|
|
|
2373
2352
|
DeleteLockdownResponse,
|
|
2374
2353
|
DeleteLockdownError,
|
|
2375
2354
|
Credentials | HttpClient.HttpClient
|
|
2376
|
-
> = /*@__PURE__*/
|
|
2355
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2377
2356
|
input: DeleteLockdownRequest,
|
|
2378
2357
|
output: DeleteLockdownResponse,
|
|
2379
2358
|
errors: [LockdownNotFound, Forbidden],
|
|
@@ -2390,12 +2369,11 @@ export interface BulkPutRulesRequest {
|
|
|
2390
2369
|
body: unknown;
|
|
2391
2370
|
}
|
|
2392
2371
|
|
|
2393
|
-
export const BulkPutRulesRequest = /*@__PURE__*/
|
|
2394
|
-
(
|
|
2395
|
-
Schema.
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
}).pipe(T.Http({ method: "PUT", path: "/zones/{zone_id}/firewall/rules" })),
|
|
2372
|
+
export const BulkPutRulesRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
2373
|
+
Schema.Struct({
|
|
2374
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
2375
|
+
body: Schema.Unknown.pipe(T.HttpBody()),
|
|
2376
|
+
}).pipe(T.Http({ method: "PUT", path: "/zones/{zone_id}/firewall/rules" })),
|
|
2399
2377
|
) as unknown as Schema.Codec<BulkPutRulesRequest>;
|
|
2400
2378
|
|
|
2401
2379
|
export interface BulkPutRulesResponse {
|
|
@@ -2440,11 +2418,10 @@ export interface BulkPutRulesResponse {
|
|
|
2440
2418
|
}[];
|
|
2441
2419
|
}
|
|
2442
2420
|
|
|
2443
|
-
export const BulkPutRulesResponse = /*@__PURE__*/
|
|
2444
|
-
(
|
|
2445
|
-
Schema.
|
|
2446
|
-
|
|
2447
|
-
}),
|
|
2421
|
+
export const BulkPutRulesResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
2422
|
+
Schema.Struct({
|
|
2423
|
+
result: Schema.Array(BulkPutRulesResponseResult),
|
|
2424
|
+
}),
|
|
2448
2425
|
) as unknown as Schema.Codec<BulkPutRulesResponse>;
|
|
2449
2426
|
|
|
2450
2427
|
export type BulkPutRulesError = DefaultErrors;
|
|
@@ -2454,7 +2431,7 @@ export const bulkPutRules: API.PaginatedOperationMethod<
|
|
|
2454
2431
|
BulkPutRulesResponse,
|
|
2455
2432
|
BulkPutRulesError,
|
|
2456
2433
|
Credentials | HttpClient.HttpClient
|
|
2457
|
-
> = /*@__PURE__*/
|
|
2434
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
2458
2435
|
input: BulkPutRulesRequest,
|
|
2459
2436
|
output: BulkPutRulesResponse,
|
|
2460
2437
|
errors: [],
|
|
@@ -2474,7 +2451,7 @@ export interface GetRuleRequest {
|
|
|
2474
2451
|
zoneId: string;
|
|
2475
2452
|
}
|
|
2476
2453
|
|
|
2477
|
-
export const GetRuleRequest = /*@__PURE__*/
|
|
2454
|
+
export const GetRuleRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
2478
2455
|
Schema.Struct({
|
|
2479
2456
|
ruleId: Schema.String.pipe(T.HttpPath("ruleId")),
|
|
2480
2457
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
@@ -2529,7 +2506,7 @@ export interface GetRuleResponse {
|
|
|
2529
2506
|
ref?: string | null;
|
|
2530
2507
|
}
|
|
2531
2508
|
|
|
2532
|
-
export const GetRuleResponse = /*@__PURE__*/
|
|
2509
|
+
export const GetRuleResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
2533
2510
|
Schema.Struct({
|
|
2534
2511
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2535
2512
|
action: Schema.optional(
|
|
@@ -2588,7 +2565,7 @@ export const getRule: API.OperationMethod<
|
|
|
2588
2565
|
GetRuleResponse,
|
|
2589
2566
|
GetRuleError,
|
|
2590
2567
|
Credentials | HttpClient.HttpClient
|
|
2591
|
-
> = /*@__PURE__*/
|
|
2568
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2592
2569
|
input: GetRuleRequest,
|
|
2593
2570
|
output: GetRuleResponse,
|
|
2594
2571
|
errors: [],
|
|
@@ -2609,7 +2586,7 @@ export interface ListRulesRequest {
|
|
|
2609
2586
|
paused?: boolean;
|
|
2610
2587
|
}
|
|
2611
2588
|
|
|
2612
|
-
export const ListRulesRequest = /*@__PURE__*/
|
|
2589
|
+
export const ListRulesRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
2613
2590
|
Schema.Struct({
|
|
2614
2591
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
2615
2592
|
page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
|
|
@@ -2671,14 +2648,13 @@ export interface ListRulesResponse {
|
|
|
2671
2648
|
} | null;
|
|
2672
2649
|
}
|
|
2673
2650
|
|
|
2674
|
-
export const ListRulesResponse = /*@__PURE__*/
|
|
2675
|
-
(
|
|
2676
|
-
Schema.
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
|
|
2651
|
+
export const ListRulesResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
2652
|
+
Schema.Struct({
|
|
2653
|
+
result: Schema.Array(BulkPutRulesResponseResult),
|
|
2654
|
+
resultInfo: Schema.optional(
|
|
2655
|
+
Schema.Union([ListAccessRulesResponseResultInfo, Schema.Null]),
|
|
2656
|
+
),
|
|
2657
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
|
|
2682
2658
|
) as unknown as Schema.Codec<ListRulesResponse>;
|
|
2683
2659
|
|
|
2684
2660
|
export type ListRulesError = DefaultErrors;
|
|
@@ -2688,7 +2664,7 @@ export const listRules: API.PaginatedOperationMethod<
|
|
|
2688
2664
|
ListRulesResponse,
|
|
2689
2665
|
ListRulesError,
|
|
2690
2666
|
Credentials | HttpClient.HttpClient
|
|
2691
|
-
> = /*@__PURE__*/
|
|
2667
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
2692
2668
|
input: ListRulesRequest,
|
|
2693
2669
|
output: ListRulesResponse,
|
|
2694
2670
|
errors: [],
|
|
@@ -2725,15 +2701,12 @@ export interface CreateRuleRequest {
|
|
|
2725
2701
|
};
|
|
2726
2702
|
}
|
|
2727
2703
|
|
|
2728
|
-
export const CreateRuleRequest = /*@__PURE__*/
|
|
2729
|
-
(
|
|
2730
|
-
Schema.
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
}).pipe(
|
|
2735
|
-
T.Http({ method: "POST", path: "/zones/{zone_id}/firewall/rules" }),
|
|
2736
|
-
),
|
|
2704
|
+
export const CreateRuleRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
2705
|
+
Schema.Struct({
|
|
2706
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
2707
|
+
action: Action,
|
|
2708
|
+
filter: FirewallFilterParam,
|
|
2709
|
+
}).pipe(T.Http({ method: "POST", path: "/zones/{zone_id}/firewall/rules" })),
|
|
2737
2710
|
) as unknown as Schema.Codec<CreateRuleRequest>;
|
|
2738
2711
|
|
|
2739
2712
|
export interface CreateRuleResponse {
|
|
@@ -2778,11 +2751,10 @@ export interface CreateRuleResponse {
|
|
|
2778
2751
|
}[];
|
|
2779
2752
|
}
|
|
2780
2753
|
|
|
2781
|
-
export const CreateRuleResponse = /*@__PURE__*/
|
|
2782
|
-
(
|
|
2783
|
-
Schema.
|
|
2784
|
-
|
|
2785
|
-
}),
|
|
2754
|
+
export const CreateRuleResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
2755
|
+
Schema.Struct({
|
|
2756
|
+
result: Schema.Array(BulkPutRulesResponseResult),
|
|
2757
|
+
}),
|
|
2786
2758
|
) as unknown as Schema.Codec<CreateRuleResponse>;
|
|
2787
2759
|
|
|
2788
2760
|
export type CreateRuleError = DefaultErrors;
|
|
@@ -2792,7 +2764,7 @@ export const createRule: API.PaginatedOperationMethod<
|
|
|
2792
2764
|
CreateRuleResponse,
|
|
2793
2765
|
CreateRuleError,
|
|
2794
2766
|
Credentials | HttpClient.HttpClient
|
|
2795
|
-
> = /*@__PURE__*/
|
|
2767
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
2796
2768
|
input: CreateRuleRequest,
|
|
2797
2769
|
output: CreateRuleResponse,
|
|
2798
2770
|
errors: [],
|
|
@@ -2827,19 +2799,18 @@ export interface UpdateRuleRequest {
|
|
|
2827
2799
|
};
|
|
2828
2800
|
}
|
|
2829
2801
|
|
|
2830
|
-
export const UpdateRuleRequest = /*@__PURE__*/
|
|
2831
|
-
(
|
|
2832
|
-
Schema.
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
),
|
|
2802
|
+
export const UpdateRuleRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
2803
|
+
Schema.Struct({
|
|
2804
|
+
ruleId: Schema.String.pipe(T.HttpPath("ruleId")),
|
|
2805
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
2806
|
+
action: Action,
|
|
2807
|
+
filter: FirewallFilterParam,
|
|
2808
|
+
}).pipe(
|
|
2809
|
+
T.Http({
|
|
2810
|
+
method: "PUT",
|
|
2811
|
+
path: "/zones/{zone_id}/firewall/rules/{ruleId}",
|
|
2812
|
+
}),
|
|
2813
|
+
),
|
|
2843
2814
|
) as unknown as Schema.Codec<UpdateRuleRequest>;
|
|
2844
2815
|
|
|
2845
2816
|
export interface UpdateRuleResponse {
|
|
@@ -2888,57 +2859,56 @@ export interface UpdateRuleResponse {
|
|
|
2888
2859
|
ref?: string | null;
|
|
2889
2860
|
}
|
|
2890
2861
|
|
|
2891
|
-
export const UpdateRuleResponse = /*@__PURE__*/
|
|
2892
|
-
(
|
|
2893
|
-
Schema.
|
|
2894
|
-
|
|
2895
|
-
|
|
2862
|
+
export const UpdateRuleResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
2863
|
+
Schema.Struct({
|
|
2864
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2865
|
+
action: Schema.optional(
|
|
2866
|
+
Schema.Union([
|
|
2896
2867
|
Schema.Union([
|
|
2868
|
+
Schema.Literals([
|
|
2869
|
+
"block",
|
|
2870
|
+
"challenge",
|
|
2871
|
+
"js_challenge",
|
|
2872
|
+
"managed_challenge",
|
|
2873
|
+
"allow",
|
|
2874
|
+
"log",
|
|
2875
|
+
"bypass",
|
|
2876
|
+
]),
|
|
2877
|
+
Schema.String,
|
|
2878
|
+
]),
|
|
2879
|
+
Schema.Null,
|
|
2880
|
+
]),
|
|
2881
|
+
),
|
|
2882
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2883
|
+
filter: Schema.optional(
|
|
2884
|
+
Schema.Union([
|
|
2885
|
+
Schema.Union([DeletedFilter, FirewallFilter]),
|
|
2886
|
+
Schema.Null,
|
|
2887
|
+
]),
|
|
2888
|
+
),
|
|
2889
|
+
paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2890
|
+
priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2891
|
+
products: Schema.optional(
|
|
2892
|
+
Schema.Union([
|
|
2893
|
+
Schema.Array(
|
|
2897
2894
|
Schema.Union([
|
|
2898
2895
|
Schema.Literals([
|
|
2899
|
-
"
|
|
2900
|
-
"
|
|
2901
|
-
"
|
|
2902
|
-
"
|
|
2903
|
-
"
|
|
2904
|
-
"
|
|
2905
|
-
"
|
|
2896
|
+
"zoneLockdown",
|
|
2897
|
+
"uaBlock",
|
|
2898
|
+
"bic",
|
|
2899
|
+
"hot",
|
|
2900
|
+
"securityLevel",
|
|
2901
|
+
"rateLimit",
|
|
2902
|
+
"waf",
|
|
2906
2903
|
]),
|
|
2907
2904
|
Schema.String,
|
|
2908
2905
|
]),
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
),
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
Schema.Union([DeletedFilter, FirewallFilter]),
|
|
2916
|
-
Schema.Null,
|
|
2917
|
-
]),
|
|
2918
|
-
),
|
|
2919
|
-
paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2920
|
-
priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2921
|
-
products: Schema.optional(
|
|
2922
|
-
Schema.Union([
|
|
2923
|
-
Schema.Array(
|
|
2924
|
-
Schema.Union([
|
|
2925
|
-
Schema.Literals([
|
|
2926
|
-
"zoneLockdown",
|
|
2927
|
-
"uaBlock",
|
|
2928
|
-
"bic",
|
|
2929
|
-
"hot",
|
|
2930
|
-
"securityLevel",
|
|
2931
|
-
"rateLimit",
|
|
2932
|
-
"waf",
|
|
2933
|
-
]),
|
|
2934
|
-
Schema.String,
|
|
2935
|
-
]),
|
|
2936
|
-
),
|
|
2937
|
-
Schema.Null,
|
|
2938
|
-
]),
|
|
2939
|
-
),
|
|
2940
|
-
ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2941
|
-
}).pipe(T.ResponsePath("result")),
|
|
2906
|
+
),
|
|
2907
|
+
Schema.Null,
|
|
2908
|
+
]),
|
|
2909
|
+
),
|
|
2910
|
+
ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2911
|
+
}).pipe(T.ResponsePath("result")),
|
|
2942
2912
|
) as unknown as Schema.Codec<UpdateRuleResponse>;
|
|
2943
2913
|
|
|
2944
2914
|
export type UpdateRuleError = DefaultErrors;
|
|
@@ -2948,7 +2918,7 @@ export const updateRule: API.OperationMethod<
|
|
|
2948
2918
|
UpdateRuleResponse,
|
|
2949
2919
|
UpdateRuleError,
|
|
2950
2920
|
Credentials | HttpClient.HttpClient
|
|
2951
|
-
> = /*@__PURE__*/
|
|
2921
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2952
2922
|
input: UpdateRuleRequest,
|
|
2953
2923
|
output: UpdateRuleResponse,
|
|
2954
2924
|
errors: [],
|
|
@@ -2960,7 +2930,7 @@ export interface PatchRuleRequest {
|
|
|
2960
2930
|
zoneId: string;
|
|
2961
2931
|
}
|
|
2962
2932
|
|
|
2963
|
-
export const PatchRuleRequest = /*@__PURE__*/
|
|
2933
|
+
export const PatchRuleRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
2964
2934
|
Schema.Struct({
|
|
2965
2935
|
ruleId: Schema.String.pipe(T.HttpPath("ruleId")),
|
|
2966
2936
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
@@ -3014,11 +2984,10 @@ export interface PatchRuleResponse {
|
|
|
3014
2984
|
}[];
|
|
3015
2985
|
}
|
|
3016
2986
|
|
|
3017
|
-
export const PatchRuleResponse = /*@__PURE__*/
|
|
3018
|
-
(
|
|
3019
|
-
Schema.
|
|
3020
|
-
|
|
3021
|
-
}),
|
|
2987
|
+
export const PatchRuleResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
2988
|
+
Schema.Struct({
|
|
2989
|
+
result: Schema.Array(BulkPutRulesResponseResult),
|
|
2990
|
+
}),
|
|
3022
2991
|
) as unknown as Schema.Codec<PatchRuleResponse>;
|
|
3023
2992
|
|
|
3024
2993
|
export type PatchRuleError = DefaultErrors;
|
|
@@ -3028,7 +2997,7 @@ export const patchRule: API.PaginatedOperationMethod<
|
|
|
3028
2997
|
PatchRuleResponse,
|
|
3029
2998
|
PatchRuleError,
|
|
3030
2999
|
Credentials | HttpClient.HttpClient
|
|
3031
|
-
> = /*@__PURE__*/
|
|
3000
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
3032
3001
|
input: PatchRuleRequest,
|
|
3033
3002
|
output: PatchRuleResponse,
|
|
3034
3003
|
errors: [],
|
|
@@ -3044,17 +3013,16 @@ export interface DeleteRuleRequest {
|
|
|
3044
3013
|
zoneId: string;
|
|
3045
3014
|
}
|
|
3046
3015
|
|
|
3047
|
-
export const DeleteRuleRequest = /*@__PURE__*/
|
|
3048
|
-
(
|
|
3049
|
-
Schema.
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
),
|
|
3016
|
+
export const DeleteRuleRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
3017
|
+
Schema.Struct({
|
|
3018
|
+
ruleId: Schema.String.pipe(T.HttpPath("ruleId")),
|
|
3019
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
3020
|
+
}).pipe(
|
|
3021
|
+
T.Http({
|
|
3022
|
+
method: "DELETE",
|
|
3023
|
+
path: "/zones/{zone_id}/firewall/rules/{ruleId}",
|
|
3024
|
+
}),
|
|
3025
|
+
),
|
|
3058
3026
|
) as unknown as Schema.Codec<DeleteRuleRequest>;
|
|
3059
3027
|
|
|
3060
3028
|
export interface DeleteRuleResponse {
|
|
@@ -3103,57 +3071,56 @@ export interface DeleteRuleResponse {
|
|
|
3103
3071
|
ref?: string | null;
|
|
3104
3072
|
}
|
|
3105
3073
|
|
|
3106
|
-
export const DeleteRuleResponse = /*@__PURE__*/
|
|
3107
|
-
(
|
|
3108
|
-
Schema.
|
|
3109
|
-
|
|
3110
|
-
|
|
3074
|
+
export const DeleteRuleResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
3075
|
+
Schema.Struct({
|
|
3076
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3077
|
+
action: Schema.optional(
|
|
3078
|
+
Schema.Union([
|
|
3111
3079
|
Schema.Union([
|
|
3080
|
+
Schema.Literals([
|
|
3081
|
+
"block",
|
|
3082
|
+
"challenge",
|
|
3083
|
+
"js_challenge",
|
|
3084
|
+
"managed_challenge",
|
|
3085
|
+
"allow",
|
|
3086
|
+
"log",
|
|
3087
|
+
"bypass",
|
|
3088
|
+
]),
|
|
3089
|
+
Schema.String,
|
|
3090
|
+
]),
|
|
3091
|
+
Schema.Null,
|
|
3092
|
+
]),
|
|
3093
|
+
),
|
|
3094
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3095
|
+
filter: Schema.optional(
|
|
3096
|
+
Schema.Union([
|
|
3097
|
+
Schema.Union([DeletedFilter, FirewallFilter]),
|
|
3098
|
+
Schema.Null,
|
|
3099
|
+
]),
|
|
3100
|
+
),
|
|
3101
|
+
paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
3102
|
+
priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3103
|
+
products: Schema.optional(
|
|
3104
|
+
Schema.Union([
|
|
3105
|
+
Schema.Array(
|
|
3112
3106
|
Schema.Union([
|
|
3113
3107
|
Schema.Literals([
|
|
3114
|
-
"
|
|
3115
|
-
"
|
|
3116
|
-
"
|
|
3117
|
-
"
|
|
3118
|
-
"
|
|
3119
|
-
"
|
|
3120
|
-
"
|
|
3108
|
+
"zoneLockdown",
|
|
3109
|
+
"uaBlock",
|
|
3110
|
+
"bic",
|
|
3111
|
+
"hot",
|
|
3112
|
+
"securityLevel",
|
|
3113
|
+
"rateLimit",
|
|
3114
|
+
"waf",
|
|
3121
3115
|
]),
|
|
3122
3116
|
Schema.String,
|
|
3123
3117
|
]),
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
),
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
Schema.Union([DeletedFilter, FirewallFilter]),
|
|
3131
|
-
Schema.Null,
|
|
3132
|
-
]),
|
|
3133
|
-
),
|
|
3134
|
-
paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
3135
|
-
priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3136
|
-
products: Schema.optional(
|
|
3137
|
-
Schema.Union([
|
|
3138
|
-
Schema.Array(
|
|
3139
|
-
Schema.Union([
|
|
3140
|
-
Schema.Literals([
|
|
3141
|
-
"zoneLockdown",
|
|
3142
|
-
"uaBlock",
|
|
3143
|
-
"bic",
|
|
3144
|
-
"hot",
|
|
3145
|
-
"securityLevel",
|
|
3146
|
-
"rateLimit",
|
|
3147
|
-
"waf",
|
|
3148
|
-
]),
|
|
3149
|
-
Schema.String,
|
|
3150
|
-
]),
|
|
3151
|
-
),
|
|
3152
|
-
Schema.Null,
|
|
3153
|
-
]),
|
|
3154
|
-
),
|
|
3155
|
-
ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3156
|
-
}).pipe(T.ResponsePath("result")),
|
|
3118
|
+
),
|
|
3119
|
+
Schema.Null,
|
|
3120
|
+
]),
|
|
3121
|
+
),
|
|
3122
|
+
ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3123
|
+
}).pipe(T.ResponsePath("result")),
|
|
3157
3124
|
) as unknown as Schema.Codec<DeleteRuleResponse>;
|
|
3158
3125
|
|
|
3159
3126
|
export type DeleteRuleError = DefaultErrors;
|
|
@@ -3163,7 +3130,7 @@ export const deleteRule: API.OperationMethod<
|
|
|
3163
3130
|
DeleteRuleResponse,
|
|
3164
3131
|
DeleteRuleError,
|
|
3165
3132
|
Credentials | HttpClient.HttpClient
|
|
3166
|
-
> = /*@__PURE__*/
|
|
3133
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3167
3134
|
input: DeleteRuleRequest,
|
|
3168
3135
|
output: DeleteRuleResponse,
|
|
3169
3136
|
errors: [],
|
|
@@ -3173,17 +3140,14 @@ export interface BulkPatchRulesRequest {
|
|
|
3173
3140
|
/** Path param: Defines an identifier. */
|
|
3174
3141
|
zoneId: string;
|
|
3175
3142
|
/** Body param */
|
|
3176
|
-
body: unknown;
|
|
3177
|
-
}
|
|
3178
|
-
|
|
3179
|
-
export const BulkPatchRulesRequest = /*@__PURE__*/
|
|
3180
|
-
(
|
|
3181
|
-
Schema.
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
}).pipe(
|
|
3185
|
-
T.Http({ method: "PATCH", path: "/zones/{zone_id}/firewall/rules" }),
|
|
3186
|
-
),
|
|
3143
|
+
body: unknown;
|
|
3144
|
+
}
|
|
3145
|
+
|
|
3146
|
+
export const BulkPatchRulesRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
3147
|
+
Schema.Struct({
|
|
3148
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
3149
|
+
body: Schema.Unknown.pipe(T.HttpBody()),
|
|
3150
|
+
}).pipe(T.Http({ method: "PATCH", path: "/zones/{zone_id}/firewall/rules" })),
|
|
3187
3151
|
) as unknown as Schema.Codec<BulkPatchRulesRequest>;
|
|
3188
3152
|
|
|
3189
3153
|
export interface BulkPatchRulesResponse {
|
|
@@ -3229,7 +3193,7 @@ export interface BulkPatchRulesResponse {
|
|
|
3229
3193
|
}
|
|
3230
3194
|
|
|
3231
3195
|
export const BulkPatchRulesResponse =
|
|
3232
|
-
/*@__PURE__*/
|
|
3196
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
3233
3197
|
Schema.Struct({
|
|
3234
3198
|
result: Schema.Array(BulkPutRulesResponseResult),
|
|
3235
3199
|
}),
|
|
@@ -3242,7 +3206,7 @@ export const bulkPatchRules: API.PaginatedOperationMethod<
|
|
|
3242
3206
|
BulkPatchRulesResponse,
|
|
3243
3207
|
BulkPatchRulesError,
|
|
3244
3208
|
Credentials | HttpClient.HttpClient
|
|
3245
|
-
> = /*@__PURE__*/
|
|
3209
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
3246
3210
|
input: BulkPatchRulesRequest,
|
|
3247
3211
|
output: BulkPatchRulesResponse,
|
|
3248
3212
|
errors: [],
|
|
@@ -3258,7 +3222,7 @@ export interface BulkDeleteRulesRequest {
|
|
|
3258
3222
|
}
|
|
3259
3223
|
|
|
3260
3224
|
export const BulkDeleteRulesRequest =
|
|
3261
|
-
/*@__PURE__*/
|
|
3225
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
3262
3226
|
Schema.Struct({
|
|
3263
3227
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
3264
3228
|
}).pipe(
|
|
@@ -3309,7 +3273,7 @@ export interface BulkDeleteRulesResponse {
|
|
|
3309
3273
|
}
|
|
3310
3274
|
|
|
3311
3275
|
export const BulkDeleteRulesResponse =
|
|
3312
|
-
/*@__PURE__*/
|
|
3276
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
3313
3277
|
Schema.Struct({
|
|
3314
3278
|
result: Schema.Array(BulkPutRulesResponseResult),
|
|
3315
3279
|
}),
|
|
@@ -3322,7 +3286,7 @@ export const bulkDeleteRules: API.PaginatedOperationMethod<
|
|
|
3322
3286
|
BulkDeleteRulesResponse,
|
|
3323
3287
|
BulkDeleteRulesError,
|
|
3324
3288
|
Credentials | HttpClient.HttpClient
|
|
3325
|
-
> = /*@__PURE__*/
|
|
3289
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
3326
3290
|
input: BulkDeleteRulesRequest,
|
|
3327
3291
|
output: BulkDeleteRulesResponse,
|
|
3328
3292
|
errors: [],
|
|
@@ -3342,7 +3306,7 @@ export interface GetUaRuleRequest {
|
|
|
3342
3306
|
zoneId: string;
|
|
3343
3307
|
}
|
|
3344
3308
|
|
|
3345
|
-
export const GetUaRuleRequest = /*@__PURE__*/
|
|
3309
|
+
export const GetUaRuleRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
3346
3310
|
Schema.Struct({
|
|
3347
3311
|
uaRuleId: Schema.String.pipe(T.HttpPath("uaRuleId")),
|
|
3348
3312
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
@@ -3373,30 +3337,27 @@ export interface GetUaRuleResponse {
|
|
|
3373
3337
|
paused?: boolean | null;
|
|
3374
3338
|
}
|
|
3375
3339
|
|
|
3376
|
-
export const GetUaRuleResponse = /*@__PURE__*/
|
|
3377
|
-
(
|
|
3378
|
-
Schema.
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3384
|
-
mode: Schema.optional(
|
|
3340
|
+
export const GetUaRuleResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
3341
|
+
Schema.Struct({
|
|
3342
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3343
|
+
configuration: Schema.optional(Schema.Union([Configuration, Schema.Null])),
|
|
3344
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3345
|
+
mode: Schema.optional(
|
|
3346
|
+
Schema.Union([
|
|
3385
3347
|
Schema.Union([
|
|
3386
|
-
Schema.
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
"managed_challenge",
|
|
3392
|
-
]),
|
|
3393
|
-
Schema.String,
|
|
3348
|
+
Schema.Literals([
|
|
3349
|
+
"block",
|
|
3350
|
+
"challenge",
|
|
3351
|
+
"js_challenge",
|
|
3352
|
+
"managed_challenge",
|
|
3394
3353
|
]),
|
|
3395
|
-
Schema.
|
|
3354
|
+
Schema.String,
|
|
3396
3355
|
]),
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3356
|
+
Schema.Null,
|
|
3357
|
+
]),
|
|
3358
|
+
),
|
|
3359
|
+
paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
3360
|
+
}).pipe(T.ResponsePath("result")),
|
|
3400
3361
|
) as unknown as Schema.Codec<GetUaRuleResponse>;
|
|
3401
3362
|
|
|
3402
3363
|
export type GetUaRuleError = DefaultErrors | UaRuleNotFound | Forbidden;
|
|
@@ -3406,7 +3367,7 @@ export const getUaRule: API.OperationMethod<
|
|
|
3406
3367
|
GetUaRuleResponse,
|
|
3407
3368
|
GetUaRuleError,
|
|
3408
3369
|
Credentials | HttpClient.HttpClient
|
|
3409
|
-
> = /*@__PURE__*/
|
|
3370
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3410
3371
|
input: GetUaRuleRequest,
|
|
3411
3372
|
output: GetUaRuleResponse,
|
|
3412
3373
|
errors: [UaRuleNotFound, Forbidden],
|
|
@@ -3425,20 +3386,19 @@ export interface ListUaRulesRequest {
|
|
|
3425
3386
|
userAgent?: string;
|
|
3426
3387
|
}
|
|
3427
3388
|
|
|
3428
|
-
export const ListUaRulesRequest = /*@__PURE__*/
|
|
3429
|
-
(
|
|
3430
|
-
Schema.
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
T.HttpQuery("description"),
|
|
3436
|
-
),
|
|
3437
|
-
paused: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("paused")),
|
|
3438
|
-
userAgent: Schema.optional(Schema.String).pipe(T.HttpQuery("user_agent")),
|
|
3439
|
-
}).pipe(
|
|
3440
|
-
T.Http({ method: "GET", path: "/zones/{zone_id}/firewall/ua_rules" }),
|
|
3389
|
+
export const ListUaRulesRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
3390
|
+
Schema.Struct({
|
|
3391
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
3392
|
+
page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
|
|
3393
|
+
perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
|
|
3394
|
+
description: Schema.optional(Schema.String).pipe(
|
|
3395
|
+
T.HttpQuery("description"),
|
|
3441
3396
|
),
|
|
3397
|
+
paused: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("paused")),
|
|
3398
|
+
userAgent: Schema.optional(Schema.String).pipe(T.HttpQuery("user_agent")),
|
|
3399
|
+
}).pipe(
|
|
3400
|
+
T.Http({ method: "GET", path: "/zones/{zone_id}/firewall/ua_rules" }),
|
|
3401
|
+
),
|
|
3442
3402
|
) as unknown as Schema.Codec<ListUaRulesRequest>;
|
|
3443
3403
|
|
|
3444
3404
|
export interface ListUaRulesResponse {
|
|
@@ -3463,14 +3423,13 @@ export interface ListUaRulesResponse {
|
|
|
3463
3423
|
} | null;
|
|
3464
3424
|
}
|
|
3465
3425
|
|
|
3466
|
-
export const ListUaRulesResponse = /*@__PURE__*/
|
|
3467
|
-
(
|
|
3468
|
-
Schema.
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
|
|
3426
|
+
export const ListUaRulesResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
3427
|
+
Schema.Struct({
|
|
3428
|
+
result: Schema.Array(ListUaRulesResponseResult),
|
|
3429
|
+
resultInfo: Schema.optional(
|
|
3430
|
+
Schema.Union([ListAccessRulesResponseResultInfo, Schema.Null]),
|
|
3431
|
+
),
|
|
3432
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
|
|
3474
3433
|
) as unknown as Schema.Codec<ListUaRulesResponse>;
|
|
3475
3434
|
|
|
3476
3435
|
export type ListUaRulesError = DefaultErrors | Forbidden;
|
|
@@ -3480,7 +3439,7 @@ export const listUaRules: API.PaginatedOperationMethod<
|
|
|
3480
3439
|
ListUaRulesResponse,
|
|
3481
3440
|
ListUaRulesError,
|
|
3482
3441
|
Credentials | HttpClient.HttpClient
|
|
3483
|
-
> = /*@__PURE__*/
|
|
3442
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
3484
3443
|
input: ListUaRulesRequest,
|
|
3485
3444
|
output: ListUaRulesResponse,
|
|
3486
3445
|
errors: [Forbidden],
|
|
@@ -3512,26 +3471,25 @@ export interface CreateUaRuleRequest {
|
|
|
3512
3471
|
paused?: boolean;
|
|
3513
3472
|
}
|
|
3514
3473
|
|
|
3515
|
-
export const CreateUaRuleRequest = /*@__PURE__*/
|
|
3516
|
-
(
|
|
3517
|
-
Schema.
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
"managed_challenge",
|
|
3527
|
-
]),
|
|
3528
|
-
Schema.String,
|
|
3474
|
+
export const CreateUaRuleRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
3475
|
+
Schema.Struct({
|
|
3476
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
3477
|
+
configuration: Configuration2,
|
|
3478
|
+
mode: Schema.Union([
|
|
3479
|
+
Schema.Literals([
|
|
3480
|
+
"block",
|
|
3481
|
+
"challenge",
|
|
3482
|
+
"whitelist",
|
|
3483
|
+
"js_challenge",
|
|
3484
|
+
"managed_challenge",
|
|
3529
3485
|
]),
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3486
|
+
Schema.String,
|
|
3487
|
+
]),
|
|
3488
|
+
description: Schema.optional(Schema.String),
|
|
3489
|
+
paused: Schema.optional(Schema.Boolean),
|
|
3490
|
+
}).pipe(
|
|
3491
|
+
T.Http({ method: "POST", path: "/zones/{zone_id}/firewall/ua_rules" }),
|
|
3492
|
+
),
|
|
3535
3493
|
) as unknown as Schema.Codec<CreateUaRuleRequest>;
|
|
3536
3494
|
|
|
3537
3495
|
export interface CreateUaRuleResponse {
|
|
@@ -3553,30 +3511,27 @@ export interface CreateUaRuleResponse {
|
|
|
3553
3511
|
paused?: boolean | null;
|
|
3554
3512
|
}
|
|
3555
3513
|
|
|
3556
|
-
export const CreateUaRuleResponse = /*@__PURE__*/
|
|
3557
|
-
(
|
|
3558
|
-
Schema.
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3564
|
-
mode: Schema.optional(
|
|
3514
|
+
export const CreateUaRuleResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
3515
|
+
Schema.Struct({
|
|
3516
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3517
|
+
configuration: Schema.optional(Schema.Union([Configuration, Schema.Null])),
|
|
3518
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3519
|
+
mode: Schema.optional(
|
|
3520
|
+
Schema.Union([
|
|
3565
3521
|
Schema.Union([
|
|
3566
|
-
Schema.
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
"managed_challenge",
|
|
3572
|
-
]),
|
|
3573
|
-
Schema.String,
|
|
3522
|
+
Schema.Literals([
|
|
3523
|
+
"block",
|
|
3524
|
+
"challenge",
|
|
3525
|
+
"js_challenge",
|
|
3526
|
+
"managed_challenge",
|
|
3574
3527
|
]),
|
|
3575
|
-
Schema.
|
|
3528
|
+
Schema.String,
|
|
3576
3529
|
]),
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3530
|
+
Schema.Null,
|
|
3531
|
+
]),
|
|
3532
|
+
),
|
|
3533
|
+
paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
3534
|
+
}).pipe(T.ResponsePath("result")),
|
|
3580
3535
|
) as unknown as Schema.Codec<CreateUaRuleResponse>;
|
|
3581
3536
|
|
|
3582
3537
|
export type CreateUaRuleError = DefaultErrors | DuplicateUaRule | Forbidden;
|
|
@@ -3586,7 +3541,7 @@ export const createUaRule: API.OperationMethod<
|
|
|
3586
3541
|
CreateUaRuleResponse,
|
|
3587
3542
|
CreateUaRuleError,
|
|
3588
3543
|
Credentials | HttpClient.HttpClient
|
|
3589
|
-
> = /*@__PURE__*/
|
|
3544
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3590
3545
|
input: CreateUaRuleRequest,
|
|
3591
3546
|
output: CreateUaRuleResponse,
|
|
3592
3547
|
errors: [DuplicateUaRule, Forbidden],
|
|
@@ -3618,37 +3573,36 @@ export interface UpdateUaRuleRequest {
|
|
|
3618
3573
|
paused?: boolean;
|
|
3619
3574
|
}
|
|
3620
3575
|
|
|
3621
|
-
export const UpdateUaRuleRequest = /*@__PURE__*/
|
|
3622
|
-
(
|
|
3623
|
-
Schema.
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
"managed_challenge",
|
|
3641
|
-
]),
|
|
3642
|
-
Schema.String,
|
|
3576
|
+
export const UpdateUaRuleRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
3577
|
+
Schema.Struct({
|
|
3578
|
+
uaRuleId: Schema.String.pipe(T.HttpPath("uaRuleId")),
|
|
3579
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
3580
|
+
configuration: Schema.Union([
|
|
3581
|
+
AccessRuleIPConfiguration,
|
|
3582
|
+
Ipv6Configuration,
|
|
3583
|
+
AccessRuleCIDRConfiguration,
|
|
3584
|
+
Asnconfiguration,
|
|
3585
|
+
CountryConfiguration,
|
|
3586
|
+
Configuration2,
|
|
3587
|
+
]),
|
|
3588
|
+
mode: Schema.Union([
|
|
3589
|
+
Schema.Literals([
|
|
3590
|
+
"block",
|
|
3591
|
+
"challenge",
|
|
3592
|
+
"whitelist",
|
|
3593
|
+
"js_challenge",
|
|
3594
|
+
"managed_challenge",
|
|
3643
3595
|
]),
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3596
|
+
Schema.String,
|
|
3597
|
+
]),
|
|
3598
|
+
description: Schema.optional(Schema.String),
|
|
3599
|
+
paused: Schema.optional(Schema.Boolean),
|
|
3600
|
+
}).pipe(
|
|
3601
|
+
T.Http({
|
|
3602
|
+
method: "PUT",
|
|
3603
|
+
path: "/zones/{zone_id}/firewall/ua_rules/{uaRuleId}",
|
|
3604
|
+
}),
|
|
3605
|
+
),
|
|
3652
3606
|
) as unknown as Schema.Codec<UpdateUaRuleRequest>;
|
|
3653
3607
|
|
|
3654
3608
|
export interface UpdateUaRuleResponse {
|
|
@@ -3670,30 +3624,27 @@ export interface UpdateUaRuleResponse {
|
|
|
3670
3624
|
paused?: boolean | null;
|
|
3671
3625
|
}
|
|
3672
3626
|
|
|
3673
|
-
export const UpdateUaRuleResponse = /*@__PURE__*/
|
|
3674
|
-
(
|
|
3675
|
-
Schema.
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3681
|
-
mode: Schema.optional(
|
|
3627
|
+
export const UpdateUaRuleResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
3628
|
+
Schema.Struct({
|
|
3629
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3630
|
+
configuration: Schema.optional(Schema.Union([Configuration, Schema.Null])),
|
|
3631
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3632
|
+
mode: Schema.optional(
|
|
3633
|
+
Schema.Union([
|
|
3682
3634
|
Schema.Union([
|
|
3683
|
-
Schema.
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
"managed_challenge",
|
|
3689
|
-
]),
|
|
3690
|
-
Schema.String,
|
|
3635
|
+
Schema.Literals([
|
|
3636
|
+
"block",
|
|
3637
|
+
"challenge",
|
|
3638
|
+
"js_challenge",
|
|
3639
|
+
"managed_challenge",
|
|
3691
3640
|
]),
|
|
3692
|
-
Schema.
|
|
3641
|
+
Schema.String,
|
|
3693
3642
|
]),
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3643
|
+
Schema.Null,
|
|
3644
|
+
]),
|
|
3645
|
+
),
|
|
3646
|
+
paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
3647
|
+
}).pipe(T.ResponsePath("result")),
|
|
3697
3648
|
) as unknown as Schema.Codec<UpdateUaRuleResponse>;
|
|
3698
3649
|
|
|
3699
3650
|
export type UpdateUaRuleError =
|
|
@@ -3707,7 +3658,7 @@ export const updateUaRule: API.OperationMethod<
|
|
|
3707
3658
|
UpdateUaRuleResponse,
|
|
3708
3659
|
UpdateUaRuleError,
|
|
3709
3660
|
Credentials | HttpClient.HttpClient
|
|
3710
|
-
> = /*@__PURE__*/
|
|
3661
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3711
3662
|
input: UpdateUaRuleRequest,
|
|
3712
3663
|
output: UpdateUaRuleResponse,
|
|
3713
3664
|
errors: [UaRuleNotFound, DuplicateUaRule, Forbidden],
|
|
@@ -3719,17 +3670,16 @@ export interface DeleteUaRuleRequest {
|
|
|
3719
3670
|
zoneId: string;
|
|
3720
3671
|
}
|
|
3721
3672
|
|
|
3722
|
-
export const DeleteUaRuleRequest = /*@__PURE__*/
|
|
3723
|
-
(
|
|
3724
|
-
Schema.
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
),
|
|
3673
|
+
export const DeleteUaRuleRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
3674
|
+
Schema.Struct({
|
|
3675
|
+
uaRuleId: Schema.String.pipe(T.HttpPath("uaRuleId")),
|
|
3676
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
3677
|
+
}).pipe(
|
|
3678
|
+
T.Http({
|
|
3679
|
+
method: "DELETE",
|
|
3680
|
+
path: "/zones/{zone_id}/firewall/ua_rules/{uaRuleId}",
|
|
3681
|
+
}),
|
|
3682
|
+
),
|
|
3733
3683
|
) as unknown as Schema.Codec<DeleteUaRuleRequest>;
|
|
3734
3684
|
|
|
3735
3685
|
export interface DeleteUaRuleResponse {
|
|
@@ -3751,30 +3701,27 @@ export interface DeleteUaRuleResponse {
|
|
|
3751
3701
|
paused?: boolean | null;
|
|
3752
3702
|
}
|
|
3753
3703
|
|
|
3754
|
-
export const DeleteUaRuleResponse = /*@__PURE__*/
|
|
3755
|
-
(
|
|
3756
|
-
Schema.
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3762
|
-
mode: Schema.optional(
|
|
3704
|
+
export const DeleteUaRuleResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
3705
|
+
Schema.Struct({
|
|
3706
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3707
|
+
configuration: Schema.optional(Schema.Union([Configuration, Schema.Null])),
|
|
3708
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3709
|
+
mode: Schema.optional(
|
|
3710
|
+
Schema.Union([
|
|
3763
3711
|
Schema.Union([
|
|
3764
|
-
Schema.
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
"managed_challenge",
|
|
3770
|
-
]),
|
|
3771
|
-
Schema.String,
|
|
3712
|
+
Schema.Literals([
|
|
3713
|
+
"block",
|
|
3714
|
+
"challenge",
|
|
3715
|
+
"js_challenge",
|
|
3716
|
+
"managed_challenge",
|
|
3772
3717
|
]),
|
|
3773
|
-
Schema.
|
|
3718
|
+
Schema.String,
|
|
3774
3719
|
]),
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3720
|
+
Schema.Null,
|
|
3721
|
+
]),
|
|
3722
|
+
),
|
|
3723
|
+
paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
3724
|
+
}).pipe(T.ResponsePath("result")),
|
|
3778
3725
|
) as unknown as Schema.Codec<DeleteUaRuleResponse>;
|
|
3779
3726
|
|
|
3780
3727
|
export type DeleteUaRuleError = DefaultErrors | UaRuleNotFound | Forbidden;
|
|
@@ -3784,7 +3731,7 @@ export const deleteUaRule: API.OperationMethod<
|
|
|
3784
3731
|
DeleteUaRuleResponse,
|
|
3785
3732
|
DeleteUaRuleError,
|
|
3786
3733
|
Credentials | HttpClient.HttpClient
|
|
3787
|
-
> = /*@__PURE__*/
|
|
3734
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3788
3735
|
input: DeleteUaRuleRequest,
|
|
3789
3736
|
output: DeleteUaRuleResponse,
|
|
3790
3737
|
errors: [UaRuleNotFound, Forbidden],
|
|
@@ -3800,17 +3747,16 @@ export interface GetWafOverrideRequest {
|
|
|
3800
3747
|
zoneId: string;
|
|
3801
3748
|
}
|
|
3802
3749
|
|
|
3803
|
-
export const GetWafOverrideRequest = /*@__PURE__*/
|
|
3804
|
-
(
|
|
3805
|
-
Schema.
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
),
|
|
3750
|
+
export const GetWafOverrideRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
3751
|
+
Schema.Struct({
|
|
3752
|
+
overridesId: Schema.String.pipe(T.HttpPath("overridesId")),
|
|
3753
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
3754
|
+
}).pipe(
|
|
3755
|
+
T.Http({
|
|
3756
|
+
method: "GET",
|
|
3757
|
+
path: "/zones/{zone_id}/firewall/waf/overrides/{overridesId}",
|
|
3758
|
+
}),
|
|
3759
|
+
),
|
|
3814
3760
|
) as unknown as Schema.Codec<GetWafOverrideRequest>;
|
|
3815
3761
|
|
|
3816
3762
|
export interface GetWafOverrideResponse {
|
|
@@ -3874,7 +3820,7 @@ export interface GetWafOverrideResponse {
|
|
|
3874
3820
|
}
|
|
3875
3821
|
|
|
3876
3822
|
export const GetWafOverrideResponse =
|
|
3877
|
-
/*@__PURE__*/
|
|
3823
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
3878
3824
|
Schema.Struct({
|
|
3879
3825
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3880
3826
|
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -3921,7 +3867,7 @@ export const getWafOverride: API.OperationMethod<
|
|
|
3921
3867
|
GetWafOverrideResponse,
|
|
3922
3868
|
GetWafOverrideError,
|
|
3923
3869
|
Credentials | HttpClient.HttpClient
|
|
3924
|
-
> = /*@__PURE__*/
|
|
3870
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3925
3871
|
input: GetWafOverrideRequest,
|
|
3926
3872
|
output: GetWafOverrideResponse,
|
|
3927
3873
|
errors: [],
|
|
@@ -3935,7 +3881,7 @@ export interface ListWafOverridesRequest {
|
|
|
3935
3881
|
}
|
|
3936
3882
|
|
|
3937
3883
|
export const ListWafOverridesRequest =
|
|
3938
|
-
/*@__PURE__*/
|
|
3884
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
3939
3885
|
Schema.Struct({
|
|
3940
3886
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
3941
3887
|
page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
|
|
@@ -4009,7 +3955,7 @@ export interface ListWafOverridesResponse {
|
|
|
4009
3955
|
}
|
|
4010
3956
|
|
|
4011
3957
|
export const ListWafOverridesResponse =
|
|
4012
|
-
/*@__PURE__*/
|
|
3958
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
4013
3959
|
Schema.Struct({
|
|
4014
3960
|
result: Schema.Array(ListWafOverridesResponseResult),
|
|
4015
3961
|
resultInfo: Schema.optional(
|
|
@@ -4025,7 +3971,7 @@ export const listWafOverrides: API.PaginatedOperationMethod<
|
|
|
4025
3971
|
ListWafOverridesResponse,
|
|
4026
3972
|
ListWafOverridesError,
|
|
4027
3973
|
Credentials | HttpClient.HttpClient
|
|
4028
|
-
> = /*@__PURE__*/
|
|
3974
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
4029
3975
|
input: ListWafOverridesRequest,
|
|
4030
3976
|
output: ListWafOverridesResponse,
|
|
4031
3977
|
errors: [],
|
|
@@ -4046,7 +3992,7 @@ export interface CreateWafOverrideRequest {
|
|
|
4046
3992
|
}
|
|
4047
3993
|
|
|
4048
3994
|
export const CreateWafOverrideRequest =
|
|
4049
|
-
/*@__PURE__*/
|
|
3995
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
4050
3996
|
Schema.Struct({
|
|
4051
3997
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
4052
3998
|
urls: Schema.Array(Schema.String),
|
|
@@ -4119,7 +4065,7 @@ export interface CreateWafOverrideResponse {
|
|
|
4119
4065
|
}
|
|
4120
4066
|
|
|
4121
4067
|
export const CreateWafOverrideResponse =
|
|
4122
|
-
/*@__PURE__*/
|
|
4068
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
4123
4069
|
Schema.Struct({
|
|
4124
4070
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4125
4071
|
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -4166,7 +4112,7 @@ export const createWafOverride: API.OperationMethod<
|
|
|
4166
4112
|
CreateWafOverrideResponse,
|
|
4167
4113
|
CreateWafOverrideError,
|
|
4168
4114
|
Credentials | HttpClient.HttpClient
|
|
4169
|
-
> = /*@__PURE__*/
|
|
4115
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4170
4116
|
input: CreateWafOverrideRequest,
|
|
4171
4117
|
output: CreateWafOverrideResponse,
|
|
4172
4118
|
errors: [],
|
|
@@ -4223,7 +4169,7 @@ export interface UpdateWafOverrideRequest {
|
|
|
4223
4169
|
}
|
|
4224
4170
|
|
|
4225
4171
|
export const UpdateWafOverrideRequest =
|
|
4226
|
-
/*@__PURE__*/
|
|
4172
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
4227
4173
|
Schema.Struct({
|
|
4228
4174
|
overridesId: Schema.String.pipe(T.HttpPath("overridesId")),
|
|
4229
4175
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
@@ -4306,7 +4252,7 @@ export interface UpdateWafOverrideResponse {
|
|
|
4306
4252
|
}
|
|
4307
4253
|
|
|
4308
4254
|
export const UpdateWafOverrideResponse =
|
|
4309
|
-
/*@__PURE__*/
|
|
4255
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
4310
4256
|
Schema.Struct({
|
|
4311
4257
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4312
4258
|
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -4353,7 +4299,7 @@ export const updateWafOverride: API.OperationMethod<
|
|
|
4353
4299
|
UpdateWafOverrideResponse,
|
|
4354
4300
|
UpdateWafOverrideError,
|
|
4355
4301
|
Credentials | HttpClient.HttpClient
|
|
4356
|
-
> = /*@__PURE__*/
|
|
4302
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4357
4303
|
input: UpdateWafOverrideRequest,
|
|
4358
4304
|
output: UpdateWafOverrideResponse,
|
|
4359
4305
|
errors: [],
|
|
@@ -4366,7 +4312,7 @@ export interface DeleteWafOverrideRequest {
|
|
|
4366
4312
|
}
|
|
4367
4313
|
|
|
4368
4314
|
export const DeleteWafOverrideRequest =
|
|
4369
|
-
/*@__PURE__*/
|
|
4315
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
4370
4316
|
Schema.Struct({
|
|
4371
4317
|
overridesId: Schema.String.pipe(T.HttpPath("overridesId")),
|
|
4372
4318
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
@@ -4384,7 +4330,7 @@ export interface DeleteWafOverrideResponse {
|
|
|
4384
4330
|
}
|
|
4385
4331
|
|
|
4386
4332
|
export const DeleteWafOverrideResponse =
|
|
4387
|
-
/*@__PURE__*/
|
|
4333
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
4388
4334
|
Schema.Struct({
|
|
4389
4335
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4390
4336
|
}).pipe(T.ResponsePath("result")),
|
|
@@ -4397,7 +4343,7 @@ export const deleteWafOverride: API.OperationMethod<
|
|
|
4397
4343
|
DeleteWafOverrideResponse,
|
|
4398
4344
|
DeleteWafOverrideError,
|
|
4399
4345
|
Credentials | HttpClient.HttpClient
|
|
4400
|
-
> = /*@__PURE__*/
|
|
4346
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4401
4347
|
input: DeleteWafOverrideRequest,
|
|
4402
4348
|
output: DeleteWafOverrideResponse,
|
|
4403
4349
|
errors: [],
|
|
@@ -4413,17 +4359,16 @@ export interface GetWafPackageRequest {
|
|
|
4413
4359
|
zoneId: string;
|
|
4414
4360
|
}
|
|
4415
4361
|
|
|
4416
|
-
export const GetWafPackageRequest = /*@__PURE__*/
|
|
4417
|
-
(
|
|
4418
|
-
Schema.
|
|
4419
|
-
|
|
4420
|
-
|
|
4421
|
-
|
|
4422
|
-
|
|
4423
|
-
|
|
4424
|
-
|
|
4425
|
-
|
|
4426
|
-
),
|
|
4362
|
+
export const GetWafPackageRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
4363
|
+
Schema.Struct({
|
|
4364
|
+
packageId: Schema.String.pipe(T.HttpPath("packageId")),
|
|
4365
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
4366
|
+
}).pipe(
|
|
4367
|
+
T.Http({
|
|
4368
|
+
method: "GET",
|
|
4369
|
+
path: "/zones/{zone_id}/firewall/waf/packages/{packageId}",
|
|
4370
|
+
}),
|
|
4371
|
+
),
|
|
4427
4372
|
) as unknown as Schema.Codec<GetWafPackageRequest>;
|
|
4428
4373
|
|
|
4429
4374
|
export type GetWafPackageResponse =
|
|
@@ -4445,8 +4390,8 @@ export type GetWafPackageResponse =
|
|
|
4445
4390
|
}
|
|
4446
4391
|
| { result?: unknown | null };
|
|
4447
4392
|
|
|
4448
|
-
export const GetWafPackageResponse = /*@__PURE__*/
|
|
4449
|
-
|
|
4393
|
+
export const GetWafPackageResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
4394
|
+
Schema.Union([FirewallAPIResponseSingle, Result]),
|
|
4450
4395
|
) as unknown as Schema.Codec<GetWafPackageResponse>;
|
|
4451
4396
|
|
|
4452
4397
|
export type GetWafPackageError = DefaultErrors;
|
|
@@ -4456,7 +4401,7 @@ export const getWafPackage: API.OperationMethod<
|
|
|
4456
4401
|
GetWafPackageResponse,
|
|
4457
4402
|
GetWafPackageError,
|
|
4458
4403
|
Credentials | HttpClient.HttpClient
|
|
4459
|
-
> = /*@__PURE__*/
|
|
4404
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4460
4405
|
input: GetWafPackageRequest,
|
|
4461
4406
|
output: GetWafPackageResponse,
|
|
4462
4407
|
errors: [],
|
|
@@ -4478,7 +4423,7 @@ export interface ListWafPackagesRequest {
|
|
|
4478
4423
|
}
|
|
4479
4424
|
|
|
4480
4425
|
export const ListWafPackagesRequest =
|
|
4481
|
-
/*@__PURE__*/
|
|
4426
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
4482
4427
|
Schema.Struct({
|
|
4483
4428
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
4484
4429
|
page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
|
|
@@ -4507,7 +4452,7 @@ export interface ListWafPackagesResponse {
|
|
|
4507
4452
|
}
|
|
4508
4453
|
|
|
4509
4454
|
export const ListWafPackagesResponse =
|
|
4510
|
-
/*@__PURE__*/
|
|
4455
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
4511
4456
|
Schema.Struct({
|
|
4512
4457
|
result: Schema.Array(Schema.Unknown),
|
|
4513
4458
|
resultInfo: Schema.optional(
|
|
@@ -4523,7 +4468,7 @@ export const listWafPackages: API.PaginatedOperationMethod<
|
|
|
4523
4468
|
ListWafPackagesResponse,
|
|
4524
4469
|
ListWafPackagesError,
|
|
4525
4470
|
Credentials | HttpClient.HttpClient
|
|
4526
|
-
> = /*@__PURE__*/
|
|
4471
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
4527
4472
|
input: ListWafPackagesRequest,
|
|
4528
4473
|
output: ListWafPackagesResponse,
|
|
4529
4474
|
errors: [],
|
|
@@ -4548,7 +4493,7 @@ export interface GetWafPackageGroupRequest {
|
|
|
4548
4493
|
}
|
|
4549
4494
|
|
|
4550
4495
|
export const GetWafPackageGroupRequest =
|
|
4551
|
-
/*@__PURE__*/
|
|
4496
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
4552
4497
|
Schema.Struct({
|
|
4553
4498
|
packageId: Schema.String.pipe(T.HttpPath("packageId")),
|
|
4554
4499
|
groupId: Schema.String.pipe(T.HttpPath("groupId")),
|
|
@@ -4564,7 +4509,7 @@ export const GetWafPackageGroupRequest =
|
|
|
4564
4509
|
export type GetWafPackageGroupResponse = unknown;
|
|
4565
4510
|
|
|
4566
4511
|
export const GetWafPackageGroupResponse =
|
|
4567
|
-
/*@__PURE__*/
|
|
4512
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
4568
4513
|
Schema.Unknown.pipe(T.ResponsePath("result")),
|
|
4569
4514
|
) as unknown as Schema.Codec<GetWafPackageGroupResponse>;
|
|
4570
4515
|
|
|
@@ -4575,7 +4520,7 @@ export const getWafPackageGroup: API.OperationMethod<
|
|
|
4575
4520
|
GetWafPackageGroupResponse,
|
|
4576
4521
|
GetWafPackageGroupError,
|
|
4577
4522
|
Credentials | HttpClient.HttpClient
|
|
4578
|
-
> = /*@__PURE__*/
|
|
4523
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4579
4524
|
input: GetWafPackageGroupRequest,
|
|
4580
4525
|
output: GetWafPackageGroupResponse,
|
|
4581
4526
|
errors: [],
|
|
@@ -4602,7 +4547,7 @@ export interface ListWafPackageGroupsRequest {
|
|
|
4602
4547
|
}
|
|
4603
4548
|
|
|
4604
4549
|
export const ListWafPackageGroupsRequest =
|
|
4605
|
-
/*@__PURE__*/
|
|
4550
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
4606
4551
|
Schema.Struct({
|
|
4607
4552
|
packageId: Schema.String.pipe(T.HttpPath("packageId")),
|
|
4608
4553
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
@@ -4652,7 +4597,7 @@ export interface ListWafPackageGroupsResponse {
|
|
|
4652
4597
|
}
|
|
4653
4598
|
|
|
4654
4599
|
export const ListWafPackageGroupsResponse =
|
|
4655
|
-
/*@__PURE__*/
|
|
4600
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
4656
4601
|
Schema.Struct({
|
|
4657
4602
|
result: Schema.Array(ListWafPackageGroupsResponseResult),
|
|
4658
4603
|
resultInfo: Schema.optional(
|
|
@@ -4668,7 +4613,7 @@ export const listWafPackageGroups: API.PaginatedOperationMethod<
|
|
|
4668
4613
|
ListWafPackageGroupsResponse,
|
|
4669
4614
|
ListWafPackageGroupsError,
|
|
4670
4615
|
Credentials | HttpClient.HttpClient
|
|
4671
|
-
> = /*@__PURE__*/
|
|
4616
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
4672
4617
|
input: ListWafPackageGroupsRequest,
|
|
4673
4618
|
output: ListWafPackageGroupsResponse,
|
|
4674
4619
|
errors: [],
|
|
@@ -4691,7 +4636,7 @@ export interface PatchWafPackageGroupRequest {
|
|
|
4691
4636
|
}
|
|
4692
4637
|
|
|
4693
4638
|
export const PatchWafPackageGroupRequest =
|
|
4694
|
-
/*@__PURE__*/
|
|
4639
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
4695
4640
|
Schema.Struct({
|
|
4696
4641
|
packageId: Schema.String.pipe(T.HttpPath("packageId")),
|
|
4697
4642
|
groupId: Schema.String.pipe(T.HttpPath("groupId")),
|
|
@@ -4710,7 +4655,7 @@ export const PatchWafPackageGroupRequest =
|
|
|
4710
4655
|
export type PatchWafPackageGroupResponse = unknown;
|
|
4711
4656
|
|
|
4712
4657
|
export const PatchWafPackageGroupResponse =
|
|
4713
|
-
/*@__PURE__*/
|
|
4658
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
4714
4659
|
Schema.Unknown.pipe(T.ResponsePath("result")),
|
|
4715
4660
|
) as unknown as Schema.Codec<PatchWafPackageGroupResponse>;
|
|
4716
4661
|
|
|
@@ -4721,7 +4666,7 @@ export const patchWafPackageGroup: API.OperationMethod<
|
|
|
4721
4666
|
PatchWafPackageGroupResponse,
|
|
4722
4667
|
PatchWafPackageGroupError,
|
|
4723
4668
|
Credentials | HttpClient.HttpClient
|
|
4724
|
-
> = /*@__PURE__*/
|
|
4669
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4725
4670
|
input: PatchWafPackageGroupRequest,
|
|
4726
4671
|
output: PatchWafPackageGroupResponse,
|
|
4727
4672
|
errors: [],
|
|
@@ -4739,7 +4684,7 @@ export interface GetWafPackageRuleRequest {
|
|
|
4739
4684
|
}
|
|
4740
4685
|
|
|
4741
4686
|
export const GetWafPackageRuleRequest =
|
|
4742
|
-
/*@__PURE__*/
|
|
4687
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
4743
4688
|
Schema.Struct({
|
|
4744
4689
|
packageId: Schema.String.pipe(T.HttpPath("packageId")),
|
|
4745
4690
|
ruleId: Schema.String.pipe(T.HttpPath("ruleId")),
|
|
@@ -4755,7 +4700,7 @@ export const GetWafPackageRuleRequest =
|
|
|
4755
4700
|
export type GetWafPackageRuleResponse = unknown;
|
|
4756
4701
|
|
|
4757
4702
|
export const GetWafPackageRuleResponse =
|
|
4758
|
-
/*@__PURE__*/
|
|
4703
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
4759
4704
|
Schema.Unknown.pipe(T.ResponsePath("result")),
|
|
4760
4705
|
) as unknown as Schema.Codec<GetWafPackageRuleResponse>;
|
|
4761
4706
|
|
|
@@ -4766,7 +4711,7 @@ export const getWafPackageRule: API.OperationMethod<
|
|
|
4766
4711
|
GetWafPackageRuleResponse,
|
|
4767
4712
|
GetWafPackageRuleError,
|
|
4768
4713
|
Credentials | HttpClient.HttpClient
|
|
4769
|
-
> = /*@__PURE__*/
|
|
4714
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4770
4715
|
input: GetWafPackageRuleRequest,
|
|
4771
4716
|
output: GetWafPackageRuleResponse,
|
|
4772
4717
|
errors: [],
|
|
@@ -4795,7 +4740,7 @@ export interface ListWafPackageRulesRequest {
|
|
|
4795
4740
|
}
|
|
4796
4741
|
|
|
4797
4742
|
export const ListWafPackageRulesRequest =
|
|
4798
|
-
/*@__PURE__*/
|
|
4743
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
4799
4744
|
Schema.Struct({
|
|
4800
4745
|
packageId: Schema.String.pipe(T.HttpPath("packageId")),
|
|
4801
4746
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
@@ -4881,7 +4826,7 @@ export interface ListWafPackageRulesResponse {
|
|
|
4881
4826
|
}
|
|
4882
4827
|
|
|
4883
4828
|
export const ListWafPackageRulesResponse =
|
|
4884
|
-
/*@__PURE__*/
|
|
4829
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
4885
4830
|
Schema.Struct({
|
|
4886
4831
|
result: Schema.Array(
|
|
4887
4832
|
Schema.Union([
|
|
@@ -4902,7 +4847,7 @@ export const listWafPackageRules: API.PaginatedOperationMethod<
|
|
|
4902
4847
|
ListWafPackageRulesResponse,
|
|
4903
4848
|
ListWafPackageRulesError,
|
|
4904
4849
|
Credentials | HttpClient.HttpClient
|
|
4905
|
-
> = /*@__PURE__*/
|
|
4850
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
4906
4851
|
input: ListWafPackageRulesRequest,
|
|
4907
4852
|
output: ListWafPackageRulesResponse,
|
|
4908
4853
|
errors: [],
|
|
@@ -4933,7 +4878,7 @@ export interface PatchWafPackageRuleRequest {
|
|
|
4933
4878
|
}
|
|
4934
4879
|
|
|
4935
4880
|
export const PatchWafPackageRuleRequest =
|
|
4936
|
-
/*@__PURE__*/
|
|
4881
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
4937
4882
|
Schema.Struct({
|
|
4938
4883
|
packageId: Schema.String.pipe(T.HttpPath("packageId")),
|
|
4939
4884
|
ruleId: Schema.String.pipe(T.HttpPath("ruleId")),
|
|
@@ -5000,7 +4945,7 @@ export type PatchWafPackageRuleResponse =
|
|
|
5000
4945
|
};
|
|
5001
4946
|
|
|
5002
4947
|
export const PatchWafPackageRuleResponse =
|
|
5003
|
-
/*@__PURE__*/
|
|
4948
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
5004
4949
|
Schema.Union([
|
|
5005
4950
|
WafmanagedRulesTraditionalDenyRule,
|
|
5006
4951
|
WafmanagedRulesAnomalyRule,
|
|
@@ -5014,7 +4959,7 @@ export const patchWafPackageRule: API.OperationMethod<
|
|
|
5014
4959
|
PatchWafPackageRuleResponse,
|
|
5015
4960
|
PatchWafPackageRuleError,
|
|
5016
4961
|
Credentials | HttpClient.HttpClient
|
|
5017
|
-
> = /*@__PURE__*/
|
|
4962
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
5018
4963
|
input: PatchWafPackageRuleRequest,
|
|
5019
4964
|
output: PatchWafPackageRuleResponse,
|
|
5020
4965
|
errors: [],
|