@distilled.cloud/cloudflare 0.2.6 → 0.4.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/README.md +12 -2
- package/lib/auth.d.ts +3 -2
- package/lib/auth.d.ts.map +1 -1
- package/lib/auth.js +4 -3
- package/lib/auth.js.map +1 -1
- package/lib/client/api.d.ts +7 -9
- package/lib/client/api.d.ts.map +1 -1
- package/lib/client/api.js +60 -13
- package/lib/client/api.js.map +1 -1
- package/lib/credentials.d.ts +58 -4
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +126 -7
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts +12 -1
- package/lib/errors.d.ts.map +1 -1
- package/lib/sensitive.d.ts +5 -0
- package/lib/sensitive.d.ts.map +1 -0
- package/lib/sensitive.js +5 -0
- package/lib/sensitive.js.map +1 -0
- package/lib/services/abuse-reports.d.ts +116 -44
- package/lib/services/abuse-reports.d.ts.map +1 -1
- package/lib/services/abuse-reports.js +171 -110
- package/lib/services/abuse-reports.js.map +1 -1
- package/lib/services/accounts.d.ts +146 -62
- package/lib/services/accounts.d.ts.map +1 -1
- package/lib/services/accounts.js +208 -153
- package/lib/services/accounts.js.map +1 -1
- package/lib/services/acm.d.ts.map +1 -1
- package/lib/services/acm.js +8 -4
- package/lib/services/acm.js.map +1 -1
- package/lib/services/addressing.d.ts +200 -87
- package/lib/services/addressing.d.ts.map +1 -1
- package/lib/services/addressing.js +288 -201
- package/lib/services/addressing.js.map +1 -1
- package/lib/services/ai-gateway.d.ts +302 -121
- package/lib/services/ai-gateway.d.ts.map +1 -1
- package/lib/services/ai-gateway.js +407 -283
- package/lib/services/ai-gateway.js.map +1 -1
- package/lib/services/ai.d.ts +83 -29
- package/lib/services/ai.d.ts.map +1 -1
- package/lib/services/ai.js +95 -42
- package/lib/services/ai.js.map +1 -1
- package/lib/services/aisearch.d.ts +266 -112
- package/lib/services/aisearch.d.ts.map +1 -1
- package/lib/services/aisearch.js +510 -393
- package/lib/services/aisearch.js.map +1 -1
- package/lib/services/alerting.d.ts +249 -112
- package/lib/services/alerting.d.ts.map +1 -1
- package/lib/services/alerting.js +382 -325
- package/lib/services/alerting.js.map +1 -1
- package/lib/services/api-gateway.d.ts +458 -200
- package/lib/services/api-gateway.d.ts.map +1 -1
- package/lib/services/api-gateway.js +725 -618
- package/lib/services/api-gateway.js.map +1 -1
- package/lib/services/argo.d.ts.map +1 -1
- package/lib/services/argo.js +16 -8
- package/lib/services/argo.js.map +1 -1
- package/lib/services/billing.d.ts.map +1 -1
- package/lib/services/billing.js +4 -2
- package/lib/services/billing.js.map +1 -1
- package/lib/services/bot-management.d.ts.map +1 -1
- package/lib/services/bot-management.js +2 -2
- 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 +10 -6
- package/lib/services/botnet-feed.js.map +1 -1
- package/lib/services/brand-protection.d.ts +8 -2
- package/lib/services/brand-protection.d.ts.map +1 -1
- package/lib/services/brand-protection.js +9 -2
- 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 +15 -14
- package/lib/services/browser-rendering.js.map +1 -1
- package/lib/services/cache.d.ts.map +1 -1
- package/lib/services/cache.js +49 -25
- package/lib/services/cache.js.map +1 -1
- package/lib/services/calls.d.ts +35 -14
- package/lib/services/calls.d.ts.map +1 -1
- package/lib/services/calls.js +35 -22
- package/lib/services/calls.js.map +1 -1
- package/lib/services/certificate-authorities.d.ts.map +1 -1
- package/lib/services/certificate-authorities.js +2 -2
- package/lib/services/certificate-authorities.js.map +1 -1
- package/lib/services/client-certificates.d.ts +57 -23
- package/lib/services/client-certificates.d.ts.map +1 -1
- package/lib/services/client-certificates.js +91 -62
- package/lib/services/client-certificates.js.map +1 -1
- package/lib/services/cloud-connector.d.ts +51 -22
- package/lib/services/cloud-connector.d.ts.map +1 -1
- package/lib/services/cloud-connector.js +57 -44
- package/lib/services/cloud-connector.js.map +1 -1
- package/lib/services/cloudforce-one.d.ts +119 -50
- package/lib/services/cloudforce-one.d.ts.map +1 -1
- package/lib/services/cloudforce-one.js +181 -124
- package/lib/services/cloudforce-one.js.map +1 -1
- package/lib/services/connectivity.d.ts +74 -31
- package/lib/services/connectivity.d.ts.map +1 -1
- package/lib/services/connectivity.js +84 -57
- package/lib/services/connectivity.js.map +1 -1
- package/lib/services/content-scanning.d.ts +40 -15
- package/lib/services/content-scanning.d.ts.map +1 -1
- package/lib/services/content-scanning.js +40 -21
- package/lib/services/content-scanning.js.map +1 -1
- package/lib/services/custom-certificates.d.ts +48 -19
- package/lib/services/custom-certificates.d.ts.map +1 -1
- package/lib/services/custom-certificates.js +80 -53
- package/lib/services/custom-certificates.js.map +1 -1
- package/lib/services/custom-hostnames.d.ts +116 -51
- package/lib/services/custom-hostnames.d.ts.map +1 -1
- package/lib/services/custom-hostnames.js +210 -170
- package/lib/services/custom-hostnames.js.map +1 -1
- package/lib/services/custom-nameservers.d.ts +32 -12
- package/lib/services/custom-nameservers.d.ts.map +1 -1
- package/lib/services/custom-nameservers.js +36 -21
- package/lib/services/custom-nameservers.js.map +1 -1
- package/lib/services/custom-pages.d.ts +26 -11
- package/lib/services/custom-pages.d.ts.map +1 -1
- package/lib/services/custom-pages.js +39 -24
- package/lib/services/custom-pages.js.map +1 -1
- package/lib/services/d1.d.ts +114 -48
- package/lib/services/d1.d.ts.map +1 -1
- package/lib/services/d1.js +150 -111
- package/lib/services/d1.js.map +1 -1
- package/lib/services/dcv-delegation.d.ts.map +1 -1
- package/lib/services/dcv-delegation.js +1 -1
- package/lib/services/dcv-delegation.js.map +1 -1
- package/lib/services/diagnostics.d.ts +59 -26
- package/lib/services/diagnostics.d.ts.map +1 -1
- package/lib/services/diagnostics.js +97 -82
- package/lib/services/diagnostics.js.map +1 -1
- package/lib/services/dns-firewall.d.ts +48 -19
- package/lib/services/dns-firewall.d.ts.map +1 -1
- package/lib/services/dns-firewall.js +75 -48
- package/lib/services/dns-firewall.js.map +1 -1
- package/lib/services/dns.d.ts +206 -87
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +335 -219
- package/lib/services/dns.js.map +1 -1
- package/lib/services/durable-objects.d.ts +44 -13
- package/lib/services/durable-objects.d.ts.map +1 -1
- package/lib/services/durable-objects.js +56 -19
- package/lib/services/durable-objects.js.map +1 -1
- package/lib/services/email-routing.d.ts +90 -34
- package/lib/services/email-routing.d.ts.map +1 -1
- package/lib/services/email-routing.js +133 -80
- package/lib/services/email-routing.js.map +1 -1
- package/lib/services/email-security.d.ts +439 -181
- package/lib/services/email-security.d.ts.map +1 -1
- package/lib/services/email-security.js +753 -557
- package/lib/services/email-security.js.map +1 -1
- package/lib/services/filters.d.ts +64 -24
- package/lib/services/filters.d.ts.map +1 -1
- package/lib/services/filters.js +61 -28
- package/lib/services/filters.js.map +1 -1
- package/lib/services/firewall.d.ts +455 -183
- package/lib/services/firewall.d.ts.map +1 -1
- package/lib/services/firewall.js +777 -574
- package/lib/services/firewall.js.map +1 -1
- package/lib/services/healthchecks.d.ts +76 -33
- package/lib/services/healthchecks.d.ts.map +1 -1
- package/lib/services/healthchecks.js +129 -100
- package/lib/services/healthchecks.js.map +1 -1
- package/lib/services/hostnames.d.ts +20 -8
- package/lib/services/hostnames.d.ts.map +1 -1
- package/lib/services/hostnames.js +32 -21
- package/lib/services/hostnames.js.map +1 -1
- package/lib/services/hyperdrive.d.ts.map +1 -1
- package/lib/services/hyperdrive.js +10 -9
- package/lib/services/hyperdrive.js.map +1 -1
- package/lib/services/iam.d.ts +162 -59
- package/lib/services/iam.d.ts.map +1 -1
- package/lib/services/iam.js +219 -119
- package/lib/services/iam.js.map +1 -1
- package/lib/services/images.d.ts +36 -12
- package/lib/services/images.d.ts.map +1 -1
- package/lib/services/images.js +59 -32
- package/lib/services/images.js.map +1 -1
- package/lib/services/intel.d.ts +159 -62
- package/lib/services/intel.d.ts.map +1 -1
- package/lib/services/intel.js +238 -151
- package/lib/services/intel.js.map +1 -1
- package/lib/services/ips.d.ts.map +1 -1
- package/lib/services/ips.js +1 -1
- package/lib/services/ips.js.map +1 -1
- package/lib/services/keyless-certificates.d.ts +36 -16
- package/lib/services/keyless-certificates.d.ts.map +1 -1
- package/lib/services/keyless-certificates.js +50 -37
- package/lib/services/keyless-certificates.js.map +1 -1
- package/lib/services/kv.d.ts +42 -12
- package/lib/services/kv.d.ts.map +1 -1
- package/lib/services/kv.js +87 -36
- package/lib/services/kv.js.map +1 -1
- package/lib/services/leaked-credential-checks.d.ts +16 -6
- package/lib/services/leaked-credential-checks.d.ts.map +1 -1
- package/lib/services/leaked-credential-checks.js +20 -12
- package/lib/services/leaked-credential-checks.js.map +1 -1
- package/lib/services/load-balancers.d.ts +373 -167
- package/lib/services/load-balancers.d.ts.map +1 -1
- package/lib/services/load-balancers.js +603 -490
- package/lib/services/load-balancers.js.map +1 -1
- package/lib/services/logpush.d.ts.map +1 -1
- package/lib/services/logpush.js +23 -15
- package/lib/services/logpush.js.map +1 -1
- package/lib/services/logs.d.ts.map +1 -1
- package/lib/services/logs.js +11 -7
- package/lib/services/logs.js.map +1 -1
- package/lib/services/magic-cloud-networking.d.ts +542 -249
- package/lib/services/magic-cloud-networking.d.ts.map +1 -1
- package/lib/services/magic-cloud-networking.js +890 -804
- 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 +44 -22
- package/lib/services/magic-network-monitoring.js.map +1 -1
- package/lib/services/magic-transit.d.ts +432 -196
- package/lib/services/magic-transit.d.ts.map +1 -1
- package/lib/services/magic-transit.js +730 -566
- package/lib/services/magic-transit.js.map +1 -1
- package/lib/services/managed-transforms.d.ts.map +1 -1
- package/lib/services/managed-transforms.js +8 -4
- package/lib/services/managed-transforms.js.map +1 -1
- package/lib/services/memberships.d.ts +54 -22
- package/lib/services/memberships.d.ts.map +1 -1
- package/lib/services/memberships.js +79 -53
- package/lib/services/memberships.js.map +1 -1
- package/lib/services/mtls-certificates.d.ts +41 -17
- package/lib/services/mtls-certificates.d.ts.map +1 -1
- package/lib/services/mtls-certificates.js +52 -33
- package/lib/services/mtls-certificates.js.map +1 -1
- package/lib/services/organizations.d.ts +56 -25
- package/lib/services/organizations.d.ts.map +1 -1
- package/lib/services/organizations.js +74 -59
- package/lib/services/organizations.js.map +1 -1
- package/lib/services/origin-ca-certificates.d.ts +30 -10
- package/lib/services/origin-ca-certificates.d.ts.map +1 -1
- package/lib/services/origin-ca-certificates.js +62 -35
- package/lib/services/origin-ca-certificates.js.map +1 -1
- package/lib/services/origin-post-quantum-encryption.d.ts.map +1 -1
- package/lib/services/origin-post-quantum-encryption.js +8 -4
- package/lib/services/origin-post-quantum-encryption.js.map +1 -1
- package/lib/services/origin-tls-client-auth.d.ts +60 -25
- package/lib/services/origin-tls-client-auth.d.ts.map +1 -1
- package/lib/services/origin-tls-client-auth.js +94 -60
- package/lib/services/origin-tls-client-auth.js.map +1 -1
- package/lib/services/page-rules.d.ts.map +1 -1
- package/lib/services/page-rules.js +18 -10
- package/lib/services/page-rules.js.map +1 -1
- package/lib/services/page-shield.d.ts +145 -66
- package/lib/services/page-shield.d.ts.map +1 -1
- package/lib/services/page-shield.js +166 -130
- package/lib/services/page-shield.js.map +1 -1
- package/lib/services/pages.d.ts +520 -225
- package/lib/services/pages.d.ts.map +1 -1
- package/lib/services/pages.js +643 -567
- package/lib/services/pages.js.map +1 -1
- package/lib/services/pipelines.d.ts +461 -206
- package/lib/services/pipelines.d.ts.map +1 -1
- package/lib/services/pipelines.js +859 -780
- package/lib/services/pipelines.js.map +1 -1
- package/lib/services/queues.d.ts +177 -80
- package/lib/services/queues.d.ts.map +1 -1
- package/lib/services/queues.js +233 -177
- 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 +30 -16
- package/lib/services/r2-data-catalog.js.map +1 -1
- package/lib/services/r2.d.ts +85 -39
- package/lib/services/r2.d.ts.map +1 -1
- package/lib/services/r2.js +146 -126
- package/lib/services/r2.js.map +1 -1
- package/lib/services/radar.d.ts +152 -63
- package/lib/services/radar.d.ts.map +1 -1
- package/lib/services/radar.js +421 -360
- package/lib/services/radar.js.map +1 -1
- package/lib/services/rate-limits.d.ts +76 -31
- package/lib/services/rate-limits.d.ts.map +1 -1
- package/lib/services/rate-limits.js +106 -82
- 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 +34 -33
- package/lib/services/realtime-kit.js.map +1 -1
- package/lib/services/registrar.d.ts +75 -35
- package/lib/services/registrar.d.ts.map +1 -1
- package/lib/services/registrar.js +116 -103
- package/lib/services/registrar.js.map +1 -1
- package/lib/services/request-tracers.d.ts.map +1 -1
- package/lib/services/request-tracers.js +5 -2
- package/lib/services/request-tracers.js.map +1 -1
- package/lib/services/resource-sharing.d.ts +132 -50
- package/lib/services/resource-sharing.d.ts.map +1 -1
- package/lib/services/resource-sharing.js +232 -149
- package/lib/services/resource-sharing.js.map +1 -1
- package/lib/services/rules.d.ts +86 -37
- package/lib/services/rules.d.ts.map +1 -1
- package/lib/services/rules.js +122 -87
- package/lib/services/rules.js.map +1 -1
- package/lib/services/rulesets.d.ts +75 -30
- package/lib/services/rulesets.d.ts.map +1 -1
- package/lib/services/rulesets.js +274 -222
- package/lib/services/rulesets.js.map +1 -1
- package/lib/services/rum.d.ts +40 -15
- package/lib/services/rum.d.ts.map +1 -1
- package/lib/services/rum.js +78 -45
- package/lib/services/rum.js.map +1 -1
- package/lib/services/schema-validation.d.ts +47 -14
- package/lib/services/schema-validation.d.ts.map +1 -1
- package/lib/services/schema-validation.js +102 -43
- package/lib/services/schema-validation.js.map +1 -1
- package/lib/services/secrets-store.d.ts +116 -44
- package/lib/services/secrets-store.d.ts.map +1 -1
- package/lib/services/secrets-store.js +145 -78
- package/lib/services/secrets-store.js.map +1 -1
- package/lib/services/security-center.d.ts +56 -22
- package/lib/services/security-center.d.ts.map +1 -1
- package/lib/services/security-center.js +90 -64
- 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 +1 -1
- package/lib/services/security-txt.js.map +1 -1
- package/lib/services/snippets.d.ts +85 -33
- package/lib/services/snippets.d.ts.map +1 -1
- package/lib/services/snippets.js +106 -63
- package/lib/services/snippets.js.map +1 -1
- package/lib/services/spectrum.d.ts +58 -24
- package/lib/services/spectrum.d.ts.map +1 -1
- package/lib/services/spectrum.js +90 -65
- package/lib/services/spectrum.js.map +1 -1
- package/lib/services/speed.d.ts +47 -17
- package/lib/services/speed.d.ts.map +1 -1
- package/lib/services/speed.js +51 -24
- package/lib/services/speed.js.map +1 -1
- package/lib/services/ssl.d.ts +77 -35
- package/lib/services/ssl.d.ts.map +1 -1
- package/lib/services/ssl.js +146 -123
- package/lib/services/ssl.js.map +1 -1
- package/lib/services/stream.d.ts +173 -77
- package/lib/services/stream.d.ts.map +1 -1
- package/lib/services/stream.js +167 -131
- package/lib/services/stream.js.map +1 -1
- package/lib/services/token-validation.d.ts +203 -88
- package/lib/services/token-validation.d.ts.map +1 -1
- package/lib/services/token-validation.js +238 -172
- package/lib/services/token-validation.js.map +1 -1
- package/lib/services/turnstile.d.ts +38 -14
- package/lib/services/turnstile.d.ts.map +1 -1
- package/lib/services/turnstile.js +72 -41
- package/lib/services/turnstile.js.map +1 -1
- package/lib/services/url-normalization.d.ts.map +1 -1
- package/lib/services/url-normalization.js +2 -2
- package/lib/services/url-normalization.js.map +1 -1
- package/lib/services/user.d.ts +106 -40
- package/lib/services/user.d.ts.map +1 -1
- package/lib/services/user.js +156 -89
- package/lib/services/user.js.map +1 -1
- package/lib/services/vectorize.d.ts +26 -11
- package/lib/services/vectorize.d.ts.map +1 -1
- package/lib/services/vectorize.js +46 -35
- package/lib/services/vectorize.js.map +1 -1
- package/lib/services/waiting-rooms.d.ts +244 -104
- package/lib/services/waiting-rooms.d.ts.map +1 -1
- package/lib/services/waiting-rooms.js +398 -296
- package/lib/services/waiting-rooms.js.map +1 -1
- package/lib/services/web3.d.ts +26 -11
- package/lib/services/web3.d.ts.map +1 -1
- package/lib/services/web3.js +62 -43
- package/lib/services/web3.js.map +1 -1
- package/lib/services/workers-for-platforms.d.ts +323 -153
- package/lib/services/workers-for-platforms.d.ts.map +1 -1
- package/lib/services/workers-for-platforms.js +331 -288
- package/lib/services/workers-for-platforms.js.map +1 -1
- package/lib/services/workers.d.ts +601 -272
- package/lib/services/workers.d.ts.map +1 -1
- package/lib/services/workers.js +771 -633
- package/lib/services/workers.js.map +1 -1
- package/lib/services/workflows.d.ts +130 -47
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +190 -107
- package/lib/services/workflows.js.map +1 -1
- package/lib/services/zaraz.d.ts +20 -8
- package/lib/services/zaraz.d.ts.map +1 -1
- package/lib/services/zaraz.js +20 -13
- package/lib/services/zaraz.js.map +1 -1
- package/lib/services/zero-trust.d.ts +5436 -2650
- package/lib/services/zero-trust.d.ts.map +1 -1
- package/lib/services/zero-trust.js +9008 -7934
- package/lib/services/zero-trust.js.map +1 -1
- package/lib/services/zones.d.ts +188 -84
- package/lib/services/zones.d.ts.map +1 -1
- package/lib/services/zones.js +257 -196
- package/lib/services/zones.js.map +1 -1
- package/package.json +3 -2
- package/src/auth.ts +4 -3
- package/src/client/api.ts +105 -13
- package/src/credentials.ts +253 -12
- package/src/errors.ts +17 -1
- package/src/sensitive.ts +4 -0
- package/src/services/abuse-reports.ts +416 -208
- package/src/services/accounts.ts +511 -306
- package/src/services/acm.ts +22 -14
- package/src/services/addressing.ts +865 -550
- package/src/services/ai-gateway.ts +1148 -710
- package/src/services/ai.ts +265 -91
- package/src/services/aisearch.ts +1460 -995
- package/src/services/alerting.ts +1027 -671
- package/src/services/api-gateway.ts +1628 -1129
- package/src/services/argo.ts +48 -32
- package/src/services/billing.ts +47 -43
- package/src/services/bot-management.ts +6 -2
- package/src/services/botnet-feed.ts +28 -16
- package/src/services/brand-protection.ts +28 -6
- package/src/services/browser-rendering.ts +23 -10
- package/src/services/cache.ts +147 -97
- package/src/services/calls.ts +107 -42
- package/src/services/certificate-authorities.ts +6 -2
- package/src/services/client-certificates.ts +270 -173
- package/src/services/cloud-connector.ts +149 -82
- package/src/services/cloudforce-one.ts +515 -287
- package/src/services/connectivity.ts +184 -107
- package/src/services/content-scanning.ts +115 -42
- package/src/services/custom-certificates.ts +200 -121
- package/src/services/custom-hostnames.ts +583 -395
- package/src/services/custom-nameservers.ts +98 -45
- package/src/services/custom-pages.ts +109 -62
- package/src/services/d1.ts +409 -235
- package/src/services/dcv-delegation.ts +3 -1
- package/src/services/diagnostics.ts +267 -193
- package/src/services/dns-firewall.ts +197 -116
- package/src/services/dns.ts +916 -536
- package/src/services/durable-objects.ts +126 -37
- package/src/services/email-routing.ts +375 -181
- package/src/services/email-security.ts +1881 -1112
- package/src/services/filters.ts +176 -58
- package/src/services/firewall.ts +1843 -1011
- package/src/services/healthchecks.ts +374 -258
- package/src/services/hostnames.ts +83 -47
- package/src/services/hyperdrive.ts +12 -9
- package/src/services/iam.ts +560 -259
- package/src/services/images.ts +148 -54
- package/src/services/intel.ts +677 -373
- package/src/services/ips.ts +1 -1
- package/src/services/keyless-certificates.ts +139 -92
- package/src/services/kv.ts +204 -86
- package/src/services/leaked-credential-checks.ts +58 -19
- package/src/services/load-balancers.ts +1755 -1200
- package/src/services/logpush.ts +100 -72
- package/src/services/logs.ts +29 -15
- package/src/services/magic-cloud-networking.ts +2453 -1726
- package/src/services/magic-network-monitoring.ts +163 -119
- package/src/services/magic-transit.ts +2153 -1530
- package/src/services/managed-transforms.ts +20 -12
- package/src/services/memberships.ts +196 -113
- package/src/services/mtls-certificates.ts +158 -88
- package/src/services/organizations.ts +185 -121
- package/src/services/origin-ca-certificates.ts +130 -64
- package/src/services/origin-post-quantum-encryption.ts +24 -16
- package/src/services/origin-tls-client-auth.ts +282 -158
- package/src/services/page-rules.ts +64 -44
- package/src/services/page-shield.ts +492 -316
- package/src/services/pages.ts +1612 -1154
- package/src/services/pipelines.ts +1735 -1280
- package/src/services/queues.ts +617 -419
- package/src/services/r2-data-catalog.ts +82 -50
- package/src/services/r2.ts +420 -239
- package/src/services/radar.ts +1107 -423
- package/src/services/rate-limits.ts +254 -152
- package/src/services/realtime-kit.ts +34 -33
- package/src/services/registrar.ts +262 -167
- package/src/services/request-tracers.ts +7 -4
- package/src/services/resource-sharing.ts +628 -378
- package/src/services/rules.ts +292 -176
- package/src/services/rulesets.ts +643 -426
- package/src/services/rum.ts +204 -111
- package/src/services/schema-validation.ts +240 -104
- package/src/services/secrets-store.ts +356 -166
- package/src/services/security-center.ts +196 -98
- package/src/services/security-txt.ts +2 -0
- package/src/services/snippets.ts +259 -117
- package/src/services/spectrum.ts +215 -128
- package/src/services/speed.ts +144 -46
- package/src/services/ssl.ts +420 -293
- package/src/services/stream.ts +496 -244
- package/src/services/token-validation.ts +583 -343
- package/src/services/turnstile.ts +206 -124
- package/src/services/url-normalization.ts +6 -2
- package/src/services/user.ts +480 -277
- package/src/services/vectorize.ts +123 -64
- package/src/services/waiting-rooms.ts +1156 -747
- package/src/services/web3.ts +178 -113
- package/src/services/workers-for-platforms.ts +814 -539
- package/src/services/workers.ts +1888 -1227
- package/src/services/workflows.ts +453 -205
- package/src/services/zaraz.ts +61 -25
- package/src/services/zero-trust.ts +17859 -12103
- package/src/services/zones.ts +690 -459
package/lib/services/firewall.js
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* Generated from Cloudflare TypeScript SDK.
|
|
5
5
|
* DO NOT EDIT - regenerate with: bun scripts/generate.ts --service firewall
|
|
6
6
|
*/
|
|
7
|
+
import * as stream from "effect/Stream";
|
|
7
8
|
import * as Schema from "effect/Schema";
|
|
8
9
|
import * as API from "../client/api.js";
|
|
9
10
|
import * as T from "../traits.js";
|
|
@@ -66,7 +67,8 @@ export const GetAccessRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
66
67
|
}),
|
|
67
68
|
Schema.Null,
|
|
68
69
|
])),
|
|
69
|
-
})
|
|
70
|
+
})
|
|
71
|
+
.pipe(Schema.encodeKeys({
|
|
70
72
|
id: "id",
|
|
71
73
|
allowedModes: "allowed_modes",
|
|
72
74
|
configuration: "configuration",
|
|
@@ -75,7 +77,8 @@ export const GetAccessRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
75
77
|
modifiedOn: "modified_on",
|
|
76
78
|
notes: "notes",
|
|
77
79
|
scope: "scope",
|
|
78
|
-
}))
|
|
80
|
+
}))
|
|
81
|
+
.pipe(T.ResponsePath("result"));
|
|
79
82
|
export const getAccessRule = API.make(() => ({
|
|
80
83
|
input: GetAccessRuleRequest,
|
|
81
84
|
output: GetAccessRuleResponse,
|
|
@@ -85,72 +88,93 @@ export const ListAccessRulesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
85
88
|
method: "GET",
|
|
86
89
|
path: "/{accountOrZone}/{accountOrZoneId}/firewall/access_rules/rules",
|
|
87
90
|
}));
|
|
88
|
-
export const ListAccessRulesResponse =
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
Schema.
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
Schema.
|
|
135
|
-
Schema.
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
91
|
+
export const ListAccessRulesResponse =
|
|
92
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
93
|
+
result: Schema.Array(Schema.Struct({
|
|
94
|
+
id: Schema.String,
|
|
95
|
+
allowedModes: Schema.Array(Schema.Literals([
|
|
96
|
+
"block",
|
|
97
|
+
"challenge",
|
|
98
|
+
"whitelist",
|
|
99
|
+
"js_challenge",
|
|
100
|
+
"managed_challenge",
|
|
101
|
+
])),
|
|
102
|
+
configuration: Schema.Union([
|
|
103
|
+
Schema.Struct({
|
|
104
|
+
target: Schema.optional(Schema.Union([Schema.Literal("ip"), Schema.Null])),
|
|
105
|
+
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
106
|
+
}),
|
|
107
|
+
Schema.Struct({
|
|
108
|
+
target: Schema.optional(Schema.Union([Schema.Literal("ip6"), Schema.Null])),
|
|
109
|
+
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
110
|
+
}),
|
|
111
|
+
Schema.Struct({
|
|
112
|
+
target: Schema.optional(Schema.Union([Schema.Literal("ip_range"), Schema.Null])),
|
|
113
|
+
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
114
|
+
}),
|
|
115
|
+
Schema.Struct({
|
|
116
|
+
target: Schema.optional(Schema.Union([Schema.Literal("asn"), Schema.Null])),
|
|
117
|
+
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
118
|
+
}),
|
|
119
|
+
Schema.Struct({
|
|
120
|
+
target: Schema.optional(Schema.Union([Schema.Literal("country"), Schema.Null])),
|
|
121
|
+
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
122
|
+
}),
|
|
123
|
+
]),
|
|
124
|
+
mode: Schema.Literals([
|
|
125
|
+
"block",
|
|
126
|
+
"challenge",
|
|
127
|
+
"whitelist",
|
|
128
|
+
"js_challenge",
|
|
129
|
+
"managed_challenge",
|
|
130
|
+
]),
|
|
131
|
+
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
132
|
+
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
133
|
+
notes: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
134
|
+
scope: Schema.optional(Schema.Union([
|
|
135
|
+
Schema.Struct({
|
|
136
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
137
|
+
email: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
138
|
+
type: Schema.optional(Schema.Union([
|
|
139
|
+
Schema.Literals(["user", "organization"]),
|
|
140
|
+
Schema.Null,
|
|
141
|
+
])),
|
|
142
|
+
}),
|
|
143
|
+
Schema.Null,
|
|
144
|
+
])),
|
|
145
|
+
}).pipe(Schema.encodeKeys({
|
|
146
|
+
id: "id",
|
|
147
|
+
allowedModes: "allowed_modes",
|
|
148
|
+
configuration: "configuration",
|
|
149
|
+
mode: "mode",
|
|
150
|
+
createdOn: "created_on",
|
|
151
|
+
modifiedOn: "modified_on",
|
|
152
|
+
notes: "notes",
|
|
153
|
+
scope: "scope",
|
|
154
|
+
}))),
|
|
155
|
+
resultInfo: Schema.Struct({
|
|
156
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
157
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
158
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
159
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
160
|
+
}).pipe(Schema.encodeKeys({
|
|
161
|
+
count: "count",
|
|
162
|
+
page: "page",
|
|
163
|
+
perPage: "per_page",
|
|
164
|
+
totalCount: "total_count",
|
|
165
|
+
})),
|
|
166
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
|
|
167
|
+
export const listAccessRules = API.makePaginated(() => ({
|
|
151
168
|
input: ListAccessRulesRequest,
|
|
152
169
|
output: ListAccessRulesResponse,
|
|
153
170
|
errors: [],
|
|
171
|
+
pagination: {
|
|
172
|
+
mode: "page",
|
|
173
|
+
inputToken: "page",
|
|
174
|
+
outputToken: "resultInfo.page",
|
|
175
|
+
items: "result",
|
|
176
|
+
pageSize: "perPage",
|
|
177
|
+
},
|
|
154
178
|
}));
|
|
155
179
|
export const CreateAccessRuleRequest =
|
|
156
180
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
@@ -243,7 +267,8 @@ export const CreateAccessRuleResponse =
|
|
|
243
267
|
}),
|
|
244
268
|
Schema.Null,
|
|
245
269
|
])),
|
|
246
|
-
})
|
|
270
|
+
})
|
|
271
|
+
.pipe(Schema.encodeKeys({
|
|
247
272
|
id: "id",
|
|
248
273
|
allowedModes: "allowed_modes",
|
|
249
274
|
configuration: "configuration",
|
|
@@ -252,7 +277,8 @@ export const CreateAccessRuleResponse =
|
|
|
252
277
|
modifiedOn: "modified_on",
|
|
253
278
|
notes: "notes",
|
|
254
279
|
scope: "scope",
|
|
255
|
-
}))
|
|
280
|
+
}))
|
|
281
|
+
.pipe(T.ResponsePath("result"));
|
|
256
282
|
export const createAccessRule = API.make(() => ({
|
|
257
283
|
input: CreateAccessRuleRequest,
|
|
258
284
|
output: CreateAccessRuleResponse,
|
|
@@ -349,7 +375,8 @@ export const PatchAccessRuleResponse =
|
|
|
349
375
|
}),
|
|
350
376
|
Schema.Null,
|
|
351
377
|
])),
|
|
352
|
-
})
|
|
378
|
+
})
|
|
379
|
+
.pipe(Schema.encodeKeys({
|
|
353
380
|
id: "id",
|
|
354
381
|
allowedModes: "allowed_modes",
|
|
355
382
|
configuration: "configuration",
|
|
@@ -358,7 +385,8 @@ export const PatchAccessRuleResponse =
|
|
|
358
385
|
modifiedOn: "modified_on",
|
|
359
386
|
notes: "notes",
|
|
360
387
|
scope: "scope",
|
|
361
|
-
}))
|
|
388
|
+
}))
|
|
389
|
+
.pipe(T.ResponsePath("result"));
|
|
362
390
|
export const patchAccessRule = API.make(() => ({
|
|
363
391
|
input: PatchAccessRuleRequest,
|
|
364
392
|
output: PatchAccessRuleResponse,
|
|
@@ -374,7 +402,7 @@ export const DeleteAccessRuleRequest =
|
|
|
374
402
|
export const DeleteAccessRuleResponse =
|
|
375
403
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
376
404
|
id: Schema.String,
|
|
377
|
-
});
|
|
405
|
+
}).pipe(T.ResponsePath("result"));
|
|
378
406
|
export const deleteAccessRule = API.make(() => ({
|
|
379
407
|
input: DeleteAccessRuleRequest,
|
|
380
408
|
output: DeleteAccessRuleResponse,
|
|
@@ -395,7 +423,8 @@ export const GetLockdownResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
395
423
|
modifiedOn: Schema.String,
|
|
396
424
|
paused: Schema.Boolean,
|
|
397
425
|
urls: Schema.Array(Schema.String),
|
|
398
|
-
})
|
|
426
|
+
})
|
|
427
|
+
.pipe(Schema.encodeKeys({
|
|
399
428
|
id: "id",
|
|
400
429
|
configurations: "configurations",
|
|
401
430
|
createdOn: "created_on",
|
|
@@ -403,7 +432,8 @@ export const GetLockdownResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
403
432
|
modifiedOn: "modified_on",
|
|
404
433
|
paused: "paused",
|
|
405
434
|
urls: "urls",
|
|
406
|
-
}))
|
|
435
|
+
}))
|
|
436
|
+
.pipe(T.ResponsePath("result"));
|
|
407
437
|
export const getLockdown = API.make(() => ({
|
|
408
438
|
input: GetLockdownRequest,
|
|
409
439
|
output: GetLockdownResponse,
|
|
@@ -421,27 +451,47 @@ export const ListLockdownsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
421
451
|
priority: Schema.optional(Schema.Number).pipe(T.HttpQuery("priority")),
|
|
422
452
|
uriSearch: Schema.optional(Schema.String).pipe(T.HttpQuery("uri_search")),
|
|
423
453
|
}).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/firewall/lockdowns" }));
|
|
424
|
-
export const ListLockdownsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
454
|
+
export const ListLockdownsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
455
|
+
result: Schema.Array(Schema.Struct({
|
|
456
|
+
id: Schema.String,
|
|
457
|
+
configurations: Schema.Unknown,
|
|
458
|
+
createdOn: Schema.String,
|
|
459
|
+
description: Schema.String,
|
|
460
|
+
modifiedOn: Schema.String,
|
|
461
|
+
paused: Schema.Boolean,
|
|
462
|
+
urls: Schema.Array(Schema.String),
|
|
463
|
+
}).pipe(Schema.encodeKeys({
|
|
464
|
+
id: "id",
|
|
465
|
+
configurations: "configurations",
|
|
466
|
+
createdOn: "created_on",
|
|
467
|
+
description: "description",
|
|
468
|
+
modifiedOn: "modified_on",
|
|
469
|
+
paused: "paused",
|
|
470
|
+
urls: "urls",
|
|
471
|
+
}))),
|
|
472
|
+
resultInfo: Schema.Struct({
|
|
473
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
474
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
475
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
476
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
477
|
+
}).pipe(Schema.encodeKeys({
|
|
478
|
+
count: "count",
|
|
479
|
+
page: "page",
|
|
480
|
+
perPage: "per_page",
|
|
481
|
+
totalCount: "total_count",
|
|
482
|
+
})),
|
|
483
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
|
|
484
|
+
export const listLockdowns = API.makePaginated(() => ({
|
|
442
485
|
input: ListLockdownsRequest,
|
|
443
486
|
output: ListLockdownsResponse,
|
|
444
487
|
errors: [],
|
|
488
|
+
pagination: {
|
|
489
|
+
mode: "page",
|
|
490
|
+
inputToken: "page",
|
|
491
|
+
outputToken: "resultInfo.page",
|
|
492
|
+
items: "result",
|
|
493
|
+
pageSize: "perPage",
|
|
494
|
+
},
|
|
445
495
|
}));
|
|
446
496
|
export const CreateLockdownRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
447
497
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
@@ -459,7 +509,8 @@ export const CreateLockdownResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
459
509
|
modifiedOn: Schema.String,
|
|
460
510
|
paused: Schema.Boolean,
|
|
461
511
|
urls: Schema.Array(Schema.String),
|
|
462
|
-
})
|
|
512
|
+
})
|
|
513
|
+
.pipe(Schema.encodeKeys({
|
|
463
514
|
id: "id",
|
|
464
515
|
configurations: "configurations",
|
|
465
516
|
createdOn: "created_on",
|
|
@@ -467,7 +518,8 @@ export const CreateLockdownResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
467
518
|
modifiedOn: "modified_on",
|
|
468
519
|
paused: "paused",
|
|
469
520
|
urls: "urls",
|
|
470
|
-
}))
|
|
521
|
+
}))
|
|
522
|
+
.pipe(T.ResponsePath("result"));
|
|
471
523
|
export const createLockdown = API.make(() => ({
|
|
472
524
|
input: CreateLockdownRequest,
|
|
473
525
|
output: CreateLockdownResponse,
|
|
@@ -490,7 +542,8 @@ export const UpdateLockdownResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
490
542
|
modifiedOn: Schema.String,
|
|
491
543
|
paused: Schema.Boolean,
|
|
492
544
|
urls: Schema.Array(Schema.String),
|
|
493
|
-
})
|
|
545
|
+
})
|
|
546
|
+
.pipe(Schema.encodeKeys({
|
|
494
547
|
id: "id",
|
|
495
548
|
configurations: "configurations",
|
|
496
549
|
createdOn: "created_on",
|
|
@@ -498,7 +551,8 @@ export const UpdateLockdownResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
498
551
|
modifiedOn: "modified_on",
|
|
499
552
|
paused: "paused",
|
|
500
553
|
urls: "urls",
|
|
501
|
-
}))
|
|
554
|
+
}))
|
|
555
|
+
.pipe(T.ResponsePath("result"));
|
|
502
556
|
export const updateLockdown = API.make(() => ({
|
|
503
557
|
input: UpdateLockdownRequest,
|
|
504
558
|
output: UpdateLockdownResponse,
|
|
@@ -513,7 +567,7 @@ export const DeleteLockdownRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
513
567
|
}));
|
|
514
568
|
export const DeleteLockdownResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
515
569
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
516
|
-
});
|
|
570
|
+
}).pipe(T.ResponsePath("result"));
|
|
517
571
|
export const deleteLockdown = API.make(() => ({
|
|
518
572
|
input: DeleteLockdownRequest,
|
|
519
573
|
output: DeleteLockdownResponse,
|
|
@@ -523,51 +577,57 @@ export const BulkPutRulesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
523
577
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
524
578
|
body: Schema.Unknown.pipe(T.HttpBody()),
|
|
525
579
|
}).pipe(T.Http({ method: "PUT", path: "/zones/{zone_id}/firewall/rules" }));
|
|
526
|
-
export const BulkPutRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
Schema.
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
541
|
-
filter: Schema.optional(Schema.Union([
|
|
542
|
-
Schema.Union([
|
|
543
|
-
Schema.Unknown,
|
|
544
|
-
Schema.Struct({
|
|
545
|
-
id: Schema.String,
|
|
546
|
-
deleted: Schema.Boolean,
|
|
547
|
-
}),
|
|
548
|
-
]),
|
|
549
|
-
Schema.Null,
|
|
550
|
-
])),
|
|
551
|
-
paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
552
|
-
priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
553
|
-
products: Schema.optional(Schema.Union([
|
|
554
|
-
Schema.Array(Schema.Literals([
|
|
555
|
-
"zoneLockdown",
|
|
556
|
-
"uaBlock",
|
|
557
|
-
"bic",
|
|
558
|
-
"hot",
|
|
559
|
-
"securityLevel",
|
|
560
|
-
"rateLimit",
|
|
561
|
-
"waf",
|
|
580
|
+
export const BulkPutRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
581
|
+
result: Schema.Array(Schema.Struct({
|
|
582
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
583
|
+
action: Schema.optional(Schema.Union([
|
|
584
|
+
Schema.Literals([
|
|
585
|
+
"block",
|
|
586
|
+
"challenge",
|
|
587
|
+
"js_challenge",
|
|
588
|
+
"managed_challenge",
|
|
589
|
+
"allow",
|
|
590
|
+
"log",
|
|
591
|
+
"bypass",
|
|
592
|
+
]),
|
|
593
|
+
Schema.Null,
|
|
562
594
|
])),
|
|
563
|
-
Schema.Null,
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
595
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
596
|
+
filter: Schema.optional(Schema.Union([
|
|
597
|
+
Schema.Union([
|
|
598
|
+
Schema.Unknown,
|
|
599
|
+
Schema.Struct({
|
|
600
|
+
id: Schema.String,
|
|
601
|
+
deleted: Schema.Boolean,
|
|
602
|
+
}),
|
|
603
|
+
]),
|
|
604
|
+
Schema.Null,
|
|
605
|
+
])),
|
|
606
|
+
paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
607
|
+
priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
608
|
+
products: Schema.optional(Schema.Union([
|
|
609
|
+
Schema.Array(Schema.Literals([
|
|
610
|
+
"zoneLockdown",
|
|
611
|
+
"uaBlock",
|
|
612
|
+
"bic",
|
|
613
|
+
"hot",
|
|
614
|
+
"securityLevel",
|
|
615
|
+
"rateLimit",
|
|
616
|
+
"waf",
|
|
617
|
+
])),
|
|
618
|
+
Schema.Null,
|
|
619
|
+
])),
|
|
620
|
+
ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
621
|
+
})),
|
|
622
|
+
});
|
|
623
|
+
export const bulkPutRules = API.makePaginated(() => ({
|
|
568
624
|
input: BulkPutRulesRequest,
|
|
569
625
|
output: BulkPutRulesResponse,
|
|
570
626
|
errors: [],
|
|
627
|
+
pagination: {
|
|
628
|
+
mode: "single",
|
|
629
|
+
items: "result",
|
|
630
|
+
},
|
|
571
631
|
}));
|
|
572
632
|
export const GetRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
573
633
|
ruleId: Schema.String.pipe(T.HttpPath("ruleId")),
|
|
@@ -613,7 +673,7 @@ export const GetRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
613
673
|
Schema.Null,
|
|
614
674
|
])),
|
|
615
675
|
ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
616
|
-
});
|
|
676
|
+
}).pipe(T.ResponsePath("result"));
|
|
617
677
|
export const getRule = API.make(() => ({
|
|
618
678
|
input: GetRuleRequest,
|
|
619
679
|
output: GetRuleResponse,
|
|
@@ -626,51 +686,71 @@ export const ListRulesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
626
686
|
description: Schema.optional(Schema.String).pipe(T.HttpQuery("description")),
|
|
627
687
|
paused: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("paused")),
|
|
628
688
|
}).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/firewall/rules" }));
|
|
629
|
-
export const ListRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
Schema.
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
644
|
-
filter: Schema.optional(Schema.Union([
|
|
645
|
-
Schema.Union([
|
|
646
|
-
Schema.Unknown,
|
|
647
|
-
Schema.Struct({
|
|
648
|
-
id: Schema.String,
|
|
649
|
-
deleted: Schema.Boolean,
|
|
650
|
-
}),
|
|
651
|
-
]),
|
|
652
|
-
Schema.Null,
|
|
653
|
-
])),
|
|
654
|
-
paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
655
|
-
priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
656
|
-
products: Schema.optional(Schema.Union([
|
|
657
|
-
Schema.Array(Schema.Literals([
|
|
658
|
-
"zoneLockdown",
|
|
659
|
-
"uaBlock",
|
|
660
|
-
"bic",
|
|
661
|
-
"hot",
|
|
662
|
-
"securityLevel",
|
|
663
|
-
"rateLimit",
|
|
664
|
-
"waf",
|
|
689
|
+
export const ListRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
690
|
+
result: Schema.Array(Schema.Struct({
|
|
691
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
692
|
+
action: Schema.optional(Schema.Union([
|
|
693
|
+
Schema.Literals([
|
|
694
|
+
"block",
|
|
695
|
+
"challenge",
|
|
696
|
+
"js_challenge",
|
|
697
|
+
"managed_challenge",
|
|
698
|
+
"allow",
|
|
699
|
+
"log",
|
|
700
|
+
"bypass",
|
|
701
|
+
]),
|
|
702
|
+
Schema.Null,
|
|
665
703
|
])),
|
|
666
|
-
Schema.Null,
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
704
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
705
|
+
filter: Schema.optional(Schema.Union([
|
|
706
|
+
Schema.Union([
|
|
707
|
+
Schema.Unknown,
|
|
708
|
+
Schema.Struct({
|
|
709
|
+
id: Schema.String,
|
|
710
|
+
deleted: Schema.Boolean,
|
|
711
|
+
}),
|
|
712
|
+
]),
|
|
713
|
+
Schema.Null,
|
|
714
|
+
])),
|
|
715
|
+
paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
716
|
+
priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
717
|
+
products: Schema.optional(Schema.Union([
|
|
718
|
+
Schema.Array(Schema.Literals([
|
|
719
|
+
"zoneLockdown",
|
|
720
|
+
"uaBlock",
|
|
721
|
+
"bic",
|
|
722
|
+
"hot",
|
|
723
|
+
"securityLevel",
|
|
724
|
+
"rateLimit",
|
|
725
|
+
"waf",
|
|
726
|
+
])),
|
|
727
|
+
Schema.Null,
|
|
728
|
+
])),
|
|
729
|
+
ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
730
|
+
})),
|
|
731
|
+
resultInfo: Schema.Struct({
|
|
732
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
733
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
734
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
735
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
736
|
+
}).pipe(Schema.encodeKeys({
|
|
737
|
+
count: "count",
|
|
738
|
+
page: "page",
|
|
739
|
+
perPage: "per_page",
|
|
740
|
+
totalCount: "total_count",
|
|
741
|
+
})),
|
|
742
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
|
|
743
|
+
export const listRules = API.makePaginated(() => ({
|
|
671
744
|
input: ListRulesRequest,
|
|
672
745
|
output: ListRulesResponse,
|
|
673
746
|
errors: [],
|
|
747
|
+
pagination: {
|
|
748
|
+
mode: "page",
|
|
749
|
+
inputToken: "page",
|
|
750
|
+
outputToken: "resultInfo.page",
|
|
751
|
+
items: "result",
|
|
752
|
+
pageSize: "perPage",
|
|
753
|
+
},
|
|
674
754
|
}));
|
|
675
755
|
export const CreateRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
676
756
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
@@ -690,51 +770,57 @@ export const CreateRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
690
770
|
}),
|
|
691
771
|
filter: Schema.Unknown,
|
|
692
772
|
}).pipe(T.Http({ method: "POST", path: "/zones/{zone_id}/firewall/rules" }));
|
|
693
|
-
export const CreateRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
Schema.
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
708
|
-
filter: Schema.optional(Schema.Union([
|
|
709
|
-
Schema.Union([
|
|
710
|
-
Schema.Unknown,
|
|
711
|
-
Schema.Struct({
|
|
712
|
-
id: Schema.String,
|
|
713
|
-
deleted: Schema.Boolean,
|
|
714
|
-
}),
|
|
715
|
-
]),
|
|
716
|
-
Schema.Null,
|
|
717
|
-
])),
|
|
718
|
-
paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
719
|
-
priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
720
|
-
products: Schema.optional(Schema.Union([
|
|
721
|
-
Schema.Array(Schema.Literals([
|
|
722
|
-
"zoneLockdown",
|
|
723
|
-
"uaBlock",
|
|
724
|
-
"bic",
|
|
725
|
-
"hot",
|
|
726
|
-
"securityLevel",
|
|
727
|
-
"rateLimit",
|
|
728
|
-
"waf",
|
|
773
|
+
export const CreateRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
774
|
+
result: Schema.Array(Schema.Struct({
|
|
775
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
776
|
+
action: Schema.optional(Schema.Union([
|
|
777
|
+
Schema.Literals([
|
|
778
|
+
"block",
|
|
779
|
+
"challenge",
|
|
780
|
+
"js_challenge",
|
|
781
|
+
"managed_challenge",
|
|
782
|
+
"allow",
|
|
783
|
+
"log",
|
|
784
|
+
"bypass",
|
|
785
|
+
]),
|
|
786
|
+
Schema.Null,
|
|
729
787
|
])),
|
|
730
|
-
Schema.Null,
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
788
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
789
|
+
filter: Schema.optional(Schema.Union([
|
|
790
|
+
Schema.Union([
|
|
791
|
+
Schema.Unknown,
|
|
792
|
+
Schema.Struct({
|
|
793
|
+
id: Schema.String,
|
|
794
|
+
deleted: Schema.Boolean,
|
|
795
|
+
}),
|
|
796
|
+
]),
|
|
797
|
+
Schema.Null,
|
|
798
|
+
])),
|
|
799
|
+
paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
800
|
+
priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
801
|
+
products: Schema.optional(Schema.Union([
|
|
802
|
+
Schema.Array(Schema.Literals([
|
|
803
|
+
"zoneLockdown",
|
|
804
|
+
"uaBlock",
|
|
805
|
+
"bic",
|
|
806
|
+
"hot",
|
|
807
|
+
"securityLevel",
|
|
808
|
+
"rateLimit",
|
|
809
|
+
"waf",
|
|
810
|
+
])),
|
|
811
|
+
Schema.Null,
|
|
812
|
+
])),
|
|
813
|
+
ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
814
|
+
})),
|
|
815
|
+
});
|
|
816
|
+
export const createRule = API.makePaginated(() => ({
|
|
735
817
|
input: CreateRuleRequest,
|
|
736
818
|
output: CreateRuleResponse,
|
|
737
819
|
errors: [],
|
|
820
|
+
pagination: {
|
|
821
|
+
mode: "single",
|
|
822
|
+
items: "result",
|
|
823
|
+
},
|
|
738
824
|
}));
|
|
739
825
|
export const UpdateRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
740
826
|
ruleId: Schema.String.pipe(T.HttpPath("ruleId")),
|
|
@@ -795,169 +881,76 @@ export const UpdateRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
795
881
|
Schema.Null,
|
|
796
882
|
])),
|
|
797
883
|
ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
798
|
-
});
|
|
884
|
+
}).pipe(T.ResponsePath("result"));
|
|
799
885
|
export const updateRule = API.make(() => ({
|
|
800
886
|
input: UpdateRuleRequest,
|
|
801
887
|
output: UpdateRuleResponse,
|
|
802
888
|
errors: [],
|
|
803
889
|
}));
|
|
804
|
-
export const PatchRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
805
|
-
ruleId: Schema.String.pipe(T.HttpPath("ruleId")),
|
|
806
|
-
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
807
|
-
}).pipe(T.Http({ method: "PATCH", path: "/zones/{zone_id}/firewall/rules/{ruleId}" }));
|
|
808
|
-
export const PatchRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
Schema.
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
Schema.Union([
|
|
825
|
-
Schema.
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
Schema.
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
export const DeleteRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
855
|
-
ruleId: Schema.String.pipe(T.HttpPath("ruleId")),
|
|
856
|
-
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
857
|
-
}).pipe(T.Http({
|
|
858
|
-
method: "DELETE",
|
|
859
|
-
path: "/zones/{zone_id}/firewall/rules/{ruleId}",
|
|
860
|
-
}));
|
|
861
|
-
export const DeleteRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
862
|
-
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
863
|
-
action: Schema.optional(Schema.Union([
|
|
864
|
-
Schema.Literals([
|
|
865
|
-
"block",
|
|
866
|
-
"challenge",
|
|
867
|
-
"js_challenge",
|
|
868
|
-
"managed_challenge",
|
|
869
|
-
"allow",
|
|
870
|
-
"log",
|
|
871
|
-
"bypass",
|
|
872
|
-
]),
|
|
873
|
-
Schema.Null,
|
|
874
|
-
])),
|
|
875
|
-
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
876
|
-
filter: Schema.optional(Schema.Union([
|
|
877
|
-
Schema.Union([
|
|
878
|
-
Schema.Unknown,
|
|
879
|
-
Schema.Struct({
|
|
880
|
-
id: Schema.String,
|
|
881
|
-
deleted: Schema.Boolean,
|
|
882
|
-
}),
|
|
883
|
-
]),
|
|
884
|
-
Schema.Null,
|
|
885
|
-
])),
|
|
886
|
-
paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
887
|
-
priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
888
|
-
products: Schema.optional(Schema.Union([
|
|
889
|
-
Schema.Array(Schema.Literals([
|
|
890
|
-
"zoneLockdown",
|
|
891
|
-
"uaBlock",
|
|
892
|
-
"bic",
|
|
893
|
-
"hot",
|
|
894
|
-
"securityLevel",
|
|
895
|
-
"rateLimit",
|
|
896
|
-
"waf",
|
|
897
|
-
])),
|
|
898
|
-
Schema.Null,
|
|
899
|
-
])),
|
|
900
|
-
ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
901
|
-
});
|
|
902
|
-
export const deleteRule = API.make(() => ({
|
|
903
|
-
input: DeleteRuleRequest,
|
|
904
|
-
output: DeleteRuleResponse,
|
|
905
|
-
errors: [],
|
|
906
|
-
}));
|
|
907
|
-
export const BulkPatchRulesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
908
|
-
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
909
|
-
body: Schema.Unknown.pipe(T.HttpBody()),
|
|
910
|
-
}).pipe(T.Http({ method: "PATCH", path: "/zones/{zone_id}/firewall/rules" }));
|
|
911
|
-
export const BulkPatchRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
|
|
912
|
-
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
913
|
-
action: Schema.optional(Schema.Union([
|
|
914
|
-
Schema.Literals([
|
|
915
|
-
"block",
|
|
916
|
-
"challenge",
|
|
917
|
-
"js_challenge",
|
|
918
|
-
"managed_challenge",
|
|
919
|
-
"allow",
|
|
920
|
-
"log",
|
|
921
|
-
"bypass",
|
|
922
|
-
]),
|
|
923
|
-
Schema.Null,
|
|
924
|
-
])),
|
|
925
|
-
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
926
|
-
filter: Schema.optional(Schema.Union([
|
|
927
|
-
Schema.Union([
|
|
928
|
-
Schema.Unknown,
|
|
929
|
-
Schema.Struct({
|
|
930
|
-
id: Schema.String,
|
|
931
|
-
deleted: Schema.Boolean,
|
|
932
|
-
}),
|
|
933
|
-
]),
|
|
934
|
-
Schema.Null,
|
|
935
|
-
])),
|
|
936
|
-
paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
937
|
-
priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
938
|
-
products: Schema.optional(Schema.Union([
|
|
939
|
-
Schema.Array(Schema.Literals([
|
|
940
|
-
"zoneLockdown",
|
|
941
|
-
"uaBlock",
|
|
942
|
-
"bic",
|
|
943
|
-
"hot",
|
|
944
|
-
"securityLevel",
|
|
945
|
-
"rateLimit",
|
|
946
|
-
"waf",
|
|
947
|
-
])),
|
|
948
|
-
Schema.Null,
|
|
949
|
-
])),
|
|
950
|
-
ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
951
|
-
}));
|
|
952
|
-
export const bulkPatchRules = API.make(() => ({
|
|
953
|
-
input: BulkPatchRulesRequest,
|
|
954
|
-
output: BulkPatchRulesResponse,
|
|
890
|
+
export const PatchRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
891
|
+
ruleId: Schema.String.pipe(T.HttpPath("ruleId")),
|
|
892
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
893
|
+
}).pipe(T.Http({ method: "PATCH", path: "/zones/{zone_id}/firewall/rules/{ruleId}" }));
|
|
894
|
+
export const PatchRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
895
|
+
result: Schema.Array(Schema.Struct({
|
|
896
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
897
|
+
action: Schema.optional(Schema.Union([
|
|
898
|
+
Schema.Literals([
|
|
899
|
+
"block",
|
|
900
|
+
"challenge",
|
|
901
|
+
"js_challenge",
|
|
902
|
+
"managed_challenge",
|
|
903
|
+
"allow",
|
|
904
|
+
"log",
|
|
905
|
+
"bypass",
|
|
906
|
+
]),
|
|
907
|
+
Schema.Null,
|
|
908
|
+
])),
|
|
909
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
910
|
+
filter: Schema.optional(Schema.Union([
|
|
911
|
+
Schema.Union([
|
|
912
|
+
Schema.Unknown,
|
|
913
|
+
Schema.Struct({
|
|
914
|
+
id: Schema.String,
|
|
915
|
+
deleted: Schema.Boolean,
|
|
916
|
+
}),
|
|
917
|
+
]),
|
|
918
|
+
Schema.Null,
|
|
919
|
+
])),
|
|
920
|
+
paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
921
|
+
priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
922
|
+
products: Schema.optional(Schema.Union([
|
|
923
|
+
Schema.Array(Schema.Literals([
|
|
924
|
+
"zoneLockdown",
|
|
925
|
+
"uaBlock",
|
|
926
|
+
"bic",
|
|
927
|
+
"hot",
|
|
928
|
+
"securityLevel",
|
|
929
|
+
"rateLimit",
|
|
930
|
+
"waf",
|
|
931
|
+
])),
|
|
932
|
+
Schema.Null,
|
|
933
|
+
])),
|
|
934
|
+
ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
935
|
+
})),
|
|
936
|
+
});
|
|
937
|
+
export const patchRule = API.makePaginated(() => ({
|
|
938
|
+
input: PatchRuleRequest,
|
|
939
|
+
output: PatchRuleResponse,
|
|
955
940
|
errors: [],
|
|
941
|
+
pagination: {
|
|
942
|
+
mode: "single",
|
|
943
|
+
items: "result",
|
|
944
|
+
},
|
|
956
945
|
}));
|
|
957
|
-
export const
|
|
946
|
+
export const DeleteRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
947
|
+
ruleId: Schema.String.pipe(T.HttpPath("ruleId")),
|
|
958
948
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
959
|
-
}).pipe(T.Http({
|
|
960
|
-
|
|
949
|
+
}).pipe(T.Http({
|
|
950
|
+
method: "DELETE",
|
|
951
|
+
path: "/zones/{zone_id}/firewall/rules/{ruleId}",
|
|
952
|
+
}));
|
|
953
|
+
export const DeleteRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
961
954
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
962
955
|
action: Schema.optional(Schema.Union([
|
|
963
956
|
Schema.Literals([
|
|
@@ -997,11 +990,123 @@ export const BulkDeleteRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
|
997
990
|
Schema.Null,
|
|
998
991
|
])),
|
|
999
992
|
ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
993
|
+
}).pipe(T.ResponsePath("result"));
|
|
994
|
+
export const deleteRule = API.make(() => ({
|
|
995
|
+
input: DeleteRuleRequest,
|
|
996
|
+
output: DeleteRuleResponse,
|
|
997
|
+
errors: [],
|
|
998
|
+
}));
|
|
999
|
+
export const BulkPatchRulesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1000
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
1001
|
+
body: Schema.Unknown.pipe(T.HttpBody()),
|
|
1002
|
+
}).pipe(T.Http({ method: "PATCH", path: "/zones/{zone_id}/firewall/rules" }));
|
|
1003
|
+
export const BulkPatchRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1004
|
+
result: Schema.Array(Schema.Struct({
|
|
1005
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1006
|
+
action: Schema.optional(Schema.Union([
|
|
1007
|
+
Schema.Literals([
|
|
1008
|
+
"block",
|
|
1009
|
+
"challenge",
|
|
1010
|
+
"js_challenge",
|
|
1011
|
+
"managed_challenge",
|
|
1012
|
+
"allow",
|
|
1013
|
+
"log",
|
|
1014
|
+
"bypass",
|
|
1015
|
+
]),
|
|
1016
|
+
Schema.Null,
|
|
1017
|
+
])),
|
|
1018
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1019
|
+
filter: Schema.optional(Schema.Union([
|
|
1020
|
+
Schema.Union([
|
|
1021
|
+
Schema.Unknown,
|
|
1022
|
+
Schema.Struct({
|
|
1023
|
+
id: Schema.String,
|
|
1024
|
+
deleted: Schema.Boolean,
|
|
1025
|
+
}),
|
|
1026
|
+
]),
|
|
1027
|
+
Schema.Null,
|
|
1028
|
+
])),
|
|
1029
|
+
paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1030
|
+
priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1031
|
+
products: Schema.optional(Schema.Union([
|
|
1032
|
+
Schema.Array(Schema.Literals([
|
|
1033
|
+
"zoneLockdown",
|
|
1034
|
+
"uaBlock",
|
|
1035
|
+
"bic",
|
|
1036
|
+
"hot",
|
|
1037
|
+
"securityLevel",
|
|
1038
|
+
"rateLimit",
|
|
1039
|
+
"waf",
|
|
1040
|
+
])),
|
|
1041
|
+
Schema.Null,
|
|
1042
|
+
])),
|
|
1043
|
+
ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1044
|
+
})),
|
|
1045
|
+
});
|
|
1046
|
+
export const bulkPatchRules = API.makePaginated(() => ({
|
|
1047
|
+
input: BulkPatchRulesRequest,
|
|
1048
|
+
output: BulkPatchRulesResponse,
|
|
1049
|
+
errors: [],
|
|
1050
|
+
pagination: {
|
|
1051
|
+
mode: "single",
|
|
1052
|
+
items: "result",
|
|
1053
|
+
},
|
|
1000
1054
|
}));
|
|
1001
|
-
export const
|
|
1055
|
+
export const BulkDeleteRulesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1056
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
1057
|
+
}).pipe(T.Http({ method: "DELETE", path: "/zones/{zone_id}/firewall/rules" }));
|
|
1058
|
+
export const BulkDeleteRulesResponse =
|
|
1059
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1060
|
+
result: Schema.Array(Schema.Struct({
|
|
1061
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1062
|
+
action: Schema.optional(Schema.Union([
|
|
1063
|
+
Schema.Literals([
|
|
1064
|
+
"block",
|
|
1065
|
+
"challenge",
|
|
1066
|
+
"js_challenge",
|
|
1067
|
+
"managed_challenge",
|
|
1068
|
+
"allow",
|
|
1069
|
+
"log",
|
|
1070
|
+
"bypass",
|
|
1071
|
+
]),
|
|
1072
|
+
Schema.Null,
|
|
1073
|
+
])),
|
|
1074
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1075
|
+
filter: Schema.optional(Schema.Union([
|
|
1076
|
+
Schema.Union([
|
|
1077
|
+
Schema.Unknown,
|
|
1078
|
+
Schema.Struct({
|
|
1079
|
+
id: Schema.String,
|
|
1080
|
+
deleted: Schema.Boolean,
|
|
1081
|
+
}),
|
|
1082
|
+
]),
|
|
1083
|
+
Schema.Null,
|
|
1084
|
+
])),
|
|
1085
|
+
paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1086
|
+
priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1087
|
+
products: Schema.optional(Schema.Union([
|
|
1088
|
+
Schema.Array(Schema.Literals([
|
|
1089
|
+
"zoneLockdown",
|
|
1090
|
+
"uaBlock",
|
|
1091
|
+
"bic",
|
|
1092
|
+
"hot",
|
|
1093
|
+
"securityLevel",
|
|
1094
|
+
"rateLimit",
|
|
1095
|
+
"waf",
|
|
1096
|
+
])),
|
|
1097
|
+
Schema.Null,
|
|
1098
|
+
])),
|
|
1099
|
+
ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1100
|
+
})),
|
|
1101
|
+
});
|
|
1102
|
+
export const bulkDeleteRules = API.makePaginated(() => ({
|
|
1002
1103
|
input: BulkDeleteRulesRequest,
|
|
1003
1104
|
output: BulkDeleteRulesResponse,
|
|
1004
1105
|
errors: [],
|
|
1106
|
+
pagination: {
|
|
1107
|
+
mode: "single",
|
|
1108
|
+
items: "result",
|
|
1109
|
+
},
|
|
1005
1110
|
}));
|
|
1006
1111
|
export const GetUaRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1007
1112
|
uaRuleId: Schema.String.pipe(T.HttpPath("uaRuleId")),
|
|
@@ -1030,7 +1135,7 @@ export const GetUaRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1030
1135
|
Schema.Null,
|
|
1031
1136
|
])),
|
|
1032
1137
|
paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1033
|
-
});
|
|
1138
|
+
}).pipe(T.ResponsePath("result"));
|
|
1034
1139
|
export const getUaRule = API.make(() => ({
|
|
1035
1140
|
input: GetUaRuleRequest,
|
|
1036
1141
|
output: GetUaRuleResponse,
|
|
@@ -1042,31 +1147,51 @@ export const ListUaRulesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1042
1147
|
paused: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("paused")),
|
|
1043
1148
|
userAgent: Schema.optional(Schema.String).pipe(T.HttpQuery("user_agent")),
|
|
1044
1149
|
}).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/firewall/ua_rules" }));
|
|
1045
|
-
export const ListUaRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
Schema.
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
Schema.
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1150
|
+
export const ListUaRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1151
|
+
result: Schema.Array(Schema.Struct({
|
|
1152
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1153
|
+
configuration: Schema.optional(Schema.Union([
|
|
1154
|
+
Schema.Struct({
|
|
1155
|
+
target: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1156
|
+
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1157
|
+
}),
|
|
1158
|
+
Schema.Null,
|
|
1159
|
+
])),
|
|
1160
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1161
|
+
mode: Schema.optional(Schema.Union([
|
|
1162
|
+
Schema.Literals([
|
|
1163
|
+
"block",
|
|
1164
|
+
"challenge",
|
|
1165
|
+
"js_challenge",
|
|
1166
|
+
"managed_challenge",
|
|
1167
|
+
]),
|
|
1168
|
+
Schema.Null,
|
|
1169
|
+
])),
|
|
1170
|
+
paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1171
|
+
})),
|
|
1172
|
+
resultInfo: Schema.Struct({
|
|
1173
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1174
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1175
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1176
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1177
|
+
}).pipe(Schema.encodeKeys({
|
|
1178
|
+
count: "count",
|
|
1179
|
+
page: "page",
|
|
1180
|
+
perPage: "per_page",
|
|
1181
|
+
totalCount: "total_count",
|
|
1182
|
+
})),
|
|
1183
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
|
|
1184
|
+
export const listUaRules = API.makePaginated(() => ({
|
|
1067
1185
|
input: ListUaRulesRequest,
|
|
1068
1186
|
output: ListUaRulesResponse,
|
|
1069
1187
|
errors: [],
|
|
1188
|
+
pagination: {
|
|
1189
|
+
mode: "page",
|
|
1190
|
+
inputToken: "page",
|
|
1191
|
+
outputToken: "resultInfo.page",
|
|
1192
|
+
items: "result",
|
|
1193
|
+
pageSize: "perPage",
|
|
1194
|
+
},
|
|
1070
1195
|
}));
|
|
1071
1196
|
export const CreateUaRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1072
1197
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
@@ -1104,7 +1229,7 @@ export const CreateUaRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1104
1229
|
Schema.Null,
|
|
1105
1230
|
])),
|
|
1106
1231
|
paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1107
|
-
});
|
|
1232
|
+
}).pipe(T.ResponsePath("result"));
|
|
1108
1233
|
export const createUaRule = API.make(() => ({
|
|
1109
1234
|
input: CreateUaRuleRequest,
|
|
1110
1235
|
output: CreateUaRuleResponse,
|
|
@@ -1147,7 +1272,7 @@ export const UpdateUaRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1147
1272
|
Schema.Null,
|
|
1148
1273
|
])),
|
|
1149
1274
|
paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1150
|
-
});
|
|
1275
|
+
}).pipe(T.ResponsePath("result"));
|
|
1151
1276
|
export const updateUaRule = API.make(() => ({
|
|
1152
1277
|
input: UpdateUaRuleRequest,
|
|
1153
1278
|
output: UpdateUaRuleResponse,
|
|
@@ -1180,7 +1305,7 @@ export const DeleteUaRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1180
1305
|
Schema.Null,
|
|
1181
1306
|
])),
|
|
1182
1307
|
paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1183
|
-
});
|
|
1308
|
+
}).pipe(T.ResponsePath("result"));
|
|
1184
1309
|
export const deleteUaRule = API.make(() => ({
|
|
1185
1310
|
input: DeleteUaRuleRequest,
|
|
1186
1311
|
output: DeleteUaRuleResponse,
|
|
@@ -1256,7 +1381,8 @@ export const GetWafOverrideResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
1256
1381
|
])),
|
|
1257
1382
|
rules: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
1258
1383
|
urls: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1259
|
-
})
|
|
1384
|
+
})
|
|
1385
|
+
.pipe(Schema.encodeKeys({
|
|
1260
1386
|
id: "id",
|
|
1261
1387
|
description: "description",
|
|
1262
1388
|
groups: "groups",
|
|
@@ -1265,7 +1391,8 @@ export const GetWafOverrideResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
1265
1391
|
rewriteAction: "rewrite_action",
|
|
1266
1392
|
rules: "rules",
|
|
1267
1393
|
urls: "urls",
|
|
1268
|
-
}))
|
|
1394
|
+
}))
|
|
1395
|
+
.pipe(T.ResponsePath("result"));
|
|
1269
1396
|
export const getWafOverride = API.make(() => ({
|
|
1270
1397
|
input: GetWafOverrideRequest,
|
|
1271
1398
|
output: GetWafOverrideResponse,
|
|
@@ -1276,83 +1403,103 @@ export const ListWafOverridesRequest =
|
|
|
1276
1403
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
1277
1404
|
}).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/firewall/waf/overrides" }));
|
|
1278
1405
|
export const ListWafOverridesResponse =
|
|
1279
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
Schema.
|
|
1287
|
-
|
|
1288
|
-
Schema.
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
Schema.
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
Schema.
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
Schema.
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
Schema.
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1406
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1407
|
+
result: Schema.Array(Schema.Struct({
|
|
1408
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1409
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1410
|
+
groups: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
1411
|
+
paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1412
|
+
priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1413
|
+
rewriteAction: Schema.optional(Schema.Union([
|
|
1414
|
+
Schema.Struct({
|
|
1415
|
+
block: Schema.optional(Schema.Union([
|
|
1416
|
+
Schema.Literals([
|
|
1417
|
+
"challenge",
|
|
1418
|
+
"block",
|
|
1419
|
+
"simulate",
|
|
1420
|
+
"disable",
|
|
1421
|
+
"default",
|
|
1422
|
+
]),
|
|
1423
|
+
Schema.Null,
|
|
1424
|
+
])),
|
|
1425
|
+
challenge: Schema.optional(Schema.Union([
|
|
1426
|
+
Schema.Literals([
|
|
1427
|
+
"challenge",
|
|
1428
|
+
"block",
|
|
1429
|
+
"simulate",
|
|
1430
|
+
"disable",
|
|
1431
|
+
"default",
|
|
1432
|
+
]),
|
|
1433
|
+
Schema.Null,
|
|
1434
|
+
])),
|
|
1435
|
+
default: Schema.optional(Schema.Union([
|
|
1436
|
+
Schema.Literals([
|
|
1437
|
+
"challenge",
|
|
1438
|
+
"block",
|
|
1439
|
+
"simulate",
|
|
1440
|
+
"disable",
|
|
1441
|
+
"default",
|
|
1442
|
+
]),
|
|
1443
|
+
Schema.Null,
|
|
1444
|
+
])),
|
|
1445
|
+
disable: Schema.optional(Schema.Union([
|
|
1446
|
+
Schema.Literals([
|
|
1447
|
+
"challenge",
|
|
1448
|
+
"block",
|
|
1449
|
+
"simulate",
|
|
1450
|
+
"disable",
|
|
1451
|
+
"default",
|
|
1452
|
+
]),
|
|
1453
|
+
Schema.Null,
|
|
1454
|
+
])),
|
|
1455
|
+
simulate: Schema.optional(Schema.Union([
|
|
1456
|
+
Schema.Literals([
|
|
1457
|
+
"challenge",
|
|
1458
|
+
"block",
|
|
1459
|
+
"simulate",
|
|
1460
|
+
"disable",
|
|
1461
|
+
"default",
|
|
1462
|
+
]),
|
|
1463
|
+
Schema.Null,
|
|
1464
|
+
])),
|
|
1465
|
+
}),
|
|
1466
|
+
Schema.Null,
|
|
1467
|
+
])),
|
|
1468
|
+
rules: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
1469
|
+
urls: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1470
|
+
}).pipe(Schema.encodeKeys({
|
|
1471
|
+
id: "id",
|
|
1472
|
+
description: "description",
|
|
1473
|
+
groups: "groups",
|
|
1474
|
+
paused: "paused",
|
|
1475
|
+
priority: "priority",
|
|
1476
|
+
rewriteAction: "rewrite_action",
|
|
1477
|
+
rules: "rules",
|
|
1478
|
+
urls: "urls",
|
|
1479
|
+
}))),
|
|
1480
|
+
resultInfo: Schema.Struct({
|
|
1481
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1482
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1483
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1484
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1485
|
+
}).pipe(Schema.encodeKeys({
|
|
1486
|
+
count: "count",
|
|
1487
|
+
page: "page",
|
|
1488
|
+
perPage: "per_page",
|
|
1489
|
+
totalCount: "total_count",
|
|
1490
|
+
})),
|
|
1491
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
|
|
1492
|
+
export const listWafOverrides = API.makePaginated(() => ({
|
|
1353
1493
|
input: ListWafOverridesRequest,
|
|
1354
1494
|
output: ListWafOverridesResponse,
|
|
1355
1495
|
errors: [],
|
|
1496
|
+
pagination: {
|
|
1497
|
+
mode: "page",
|
|
1498
|
+
inputToken: "page",
|
|
1499
|
+
outputToken: "resultInfo.page",
|
|
1500
|
+
items: "result",
|
|
1501
|
+
pageSize: "perPage",
|
|
1502
|
+
},
|
|
1356
1503
|
}));
|
|
1357
1504
|
export const CreateWafOverrideRequest =
|
|
1358
1505
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
@@ -1423,7 +1570,8 @@ export const CreateWafOverrideResponse =
|
|
|
1423
1570
|
])),
|
|
1424
1571
|
rules: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
1425
1572
|
urls: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1426
|
-
})
|
|
1573
|
+
})
|
|
1574
|
+
.pipe(Schema.encodeKeys({
|
|
1427
1575
|
id: "id",
|
|
1428
1576
|
description: "description",
|
|
1429
1577
|
groups: "groups",
|
|
@@ -1432,7 +1580,8 @@ export const CreateWafOverrideResponse =
|
|
|
1432
1580
|
rewriteAction: "rewrite_action",
|
|
1433
1581
|
rules: "rules",
|
|
1434
1582
|
urls: "urls",
|
|
1435
|
-
}))
|
|
1583
|
+
}))
|
|
1584
|
+
.pipe(T.ResponsePath("result"));
|
|
1436
1585
|
export const createWafOverride = API.make(() => ({
|
|
1437
1586
|
input: CreateWafOverrideRequest,
|
|
1438
1587
|
output: CreateWafOverrideResponse,
|
|
@@ -1555,7 +1704,8 @@ export const UpdateWafOverrideResponse =
|
|
|
1555
1704
|
])),
|
|
1556
1705
|
rules: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
1557
1706
|
urls: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1558
|
-
})
|
|
1707
|
+
})
|
|
1708
|
+
.pipe(Schema.encodeKeys({
|
|
1559
1709
|
id: "id",
|
|
1560
1710
|
description: "description",
|
|
1561
1711
|
groups: "groups",
|
|
@@ -1564,7 +1714,8 @@ export const UpdateWafOverrideResponse =
|
|
|
1564
1714
|
rewriteAction: "rewrite_action",
|
|
1565
1715
|
rules: "rules",
|
|
1566
1716
|
urls: "urls",
|
|
1567
|
-
}))
|
|
1717
|
+
}))
|
|
1718
|
+
.pipe(T.ResponsePath("result"));
|
|
1568
1719
|
export const updateWafOverride = API.make(() => ({
|
|
1569
1720
|
input: UpdateWafOverrideRequest,
|
|
1570
1721
|
output: UpdateWafOverrideResponse,
|
|
@@ -1581,7 +1732,7 @@ export const DeleteWafOverrideRequest =
|
|
|
1581
1732
|
export const DeleteWafOverrideResponse =
|
|
1582
1733
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1583
1734
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1584
|
-
});
|
|
1735
|
+
}).pipe(T.ResponsePath("result"));
|
|
1585
1736
|
export const deleteWafOverride = API.make(() => ({
|
|
1586
1737
|
input: DeleteWafOverrideRequest,
|
|
1587
1738
|
output: DeleteWafOverrideResponse,
|
|
@@ -1617,11 +1768,32 @@ export const ListWafPackagesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
1617
1768
|
name: Schema.optional(Schema.String).pipe(T.HttpQuery("name")),
|
|
1618
1769
|
order: Schema.optional(Schema.Literal("name")).pipe(T.HttpQuery("order")),
|
|
1619
1770
|
}).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/firewall/waf/packages" }));
|
|
1620
|
-
export const ListWafPackagesResponse =
|
|
1621
|
-
|
|
1771
|
+
export const ListWafPackagesResponse =
|
|
1772
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1773
|
+
result: Schema.Array(Schema.Unknown),
|
|
1774
|
+
resultInfo: Schema.Struct({
|
|
1775
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1776
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1777
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1778
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1779
|
+
}).pipe(Schema.encodeKeys({
|
|
1780
|
+
count: "count",
|
|
1781
|
+
page: "page",
|
|
1782
|
+
perPage: "per_page",
|
|
1783
|
+
totalCount: "total_count",
|
|
1784
|
+
})),
|
|
1785
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
|
|
1786
|
+
export const listWafPackages = API.makePaginated(() => ({
|
|
1622
1787
|
input: ListWafPackagesRequest,
|
|
1623
1788
|
output: ListWafPackagesResponse,
|
|
1624
1789
|
errors: [],
|
|
1790
|
+
pagination: {
|
|
1791
|
+
mode: "page",
|
|
1792
|
+
inputToken: "page",
|
|
1793
|
+
outputToken: "resultInfo.page",
|
|
1794
|
+
items: "result",
|
|
1795
|
+
pageSize: "perPage",
|
|
1796
|
+
},
|
|
1625
1797
|
}));
|
|
1626
1798
|
export const GetWafPackageGroupRequest =
|
|
1627
1799
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
@@ -1633,10 +1805,7 @@ export const GetWafPackageGroupRequest =
|
|
|
1633
1805
|
path: "/zones/{zone_id}/firewall/waf/packages/{packageId}/groups/{groupId}",
|
|
1634
1806
|
}));
|
|
1635
1807
|
export const GetWafPackageGroupResponse =
|
|
1636
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.Union([
|
|
1637
|
-
Schema.String,
|
|
1638
|
-
Schema.Null,
|
|
1639
|
-
]);
|
|
1808
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Union([Schema.String, Schema.Null]).pipe(T.ResponsePath("result"));
|
|
1640
1809
|
export const getWafPackageGroup = API.make(() => ({
|
|
1641
1810
|
input: GetWafPackageGroupRequest,
|
|
1642
1811
|
output: GetWafPackageGroupResponse,
|
|
@@ -1657,32 +1826,52 @@ export const ListWafPackageGroupsRequest =
|
|
|
1657
1826
|
path: "/zones/{zone_id}/firewall/waf/packages/{packageId}/groups",
|
|
1658
1827
|
}));
|
|
1659
1828
|
export const ListWafPackageGroupsResponse =
|
|
1660
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
Schema.
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1829
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1830
|
+
result: Schema.Array(Schema.Struct({
|
|
1831
|
+
id: Schema.String,
|
|
1832
|
+
description: Schema.Union([Schema.String, Schema.Null]),
|
|
1833
|
+
mode: Schema.Literals(["on", "off"]),
|
|
1834
|
+
name: Schema.String,
|
|
1835
|
+
rulesCount: Schema.Number,
|
|
1836
|
+
allowedModes: Schema.optional(Schema.Union([
|
|
1837
|
+
Schema.Array(Schema.Literals(["on", "off"])),
|
|
1838
|
+
Schema.Null,
|
|
1839
|
+
])),
|
|
1840
|
+
modifiedRulesCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1841
|
+
packageId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1842
|
+
}).pipe(Schema.encodeKeys({
|
|
1843
|
+
id: "id",
|
|
1844
|
+
description: "description",
|
|
1845
|
+
mode: "mode",
|
|
1846
|
+
name: "name",
|
|
1847
|
+
rulesCount: "rules_count",
|
|
1848
|
+
allowedModes: "allowed_modes",
|
|
1849
|
+
modifiedRulesCount: "modified_rules_count",
|
|
1850
|
+
packageId: "package_id",
|
|
1851
|
+
}))),
|
|
1852
|
+
resultInfo: Schema.Struct({
|
|
1853
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1854
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1855
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1856
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1857
|
+
}).pipe(Schema.encodeKeys({
|
|
1858
|
+
count: "count",
|
|
1859
|
+
page: "page",
|
|
1860
|
+
perPage: "per_page",
|
|
1861
|
+
totalCount: "total_count",
|
|
1862
|
+
})),
|
|
1863
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
|
|
1864
|
+
export const listWafPackageGroups = API.makePaginated(() => ({
|
|
1683
1865
|
input: ListWafPackageGroupsRequest,
|
|
1684
1866
|
output: ListWafPackageGroupsResponse,
|
|
1685
1867
|
errors: [],
|
|
1868
|
+
pagination: {
|
|
1869
|
+
mode: "page",
|
|
1870
|
+
inputToken: "page",
|
|
1871
|
+
outputToken: "resultInfo.page",
|
|
1872
|
+
items: "result",
|
|
1873
|
+
pageSize: "perPage",
|
|
1874
|
+
},
|
|
1686
1875
|
}));
|
|
1687
1876
|
export const PatchWafPackageGroupRequest =
|
|
1688
1877
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
@@ -1695,10 +1884,7 @@ export const PatchWafPackageGroupRequest =
|
|
|
1695
1884
|
path: "/zones/{zone_id}/firewall/waf/packages/{packageId}/groups/{groupId}",
|
|
1696
1885
|
}));
|
|
1697
1886
|
export const PatchWafPackageGroupResponse =
|
|
1698
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.Union([
|
|
1699
|
-
Schema.String,
|
|
1700
|
-
Schema.Null,
|
|
1701
|
-
]);
|
|
1887
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Union([Schema.String, Schema.Null]).pipe(T.ResponsePath("result"));
|
|
1702
1888
|
export const patchWafPackageGroup = API.make(() => ({
|
|
1703
1889
|
input: PatchWafPackageGroupRequest,
|
|
1704
1890
|
output: PatchWafPackageGroupResponse,
|
|
@@ -1714,10 +1900,7 @@ export const GetWafPackageRuleRequest =
|
|
|
1714
1900
|
path: "/zones/{zone_id}/firewall/waf/packages/{packageId}/rules/{ruleId}",
|
|
1715
1901
|
}));
|
|
1716
1902
|
export const GetWafPackageRuleResponse =
|
|
1717
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.Union([
|
|
1718
|
-
Schema.String,
|
|
1719
|
-
Schema.Null,
|
|
1720
|
-
]);
|
|
1903
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Union([Schema.String, Schema.Null]).pipe(T.ResponsePath("result"));
|
|
1721
1904
|
export const getWafPackageRule = API.make(() => ({
|
|
1722
1905
|
input: GetWafPackageRuleRequest,
|
|
1723
1906
|
output: GetWafPackageRuleResponse,
|
|
@@ -1739,65 +1922,85 @@ export const ListWafPackageRulesRequest =
|
|
|
1739
1922
|
path: "/zones/{zone_id}/firewall/waf/packages/{packageId}/rules",
|
|
1740
1923
|
}));
|
|
1741
1924
|
export const ListWafPackageRulesResponse =
|
|
1742
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
1743
|
-
Schema.
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1925
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1926
|
+
result: Schema.Array(Schema.Union([
|
|
1927
|
+
Schema.Struct({
|
|
1928
|
+
id: Schema.String,
|
|
1929
|
+
allowedModes: Schema.Array(Schema.Literals(["on", "off"])),
|
|
1930
|
+
description: Schema.String,
|
|
1931
|
+
group: Schema.Unknown,
|
|
1932
|
+
mode: Schema.Literals(["on", "off"]),
|
|
1933
|
+
packageId: Schema.String,
|
|
1934
|
+
priority: Schema.String,
|
|
1935
|
+
}).pipe(Schema.encodeKeys({
|
|
1936
|
+
id: "id",
|
|
1937
|
+
allowedModes: "allowed_modes",
|
|
1938
|
+
description: "description",
|
|
1939
|
+
group: "group",
|
|
1940
|
+
mode: "mode",
|
|
1941
|
+
packageId: "package_id",
|
|
1942
|
+
priority: "priority",
|
|
1943
|
+
})),
|
|
1944
|
+
Schema.Struct({
|
|
1945
|
+
id: Schema.String,
|
|
1946
|
+
allowedModes: Schema.Array(Schema.Literals([
|
|
1947
|
+
"default",
|
|
1948
|
+
"disable",
|
|
1949
|
+
"simulate",
|
|
1950
|
+
"block",
|
|
1951
|
+
"challenge",
|
|
1952
|
+
])),
|
|
1953
|
+
defaultMode: Schema.Literals([
|
|
1954
|
+
"disable",
|
|
1955
|
+
"simulate",
|
|
1956
|
+
"block",
|
|
1957
|
+
"challenge",
|
|
1958
|
+
]),
|
|
1959
|
+
description: Schema.String,
|
|
1960
|
+
group: Schema.Unknown,
|
|
1961
|
+
mode: Schema.Literals([
|
|
1962
|
+
"default",
|
|
1963
|
+
"disable",
|
|
1964
|
+
"simulate",
|
|
1965
|
+
"block",
|
|
1966
|
+
"challenge",
|
|
1967
|
+
]),
|
|
1968
|
+
packageId: Schema.String,
|
|
1969
|
+
priority: Schema.String,
|
|
1970
|
+
}).pipe(Schema.encodeKeys({
|
|
1971
|
+
id: "id",
|
|
1972
|
+
allowedModes: "allowed_modes",
|
|
1973
|
+
defaultMode: "default_mode",
|
|
1974
|
+
description: "description",
|
|
1975
|
+
group: "group",
|
|
1976
|
+
mode: "mode",
|
|
1977
|
+
packageId: "package_id",
|
|
1978
|
+
priority: "priority",
|
|
1979
|
+
})),
|
|
1980
|
+
])),
|
|
1981
|
+
resultInfo: Schema.Struct({
|
|
1982
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1983
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1984
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1985
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1786
1986
|
}).pipe(Schema.encodeKeys({
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
group: "group",
|
|
1792
|
-
mode: "mode",
|
|
1793
|
-
packageId: "package_id",
|
|
1794
|
-
priority: "priority",
|
|
1987
|
+
count: "count",
|
|
1988
|
+
page: "page",
|
|
1989
|
+
perPage: "per_page",
|
|
1990
|
+
totalCount: "total_count",
|
|
1795
1991
|
})),
|
|
1796
|
-
|
|
1797
|
-
export const listWafPackageRules = API.
|
|
1992
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
|
|
1993
|
+
export const listWafPackageRules = API.makePaginated(() => ({
|
|
1798
1994
|
input: ListWafPackageRulesRequest,
|
|
1799
1995
|
output: ListWafPackageRulesResponse,
|
|
1800
1996
|
errors: [],
|
|
1997
|
+
pagination: {
|
|
1998
|
+
mode: "page",
|
|
1999
|
+
inputToken: "page",
|
|
2000
|
+
outputToken: "resultInfo.page",
|
|
2001
|
+
items: "result",
|
|
2002
|
+
pageSize: "perPage",
|
|
2003
|
+
},
|
|
1801
2004
|
}));
|
|
1802
2005
|
export const PatchWafPackageRuleRequest =
|
|
1803
2006
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
@@ -1872,7 +2075,7 @@ export const PatchWafPackageRuleResponse =
|
|
|
1872
2075
|
packageId: "package_id",
|
|
1873
2076
|
priority: "priority",
|
|
1874
2077
|
})),
|
|
1875
|
-
]);
|
|
2078
|
+
]).pipe(T.ResponsePath("result"));
|
|
1876
2079
|
export const patchWafPackageRule = API.make(() => ({
|
|
1877
2080
|
input: PatchWafPackageRuleRequest,
|
|
1878
2081
|
output: PatchWafPackageRuleResponse,
|