@distilled.cloud/cloudflare 0.0.0 → 0.2.0-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/auth.d.ts +13 -0
- package/lib/auth.d.ts.map +1 -0
- package/lib/auth.js +12 -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 +14 -0
- package/lib/client/api.d.ts.map +1 -0
- package/lib/client/api.js +197 -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 +14 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +17 -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 +38 -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/services/abuse-reports.d.ts +224 -0
- package/lib/services/abuse-reports.d.ts.map +1 -0
- package/lib/services/abuse-reports.js +353 -0
- package/lib/services/abuse-reports.js.map +1 -0
- package/lib/services/accounts.d.ts +682 -0
- package/lib/services/accounts.d.ts.map +1 -0
- package/lib/services/accounts.js +805 -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 +76 -0
- package/lib/services/acm.js.map +1 -0
- package/lib/services/addressing.d.ts +1208 -0
- package/lib/services/addressing.d.ts.map +1 -0
- package/lib/services/addressing.js +1776 -0
- package/lib/services/addressing.js.map +1 -0
- package/lib/services/ai-gateway.d.ts +956 -0
- package/lib/services/ai-gateway.d.ts.map +1 -0
- package/lib/services/ai-gateway.js +1706 -0
- package/lib/services/ai-gateway.js.map +1 -0
- package/lib/services/ai.d.ts +243 -0
- package/lib/services/ai.d.ts.map +1 -0
- package/lib/services/ai.js +299 -0
- package/lib/services/ai.js.map +1 -0
- package/lib/services/aisearch.d.ts +915 -0
- package/lib/services/aisearch.d.ts.map +1 -0
- package/lib/services/aisearch.js +2425 -0
- package/lib/services/aisearch.js.map +1 -0
- package/lib/services/alerting.d.ts +718 -0
- package/lib/services/alerting.d.ts.map +1 -0
- package/lib/services/alerting.js +1388 -0
- package/lib/services/alerting.js.map +1 -0
- package/lib/services/api-gateway.d.ts +830 -0
- package/lib/services/api-gateway.d.ts.map +1 -0
- package/lib/services/api-gateway.js +1548 -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 +105 -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 +100 -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 +84 -0
- package/lib/services/botnet-feed.js.map +1 -0
- package/lib/services/brand-protection.d.ts +188 -0
- package/lib/services/brand-protection.d.ts.map +1 -0
- package/lib/services/brand-protection.js +214 -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 +1141 -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 +330 -0
- package/lib/services/cache.js.map +1 -0
- package/lib/services/calls.d.ts +202 -0
- package/lib/services/calls.d.ts.map +1 -0
- package/lib/services/calls.js +175 -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 +254 -0
- package/lib/services/client-certificates.d.ts.map +1 -0
- package/lib/services/client-certificates.js +350 -0
- package/lib/services/client-certificates.js.map +1 -0
- package/lib/services/cloud-connector.d.ts +59 -0
- package/lib/services/cloud-connector.d.ts.map +1 -0
- package/lib/services/cloud-connector.js +84 -0
- package/lib/services/cloud-connector.js.map +1 -0
- package/lib/services/cloudforce-one.d.ts +1318 -0
- package/lib/services/cloudforce-one.d.ts.map +1 -0
- package/lib/services/cloudforce-one.js +1684 -0
- package/lib/services/cloudforce-one.js.map +1 -0
- package/lib/services/connectivity.d.ts +248 -0
- package/lib/services/connectivity.d.ts.map +1 -0
- package/lib/services/connectivity.js +377 -0
- package/lib/services/connectivity.js.map +1 -0
- package/lib/services/content-scanning.d.ts +131 -0
- package/lib/services/content-scanning.d.ts.map +1 -0
- package/lib/services/content-scanning.js +156 -0
- package/lib/services/content-scanning.js.map +1 -0
- package/lib/services/custom-certificates.d.ts +211 -0
- package/lib/services/custom-certificates.d.ts.map +1 -0
- package/lib/services/custom-certificates.js +309 -0
- package/lib/services/custom-certificates.js.map +1 -0
- package/lib/services/custom-hostnames.d.ts +525 -0
- package/lib/services/custom-hostnames.d.ts.map +1 -0
- package/lib/services/custom-hostnames.js +1164 -0
- package/lib/services/custom-hostnames.js.map +1 -0
- package/lib/services/custom-nameservers.d.ts +67 -0
- package/lib/services/custom-nameservers.d.ts.map +1 -0
- package/lib/services/custom-nameservers.js +80 -0
- package/lib/services/custom-nameservers.js.map +1 -0
- package/lib/services/custom-pages.d.ts +74 -0
- package/lib/services/custom-pages.d.ts.map +1 -0
- package/lib/services/custom-pages.js +125 -0
- package/lib/services/custom-pages.js.map +1 -0
- package/lib/services/d1.d.ts +326 -0
- package/lib/services/d1.d.ts.map +1 -0
- package/lib/services/d1.js +448 -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 +175 -0
- package/lib/services/diagnostics.d.ts.map +1 -0
- package/lib/services/diagnostics.js +273 -0
- package/lib/services/diagnostics.js.map +1 -0
- package/lib/services/dns-firewall.d.ts +288 -0
- package/lib/services/dns-firewall.d.ts.map +1 -0
- package/lib/services/dns-firewall.js +373 -0
- package/lib/services/dns-firewall.js.map +1 -0
- package/lib/services/dns.d.ts +2946 -0
- package/lib/services/dns.d.ts.map +1 -0
- package/lib/services/dns.js +4511 -0
- package/lib/services/dns.js.map +1 -0
- package/lib/services/durable-objects.d.ts +61 -0
- package/lib/services/durable-objects.d.ts.map +1 -0
- package/lib/services/durable-objects.js +66 -0
- package/lib/services/durable-objects.js.map +1 -0
- package/lib/services/email-routing.d.ts +542 -0
- package/lib/services/email-routing.d.ts.map +1 -0
- package/lib/services/email-routing.js +662 -0
- package/lib/services/email-routing.js.map +1 -0
- package/lib/services/email-security.d.ts +1131 -0
- package/lib/services/email-security.d.ts.map +1 -0
- package/lib/services/email-security.js +2065 -0
- package/lib/services/email-security.js.map +1 -0
- package/lib/services/filters.d.ts +157 -0
- package/lib/services/filters.d.ts.map +1 -0
- package/lib/services/filters.js +135 -0
- package/lib/services/filters.js.map +1 -0
- package/lib/services/firewall.d.ts +1080 -0
- package/lib/services/firewall.d.ts.map +1 -0
- package/lib/services/firewall.js +1881 -0
- package/lib/services/firewall.js.map +1 -0
- package/lib/services/healthchecks.d.ts +464 -0
- package/lib/services/healthchecks.d.ts.map +1 -0
- package/lib/services/healthchecks.js +838 -0
- package/lib/services/healthchecks.js.map +1 -0
- package/lib/services/hostnames.d.ts +74 -0
- package/lib/services/hostnames.d.ts.map +1 -0
- package/lib/services/hostnames.js +100 -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 +299 -0
- package/lib/services/hyperdrive.js.map +1 -0
- package/lib/services/iam.d.ts +554 -0
- package/lib/services/iam.d.ts.map +1 -0
- package/lib/services/iam.js +743 -0
- package/lib/services/iam.js.map +1 -0
- package/lib/services/images.d.ts +403 -0
- package/lib/services/images.d.ts.map +1 -0
- package/lib/services/images.js +417 -0
- package/lib/services/images.js.map +1 -0
- package/lib/services/intel.d.ts +768 -0
- package/lib/services/intel.d.ts.map +1 -0
- package/lib/services/intel.js +1179 -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 +177 -0
- package/lib/services/keyless-certificates.d.ts.map +1 -0
- package/lib/services/keyless-certificates.js +216 -0
- package/lib/services/keyless-certificates.js.map +1 -0
- package/lib/services/kv.d.ts +339 -0
- package/lib/services/kv.d.ts.map +1 -0
- package/lib/services/kv.js +402 -0
- package/lib/services/kv.js.map +1 -0
- package/lib/services/leaked-credential-checks.d.ts +119 -0
- package/lib/services/leaked-credential-checks.d.ts.map +1 -0
- package/lib/services/leaked-credential-checks.js +130 -0
- package/lib/services/leaked-credential-checks.js.map +1 -0
- package/lib/services/load-balancers.d.ts +1767 -0
- package/lib/services/load-balancers.d.ts.map +1 -0
- package/lib/services/load-balancers.js +3068 -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 +724 -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 +145 -0
- package/lib/services/logs.js.map +1 -0
- package/lib/services/magic-cloud-networking.d.ts +1599 -0
- package/lib/services/magic-cloud-networking.d.ts.map +1 -0
- package/lib/services/magic-cloud-networking.js +5205 -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 +535 -0
- package/lib/services/magic-network-monitoring.js.map +1 -0
- package/lib/services/magic-transit.d.ts +3650 -0
- package/lib/services/magic-transit.d.ts.map +1 -0
- package/lib/services/magic-transit.js +6120 -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 +107 -0
- package/lib/services/managed-transforms.js.map +1 -0
- package/lib/services/memberships.d.ts +172 -0
- package/lib/services/memberships.d.ts.map +1 -0
- package/lib/services/memberships.js +282 -0
- package/lib/services/memberships.js.map +1 -0
- package/lib/services/mtls-certificates.d.ts +140 -0
- package/lib/services/mtls-certificates.d.ts.map +1 -0
- package/lib/services/mtls-certificates.js +173 -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 +201 -0
- package/lib/services/organizations.d.ts.map +1 -0
- package/lib/services/organizations.js +355 -0
- package/lib/services/organizations.js.map +1 -0
- package/lib/services/origin-ca-certificates.d.ts +99 -0
- package/lib/services/origin-ca-certificates.d.ts.map +1 -0
- package/lib/services/origin-ca-certificates.js +156 -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 +60 -0
- package/lib/services/origin-post-quantum-encryption.js.map +1 -0
- package/lib/services/origin-tls-client-auth.d.ts +273 -0
- package/lib/services/origin-tls-client-auth.d.ts.map +1 -0
- package/lib/services/origin-tls-client-auth.js +401 -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 +1365 -0
- package/lib/services/page-rules.js.map +1 -0
- package/lib/services/page-shield.d.ts +426 -0
- package/lib/services/page-shield.d.ts.map +1 -0
- package/lib/services/page-shield.js +484 -0
- package/lib/services/page-shield.js.map +1 -0
- package/lib/services/pages.d.ts +1654 -0
- package/lib/services/pages.d.ts.map +1 -0
- package/lib/services/pages.js +2954 -0
- package/lib/services/pages.js.map +1 -0
- package/lib/services/pipelines.d.ts +1461 -0
- package/lib/services/pipelines.d.ts.map +1 -0
- package/lib/services/pipelines.js +2912 -0
- package/lib/services/pipelines.js.map +1 -0
- package/lib/services/queues.d.ts +807 -0
- package/lib/services/queues.d.ts.map +1 -0
- package/lib/services/queues.js +1194 -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 +499 -0
- package/lib/services/r2-data-catalog.js.map +1 -0
- package/lib/services/r2.d.ts +1041 -0
- package/lib/services/r2.d.ts.map +1 -0
- package/lib/services/r2.js +1384 -0
- package/lib/services/r2.js.map +1 -0
- package/lib/services/radar.d.ts +9276 -0
- package/lib/services/radar.d.ts.map +1 -0
- package/lib/services/radar.js +20491 -0
- package/lib/services/radar.js.map +1 -0
- package/lib/services/rate-limits.d.ts +315 -0
- package/lib/services/rate-limits.d.ts.map +1 -0
- package/lib/services/rate-limits.js +521 -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 +5401 -0
- package/lib/services/realtime-kit.js.map +1 -0
- package/lib/services/registrar.d.ts +81 -0
- package/lib/services/registrar.d.ts.map +1 -0
- package/lib/services/registrar.js +154 -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 +82 -0
- package/lib/services/request-tracers.js.map +1 -0
- package/lib/services/resource-sharing.d.ts +540 -0
- package/lib/services/resource-sharing.d.ts.map +1 -0
- package/lib/services/resource-sharing.js +846 -0
- package/lib/services/resource-sharing.js.map +1 -0
- package/lib/services/rules.d.ts +297 -0
- package/lib/services/rules.d.ts.map +1 -0
- package/lib/services/rules.js +396 -0
- package/lib/services/rules.js.map +1 -0
- package/lib/services/rulesets.d.ts +3300 -0
- package/lib/services/rulesets.d.ts.map +1 -0
- package/lib/services/rulesets.js +7852 -0
- package/lib/services/rulesets.js.map +1 -0
- package/lib/services/rum.d.ts +289 -0
- package/lib/services/rum.d.ts.map +1 -0
- package/lib/services/rum.js +409 -0
- package/lib/services/rum.js.map +1 -0
- package/lib/services/schema-validation.d.ts +240 -0
- package/lib/services/schema-validation.d.ts.map +1 -0
- package/lib/services/schema-validation.js +306 -0
- package/lib/services/schema-validation.js.map +1 -0
- package/lib/services/secrets-store.d.ts +321 -0
- package/lib/services/secrets-store.d.ts.map +1 -0
- package/lib/services/secrets-store.js +385 -0
- package/lib/services/secrets-store.js.map +1 -0
- package/lib/services/security-center.d.ts +102 -0
- package/lib/services/security-center.d.ts.map +1 -0
- package/lib/services/security-center.js +170 -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 +138 -0
- package/lib/services/snippets.d.ts.map +1 -0
- package/lib/services/snippets.js +178 -0
- package/lib/services/snippets.js.map +1 -0
- package/lib/services/spectrum.d.ts +316 -0
- package/lib/services/spectrum.d.ts.map +1 -0
- package/lib/services/spectrum.js +510 -0
- package/lib/services/spectrum.js.map +1 -0
- package/lib/services/speed.d.ts +227 -0
- package/lib/services/speed.d.ts.map +1 -0
- package/lib/services/speed.js +444 -0
- package/lib/services/speed.js.map +1 -0
- package/lib/services/ssl.d.ts +370 -0
- package/lib/services/ssl.d.ts.map +1 -0
- package/lib/services/ssl.js +732 -0
- package/lib/services/ssl.js.map +1 -0
- package/lib/services/stream.d.ts +1014 -0
- package/lib/services/stream.d.ts.map +1 -0
- package/lib/services/stream.js +1049 -0
- package/lib/services/stream.js.map +1 -0
- package/lib/services/token-validation.d.ts +547 -0
- package/lib/services/token-validation.d.ts.map +1 -0
- package/lib/services/token-validation.js +768 -0
- package/lib/services/token-validation.js.map +1 -0
- package/lib/services/turnstile.d.ts +248 -0
- package/lib/services/turnstile.d.ts.map +1 -0
- package/lib/services/turnstile.js +308 -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 +441 -0
- package/lib/services/user.d.ts.map +1 -0
- package/lib/services/user.js +567 -0
- package/lib/services/user.js.map +1 -0
- package/lib/services/vectorize.d.ts +282 -0
- package/lib/services/vectorize.d.ts.map +1 -0
- package/lib/services/vectorize.js +340 -0
- package/lib/services/vectorize.js.map +1 -0
- package/lib/services/waiting-rooms.d.ts +1009 -0
- package/lib/services/waiting-rooms.d.ts.map +1 -0
- package/lib/services/waiting-rooms.js +1757 -0
- package/lib/services/waiting-rooms.js.map +1 -0
- package/lib/services/web3.d.ts +274 -0
- package/lib/services/web3.d.ts.map +1 -0
- package/lib/services/web3.js +362 -0
- package/lib/services/web3.js.map +1 -0
- package/lib/services/workers-for-platforms.d.ts +1224 -0
- package/lib/services/workers-for-platforms.d.ts.map +1 -0
- package/lib/services/workers-for-platforms.js +2078 -0
- package/lib/services/workers-for-platforms.js.map +1 -0
- package/lib/services/workers.d.ts +3498 -0
- package/lib/services/workers.d.ts.map +1 -0
- package/lib/services/workers.js +5967 -0
- package/lib/services/workers.js.map +1 -0
- package/lib/services/workflows.d.ts +359 -0
- package/lib/services/workflows.d.ts.map +1 -0
- package/lib/services/workflows.js +516 -0
- package/lib/services/workflows.js.map +1 -0
- package/lib/services/zaraz.d.ts +300 -0
- package/lib/services/zaraz.d.ts.map +1 -0
- package/lib/services/zaraz.js +298 -0
- package/lib/services/zaraz.js.map +1 -0
- package/lib/services/zero-trust.d.ts +15449 -0
- package/lib/services/zero-trust.d.ts.map +1 -0
- package/lib/services/zero-trust.js +29194 -0
- package/lib/services/zero-trust.js.map +1 -0
- package/lib/services/zones.d.ts +1278 -0
- package/lib/services/zones.d.ts.map +1 -0
- package/lib/services/zones.js +2416 -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 +67 -5
- package/src/auth.ts +14 -0
- package/src/category.ts +1 -0
- package/src/client/api.ts +269 -0
- package/src/client/index.ts +7 -0
- package/src/credentials.ts +30 -0
- package/src/errors.ts +65 -0
- package/src/index.ts +9 -0
- package/src/retry.ts +35 -0
- package/src/schemas.ts +51 -0
- package/src/services/abuse-reports.ts +747 -0
- package/src/services/accounts.ts +1947 -0
- package/src/services/acm.ts +170 -0
- package/src/services/addressing.ts +3947 -0
- package/src/services/ai-gateway.ts +3335 -0
- package/src/services/ai.ts +727 -0
- package/src/services/aisearch.ts +4750 -0
- package/src/services/alerting.ts +2947 -0
- package/src/services/api-gateway.ts +3391 -0
- package/src/services/argo.ts +254 -0
- package/src/services/audit-logs.ts +90 -0
- package/src/services/billing.ts +172 -0
- package/src/services/bot-management.ts +541 -0
- package/src/services/botnet-feed.ts +193 -0
- package/src/services/brand-protection.ts +553 -0
- package/src/services/browser-rendering.ts +2707 -0
- package/src/services/cache.ts +827 -0
- package/src/services/calls.ts +483 -0
- package/src/services/certificate-authorities.ts +110 -0
- package/src/services/client-certificates.ts +718 -0
- package/src/services/cloud-connector.ts +181 -0
- package/src/services/cloudforce-one.ts +3876 -0
- package/src/services/connectivity.ts +629 -0
- package/src/services/content-scanning.ts +385 -0
- package/src/services/custom-certificates.ts +611 -0
- package/src/services/custom-hostnames.ts +2453 -0
- package/src/services/custom-nameservers.ts +182 -0
- package/src/services/custom-pages.ts +264 -0
- package/src/services/d1.ts +1034 -0
- package/src/services/dcv-delegation.ts +52 -0
- package/src/services/diagnostics.ts +603 -0
- package/src/services/dns-firewall.ts +823 -0
- package/src/services/dns.ts +8897 -0
- package/src/services/durable-objects.ts +148 -0
- package/src/services/email-routing.ts +1602 -0
- package/src/services/email-security.ts +4283 -0
- package/src/services/filters.ts +370 -0
- package/src/services/firewall.ts +3896 -0
- package/src/services/healthchecks.ts +1750 -0
- package/src/services/hostnames.ts +218 -0
- package/src/services/hyperdrive.ts +592 -0
- package/src/services/iam.ts +1668 -0
- package/src/services/images.ts +1086 -0
- package/src/services/intel.ts +2768 -0
- package/src/services/ips.ts +88 -0
- package/src/services/keyless-certificates.ts +462 -0
- package/src/services/kv.ts +1011 -0
- package/src/services/leaked-credential-checks.ts +325 -0
- package/src/services/load-balancers.ts +6438 -0
- package/src/services/logpush.ts +1667 -0
- package/src/services/logs.ts +375 -0
- package/src/services/magic-cloud-networking.ts +10020 -0
- package/src/services/magic-network-monitoring.ts +1156 -0
- package/src/services/magic-transit.ts +13050 -0
- package/src/services/managed-transforms.ts +237 -0
- package/src/services/memberships.ts +615 -0
- package/src/services/mtls-certificates.ts +374 -0
- package/src/services/network-interconnects.ts +1253 -0
- package/src/services/organizations.ts +674 -0
- package/src/services/origin-ca-certificates.ts +303 -0
- package/src/services/origin-post-quantum-encryption.ts +128 -0
- package/src/services/origin-tls-client-auth.ts +878 -0
- package/src/services/page-rules.ts +2612 -0
- package/src/services/page-shield.ts +1195 -0
- package/src/services/pages.ts +5709 -0
- package/src/services/pipelines.ts +6000 -0
- package/src/services/queues.ts +2629 -0
- package/src/services/r2-data-catalog.ts +1119 -0
- package/src/services/r2.ts +3348 -0
- package/src/services/radar.ts +42152 -0
- package/src/services/rate-limits.ts +1150 -0
- package/src/services/realtime-kit.ts +11079 -0
- package/src/services/registrar.ts +295 -0
- package/src/services/request-tracers.ts +158 -0
- package/src/services/resource-sharing.ts +1832 -0
- package/src/services/rules.ts +837 -0
- package/src/services/rulesets.ts +15144 -0
- package/src/services/rum.ts +901 -0
- package/src/services/schema-validation.ts +733 -0
- package/src/services/secrets-store.ts +860 -0
- package/src/services/security-center.ts +397 -0
- package/src/services/security-txt.ts +315 -0
- package/src/services/snippets.ts +420 -0
- package/src/services/spectrum.ts +1103 -0
- package/src/services/speed.ts +1056 -0
- package/src/services/ssl.ts +1587 -0
- package/src/services/stream.ts +2756 -0
- package/src/services/token-validation.ts +1585 -0
- package/src/services/turnstile.ts +643 -0
- package/src/services/url-normalization.ts +129 -0
- package/src/services/url-scanner.ts +1851 -0
- package/src/services/user.ts +1384 -0
- package/src/services/vectorize.ts +816 -0
- package/src/services/waiting-rooms.ts +3807 -0
- package/src/services/web3.ts +834 -0
- package/src/services/workers-for-platforms.ts +3859 -0
- package/src/services/workers.ts +11637 -0
- package/src/services/workflows.ts +1124 -0
- package/src/services/zaraz.ts +797 -0
- package/src/services/zero-trust.ts +58933 -0
- package/src/services/zones.ts +4875 -0
- package/src/traits.ts +47 -0
- package/README.md +0 -15
- package/bun.lock +0 -26
- package/index.ts +0 -1
- package/tsconfig.json +0 -29
|
@@ -0,0 +1,1602 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cloudflare EMAIL-ROUTING API
|
|
3
|
+
*
|
|
4
|
+
* Generated from Cloudflare TypeScript SDK.
|
|
5
|
+
* DO NOT EDIT - regenerate with: bun scripts/generate.ts --service email-routing
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import * as Schema from "effect/Schema";
|
|
9
|
+
import type * as HttpClient from "effect/unstable/http/HttpClient";
|
|
10
|
+
import * as API from "../client/api.ts";
|
|
11
|
+
import * as T from "../traits";
|
|
12
|
+
import type { Credentials } from "../credentials";
|
|
13
|
+
import { type DefaultErrors } from "../errors";
|
|
14
|
+
|
|
15
|
+
// =============================================================================
|
|
16
|
+
// Address
|
|
17
|
+
// =============================================================================
|
|
18
|
+
|
|
19
|
+
export interface GetAddressRequest {
|
|
20
|
+
destinationAddressIdentifier: string;
|
|
21
|
+
/** Identifier. */
|
|
22
|
+
accountId: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export const GetAddressRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
26
|
+
destinationAddressIdentifier: Schema.String.pipe(
|
|
27
|
+
T.HttpPath("destinationAddressIdentifier"),
|
|
28
|
+
),
|
|
29
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
30
|
+
}).pipe(
|
|
31
|
+
T.Http({
|
|
32
|
+
method: "GET",
|
|
33
|
+
path: "/accounts/{account_id}/email/routing/addresses/{destinationAddressIdentifier}",
|
|
34
|
+
}),
|
|
35
|
+
) as unknown as Schema.Schema<GetAddressRequest>;
|
|
36
|
+
|
|
37
|
+
export interface GetAddressResponse {
|
|
38
|
+
/** Destination address identifier. */
|
|
39
|
+
id?: string | null;
|
|
40
|
+
/** The date and time the destination address has been created. */
|
|
41
|
+
created?: string | null;
|
|
42
|
+
/** The contact email address of the user. */
|
|
43
|
+
email?: string | null;
|
|
44
|
+
/** The date and time the destination address was last modified. */
|
|
45
|
+
modified?: string | null;
|
|
46
|
+
/** @deprecated Destination address tag. (Deprecated, replaced by destination address identifier) */
|
|
47
|
+
tag?: string | null;
|
|
48
|
+
/** The date and time the destination address has been verified. Null means not verified yet. */
|
|
49
|
+
verified?: string | null;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export const GetAddressResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
53
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
54
|
+
created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
55
|
+
email: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
56
|
+
modified: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
57
|
+
tag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
58
|
+
verified: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
59
|
+
}) as unknown as Schema.Schema<GetAddressResponse>;
|
|
60
|
+
|
|
61
|
+
export type GetAddressError = DefaultErrors;
|
|
62
|
+
|
|
63
|
+
export const getAddress: API.OperationMethod<
|
|
64
|
+
GetAddressRequest,
|
|
65
|
+
GetAddressResponse,
|
|
66
|
+
GetAddressError,
|
|
67
|
+
Credentials | HttpClient.HttpClient
|
|
68
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
69
|
+
input: GetAddressRequest,
|
|
70
|
+
output: GetAddressResponse,
|
|
71
|
+
errors: [],
|
|
72
|
+
}));
|
|
73
|
+
|
|
74
|
+
export interface ListAddressesRequest {
|
|
75
|
+
/** Path param: Identifier. */
|
|
76
|
+
accountId: string;
|
|
77
|
+
/** Query param: Sorts results in an ascending or descending order. */
|
|
78
|
+
direction?: "asc" | "desc";
|
|
79
|
+
/** Query param: Filter by verified destination addresses. */
|
|
80
|
+
verified?: true | false;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export const ListAddressesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
84
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
85
|
+
direction: Schema.optional(Schema.Literals(["asc", "desc"])).pipe(
|
|
86
|
+
T.HttpQuery("direction"),
|
|
87
|
+
),
|
|
88
|
+
verified: Schema.optional(Schema.Literals([true, false])).pipe(
|
|
89
|
+
T.HttpQuery("verified"),
|
|
90
|
+
),
|
|
91
|
+
}).pipe(
|
|
92
|
+
T.Http({
|
|
93
|
+
method: "GET",
|
|
94
|
+
path: "/accounts/{account_id}/email/routing/addresses",
|
|
95
|
+
}),
|
|
96
|
+
) as unknown as Schema.Schema<ListAddressesRequest>;
|
|
97
|
+
|
|
98
|
+
export type ListAddressesResponse = {
|
|
99
|
+
id?: string | null;
|
|
100
|
+
created?: string | null;
|
|
101
|
+
email?: string | null;
|
|
102
|
+
modified?: string | null;
|
|
103
|
+
tag?: string | null;
|
|
104
|
+
verified?: string | null;
|
|
105
|
+
}[];
|
|
106
|
+
|
|
107
|
+
export const ListAddressesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
108
|
+
Schema.Struct({
|
|
109
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
110
|
+
created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
111
|
+
email: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
112
|
+
modified: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
113
|
+
tag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
114
|
+
verified: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
115
|
+
}),
|
|
116
|
+
) as unknown as Schema.Schema<ListAddressesResponse>;
|
|
117
|
+
|
|
118
|
+
export type ListAddressesError = DefaultErrors;
|
|
119
|
+
|
|
120
|
+
export const listAddresses: API.OperationMethod<
|
|
121
|
+
ListAddressesRequest,
|
|
122
|
+
ListAddressesResponse,
|
|
123
|
+
ListAddressesError,
|
|
124
|
+
Credentials | HttpClient.HttpClient
|
|
125
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
126
|
+
input: ListAddressesRequest,
|
|
127
|
+
output: ListAddressesResponse,
|
|
128
|
+
errors: [],
|
|
129
|
+
}));
|
|
130
|
+
|
|
131
|
+
export interface CreateAddressRequest {
|
|
132
|
+
/** Path param: Identifier. */
|
|
133
|
+
accountId: string;
|
|
134
|
+
/** Body param: The contact email address of the user. */
|
|
135
|
+
email: string;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export const CreateAddressRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
139
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
140
|
+
email: Schema.String,
|
|
141
|
+
}).pipe(
|
|
142
|
+
T.Http({
|
|
143
|
+
method: "POST",
|
|
144
|
+
path: "/accounts/{account_id}/email/routing/addresses",
|
|
145
|
+
}),
|
|
146
|
+
) as unknown as Schema.Schema<CreateAddressRequest>;
|
|
147
|
+
|
|
148
|
+
export interface CreateAddressResponse {
|
|
149
|
+
/** Destination address identifier. */
|
|
150
|
+
id?: string | null;
|
|
151
|
+
/** The date and time the destination address has been created. */
|
|
152
|
+
created?: string | null;
|
|
153
|
+
/** The contact email address of the user. */
|
|
154
|
+
email?: string | null;
|
|
155
|
+
/** The date and time the destination address was last modified. */
|
|
156
|
+
modified?: string | null;
|
|
157
|
+
/** @deprecated Destination address tag. (Deprecated, replaced by destination address identifier) */
|
|
158
|
+
tag?: string | null;
|
|
159
|
+
/** The date and time the destination address has been verified. Null means not verified yet. */
|
|
160
|
+
verified?: string | null;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export const CreateAddressResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
164
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
165
|
+
created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
166
|
+
email: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
167
|
+
modified: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
168
|
+
tag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
169
|
+
verified: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
170
|
+
}) as unknown as Schema.Schema<CreateAddressResponse>;
|
|
171
|
+
|
|
172
|
+
export type CreateAddressError = DefaultErrors;
|
|
173
|
+
|
|
174
|
+
export const createAddress: API.OperationMethod<
|
|
175
|
+
CreateAddressRequest,
|
|
176
|
+
CreateAddressResponse,
|
|
177
|
+
CreateAddressError,
|
|
178
|
+
Credentials | HttpClient.HttpClient
|
|
179
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
180
|
+
input: CreateAddressRequest,
|
|
181
|
+
output: CreateAddressResponse,
|
|
182
|
+
errors: [],
|
|
183
|
+
}));
|
|
184
|
+
|
|
185
|
+
export interface DeleteAddressRequest {
|
|
186
|
+
destinationAddressIdentifier: string;
|
|
187
|
+
/** Identifier. */
|
|
188
|
+
accountId: string;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export const DeleteAddressRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
192
|
+
destinationAddressIdentifier: Schema.String.pipe(
|
|
193
|
+
T.HttpPath("destinationAddressIdentifier"),
|
|
194
|
+
),
|
|
195
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
196
|
+
}).pipe(
|
|
197
|
+
T.Http({
|
|
198
|
+
method: "DELETE",
|
|
199
|
+
path: "/accounts/{account_id}/email/routing/addresses/{destinationAddressIdentifier}",
|
|
200
|
+
}),
|
|
201
|
+
) as unknown as Schema.Schema<DeleteAddressRequest>;
|
|
202
|
+
|
|
203
|
+
export interface DeleteAddressResponse {
|
|
204
|
+
/** Destination address identifier. */
|
|
205
|
+
id?: string | null;
|
|
206
|
+
/** The date and time the destination address has been created. */
|
|
207
|
+
created?: string | null;
|
|
208
|
+
/** The contact email address of the user. */
|
|
209
|
+
email?: string | null;
|
|
210
|
+
/** The date and time the destination address was last modified. */
|
|
211
|
+
modified?: string | null;
|
|
212
|
+
/** @deprecated Destination address tag. (Deprecated, replaced by destination address identifier) */
|
|
213
|
+
tag?: string | null;
|
|
214
|
+
/** The date and time the destination address has been verified. Null means not verified yet. */
|
|
215
|
+
verified?: string | null;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
export const DeleteAddressResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
219
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
220
|
+
created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
221
|
+
email: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
222
|
+
modified: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
223
|
+
tag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
224
|
+
verified: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
225
|
+
}) as unknown as Schema.Schema<DeleteAddressResponse>;
|
|
226
|
+
|
|
227
|
+
export type DeleteAddressError = DefaultErrors;
|
|
228
|
+
|
|
229
|
+
export const deleteAddress: API.OperationMethod<
|
|
230
|
+
DeleteAddressRequest,
|
|
231
|
+
DeleteAddressResponse,
|
|
232
|
+
DeleteAddressError,
|
|
233
|
+
Credentials | HttpClient.HttpClient
|
|
234
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
235
|
+
input: DeleteAddressRequest,
|
|
236
|
+
output: DeleteAddressResponse,
|
|
237
|
+
errors: [],
|
|
238
|
+
}));
|
|
239
|
+
|
|
240
|
+
// =============================================================================
|
|
241
|
+
// Dns
|
|
242
|
+
// =============================================================================
|
|
243
|
+
|
|
244
|
+
export interface GetDnsRequest {
|
|
245
|
+
/** Path param: Identifier. */
|
|
246
|
+
zoneId: string;
|
|
247
|
+
/** Query param: Domain of your zone. */
|
|
248
|
+
subdomain?: string;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
export const GetDnsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
252
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
253
|
+
subdomain: Schema.optional(Schema.String).pipe(T.HttpQuery("subdomain")),
|
|
254
|
+
}).pipe(
|
|
255
|
+
T.Http({ method: "GET", path: "/zones/{zone_id}/email/routing/dns" }),
|
|
256
|
+
) as unknown as Schema.Schema<GetDnsRequest>;
|
|
257
|
+
|
|
258
|
+
export type GetDnsResponse =
|
|
259
|
+
| {
|
|
260
|
+
errors: {
|
|
261
|
+
code: number;
|
|
262
|
+
message: string;
|
|
263
|
+
documentationUrl?: string | null;
|
|
264
|
+
source?: { pointer?: string | null } | null;
|
|
265
|
+
}[];
|
|
266
|
+
messages: {
|
|
267
|
+
code: number;
|
|
268
|
+
message: string;
|
|
269
|
+
documentationUrl?: string | null;
|
|
270
|
+
source?: { pointer?: string | null } | null;
|
|
271
|
+
}[];
|
|
272
|
+
success: true;
|
|
273
|
+
result?: {
|
|
274
|
+
errors?: { code?: string | null; missing?: unknown | null }[] | null;
|
|
275
|
+
record?: unknown[] | null;
|
|
276
|
+
} | null;
|
|
277
|
+
resultInfo?: {
|
|
278
|
+
count?: number | null;
|
|
279
|
+
page?: number | null;
|
|
280
|
+
perPage?: number | null;
|
|
281
|
+
totalCount?: number | null;
|
|
282
|
+
} | null;
|
|
283
|
+
}
|
|
284
|
+
| {
|
|
285
|
+
errors: {
|
|
286
|
+
code: number;
|
|
287
|
+
message: string;
|
|
288
|
+
documentationUrl?: string | null;
|
|
289
|
+
source?: { pointer?: string | null } | null;
|
|
290
|
+
}[];
|
|
291
|
+
messages: {
|
|
292
|
+
code: number;
|
|
293
|
+
message: string;
|
|
294
|
+
documentationUrl?: string | null;
|
|
295
|
+
source?: { pointer?: string | null } | null;
|
|
296
|
+
}[];
|
|
297
|
+
success: true;
|
|
298
|
+
result?: unknown[] | null;
|
|
299
|
+
resultInfo?: {
|
|
300
|
+
count?: number | null;
|
|
301
|
+
page?: number | null;
|
|
302
|
+
perPage?: number | null;
|
|
303
|
+
totalCount?: number | null;
|
|
304
|
+
} | null;
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
export const GetDnsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Union([
|
|
308
|
+
Schema.Struct({
|
|
309
|
+
errors: Schema.Array(
|
|
310
|
+
Schema.Struct({
|
|
311
|
+
code: Schema.Number,
|
|
312
|
+
message: Schema.String,
|
|
313
|
+
documentationUrl: Schema.optional(
|
|
314
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
315
|
+
),
|
|
316
|
+
source: Schema.optional(
|
|
317
|
+
Schema.Union([
|
|
318
|
+
Schema.Struct({
|
|
319
|
+
pointer: Schema.optional(
|
|
320
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
321
|
+
),
|
|
322
|
+
}),
|
|
323
|
+
Schema.Null,
|
|
324
|
+
]),
|
|
325
|
+
),
|
|
326
|
+
}).pipe(
|
|
327
|
+
Schema.encodeKeys({
|
|
328
|
+
code: "code",
|
|
329
|
+
message: "message",
|
|
330
|
+
documentationUrl: "documentation_url",
|
|
331
|
+
source: "source",
|
|
332
|
+
}),
|
|
333
|
+
),
|
|
334
|
+
),
|
|
335
|
+
messages: Schema.Array(
|
|
336
|
+
Schema.Struct({
|
|
337
|
+
code: Schema.Number,
|
|
338
|
+
message: Schema.String,
|
|
339
|
+
documentationUrl: Schema.optional(
|
|
340
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
341
|
+
),
|
|
342
|
+
source: Schema.optional(
|
|
343
|
+
Schema.Union([
|
|
344
|
+
Schema.Struct({
|
|
345
|
+
pointer: Schema.optional(
|
|
346
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
347
|
+
),
|
|
348
|
+
}),
|
|
349
|
+
Schema.Null,
|
|
350
|
+
]),
|
|
351
|
+
),
|
|
352
|
+
}).pipe(
|
|
353
|
+
Schema.encodeKeys({
|
|
354
|
+
code: "code",
|
|
355
|
+
message: "message",
|
|
356
|
+
documentationUrl: "documentation_url",
|
|
357
|
+
source: "source",
|
|
358
|
+
}),
|
|
359
|
+
),
|
|
360
|
+
),
|
|
361
|
+
success: Schema.Literal(true),
|
|
362
|
+
result: Schema.optional(
|
|
363
|
+
Schema.Union([
|
|
364
|
+
Schema.Struct({
|
|
365
|
+
errors: Schema.optional(
|
|
366
|
+
Schema.Union([
|
|
367
|
+
Schema.Array(
|
|
368
|
+
Schema.Struct({
|
|
369
|
+
code: Schema.optional(
|
|
370
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
371
|
+
),
|
|
372
|
+
missing: Schema.optional(
|
|
373
|
+
Schema.Union([Schema.Unknown, Schema.Null]),
|
|
374
|
+
),
|
|
375
|
+
}),
|
|
376
|
+
),
|
|
377
|
+
Schema.Null,
|
|
378
|
+
]),
|
|
379
|
+
),
|
|
380
|
+
record: Schema.optional(
|
|
381
|
+
Schema.Union([Schema.Array(Schema.Unknown), Schema.Null]),
|
|
382
|
+
),
|
|
383
|
+
}),
|
|
384
|
+
Schema.Null,
|
|
385
|
+
]),
|
|
386
|
+
),
|
|
387
|
+
resultInfo: Schema.optional(
|
|
388
|
+
Schema.Union([
|
|
389
|
+
Schema.Struct({
|
|
390
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
391
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
392
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
393
|
+
totalCount: Schema.optional(
|
|
394
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
395
|
+
),
|
|
396
|
+
}).pipe(
|
|
397
|
+
Schema.encodeKeys({
|
|
398
|
+
count: "count",
|
|
399
|
+
page: "page",
|
|
400
|
+
perPage: "per_page",
|
|
401
|
+
totalCount: "total_count",
|
|
402
|
+
}),
|
|
403
|
+
),
|
|
404
|
+
Schema.Null,
|
|
405
|
+
]),
|
|
406
|
+
),
|
|
407
|
+
}).pipe(
|
|
408
|
+
Schema.encodeKeys({
|
|
409
|
+
errors: "errors",
|
|
410
|
+
messages: "messages",
|
|
411
|
+
success: "success",
|
|
412
|
+
result: "result",
|
|
413
|
+
resultInfo: "result_info",
|
|
414
|
+
}),
|
|
415
|
+
),
|
|
416
|
+
Schema.Struct({
|
|
417
|
+
errors: Schema.Array(
|
|
418
|
+
Schema.Struct({
|
|
419
|
+
code: Schema.Number,
|
|
420
|
+
message: Schema.String,
|
|
421
|
+
documentationUrl: Schema.optional(
|
|
422
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
423
|
+
),
|
|
424
|
+
source: Schema.optional(
|
|
425
|
+
Schema.Union([
|
|
426
|
+
Schema.Struct({
|
|
427
|
+
pointer: Schema.optional(
|
|
428
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
429
|
+
),
|
|
430
|
+
}),
|
|
431
|
+
Schema.Null,
|
|
432
|
+
]),
|
|
433
|
+
),
|
|
434
|
+
}).pipe(
|
|
435
|
+
Schema.encodeKeys({
|
|
436
|
+
code: "code",
|
|
437
|
+
message: "message",
|
|
438
|
+
documentationUrl: "documentation_url",
|
|
439
|
+
source: "source",
|
|
440
|
+
}),
|
|
441
|
+
),
|
|
442
|
+
),
|
|
443
|
+
messages: Schema.Array(
|
|
444
|
+
Schema.Struct({
|
|
445
|
+
code: Schema.Number,
|
|
446
|
+
message: Schema.String,
|
|
447
|
+
documentationUrl: Schema.optional(
|
|
448
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
449
|
+
),
|
|
450
|
+
source: Schema.optional(
|
|
451
|
+
Schema.Union([
|
|
452
|
+
Schema.Struct({
|
|
453
|
+
pointer: Schema.optional(
|
|
454
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
455
|
+
),
|
|
456
|
+
}),
|
|
457
|
+
Schema.Null,
|
|
458
|
+
]),
|
|
459
|
+
),
|
|
460
|
+
}).pipe(
|
|
461
|
+
Schema.encodeKeys({
|
|
462
|
+
code: "code",
|
|
463
|
+
message: "message",
|
|
464
|
+
documentationUrl: "documentation_url",
|
|
465
|
+
source: "source",
|
|
466
|
+
}),
|
|
467
|
+
),
|
|
468
|
+
),
|
|
469
|
+
success: Schema.Literal(true),
|
|
470
|
+
result: Schema.optional(
|
|
471
|
+
Schema.Union([Schema.Array(Schema.Unknown), Schema.Null]),
|
|
472
|
+
),
|
|
473
|
+
resultInfo: Schema.optional(
|
|
474
|
+
Schema.Union([
|
|
475
|
+
Schema.Struct({
|
|
476
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
477
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
478
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
479
|
+
totalCount: Schema.optional(
|
|
480
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
481
|
+
),
|
|
482
|
+
}).pipe(
|
|
483
|
+
Schema.encodeKeys({
|
|
484
|
+
count: "count",
|
|
485
|
+
page: "page",
|
|
486
|
+
perPage: "per_page",
|
|
487
|
+
totalCount: "total_count",
|
|
488
|
+
}),
|
|
489
|
+
),
|
|
490
|
+
Schema.Null,
|
|
491
|
+
]),
|
|
492
|
+
),
|
|
493
|
+
}).pipe(
|
|
494
|
+
Schema.encodeKeys({
|
|
495
|
+
errors: "errors",
|
|
496
|
+
messages: "messages",
|
|
497
|
+
success: "success",
|
|
498
|
+
result: "result",
|
|
499
|
+
resultInfo: "result_info",
|
|
500
|
+
}),
|
|
501
|
+
),
|
|
502
|
+
]) as unknown as Schema.Schema<GetDnsResponse>;
|
|
503
|
+
|
|
504
|
+
export type GetDnsError = DefaultErrors;
|
|
505
|
+
|
|
506
|
+
export const getDns: API.OperationMethod<
|
|
507
|
+
GetDnsRequest,
|
|
508
|
+
GetDnsResponse,
|
|
509
|
+
GetDnsError,
|
|
510
|
+
Credentials | HttpClient.HttpClient
|
|
511
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
512
|
+
input: GetDnsRequest,
|
|
513
|
+
output: GetDnsResponse,
|
|
514
|
+
errors: [],
|
|
515
|
+
}));
|
|
516
|
+
|
|
517
|
+
export interface CreateDnsRequest {
|
|
518
|
+
/** Path param: Identifier. */
|
|
519
|
+
zoneId: string;
|
|
520
|
+
/** Body param: Domain of your zone. */
|
|
521
|
+
name?: string;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
export const CreateDnsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
525
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
526
|
+
name: Schema.optional(Schema.String),
|
|
527
|
+
}).pipe(
|
|
528
|
+
T.Http({ method: "POST", path: "/zones/{zone_id}/email/routing/dns" }),
|
|
529
|
+
) as unknown as Schema.Schema<CreateDnsRequest>;
|
|
530
|
+
|
|
531
|
+
export type CreateDnsResponse = unknown;
|
|
532
|
+
|
|
533
|
+
export const CreateDnsResponse =
|
|
534
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<CreateDnsResponse>;
|
|
535
|
+
|
|
536
|
+
export type CreateDnsError = DefaultErrors;
|
|
537
|
+
|
|
538
|
+
export const createDns: API.OperationMethod<
|
|
539
|
+
CreateDnsRequest,
|
|
540
|
+
CreateDnsResponse,
|
|
541
|
+
CreateDnsError,
|
|
542
|
+
Credentials | HttpClient.HttpClient
|
|
543
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
544
|
+
input: CreateDnsRequest,
|
|
545
|
+
output: CreateDnsResponse,
|
|
546
|
+
errors: [],
|
|
547
|
+
}));
|
|
548
|
+
|
|
549
|
+
export interface PatchDnsRequest {
|
|
550
|
+
/** Path param: Identifier. */
|
|
551
|
+
zoneId: string;
|
|
552
|
+
/** Body param: Domain of your zone. */
|
|
553
|
+
name?: string;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
export const PatchDnsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
557
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
558
|
+
name: Schema.optional(Schema.String),
|
|
559
|
+
}).pipe(
|
|
560
|
+
T.Http({ method: "PATCH", path: "/zones/{zone_id}/email/routing/dns" }),
|
|
561
|
+
) as unknown as Schema.Schema<PatchDnsRequest>;
|
|
562
|
+
|
|
563
|
+
export type PatchDnsResponse = unknown;
|
|
564
|
+
|
|
565
|
+
export const PatchDnsResponse =
|
|
566
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<PatchDnsResponse>;
|
|
567
|
+
|
|
568
|
+
export type PatchDnsError = DefaultErrors;
|
|
569
|
+
|
|
570
|
+
export const patchDns: API.OperationMethod<
|
|
571
|
+
PatchDnsRequest,
|
|
572
|
+
PatchDnsResponse,
|
|
573
|
+
PatchDnsError,
|
|
574
|
+
Credentials | HttpClient.HttpClient
|
|
575
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
576
|
+
input: PatchDnsRequest,
|
|
577
|
+
output: PatchDnsResponse,
|
|
578
|
+
errors: [],
|
|
579
|
+
}));
|
|
580
|
+
|
|
581
|
+
export interface DeleteDnsRequest {
|
|
582
|
+
/** Identifier. */
|
|
583
|
+
zoneId: string;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
export const DeleteDnsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
587
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
588
|
+
}).pipe(
|
|
589
|
+
T.Http({ method: "DELETE", path: "/zones/{zone_id}/email/routing/dns" }),
|
|
590
|
+
) as unknown as Schema.Schema<DeleteDnsRequest>;
|
|
591
|
+
|
|
592
|
+
export type DeleteDnsResponse = {
|
|
593
|
+
content?: string | null;
|
|
594
|
+
name?: string | null;
|
|
595
|
+
priority?: number | null;
|
|
596
|
+
ttl?: number | "1" | null;
|
|
597
|
+
type?:
|
|
598
|
+
| "A"
|
|
599
|
+
| "AAAA"
|
|
600
|
+
| "CNAME"
|
|
601
|
+
| "HTTPS"
|
|
602
|
+
| "TXT"
|
|
603
|
+
| "SRV"
|
|
604
|
+
| "LOC"
|
|
605
|
+
| "MX"
|
|
606
|
+
| "NS"
|
|
607
|
+
| "CERT"
|
|
608
|
+
| "DNSKEY"
|
|
609
|
+
| "DS"
|
|
610
|
+
| "NAPTR"
|
|
611
|
+
| "SMIMEA"
|
|
612
|
+
| "SSHFP"
|
|
613
|
+
| "SVCB"
|
|
614
|
+
| "TLSA"
|
|
615
|
+
| "URI"
|
|
616
|
+
| null;
|
|
617
|
+
}[];
|
|
618
|
+
|
|
619
|
+
export const DeleteDnsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
620
|
+
Schema.Struct({
|
|
621
|
+
content: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
622
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
623
|
+
priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
624
|
+
ttl: Schema.optional(
|
|
625
|
+
Schema.Union([
|
|
626
|
+
Schema.Union([Schema.Number, Schema.Literal("1")]),
|
|
627
|
+
Schema.Null,
|
|
628
|
+
]),
|
|
629
|
+
),
|
|
630
|
+
type: Schema.optional(
|
|
631
|
+
Schema.Union([
|
|
632
|
+
Schema.Literals([
|
|
633
|
+
"A",
|
|
634
|
+
"AAAA",
|
|
635
|
+
"CNAME",
|
|
636
|
+
"HTTPS",
|
|
637
|
+
"TXT",
|
|
638
|
+
"SRV",
|
|
639
|
+
"LOC",
|
|
640
|
+
"MX",
|
|
641
|
+
"NS",
|
|
642
|
+
"CERT",
|
|
643
|
+
"DNSKEY",
|
|
644
|
+
"DS",
|
|
645
|
+
"NAPTR",
|
|
646
|
+
"SMIMEA",
|
|
647
|
+
"SSHFP",
|
|
648
|
+
"SVCB",
|
|
649
|
+
"TLSA",
|
|
650
|
+
"URI",
|
|
651
|
+
]),
|
|
652
|
+
Schema.Null,
|
|
653
|
+
]),
|
|
654
|
+
),
|
|
655
|
+
}),
|
|
656
|
+
) as unknown as Schema.Schema<DeleteDnsResponse>;
|
|
657
|
+
|
|
658
|
+
export type DeleteDnsError = DefaultErrors;
|
|
659
|
+
|
|
660
|
+
export const deleteDns: API.OperationMethod<
|
|
661
|
+
DeleteDnsRequest,
|
|
662
|
+
DeleteDnsResponse,
|
|
663
|
+
DeleteDnsError,
|
|
664
|
+
Credentials | HttpClient.HttpClient
|
|
665
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
666
|
+
input: DeleteDnsRequest,
|
|
667
|
+
output: DeleteDnsResponse,
|
|
668
|
+
errors: [],
|
|
669
|
+
}));
|
|
670
|
+
|
|
671
|
+
// =============================================================================
|
|
672
|
+
// EmailRouting
|
|
673
|
+
// =============================================================================
|
|
674
|
+
|
|
675
|
+
export interface GetEmailRoutingRequest {
|
|
676
|
+
/** Identifier. */
|
|
677
|
+
zoneId: string;
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
export const GetEmailRoutingRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
681
|
+
{
|
|
682
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
683
|
+
},
|
|
684
|
+
).pipe(
|
|
685
|
+
T.Http({ method: "GET", path: "/zones/{zone_id}/email/routing" }),
|
|
686
|
+
) as unknown as Schema.Schema<GetEmailRoutingRequest>;
|
|
687
|
+
|
|
688
|
+
export interface GetEmailRoutingResponse {
|
|
689
|
+
/** Email Routing settings identifier. */
|
|
690
|
+
id: string;
|
|
691
|
+
/** State of the zone settings for Email Routing. */
|
|
692
|
+
enabled: true | false;
|
|
693
|
+
/** Domain of your zone. */
|
|
694
|
+
name: string;
|
|
695
|
+
/** The date and time the settings have been created. */
|
|
696
|
+
created?: string | null;
|
|
697
|
+
/** The date and time the settings have been modified. */
|
|
698
|
+
modified?: string | null;
|
|
699
|
+
/** Flag to check if the user skipped the configuration wizard. */
|
|
700
|
+
skipWizard?: true | false | null;
|
|
701
|
+
/** Show the state of your account, and the type or configuration error. */
|
|
702
|
+
status?:
|
|
703
|
+
| "ready"
|
|
704
|
+
| "unconfigured"
|
|
705
|
+
| "misconfigured"
|
|
706
|
+
| "misconfigured/locked"
|
|
707
|
+
| "unlocked"
|
|
708
|
+
| null;
|
|
709
|
+
/** @deprecated Email Routing settings tag. (Deprecated, replaced by Email Routing settings identifier) */
|
|
710
|
+
tag?: string | null;
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
export const GetEmailRoutingResponse =
|
|
714
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
715
|
+
id: Schema.String,
|
|
716
|
+
enabled: Schema.Literals([true, false]),
|
|
717
|
+
name: Schema.String,
|
|
718
|
+
created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
719
|
+
modified: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
720
|
+
skipWizard: Schema.optional(
|
|
721
|
+
Schema.Union([Schema.Literals([true, false]), Schema.Null]),
|
|
722
|
+
),
|
|
723
|
+
status: Schema.optional(
|
|
724
|
+
Schema.Union([
|
|
725
|
+
Schema.Literals([
|
|
726
|
+
"ready",
|
|
727
|
+
"unconfigured",
|
|
728
|
+
"misconfigured",
|
|
729
|
+
"misconfigured/locked",
|
|
730
|
+
"unlocked",
|
|
731
|
+
]),
|
|
732
|
+
Schema.Null,
|
|
733
|
+
]),
|
|
734
|
+
),
|
|
735
|
+
tag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
736
|
+
}).pipe(
|
|
737
|
+
Schema.encodeKeys({
|
|
738
|
+
id: "id",
|
|
739
|
+
enabled: "enabled",
|
|
740
|
+
name: "name",
|
|
741
|
+
created: "created",
|
|
742
|
+
modified: "modified",
|
|
743
|
+
skipWizard: "skip_wizard",
|
|
744
|
+
status: "status",
|
|
745
|
+
tag: "tag",
|
|
746
|
+
}),
|
|
747
|
+
) as unknown as Schema.Schema<GetEmailRoutingResponse>;
|
|
748
|
+
|
|
749
|
+
export type GetEmailRoutingError = DefaultErrors;
|
|
750
|
+
|
|
751
|
+
export const getEmailRouting: API.OperationMethod<
|
|
752
|
+
GetEmailRoutingRequest,
|
|
753
|
+
GetEmailRoutingResponse,
|
|
754
|
+
GetEmailRoutingError,
|
|
755
|
+
Credentials | HttpClient.HttpClient
|
|
756
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
757
|
+
input: GetEmailRoutingRequest,
|
|
758
|
+
output: GetEmailRoutingResponse,
|
|
759
|
+
errors: [],
|
|
760
|
+
}));
|
|
761
|
+
|
|
762
|
+
export interface EnableEmailRoutingRequest {
|
|
763
|
+
/** Path param: Identifier. */
|
|
764
|
+
zoneId: string;
|
|
765
|
+
/** Body param: */
|
|
766
|
+
body: unknown;
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
export const EnableEmailRoutingRequest =
|
|
770
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
771
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
772
|
+
body: Schema.Unknown.pipe(T.HttpBody()),
|
|
773
|
+
}).pipe(
|
|
774
|
+
T.Http({ method: "POST", path: "/zones/{zone_id}/email/routing/enable" }),
|
|
775
|
+
) as unknown as Schema.Schema<EnableEmailRoutingRequest>;
|
|
776
|
+
|
|
777
|
+
export interface EnableEmailRoutingResponse {
|
|
778
|
+
/** Email Routing settings identifier. */
|
|
779
|
+
id: string;
|
|
780
|
+
/** State of the zone settings for Email Routing. */
|
|
781
|
+
enabled: true | false;
|
|
782
|
+
/** Domain of your zone. */
|
|
783
|
+
name: string;
|
|
784
|
+
/** The date and time the settings have been created. */
|
|
785
|
+
created?: string | null;
|
|
786
|
+
/** The date and time the settings have been modified. */
|
|
787
|
+
modified?: string | null;
|
|
788
|
+
/** Flag to check if the user skipped the configuration wizard. */
|
|
789
|
+
skipWizard?: true | false | null;
|
|
790
|
+
/** Show the state of your account, and the type or configuration error. */
|
|
791
|
+
status?:
|
|
792
|
+
| "ready"
|
|
793
|
+
| "unconfigured"
|
|
794
|
+
| "misconfigured"
|
|
795
|
+
| "misconfigured/locked"
|
|
796
|
+
| "unlocked"
|
|
797
|
+
| null;
|
|
798
|
+
/** @deprecated Email Routing settings tag. (Deprecated, replaced by Email Routing settings identifier) */
|
|
799
|
+
tag?: string | null;
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
export const EnableEmailRoutingResponse =
|
|
803
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
804
|
+
id: Schema.String,
|
|
805
|
+
enabled: Schema.Literals([true, false]),
|
|
806
|
+
name: Schema.String,
|
|
807
|
+
created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
808
|
+
modified: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
809
|
+
skipWizard: Schema.optional(
|
|
810
|
+
Schema.Union([Schema.Literals([true, false]), Schema.Null]),
|
|
811
|
+
),
|
|
812
|
+
status: Schema.optional(
|
|
813
|
+
Schema.Union([
|
|
814
|
+
Schema.Literals([
|
|
815
|
+
"ready",
|
|
816
|
+
"unconfigured",
|
|
817
|
+
"misconfigured",
|
|
818
|
+
"misconfigured/locked",
|
|
819
|
+
"unlocked",
|
|
820
|
+
]),
|
|
821
|
+
Schema.Null,
|
|
822
|
+
]),
|
|
823
|
+
),
|
|
824
|
+
tag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
825
|
+
}).pipe(
|
|
826
|
+
Schema.encodeKeys({
|
|
827
|
+
id: "id",
|
|
828
|
+
enabled: "enabled",
|
|
829
|
+
name: "name",
|
|
830
|
+
created: "created",
|
|
831
|
+
modified: "modified",
|
|
832
|
+
skipWizard: "skip_wizard",
|
|
833
|
+
status: "status",
|
|
834
|
+
tag: "tag",
|
|
835
|
+
}),
|
|
836
|
+
) as unknown as Schema.Schema<EnableEmailRoutingResponse>;
|
|
837
|
+
|
|
838
|
+
export type EnableEmailRoutingError = DefaultErrors;
|
|
839
|
+
|
|
840
|
+
export const enableEmailRouting: API.OperationMethod<
|
|
841
|
+
EnableEmailRoutingRequest,
|
|
842
|
+
EnableEmailRoutingResponse,
|
|
843
|
+
EnableEmailRoutingError,
|
|
844
|
+
Credentials | HttpClient.HttpClient
|
|
845
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
846
|
+
input: EnableEmailRoutingRequest,
|
|
847
|
+
output: EnableEmailRoutingResponse,
|
|
848
|
+
errors: [],
|
|
849
|
+
}));
|
|
850
|
+
|
|
851
|
+
export interface DisableEmailRoutingRequest {
|
|
852
|
+
/** Path param: Identifier. */
|
|
853
|
+
zoneId: string;
|
|
854
|
+
/** Body param: */
|
|
855
|
+
body: unknown;
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
export const DisableEmailRoutingRequest =
|
|
859
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
860
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
861
|
+
body: Schema.Unknown.pipe(T.HttpBody()),
|
|
862
|
+
}).pipe(
|
|
863
|
+
T.Http({ method: "POST", path: "/zones/{zone_id}/email/routing/disable" }),
|
|
864
|
+
) as unknown as Schema.Schema<DisableEmailRoutingRequest>;
|
|
865
|
+
|
|
866
|
+
export interface DisableEmailRoutingResponse {
|
|
867
|
+
/** Email Routing settings identifier. */
|
|
868
|
+
id: string;
|
|
869
|
+
/** State of the zone settings for Email Routing. */
|
|
870
|
+
enabled: true | false;
|
|
871
|
+
/** Domain of your zone. */
|
|
872
|
+
name: string;
|
|
873
|
+
/** The date and time the settings have been created. */
|
|
874
|
+
created?: string | null;
|
|
875
|
+
/** The date and time the settings have been modified. */
|
|
876
|
+
modified?: string | null;
|
|
877
|
+
/** Flag to check if the user skipped the configuration wizard. */
|
|
878
|
+
skipWizard?: true | false | null;
|
|
879
|
+
/** Show the state of your account, and the type or configuration error. */
|
|
880
|
+
status?:
|
|
881
|
+
| "ready"
|
|
882
|
+
| "unconfigured"
|
|
883
|
+
| "misconfigured"
|
|
884
|
+
| "misconfigured/locked"
|
|
885
|
+
| "unlocked"
|
|
886
|
+
| null;
|
|
887
|
+
/** @deprecated Email Routing settings tag. (Deprecated, replaced by Email Routing settings identifier) */
|
|
888
|
+
tag?: string | null;
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
export const DisableEmailRoutingResponse =
|
|
892
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
893
|
+
id: Schema.String,
|
|
894
|
+
enabled: Schema.Literals([true, false]),
|
|
895
|
+
name: Schema.String,
|
|
896
|
+
created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
897
|
+
modified: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
898
|
+
skipWizard: Schema.optional(
|
|
899
|
+
Schema.Union([Schema.Literals([true, false]), Schema.Null]),
|
|
900
|
+
),
|
|
901
|
+
status: Schema.optional(
|
|
902
|
+
Schema.Union([
|
|
903
|
+
Schema.Literals([
|
|
904
|
+
"ready",
|
|
905
|
+
"unconfigured",
|
|
906
|
+
"misconfigured",
|
|
907
|
+
"misconfigured/locked",
|
|
908
|
+
"unlocked",
|
|
909
|
+
]),
|
|
910
|
+
Schema.Null,
|
|
911
|
+
]),
|
|
912
|
+
),
|
|
913
|
+
tag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
914
|
+
}).pipe(
|
|
915
|
+
Schema.encodeKeys({
|
|
916
|
+
id: "id",
|
|
917
|
+
enabled: "enabled",
|
|
918
|
+
name: "name",
|
|
919
|
+
created: "created",
|
|
920
|
+
modified: "modified",
|
|
921
|
+
skipWizard: "skip_wizard",
|
|
922
|
+
status: "status",
|
|
923
|
+
tag: "tag",
|
|
924
|
+
}),
|
|
925
|
+
) as unknown as Schema.Schema<DisableEmailRoutingResponse>;
|
|
926
|
+
|
|
927
|
+
export type DisableEmailRoutingError = DefaultErrors;
|
|
928
|
+
|
|
929
|
+
export const disableEmailRouting: API.OperationMethod<
|
|
930
|
+
DisableEmailRoutingRequest,
|
|
931
|
+
DisableEmailRoutingResponse,
|
|
932
|
+
DisableEmailRoutingError,
|
|
933
|
+
Credentials | HttpClient.HttpClient
|
|
934
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
935
|
+
input: DisableEmailRoutingRequest,
|
|
936
|
+
output: DisableEmailRoutingResponse,
|
|
937
|
+
errors: [],
|
|
938
|
+
}));
|
|
939
|
+
|
|
940
|
+
// =============================================================================
|
|
941
|
+
// Rule
|
|
942
|
+
// =============================================================================
|
|
943
|
+
|
|
944
|
+
export interface GetRuleRequest {
|
|
945
|
+
ruleIdentifier: string;
|
|
946
|
+
/** Identifier. */
|
|
947
|
+
zoneId: string;
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
export const GetRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
951
|
+
ruleIdentifier: Schema.String.pipe(T.HttpPath("ruleIdentifier")),
|
|
952
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
953
|
+
}).pipe(
|
|
954
|
+
T.Http({
|
|
955
|
+
method: "GET",
|
|
956
|
+
path: "/zones/{zone_id}/email/routing/rules/{ruleIdentifier}",
|
|
957
|
+
}),
|
|
958
|
+
) as unknown as Schema.Schema<GetRuleRequest>;
|
|
959
|
+
|
|
960
|
+
export interface GetRuleResponse {
|
|
961
|
+
/** Routing rule identifier. */
|
|
962
|
+
id?: string | null;
|
|
963
|
+
/** List actions patterns. */
|
|
964
|
+
actions?:
|
|
965
|
+
| { type: "drop" | "forward" | "worker"; value?: string[] | null }[]
|
|
966
|
+
| null;
|
|
967
|
+
/** Routing rule status. */
|
|
968
|
+
enabled?: true | false | null;
|
|
969
|
+
/** Matching patterns to forward to your actions. */
|
|
970
|
+
matchers?:
|
|
971
|
+
| { type: "all" | "literal"; field?: "to" | null; value?: string | null }[]
|
|
972
|
+
| null;
|
|
973
|
+
/** Routing rule name. */
|
|
974
|
+
name?: string | null;
|
|
975
|
+
/** Priority of the routing rule. */
|
|
976
|
+
priority?: number | null;
|
|
977
|
+
/** @deprecated Routing rule tag. (Deprecated, replaced by routing rule identifier) */
|
|
978
|
+
tag?: string | null;
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
export const GetRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
982
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
983
|
+
actions: Schema.optional(
|
|
984
|
+
Schema.Union([
|
|
985
|
+
Schema.Array(
|
|
986
|
+
Schema.Struct({
|
|
987
|
+
type: Schema.Literals(["drop", "forward", "worker"]),
|
|
988
|
+
value: Schema.optional(
|
|
989
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
990
|
+
),
|
|
991
|
+
}),
|
|
992
|
+
),
|
|
993
|
+
Schema.Null,
|
|
994
|
+
]),
|
|
995
|
+
),
|
|
996
|
+
enabled: Schema.optional(
|
|
997
|
+
Schema.Union([Schema.Literals([true, false]), Schema.Null]),
|
|
998
|
+
),
|
|
999
|
+
matchers: Schema.optional(
|
|
1000
|
+
Schema.Union([
|
|
1001
|
+
Schema.Array(
|
|
1002
|
+
Schema.Struct({
|
|
1003
|
+
type: Schema.Literals(["all", "literal"]),
|
|
1004
|
+
field: Schema.optional(
|
|
1005
|
+
Schema.Union([Schema.Literal("to"), Schema.Null]),
|
|
1006
|
+
),
|
|
1007
|
+
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1008
|
+
}),
|
|
1009
|
+
),
|
|
1010
|
+
Schema.Null,
|
|
1011
|
+
]),
|
|
1012
|
+
),
|
|
1013
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1014
|
+
priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1015
|
+
tag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1016
|
+
}) as unknown as Schema.Schema<GetRuleResponse>;
|
|
1017
|
+
|
|
1018
|
+
export type GetRuleError = DefaultErrors;
|
|
1019
|
+
|
|
1020
|
+
export const getRule: API.OperationMethod<
|
|
1021
|
+
GetRuleRequest,
|
|
1022
|
+
GetRuleResponse,
|
|
1023
|
+
GetRuleError,
|
|
1024
|
+
Credentials | HttpClient.HttpClient
|
|
1025
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1026
|
+
input: GetRuleRequest,
|
|
1027
|
+
output: GetRuleResponse,
|
|
1028
|
+
errors: [],
|
|
1029
|
+
}));
|
|
1030
|
+
|
|
1031
|
+
export interface ListRulesRequest {
|
|
1032
|
+
/** Path param: Identifier. */
|
|
1033
|
+
zoneId: string;
|
|
1034
|
+
/** Query param: Filter by enabled routing rules. */
|
|
1035
|
+
enabled?: true | false;
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
export const ListRulesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1039
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
1040
|
+
enabled: Schema.optional(Schema.Literals([true, false])).pipe(
|
|
1041
|
+
T.HttpQuery("enabled"),
|
|
1042
|
+
),
|
|
1043
|
+
}).pipe(
|
|
1044
|
+
T.Http({ method: "GET", path: "/zones/{zone_id}/email/routing/rules" }),
|
|
1045
|
+
) as unknown as Schema.Schema<ListRulesRequest>;
|
|
1046
|
+
|
|
1047
|
+
export type ListRulesResponse = {
|
|
1048
|
+
id?: string | null;
|
|
1049
|
+
actions?:
|
|
1050
|
+
| { type: "drop" | "forward" | "worker"; value?: string[] | null }[]
|
|
1051
|
+
| null;
|
|
1052
|
+
enabled?: true | false | null;
|
|
1053
|
+
matchers?:
|
|
1054
|
+
| { type: "all" | "literal"; field?: "to" | null; value?: string | null }[]
|
|
1055
|
+
| null;
|
|
1056
|
+
name?: string | null;
|
|
1057
|
+
priority?: number | null;
|
|
1058
|
+
tag?: string | null;
|
|
1059
|
+
}[];
|
|
1060
|
+
|
|
1061
|
+
export const ListRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
1062
|
+
Schema.Struct({
|
|
1063
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1064
|
+
actions: Schema.optional(
|
|
1065
|
+
Schema.Union([
|
|
1066
|
+
Schema.Array(
|
|
1067
|
+
Schema.Struct({
|
|
1068
|
+
type: Schema.Literals(["drop", "forward", "worker"]),
|
|
1069
|
+
value: Schema.optional(
|
|
1070
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
1071
|
+
),
|
|
1072
|
+
}),
|
|
1073
|
+
),
|
|
1074
|
+
Schema.Null,
|
|
1075
|
+
]),
|
|
1076
|
+
),
|
|
1077
|
+
enabled: Schema.optional(
|
|
1078
|
+
Schema.Union([Schema.Literals([true, false]), Schema.Null]),
|
|
1079
|
+
),
|
|
1080
|
+
matchers: Schema.optional(
|
|
1081
|
+
Schema.Union([
|
|
1082
|
+
Schema.Array(
|
|
1083
|
+
Schema.Struct({
|
|
1084
|
+
type: Schema.Literals(["all", "literal"]),
|
|
1085
|
+
field: Schema.optional(
|
|
1086
|
+
Schema.Union([Schema.Literal("to"), Schema.Null]),
|
|
1087
|
+
),
|
|
1088
|
+
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1089
|
+
}),
|
|
1090
|
+
),
|
|
1091
|
+
Schema.Null,
|
|
1092
|
+
]),
|
|
1093
|
+
),
|
|
1094
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1095
|
+
priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1096
|
+
tag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1097
|
+
}),
|
|
1098
|
+
) as unknown as Schema.Schema<ListRulesResponse>;
|
|
1099
|
+
|
|
1100
|
+
export type ListRulesError = DefaultErrors;
|
|
1101
|
+
|
|
1102
|
+
export const listRules: API.OperationMethod<
|
|
1103
|
+
ListRulesRequest,
|
|
1104
|
+
ListRulesResponse,
|
|
1105
|
+
ListRulesError,
|
|
1106
|
+
Credentials | HttpClient.HttpClient
|
|
1107
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1108
|
+
input: ListRulesRequest,
|
|
1109
|
+
output: ListRulesResponse,
|
|
1110
|
+
errors: [],
|
|
1111
|
+
}));
|
|
1112
|
+
|
|
1113
|
+
export interface CreateRuleRequest {
|
|
1114
|
+
/** Path param: Identifier. */
|
|
1115
|
+
zoneId: string;
|
|
1116
|
+
/** Body param: List actions patterns. */
|
|
1117
|
+
actions: { type: "drop" | "forward" | "worker"; value?: string[] }[];
|
|
1118
|
+
/** Body param: Matching patterns to forward to your actions. */
|
|
1119
|
+
matchers: { type: "all" | "literal"; field?: "to"; value?: string }[];
|
|
1120
|
+
/** Body param: Routing rule status. */
|
|
1121
|
+
enabled?: true | false;
|
|
1122
|
+
/** Body param: Routing rule name. */
|
|
1123
|
+
name?: string;
|
|
1124
|
+
/** Body param: Priority of the routing rule. */
|
|
1125
|
+
priority?: number;
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
export const CreateRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1129
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
1130
|
+
actions: Schema.Array(
|
|
1131
|
+
Schema.Struct({
|
|
1132
|
+
type: Schema.Literals(["drop", "forward", "worker"]),
|
|
1133
|
+
value: Schema.optional(Schema.Array(Schema.String)),
|
|
1134
|
+
}),
|
|
1135
|
+
),
|
|
1136
|
+
matchers: Schema.Array(
|
|
1137
|
+
Schema.Struct({
|
|
1138
|
+
type: Schema.Literals(["all", "literal"]),
|
|
1139
|
+
field: Schema.optional(Schema.Literal("to")),
|
|
1140
|
+
value: Schema.optional(Schema.String),
|
|
1141
|
+
}),
|
|
1142
|
+
),
|
|
1143
|
+
enabled: Schema.optional(Schema.Literals([true, false])),
|
|
1144
|
+
name: Schema.optional(Schema.String),
|
|
1145
|
+
priority: Schema.optional(Schema.Number),
|
|
1146
|
+
}).pipe(
|
|
1147
|
+
T.Http({ method: "POST", path: "/zones/{zone_id}/email/routing/rules" }),
|
|
1148
|
+
) as unknown as Schema.Schema<CreateRuleRequest>;
|
|
1149
|
+
|
|
1150
|
+
export interface CreateRuleResponse {
|
|
1151
|
+
/** Routing rule identifier. */
|
|
1152
|
+
id?: string | null;
|
|
1153
|
+
/** List actions patterns. */
|
|
1154
|
+
actions?:
|
|
1155
|
+
| { type: "drop" | "forward" | "worker"; value?: string[] | null }[]
|
|
1156
|
+
| null;
|
|
1157
|
+
/** Routing rule status. */
|
|
1158
|
+
enabled?: true | false | null;
|
|
1159
|
+
/** Matching patterns to forward to your actions. */
|
|
1160
|
+
matchers?:
|
|
1161
|
+
| { type: "all" | "literal"; field?: "to" | null; value?: string | null }[]
|
|
1162
|
+
| null;
|
|
1163
|
+
/** Routing rule name. */
|
|
1164
|
+
name?: string | null;
|
|
1165
|
+
/** Priority of the routing rule. */
|
|
1166
|
+
priority?: number | null;
|
|
1167
|
+
/** @deprecated Routing rule tag. (Deprecated, replaced by routing rule identifier) */
|
|
1168
|
+
tag?: string | null;
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1171
|
+
export const CreateRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1172
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1173
|
+
actions: Schema.optional(
|
|
1174
|
+
Schema.Union([
|
|
1175
|
+
Schema.Array(
|
|
1176
|
+
Schema.Struct({
|
|
1177
|
+
type: Schema.Literals(["drop", "forward", "worker"]),
|
|
1178
|
+
value: Schema.optional(
|
|
1179
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
1180
|
+
),
|
|
1181
|
+
}),
|
|
1182
|
+
),
|
|
1183
|
+
Schema.Null,
|
|
1184
|
+
]),
|
|
1185
|
+
),
|
|
1186
|
+
enabled: Schema.optional(
|
|
1187
|
+
Schema.Union([Schema.Literals([true, false]), Schema.Null]),
|
|
1188
|
+
),
|
|
1189
|
+
matchers: Schema.optional(
|
|
1190
|
+
Schema.Union([
|
|
1191
|
+
Schema.Array(
|
|
1192
|
+
Schema.Struct({
|
|
1193
|
+
type: Schema.Literals(["all", "literal"]),
|
|
1194
|
+
field: Schema.optional(
|
|
1195
|
+
Schema.Union([Schema.Literal("to"), Schema.Null]),
|
|
1196
|
+
),
|
|
1197
|
+
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1198
|
+
}),
|
|
1199
|
+
),
|
|
1200
|
+
Schema.Null,
|
|
1201
|
+
]),
|
|
1202
|
+
),
|
|
1203
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1204
|
+
priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1205
|
+
tag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1206
|
+
}) as unknown as Schema.Schema<CreateRuleResponse>;
|
|
1207
|
+
|
|
1208
|
+
export type CreateRuleError = DefaultErrors;
|
|
1209
|
+
|
|
1210
|
+
export const createRule: API.OperationMethod<
|
|
1211
|
+
CreateRuleRequest,
|
|
1212
|
+
CreateRuleResponse,
|
|
1213
|
+
CreateRuleError,
|
|
1214
|
+
Credentials | HttpClient.HttpClient
|
|
1215
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1216
|
+
input: CreateRuleRequest,
|
|
1217
|
+
output: CreateRuleResponse,
|
|
1218
|
+
errors: [],
|
|
1219
|
+
}));
|
|
1220
|
+
|
|
1221
|
+
export interface UpdateRuleRequest {
|
|
1222
|
+
ruleIdentifier: string;
|
|
1223
|
+
/** Path param: Identifier. */
|
|
1224
|
+
zoneId: string;
|
|
1225
|
+
/** Body param: List actions patterns. */
|
|
1226
|
+
actions: { type: "drop" | "forward" | "worker"; value?: string[] }[];
|
|
1227
|
+
/** Body param: Matching patterns to forward to your actions. */
|
|
1228
|
+
matchers: { type: "all" | "literal"; field?: "to"; value?: string }[];
|
|
1229
|
+
/** Body param: Routing rule status. */
|
|
1230
|
+
enabled?: true | false;
|
|
1231
|
+
/** Body param: Routing rule name. */
|
|
1232
|
+
name?: string;
|
|
1233
|
+
/** Body param: Priority of the routing rule. */
|
|
1234
|
+
priority?: number;
|
|
1235
|
+
}
|
|
1236
|
+
|
|
1237
|
+
export const UpdateRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1238
|
+
ruleIdentifier: Schema.String.pipe(T.HttpPath("ruleIdentifier")),
|
|
1239
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
1240
|
+
actions: Schema.Array(
|
|
1241
|
+
Schema.Struct({
|
|
1242
|
+
type: Schema.Literals(["drop", "forward", "worker"]),
|
|
1243
|
+
value: Schema.optional(Schema.Array(Schema.String)),
|
|
1244
|
+
}),
|
|
1245
|
+
),
|
|
1246
|
+
matchers: Schema.Array(
|
|
1247
|
+
Schema.Struct({
|
|
1248
|
+
type: Schema.Literals(["all", "literal"]),
|
|
1249
|
+
field: Schema.optional(Schema.Literal("to")),
|
|
1250
|
+
value: Schema.optional(Schema.String),
|
|
1251
|
+
}),
|
|
1252
|
+
),
|
|
1253
|
+
enabled: Schema.optional(Schema.Literals([true, false])),
|
|
1254
|
+
name: Schema.optional(Schema.String),
|
|
1255
|
+
priority: Schema.optional(Schema.Number),
|
|
1256
|
+
}).pipe(
|
|
1257
|
+
T.Http({
|
|
1258
|
+
method: "PUT",
|
|
1259
|
+
path: "/zones/{zone_id}/email/routing/rules/{ruleIdentifier}",
|
|
1260
|
+
}),
|
|
1261
|
+
) as unknown as Schema.Schema<UpdateRuleRequest>;
|
|
1262
|
+
|
|
1263
|
+
export interface UpdateRuleResponse {
|
|
1264
|
+
/** Routing rule identifier. */
|
|
1265
|
+
id?: string | null;
|
|
1266
|
+
/** List actions patterns. */
|
|
1267
|
+
actions?:
|
|
1268
|
+
| { type: "drop" | "forward" | "worker"; value?: string[] | null }[]
|
|
1269
|
+
| null;
|
|
1270
|
+
/** Routing rule status. */
|
|
1271
|
+
enabled?: true | false | null;
|
|
1272
|
+
/** Matching patterns to forward to your actions. */
|
|
1273
|
+
matchers?:
|
|
1274
|
+
| { type: "all" | "literal"; field?: "to" | null; value?: string | null }[]
|
|
1275
|
+
| null;
|
|
1276
|
+
/** Routing rule name. */
|
|
1277
|
+
name?: string | null;
|
|
1278
|
+
/** Priority of the routing rule. */
|
|
1279
|
+
priority?: number | null;
|
|
1280
|
+
/** @deprecated Routing rule tag. (Deprecated, replaced by routing rule identifier) */
|
|
1281
|
+
tag?: string | null;
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
export const UpdateRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1285
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1286
|
+
actions: Schema.optional(
|
|
1287
|
+
Schema.Union([
|
|
1288
|
+
Schema.Array(
|
|
1289
|
+
Schema.Struct({
|
|
1290
|
+
type: Schema.Literals(["drop", "forward", "worker"]),
|
|
1291
|
+
value: Schema.optional(
|
|
1292
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
1293
|
+
),
|
|
1294
|
+
}),
|
|
1295
|
+
),
|
|
1296
|
+
Schema.Null,
|
|
1297
|
+
]),
|
|
1298
|
+
),
|
|
1299
|
+
enabled: Schema.optional(
|
|
1300
|
+
Schema.Union([Schema.Literals([true, false]), Schema.Null]),
|
|
1301
|
+
),
|
|
1302
|
+
matchers: Schema.optional(
|
|
1303
|
+
Schema.Union([
|
|
1304
|
+
Schema.Array(
|
|
1305
|
+
Schema.Struct({
|
|
1306
|
+
type: Schema.Literals(["all", "literal"]),
|
|
1307
|
+
field: Schema.optional(
|
|
1308
|
+
Schema.Union([Schema.Literal("to"), Schema.Null]),
|
|
1309
|
+
),
|
|
1310
|
+
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1311
|
+
}),
|
|
1312
|
+
),
|
|
1313
|
+
Schema.Null,
|
|
1314
|
+
]),
|
|
1315
|
+
),
|
|
1316
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1317
|
+
priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1318
|
+
tag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1319
|
+
}) as unknown as Schema.Schema<UpdateRuleResponse>;
|
|
1320
|
+
|
|
1321
|
+
export type UpdateRuleError = DefaultErrors;
|
|
1322
|
+
|
|
1323
|
+
export const updateRule: API.OperationMethod<
|
|
1324
|
+
UpdateRuleRequest,
|
|
1325
|
+
UpdateRuleResponse,
|
|
1326
|
+
UpdateRuleError,
|
|
1327
|
+
Credentials | HttpClient.HttpClient
|
|
1328
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1329
|
+
input: UpdateRuleRequest,
|
|
1330
|
+
output: UpdateRuleResponse,
|
|
1331
|
+
errors: [],
|
|
1332
|
+
}));
|
|
1333
|
+
|
|
1334
|
+
export interface DeleteRuleRequest {
|
|
1335
|
+
ruleIdentifier: string;
|
|
1336
|
+
/** Identifier. */
|
|
1337
|
+
zoneId: string;
|
|
1338
|
+
}
|
|
1339
|
+
|
|
1340
|
+
export const DeleteRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1341
|
+
ruleIdentifier: Schema.String.pipe(T.HttpPath("ruleIdentifier")),
|
|
1342
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
1343
|
+
}).pipe(
|
|
1344
|
+
T.Http({
|
|
1345
|
+
method: "DELETE",
|
|
1346
|
+
path: "/zones/{zone_id}/email/routing/rules/{ruleIdentifier}",
|
|
1347
|
+
}),
|
|
1348
|
+
) as unknown as Schema.Schema<DeleteRuleRequest>;
|
|
1349
|
+
|
|
1350
|
+
export interface DeleteRuleResponse {
|
|
1351
|
+
/** Routing rule identifier. */
|
|
1352
|
+
id?: string | null;
|
|
1353
|
+
/** List actions patterns. */
|
|
1354
|
+
actions?:
|
|
1355
|
+
| { type: "drop" | "forward" | "worker"; value?: string[] | null }[]
|
|
1356
|
+
| null;
|
|
1357
|
+
/** Routing rule status. */
|
|
1358
|
+
enabled?: true | false | null;
|
|
1359
|
+
/** Matching patterns to forward to your actions. */
|
|
1360
|
+
matchers?:
|
|
1361
|
+
| { type: "all" | "literal"; field?: "to" | null; value?: string | null }[]
|
|
1362
|
+
| null;
|
|
1363
|
+
/** Routing rule name. */
|
|
1364
|
+
name?: string | null;
|
|
1365
|
+
/** Priority of the routing rule. */
|
|
1366
|
+
priority?: number | null;
|
|
1367
|
+
/** @deprecated Routing rule tag. (Deprecated, replaced by routing rule identifier) */
|
|
1368
|
+
tag?: string | null;
|
|
1369
|
+
}
|
|
1370
|
+
|
|
1371
|
+
export const DeleteRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1372
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1373
|
+
actions: Schema.optional(
|
|
1374
|
+
Schema.Union([
|
|
1375
|
+
Schema.Array(
|
|
1376
|
+
Schema.Struct({
|
|
1377
|
+
type: Schema.Literals(["drop", "forward", "worker"]),
|
|
1378
|
+
value: Schema.optional(
|
|
1379
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
1380
|
+
),
|
|
1381
|
+
}),
|
|
1382
|
+
),
|
|
1383
|
+
Schema.Null,
|
|
1384
|
+
]),
|
|
1385
|
+
),
|
|
1386
|
+
enabled: Schema.optional(
|
|
1387
|
+
Schema.Union([Schema.Literals([true, false]), Schema.Null]),
|
|
1388
|
+
),
|
|
1389
|
+
matchers: Schema.optional(
|
|
1390
|
+
Schema.Union([
|
|
1391
|
+
Schema.Array(
|
|
1392
|
+
Schema.Struct({
|
|
1393
|
+
type: Schema.Literals(["all", "literal"]),
|
|
1394
|
+
field: Schema.optional(
|
|
1395
|
+
Schema.Union([Schema.Literal("to"), Schema.Null]),
|
|
1396
|
+
),
|
|
1397
|
+
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1398
|
+
}),
|
|
1399
|
+
),
|
|
1400
|
+
Schema.Null,
|
|
1401
|
+
]),
|
|
1402
|
+
),
|
|
1403
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1404
|
+
priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1405
|
+
tag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1406
|
+
}) as unknown as Schema.Schema<DeleteRuleResponse>;
|
|
1407
|
+
|
|
1408
|
+
export type DeleteRuleError = DefaultErrors;
|
|
1409
|
+
|
|
1410
|
+
export const deleteRule: API.OperationMethod<
|
|
1411
|
+
DeleteRuleRequest,
|
|
1412
|
+
DeleteRuleResponse,
|
|
1413
|
+
DeleteRuleError,
|
|
1414
|
+
Credentials | HttpClient.HttpClient
|
|
1415
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1416
|
+
input: DeleteRuleRequest,
|
|
1417
|
+
output: DeleteRuleResponse,
|
|
1418
|
+
errors: [],
|
|
1419
|
+
}));
|
|
1420
|
+
|
|
1421
|
+
// =============================================================================
|
|
1422
|
+
// RuleCatchAll
|
|
1423
|
+
// =============================================================================
|
|
1424
|
+
|
|
1425
|
+
export interface GetRuleCatchAllRequest {
|
|
1426
|
+
/** Identifier. */
|
|
1427
|
+
zoneId: string;
|
|
1428
|
+
}
|
|
1429
|
+
|
|
1430
|
+
export const GetRuleCatchAllRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
1431
|
+
{
|
|
1432
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
1433
|
+
},
|
|
1434
|
+
).pipe(
|
|
1435
|
+
T.Http({
|
|
1436
|
+
method: "GET",
|
|
1437
|
+
path: "/zones/{zone_id}/email/routing/rules/catch_all",
|
|
1438
|
+
}),
|
|
1439
|
+
) as unknown as Schema.Schema<GetRuleCatchAllRequest>;
|
|
1440
|
+
|
|
1441
|
+
export interface GetRuleCatchAllResponse {
|
|
1442
|
+
/** Routing rule identifier. */
|
|
1443
|
+
id?: string | null;
|
|
1444
|
+
/** List actions for the catch-all routing rule. */
|
|
1445
|
+
actions?:
|
|
1446
|
+
| { type: "drop" | "forward" | "worker"; value?: string[] | null }[]
|
|
1447
|
+
| null;
|
|
1448
|
+
/** Routing rule status. */
|
|
1449
|
+
enabled?: true | false | null;
|
|
1450
|
+
/** List of matchers for the catch-all routing rule. */
|
|
1451
|
+
matchers?: { type: "all" }[] | null;
|
|
1452
|
+
/** Routing rule name. */
|
|
1453
|
+
name?: string | null;
|
|
1454
|
+
/** @deprecated Routing rule tag. (Deprecated, replaced by routing rule identifier) */
|
|
1455
|
+
tag?: string | null;
|
|
1456
|
+
}
|
|
1457
|
+
|
|
1458
|
+
export const GetRuleCatchAllResponse =
|
|
1459
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1460
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1461
|
+
actions: Schema.optional(
|
|
1462
|
+
Schema.Union([
|
|
1463
|
+
Schema.Array(
|
|
1464
|
+
Schema.Struct({
|
|
1465
|
+
type: Schema.Literals(["drop", "forward", "worker"]),
|
|
1466
|
+
value: Schema.optional(
|
|
1467
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
1468
|
+
),
|
|
1469
|
+
}),
|
|
1470
|
+
),
|
|
1471
|
+
Schema.Null,
|
|
1472
|
+
]),
|
|
1473
|
+
),
|
|
1474
|
+
enabled: Schema.optional(
|
|
1475
|
+
Schema.Union([Schema.Literals([true, false]), Schema.Null]),
|
|
1476
|
+
),
|
|
1477
|
+
matchers: Schema.optional(
|
|
1478
|
+
Schema.Union([
|
|
1479
|
+
Schema.Array(
|
|
1480
|
+
Schema.Struct({
|
|
1481
|
+
type: Schema.Literal("all"),
|
|
1482
|
+
}),
|
|
1483
|
+
),
|
|
1484
|
+
Schema.Null,
|
|
1485
|
+
]),
|
|
1486
|
+
),
|
|
1487
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1488
|
+
tag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1489
|
+
}) as unknown as Schema.Schema<GetRuleCatchAllResponse>;
|
|
1490
|
+
|
|
1491
|
+
export type GetRuleCatchAllError = DefaultErrors;
|
|
1492
|
+
|
|
1493
|
+
export const getRuleCatchAll: API.OperationMethod<
|
|
1494
|
+
GetRuleCatchAllRequest,
|
|
1495
|
+
GetRuleCatchAllResponse,
|
|
1496
|
+
GetRuleCatchAllError,
|
|
1497
|
+
Credentials | HttpClient.HttpClient
|
|
1498
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1499
|
+
input: GetRuleCatchAllRequest,
|
|
1500
|
+
output: GetRuleCatchAllResponse,
|
|
1501
|
+
errors: [],
|
|
1502
|
+
}));
|
|
1503
|
+
|
|
1504
|
+
export interface PutRuleCatchAllRequest {
|
|
1505
|
+
/** Path param: Identifier. */
|
|
1506
|
+
zoneId: string;
|
|
1507
|
+
/** Body param: List actions for the catch-all routing rule. */
|
|
1508
|
+
actions: { type: "drop" | "forward" | "worker"; value?: string[] }[];
|
|
1509
|
+
/** Body param: List of matchers for the catch-all routing rule. */
|
|
1510
|
+
matchers: { type: "all" }[];
|
|
1511
|
+
/** Body param: Routing rule status. */
|
|
1512
|
+
enabled?: true | false;
|
|
1513
|
+
/** Body param: Routing rule name. */
|
|
1514
|
+
name?: string;
|
|
1515
|
+
}
|
|
1516
|
+
|
|
1517
|
+
export const PutRuleCatchAllRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
1518
|
+
{
|
|
1519
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
1520
|
+
actions: Schema.Array(
|
|
1521
|
+
Schema.Struct({
|
|
1522
|
+
type: Schema.Literals(["drop", "forward", "worker"]),
|
|
1523
|
+
value: Schema.optional(Schema.Array(Schema.String)),
|
|
1524
|
+
}),
|
|
1525
|
+
),
|
|
1526
|
+
matchers: Schema.Array(
|
|
1527
|
+
Schema.Struct({
|
|
1528
|
+
type: Schema.Literal("all"),
|
|
1529
|
+
}),
|
|
1530
|
+
),
|
|
1531
|
+
enabled: Schema.optional(Schema.Literals([true, false])),
|
|
1532
|
+
name: Schema.optional(Schema.String),
|
|
1533
|
+
},
|
|
1534
|
+
).pipe(
|
|
1535
|
+
T.Http({
|
|
1536
|
+
method: "PUT",
|
|
1537
|
+
path: "/zones/{zone_id}/email/routing/rules/catch_all",
|
|
1538
|
+
}),
|
|
1539
|
+
) as unknown as Schema.Schema<PutRuleCatchAllRequest>;
|
|
1540
|
+
|
|
1541
|
+
export interface PutRuleCatchAllResponse {
|
|
1542
|
+
/** Routing rule identifier. */
|
|
1543
|
+
id?: string | null;
|
|
1544
|
+
/** List actions for the catch-all routing rule. */
|
|
1545
|
+
actions?:
|
|
1546
|
+
| { type: "drop" | "forward" | "worker"; value?: string[] | null }[]
|
|
1547
|
+
| null;
|
|
1548
|
+
/** Routing rule status. */
|
|
1549
|
+
enabled?: true | false | null;
|
|
1550
|
+
/** List of matchers for the catch-all routing rule. */
|
|
1551
|
+
matchers?: { type: "all" }[] | null;
|
|
1552
|
+
/** Routing rule name. */
|
|
1553
|
+
name?: string | null;
|
|
1554
|
+
/** @deprecated Routing rule tag. (Deprecated, replaced by routing rule identifier) */
|
|
1555
|
+
tag?: string | null;
|
|
1556
|
+
}
|
|
1557
|
+
|
|
1558
|
+
export const PutRuleCatchAllResponse =
|
|
1559
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1560
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1561
|
+
actions: Schema.optional(
|
|
1562
|
+
Schema.Union([
|
|
1563
|
+
Schema.Array(
|
|
1564
|
+
Schema.Struct({
|
|
1565
|
+
type: Schema.Literals(["drop", "forward", "worker"]),
|
|
1566
|
+
value: Schema.optional(
|
|
1567
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
1568
|
+
),
|
|
1569
|
+
}),
|
|
1570
|
+
),
|
|
1571
|
+
Schema.Null,
|
|
1572
|
+
]),
|
|
1573
|
+
),
|
|
1574
|
+
enabled: Schema.optional(
|
|
1575
|
+
Schema.Union([Schema.Literals([true, false]), Schema.Null]),
|
|
1576
|
+
),
|
|
1577
|
+
matchers: Schema.optional(
|
|
1578
|
+
Schema.Union([
|
|
1579
|
+
Schema.Array(
|
|
1580
|
+
Schema.Struct({
|
|
1581
|
+
type: Schema.Literal("all"),
|
|
1582
|
+
}),
|
|
1583
|
+
),
|
|
1584
|
+
Schema.Null,
|
|
1585
|
+
]),
|
|
1586
|
+
),
|
|
1587
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1588
|
+
tag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1589
|
+
}) as unknown as Schema.Schema<PutRuleCatchAllResponse>;
|
|
1590
|
+
|
|
1591
|
+
export type PutRuleCatchAllError = DefaultErrors;
|
|
1592
|
+
|
|
1593
|
+
export const putRuleCatchAll: API.OperationMethod<
|
|
1594
|
+
PutRuleCatchAllRequest,
|
|
1595
|
+
PutRuleCatchAllResponse,
|
|
1596
|
+
PutRuleCatchAllError,
|
|
1597
|
+
Credentials | HttpClient.HttpClient
|
|
1598
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1599
|
+
input: PutRuleCatchAllRequest,
|
|
1600
|
+
output: PutRuleCatchAllResponse,
|
|
1601
|
+
errors: [],
|
|
1602
|
+
}));
|