@distilled.cloud/cloudflare 0.0.0-john
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 +59 -0
- package/lib/auth.d.ts +14 -0
- package/lib/auth.d.ts.map +1 -0
- package/lib/auth.js +13 -0
- package/lib/auth.js.map +1 -0
- package/lib/category.d.ts +2 -0
- package/lib/category.d.ts.map +1 -0
- package/lib/category.js +2 -0
- package/lib/category.js.map +1 -0
- package/lib/client/api.d.ts +12 -0
- package/lib/client/api.d.ts.map +1 -0
- package/lib/client/api.js +292 -0
- package/lib/client/api.js.map +1 -0
- package/lib/client/index.d.ts +8 -0
- package/lib/client/index.d.ts.map +1 -0
- package/lib/client/index.js +8 -0
- package/lib/client/index.js.map +1 -0
- package/lib/credentials.d.ts +68 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +136 -0
- package/lib/credentials.js.map +1 -0
- package/lib/errors.d.ts +48 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +31 -0
- package/lib/errors.js.map +1 -0
- package/lib/index.d.ts +10 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +10 -0
- package/lib/index.js.map +1 -0
- package/lib/retry.d.ts +14 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +14 -0
- package/lib/retry.js.map +1 -0
- package/lib/schemas.d.ts +29 -0
- package/lib/schemas.d.ts.map +1 -0
- package/lib/schemas.js +34 -0
- package/lib/schemas.js.map +1 -0
- 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 +296 -0
- package/lib/services/abuse-reports.d.ts.map +1 -0
- package/lib/services/abuse-reports.js +414 -0
- package/lib/services/abuse-reports.js.map +1 -0
- package/lib/services/accounts.d.ts +766 -0
- package/lib/services/accounts.d.ts.map +1 -0
- package/lib/services/accounts.js +860 -0
- package/lib/services/accounts.js.map +1 -0
- package/lib/services/acm.d.ts +73 -0
- package/lib/services/acm.d.ts.map +1 -0
- package/lib/services/acm.js +80 -0
- package/lib/services/acm.js.map +1 -0
- package/lib/services/addressing.d.ts +1321 -0
- package/lib/services/addressing.d.ts.map +1 -0
- package/lib/services/addressing.js +1863 -0
- package/lib/services/addressing.js.map +1 -0
- package/lib/services/ai-gateway.d.ts +1137 -0
- package/lib/services/ai-gateway.d.ts.map +1 -0
- package/lib/services/ai-gateway.js +1830 -0
- package/lib/services/ai-gateway.js.map +1 -0
- package/lib/services/ai.d.ts +297 -0
- package/lib/services/ai.d.ts.map +1 -0
- package/lib/services/ai.js +352 -0
- package/lib/services/ai.js.map +1 -0
- package/lib/services/aisearch.d.ts +1069 -0
- package/lib/services/aisearch.d.ts.map +1 -0
- package/lib/services/aisearch.js +2542 -0
- package/lib/services/aisearch.js.map +1 -0
- package/lib/services/alerting.d.ts +855 -0
- package/lib/services/alerting.d.ts.map +1 -0
- package/lib/services/alerting.js +1445 -0
- package/lib/services/alerting.js.map +1 -0
- package/lib/services/api-gateway.d.ts +1088 -0
- package/lib/services/api-gateway.d.ts.map +1 -0
- package/lib/services/api-gateway.js +1655 -0
- package/lib/services/api-gateway.js.map +1 -0
- package/lib/services/argo.d.ts +101 -0
- package/lib/services/argo.d.ts.map +1 -0
- package/lib/services/argo.js +113 -0
- package/lib/services/argo.js.map +1 -0
- package/lib/services/audit-logs.d.ts +46 -0
- package/lib/services/audit-logs.d.ts.map +1 -0
- package/lib/services/audit-logs.js +37 -0
- package/lib/services/audit-logs.js.map +1 -0
- package/lib/services/billing.d.ts +62 -0
- package/lib/services/billing.d.ts.map +1 -0
- package/lib/services/billing.js +102 -0
- package/lib/services/billing.js.map +1 -0
- package/lib/services/bot-management.d.ts +124 -0
- package/lib/services/bot-management.d.ts.map +1 -0
- package/lib/services/bot-management.js +262 -0
- package/lib/services/bot-management.js.map +1 -0
- package/lib/services/botnet-feed.d.ts +65 -0
- package/lib/services/botnet-feed.d.ts.map +1 -0
- package/lib/services/botnet-feed.js +88 -0
- package/lib/services/botnet-feed.js.map +1 -0
- package/lib/services/brand-protection.d.ts +194 -0
- package/lib/services/brand-protection.d.ts.map +1 -0
- package/lib/services/brand-protection.js +221 -0
- package/lib/services/brand-protection.js.map +1 -0
- package/lib/services/browser-rendering.d.ts +857 -0
- package/lib/services/browser-rendering.d.ts.map +1 -0
- package/lib/services/browser-rendering.js +1142 -0
- package/lib/services/browser-rendering.js.map +1 -0
- package/lib/services/cache.d.ts +287 -0
- package/lib/services/cache.d.ts.map +1 -0
- package/lib/services/cache.js +354 -0
- package/lib/services/cache.js.map +1 -0
- package/lib/services/calls.d.ts +223 -0
- package/lib/services/calls.d.ts.map +1 -0
- package/lib/services/calls.js +188 -0
- package/lib/services/calls.js.map +1 -0
- package/lib/services/certificate-authorities.d.ts +40 -0
- package/lib/services/certificate-authorities.d.ts.map +1 -0
- package/lib/services/certificate-authorities.js +49 -0
- package/lib/services/certificate-authorities.js.map +1 -0
- package/lib/services/client-certificates.d.ts +288 -0
- package/lib/services/client-certificates.d.ts.map +1 -0
- package/lib/services/client-certificates.js +379 -0
- package/lib/services/client-certificates.js.map +1 -0
- package/lib/services/cloud-connector.d.ts +88 -0
- package/lib/services/cloud-connector.d.ts.map +1 -0
- package/lib/services/cloud-connector.js +97 -0
- package/lib/services/cloud-connector.js.map +1 -0
- package/lib/services/cloudforce-one.d.ts +1387 -0
- package/lib/services/cloudforce-one.d.ts.map +1 -0
- package/lib/services/cloudforce-one.js +1741 -0
- package/lib/services/cloudforce-one.js.map +1 -0
- package/lib/services/connectivity.d.ts +291 -0
- package/lib/services/connectivity.d.ts.map +1 -0
- package/lib/services/connectivity.js +404 -0
- package/lib/services/connectivity.js.map +1 -0
- package/lib/services/content-scanning.d.ts +156 -0
- package/lib/services/content-scanning.d.ts.map +1 -0
- package/lib/services/content-scanning.js +175 -0
- package/lib/services/content-scanning.js.map +1 -0
- package/lib/services/custom-certificates.d.ts +240 -0
- package/lib/services/custom-certificates.d.ts.map +1 -0
- package/lib/services/custom-certificates.js +336 -0
- package/lib/services/custom-certificates.js.map +1 -0
- package/lib/services/custom-hostnames.d.ts +590 -0
- package/lib/services/custom-hostnames.d.ts.map +1 -0
- package/lib/services/custom-hostnames.js +1204 -0
- package/lib/services/custom-hostnames.js.map +1 -0
- package/lib/services/custom-nameservers.d.ts +87 -0
- package/lib/services/custom-nameservers.d.ts.map +1 -0
- package/lib/services/custom-nameservers.js +95 -0
- package/lib/services/custom-nameservers.js.map +1 -0
- package/lib/services/custom-pages.d.ts +89 -0
- package/lib/services/custom-pages.d.ts.map +1 -0
- package/lib/services/custom-pages.js +140 -0
- package/lib/services/custom-pages.js.map +1 -0
- package/lib/services/d1.d.ts +392 -0
- package/lib/services/d1.d.ts.map +1 -0
- package/lib/services/d1.js +487 -0
- package/lib/services/d1.js.map +1 -0
- package/lib/services/dcv-delegation.d.ts +24 -0
- package/lib/services/dcv-delegation.d.ts.map +1 -0
- package/lib/services/dcv-delegation.js +24 -0
- package/lib/services/dcv-delegation.js.map +1 -0
- package/lib/services/diagnostics.d.ts +208 -0
- package/lib/services/diagnostics.d.ts.map +1 -0
- package/lib/services/diagnostics.js +288 -0
- package/lib/services/diagnostics.js.map +1 -0
- package/lib/services/dns-firewall.d.ts +317 -0
- package/lib/services/dns-firewall.d.ts.map +1 -0
- package/lib/services/dns-firewall.js +400 -0
- package/lib/services/dns-firewall.js.map +1 -0
- package/lib/services/dns.d.ts +3065 -0
- package/lib/services/dns.d.ts.map +1 -0
- package/lib/services/dns.js +4627 -0
- package/lib/services/dns.js.map +1 -0
- package/lib/services/durable-objects.d.ts +92 -0
- package/lib/services/durable-objects.d.ts.map +1 -0
- package/lib/services/durable-objects.js +103 -0
- package/lib/services/durable-objects.js.map +1 -0
- package/lib/services/email-routing.d.ts +598 -0
- package/lib/services/email-routing.d.ts.map +1 -0
- package/lib/services/email-routing.js +715 -0
- package/lib/services/email-routing.js.map +1 -0
- package/lib/services/email-security.d.ts +1389 -0
- package/lib/services/email-security.d.ts.map +1 -0
- package/lib/services/email-security.js +2261 -0
- package/lib/services/email-security.js.map +1 -0
- package/lib/services/filters.d.ts +197 -0
- package/lib/services/filters.d.ts.map +1 -0
- package/lib/services/filters.js +168 -0
- package/lib/services/filters.js.map +1 -0
- package/lib/services/firewall.d.ts +1352 -0
- package/lib/services/firewall.d.ts.map +1 -0
- package/lib/services/firewall.js +2084 -0
- package/lib/services/firewall.js.map +1 -0
- package/lib/services/healthchecks.d.ts +507 -0
- package/lib/services/healthchecks.d.ts.map +1 -0
- package/lib/services/healthchecks.js +867 -0
- package/lib/services/healthchecks.js.map +1 -0
- package/lib/services/hostnames.d.ts +86 -0
- package/lib/services/hostnames.d.ts.map +1 -0
- package/lib/services/hostnames.js +111 -0
- package/lib/services/hostnames.js.map +1 -0
- package/lib/services/hyperdrive.d.ts +203 -0
- package/lib/services/hyperdrive.d.ts.map +1 -0
- package/lib/services/hyperdrive.js +300 -0
- package/lib/services/hyperdrive.js.map +1 -0
- package/lib/services/iam.d.ts +657 -0
- package/lib/services/iam.d.ts.map +1 -0
- package/lib/services/iam.js +843 -0
- package/lib/services/iam.js.map +1 -0
- package/lib/services/images.d.ts +427 -0
- package/lib/services/images.d.ts.map +1 -0
- package/lib/services/images.js +444 -0
- package/lib/services/images.js.map +1 -0
- package/lib/services/intel.d.ts +865 -0
- package/lib/services/intel.d.ts.map +1 -0
- package/lib/services/intel.js +1266 -0
- package/lib/services/intel.js.map +1 -0
- package/lib/services/ips.d.ts +28 -0
- package/lib/services/ips.d.ts.map +1 -0
- package/lib/services/ips.js +39 -0
- package/lib/services/ips.js.map +1 -0
- package/lib/services/keyless-certificates.d.ts +197 -0
- package/lib/services/keyless-certificates.d.ts.map +1 -0
- package/lib/services/keyless-certificates.js +229 -0
- package/lib/services/keyless-certificates.js.map +1 -0
- package/lib/services/kv.d.ts +369 -0
- package/lib/services/kv.d.ts.map +1 -0
- package/lib/services/kv.js +453 -0
- package/lib/services/kv.js.map +1 -0
- package/lib/services/leaked-credential-checks.d.ts +129 -0
- package/lib/services/leaked-credential-checks.d.ts.map +1 -0
- package/lib/services/leaked-credential-checks.js +138 -0
- package/lib/services/leaked-credential-checks.js.map +1 -0
- package/lib/services/load-balancers.d.ts +1973 -0
- package/lib/services/load-balancers.d.ts.map +1 -0
- package/lib/services/load-balancers.js +3181 -0
- package/lib/services/load-balancers.js.map +1 -0
- package/lib/services/logpush.d.ts +401 -0
- package/lib/services/logpush.d.ts.map +1 -0
- package/lib/services/logpush.js +732 -0
- package/lib/services/logpush.js.map +1 -0
- package/lib/services/logs.d.ts +125 -0
- package/lib/services/logs.d.ts.map +1 -0
- package/lib/services/logs.js +149 -0
- package/lib/services/logs.js.map +1 -0
- package/lib/services/magic-cloud-networking.d.ts +1892 -0
- package/lib/services/magic-cloud-networking.d.ts.map +1 -0
- package/lib/services/magic-cloud-networking.js +5291 -0
- package/lib/services/magic-cloud-networking.js.map +1 -0
- package/lib/services/magic-network-monitoring.d.ts +379 -0
- package/lib/services/magic-network-monitoring.d.ts.map +1 -0
- package/lib/services/magic-network-monitoring.js +557 -0
- package/lib/services/magic-network-monitoring.js.map +1 -0
- package/lib/services/magic-transit.d.ts +3886 -0
- package/lib/services/magic-transit.d.ts.map +1 -0
- package/lib/services/magic-transit.js +6284 -0
- package/lib/services/magic-transit.js.map +1 -0
- package/lib/services/managed-transforms.d.ts +79 -0
- package/lib/services/managed-transforms.d.ts.map +1 -0
- package/lib/services/managed-transforms.js +111 -0
- package/lib/services/managed-transforms.js.map +1 -0
- package/lib/services/memberships.d.ts +204 -0
- package/lib/services/memberships.d.ts.map +1 -0
- package/lib/services/memberships.js +308 -0
- package/lib/services/memberships.js.map +1 -0
- package/lib/services/mtls-certificates.d.ts +164 -0
- package/lib/services/mtls-certificates.d.ts.map +1 -0
- package/lib/services/mtls-certificates.js +192 -0
- package/lib/services/mtls-certificates.js.map +1 -0
- package/lib/services/network-interconnects.d.ts +410 -0
- package/lib/services/network-interconnects.d.ts.map +1 -0
- package/lib/services/network-interconnects.js +583 -0
- package/lib/services/network-interconnects.js.map +1 -0
- package/lib/services/organizations.d.ts +232 -0
- package/lib/services/organizations.d.ts.map +1 -0
- package/lib/services/organizations.js +370 -0
- package/lib/services/organizations.js.map +1 -0
- package/lib/services/origin-ca-certificates.d.ts +119 -0
- package/lib/services/origin-ca-certificates.d.ts.map +1 -0
- package/lib/services/origin-ca-certificates.js +183 -0
- package/lib/services/origin-ca-certificates.js.map +1 -0
- package/lib/services/origin-post-quantum-encryption.d.ts +50 -0
- package/lib/services/origin-post-quantum-encryption.d.ts.map +1 -0
- package/lib/services/origin-post-quantum-encryption.js +64 -0
- package/lib/services/origin-post-quantum-encryption.js.map +1 -0
- package/lib/services/origin-tls-client-auth.d.ts +308 -0
- package/lib/services/origin-tls-client-auth.d.ts.map +1 -0
- package/lib/services/origin-tls-client-auth.js +435 -0
- package/lib/services/origin-tls-client-auth.js.map +1 -0
- package/lib/services/page-rules.d.ts +773 -0
- package/lib/services/page-rules.d.ts.map +1 -0
- package/lib/services/page-rules.js +1373 -0
- package/lib/services/page-rules.js.map +1 -0
- package/lib/services/page-shield.d.ts +505 -0
- package/lib/services/page-shield.d.ts.map +1 -0
- package/lib/services/page-shield.js +520 -0
- package/lib/services/page-shield.js.map +1 -0
- package/lib/services/pages.d.ts +1949 -0
- package/lib/services/pages.d.ts.map +1 -0
- package/lib/services/pages.js +3030 -0
- package/lib/services/pages.js.map +1 -0
- package/lib/services/pipelines.d.ts +1716 -0
- package/lib/services/pipelines.d.ts.map +1 -0
- package/lib/services/pipelines.js +2991 -0
- package/lib/services/pipelines.js.map +1 -0
- package/lib/services/queues.d.ts +904 -0
- package/lib/services/queues.d.ts.map +1 -0
- package/lib/services/queues.js +1250 -0
- package/lib/services/queues.js.map +1 -0
- package/lib/services/r2-data-catalog.d.ts +341 -0
- package/lib/services/r2-data-catalog.d.ts.map +1 -0
- package/lib/services/r2-data-catalog.js +513 -0
- package/lib/services/r2-data-catalog.js.map +1 -0
- package/lib/services/r2.d.ts +1087 -0
- package/lib/services/r2.d.ts.map +1 -0
- package/lib/services/r2.js +1404 -0
- package/lib/services/r2.js.map +1 -0
- package/lib/services/radar.d.ts +9365 -0
- package/lib/services/radar.d.ts.map +1 -0
- package/lib/services/radar.js +20552 -0
- package/lib/services/radar.js.map +1 -0
- package/lib/services/rate-limits.d.ts +360 -0
- package/lib/services/rate-limits.d.ts.map +1 -0
- package/lib/services/rate-limits.js +545 -0
- package/lib/services/rate-limits.js.map +1 -0
- package/lib/services/realtime-kit.d.ts +2728 -0
- package/lib/services/realtime-kit.d.ts.map +1 -0
- package/lib/services/realtime-kit.js +5402 -0
- package/lib/services/realtime-kit.js.map +1 -0
- package/lib/services/registrar.d.ts +121 -0
- package/lib/services/registrar.d.ts.map +1 -0
- package/lib/services/registrar.js +167 -0
- package/lib/services/registrar.js.map +1 -0
- package/lib/services/request-tracers.d.ts +61 -0
- package/lib/services/request-tracers.d.ts.map +1 -0
- package/lib/services/request-tracers.js +85 -0
- package/lib/services/request-tracers.js.map +1 -0
- package/lib/services/resource-sharing.d.ts +622 -0
- package/lib/services/resource-sharing.d.ts.map +1 -0
- package/lib/services/resource-sharing.js +929 -0
- package/lib/services/resource-sharing.js.map +1 -0
- package/lib/services/rules.d.ts +346 -0
- package/lib/services/rules.d.ts.map +1 -0
- package/lib/services/rules.js +431 -0
- package/lib/services/rules.js.map +1 -0
- package/lib/services/rulesets.d.ts +3345 -0
- package/lib/services/rulesets.d.ts.map +1 -0
- package/lib/services/rulesets.js +7904 -0
- package/lib/services/rulesets.js.map +1 -0
- package/lib/services/rum.d.ts +314 -0
- package/lib/services/rum.d.ts.map +1 -0
- package/lib/services/rum.js +442 -0
- package/lib/services/rum.js.map +1 -0
- package/lib/services/schema-validation.d.ts +273 -0
- package/lib/services/schema-validation.d.ts.map +1 -0
- package/lib/services/schema-validation.js +365 -0
- package/lib/services/schema-validation.js.map +1 -0
- package/lib/services/secrets-store.d.ts +393 -0
- package/lib/services/secrets-store.d.ts.map +1 -0
- package/lib/services/secrets-store.js +452 -0
- package/lib/services/secrets-store.js.map +1 -0
- package/lib/services/security-center.d.ts +136 -0
- package/lib/services/security-center.d.ts.map +1 -0
- package/lib/services/security-center.js +196 -0
- package/lib/services/security-center.js.map +1 -0
- package/lib/services/security-txt.d.ts +105 -0
- package/lib/services/security-txt.d.ts.map +1 -0
- package/lib/services/security-txt.js +136 -0
- package/lib/services/security-txt.js.map +1 -0
- package/lib/services/snippets.d.ts +190 -0
- package/lib/services/snippets.d.ts.map +1 -0
- package/lib/services/snippets.js +221 -0
- package/lib/services/snippets.js.map +1 -0
- package/lib/services/spectrum.d.ts +350 -0
- package/lib/services/spectrum.d.ts.map +1 -0
- package/lib/services/spectrum.js +535 -0
- package/lib/services/spectrum.js.map +1 -0
- package/lib/services/speed.d.ts +257 -0
- package/lib/services/speed.d.ts.map +1 -0
- package/lib/services/speed.js +471 -0
- package/lib/services/speed.js.map +1 -0
- package/lib/services/ssl.d.ts +412 -0
- package/lib/services/ssl.d.ts.map +1 -0
- package/lib/services/ssl.js +755 -0
- package/lib/services/ssl.js.map +1 -0
- package/lib/services/stream.d.ts +1110 -0
- package/lib/services/stream.d.ts.map +1 -0
- package/lib/services/stream.js +1085 -0
- package/lib/services/stream.js.map +1 -0
- package/lib/services/token-validation.d.ts +662 -0
- package/lib/services/token-validation.d.ts.map +1 -0
- package/lib/services/token-validation.js +834 -0
- package/lib/services/token-validation.js.map +1 -0
- package/lib/services/turnstile.d.ts +272 -0
- package/lib/services/turnstile.d.ts.map +1 -0
- package/lib/services/turnstile.js +339 -0
- package/lib/services/turnstile.js.map +1 -0
- package/lib/services/url-normalization.d.ts +53 -0
- package/lib/services/url-normalization.d.ts.map +1 -0
- package/lib/services/url-normalization.js +52 -0
- package/lib/services/url-normalization.js.map +1 -0
- package/lib/services/url-scanner.d.ts +612 -0
- package/lib/services/url-scanner.d.ts.map +1 -0
- package/lib/services/url-scanner.js +915 -0
- package/lib/services/url-scanner.js.map +1 -0
- package/lib/services/user.d.ts +507 -0
- package/lib/services/user.d.ts.map +1 -0
- package/lib/services/user.js +634 -0
- package/lib/services/user.js.map +1 -0
- package/lib/services/vectorize.d.ts +297 -0
- package/lib/services/vectorize.d.ts.map +1 -0
- package/lib/services/vectorize.js +351 -0
- package/lib/services/vectorize.js.map +1 -0
- package/lib/services/waiting-rooms.d.ts +1149 -0
- package/lib/services/waiting-rooms.d.ts.map +1 -0
- package/lib/services/waiting-rooms.js +1859 -0
- package/lib/services/waiting-rooms.js.map +1 -0
- package/lib/services/web3.d.ts +289 -0
- package/lib/services/web3.d.ts.map +1 -0
- package/lib/services/web3.js +381 -0
- package/lib/services/web3.js.map +1 -0
- package/lib/services/workers-for-platforms.d.ts +1394 -0
- package/lib/services/workers-for-platforms.d.ts.map +1 -0
- package/lib/services/workers-for-platforms.js +2121 -0
- package/lib/services/workers-for-platforms.js.map +1 -0
- package/lib/services/workers.d.ts +3827 -0
- package/lib/services/workers.d.ts.map +1 -0
- package/lib/services/workers.js +6105 -0
- package/lib/services/workers.js.map +1 -0
- package/lib/services/workflows.d.ts +442 -0
- package/lib/services/workflows.d.ts.map +1 -0
- package/lib/services/workflows.js +599 -0
- package/lib/services/workflows.js.map +1 -0
- package/lib/services/zaraz.d.ts +312 -0
- package/lib/services/zaraz.d.ts.map +1 -0
- package/lib/services/zaraz.js +305 -0
- package/lib/services/zaraz.js.map +1 -0
- package/lib/services/zero-trust.d.ts +18235 -0
- package/lib/services/zero-trust.d.ts.map +1 -0
- package/lib/services/zero-trust.js +30268 -0
- package/lib/services/zero-trust.js.map +1 -0
- package/lib/services/zones.d.ts +1382 -0
- package/lib/services/zones.d.ts.map +1 -0
- package/lib/services/zones.js +2477 -0
- package/lib/services/zones.js.map +1 -0
- package/lib/traits.d.ts +28 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +26 -0
- package/lib/traits.js.map +1 -0
- package/package.json +82 -0
- package/src/auth.ts +15 -0
- package/src/category.ts +1 -0
- package/src/client/api.ts +421 -0
- package/src/client/index.ts +7 -0
- package/src/credentials.ts +271 -0
- package/src/errors.ts +73 -0
- package/src/index.ts +9 -0
- package/src/retry.ts +35 -0
- package/src/schemas.ts +51 -0
- package/src/sensitive.ts +4 -0
- package/src/services/abuse-reports.ts +955 -0
- package/src/services/accounts.ts +2152 -0
- package/src/services/acm.ts +178 -0
- package/src/services/addressing.ts +4262 -0
- package/src/services/ai-gateway.ts +3773 -0
- package/src/services/ai.ts +901 -0
- package/src/services/aisearch.ts +5215 -0
- package/src/services/alerting.ts +3303 -0
- package/src/services/api-gateway.ts +3890 -0
- package/src/services/argo.ts +270 -0
- package/src/services/audit-logs.ts +90 -0
- package/src/services/billing.ts +176 -0
- package/src/services/bot-management.ts +545 -0
- package/src/services/botnet-feed.ts +205 -0
- package/src/services/brand-protection.ts +575 -0
- package/src/services/browser-rendering.ts +2720 -0
- package/src/services/cache.ts +877 -0
- package/src/services/calls.ts +548 -0
- package/src/services/certificate-authorities.ts +114 -0
- package/src/services/client-certificates.ts +815 -0
- package/src/services/cloud-connector.ts +248 -0
- package/src/services/cloudforce-one.ts +4104 -0
- package/src/services/connectivity.ts +706 -0
- package/src/services/content-scanning.ts +458 -0
- package/src/services/custom-certificates.ts +690 -0
- package/src/services/custom-hostnames.ts +2641 -0
- package/src/services/custom-nameservers.ts +235 -0
- package/src/services/custom-pages.ts +311 -0
- package/src/services/d1.ts +1208 -0
- package/src/services/dcv-delegation.ts +54 -0
- package/src/services/diagnostics.ts +677 -0
- package/src/services/dns-firewall.ts +904 -0
- package/src/services/dns.ts +9277 -0
- package/src/services/durable-objects.ts +237 -0
- package/src/services/email-routing.ts +1796 -0
- package/src/services/email-security.ts +5052 -0
- package/src/services/filters.ts +488 -0
- package/src/services/firewall.ts +4728 -0
- package/src/services/healthchecks.ts +1866 -0
- package/src/services/hostnames.ts +254 -0
- package/src/services/hyperdrive.ts +595 -0
- package/src/services/iam.ts +1969 -0
- package/src/services/images.ts +1180 -0
- package/src/services/intel.ts +3072 -0
- package/src/services/ips.ts +88 -0
- package/src/services/keyless-certificates.ts +509 -0
- package/src/services/kv.ts +1129 -0
- package/src/services/leaked-credential-checks.ts +364 -0
- package/src/services/load-balancers.ts +6993 -0
- package/src/services/logpush.ts +1695 -0
- package/src/services/logs.ts +389 -0
- package/src/services/magic-cloud-networking.ts +10747 -0
- package/src/services/magic-network-monitoring.ts +1200 -0
- package/src/services/magic-transit.ts +13673 -0
- package/src/services/managed-transforms.ts +245 -0
- package/src/services/memberships.ts +698 -0
- package/src/services/mtls-certificates.ts +444 -0
- package/src/services/network-interconnects.ts +1253 -0
- package/src/services/organizations.ts +738 -0
- package/src/services/origin-ca-certificates.ts +369 -0
- package/src/services/origin-post-quantum-encryption.ts +136 -0
- package/src/services/origin-tls-client-auth.ts +1002 -0
- package/src/services/page-rules.ts +2632 -0
- package/src/services/page-shield.ts +1371 -0
- package/src/services/pages.ts +6167 -0
- package/src/services/pipelines.ts +6455 -0
- package/src/services/queues.ts +2827 -0
- package/src/services/r2-data-catalog.ts +1151 -0
- package/src/services/r2.ts +3529 -0
- package/src/services/radar.ts +42836 -0
- package/src/services/rate-limits.ts +1252 -0
- package/src/services/realtime-kit.ts +11080 -0
- package/src/services/registrar.ts +390 -0
- package/src/services/request-tracers.ts +161 -0
- package/src/services/resource-sharing.ts +2082 -0
- package/src/services/rules.ts +953 -0
- package/src/services/rulesets.ts +15361 -0
- package/src/services/rum.ts +994 -0
- package/src/services/schema-validation.ts +869 -0
- package/src/services/secrets-store.ts +1050 -0
- package/src/services/security-center.ts +495 -0
- package/src/services/security-txt.ts +317 -0
- package/src/services/snippets.ts +562 -0
- package/src/services/spectrum.ts +1190 -0
- package/src/services/speed.ts +1154 -0
- package/src/services/ssl.ts +1714 -0
- package/src/services/stream.ts +3008 -0
- package/src/services/token-validation.ts +1825 -0
- package/src/services/turnstile.ts +725 -0
- package/src/services/url-normalization.ts +133 -0
- package/src/services/url-scanner.ts +1851 -0
- package/src/services/user.ts +1587 -0
- package/src/services/vectorize.ts +875 -0
- package/src/services/waiting-rooms.ts +4216 -0
- package/src/services/web3.ts +899 -0
- package/src/services/workers-for-platforms.ts +4134 -0
- package/src/services/workers.ts +12298 -0
- package/src/services/workflows.ts +1372 -0
- package/src/services/zaraz.ts +833 -0
- package/src/services/zero-trust.ts +64685 -0
- package/src/services/zones.ts +5106 -0
- package/src/traits.ts +47 -0
|
@@ -0,0 +1,869 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cloudflare SCHEMA-VALIDATION API
|
|
3
|
+
*
|
|
4
|
+
* Generated from Cloudflare TypeScript SDK.
|
|
5
|
+
* DO NOT EDIT - regenerate with: bun scripts/generate.ts --service schema-validation
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import * as stream from "effect/Stream";
|
|
9
|
+
import * as Schema from "effect/Schema";
|
|
10
|
+
import type * as HttpClient from "effect/unstable/http/HttpClient";
|
|
11
|
+
import * as API from "../client/api.ts";
|
|
12
|
+
import * as T from "../traits.ts";
|
|
13
|
+
import type { Credentials } from "../credentials.ts";
|
|
14
|
+
import { type DefaultErrors } from "../errors.ts";
|
|
15
|
+
|
|
16
|
+
// =============================================================================
|
|
17
|
+
// Schema
|
|
18
|
+
// =============================================================================
|
|
19
|
+
|
|
20
|
+
export interface GetSchemaRequest {
|
|
21
|
+
schemaId: string;
|
|
22
|
+
/** Path param: Identifier. */
|
|
23
|
+
zoneId: string;
|
|
24
|
+
/** Query param: Omit the source-files of schemas and only retrieve their meta-data. */
|
|
25
|
+
omitSource?: boolean;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export const GetSchemaRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
29
|
+
schemaId: Schema.String.pipe(T.HttpPath("schemaId")),
|
|
30
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
31
|
+
omitSource: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("omit_source")),
|
|
32
|
+
}).pipe(
|
|
33
|
+
T.Http({
|
|
34
|
+
method: "GET",
|
|
35
|
+
path: "/zones/{zone_id}/schema_validation/schemas/{schemaId}",
|
|
36
|
+
}),
|
|
37
|
+
) as unknown as Schema.Schema<GetSchemaRequest>;
|
|
38
|
+
|
|
39
|
+
export interface GetSchemaResponse {
|
|
40
|
+
createdAt: string;
|
|
41
|
+
/** The kind of the schema */
|
|
42
|
+
kind: "openapi_v3";
|
|
43
|
+
/** A human-readable name for the schema */
|
|
44
|
+
name: string;
|
|
45
|
+
/** A unique identifier of this schema */
|
|
46
|
+
schemaId: string;
|
|
47
|
+
/** The raw schema, e.g., the OpenAPI schema, either as JSON or YAML */
|
|
48
|
+
source: string;
|
|
49
|
+
/** An indicator if this schema is enabled */
|
|
50
|
+
validationEnabled?: boolean | null;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export const GetSchemaResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
54
|
+
createdAt: Schema.String,
|
|
55
|
+
kind: Schema.Literal("openapi_v3"),
|
|
56
|
+
name: Schema.String,
|
|
57
|
+
schemaId: Schema.String,
|
|
58
|
+
source: Schema.String,
|
|
59
|
+
validationEnabled: Schema.optional(
|
|
60
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
61
|
+
),
|
|
62
|
+
})
|
|
63
|
+
.pipe(
|
|
64
|
+
Schema.encodeKeys({
|
|
65
|
+
createdAt: "created_at",
|
|
66
|
+
kind: "kind",
|
|
67
|
+
name: "name",
|
|
68
|
+
schemaId: "schema_id",
|
|
69
|
+
source: "source",
|
|
70
|
+
validationEnabled: "validation_enabled",
|
|
71
|
+
}),
|
|
72
|
+
)
|
|
73
|
+
.pipe(
|
|
74
|
+
T.ResponsePath("result"),
|
|
75
|
+
) as unknown as Schema.Schema<GetSchemaResponse>;
|
|
76
|
+
|
|
77
|
+
export type GetSchemaError = DefaultErrors;
|
|
78
|
+
|
|
79
|
+
export const getSchema: API.OperationMethod<
|
|
80
|
+
GetSchemaRequest,
|
|
81
|
+
GetSchemaResponse,
|
|
82
|
+
GetSchemaError,
|
|
83
|
+
Credentials | HttpClient.HttpClient
|
|
84
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
85
|
+
input: GetSchemaRequest,
|
|
86
|
+
output: GetSchemaResponse,
|
|
87
|
+
errors: [],
|
|
88
|
+
}));
|
|
89
|
+
|
|
90
|
+
export interface ListSchemasRequest {
|
|
91
|
+
/** Path param: Identifier. */
|
|
92
|
+
zoneId: string;
|
|
93
|
+
/** Query param: Omit the source-files of schemas and only retrieve their meta-data. */
|
|
94
|
+
omitSource?: boolean;
|
|
95
|
+
/** Query param: Filter for enabled schemas */
|
|
96
|
+
validationEnabled?: boolean;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export const ListSchemasRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
100
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
101
|
+
omitSource: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("omit_source")),
|
|
102
|
+
validationEnabled: Schema.optional(Schema.Boolean).pipe(
|
|
103
|
+
T.HttpQuery("validation_enabled"),
|
|
104
|
+
),
|
|
105
|
+
}).pipe(
|
|
106
|
+
T.Http({ method: "GET", path: "/zones/{zone_id}/schema_validation/schemas" }),
|
|
107
|
+
) as unknown as Schema.Schema<ListSchemasRequest>;
|
|
108
|
+
|
|
109
|
+
export interface ListSchemasResponse {
|
|
110
|
+
result: {
|
|
111
|
+
createdAt: string;
|
|
112
|
+
kind: "openapi_v3";
|
|
113
|
+
name: string;
|
|
114
|
+
schemaId: string;
|
|
115
|
+
source: string;
|
|
116
|
+
validationEnabled?: boolean | null;
|
|
117
|
+
}[];
|
|
118
|
+
resultInfo: {
|
|
119
|
+
count?: number | null;
|
|
120
|
+
page?: number | null;
|
|
121
|
+
perPage?: number | null;
|
|
122
|
+
totalCount?: number | null;
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export const ListSchemasResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
127
|
+
result: Schema.Array(
|
|
128
|
+
Schema.Struct({
|
|
129
|
+
createdAt: Schema.String,
|
|
130
|
+
kind: Schema.Literal("openapi_v3"),
|
|
131
|
+
name: Schema.String,
|
|
132
|
+
schemaId: Schema.String,
|
|
133
|
+
source: Schema.String,
|
|
134
|
+
validationEnabled: Schema.optional(
|
|
135
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
136
|
+
),
|
|
137
|
+
}).pipe(
|
|
138
|
+
Schema.encodeKeys({
|
|
139
|
+
createdAt: "created_at",
|
|
140
|
+
kind: "kind",
|
|
141
|
+
name: "name",
|
|
142
|
+
schemaId: "schema_id",
|
|
143
|
+
source: "source",
|
|
144
|
+
validationEnabled: "validation_enabled",
|
|
145
|
+
}),
|
|
146
|
+
),
|
|
147
|
+
),
|
|
148
|
+
resultInfo: Schema.Struct({
|
|
149
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
150
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
151
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
152
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
153
|
+
}).pipe(
|
|
154
|
+
Schema.encodeKeys({
|
|
155
|
+
count: "count",
|
|
156
|
+
page: "page",
|
|
157
|
+
perPage: "per_page",
|
|
158
|
+
totalCount: "total_count",
|
|
159
|
+
}),
|
|
160
|
+
),
|
|
161
|
+
}).pipe(
|
|
162
|
+
Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
|
|
163
|
+
) as unknown as Schema.Schema<ListSchemasResponse>;
|
|
164
|
+
|
|
165
|
+
export type ListSchemasError = DefaultErrors;
|
|
166
|
+
|
|
167
|
+
export const listSchemas: API.PaginatedOperationMethod<
|
|
168
|
+
ListSchemasRequest,
|
|
169
|
+
ListSchemasResponse,
|
|
170
|
+
ListSchemasError,
|
|
171
|
+
Credentials | HttpClient.HttpClient
|
|
172
|
+
> & {
|
|
173
|
+
pages: (
|
|
174
|
+
input: ListSchemasRequest,
|
|
175
|
+
) => stream.Stream<
|
|
176
|
+
ListSchemasResponse,
|
|
177
|
+
ListSchemasError,
|
|
178
|
+
Credentials | HttpClient.HttpClient
|
|
179
|
+
>;
|
|
180
|
+
items: (input: ListSchemasRequest) => stream.Stream<
|
|
181
|
+
{
|
|
182
|
+
createdAt: string;
|
|
183
|
+
kind: "openapi_v3";
|
|
184
|
+
name: string;
|
|
185
|
+
schemaId: string;
|
|
186
|
+
source: string;
|
|
187
|
+
validationEnabled?: boolean | null;
|
|
188
|
+
},
|
|
189
|
+
ListSchemasError,
|
|
190
|
+
Credentials | HttpClient.HttpClient
|
|
191
|
+
>;
|
|
192
|
+
} = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
193
|
+
input: ListSchemasRequest,
|
|
194
|
+
output: ListSchemasResponse,
|
|
195
|
+
errors: [],
|
|
196
|
+
pagination: {
|
|
197
|
+
mode: "page",
|
|
198
|
+
inputToken: "page",
|
|
199
|
+
outputToken: "resultInfo.page",
|
|
200
|
+
items: "result",
|
|
201
|
+
pageSize: "perPage",
|
|
202
|
+
} as const,
|
|
203
|
+
}));
|
|
204
|
+
|
|
205
|
+
export interface CreateSchemaRequest {
|
|
206
|
+
/** Path param: Identifier. */
|
|
207
|
+
zoneId: string;
|
|
208
|
+
/** Body param: The kind of the schema */
|
|
209
|
+
kind: "openapi_v3";
|
|
210
|
+
/** Body param: A human-readable name for the schema */
|
|
211
|
+
name: string;
|
|
212
|
+
/** Body param: The raw schema, e.g., the OpenAPI schema, either as JSON or YAML */
|
|
213
|
+
source: string;
|
|
214
|
+
/** Body param: An indicator if this schema is enabled */
|
|
215
|
+
validationEnabled: boolean;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
export const CreateSchemaRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
219
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
220
|
+
kind: Schema.Literal("openapi_v3"),
|
|
221
|
+
name: Schema.String,
|
|
222
|
+
source: Schema.String,
|
|
223
|
+
validationEnabled: Schema.Boolean,
|
|
224
|
+
}).pipe(
|
|
225
|
+
Schema.encodeKeys({
|
|
226
|
+
kind: "kind",
|
|
227
|
+
name: "name",
|
|
228
|
+
source: "source",
|
|
229
|
+
validationEnabled: "validation_enabled",
|
|
230
|
+
}),
|
|
231
|
+
T.Http({
|
|
232
|
+
method: "POST",
|
|
233
|
+
path: "/zones/{zone_id}/schema_validation/schemas",
|
|
234
|
+
}),
|
|
235
|
+
) as unknown as Schema.Schema<CreateSchemaRequest>;
|
|
236
|
+
|
|
237
|
+
export interface CreateSchemaResponse {
|
|
238
|
+
createdAt: string;
|
|
239
|
+
/** The kind of the schema */
|
|
240
|
+
kind: "openapi_v3";
|
|
241
|
+
/** A human-readable name for the schema */
|
|
242
|
+
name: string;
|
|
243
|
+
/** A unique identifier of this schema */
|
|
244
|
+
schemaId: string;
|
|
245
|
+
/** The raw schema, e.g., the OpenAPI schema, either as JSON or YAML */
|
|
246
|
+
source: string;
|
|
247
|
+
/** An indicator if this schema is enabled */
|
|
248
|
+
validationEnabled?: boolean | null;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
export const CreateSchemaResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
252
|
+
createdAt: Schema.String,
|
|
253
|
+
kind: Schema.Literal("openapi_v3"),
|
|
254
|
+
name: Schema.String,
|
|
255
|
+
schemaId: Schema.String,
|
|
256
|
+
source: Schema.String,
|
|
257
|
+
validationEnabled: Schema.optional(
|
|
258
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
259
|
+
),
|
|
260
|
+
})
|
|
261
|
+
.pipe(
|
|
262
|
+
Schema.encodeKeys({
|
|
263
|
+
createdAt: "created_at",
|
|
264
|
+
kind: "kind",
|
|
265
|
+
name: "name",
|
|
266
|
+
schemaId: "schema_id",
|
|
267
|
+
source: "source",
|
|
268
|
+
validationEnabled: "validation_enabled",
|
|
269
|
+
}),
|
|
270
|
+
)
|
|
271
|
+
.pipe(
|
|
272
|
+
T.ResponsePath("result"),
|
|
273
|
+
) as unknown as Schema.Schema<CreateSchemaResponse>;
|
|
274
|
+
|
|
275
|
+
export type CreateSchemaError = DefaultErrors;
|
|
276
|
+
|
|
277
|
+
export const createSchema: API.OperationMethod<
|
|
278
|
+
CreateSchemaRequest,
|
|
279
|
+
CreateSchemaResponse,
|
|
280
|
+
CreateSchemaError,
|
|
281
|
+
Credentials | HttpClient.HttpClient
|
|
282
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
283
|
+
input: CreateSchemaRequest,
|
|
284
|
+
output: CreateSchemaResponse,
|
|
285
|
+
errors: [],
|
|
286
|
+
}));
|
|
287
|
+
|
|
288
|
+
export interface PatchSchemaRequest {
|
|
289
|
+
schemaId: string;
|
|
290
|
+
/** Path param: Identifier. */
|
|
291
|
+
zoneId: string;
|
|
292
|
+
/** Body param: Flag whether schema is enabled for validation. */
|
|
293
|
+
validationEnabled?: boolean;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
export const PatchSchemaRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
297
|
+
schemaId: Schema.String.pipe(T.HttpPath("schemaId")),
|
|
298
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
299
|
+
validationEnabled: Schema.optional(Schema.Boolean),
|
|
300
|
+
}).pipe(
|
|
301
|
+
Schema.encodeKeys({ validationEnabled: "validation_enabled" }),
|
|
302
|
+
T.Http({
|
|
303
|
+
method: "PATCH",
|
|
304
|
+
path: "/zones/{zone_id}/schema_validation/schemas/{schemaId}",
|
|
305
|
+
}),
|
|
306
|
+
) as unknown as Schema.Schema<PatchSchemaRequest>;
|
|
307
|
+
|
|
308
|
+
export interface PatchSchemaResponse {
|
|
309
|
+
createdAt: string;
|
|
310
|
+
/** The kind of the schema */
|
|
311
|
+
kind: "openapi_v3";
|
|
312
|
+
/** A human-readable name for the schema */
|
|
313
|
+
name: string;
|
|
314
|
+
/** A unique identifier of this schema */
|
|
315
|
+
schemaId: string;
|
|
316
|
+
/** The raw schema, e.g., the OpenAPI schema, either as JSON or YAML */
|
|
317
|
+
source: string;
|
|
318
|
+
/** An indicator if this schema is enabled */
|
|
319
|
+
validationEnabled?: boolean | null;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
export const PatchSchemaResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
323
|
+
createdAt: Schema.String,
|
|
324
|
+
kind: Schema.Literal("openapi_v3"),
|
|
325
|
+
name: Schema.String,
|
|
326
|
+
schemaId: Schema.String,
|
|
327
|
+
source: Schema.String,
|
|
328
|
+
validationEnabled: Schema.optional(
|
|
329
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
330
|
+
),
|
|
331
|
+
})
|
|
332
|
+
.pipe(
|
|
333
|
+
Schema.encodeKeys({
|
|
334
|
+
createdAt: "created_at",
|
|
335
|
+
kind: "kind",
|
|
336
|
+
name: "name",
|
|
337
|
+
schemaId: "schema_id",
|
|
338
|
+
source: "source",
|
|
339
|
+
validationEnabled: "validation_enabled",
|
|
340
|
+
}),
|
|
341
|
+
)
|
|
342
|
+
.pipe(
|
|
343
|
+
T.ResponsePath("result"),
|
|
344
|
+
) as unknown as Schema.Schema<PatchSchemaResponse>;
|
|
345
|
+
|
|
346
|
+
export type PatchSchemaError = DefaultErrors;
|
|
347
|
+
|
|
348
|
+
export const patchSchema: API.OperationMethod<
|
|
349
|
+
PatchSchemaRequest,
|
|
350
|
+
PatchSchemaResponse,
|
|
351
|
+
PatchSchemaError,
|
|
352
|
+
Credentials | HttpClient.HttpClient
|
|
353
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
354
|
+
input: PatchSchemaRequest,
|
|
355
|
+
output: PatchSchemaResponse,
|
|
356
|
+
errors: [],
|
|
357
|
+
}));
|
|
358
|
+
|
|
359
|
+
export interface DeleteSchemaRequest {
|
|
360
|
+
schemaId: string;
|
|
361
|
+
/** Identifier. */
|
|
362
|
+
zoneId: string;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
export const DeleteSchemaRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
366
|
+
schemaId: Schema.String.pipe(T.HttpPath("schemaId")),
|
|
367
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
368
|
+
}).pipe(
|
|
369
|
+
T.Http({
|
|
370
|
+
method: "DELETE",
|
|
371
|
+
path: "/zones/{zone_id}/schema_validation/schemas/{schemaId}",
|
|
372
|
+
}),
|
|
373
|
+
) as unknown as Schema.Schema<DeleteSchemaRequest>;
|
|
374
|
+
|
|
375
|
+
export interface DeleteSchemaResponse {
|
|
376
|
+
/** The ID of the schema that was just deleted */
|
|
377
|
+
id: string;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
export const DeleteSchemaResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
381
|
+
id: Schema.String,
|
|
382
|
+
}).pipe(
|
|
383
|
+
T.ResponsePath("result"),
|
|
384
|
+
) as unknown as Schema.Schema<DeleteSchemaResponse>;
|
|
385
|
+
|
|
386
|
+
export type DeleteSchemaError = DefaultErrors;
|
|
387
|
+
|
|
388
|
+
export const deleteSchema: API.OperationMethod<
|
|
389
|
+
DeleteSchemaRequest,
|
|
390
|
+
DeleteSchemaResponse,
|
|
391
|
+
DeleteSchemaError,
|
|
392
|
+
Credentials | HttpClient.HttpClient
|
|
393
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
394
|
+
input: DeleteSchemaRequest,
|
|
395
|
+
output: DeleteSchemaResponse,
|
|
396
|
+
errors: [],
|
|
397
|
+
}));
|
|
398
|
+
|
|
399
|
+
// =============================================================================
|
|
400
|
+
// Setting
|
|
401
|
+
// =============================================================================
|
|
402
|
+
|
|
403
|
+
export interface GetSettingRequest {
|
|
404
|
+
/** Identifier. */
|
|
405
|
+
zoneId: string;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
export const GetSettingRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
409
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
410
|
+
}).pipe(
|
|
411
|
+
T.Http({
|
|
412
|
+
method: "GET",
|
|
413
|
+
path: "/zones/{zone_id}/schema_validation/settings",
|
|
414
|
+
}),
|
|
415
|
+
) as unknown as Schema.Schema<GetSettingRequest>;
|
|
416
|
+
|
|
417
|
+
export interface GetSettingResponse {
|
|
418
|
+
/** The default mitigation action used Mitigation actions are as follows: - `log` - log request when request does not conform to schema - `block` - deny access to the site when request does not conform */
|
|
419
|
+
validationDefaultMitigationAction: "none" | "log" | "block";
|
|
420
|
+
/** When not null, this overrides global both zone level and operation level mitigation actions. This can serve as a quick way to disable schema validation for the whole zone. - `"none"` will skip runnin */
|
|
421
|
+
validationOverrideMitigationAction?: "none" | null;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
export const GetSettingResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
425
|
+
validationDefaultMitigationAction: Schema.Literals(["none", "log", "block"]),
|
|
426
|
+
validationOverrideMitigationAction: Schema.optional(
|
|
427
|
+
Schema.Union([Schema.Literal("none"), Schema.Null]),
|
|
428
|
+
),
|
|
429
|
+
})
|
|
430
|
+
.pipe(
|
|
431
|
+
Schema.encodeKeys({
|
|
432
|
+
validationDefaultMitigationAction: "validation_default_mitigation_action",
|
|
433
|
+
validationOverrideMitigationAction:
|
|
434
|
+
"validation_override_mitigation_action",
|
|
435
|
+
}),
|
|
436
|
+
)
|
|
437
|
+
.pipe(
|
|
438
|
+
T.ResponsePath("result"),
|
|
439
|
+
) as unknown as Schema.Schema<GetSettingResponse>;
|
|
440
|
+
|
|
441
|
+
export type GetSettingError = DefaultErrors;
|
|
442
|
+
|
|
443
|
+
export const getSetting: API.OperationMethod<
|
|
444
|
+
GetSettingRequest,
|
|
445
|
+
GetSettingResponse,
|
|
446
|
+
GetSettingError,
|
|
447
|
+
Credentials | HttpClient.HttpClient
|
|
448
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
449
|
+
input: GetSettingRequest,
|
|
450
|
+
output: GetSettingResponse,
|
|
451
|
+
errors: [],
|
|
452
|
+
}));
|
|
453
|
+
|
|
454
|
+
export interface PutSettingRequest {
|
|
455
|
+
/** Path param: Identifier. */
|
|
456
|
+
zoneId: string;
|
|
457
|
+
/** Body param: The default mitigation action used Mitigation actions are as follows: - `"log"` - log request when request does not conform to schema - `"block"` - deny access to the site when request do */
|
|
458
|
+
validationDefaultMitigationAction: "none" | "log" | "block";
|
|
459
|
+
/** Body param: When set, this overrides both zone level and operation level mitigation actions. - `"none"` - skip running schema validation entirely for the request - `null` - clears any existing overri */
|
|
460
|
+
validationOverrideMitigationAction?: "none" | null;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
export const PutSettingRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
464
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
465
|
+
validationDefaultMitigationAction: Schema.Literals(["none", "log", "block"]),
|
|
466
|
+
validationOverrideMitigationAction: Schema.optional(
|
|
467
|
+
Schema.Union([Schema.Literal("none"), Schema.Null]),
|
|
468
|
+
),
|
|
469
|
+
}).pipe(
|
|
470
|
+
Schema.encodeKeys({
|
|
471
|
+
validationDefaultMitigationAction: "validation_default_mitigation_action",
|
|
472
|
+
validationOverrideMitigationAction: "validation_override_mitigation_action",
|
|
473
|
+
}),
|
|
474
|
+
T.Http({
|
|
475
|
+
method: "PUT",
|
|
476
|
+
path: "/zones/{zone_id}/schema_validation/settings",
|
|
477
|
+
}),
|
|
478
|
+
) as unknown as Schema.Schema<PutSettingRequest>;
|
|
479
|
+
|
|
480
|
+
export interface PutSettingResponse {
|
|
481
|
+
/** The default mitigation action used Mitigation actions are as follows: - `log` - log request when request does not conform to schema - `block` - deny access to the site when request does not conform */
|
|
482
|
+
validationDefaultMitigationAction: "none" | "log" | "block";
|
|
483
|
+
/** When not null, this overrides global both zone level and operation level mitigation actions. This can serve as a quick way to disable schema validation for the whole zone. - `"none"` will skip runnin */
|
|
484
|
+
validationOverrideMitigationAction?: "none" | null;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
export const PutSettingResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
488
|
+
validationDefaultMitigationAction: Schema.Literals(["none", "log", "block"]),
|
|
489
|
+
validationOverrideMitigationAction: Schema.optional(
|
|
490
|
+
Schema.Union([Schema.Literal("none"), Schema.Null]),
|
|
491
|
+
),
|
|
492
|
+
})
|
|
493
|
+
.pipe(
|
|
494
|
+
Schema.encodeKeys({
|
|
495
|
+
validationDefaultMitigationAction: "validation_default_mitigation_action",
|
|
496
|
+
validationOverrideMitigationAction:
|
|
497
|
+
"validation_override_mitigation_action",
|
|
498
|
+
}),
|
|
499
|
+
)
|
|
500
|
+
.pipe(
|
|
501
|
+
T.ResponsePath("result"),
|
|
502
|
+
) as unknown as Schema.Schema<PutSettingResponse>;
|
|
503
|
+
|
|
504
|
+
export type PutSettingError = DefaultErrors;
|
|
505
|
+
|
|
506
|
+
export const putSetting: API.OperationMethod<
|
|
507
|
+
PutSettingRequest,
|
|
508
|
+
PutSettingResponse,
|
|
509
|
+
PutSettingError,
|
|
510
|
+
Credentials | HttpClient.HttpClient
|
|
511
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
512
|
+
input: PutSettingRequest,
|
|
513
|
+
output: PutSettingResponse,
|
|
514
|
+
errors: [],
|
|
515
|
+
}));
|
|
516
|
+
|
|
517
|
+
export interface PatchSettingRequest {
|
|
518
|
+
/** Path param: Identifier. */
|
|
519
|
+
zoneId: string;
|
|
520
|
+
/** Body param: The default mitigation action used Mitigation actions are as follows: - `"log"` - log request when request does not conform to schema - `"block"` - deny access to the site when request do */
|
|
521
|
+
validationDefaultMitigationAction?: "none" | "log" | "block";
|
|
522
|
+
/** Body param: When set, this overrides both zone level and operation level mitigation actions. - `"none"` - skip running schema validation entirely for the request - `null` - clears any existing overri */
|
|
523
|
+
validationOverrideMitigationAction?: "none" | null;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
export const PatchSettingRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
527
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
528
|
+
validationDefaultMitigationAction: Schema.optional(
|
|
529
|
+
Schema.Literals(["none", "log", "block"]),
|
|
530
|
+
),
|
|
531
|
+
validationOverrideMitigationAction: Schema.optional(
|
|
532
|
+
Schema.Union([Schema.Literal("none"), Schema.Null]),
|
|
533
|
+
),
|
|
534
|
+
}).pipe(
|
|
535
|
+
Schema.encodeKeys({
|
|
536
|
+
validationDefaultMitigationAction: "validation_default_mitigation_action",
|
|
537
|
+
validationOverrideMitigationAction: "validation_override_mitigation_action",
|
|
538
|
+
}),
|
|
539
|
+
T.Http({
|
|
540
|
+
method: "PATCH",
|
|
541
|
+
path: "/zones/{zone_id}/schema_validation/settings",
|
|
542
|
+
}),
|
|
543
|
+
) as unknown as Schema.Schema<PatchSettingRequest>;
|
|
544
|
+
|
|
545
|
+
export interface PatchSettingResponse {
|
|
546
|
+
/** The default mitigation action used Mitigation actions are as follows: - `log` - log request when request does not conform to schema - `block` - deny access to the site when request does not conform */
|
|
547
|
+
validationDefaultMitigationAction: "none" | "log" | "block";
|
|
548
|
+
/** When not null, this overrides global both zone level and operation level mitigation actions. This can serve as a quick way to disable schema validation for the whole zone. - `"none"` will skip runnin */
|
|
549
|
+
validationOverrideMitigationAction?: "none" | null;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
export const PatchSettingResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
553
|
+
validationDefaultMitigationAction: Schema.Literals(["none", "log", "block"]),
|
|
554
|
+
validationOverrideMitigationAction: Schema.optional(
|
|
555
|
+
Schema.Union([Schema.Literal("none"), Schema.Null]),
|
|
556
|
+
),
|
|
557
|
+
})
|
|
558
|
+
.pipe(
|
|
559
|
+
Schema.encodeKeys({
|
|
560
|
+
validationDefaultMitigationAction: "validation_default_mitigation_action",
|
|
561
|
+
validationOverrideMitigationAction:
|
|
562
|
+
"validation_override_mitigation_action",
|
|
563
|
+
}),
|
|
564
|
+
)
|
|
565
|
+
.pipe(
|
|
566
|
+
T.ResponsePath("result"),
|
|
567
|
+
) as unknown as Schema.Schema<PatchSettingResponse>;
|
|
568
|
+
|
|
569
|
+
export type PatchSettingError = DefaultErrors;
|
|
570
|
+
|
|
571
|
+
export const patchSetting: API.OperationMethod<
|
|
572
|
+
PatchSettingRequest,
|
|
573
|
+
PatchSettingResponse,
|
|
574
|
+
PatchSettingError,
|
|
575
|
+
Credentials | HttpClient.HttpClient
|
|
576
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
577
|
+
input: PatchSettingRequest,
|
|
578
|
+
output: PatchSettingResponse,
|
|
579
|
+
errors: [],
|
|
580
|
+
}));
|
|
581
|
+
|
|
582
|
+
// =============================================================================
|
|
583
|
+
// SettingOperation
|
|
584
|
+
// =============================================================================
|
|
585
|
+
|
|
586
|
+
export interface GetSettingOperationRequest {
|
|
587
|
+
operationId: string;
|
|
588
|
+
/** Identifier. */
|
|
589
|
+
zoneId: string;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
export const GetSettingOperationRequest =
|
|
593
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
594
|
+
operationId: Schema.String.pipe(T.HttpPath("operationId")),
|
|
595
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
596
|
+
}).pipe(
|
|
597
|
+
T.Http({
|
|
598
|
+
method: "GET",
|
|
599
|
+
path: "/zones/{zone_id}/schema_validation/settings/operations/{operationId}",
|
|
600
|
+
}),
|
|
601
|
+
) as unknown as Schema.Schema<GetSettingOperationRequest>;
|
|
602
|
+
|
|
603
|
+
export interface GetSettingOperationResponse {
|
|
604
|
+
/** When set, this applies a mitigation action to this operation which supersedes a global schema validation setting just for this operation - `"log"` - log request when request does not conform to schem */
|
|
605
|
+
mitigationAction: "log" | "block" | "none";
|
|
606
|
+
/** UUID. */
|
|
607
|
+
operationId: string;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
export const GetSettingOperationResponse =
|
|
611
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
612
|
+
mitigationAction: Schema.Literals(["log", "block", "none"]),
|
|
613
|
+
operationId: Schema.String,
|
|
614
|
+
})
|
|
615
|
+
.pipe(
|
|
616
|
+
Schema.encodeKeys({
|
|
617
|
+
mitigationAction: "mitigation_action",
|
|
618
|
+
operationId: "operation_id",
|
|
619
|
+
}),
|
|
620
|
+
)
|
|
621
|
+
.pipe(
|
|
622
|
+
T.ResponsePath("result"),
|
|
623
|
+
) as unknown as Schema.Schema<GetSettingOperationResponse>;
|
|
624
|
+
|
|
625
|
+
export type GetSettingOperationError = DefaultErrors;
|
|
626
|
+
|
|
627
|
+
export const getSettingOperation: API.OperationMethod<
|
|
628
|
+
GetSettingOperationRequest,
|
|
629
|
+
GetSettingOperationResponse,
|
|
630
|
+
GetSettingOperationError,
|
|
631
|
+
Credentials | HttpClient.HttpClient
|
|
632
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
633
|
+
input: GetSettingOperationRequest,
|
|
634
|
+
output: GetSettingOperationResponse,
|
|
635
|
+
errors: [],
|
|
636
|
+
}));
|
|
637
|
+
|
|
638
|
+
export interface ListSettingOperationsRequest {
|
|
639
|
+
/** Path param: Identifier. */
|
|
640
|
+
zoneId: string;
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
export const ListSettingOperationsRequest =
|
|
644
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
645
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
646
|
+
}).pipe(
|
|
647
|
+
T.Http({
|
|
648
|
+
method: "GET",
|
|
649
|
+
path: "/zones/{zone_id}/schema_validation/settings/operations",
|
|
650
|
+
}),
|
|
651
|
+
) as unknown as Schema.Schema<ListSettingOperationsRequest>;
|
|
652
|
+
|
|
653
|
+
export interface ListSettingOperationsResponse {
|
|
654
|
+
result: { mitigationAction: "log" | "block" | "none"; operationId: string }[];
|
|
655
|
+
resultInfo: {
|
|
656
|
+
count?: number | null;
|
|
657
|
+
page?: number | null;
|
|
658
|
+
perPage?: number | null;
|
|
659
|
+
totalCount?: number | null;
|
|
660
|
+
};
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
export const ListSettingOperationsResponse =
|
|
664
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
665
|
+
result: Schema.Array(
|
|
666
|
+
Schema.Struct({
|
|
667
|
+
mitigationAction: Schema.Literals(["log", "block", "none"]),
|
|
668
|
+
operationId: Schema.String,
|
|
669
|
+
}).pipe(
|
|
670
|
+
Schema.encodeKeys({
|
|
671
|
+
mitigationAction: "mitigation_action",
|
|
672
|
+
operationId: "operation_id",
|
|
673
|
+
}),
|
|
674
|
+
),
|
|
675
|
+
),
|
|
676
|
+
resultInfo: Schema.Struct({
|
|
677
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
678
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
679
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
680
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
681
|
+
}).pipe(
|
|
682
|
+
Schema.encodeKeys({
|
|
683
|
+
count: "count",
|
|
684
|
+
page: "page",
|
|
685
|
+
perPage: "per_page",
|
|
686
|
+
totalCount: "total_count",
|
|
687
|
+
}),
|
|
688
|
+
),
|
|
689
|
+
}).pipe(
|
|
690
|
+
Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
|
|
691
|
+
) as unknown as Schema.Schema<ListSettingOperationsResponse>;
|
|
692
|
+
|
|
693
|
+
export type ListSettingOperationsError = DefaultErrors;
|
|
694
|
+
|
|
695
|
+
export const listSettingOperations: API.PaginatedOperationMethod<
|
|
696
|
+
ListSettingOperationsRequest,
|
|
697
|
+
ListSettingOperationsResponse,
|
|
698
|
+
ListSettingOperationsError,
|
|
699
|
+
Credentials | HttpClient.HttpClient
|
|
700
|
+
> & {
|
|
701
|
+
pages: (
|
|
702
|
+
input: ListSettingOperationsRequest,
|
|
703
|
+
) => stream.Stream<
|
|
704
|
+
ListSettingOperationsResponse,
|
|
705
|
+
ListSettingOperationsError,
|
|
706
|
+
Credentials | HttpClient.HttpClient
|
|
707
|
+
>;
|
|
708
|
+
items: (
|
|
709
|
+
input: ListSettingOperationsRequest,
|
|
710
|
+
) => stream.Stream<
|
|
711
|
+
{ mitigationAction: "log" | "block" | "none"; operationId: string },
|
|
712
|
+
ListSettingOperationsError,
|
|
713
|
+
Credentials | HttpClient.HttpClient
|
|
714
|
+
>;
|
|
715
|
+
} = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
716
|
+
input: ListSettingOperationsRequest,
|
|
717
|
+
output: ListSettingOperationsResponse,
|
|
718
|
+
errors: [],
|
|
719
|
+
pagination: {
|
|
720
|
+
mode: "page",
|
|
721
|
+
inputToken: "page",
|
|
722
|
+
outputToken: "resultInfo.page",
|
|
723
|
+
items: "result",
|
|
724
|
+
pageSize: "perPage",
|
|
725
|
+
} as const,
|
|
726
|
+
}));
|
|
727
|
+
|
|
728
|
+
export interface PutSettingOperationRequest {
|
|
729
|
+
operationId: string;
|
|
730
|
+
/** Path param: Identifier. */
|
|
731
|
+
zoneId: string;
|
|
732
|
+
/** Body param: When set, this applies a mitigation action to this operation - `"log"` - log request when request does not conform to schema for this operation - `"block"` - deny access to the site when */
|
|
733
|
+
mitigationAction: "log" | "block" | "none" | null;
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
export const PutSettingOperationRequest =
|
|
737
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
738
|
+
operationId: Schema.String.pipe(T.HttpPath("operationId")),
|
|
739
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
740
|
+
mitigationAction: Schema.Union([
|
|
741
|
+
Schema.Literal("log"),
|
|
742
|
+
Schema.Literal("block"),
|
|
743
|
+
Schema.Literal("none"),
|
|
744
|
+
Schema.Null,
|
|
745
|
+
]),
|
|
746
|
+
}).pipe(
|
|
747
|
+
Schema.encodeKeys({ mitigationAction: "mitigation_action" }),
|
|
748
|
+
T.Http({
|
|
749
|
+
method: "PUT",
|
|
750
|
+
path: "/zones/{zone_id}/schema_validation/settings/operations/{operationId}",
|
|
751
|
+
}),
|
|
752
|
+
) as unknown as Schema.Schema<PutSettingOperationRequest>;
|
|
753
|
+
|
|
754
|
+
export interface PutSettingOperationResponse {
|
|
755
|
+
/** When set, this applies a mitigation action to this operation which supersedes a global schema validation setting just for this operation - `"log"` - log request when request does not conform to schem */
|
|
756
|
+
mitigationAction: "log" | "block" | "none";
|
|
757
|
+
/** UUID. */
|
|
758
|
+
operationId: string;
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
export const PutSettingOperationResponse =
|
|
762
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
763
|
+
mitigationAction: Schema.Literals(["log", "block", "none"]),
|
|
764
|
+
operationId: Schema.String,
|
|
765
|
+
})
|
|
766
|
+
.pipe(
|
|
767
|
+
Schema.encodeKeys({
|
|
768
|
+
mitigationAction: "mitigation_action",
|
|
769
|
+
operationId: "operation_id",
|
|
770
|
+
}),
|
|
771
|
+
)
|
|
772
|
+
.pipe(
|
|
773
|
+
T.ResponsePath("result"),
|
|
774
|
+
) as unknown as Schema.Schema<PutSettingOperationResponse>;
|
|
775
|
+
|
|
776
|
+
export type PutSettingOperationError = DefaultErrors;
|
|
777
|
+
|
|
778
|
+
export const putSettingOperation: API.OperationMethod<
|
|
779
|
+
PutSettingOperationRequest,
|
|
780
|
+
PutSettingOperationResponse,
|
|
781
|
+
PutSettingOperationError,
|
|
782
|
+
Credentials | HttpClient.HttpClient
|
|
783
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
784
|
+
input: PutSettingOperationRequest,
|
|
785
|
+
output: PutSettingOperationResponse,
|
|
786
|
+
errors: [],
|
|
787
|
+
}));
|
|
788
|
+
|
|
789
|
+
export interface DeleteSettingOperationRequest {
|
|
790
|
+
operationId: string;
|
|
791
|
+
/** Identifier. */
|
|
792
|
+
zoneId: string;
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
export const DeleteSettingOperationRequest =
|
|
796
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
797
|
+
operationId: Schema.String.pipe(T.HttpPath("operationId")),
|
|
798
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
799
|
+
}).pipe(
|
|
800
|
+
T.Http({
|
|
801
|
+
method: "DELETE",
|
|
802
|
+
path: "/zones/{zone_id}/schema_validation/settings/operations/{operationId}",
|
|
803
|
+
}),
|
|
804
|
+
) as unknown as Schema.Schema<DeleteSettingOperationRequest>;
|
|
805
|
+
|
|
806
|
+
export interface DeleteSettingOperationResponse {
|
|
807
|
+
/** UUID. */
|
|
808
|
+
operationId?: string | null;
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
export const DeleteSettingOperationResponse =
|
|
812
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
813
|
+
operationId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
814
|
+
})
|
|
815
|
+
.pipe(Schema.encodeKeys({ operationId: "operation_id" }))
|
|
816
|
+
.pipe(
|
|
817
|
+
T.ResponsePath("result"),
|
|
818
|
+
) as unknown as Schema.Schema<DeleteSettingOperationResponse>;
|
|
819
|
+
|
|
820
|
+
export type DeleteSettingOperationError = DefaultErrors;
|
|
821
|
+
|
|
822
|
+
export const deleteSettingOperation: API.OperationMethod<
|
|
823
|
+
DeleteSettingOperationRequest,
|
|
824
|
+
DeleteSettingOperationResponse,
|
|
825
|
+
DeleteSettingOperationError,
|
|
826
|
+
Credentials | HttpClient.HttpClient
|
|
827
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
828
|
+
input: DeleteSettingOperationRequest,
|
|
829
|
+
output: DeleteSettingOperationResponse,
|
|
830
|
+
errors: [],
|
|
831
|
+
}));
|
|
832
|
+
|
|
833
|
+
export interface BulkPatchSettingOperationsRequest {
|
|
834
|
+
/** Path param: Identifier. */
|
|
835
|
+
zoneId: string;
|
|
836
|
+
/** Body param: */
|
|
837
|
+
body: Record<string, unknown>;
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
export const BulkPatchSettingOperationsRequest =
|
|
841
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
842
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
843
|
+
body: Schema.Struct({}).pipe(T.HttpBody()),
|
|
844
|
+
}).pipe(
|
|
845
|
+
T.Http({
|
|
846
|
+
method: "PATCH",
|
|
847
|
+
path: "/zones/{zone_id}/schema_validation/settings/operations",
|
|
848
|
+
}),
|
|
849
|
+
) as unknown as Schema.Schema<BulkPatchSettingOperationsRequest>;
|
|
850
|
+
|
|
851
|
+
export type BulkPatchSettingOperationsResponse = Record<string, unknown>;
|
|
852
|
+
|
|
853
|
+
export const BulkPatchSettingOperationsResponse =
|
|
854
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(
|
|
855
|
+
T.ResponsePath("result"),
|
|
856
|
+
) as unknown as Schema.Schema<BulkPatchSettingOperationsResponse>;
|
|
857
|
+
|
|
858
|
+
export type BulkPatchSettingOperationsError = DefaultErrors;
|
|
859
|
+
|
|
860
|
+
export const bulkPatchSettingOperations: API.OperationMethod<
|
|
861
|
+
BulkPatchSettingOperationsRequest,
|
|
862
|
+
BulkPatchSettingOperationsResponse,
|
|
863
|
+
BulkPatchSettingOperationsError,
|
|
864
|
+
Credentials | HttpClient.HttpClient
|
|
865
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
866
|
+
input: BulkPatchSettingOperationsRequest,
|
|
867
|
+
output: BulkPatchSettingOperationsResponse,
|
|
868
|
+
errors: [],
|
|
869
|
+
}));
|