@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,4511 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cloudflare DNS API
|
|
3
|
+
*
|
|
4
|
+
* Generated from Cloudflare TypeScript SDK.
|
|
5
|
+
* DO NOT EDIT - regenerate with: bun scripts/generate.ts --service dns
|
|
6
|
+
*/
|
|
7
|
+
import * as Schema from "effect/Schema";
|
|
8
|
+
import * as API from "../client/api.js";
|
|
9
|
+
import * as T from "../traits";
|
|
10
|
+
import {} from "../errors";
|
|
11
|
+
export const GetAnalyticReportRequest =
|
|
12
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
13
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
14
|
+
dimensions: Schema.optional(Schema.String).pipe(T.HttpQuery("dimensions")),
|
|
15
|
+
filters: Schema.optional(Schema.String).pipe(T.HttpQuery("filters")),
|
|
16
|
+
limit: Schema.optional(Schema.Number).pipe(T.HttpQuery("limit")),
|
|
17
|
+
metrics: Schema.optional(Schema.String).pipe(T.HttpQuery("metrics")),
|
|
18
|
+
since: Schema.optional(Schema.String).pipe(T.HttpQuery("since")),
|
|
19
|
+
sort: Schema.optional(Schema.String).pipe(T.HttpQuery("sort")),
|
|
20
|
+
until: Schema.optional(Schema.String).pipe(T.HttpQuery("until")),
|
|
21
|
+
}).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/dns_analytics/report" }));
|
|
22
|
+
export const GetAnalyticReportResponse =
|
|
23
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
24
|
+
data: Schema.Array(Schema.Struct({
|
|
25
|
+
dimensions: Schema.Array(Schema.String),
|
|
26
|
+
metrics: Schema.Array(Schema.Number),
|
|
27
|
+
})),
|
|
28
|
+
dataLag: Schema.Number,
|
|
29
|
+
max: Schema.Unknown,
|
|
30
|
+
min: Schema.Unknown,
|
|
31
|
+
query: Schema.Struct({
|
|
32
|
+
dimensions: Schema.Array(Schema.String),
|
|
33
|
+
limit: Schema.Number,
|
|
34
|
+
metrics: Schema.Array(Schema.String),
|
|
35
|
+
since: Schema.String,
|
|
36
|
+
until: Schema.String,
|
|
37
|
+
filters: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
38
|
+
sort: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
39
|
+
}),
|
|
40
|
+
rows: Schema.Number,
|
|
41
|
+
totals: Schema.Unknown,
|
|
42
|
+
}).pipe(Schema.encodeKeys({
|
|
43
|
+
data: "data",
|
|
44
|
+
dataLag: "data_lag",
|
|
45
|
+
max: "max",
|
|
46
|
+
min: "min",
|
|
47
|
+
query: "query",
|
|
48
|
+
rows: "rows",
|
|
49
|
+
totals: "totals",
|
|
50
|
+
}));
|
|
51
|
+
export const getAnalyticReport = API.make(() => ({
|
|
52
|
+
input: GetAnalyticReportRequest,
|
|
53
|
+
output: GetAnalyticReportResponse,
|
|
54
|
+
errors: [],
|
|
55
|
+
}));
|
|
56
|
+
export const GetAnalyticReportBytimeRequest =
|
|
57
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
58
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
59
|
+
dimensions: Schema.optional(Schema.String).pipe(T.HttpQuery("dimensions")),
|
|
60
|
+
filters: Schema.optional(Schema.String).pipe(T.HttpQuery("filters")),
|
|
61
|
+
limit: Schema.optional(Schema.Number).pipe(T.HttpQuery("limit")),
|
|
62
|
+
metrics: Schema.optional(Schema.String).pipe(T.HttpQuery("metrics")),
|
|
63
|
+
since: Schema.optional(Schema.String).pipe(T.HttpQuery("since")),
|
|
64
|
+
sort: Schema.optional(Schema.String).pipe(T.HttpQuery("sort")),
|
|
65
|
+
timeDelta: Schema.optional(Schema.Literals([
|
|
66
|
+
"all",
|
|
67
|
+
"auto",
|
|
68
|
+
"year",
|
|
69
|
+
"quarter",
|
|
70
|
+
"month",
|
|
71
|
+
"week",
|
|
72
|
+
"day",
|
|
73
|
+
"hour",
|
|
74
|
+
"dekaminute",
|
|
75
|
+
"minute",
|
|
76
|
+
])).pipe(T.HttpQuery("time_delta")),
|
|
77
|
+
until: Schema.optional(Schema.String).pipe(T.HttpQuery("until")),
|
|
78
|
+
}).pipe(T.Http({
|
|
79
|
+
method: "GET",
|
|
80
|
+
path: "/zones/{zone_id}/dns_analytics/report/bytime",
|
|
81
|
+
}));
|
|
82
|
+
export const GetAnalyticReportBytimeResponse =
|
|
83
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
84
|
+
data: Schema.Array(Schema.Struct({
|
|
85
|
+
dimensions: Schema.Array(Schema.String),
|
|
86
|
+
metrics: Schema.Array(Schema.Array(Schema.Number)),
|
|
87
|
+
})),
|
|
88
|
+
dataLag: Schema.Number,
|
|
89
|
+
max: Schema.Unknown,
|
|
90
|
+
min: Schema.Unknown,
|
|
91
|
+
query: Schema.Struct({
|
|
92
|
+
dimensions: Schema.Array(Schema.String),
|
|
93
|
+
limit: Schema.Number,
|
|
94
|
+
metrics: Schema.Array(Schema.String),
|
|
95
|
+
since: Schema.String,
|
|
96
|
+
timeDelta: Schema.Literals([
|
|
97
|
+
"all",
|
|
98
|
+
"auto",
|
|
99
|
+
"year",
|
|
100
|
+
"quarter",
|
|
101
|
+
"month",
|
|
102
|
+
"week",
|
|
103
|
+
"day",
|
|
104
|
+
"hour",
|
|
105
|
+
"dekaminute",
|
|
106
|
+
"minute",
|
|
107
|
+
]),
|
|
108
|
+
until: Schema.String,
|
|
109
|
+
filters: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
110
|
+
sort: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
111
|
+
}).pipe(Schema.encodeKeys({
|
|
112
|
+
dimensions: "dimensions",
|
|
113
|
+
limit: "limit",
|
|
114
|
+
metrics: "metrics",
|
|
115
|
+
since: "since",
|
|
116
|
+
timeDelta: "time_delta",
|
|
117
|
+
until: "until",
|
|
118
|
+
filters: "filters",
|
|
119
|
+
sort: "sort",
|
|
120
|
+
})),
|
|
121
|
+
rows: Schema.Number,
|
|
122
|
+
timeIntervals: Schema.Array(Schema.Array(Schema.String)),
|
|
123
|
+
totals: Schema.Unknown,
|
|
124
|
+
}).pipe(Schema.encodeKeys({
|
|
125
|
+
data: "data",
|
|
126
|
+
dataLag: "data_lag",
|
|
127
|
+
max: "max",
|
|
128
|
+
min: "min",
|
|
129
|
+
query: "query",
|
|
130
|
+
rows: "rows",
|
|
131
|
+
timeIntervals: "time_intervals",
|
|
132
|
+
totals: "totals",
|
|
133
|
+
}));
|
|
134
|
+
export const getAnalyticReportBytime = API.make(() => ({
|
|
135
|
+
input: GetAnalyticReportBytimeRequest,
|
|
136
|
+
output: GetAnalyticReportBytimeResponse,
|
|
137
|
+
errors: [],
|
|
138
|
+
}));
|
|
139
|
+
export const GetDnssecRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
140
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
141
|
+
}).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/dnssec" }));
|
|
142
|
+
export const GetDnssecResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
143
|
+
algorithm: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
144
|
+
digest: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
145
|
+
digestAlgorithm: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
146
|
+
digestType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
147
|
+
dnssecMultiSigner: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
148
|
+
dnssecPresigned: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
149
|
+
dnssecUseNsec3: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
150
|
+
ds: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
151
|
+
flags: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
152
|
+
keyTag: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
153
|
+
keyType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
154
|
+
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
155
|
+
publicKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
156
|
+
status: Schema.optional(Schema.Union([
|
|
157
|
+
Schema.Literals([
|
|
158
|
+
"active",
|
|
159
|
+
"pending",
|
|
160
|
+
"disabled",
|
|
161
|
+
"pending-disabled",
|
|
162
|
+
"error",
|
|
163
|
+
]),
|
|
164
|
+
Schema.Null,
|
|
165
|
+
])),
|
|
166
|
+
}).pipe(Schema.encodeKeys({
|
|
167
|
+
algorithm: "algorithm",
|
|
168
|
+
digest: "digest",
|
|
169
|
+
digestAlgorithm: "digest_algorithm",
|
|
170
|
+
digestType: "digest_type",
|
|
171
|
+
dnssecMultiSigner: "dnssec_multi_signer",
|
|
172
|
+
dnssecPresigned: "dnssec_presigned",
|
|
173
|
+
dnssecUseNsec3: "dnssec_use_nsec3",
|
|
174
|
+
ds: "ds",
|
|
175
|
+
flags: "flags",
|
|
176
|
+
keyTag: "key_tag",
|
|
177
|
+
keyType: "key_type",
|
|
178
|
+
modifiedOn: "modified_on",
|
|
179
|
+
publicKey: "public_key",
|
|
180
|
+
status: "status",
|
|
181
|
+
}));
|
|
182
|
+
export const getDnssec = API.make(() => ({
|
|
183
|
+
input: GetDnssecRequest,
|
|
184
|
+
output: GetDnssecResponse,
|
|
185
|
+
errors: [],
|
|
186
|
+
}));
|
|
187
|
+
export const PatchDnssecRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
188
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
189
|
+
dnssecMultiSigner: Schema.optional(Schema.Boolean),
|
|
190
|
+
dnssecPresigned: Schema.optional(Schema.Boolean),
|
|
191
|
+
dnssecUseNsec3: Schema.optional(Schema.Boolean),
|
|
192
|
+
status: Schema.optional(Schema.Literals(["active", "disabled"])),
|
|
193
|
+
}).pipe(Schema.encodeKeys({
|
|
194
|
+
dnssecMultiSigner: "dnssec_multi_signer",
|
|
195
|
+
dnssecPresigned: "dnssec_presigned",
|
|
196
|
+
dnssecUseNsec3: "dnssec_use_nsec3",
|
|
197
|
+
status: "status",
|
|
198
|
+
}), T.Http({ method: "PATCH", path: "/zones/{zone_id}/dnssec" }));
|
|
199
|
+
export const PatchDnssecResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
200
|
+
algorithm: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
201
|
+
digest: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
202
|
+
digestAlgorithm: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
203
|
+
digestType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
204
|
+
dnssecMultiSigner: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
205
|
+
dnssecPresigned: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
206
|
+
dnssecUseNsec3: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
207
|
+
ds: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
208
|
+
flags: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
209
|
+
keyTag: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
210
|
+
keyType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
211
|
+
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
212
|
+
publicKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
213
|
+
status: Schema.optional(Schema.Union([
|
|
214
|
+
Schema.Literals([
|
|
215
|
+
"active",
|
|
216
|
+
"pending",
|
|
217
|
+
"disabled",
|
|
218
|
+
"pending-disabled",
|
|
219
|
+
"error",
|
|
220
|
+
]),
|
|
221
|
+
Schema.Null,
|
|
222
|
+
])),
|
|
223
|
+
}).pipe(Schema.encodeKeys({
|
|
224
|
+
algorithm: "algorithm",
|
|
225
|
+
digest: "digest",
|
|
226
|
+
digestAlgorithm: "digest_algorithm",
|
|
227
|
+
digestType: "digest_type",
|
|
228
|
+
dnssecMultiSigner: "dnssec_multi_signer",
|
|
229
|
+
dnssecPresigned: "dnssec_presigned",
|
|
230
|
+
dnssecUseNsec3: "dnssec_use_nsec3",
|
|
231
|
+
ds: "ds",
|
|
232
|
+
flags: "flags",
|
|
233
|
+
keyTag: "key_tag",
|
|
234
|
+
keyType: "key_type",
|
|
235
|
+
modifiedOn: "modified_on",
|
|
236
|
+
publicKey: "public_key",
|
|
237
|
+
status: "status",
|
|
238
|
+
}));
|
|
239
|
+
export const patchDnssec = API.make(() => ({
|
|
240
|
+
input: PatchDnssecRequest,
|
|
241
|
+
output: PatchDnssecResponse,
|
|
242
|
+
errors: [],
|
|
243
|
+
}));
|
|
244
|
+
export const DeleteDnssecRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
245
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
246
|
+
}).pipe(T.Http({ method: "DELETE", path: "/zones/{zone_id}/dnssec" }));
|
|
247
|
+
export const DeleteDnssecResponse =
|
|
248
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.String;
|
|
249
|
+
export const deleteDnssec = API.make(() => ({
|
|
250
|
+
input: DeleteDnssecRequest,
|
|
251
|
+
output: DeleteDnssecResponse,
|
|
252
|
+
errors: [],
|
|
253
|
+
}));
|
|
254
|
+
export const ScanListRecordRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
255
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
256
|
+
}).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/dns_records/scan/review" }));
|
|
257
|
+
export const ScanListRecordResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Union([
|
|
258
|
+
Schema.Struct({
|
|
259
|
+
id: Schema.String,
|
|
260
|
+
createdOn: Schema.String,
|
|
261
|
+
meta: Schema.Unknown,
|
|
262
|
+
modifiedOn: Schema.String,
|
|
263
|
+
proxiable: Schema.Boolean,
|
|
264
|
+
commentModifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
265
|
+
tagsModifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
266
|
+
}).pipe(Schema.encodeKeys({
|
|
267
|
+
id: "id",
|
|
268
|
+
createdOn: "created_on",
|
|
269
|
+
meta: "meta",
|
|
270
|
+
modifiedOn: "modified_on",
|
|
271
|
+
proxiable: "proxiable",
|
|
272
|
+
commentModifiedOn: "comment_modified_on",
|
|
273
|
+
tagsModifiedOn: "tags_modified_on",
|
|
274
|
+
})),
|
|
275
|
+
Schema.Struct({
|
|
276
|
+
id: Schema.String,
|
|
277
|
+
comment: Schema.String,
|
|
278
|
+
content: Schema.String,
|
|
279
|
+
createdOn: Schema.String,
|
|
280
|
+
meta: Schema.Unknown,
|
|
281
|
+
modifiedOn: Schema.String,
|
|
282
|
+
name: Schema.String,
|
|
283
|
+
proxiable: Schema.Boolean,
|
|
284
|
+
proxied: Schema.Boolean,
|
|
285
|
+
settings: Schema.Struct({
|
|
286
|
+
ipv4Only: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
287
|
+
ipv6Only: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
288
|
+
}).pipe(Schema.encodeKeys({ ipv4Only: "ipv4_only", ipv6Only: "ipv6_only" })),
|
|
289
|
+
tags: Schema.Array(Schema.String),
|
|
290
|
+
ttl: Schema.Number,
|
|
291
|
+
type: Schema.Literal("OPENPGPKEY"),
|
|
292
|
+
commentModifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
293
|
+
tagsModifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
294
|
+
}).pipe(Schema.encodeKeys({
|
|
295
|
+
id: "id",
|
|
296
|
+
comment: "comment",
|
|
297
|
+
content: "content",
|
|
298
|
+
createdOn: "created_on",
|
|
299
|
+
meta: "meta",
|
|
300
|
+
modifiedOn: "modified_on",
|
|
301
|
+
name: "name",
|
|
302
|
+
proxiable: "proxiable",
|
|
303
|
+
proxied: "proxied",
|
|
304
|
+
settings: "settings",
|
|
305
|
+
tags: "tags",
|
|
306
|
+
ttl: "ttl",
|
|
307
|
+
type: "type",
|
|
308
|
+
commentModifiedOn: "comment_modified_on",
|
|
309
|
+
tagsModifiedOn: "tags_modified_on",
|
|
310
|
+
})),
|
|
311
|
+
]));
|
|
312
|
+
export const scanListRecord = API.make(() => ({
|
|
313
|
+
input: ScanListRecordRequest,
|
|
314
|
+
output: ScanListRecordResponse,
|
|
315
|
+
errors: [],
|
|
316
|
+
}));
|
|
317
|
+
export const ForceNotifyZoneTransferOutgoingRequest =
|
|
318
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
319
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
320
|
+
body: Schema.Unknown.pipe(T.HttpBody()),
|
|
321
|
+
}).pipe(T.Http({
|
|
322
|
+
method: "POST",
|
|
323
|
+
path: "/zones/{zone_id}/secondary_dns/outgoing/force_notify",
|
|
324
|
+
}));
|
|
325
|
+
export const ForceNotifyZoneTransferOutgoingResponse =
|
|
326
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.String;
|
|
327
|
+
export const forceNotifyZoneTransferOutgoing = API.make(() => ({
|
|
328
|
+
input: ForceNotifyZoneTransferOutgoingRequest,
|
|
329
|
+
output: ForceNotifyZoneTransferOutgoingResponse,
|
|
330
|
+
errors: [],
|
|
331
|
+
}));
|
|
332
|
+
export const GetRecordRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
333
|
+
dnsRecordId: Schema.String.pipe(T.HttpPath("dnsRecordId")),
|
|
334
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
335
|
+
}).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/dns_records/{dnsRecordId}" }));
|
|
336
|
+
export const GetRecordResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Union([
|
|
337
|
+
Schema.Struct({
|
|
338
|
+
id: Schema.String,
|
|
339
|
+
createdOn: Schema.String,
|
|
340
|
+
meta: Schema.Unknown,
|
|
341
|
+
modifiedOn: Schema.String,
|
|
342
|
+
proxiable: Schema.Boolean,
|
|
343
|
+
commentModifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
344
|
+
tagsModifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
345
|
+
}).pipe(Schema.encodeKeys({
|
|
346
|
+
id: "id",
|
|
347
|
+
createdOn: "created_on",
|
|
348
|
+
meta: "meta",
|
|
349
|
+
modifiedOn: "modified_on",
|
|
350
|
+
proxiable: "proxiable",
|
|
351
|
+
commentModifiedOn: "comment_modified_on",
|
|
352
|
+
tagsModifiedOn: "tags_modified_on",
|
|
353
|
+
})),
|
|
354
|
+
Schema.Struct({
|
|
355
|
+
id: Schema.String,
|
|
356
|
+
comment: Schema.String,
|
|
357
|
+
content: Schema.String,
|
|
358
|
+
createdOn: Schema.String,
|
|
359
|
+
meta: Schema.Unknown,
|
|
360
|
+
modifiedOn: Schema.String,
|
|
361
|
+
name: Schema.String,
|
|
362
|
+
proxiable: Schema.Boolean,
|
|
363
|
+
proxied: Schema.Boolean,
|
|
364
|
+
settings: Schema.Struct({
|
|
365
|
+
ipv4Only: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
366
|
+
ipv6Only: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
367
|
+
}).pipe(Schema.encodeKeys({ ipv4Only: "ipv4_only", ipv6Only: "ipv6_only" })),
|
|
368
|
+
tags: Schema.Array(Schema.String),
|
|
369
|
+
ttl: Schema.Number,
|
|
370
|
+
type: Schema.Literal("OPENPGPKEY"),
|
|
371
|
+
commentModifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
372
|
+
tagsModifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
373
|
+
}).pipe(Schema.encodeKeys({
|
|
374
|
+
id: "id",
|
|
375
|
+
comment: "comment",
|
|
376
|
+
content: "content",
|
|
377
|
+
createdOn: "created_on",
|
|
378
|
+
meta: "meta",
|
|
379
|
+
modifiedOn: "modified_on",
|
|
380
|
+
name: "name",
|
|
381
|
+
proxiable: "proxiable",
|
|
382
|
+
proxied: "proxied",
|
|
383
|
+
settings: "settings",
|
|
384
|
+
tags: "tags",
|
|
385
|
+
ttl: "ttl",
|
|
386
|
+
type: "type",
|
|
387
|
+
commentModifiedOn: "comment_modified_on",
|
|
388
|
+
tagsModifiedOn: "tags_modified_on",
|
|
389
|
+
})),
|
|
390
|
+
]);
|
|
391
|
+
export const getRecord = API.make(() => ({
|
|
392
|
+
input: GetRecordRequest,
|
|
393
|
+
output: GetRecordResponse,
|
|
394
|
+
errors: [],
|
|
395
|
+
}));
|
|
396
|
+
export const ListRecordsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
397
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
398
|
+
comment: Schema.optional(Schema.Struct({
|
|
399
|
+
absent: Schema.optional(Schema.String),
|
|
400
|
+
contains: Schema.optional(Schema.String),
|
|
401
|
+
endswith: Schema.optional(Schema.String),
|
|
402
|
+
exact: Schema.optional(Schema.String),
|
|
403
|
+
present: Schema.optional(Schema.String),
|
|
404
|
+
startswith: Schema.optional(Schema.String),
|
|
405
|
+
})).pipe(T.HttpQuery("comment")),
|
|
406
|
+
content: Schema.optional(Schema.Struct({
|
|
407
|
+
contains: Schema.optional(Schema.String),
|
|
408
|
+
endswith: Schema.optional(Schema.String),
|
|
409
|
+
exact: Schema.optional(Schema.String),
|
|
410
|
+
startswith: Schema.optional(Schema.String),
|
|
411
|
+
})).pipe(T.HttpQuery("content")),
|
|
412
|
+
direction: Schema.optional(Schema.Literals(["asc", "desc"])).pipe(T.HttpQuery("direction")),
|
|
413
|
+
match: Schema.optional(Schema.Literals(["any", "all"])).pipe(T.HttpQuery("match")),
|
|
414
|
+
name: Schema.optional(Schema.Struct({
|
|
415
|
+
contains: Schema.optional(Schema.String),
|
|
416
|
+
endswith: Schema.optional(Schema.String),
|
|
417
|
+
exact: Schema.optional(Schema.String),
|
|
418
|
+
startswith: Schema.optional(Schema.String),
|
|
419
|
+
})).pipe(T.HttpQuery("name")),
|
|
420
|
+
order: Schema.optional(Schema.Literals(["type", "name", "content", "ttl", "proxied"])).pipe(T.HttpQuery("order")),
|
|
421
|
+
proxied: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("proxied")),
|
|
422
|
+
search: Schema.optional(Schema.String).pipe(T.HttpQuery("search")),
|
|
423
|
+
tag: Schema.optional(Schema.Struct({
|
|
424
|
+
absent: Schema.optional(Schema.String),
|
|
425
|
+
contains: Schema.optional(Schema.String),
|
|
426
|
+
endswith: Schema.optional(Schema.String),
|
|
427
|
+
exact: Schema.optional(Schema.String),
|
|
428
|
+
present: Schema.optional(Schema.String),
|
|
429
|
+
startswith: Schema.optional(Schema.String),
|
|
430
|
+
})).pipe(T.HttpQuery("tag")),
|
|
431
|
+
tagMatch: Schema.optional(Schema.Literals(["any", "all"])).pipe(T.HttpQuery("tag_match")),
|
|
432
|
+
type: Schema.optional(Schema.Literals([
|
|
433
|
+
"A",
|
|
434
|
+
"AAAA",
|
|
435
|
+
"CAA",
|
|
436
|
+
"CERT",
|
|
437
|
+
"CNAME",
|
|
438
|
+
"DNSKEY",
|
|
439
|
+
"DS",
|
|
440
|
+
"HTTPS",
|
|
441
|
+
"LOC",
|
|
442
|
+
"MX",
|
|
443
|
+
"NAPTR",
|
|
444
|
+
"NS",
|
|
445
|
+
"OPENPGPKEY",
|
|
446
|
+
"PTR",
|
|
447
|
+
"SMIMEA",
|
|
448
|
+
"SRV",
|
|
449
|
+
"SSHFP",
|
|
450
|
+
"SVCB",
|
|
451
|
+
"TLSA",
|
|
452
|
+
"TXT",
|
|
453
|
+
"URI",
|
|
454
|
+
])).pipe(T.HttpQuery("type")),
|
|
455
|
+
}).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/dns_records" }));
|
|
456
|
+
export const ListRecordsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Union([
|
|
457
|
+
Schema.Struct({
|
|
458
|
+
id: Schema.String,
|
|
459
|
+
createdOn: Schema.String,
|
|
460
|
+
meta: Schema.Unknown,
|
|
461
|
+
modifiedOn: Schema.String,
|
|
462
|
+
proxiable: Schema.Boolean,
|
|
463
|
+
commentModifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
464
|
+
tagsModifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
465
|
+
}).pipe(Schema.encodeKeys({
|
|
466
|
+
id: "id",
|
|
467
|
+
createdOn: "created_on",
|
|
468
|
+
meta: "meta",
|
|
469
|
+
modifiedOn: "modified_on",
|
|
470
|
+
proxiable: "proxiable",
|
|
471
|
+
commentModifiedOn: "comment_modified_on",
|
|
472
|
+
tagsModifiedOn: "tags_modified_on",
|
|
473
|
+
})),
|
|
474
|
+
Schema.Struct({
|
|
475
|
+
id: Schema.String,
|
|
476
|
+
comment: Schema.String,
|
|
477
|
+
content: Schema.String,
|
|
478
|
+
createdOn: Schema.String,
|
|
479
|
+
meta: Schema.Unknown,
|
|
480
|
+
modifiedOn: Schema.String,
|
|
481
|
+
name: Schema.String,
|
|
482
|
+
proxiable: Schema.Boolean,
|
|
483
|
+
proxied: Schema.Boolean,
|
|
484
|
+
settings: Schema.Struct({
|
|
485
|
+
ipv4Only: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
486
|
+
ipv6Only: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
487
|
+
}).pipe(Schema.encodeKeys({ ipv4Only: "ipv4_only", ipv6Only: "ipv6_only" })),
|
|
488
|
+
tags: Schema.Array(Schema.String),
|
|
489
|
+
ttl: Schema.Number,
|
|
490
|
+
type: Schema.Literal("OPENPGPKEY"),
|
|
491
|
+
commentModifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
492
|
+
tagsModifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
493
|
+
}).pipe(Schema.encodeKeys({
|
|
494
|
+
id: "id",
|
|
495
|
+
comment: "comment",
|
|
496
|
+
content: "content",
|
|
497
|
+
createdOn: "created_on",
|
|
498
|
+
meta: "meta",
|
|
499
|
+
modifiedOn: "modified_on",
|
|
500
|
+
name: "name",
|
|
501
|
+
proxiable: "proxiable",
|
|
502
|
+
proxied: "proxied",
|
|
503
|
+
settings: "settings",
|
|
504
|
+
tags: "tags",
|
|
505
|
+
ttl: "ttl",
|
|
506
|
+
type: "type",
|
|
507
|
+
commentModifiedOn: "comment_modified_on",
|
|
508
|
+
tagsModifiedOn: "tags_modified_on",
|
|
509
|
+
})),
|
|
510
|
+
]));
|
|
511
|
+
export const listRecords = API.make(() => ({
|
|
512
|
+
input: ListRecordsRequest,
|
|
513
|
+
output: ListRecordsResponse,
|
|
514
|
+
errors: [],
|
|
515
|
+
}));
|
|
516
|
+
export const CreateRecordRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
517
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
518
|
+
name: Schema.String,
|
|
519
|
+
ttl: Schema.Number,
|
|
520
|
+
type: Schema.Literal("A"),
|
|
521
|
+
comment: Schema.optional(Schema.String),
|
|
522
|
+
content: Schema.optional(Schema.String),
|
|
523
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
524
|
+
settings: Schema.optional(Schema.Struct({
|
|
525
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
526
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
527
|
+
}).pipe(Schema.encodeKeys({ ipv4Only: "ipv4_only", ipv6Only: "ipv6_only" }))),
|
|
528
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
529
|
+
}).pipe(T.Http({ method: "POST", path: "/zones/{zone_id}/dns_records" }));
|
|
530
|
+
export const CreateRecordResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Union([
|
|
531
|
+
Schema.Struct({
|
|
532
|
+
id: Schema.String,
|
|
533
|
+
createdOn: Schema.String,
|
|
534
|
+
meta: Schema.Unknown,
|
|
535
|
+
modifiedOn: Schema.String,
|
|
536
|
+
proxiable: Schema.Boolean,
|
|
537
|
+
commentModifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
538
|
+
tagsModifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
539
|
+
}).pipe(Schema.encodeKeys({
|
|
540
|
+
id: "id",
|
|
541
|
+
createdOn: "created_on",
|
|
542
|
+
meta: "meta",
|
|
543
|
+
modifiedOn: "modified_on",
|
|
544
|
+
proxiable: "proxiable",
|
|
545
|
+
commentModifiedOn: "comment_modified_on",
|
|
546
|
+
tagsModifiedOn: "tags_modified_on",
|
|
547
|
+
})),
|
|
548
|
+
Schema.Struct({
|
|
549
|
+
id: Schema.String,
|
|
550
|
+
comment: Schema.String,
|
|
551
|
+
content: Schema.String,
|
|
552
|
+
createdOn: Schema.String,
|
|
553
|
+
meta: Schema.Unknown,
|
|
554
|
+
modifiedOn: Schema.String,
|
|
555
|
+
name: Schema.String,
|
|
556
|
+
proxiable: Schema.Boolean,
|
|
557
|
+
proxied: Schema.Boolean,
|
|
558
|
+
settings: Schema.Struct({
|
|
559
|
+
ipv4Only: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
560
|
+
ipv6Only: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
561
|
+
}).pipe(Schema.encodeKeys({ ipv4Only: "ipv4_only", ipv6Only: "ipv6_only" })),
|
|
562
|
+
tags: Schema.Array(Schema.String),
|
|
563
|
+
ttl: Schema.Number,
|
|
564
|
+
type: Schema.Literal("OPENPGPKEY"),
|
|
565
|
+
commentModifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
566
|
+
tagsModifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
567
|
+
}).pipe(Schema.encodeKeys({
|
|
568
|
+
id: "id",
|
|
569
|
+
comment: "comment",
|
|
570
|
+
content: "content",
|
|
571
|
+
createdOn: "created_on",
|
|
572
|
+
meta: "meta",
|
|
573
|
+
modifiedOn: "modified_on",
|
|
574
|
+
name: "name",
|
|
575
|
+
proxiable: "proxiable",
|
|
576
|
+
proxied: "proxied",
|
|
577
|
+
settings: "settings",
|
|
578
|
+
tags: "tags",
|
|
579
|
+
ttl: "ttl",
|
|
580
|
+
type: "type",
|
|
581
|
+
commentModifiedOn: "comment_modified_on",
|
|
582
|
+
tagsModifiedOn: "tags_modified_on",
|
|
583
|
+
})),
|
|
584
|
+
]);
|
|
585
|
+
export const createRecord = API.make(() => ({
|
|
586
|
+
input: CreateRecordRequest,
|
|
587
|
+
output: CreateRecordResponse,
|
|
588
|
+
errors: [],
|
|
589
|
+
}));
|
|
590
|
+
export const UpdateRecordRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
591
|
+
dnsRecordId: Schema.String.pipe(T.HttpPath("dnsRecordId")),
|
|
592
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
593
|
+
name: Schema.String,
|
|
594
|
+
ttl: Schema.Number,
|
|
595
|
+
type: Schema.Literal("A"),
|
|
596
|
+
comment: Schema.optional(Schema.String),
|
|
597
|
+
content: Schema.optional(Schema.String),
|
|
598
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
599
|
+
settings: Schema.optional(Schema.Struct({
|
|
600
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
601
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
602
|
+
}).pipe(Schema.encodeKeys({ ipv4Only: "ipv4_only", ipv6Only: "ipv6_only" }))),
|
|
603
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
604
|
+
}).pipe(T.Http({ method: "PUT", path: "/zones/{zone_id}/dns_records/{dnsRecordId}" }));
|
|
605
|
+
export const UpdateRecordResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Union([
|
|
606
|
+
Schema.Struct({
|
|
607
|
+
id: Schema.String,
|
|
608
|
+
createdOn: Schema.String,
|
|
609
|
+
meta: Schema.Unknown,
|
|
610
|
+
modifiedOn: Schema.String,
|
|
611
|
+
proxiable: Schema.Boolean,
|
|
612
|
+
commentModifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
613
|
+
tagsModifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
614
|
+
}).pipe(Schema.encodeKeys({
|
|
615
|
+
id: "id",
|
|
616
|
+
createdOn: "created_on",
|
|
617
|
+
meta: "meta",
|
|
618
|
+
modifiedOn: "modified_on",
|
|
619
|
+
proxiable: "proxiable",
|
|
620
|
+
commentModifiedOn: "comment_modified_on",
|
|
621
|
+
tagsModifiedOn: "tags_modified_on",
|
|
622
|
+
})),
|
|
623
|
+
Schema.Struct({
|
|
624
|
+
id: Schema.String,
|
|
625
|
+
comment: Schema.String,
|
|
626
|
+
content: Schema.String,
|
|
627
|
+
createdOn: Schema.String,
|
|
628
|
+
meta: Schema.Unknown,
|
|
629
|
+
modifiedOn: Schema.String,
|
|
630
|
+
name: Schema.String,
|
|
631
|
+
proxiable: Schema.Boolean,
|
|
632
|
+
proxied: Schema.Boolean,
|
|
633
|
+
settings: Schema.Struct({
|
|
634
|
+
ipv4Only: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
635
|
+
ipv6Only: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
636
|
+
}).pipe(Schema.encodeKeys({ ipv4Only: "ipv4_only", ipv6Only: "ipv6_only" })),
|
|
637
|
+
tags: Schema.Array(Schema.String),
|
|
638
|
+
ttl: Schema.Number,
|
|
639
|
+
type: Schema.Literal("OPENPGPKEY"),
|
|
640
|
+
commentModifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
641
|
+
tagsModifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
642
|
+
}).pipe(Schema.encodeKeys({
|
|
643
|
+
id: "id",
|
|
644
|
+
comment: "comment",
|
|
645
|
+
content: "content",
|
|
646
|
+
createdOn: "created_on",
|
|
647
|
+
meta: "meta",
|
|
648
|
+
modifiedOn: "modified_on",
|
|
649
|
+
name: "name",
|
|
650
|
+
proxiable: "proxiable",
|
|
651
|
+
proxied: "proxied",
|
|
652
|
+
settings: "settings",
|
|
653
|
+
tags: "tags",
|
|
654
|
+
ttl: "ttl",
|
|
655
|
+
type: "type",
|
|
656
|
+
commentModifiedOn: "comment_modified_on",
|
|
657
|
+
tagsModifiedOn: "tags_modified_on",
|
|
658
|
+
})),
|
|
659
|
+
]);
|
|
660
|
+
export const updateRecord = API.make(() => ({
|
|
661
|
+
input: UpdateRecordRequest,
|
|
662
|
+
output: UpdateRecordResponse,
|
|
663
|
+
errors: [],
|
|
664
|
+
}));
|
|
665
|
+
export const PatchRecordRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
666
|
+
dnsRecordId: Schema.String.pipe(T.HttpPath("dnsRecordId")),
|
|
667
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
668
|
+
name: Schema.String,
|
|
669
|
+
ttl: Schema.Number,
|
|
670
|
+
type: Schema.Literal("A"),
|
|
671
|
+
comment: Schema.optional(Schema.String),
|
|
672
|
+
content: Schema.optional(Schema.String),
|
|
673
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
674
|
+
settings: Schema.optional(Schema.Struct({
|
|
675
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
676
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
677
|
+
}).pipe(Schema.encodeKeys({ ipv4Only: "ipv4_only", ipv6Only: "ipv6_only" }))),
|
|
678
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
679
|
+
}).pipe(T.Http({
|
|
680
|
+
method: "PATCH",
|
|
681
|
+
path: "/zones/{zone_id}/dns_records/{dnsRecordId}",
|
|
682
|
+
}));
|
|
683
|
+
export const PatchRecordResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Union([
|
|
684
|
+
Schema.Struct({
|
|
685
|
+
id: Schema.String,
|
|
686
|
+
createdOn: Schema.String,
|
|
687
|
+
meta: Schema.Unknown,
|
|
688
|
+
modifiedOn: Schema.String,
|
|
689
|
+
proxiable: Schema.Boolean,
|
|
690
|
+
commentModifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
691
|
+
tagsModifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
692
|
+
}).pipe(Schema.encodeKeys({
|
|
693
|
+
id: "id",
|
|
694
|
+
createdOn: "created_on",
|
|
695
|
+
meta: "meta",
|
|
696
|
+
modifiedOn: "modified_on",
|
|
697
|
+
proxiable: "proxiable",
|
|
698
|
+
commentModifiedOn: "comment_modified_on",
|
|
699
|
+
tagsModifiedOn: "tags_modified_on",
|
|
700
|
+
})),
|
|
701
|
+
Schema.Struct({
|
|
702
|
+
id: Schema.String,
|
|
703
|
+
comment: Schema.String,
|
|
704
|
+
content: Schema.String,
|
|
705
|
+
createdOn: Schema.String,
|
|
706
|
+
meta: Schema.Unknown,
|
|
707
|
+
modifiedOn: Schema.String,
|
|
708
|
+
name: Schema.String,
|
|
709
|
+
proxiable: Schema.Boolean,
|
|
710
|
+
proxied: Schema.Boolean,
|
|
711
|
+
settings: Schema.Struct({
|
|
712
|
+
ipv4Only: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
713
|
+
ipv6Only: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
714
|
+
}).pipe(Schema.encodeKeys({ ipv4Only: "ipv4_only", ipv6Only: "ipv6_only" })),
|
|
715
|
+
tags: Schema.Array(Schema.String),
|
|
716
|
+
ttl: Schema.Number,
|
|
717
|
+
type: Schema.Literal("OPENPGPKEY"),
|
|
718
|
+
commentModifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
719
|
+
tagsModifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
720
|
+
}).pipe(Schema.encodeKeys({
|
|
721
|
+
id: "id",
|
|
722
|
+
comment: "comment",
|
|
723
|
+
content: "content",
|
|
724
|
+
createdOn: "created_on",
|
|
725
|
+
meta: "meta",
|
|
726
|
+
modifiedOn: "modified_on",
|
|
727
|
+
name: "name",
|
|
728
|
+
proxiable: "proxiable",
|
|
729
|
+
proxied: "proxied",
|
|
730
|
+
settings: "settings",
|
|
731
|
+
tags: "tags",
|
|
732
|
+
ttl: "ttl",
|
|
733
|
+
type: "type",
|
|
734
|
+
commentModifiedOn: "comment_modified_on",
|
|
735
|
+
tagsModifiedOn: "tags_modified_on",
|
|
736
|
+
})),
|
|
737
|
+
]);
|
|
738
|
+
export const patchRecord = API.make(() => ({
|
|
739
|
+
input: PatchRecordRequest,
|
|
740
|
+
output: PatchRecordResponse,
|
|
741
|
+
errors: [],
|
|
742
|
+
}));
|
|
743
|
+
export const DeleteRecordRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
744
|
+
dnsRecordId: Schema.String.pipe(T.HttpPath("dnsRecordId")),
|
|
745
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
746
|
+
}).pipe(T.Http({
|
|
747
|
+
method: "DELETE",
|
|
748
|
+
path: "/zones/{zone_id}/dns_records/{dnsRecordId}",
|
|
749
|
+
}));
|
|
750
|
+
export const DeleteRecordResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
751
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
752
|
+
});
|
|
753
|
+
export const deleteRecord = API.make(() => ({
|
|
754
|
+
input: DeleteRecordRequest,
|
|
755
|
+
output: DeleteRecordResponse,
|
|
756
|
+
errors: [],
|
|
757
|
+
}));
|
|
758
|
+
export const BatchRecordRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
759
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
760
|
+
deletes: Schema.optional(Schema.Array(Schema.Struct({
|
|
761
|
+
id: Schema.String,
|
|
762
|
+
}))),
|
|
763
|
+
patches: Schema.optional(Schema.Array(Schema.Union([
|
|
764
|
+
Schema.Struct({
|
|
765
|
+
zoneId: Schema.String,
|
|
766
|
+
name: Schema.String,
|
|
767
|
+
ttl: Schema.Number,
|
|
768
|
+
type: Schema.Literal("A"),
|
|
769
|
+
comment: Schema.optional(Schema.String),
|
|
770
|
+
content: Schema.optional(Schema.String),
|
|
771
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
772
|
+
settings: Schema.optional(Schema.Struct({
|
|
773
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
774
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
775
|
+
}).pipe(Schema.encodeKeys({
|
|
776
|
+
ipv4Only: "ipv4_only",
|
|
777
|
+
ipv6Only: "ipv6_only",
|
|
778
|
+
}))),
|
|
779
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
780
|
+
}).pipe(Schema.encodeKeys({
|
|
781
|
+
zoneId: "zone_id",
|
|
782
|
+
name: "name",
|
|
783
|
+
ttl: "ttl",
|
|
784
|
+
type: "type",
|
|
785
|
+
comment: "comment",
|
|
786
|
+
content: "content",
|
|
787
|
+
proxied: "proxied",
|
|
788
|
+
settings: "settings",
|
|
789
|
+
tags: "tags",
|
|
790
|
+
})),
|
|
791
|
+
Schema.Struct({
|
|
792
|
+
zoneId: Schema.String,
|
|
793
|
+
name: Schema.String,
|
|
794
|
+
ttl: Schema.Number,
|
|
795
|
+
type: Schema.Literal("AAAA"),
|
|
796
|
+
comment: Schema.optional(Schema.String),
|
|
797
|
+
content: Schema.optional(Schema.String),
|
|
798
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
799
|
+
settings: Schema.optional(Schema.Struct({
|
|
800
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
801
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
802
|
+
}).pipe(Schema.encodeKeys({
|
|
803
|
+
ipv4Only: "ipv4_only",
|
|
804
|
+
ipv6Only: "ipv6_only",
|
|
805
|
+
}))),
|
|
806
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
807
|
+
}).pipe(Schema.encodeKeys({
|
|
808
|
+
zoneId: "zone_id",
|
|
809
|
+
name: "name",
|
|
810
|
+
ttl: "ttl",
|
|
811
|
+
type: "type",
|
|
812
|
+
comment: "comment",
|
|
813
|
+
content: "content",
|
|
814
|
+
proxied: "proxied",
|
|
815
|
+
settings: "settings",
|
|
816
|
+
tags: "tags",
|
|
817
|
+
})),
|
|
818
|
+
Schema.Struct({
|
|
819
|
+
zoneId: Schema.String,
|
|
820
|
+
name: Schema.String,
|
|
821
|
+
ttl: Schema.Number,
|
|
822
|
+
type: Schema.Literal("CNAME"),
|
|
823
|
+
comment: Schema.optional(Schema.String),
|
|
824
|
+
content: Schema.optional(Schema.String),
|
|
825
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
826
|
+
settings: Schema.optional(Schema.Struct({
|
|
827
|
+
flattenCname: Schema.optional(Schema.Boolean),
|
|
828
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
829
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
830
|
+
}).pipe(Schema.encodeKeys({
|
|
831
|
+
flattenCname: "flatten_cname",
|
|
832
|
+
ipv4Only: "ipv4_only",
|
|
833
|
+
ipv6Only: "ipv6_only",
|
|
834
|
+
}))),
|
|
835
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
836
|
+
}).pipe(Schema.encodeKeys({
|
|
837
|
+
zoneId: "zone_id",
|
|
838
|
+
name: "name",
|
|
839
|
+
ttl: "ttl",
|
|
840
|
+
type: "type",
|
|
841
|
+
comment: "comment",
|
|
842
|
+
content: "content",
|
|
843
|
+
proxied: "proxied",
|
|
844
|
+
settings: "settings",
|
|
845
|
+
tags: "tags",
|
|
846
|
+
})),
|
|
847
|
+
Schema.Struct({
|
|
848
|
+
zoneId: Schema.String,
|
|
849
|
+
name: Schema.String,
|
|
850
|
+
ttl: Schema.Number,
|
|
851
|
+
type: Schema.Literal("MX"),
|
|
852
|
+
comment: Schema.optional(Schema.String),
|
|
853
|
+
content: Schema.optional(Schema.String),
|
|
854
|
+
priority: Schema.optional(Schema.Number),
|
|
855
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
856
|
+
settings: Schema.optional(Schema.Struct({
|
|
857
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
858
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
859
|
+
}).pipe(Schema.encodeKeys({
|
|
860
|
+
ipv4Only: "ipv4_only",
|
|
861
|
+
ipv6Only: "ipv6_only",
|
|
862
|
+
}))),
|
|
863
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
864
|
+
}).pipe(Schema.encodeKeys({
|
|
865
|
+
zoneId: "zone_id",
|
|
866
|
+
name: "name",
|
|
867
|
+
ttl: "ttl",
|
|
868
|
+
type: "type",
|
|
869
|
+
comment: "comment",
|
|
870
|
+
content: "content",
|
|
871
|
+
priority: "priority",
|
|
872
|
+
proxied: "proxied",
|
|
873
|
+
settings: "settings",
|
|
874
|
+
tags: "tags",
|
|
875
|
+
})),
|
|
876
|
+
Schema.Struct({
|
|
877
|
+
zoneId: Schema.String,
|
|
878
|
+
name: Schema.String,
|
|
879
|
+
ttl: Schema.Number,
|
|
880
|
+
type: Schema.Literal("NS"),
|
|
881
|
+
comment: Schema.optional(Schema.String),
|
|
882
|
+
content: Schema.optional(Schema.String),
|
|
883
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
884
|
+
settings: Schema.optional(Schema.Struct({
|
|
885
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
886
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
887
|
+
}).pipe(Schema.encodeKeys({
|
|
888
|
+
ipv4Only: "ipv4_only",
|
|
889
|
+
ipv6Only: "ipv6_only",
|
|
890
|
+
}))),
|
|
891
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
892
|
+
}).pipe(Schema.encodeKeys({
|
|
893
|
+
zoneId: "zone_id",
|
|
894
|
+
name: "name",
|
|
895
|
+
ttl: "ttl",
|
|
896
|
+
type: "type",
|
|
897
|
+
comment: "comment",
|
|
898
|
+
content: "content",
|
|
899
|
+
proxied: "proxied",
|
|
900
|
+
settings: "settings",
|
|
901
|
+
tags: "tags",
|
|
902
|
+
})),
|
|
903
|
+
Schema.Struct({
|
|
904
|
+
id: Schema.String,
|
|
905
|
+
name: Schema.String,
|
|
906
|
+
ttl: Schema.Number,
|
|
907
|
+
type: Schema.Literal("OPENPGPKEY"),
|
|
908
|
+
comment: Schema.optional(Schema.String),
|
|
909
|
+
content: Schema.optional(Schema.String),
|
|
910
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
911
|
+
settings: Schema.optional(Schema.Struct({
|
|
912
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
913
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
914
|
+
}).pipe(Schema.encodeKeys({
|
|
915
|
+
ipv4Only: "ipv4_only",
|
|
916
|
+
ipv6Only: "ipv6_only",
|
|
917
|
+
}))),
|
|
918
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
919
|
+
}),
|
|
920
|
+
Schema.Struct({
|
|
921
|
+
zoneId: Schema.String,
|
|
922
|
+
name: Schema.String,
|
|
923
|
+
ttl: Schema.Number,
|
|
924
|
+
type: Schema.Literal("PTR"),
|
|
925
|
+
comment: Schema.optional(Schema.String),
|
|
926
|
+
content: Schema.optional(Schema.String),
|
|
927
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
928
|
+
settings: Schema.optional(Schema.Struct({
|
|
929
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
930
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
931
|
+
}).pipe(Schema.encodeKeys({
|
|
932
|
+
ipv4Only: "ipv4_only",
|
|
933
|
+
ipv6Only: "ipv6_only",
|
|
934
|
+
}))),
|
|
935
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
936
|
+
}).pipe(Schema.encodeKeys({
|
|
937
|
+
zoneId: "zone_id",
|
|
938
|
+
name: "name",
|
|
939
|
+
ttl: "ttl",
|
|
940
|
+
type: "type",
|
|
941
|
+
comment: "comment",
|
|
942
|
+
content: "content",
|
|
943
|
+
proxied: "proxied",
|
|
944
|
+
settings: "settings",
|
|
945
|
+
tags: "tags",
|
|
946
|
+
})),
|
|
947
|
+
Schema.Struct({
|
|
948
|
+
zoneId: Schema.String,
|
|
949
|
+
name: Schema.String,
|
|
950
|
+
ttl: Schema.Number,
|
|
951
|
+
type: Schema.Literal("TXT"),
|
|
952
|
+
comment: Schema.optional(Schema.String),
|
|
953
|
+
content: Schema.optional(Schema.String),
|
|
954
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
955
|
+
settings: Schema.optional(Schema.Struct({
|
|
956
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
957
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
958
|
+
}).pipe(Schema.encodeKeys({
|
|
959
|
+
ipv4Only: "ipv4_only",
|
|
960
|
+
ipv6Only: "ipv6_only",
|
|
961
|
+
}))),
|
|
962
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
963
|
+
}).pipe(Schema.encodeKeys({
|
|
964
|
+
zoneId: "zone_id",
|
|
965
|
+
name: "name",
|
|
966
|
+
ttl: "ttl",
|
|
967
|
+
type: "type",
|
|
968
|
+
comment: "comment",
|
|
969
|
+
content: "content",
|
|
970
|
+
proxied: "proxied",
|
|
971
|
+
settings: "settings",
|
|
972
|
+
tags: "tags",
|
|
973
|
+
})),
|
|
974
|
+
Schema.Struct({
|
|
975
|
+
zoneId: Schema.String,
|
|
976
|
+
name: Schema.String,
|
|
977
|
+
ttl: Schema.Number,
|
|
978
|
+
type: Schema.Literal("CAA"),
|
|
979
|
+
comment: Schema.optional(Schema.String),
|
|
980
|
+
data: Schema.optional(Schema.Struct({
|
|
981
|
+
flags: Schema.optional(Schema.Number),
|
|
982
|
+
tag: Schema.optional(Schema.String),
|
|
983
|
+
value: Schema.optional(Schema.String),
|
|
984
|
+
})),
|
|
985
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
986
|
+
settings: Schema.optional(Schema.Struct({
|
|
987
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
988
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
989
|
+
}).pipe(Schema.encodeKeys({
|
|
990
|
+
ipv4Only: "ipv4_only",
|
|
991
|
+
ipv6Only: "ipv6_only",
|
|
992
|
+
}))),
|
|
993
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
994
|
+
}).pipe(Schema.encodeKeys({
|
|
995
|
+
zoneId: "zone_id",
|
|
996
|
+
name: "name",
|
|
997
|
+
ttl: "ttl",
|
|
998
|
+
type: "type",
|
|
999
|
+
comment: "comment",
|
|
1000
|
+
data: "data",
|
|
1001
|
+
proxied: "proxied",
|
|
1002
|
+
settings: "settings",
|
|
1003
|
+
tags: "tags",
|
|
1004
|
+
})),
|
|
1005
|
+
Schema.Struct({
|
|
1006
|
+
zoneId: Schema.String,
|
|
1007
|
+
name: Schema.String,
|
|
1008
|
+
ttl: Schema.Number,
|
|
1009
|
+
type: Schema.Literal("CERT"),
|
|
1010
|
+
comment: Schema.optional(Schema.String),
|
|
1011
|
+
data: Schema.optional(Schema.Struct({
|
|
1012
|
+
algorithm: Schema.optional(Schema.Number),
|
|
1013
|
+
certificate: Schema.optional(Schema.String),
|
|
1014
|
+
keyTag: Schema.optional(Schema.Number),
|
|
1015
|
+
type: Schema.optional(Schema.Number),
|
|
1016
|
+
}).pipe(Schema.encodeKeys({
|
|
1017
|
+
algorithm: "algorithm",
|
|
1018
|
+
certificate: "certificate",
|
|
1019
|
+
keyTag: "key_tag",
|
|
1020
|
+
type: "type",
|
|
1021
|
+
}))),
|
|
1022
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
1023
|
+
settings: Schema.optional(Schema.Struct({
|
|
1024
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
1025
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
1026
|
+
}).pipe(Schema.encodeKeys({
|
|
1027
|
+
ipv4Only: "ipv4_only",
|
|
1028
|
+
ipv6Only: "ipv6_only",
|
|
1029
|
+
}))),
|
|
1030
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
1031
|
+
}).pipe(Schema.encodeKeys({
|
|
1032
|
+
zoneId: "zone_id",
|
|
1033
|
+
name: "name",
|
|
1034
|
+
ttl: "ttl",
|
|
1035
|
+
type: "type",
|
|
1036
|
+
comment: "comment",
|
|
1037
|
+
data: "data",
|
|
1038
|
+
proxied: "proxied",
|
|
1039
|
+
settings: "settings",
|
|
1040
|
+
tags: "tags",
|
|
1041
|
+
})),
|
|
1042
|
+
Schema.Struct({
|
|
1043
|
+
zoneId: Schema.String,
|
|
1044
|
+
name: Schema.String,
|
|
1045
|
+
ttl: Schema.Number,
|
|
1046
|
+
type: Schema.Literal("DNSKEY"),
|
|
1047
|
+
comment: Schema.optional(Schema.String),
|
|
1048
|
+
data: Schema.optional(Schema.Struct({
|
|
1049
|
+
algorithm: Schema.optional(Schema.Number),
|
|
1050
|
+
flags: Schema.optional(Schema.Number),
|
|
1051
|
+
protocol: Schema.optional(Schema.Number),
|
|
1052
|
+
publicKey: Schema.optional(Schema.String),
|
|
1053
|
+
}).pipe(Schema.encodeKeys({
|
|
1054
|
+
algorithm: "algorithm",
|
|
1055
|
+
flags: "flags",
|
|
1056
|
+
protocol: "protocol",
|
|
1057
|
+
publicKey: "public_key",
|
|
1058
|
+
}))),
|
|
1059
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
1060
|
+
settings: Schema.optional(Schema.Struct({
|
|
1061
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
1062
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
1063
|
+
}).pipe(Schema.encodeKeys({
|
|
1064
|
+
ipv4Only: "ipv4_only",
|
|
1065
|
+
ipv6Only: "ipv6_only",
|
|
1066
|
+
}))),
|
|
1067
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
1068
|
+
}).pipe(Schema.encodeKeys({
|
|
1069
|
+
zoneId: "zone_id",
|
|
1070
|
+
name: "name",
|
|
1071
|
+
ttl: "ttl",
|
|
1072
|
+
type: "type",
|
|
1073
|
+
comment: "comment",
|
|
1074
|
+
data: "data",
|
|
1075
|
+
proxied: "proxied",
|
|
1076
|
+
settings: "settings",
|
|
1077
|
+
tags: "tags",
|
|
1078
|
+
})),
|
|
1079
|
+
Schema.Struct({
|
|
1080
|
+
zoneId: Schema.String,
|
|
1081
|
+
name: Schema.String,
|
|
1082
|
+
ttl: Schema.Number,
|
|
1083
|
+
type: Schema.Literal("DS"),
|
|
1084
|
+
comment: Schema.optional(Schema.String),
|
|
1085
|
+
data: Schema.optional(Schema.Struct({
|
|
1086
|
+
algorithm: Schema.optional(Schema.Number),
|
|
1087
|
+
digest: Schema.optional(Schema.String),
|
|
1088
|
+
digestType: Schema.optional(Schema.Number),
|
|
1089
|
+
keyTag: Schema.optional(Schema.Number),
|
|
1090
|
+
}).pipe(Schema.encodeKeys({
|
|
1091
|
+
algorithm: "algorithm",
|
|
1092
|
+
digest: "digest",
|
|
1093
|
+
digestType: "digest_type",
|
|
1094
|
+
keyTag: "key_tag",
|
|
1095
|
+
}))),
|
|
1096
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
1097
|
+
settings: Schema.optional(Schema.Struct({
|
|
1098
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
1099
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
1100
|
+
}).pipe(Schema.encodeKeys({
|
|
1101
|
+
ipv4Only: "ipv4_only",
|
|
1102
|
+
ipv6Only: "ipv6_only",
|
|
1103
|
+
}))),
|
|
1104
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
1105
|
+
}).pipe(Schema.encodeKeys({
|
|
1106
|
+
zoneId: "zone_id",
|
|
1107
|
+
name: "name",
|
|
1108
|
+
ttl: "ttl",
|
|
1109
|
+
type: "type",
|
|
1110
|
+
comment: "comment",
|
|
1111
|
+
data: "data",
|
|
1112
|
+
proxied: "proxied",
|
|
1113
|
+
settings: "settings",
|
|
1114
|
+
tags: "tags",
|
|
1115
|
+
})),
|
|
1116
|
+
Schema.Struct({
|
|
1117
|
+
zoneId: Schema.String,
|
|
1118
|
+
name: Schema.String,
|
|
1119
|
+
ttl: Schema.Number,
|
|
1120
|
+
type: Schema.Literal("HTTPS"),
|
|
1121
|
+
comment: Schema.optional(Schema.String),
|
|
1122
|
+
data: Schema.optional(Schema.Struct({
|
|
1123
|
+
priority: Schema.optional(Schema.Number),
|
|
1124
|
+
target: Schema.optional(Schema.String),
|
|
1125
|
+
value: Schema.optional(Schema.String),
|
|
1126
|
+
})),
|
|
1127
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
1128
|
+
settings: Schema.optional(Schema.Struct({
|
|
1129
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
1130
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
1131
|
+
}).pipe(Schema.encodeKeys({
|
|
1132
|
+
ipv4Only: "ipv4_only",
|
|
1133
|
+
ipv6Only: "ipv6_only",
|
|
1134
|
+
}))),
|
|
1135
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
1136
|
+
}).pipe(Schema.encodeKeys({
|
|
1137
|
+
zoneId: "zone_id",
|
|
1138
|
+
name: "name",
|
|
1139
|
+
ttl: "ttl",
|
|
1140
|
+
type: "type",
|
|
1141
|
+
comment: "comment",
|
|
1142
|
+
data: "data",
|
|
1143
|
+
proxied: "proxied",
|
|
1144
|
+
settings: "settings",
|
|
1145
|
+
tags: "tags",
|
|
1146
|
+
})),
|
|
1147
|
+
Schema.Struct({
|
|
1148
|
+
zoneId: Schema.String,
|
|
1149
|
+
name: Schema.String,
|
|
1150
|
+
ttl: Schema.Number,
|
|
1151
|
+
type: Schema.Literal("LOC"),
|
|
1152
|
+
comment: Schema.optional(Schema.String),
|
|
1153
|
+
data: Schema.optional(Schema.Struct({
|
|
1154
|
+
altitude: Schema.optional(Schema.Number),
|
|
1155
|
+
latDegrees: Schema.optional(Schema.Number),
|
|
1156
|
+
latDirection: Schema.optional(Schema.Literals(["N", "S"])),
|
|
1157
|
+
latMinutes: Schema.optional(Schema.Number),
|
|
1158
|
+
latSeconds: Schema.optional(Schema.Number),
|
|
1159
|
+
longDegrees: Schema.optional(Schema.Number),
|
|
1160
|
+
longDirection: Schema.optional(Schema.Literals(["E", "W"])),
|
|
1161
|
+
longMinutes: Schema.optional(Schema.Number),
|
|
1162
|
+
longSeconds: Schema.optional(Schema.Number),
|
|
1163
|
+
precisionHorz: Schema.optional(Schema.Number),
|
|
1164
|
+
precisionVert: Schema.optional(Schema.Number),
|
|
1165
|
+
size: Schema.optional(Schema.Number),
|
|
1166
|
+
}).pipe(Schema.encodeKeys({
|
|
1167
|
+
altitude: "altitude",
|
|
1168
|
+
latDegrees: "lat_degrees",
|
|
1169
|
+
latDirection: "lat_direction",
|
|
1170
|
+
latMinutes: "lat_minutes",
|
|
1171
|
+
latSeconds: "lat_seconds",
|
|
1172
|
+
longDegrees: "long_degrees",
|
|
1173
|
+
longDirection: "long_direction",
|
|
1174
|
+
longMinutes: "long_minutes",
|
|
1175
|
+
longSeconds: "long_seconds",
|
|
1176
|
+
precisionHorz: "precision_horz",
|
|
1177
|
+
precisionVert: "precision_vert",
|
|
1178
|
+
size: "size",
|
|
1179
|
+
}))),
|
|
1180
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
1181
|
+
settings: Schema.optional(Schema.Struct({
|
|
1182
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
1183
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
1184
|
+
}).pipe(Schema.encodeKeys({
|
|
1185
|
+
ipv4Only: "ipv4_only",
|
|
1186
|
+
ipv6Only: "ipv6_only",
|
|
1187
|
+
}))),
|
|
1188
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
1189
|
+
}).pipe(Schema.encodeKeys({
|
|
1190
|
+
zoneId: "zone_id",
|
|
1191
|
+
name: "name",
|
|
1192
|
+
ttl: "ttl",
|
|
1193
|
+
type: "type",
|
|
1194
|
+
comment: "comment",
|
|
1195
|
+
data: "data",
|
|
1196
|
+
proxied: "proxied",
|
|
1197
|
+
settings: "settings",
|
|
1198
|
+
tags: "tags",
|
|
1199
|
+
})),
|
|
1200
|
+
Schema.Struct({
|
|
1201
|
+
zoneId: Schema.String,
|
|
1202
|
+
name: Schema.String,
|
|
1203
|
+
ttl: Schema.Number,
|
|
1204
|
+
type: Schema.Literal("NAPTR"),
|
|
1205
|
+
comment: Schema.optional(Schema.String),
|
|
1206
|
+
data: Schema.optional(Schema.Struct({
|
|
1207
|
+
flags: Schema.optional(Schema.String),
|
|
1208
|
+
order: Schema.optional(Schema.Number),
|
|
1209
|
+
preference: Schema.optional(Schema.Number),
|
|
1210
|
+
regex: Schema.optional(Schema.String),
|
|
1211
|
+
replacement: Schema.optional(Schema.String),
|
|
1212
|
+
service: Schema.optional(Schema.String),
|
|
1213
|
+
})),
|
|
1214
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
1215
|
+
settings: Schema.optional(Schema.Struct({
|
|
1216
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
1217
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
1218
|
+
}).pipe(Schema.encodeKeys({
|
|
1219
|
+
ipv4Only: "ipv4_only",
|
|
1220
|
+
ipv6Only: "ipv6_only",
|
|
1221
|
+
}))),
|
|
1222
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
1223
|
+
}).pipe(Schema.encodeKeys({
|
|
1224
|
+
zoneId: "zone_id",
|
|
1225
|
+
name: "name",
|
|
1226
|
+
ttl: "ttl",
|
|
1227
|
+
type: "type",
|
|
1228
|
+
comment: "comment",
|
|
1229
|
+
data: "data",
|
|
1230
|
+
proxied: "proxied",
|
|
1231
|
+
settings: "settings",
|
|
1232
|
+
tags: "tags",
|
|
1233
|
+
})),
|
|
1234
|
+
Schema.Struct({
|
|
1235
|
+
zoneId: Schema.String,
|
|
1236
|
+
name: Schema.String,
|
|
1237
|
+
ttl: Schema.Number,
|
|
1238
|
+
type: Schema.Literal("SMIMEA"),
|
|
1239
|
+
comment: Schema.optional(Schema.String),
|
|
1240
|
+
data: Schema.optional(Schema.Struct({
|
|
1241
|
+
certificate: Schema.optional(Schema.String),
|
|
1242
|
+
matchingType: Schema.optional(Schema.Number),
|
|
1243
|
+
selector: Schema.optional(Schema.Number),
|
|
1244
|
+
usage: Schema.optional(Schema.Number),
|
|
1245
|
+
}).pipe(Schema.encodeKeys({
|
|
1246
|
+
certificate: "certificate",
|
|
1247
|
+
matchingType: "matching_type",
|
|
1248
|
+
selector: "selector",
|
|
1249
|
+
usage: "usage",
|
|
1250
|
+
}))),
|
|
1251
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
1252
|
+
settings: Schema.optional(Schema.Struct({
|
|
1253
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
1254
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
1255
|
+
}).pipe(Schema.encodeKeys({
|
|
1256
|
+
ipv4Only: "ipv4_only",
|
|
1257
|
+
ipv6Only: "ipv6_only",
|
|
1258
|
+
}))),
|
|
1259
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
1260
|
+
}).pipe(Schema.encodeKeys({
|
|
1261
|
+
zoneId: "zone_id",
|
|
1262
|
+
name: "name",
|
|
1263
|
+
ttl: "ttl",
|
|
1264
|
+
type: "type",
|
|
1265
|
+
comment: "comment",
|
|
1266
|
+
data: "data",
|
|
1267
|
+
proxied: "proxied",
|
|
1268
|
+
settings: "settings",
|
|
1269
|
+
tags: "tags",
|
|
1270
|
+
})),
|
|
1271
|
+
Schema.Struct({
|
|
1272
|
+
zoneId: Schema.String,
|
|
1273
|
+
name: Schema.String,
|
|
1274
|
+
ttl: Schema.Number,
|
|
1275
|
+
type: Schema.Literal("SRV"),
|
|
1276
|
+
comment: Schema.optional(Schema.String),
|
|
1277
|
+
data: Schema.optional(Schema.Struct({
|
|
1278
|
+
port: Schema.optional(Schema.Number),
|
|
1279
|
+
priority: Schema.optional(Schema.Number),
|
|
1280
|
+
target: Schema.optional(Schema.String),
|
|
1281
|
+
weight: Schema.optional(Schema.Number),
|
|
1282
|
+
})),
|
|
1283
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
1284
|
+
settings: Schema.optional(Schema.Struct({
|
|
1285
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
1286
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
1287
|
+
}).pipe(Schema.encodeKeys({
|
|
1288
|
+
ipv4Only: "ipv4_only",
|
|
1289
|
+
ipv6Only: "ipv6_only",
|
|
1290
|
+
}))),
|
|
1291
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
1292
|
+
}).pipe(Schema.encodeKeys({
|
|
1293
|
+
zoneId: "zone_id",
|
|
1294
|
+
name: "name",
|
|
1295
|
+
ttl: "ttl",
|
|
1296
|
+
type: "type",
|
|
1297
|
+
comment: "comment",
|
|
1298
|
+
data: "data",
|
|
1299
|
+
proxied: "proxied",
|
|
1300
|
+
settings: "settings",
|
|
1301
|
+
tags: "tags",
|
|
1302
|
+
})),
|
|
1303
|
+
Schema.Struct({
|
|
1304
|
+
zoneId: Schema.String,
|
|
1305
|
+
name: Schema.String,
|
|
1306
|
+
ttl: Schema.Number,
|
|
1307
|
+
type: Schema.Literal("SSHFP"),
|
|
1308
|
+
comment: Schema.optional(Schema.String),
|
|
1309
|
+
data: Schema.optional(Schema.Struct({
|
|
1310
|
+
algorithm: Schema.optional(Schema.Number),
|
|
1311
|
+
fingerprint: Schema.optional(Schema.String),
|
|
1312
|
+
type: Schema.optional(Schema.Number),
|
|
1313
|
+
})),
|
|
1314
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
1315
|
+
settings: Schema.optional(Schema.Struct({
|
|
1316
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
1317
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
1318
|
+
}).pipe(Schema.encodeKeys({
|
|
1319
|
+
ipv4Only: "ipv4_only",
|
|
1320
|
+
ipv6Only: "ipv6_only",
|
|
1321
|
+
}))),
|
|
1322
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
1323
|
+
}).pipe(Schema.encodeKeys({
|
|
1324
|
+
zoneId: "zone_id",
|
|
1325
|
+
name: "name",
|
|
1326
|
+
ttl: "ttl",
|
|
1327
|
+
type: "type",
|
|
1328
|
+
comment: "comment",
|
|
1329
|
+
data: "data",
|
|
1330
|
+
proxied: "proxied",
|
|
1331
|
+
settings: "settings",
|
|
1332
|
+
tags: "tags",
|
|
1333
|
+
})),
|
|
1334
|
+
Schema.Struct({
|
|
1335
|
+
zoneId: Schema.String,
|
|
1336
|
+
name: Schema.String,
|
|
1337
|
+
ttl: Schema.Number,
|
|
1338
|
+
type: Schema.Literal("SVCB"),
|
|
1339
|
+
comment: Schema.optional(Schema.String),
|
|
1340
|
+
data: Schema.optional(Schema.Struct({
|
|
1341
|
+
priority: Schema.optional(Schema.Number),
|
|
1342
|
+
target: Schema.optional(Schema.String),
|
|
1343
|
+
value: Schema.optional(Schema.String),
|
|
1344
|
+
})),
|
|
1345
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
1346
|
+
settings: Schema.optional(Schema.Struct({
|
|
1347
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
1348
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
1349
|
+
}).pipe(Schema.encodeKeys({
|
|
1350
|
+
ipv4Only: "ipv4_only",
|
|
1351
|
+
ipv6Only: "ipv6_only",
|
|
1352
|
+
}))),
|
|
1353
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
1354
|
+
}).pipe(Schema.encodeKeys({
|
|
1355
|
+
zoneId: "zone_id",
|
|
1356
|
+
name: "name",
|
|
1357
|
+
ttl: "ttl",
|
|
1358
|
+
type: "type",
|
|
1359
|
+
comment: "comment",
|
|
1360
|
+
data: "data",
|
|
1361
|
+
proxied: "proxied",
|
|
1362
|
+
settings: "settings",
|
|
1363
|
+
tags: "tags",
|
|
1364
|
+
})),
|
|
1365
|
+
Schema.Struct({
|
|
1366
|
+
zoneId: Schema.String,
|
|
1367
|
+
name: Schema.String,
|
|
1368
|
+
ttl: Schema.Number,
|
|
1369
|
+
type: Schema.Literal("TLSA"),
|
|
1370
|
+
comment: Schema.optional(Schema.String),
|
|
1371
|
+
data: Schema.optional(Schema.Struct({
|
|
1372
|
+
certificate: Schema.optional(Schema.String),
|
|
1373
|
+
matchingType: Schema.optional(Schema.Number),
|
|
1374
|
+
selector: Schema.optional(Schema.Number),
|
|
1375
|
+
usage: Schema.optional(Schema.Number),
|
|
1376
|
+
}).pipe(Schema.encodeKeys({
|
|
1377
|
+
certificate: "certificate",
|
|
1378
|
+
matchingType: "matching_type",
|
|
1379
|
+
selector: "selector",
|
|
1380
|
+
usage: "usage",
|
|
1381
|
+
}))),
|
|
1382
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
1383
|
+
settings: Schema.optional(Schema.Struct({
|
|
1384
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
1385
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
1386
|
+
}).pipe(Schema.encodeKeys({
|
|
1387
|
+
ipv4Only: "ipv4_only",
|
|
1388
|
+
ipv6Only: "ipv6_only",
|
|
1389
|
+
}))),
|
|
1390
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
1391
|
+
}).pipe(Schema.encodeKeys({
|
|
1392
|
+
zoneId: "zone_id",
|
|
1393
|
+
name: "name",
|
|
1394
|
+
ttl: "ttl",
|
|
1395
|
+
type: "type",
|
|
1396
|
+
comment: "comment",
|
|
1397
|
+
data: "data",
|
|
1398
|
+
proxied: "proxied",
|
|
1399
|
+
settings: "settings",
|
|
1400
|
+
tags: "tags",
|
|
1401
|
+
})),
|
|
1402
|
+
Schema.Struct({
|
|
1403
|
+
zoneId: Schema.String,
|
|
1404
|
+
name: Schema.String,
|
|
1405
|
+
ttl: Schema.Number,
|
|
1406
|
+
type: Schema.Literal("URI"),
|
|
1407
|
+
comment: Schema.optional(Schema.String),
|
|
1408
|
+
data: Schema.optional(Schema.Struct({
|
|
1409
|
+
target: Schema.optional(Schema.String),
|
|
1410
|
+
weight: Schema.optional(Schema.Number),
|
|
1411
|
+
})),
|
|
1412
|
+
priority: Schema.optional(Schema.Number),
|
|
1413
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
1414
|
+
settings: Schema.optional(Schema.Struct({
|
|
1415
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
1416
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
1417
|
+
}).pipe(Schema.encodeKeys({
|
|
1418
|
+
ipv4Only: "ipv4_only",
|
|
1419
|
+
ipv6Only: "ipv6_only",
|
|
1420
|
+
}))),
|
|
1421
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
1422
|
+
}).pipe(Schema.encodeKeys({
|
|
1423
|
+
zoneId: "zone_id",
|
|
1424
|
+
name: "name",
|
|
1425
|
+
ttl: "ttl",
|
|
1426
|
+
type: "type",
|
|
1427
|
+
comment: "comment",
|
|
1428
|
+
data: "data",
|
|
1429
|
+
priority: "priority",
|
|
1430
|
+
proxied: "proxied",
|
|
1431
|
+
settings: "settings",
|
|
1432
|
+
tags: "tags",
|
|
1433
|
+
})),
|
|
1434
|
+
]))),
|
|
1435
|
+
posts: Schema.optional(Schema.Array(Schema.Union([
|
|
1436
|
+
Schema.Struct({
|
|
1437
|
+
name: Schema.String,
|
|
1438
|
+
ttl: Schema.Number,
|
|
1439
|
+
type: Schema.Literal("A"),
|
|
1440
|
+
comment: Schema.optional(Schema.String),
|
|
1441
|
+
content: Schema.optional(Schema.String),
|
|
1442
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
1443
|
+
settings: Schema.optional(Schema.Struct({
|
|
1444
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
1445
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
1446
|
+
}).pipe(Schema.encodeKeys({
|
|
1447
|
+
ipv4Only: "ipv4_only",
|
|
1448
|
+
ipv6Only: "ipv6_only",
|
|
1449
|
+
}))),
|
|
1450
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
1451
|
+
}),
|
|
1452
|
+
Schema.Struct({
|
|
1453
|
+
name: Schema.String,
|
|
1454
|
+
ttl: Schema.Number,
|
|
1455
|
+
type: Schema.Literal("AAAA"),
|
|
1456
|
+
comment: Schema.optional(Schema.String),
|
|
1457
|
+
content: Schema.optional(Schema.String),
|
|
1458
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
1459
|
+
settings: Schema.optional(Schema.Struct({
|
|
1460
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
1461
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
1462
|
+
}).pipe(Schema.encodeKeys({
|
|
1463
|
+
ipv4Only: "ipv4_only",
|
|
1464
|
+
ipv6Only: "ipv6_only",
|
|
1465
|
+
}))),
|
|
1466
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
1467
|
+
}),
|
|
1468
|
+
Schema.Struct({
|
|
1469
|
+
name: Schema.String,
|
|
1470
|
+
ttl: Schema.Number,
|
|
1471
|
+
type: Schema.Literal("CNAME"),
|
|
1472
|
+
comment: Schema.optional(Schema.String),
|
|
1473
|
+
content: Schema.optional(Schema.String),
|
|
1474
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
1475
|
+
settings: Schema.optional(Schema.Struct({
|
|
1476
|
+
flattenCname: Schema.optional(Schema.Boolean),
|
|
1477
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
1478
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
1479
|
+
}).pipe(Schema.encodeKeys({
|
|
1480
|
+
flattenCname: "flatten_cname",
|
|
1481
|
+
ipv4Only: "ipv4_only",
|
|
1482
|
+
ipv6Only: "ipv6_only",
|
|
1483
|
+
}))),
|
|
1484
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
1485
|
+
}),
|
|
1486
|
+
Schema.Struct({
|
|
1487
|
+
name: Schema.String,
|
|
1488
|
+
ttl: Schema.Number,
|
|
1489
|
+
type: Schema.Literal("MX"),
|
|
1490
|
+
comment: Schema.optional(Schema.String),
|
|
1491
|
+
content: Schema.optional(Schema.String),
|
|
1492
|
+
priority: Schema.optional(Schema.Number),
|
|
1493
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
1494
|
+
settings: Schema.optional(Schema.Struct({
|
|
1495
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
1496
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
1497
|
+
}).pipe(Schema.encodeKeys({
|
|
1498
|
+
ipv4Only: "ipv4_only",
|
|
1499
|
+
ipv6Only: "ipv6_only",
|
|
1500
|
+
}))),
|
|
1501
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
1502
|
+
}),
|
|
1503
|
+
Schema.Struct({
|
|
1504
|
+
name: Schema.String,
|
|
1505
|
+
ttl: Schema.Number,
|
|
1506
|
+
type: Schema.Literal("NS"),
|
|
1507
|
+
comment: Schema.optional(Schema.String),
|
|
1508
|
+
content: Schema.optional(Schema.String),
|
|
1509
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
1510
|
+
settings: Schema.optional(Schema.Struct({
|
|
1511
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
1512
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
1513
|
+
}).pipe(Schema.encodeKeys({
|
|
1514
|
+
ipv4Only: "ipv4_only",
|
|
1515
|
+
ipv6Only: "ipv6_only",
|
|
1516
|
+
}))),
|
|
1517
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
1518
|
+
}),
|
|
1519
|
+
Schema.Struct({
|
|
1520
|
+
name: Schema.String,
|
|
1521
|
+
ttl: Schema.Number,
|
|
1522
|
+
type: Schema.Literal("OPENPGPKEY"),
|
|
1523
|
+
comment: Schema.optional(Schema.String),
|
|
1524
|
+
content: Schema.optional(Schema.String),
|
|
1525
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
1526
|
+
settings: Schema.optional(Schema.Struct({
|
|
1527
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
1528
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
1529
|
+
}).pipe(Schema.encodeKeys({
|
|
1530
|
+
ipv4Only: "ipv4_only",
|
|
1531
|
+
ipv6Only: "ipv6_only",
|
|
1532
|
+
}))),
|
|
1533
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
1534
|
+
}),
|
|
1535
|
+
Schema.Struct({
|
|
1536
|
+
name: Schema.String,
|
|
1537
|
+
ttl: Schema.Number,
|
|
1538
|
+
type: Schema.Literal("PTR"),
|
|
1539
|
+
comment: Schema.optional(Schema.String),
|
|
1540
|
+
content: Schema.optional(Schema.String),
|
|
1541
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
1542
|
+
settings: Schema.optional(Schema.Struct({
|
|
1543
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
1544
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
1545
|
+
}).pipe(Schema.encodeKeys({
|
|
1546
|
+
ipv4Only: "ipv4_only",
|
|
1547
|
+
ipv6Only: "ipv6_only",
|
|
1548
|
+
}))),
|
|
1549
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
1550
|
+
}),
|
|
1551
|
+
Schema.Struct({
|
|
1552
|
+
name: Schema.String,
|
|
1553
|
+
ttl: Schema.Number,
|
|
1554
|
+
type: Schema.Literal("TXT"),
|
|
1555
|
+
comment: Schema.optional(Schema.String),
|
|
1556
|
+
content: Schema.optional(Schema.String),
|
|
1557
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
1558
|
+
settings: Schema.optional(Schema.Struct({
|
|
1559
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
1560
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
1561
|
+
}).pipe(Schema.encodeKeys({
|
|
1562
|
+
ipv4Only: "ipv4_only",
|
|
1563
|
+
ipv6Only: "ipv6_only",
|
|
1564
|
+
}))),
|
|
1565
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
1566
|
+
}),
|
|
1567
|
+
Schema.Struct({
|
|
1568
|
+
name: Schema.String,
|
|
1569
|
+
ttl: Schema.Number,
|
|
1570
|
+
type: Schema.Literal("CAA"),
|
|
1571
|
+
comment: Schema.optional(Schema.String),
|
|
1572
|
+
data: Schema.optional(Schema.Struct({
|
|
1573
|
+
flags: Schema.optional(Schema.Number),
|
|
1574
|
+
tag: Schema.optional(Schema.String),
|
|
1575
|
+
value: Schema.optional(Schema.String),
|
|
1576
|
+
})),
|
|
1577
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
1578
|
+
settings: Schema.optional(Schema.Struct({
|
|
1579
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
1580
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
1581
|
+
}).pipe(Schema.encodeKeys({
|
|
1582
|
+
ipv4Only: "ipv4_only",
|
|
1583
|
+
ipv6Only: "ipv6_only",
|
|
1584
|
+
}))),
|
|
1585
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
1586
|
+
}),
|
|
1587
|
+
Schema.Struct({
|
|
1588
|
+
name: Schema.String,
|
|
1589
|
+
ttl: Schema.Number,
|
|
1590
|
+
type: Schema.Literal("CERT"),
|
|
1591
|
+
comment: Schema.optional(Schema.String),
|
|
1592
|
+
data: Schema.optional(Schema.Struct({
|
|
1593
|
+
algorithm: Schema.optional(Schema.Number),
|
|
1594
|
+
certificate: Schema.optional(Schema.String),
|
|
1595
|
+
keyTag: Schema.optional(Schema.Number),
|
|
1596
|
+
type: Schema.optional(Schema.Number),
|
|
1597
|
+
}).pipe(Schema.encodeKeys({
|
|
1598
|
+
algorithm: "algorithm",
|
|
1599
|
+
certificate: "certificate",
|
|
1600
|
+
keyTag: "key_tag",
|
|
1601
|
+
type: "type",
|
|
1602
|
+
}))),
|
|
1603
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
1604
|
+
settings: Schema.optional(Schema.Struct({
|
|
1605
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
1606
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
1607
|
+
}).pipe(Schema.encodeKeys({
|
|
1608
|
+
ipv4Only: "ipv4_only",
|
|
1609
|
+
ipv6Only: "ipv6_only",
|
|
1610
|
+
}))),
|
|
1611
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
1612
|
+
}),
|
|
1613
|
+
Schema.Struct({
|
|
1614
|
+
name: Schema.String,
|
|
1615
|
+
ttl: Schema.Number,
|
|
1616
|
+
type: Schema.Literal("DNSKEY"),
|
|
1617
|
+
comment: Schema.optional(Schema.String),
|
|
1618
|
+
data: Schema.optional(Schema.Struct({
|
|
1619
|
+
algorithm: Schema.optional(Schema.Number),
|
|
1620
|
+
flags: Schema.optional(Schema.Number),
|
|
1621
|
+
protocol: Schema.optional(Schema.Number),
|
|
1622
|
+
publicKey: Schema.optional(Schema.String),
|
|
1623
|
+
}).pipe(Schema.encodeKeys({
|
|
1624
|
+
algorithm: "algorithm",
|
|
1625
|
+
flags: "flags",
|
|
1626
|
+
protocol: "protocol",
|
|
1627
|
+
publicKey: "public_key",
|
|
1628
|
+
}))),
|
|
1629
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
1630
|
+
settings: Schema.optional(Schema.Struct({
|
|
1631
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
1632
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
1633
|
+
}).pipe(Schema.encodeKeys({
|
|
1634
|
+
ipv4Only: "ipv4_only",
|
|
1635
|
+
ipv6Only: "ipv6_only",
|
|
1636
|
+
}))),
|
|
1637
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
1638
|
+
}),
|
|
1639
|
+
Schema.Struct({
|
|
1640
|
+
name: Schema.String,
|
|
1641
|
+
ttl: Schema.Number,
|
|
1642
|
+
type: Schema.Literal("DS"),
|
|
1643
|
+
comment: Schema.optional(Schema.String),
|
|
1644
|
+
data: Schema.optional(Schema.Struct({
|
|
1645
|
+
algorithm: Schema.optional(Schema.Number),
|
|
1646
|
+
digest: Schema.optional(Schema.String),
|
|
1647
|
+
digestType: Schema.optional(Schema.Number),
|
|
1648
|
+
keyTag: Schema.optional(Schema.Number),
|
|
1649
|
+
}).pipe(Schema.encodeKeys({
|
|
1650
|
+
algorithm: "algorithm",
|
|
1651
|
+
digest: "digest",
|
|
1652
|
+
digestType: "digest_type",
|
|
1653
|
+
keyTag: "key_tag",
|
|
1654
|
+
}))),
|
|
1655
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
1656
|
+
settings: Schema.optional(Schema.Struct({
|
|
1657
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
1658
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
1659
|
+
}).pipe(Schema.encodeKeys({
|
|
1660
|
+
ipv4Only: "ipv4_only",
|
|
1661
|
+
ipv6Only: "ipv6_only",
|
|
1662
|
+
}))),
|
|
1663
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
1664
|
+
}),
|
|
1665
|
+
Schema.Struct({
|
|
1666
|
+
name: Schema.String,
|
|
1667
|
+
ttl: Schema.Number,
|
|
1668
|
+
type: Schema.Literal("HTTPS"),
|
|
1669
|
+
comment: Schema.optional(Schema.String),
|
|
1670
|
+
data: Schema.optional(Schema.Struct({
|
|
1671
|
+
priority: Schema.optional(Schema.Number),
|
|
1672
|
+
target: Schema.optional(Schema.String),
|
|
1673
|
+
value: Schema.optional(Schema.String),
|
|
1674
|
+
})),
|
|
1675
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
1676
|
+
settings: Schema.optional(Schema.Struct({
|
|
1677
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
1678
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
1679
|
+
}).pipe(Schema.encodeKeys({
|
|
1680
|
+
ipv4Only: "ipv4_only",
|
|
1681
|
+
ipv6Only: "ipv6_only",
|
|
1682
|
+
}))),
|
|
1683
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
1684
|
+
}),
|
|
1685
|
+
Schema.Struct({
|
|
1686
|
+
name: Schema.String,
|
|
1687
|
+
ttl: Schema.Number,
|
|
1688
|
+
type: Schema.Literal("LOC"),
|
|
1689
|
+
comment: Schema.optional(Schema.String),
|
|
1690
|
+
data: Schema.optional(Schema.Struct({
|
|
1691
|
+
altitude: Schema.optional(Schema.Number),
|
|
1692
|
+
latDegrees: Schema.optional(Schema.Number),
|
|
1693
|
+
latDirection: Schema.optional(Schema.Literals(["N", "S"])),
|
|
1694
|
+
latMinutes: Schema.optional(Schema.Number),
|
|
1695
|
+
latSeconds: Schema.optional(Schema.Number),
|
|
1696
|
+
longDegrees: Schema.optional(Schema.Number),
|
|
1697
|
+
longDirection: Schema.optional(Schema.Literals(["E", "W"])),
|
|
1698
|
+
longMinutes: Schema.optional(Schema.Number),
|
|
1699
|
+
longSeconds: Schema.optional(Schema.Number),
|
|
1700
|
+
precisionHorz: Schema.optional(Schema.Number),
|
|
1701
|
+
precisionVert: Schema.optional(Schema.Number),
|
|
1702
|
+
size: Schema.optional(Schema.Number),
|
|
1703
|
+
}).pipe(Schema.encodeKeys({
|
|
1704
|
+
altitude: "altitude",
|
|
1705
|
+
latDegrees: "lat_degrees",
|
|
1706
|
+
latDirection: "lat_direction",
|
|
1707
|
+
latMinutes: "lat_minutes",
|
|
1708
|
+
latSeconds: "lat_seconds",
|
|
1709
|
+
longDegrees: "long_degrees",
|
|
1710
|
+
longDirection: "long_direction",
|
|
1711
|
+
longMinutes: "long_minutes",
|
|
1712
|
+
longSeconds: "long_seconds",
|
|
1713
|
+
precisionHorz: "precision_horz",
|
|
1714
|
+
precisionVert: "precision_vert",
|
|
1715
|
+
size: "size",
|
|
1716
|
+
}))),
|
|
1717
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
1718
|
+
settings: Schema.optional(Schema.Struct({
|
|
1719
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
1720
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
1721
|
+
}).pipe(Schema.encodeKeys({
|
|
1722
|
+
ipv4Only: "ipv4_only",
|
|
1723
|
+
ipv6Only: "ipv6_only",
|
|
1724
|
+
}))),
|
|
1725
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
1726
|
+
}),
|
|
1727
|
+
Schema.Struct({
|
|
1728
|
+
name: Schema.String,
|
|
1729
|
+
ttl: Schema.Number,
|
|
1730
|
+
type: Schema.Literal("NAPTR"),
|
|
1731
|
+
comment: Schema.optional(Schema.String),
|
|
1732
|
+
data: Schema.optional(Schema.Struct({
|
|
1733
|
+
flags: Schema.optional(Schema.String),
|
|
1734
|
+
order: Schema.optional(Schema.Number),
|
|
1735
|
+
preference: Schema.optional(Schema.Number),
|
|
1736
|
+
regex: Schema.optional(Schema.String),
|
|
1737
|
+
replacement: Schema.optional(Schema.String),
|
|
1738
|
+
service: Schema.optional(Schema.String),
|
|
1739
|
+
})),
|
|
1740
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
1741
|
+
settings: Schema.optional(Schema.Struct({
|
|
1742
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
1743
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
1744
|
+
}).pipe(Schema.encodeKeys({
|
|
1745
|
+
ipv4Only: "ipv4_only",
|
|
1746
|
+
ipv6Only: "ipv6_only",
|
|
1747
|
+
}))),
|
|
1748
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
1749
|
+
}),
|
|
1750
|
+
Schema.Struct({
|
|
1751
|
+
name: Schema.String,
|
|
1752
|
+
ttl: Schema.Number,
|
|
1753
|
+
type: Schema.Literal("SMIMEA"),
|
|
1754
|
+
comment: Schema.optional(Schema.String),
|
|
1755
|
+
data: Schema.optional(Schema.Struct({
|
|
1756
|
+
certificate: Schema.optional(Schema.String),
|
|
1757
|
+
matchingType: Schema.optional(Schema.Number),
|
|
1758
|
+
selector: Schema.optional(Schema.Number),
|
|
1759
|
+
usage: Schema.optional(Schema.Number),
|
|
1760
|
+
}).pipe(Schema.encodeKeys({
|
|
1761
|
+
certificate: "certificate",
|
|
1762
|
+
matchingType: "matching_type",
|
|
1763
|
+
selector: "selector",
|
|
1764
|
+
usage: "usage",
|
|
1765
|
+
}))),
|
|
1766
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
1767
|
+
settings: Schema.optional(Schema.Struct({
|
|
1768
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
1769
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
1770
|
+
}).pipe(Schema.encodeKeys({
|
|
1771
|
+
ipv4Only: "ipv4_only",
|
|
1772
|
+
ipv6Only: "ipv6_only",
|
|
1773
|
+
}))),
|
|
1774
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
1775
|
+
}),
|
|
1776
|
+
Schema.Struct({
|
|
1777
|
+
name: Schema.String,
|
|
1778
|
+
ttl: Schema.Number,
|
|
1779
|
+
type: Schema.Literal("SRV"),
|
|
1780
|
+
comment: Schema.optional(Schema.String),
|
|
1781
|
+
data: Schema.optional(Schema.Struct({
|
|
1782
|
+
port: Schema.optional(Schema.Number),
|
|
1783
|
+
priority: Schema.optional(Schema.Number),
|
|
1784
|
+
target: Schema.optional(Schema.String),
|
|
1785
|
+
weight: Schema.optional(Schema.Number),
|
|
1786
|
+
})),
|
|
1787
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
1788
|
+
settings: Schema.optional(Schema.Struct({
|
|
1789
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
1790
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
1791
|
+
}).pipe(Schema.encodeKeys({
|
|
1792
|
+
ipv4Only: "ipv4_only",
|
|
1793
|
+
ipv6Only: "ipv6_only",
|
|
1794
|
+
}))),
|
|
1795
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
1796
|
+
}),
|
|
1797
|
+
Schema.Struct({
|
|
1798
|
+
name: Schema.String,
|
|
1799
|
+
ttl: Schema.Number,
|
|
1800
|
+
type: Schema.Literal("SSHFP"),
|
|
1801
|
+
comment: Schema.optional(Schema.String),
|
|
1802
|
+
data: Schema.optional(Schema.Struct({
|
|
1803
|
+
algorithm: Schema.optional(Schema.Number),
|
|
1804
|
+
fingerprint: Schema.optional(Schema.String),
|
|
1805
|
+
type: Schema.optional(Schema.Number),
|
|
1806
|
+
})),
|
|
1807
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
1808
|
+
settings: Schema.optional(Schema.Struct({
|
|
1809
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
1810
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
1811
|
+
}).pipe(Schema.encodeKeys({
|
|
1812
|
+
ipv4Only: "ipv4_only",
|
|
1813
|
+
ipv6Only: "ipv6_only",
|
|
1814
|
+
}))),
|
|
1815
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
1816
|
+
}),
|
|
1817
|
+
Schema.Struct({
|
|
1818
|
+
name: Schema.String,
|
|
1819
|
+
ttl: Schema.Number,
|
|
1820
|
+
type: Schema.Literal("SVCB"),
|
|
1821
|
+
comment: Schema.optional(Schema.String),
|
|
1822
|
+
data: Schema.optional(Schema.Struct({
|
|
1823
|
+
priority: Schema.optional(Schema.Number),
|
|
1824
|
+
target: Schema.optional(Schema.String),
|
|
1825
|
+
value: Schema.optional(Schema.String),
|
|
1826
|
+
})),
|
|
1827
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
1828
|
+
settings: Schema.optional(Schema.Struct({
|
|
1829
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
1830
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
1831
|
+
}).pipe(Schema.encodeKeys({
|
|
1832
|
+
ipv4Only: "ipv4_only",
|
|
1833
|
+
ipv6Only: "ipv6_only",
|
|
1834
|
+
}))),
|
|
1835
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
1836
|
+
}),
|
|
1837
|
+
Schema.Struct({
|
|
1838
|
+
name: Schema.String,
|
|
1839
|
+
ttl: Schema.Number,
|
|
1840
|
+
type: Schema.Literal("TLSA"),
|
|
1841
|
+
comment: Schema.optional(Schema.String),
|
|
1842
|
+
data: Schema.optional(Schema.Struct({
|
|
1843
|
+
certificate: Schema.optional(Schema.String),
|
|
1844
|
+
matchingType: Schema.optional(Schema.Number),
|
|
1845
|
+
selector: Schema.optional(Schema.Number),
|
|
1846
|
+
usage: Schema.optional(Schema.Number),
|
|
1847
|
+
}).pipe(Schema.encodeKeys({
|
|
1848
|
+
certificate: "certificate",
|
|
1849
|
+
matchingType: "matching_type",
|
|
1850
|
+
selector: "selector",
|
|
1851
|
+
usage: "usage",
|
|
1852
|
+
}))),
|
|
1853
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
1854
|
+
settings: Schema.optional(Schema.Struct({
|
|
1855
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
1856
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
1857
|
+
}).pipe(Schema.encodeKeys({
|
|
1858
|
+
ipv4Only: "ipv4_only",
|
|
1859
|
+
ipv6Only: "ipv6_only",
|
|
1860
|
+
}))),
|
|
1861
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
1862
|
+
}),
|
|
1863
|
+
Schema.Struct({
|
|
1864
|
+
name: Schema.String,
|
|
1865
|
+
ttl: Schema.Number,
|
|
1866
|
+
type: Schema.Literal("URI"),
|
|
1867
|
+
comment: Schema.optional(Schema.String),
|
|
1868
|
+
data: Schema.optional(Schema.Struct({
|
|
1869
|
+
target: Schema.optional(Schema.String),
|
|
1870
|
+
weight: Schema.optional(Schema.Number),
|
|
1871
|
+
})),
|
|
1872
|
+
priority: Schema.optional(Schema.Number),
|
|
1873
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
1874
|
+
settings: Schema.optional(Schema.Struct({
|
|
1875
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
1876
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
1877
|
+
}).pipe(Schema.encodeKeys({
|
|
1878
|
+
ipv4Only: "ipv4_only",
|
|
1879
|
+
ipv6Only: "ipv6_only",
|
|
1880
|
+
}))),
|
|
1881
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
1882
|
+
}),
|
|
1883
|
+
]))),
|
|
1884
|
+
puts: Schema.optional(Schema.Array(Schema.Union([
|
|
1885
|
+
Schema.Struct({
|
|
1886
|
+
zoneId: Schema.String,
|
|
1887
|
+
name: Schema.String,
|
|
1888
|
+
ttl: Schema.Number,
|
|
1889
|
+
type: Schema.Literal("A"),
|
|
1890
|
+
comment: Schema.optional(Schema.String),
|
|
1891
|
+
content: Schema.optional(Schema.String),
|
|
1892
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
1893
|
+
settings: Schema.optional(Schema.Struct({
|
|
1894
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
1895
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
1896
|
+
}).pipe(Schema.encodeKeys({
|
|
1897
|
+
ipv4Only: "ipv4_only",
|
|
1898
|
+
ipv6Only: "ipv6_only",
|
|
1899
|
+
}))),
|
|
1900
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
1901
|
+
}).pipe(Schema.encodeKeys({
|
|
1902
|
+
zoneId: "zone_id",
|
|
1903
|
+
name: "name",
|
|
1904
|
+
ttl: "ttl",
|
|
1905
|
+
type: "type",
|
|
1906
|
+
comment: "comment",
|
|
1907
|
+
content: "content",
|
|
1908
|
+
proxied: "proxied",
|
|
1909
|
+
settings: "settings",
|
|
1910
|
+
tags: "tags",
|
|
1911
|
+
})),
|
|
1912
|
+
Schema.Struct({
|
|
1913
|
+
zoneId: Schema.String,
|
|
1914
|
+
name: Schema.String,
|
|
1915
|
+
ttl: Schema.Number,
|
|
1916
|
+
type: Schema.Literal("AAAA"),
|
|
1917
|
+
comment: Schema.optional(Schema.String),
|
|
1918
|
+
content: Schema.optional(Schema.String),
|
|
1919
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
1920
|
+
settings: Schema.optional(Schema.Struct({
|
|
1921
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
1922
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
1923
|
+
}).pipe(Schema.encodeKeys({
|
|
1924
|
+
ipv4Only: "ipv4_only",
|
|
1925
|
+
ipv6Only: "ipv6_only",
|
|
1926
|
+
}))),
|
|
1927
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
1928
|
+
}).pipe(Schema.encodeKeys({
|
|
1929
|
+
zoneId: "zone_id",
|
|
1930
|
+
name: "name",
|
|
1931
|
+
ttl: "ttl",
|
|
1932
|
+
type: "type",
|
|
1933
|
+
comment: "comment",
|
|
1934
|
+
content: "content",
|
|
1935
|
+
proxied: "proxied",
|
|
1936
|
+
settings: "settings",
|
|
1937
|
+
tags: "tags",
|
|
1938
|
+
})),
|
|
1939
|
+
Schema.Struct({
|
|
1940
|
+
zoneId: Schema.String,
|
|
1941
|
+
name: Schema.String,
|
|
1942
|
+
ttl: Schema.Number,
|
|
1943
|
+
type: Schema.Literal("CNAME"),
|
|
1944
|
+
comment: Schema.optional(Schema.String),
|
|
1945
|
+
content: Schema.optional(Schema.String),
|
|
1946
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
1947
|
+
settings: Schema.optional(Schema.Struct({
|
|
1948
|
+
flattenCname: Schema.optional(Schema.Boolean),
|
|
1949
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
1950
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
1951
|
+
}).pipe(Schema.encodeKeys({
|
|
1952
|
+
flattenCname: "flatten_cname",
|
|
1953
|
+
ipv4Only: "ipv4_only",
|
|
1954
|
+
ipv6Only: "ipv6_only",
|
|
1955
|
+
}))),
|
|
1956
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
1957
|
+
}).pipe(Schema.encodeKeys({
|
|
1958
|
+
zoneId: "zone_id",
|
|
1959
|
+
name: "name",
|
|
1960
|
+
ttl: "ttl",
|
|
1961
|
+
type: "type",
|
|
1962
|
+
comment: "comment",
|
|
1963
|
+
content: "content",
|
|
1964
|
+
proxied: "proxied",
|
|
1965
|
+
settings: "settings",
|
|
1966
|
+
tags: "tags",
|
|
1967
|
+
})),
|
|
1968
|
+
Schema.Struct({
|
|
1969
|
+
zoneId: Schema.String,
|
|
1970
|
+
name: Schema.String,
|
|
1971
|
+
ttl: Schema.Number,
|
|
1972
|
+
type: Schema.Literal("MX"),
|
|
1973
|
+
comment: Schema.optional(Schema.String),
|
|
1974
|
+
content: Schema.optional(Schema.String),
|
|
1975
|
+
priority: Schema.optional(Schema.Number),
|
|
1976
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
1977
|
+
settings: Schema.optional(Schema.Struct({
|
|
1978
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
1979
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
1980
|
+
}).pipe(Schema.encodeKeys({
|
|
1981
|
+
ipv4Only: "ipv4_only",
|
|
1982
|
+
ipv6Only: "ipv6_only",
|
|
1983
|
+
}))),
|
|
1984
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
1985
|
+
}).pipe(Schema.encodeKeys({
|
|
1986
|
+
zoneId: "zone_id",
|
|
1987
|
+
name: "name",
|
|
1988
|
+
ttl: "ttl",
|
|
1989
|
+
type: "type",
|
|
1990
|
+
comment: "comment",
|
|
1991
|
+
content: "content",
|
|
1992
|
+
priority: "priority",
|
|
1993
|
+
proxied: "proxied",
|
|
1994
|
+
settings: "settings",
|
|
1995
|
+
tags: "tags",
|
|
1996
|
+
})),
|
|
1997
|
+
Schema.Struct({
|
|
1998
|
+
zoneId: Schema.String,
|
|
1999
|
+
name: Schema.String,
|
|
2000
|
+
ttl: Schema.Number,
|
|
2001
|
+
type: Schema.Literal("NS"),
|
|
2002
|
+
comment: Schema.optional(Schema.String),
|
|
2003
|
+
content: Schema.optional(Schema.String),
|
|
2004
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
2005
|
+
settings: Schema.optional(Schema.Struct({
|
|
2006
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
2007
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
2008
|
+
}).pipe(Schema.encodeKeys({
|
|
2009
|
+
ipv4Only: "ipv4_only",
|
|
2010
|
+
ipv6Only: "ipv6_only",
|
|
2011
|
+
}))),
|
|
2012
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
2013
|
+
}).pipe(Schema.encodeKeys({
|
|
2014
|
+
zoneId: "zone_id",
|
|
2015
|
+
name: "name",
|
|
2016
|
+
ttl: "ttl",
|
|
2017
|
+
type: "type",
|
|
2018
|
+
comment: "comment",
|
|
2019
|
+
content: "content",
|
|
2020
|
+
proxied: "proxied",
|
|
2021
|
+
settings: "settings",
|
|
2022
|
+
tags: "tags",
|
|
2023
|
+
})),
|
|
2024
|
+
Schema.Struct({
|
|
2025
|
+
id: Schema.String,
|
|
2026
|
+
name: Schema.String,
|
|
2027
|
+
ttl: Schema.Number,
|
|
2028
|
+
type: Schema.Literal("OPENPGPKEY"),
|
|
2029
|
+
comment: Schema.optional(Schema.String),
|
|
2030
|
+
content: Schema.optional(Schema.String),
|
|
2031
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
2032
|
+
settings: Schema.optional(Schema.Struct({
|
|
2033
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
2034
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
2035
|
+
}).pipe(Schema.encodeKeys({
|
|
2036
|
+
ipv4Only: "ipv4_only",
|
|
2037
|
+
ipv6Only: "ipv6_only",
|
|
2038
|
+
}))),
|
|
2039
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
2040
|
+
}),
|
|
2041
|
+
Schema.Struct({
|
|
2042
|
+
zoneId: Schema.String,
|
|
2043
|
+
name: Schema.String,
|
|
2044
|
+
ttl: Schema.Number,
|
|
2045
|
+
type: Schema.Literal("PTR"),
|
|
2046
|
+
comment: Schema.optional(Schema.String),
|
|
2047
|
+
content: Schema.optional(Schema.String),
|
|
2048
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
2049
|
+
settings: Schema.optional(Schema.Struct({
|
|
2050
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
2051
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
2052
|
+
}).pipe(Schema.encodeKeys({
|
|
2053
|
+
ipv4Only: "ipv4_only",
|
|
2054
|
+
ipv6Only: "ipv6_only",
|
|
2055
|
+
}))),
|
|
2056
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
2057
|
+
}).pipe(Schema.encodeKeys({
|
|
2058
|
+
zoneId: "zone_id",
|
|
2059
|
+
name: "name",
|
|
2060
|
+
ttl: "ttl",
|
|
2061
|
+
type: "type",
|
|
2062
|
+
comment: "comment",
|
|
2063
|
+
content: "content",
|
|
2064
|
+
proxied: "proxied",
|
|
2065
|
+
settings: "settings",
|
|
2066
|
+
tags: "tags",
|
|
2067
|
+
})),
|
|
2068
|
+
Schema.Struct({
|
|
2069
|
+
zoneId: Schema.String,
|
|
2070
|
+
name: Schema.String,
|
|
2071
|
+
ttl: Schema.Number,
|
|
2072
|
+
type: Schema.Literal("TXT"),
|
|
2073
|
+
comment: Schema.optional(Schema.String),
|
|
2074
|
+
content: Schema.optional(Schema.String),
|
|
2075
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
2076
|
+
settings: Schema.optional(Schema.Struct({
|
|
2077
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
2078
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
2079
|
+
}).pipe(Schema.encodeKeys({
|
|
2080
|
+
ipv4Only: "ipv4_only",
|
|
2081
|
+
ipv6Only: "ipv6_only",
|
|
2082
|
+
}))),
|
|
2083
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
2084
|
+
}).pipe(Schema.encodeKeys({
|
|
2085
|
+
zoneId: "zone_id",
|
|
2086
|
+
name: "name",
|
|
2087
|
+
ttl: "ttl",
|
|
2088
|
+
type: "type",
|
|
2089
|
+
comment: "comment",
|
|
2090
|
+
content: "content",
|
|
2091
|
+
proxied: "proxied",
|
|
2092
|
+
settings: "settings",
|
|
2093
|
+
tags: "tags",
|
|
2094
|
+
})),
|
|
2095
|
+
Schema.Struct({
|
|
2096
|
+
zoneId: Schema.String,
|
|
2097
|
+
name: Schema.String,
|
|
2098
|
+
ttl: Schema.Number,
|
|
2099
|
+
type: Schema.Literal("CAA"),
|
|
2100
|
+
comment: Schema.optional(Schema.String),
|
|
2101
|
+
data: Schema.optional(Schema.Struct({
|
|
2102
|
+
flags: Schema.optional(Schema.Number),
|
|
2103
|
+
tag: Schema.optional(Schema.String),
|
|
2104
|
+
value: Schema.optional(Schema.String),
|
|
2105
|
+
})),
|
|
2106
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
2107
|
+
settings: Schema.optional(Schema.Struct({
|
|
2108
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
2109
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
2110
|
+
}).pipe(Schema.encodeKeys({
|
|
2111
|
+
ipv4Only: "ipv4_only",
|
|
2112
|
+
ipv6Only: "ipv6_only",
|
|
2113
|
+
}))),
|
|
2114
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
2115
|
+
}).pipe(Schema.encodeKeys({
|
|
2116
|
+
zoneId: "zone_id",
|
|
2117
|
+
name: "name",
|
|
2118
|
+
ttl: "ttl",
|
|
2119
|
+
type: "type",
|
|
2120
|
+
comment: "comment",
|
|
2121
|
+
data: "data",
|
|
2122
|
+
proxied: "proxied",
|
|
2123
|
+
settings: "settings",
|
|
2124
|
+
tags: "tags",
|
|
2125
|
+
})),
|
|
2126
|
+
Schema.Struct({
|
|
2127
|
+
zoneId: Schema.String,
|
|
2128
|
+
name: Schema.String,
|
|
2129
|
+
ttl: Schema.Number,
|
|
2130
|
+
type: Schema.Literal("CERT"),
|
|
2131
|
+
comment: Schema.optional(Schema.String),
|
|
2132
|
+
data: Schema.optional(Schema.Struct({
|
|
2133
|
+
algorithm: Schema.optional(Schema.Number),
|
|
2134
|
+
certificate: Schema.optional(Schema.String),
|
|
2135
|
+
keyTag: Schema.optional(Schema.Number),
|
|
2136
|
+
type: Schema.optional(Schema.Number),
|
|
2137
|
+
}).pipe(Schema.encodeKeys({
|
|
2138
|
+
algorithm: "algorithm",
|
|
2139
|
+
certificate: "certificate",
|
|
2140
|
+
keyTag: "key_tag",
|
|
2141
|
+
type: "type",
|
|
2142
|
+
}))),
|
|
2143
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
2144
|
+
settings: Schema.optional(Schema.Struct({
|
|
2145
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
2146
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
2147
|
+
}).pipe(Schema.encodeKeys({
|
|
2148
|
+
ipv4Only: "ipv4_only",
|
|
2149
|
+
ipv6Only: "ipv6_only",
|
|
2150
|
+
}))),
|
|
2151
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
2152
|
+
}).pipe(Schema.encodeKeys({
|
|
2153
|
+
zoneId: "zone_id",
|
|
2154
|
+
name: "name",
|
|
2155
|
+
ttl: "ttl",
|
|
2156
|
+
type: "type",
|
|
2157
|
+
comment: "comment",
|
|
2158
|
+
data: "data",
|
|
2159
|
+
proxied: "proxied",
|
|
2160
|
+
settings: "settings",
|
|
2161
|
+
tags: "tags",
|
|
2162
|
+
})),
|
|
2163
|
+
Schema.Struct({
|
|
2164
|
+
zoneId: Schema.String,
|
|
2165
|
+
name: Schema.String,
|
|
2166
|
+
ttl: Schema.Number,
|
|
2167
|
+
type: Schema.Literal("DNSKEY"),
|
|
2168
|
+
comment: Schema.optional(Schema.String),
|
|
2169
|
+
data: Schema.optional(Schema.Struct({
|
|
2170
|
+
algorithm: Schema.optional(Schema.Number),
|
|
2171
|
+
flags: Schema.optional(Schema.Number),
|
|
2172
|
+
protocol: Schema.optional(Schema.Number),
|
|
2173
|
+
publicKey: Schema.optional(Schema.String),
|
|
2174
|
+
}).pipe(Schema.encodeKeys({
|
|
2175
|
+
algorithm: "algorithm",
|
|
2176
|
+
flags: "flags",
|
|
2177
|
+
protocol: "protocol",
|
|
2178
|
+
publicKey: "public_key",
|
|
2179
|
+
}))),
|
|
2180
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
2181
|
+
settings: Schema.optional(Schema.Struct({
|
|
2182
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
2183
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
2184
|
+
}).pipe(Schema.encodeKeys({
|
|
2185
|
+
ipv4Only: "ipv4_only",
|
|
2186
|
+
ipv6Only: "ipv6_only",
|
|
2187
|
+
}))),
|
|
2188
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
2189
|
+
}).pipe(Schema.encodeKeys({
|
|
2190
|
+
zoneId: "zone_id",
|
|
2191
|
+
name: "name",
|
|
2192
|
+
ttl: "ttl",
|
|
2193
|
+
type: "type",
|
|
2194
|
+
comment: "comment",
|
|
2195
|
+
data: "data",
|
|
2196
|
+
proxied: "proxied",
|
|
2197
|
+
settings: "settings",
|
|
2198
|
+
tags: "tags",
|
|
2199
|
+
})),
|
|
2200
|
+
Schema.Struct({
|
|
2201
|
+
zoneId: Schema.String,
|
|
2202
|
+
name: Schema.String,
|
|
2203
|
+
ttl: Schema.Number,
|
|
2204
|
+
type: Schema.Literal("DS"),
|
|
2205
|
+
comment: Schema.optional(Schema.String),
|
|
2206
|
+
data: Schema.optional(Schema.Struct({
|
|
2207
|
+
algorithm: Schema.optional(Schema.Number),
|
|
2208
|
+
digest: Schema.optional(Schema.String),
|
|
2209
|
+
digestType: Schema.optional(Schema.Number),
|
|
2210
|
+
keyTag: Schema.optional(Schema.Number),
|
|
2211
|
+
}).pipe(Schema.encodeKeys({
|
|
2212
|
+
algorithm: "algorithm",
|
|
2213
|
+
digest: "digest",
|
|
2214
|
+
digestType: "digest_type",
|
|
2215
|
+
keyTag: "key_tag",
|
|
2216
|
+
}))),
|
|
2217
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
2218
|
+
settings: Schema.optional(Schema.Struct({
|
|
2219
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
2220
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
2221
|
+
}).pipe(Schema.encodeKeys({
|
|
2222
|
+
ipv4Only: "ipv4_only",
|
|
2223
|
+
ipv6Only: "ipv6_only",
|
|
2224
|
+
}))),
|
|
2225
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
2226
|
+
}).pipe(Schema.encodeKeys({
|
|
2227
|
+
zoneId: "zone_id",
|
|
2228
|
+
name: "name",
|
|
2229
|
+
ttl: "ttl",
|
|
2230
|
+
type: "type",
|
|
2231
|
+
comment: "comment",
|
|
2232
|
+
data: "data",
|
|
2233
|
+
proxied: "proxied",
|
|
2234
|
+
settings: "settings",
|
|
2235
|
+
tags: "tags",
|
|
2236
|
+
})),
|
|
2237
|
+
Schema.Struct({
|
|
2238
|
+
zoneId: Schema.String,
|
|
2239
|
+
name: Schema.String,
|
|
2240
|
+
ttl: Schema.Number,
|
|
2241
|
+
type: Schema.Literal("HTTPS"),
|
|
2242
|
+
comment: Schema.optional(Schema.String),
|
|
2243
|
+
data: Schema.optional(Schema.Struct({
|
|
2244
|
+
priority: Schema.optional(Schema.Number),
|
|
2245
|
+
target: Schema.optional(Schema.String),
|
|
2246
|
+
value: Schema.optional(Schema.String),
|
|
2247
|
+
})),
|
|
2248
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
2249
|
+
settings: Schema.optional(Schema.Struct({
|
|
2250
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
2251
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
2252
|
+
}).pipe(Schema.encodeKeys({
|
|
2253
|
+
ipv4Only: "ipv4_only",
|
|
2254
|
+
ipv6Only: "ipv6_only",
|
|
2255
|
+
}))),
|
|
2256
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
2257
|
+
}).pipe(Schema.encodeKeys({
|
|
2258
|
+
zoneId: "zone_id",
|
|
2259
|
+
name: "name",
|
|
2260
|
+
ttl: "ttl",
|
|
2261
|
+
type: "type",
|
|
2262
|
+
comment: "comment",
|
|
2263
|
+
data: "data",
|
|
2264
|
+
proxied: "proxied",
|
|
2265
|
+
settings: "settings",
|
|
2266
|
+
tags: "tags",
|
|
2267
|
+
})),
|
|
2268
|
+
Schema.Struct({
|
|
2269
|
+
zoneId: Schema.String,
|
|
2270
|
+
name: Schema.String,
|
|
2271
|
+
ttl: Schema.Number,
|
|
2272
|
+
type: Schema.Literal("LOC"),
|
|
2273
|
+
comment: Schema.optional(Schema.String),
|
|
2274
|
+
data: Schema.optional(Schema.Struct({
|
|
2275
|
+
altitude: Schema.optional(Schema.Number),
|
|
2276
|
+
latDegrees: Schema.optional(Schema.Number),
|
|
2277
|
+
latDirection: Schema.optional(Schema.Literals(["N", "S"])),
|
|
2278
|
+
latMinutes: Schema.optional(Schema.Number),
|
|
2279
|
+
latSeconds: Schema.optional(Schema.Number),
|
|
2280
|
+
longDegrees: Schema.optional(Schema.Number),
|
|
2281
|
+
longDirection: Schema.optional(Schema.Literals(["E", "W"])),
|
|
2282
|
+
longMinutes: Schema.optional(Schema.Number),
|
|
2283
|
+
longSeconds: Schema.optional(Schema.Number),
|
|
2284
|
+
precisionHorz: Schema.optional(Schema.Number),
|
|
2285
|
+
precisionVert: Schema.optional(Schema.Number),
|
|
2286
|
+
size: Schema.optional(Schema.Number),
|
|
2287
|
+
}).pipe(Schema.encodeKeys({
|
|
2288
|
+
altitude: "altitude",
|
|
2289
|
+
latDegrees: "lat_degrees",
|
|
2290
|
+
latDirection: "lat_direction",
|
|
2291
|
+
latMinutes: "lat_minutes",
|
|
2292
|
+
latSeconds: "lat_seconds",
|
|
2293
|
+
longDegrees: "long_degrees",
|
|
2294
|
+
longDirection: "long_direction",
|
|
2295
|
+
longMinutes: "long_minutes",
|
|
2296
|
+
longSeconds: "long_seconds",
|
|
2297
|
+
precisionHorz: "precision_horz",
|
|
2298
|
+
precisionVert: "precision_vert",
|
|
2299
|
+
size: "size",
|
|
2300
|
+
}))),
|
|
2301
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
2302
|
+
settings: Schema.optional(Schema.Struct({
|
|
2303
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
2304
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
2305
|
+
}).pipe(Schema.encodeKeys({
|
|
2306
|
+
ipv4Only: "ipv4_only",
|
|
2307
|
+
ipv6Only: "ipv6_only",
|
|
2308
|
+
}))),
|
|
2309
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
2310
|
+
}).pipe(Schema.encodeKeys({
|
|
2311
|
+
zoneId: "zone_id",
|
|
2312
|
+
name: "name",
|
|
2313
|
+
ttl: "ttl",
|
|
2314
|
+
type: "type",
|
|
2315
|
+
comment: "comment",
|
|
2316
|
+
data: "data",
|
|
2317
|
+
proxied: "proxied",
|
|
2318
|
+
settings: "settings",
|
|
2319
|
+
tags: "tags",
|
|
2320
|
+
})),
|
|
2321
|
+
Schema.Struct({
|
|
2322
|
+
zoneId: Schema.String,
|
|
2323
|
+
name: Schema.String,
|
|
2324
|
+
ttl: Schema.Number,
|
|
2325
|
+
type: Schema.Literal("NAPTR"),
|
|
2326
|
+
comment: Schema.optional(Schema.String),
|
|
2327
|
+
data: Schema.optional(Schema.Struct({
|
|
2328
|
+
flags: Schema.optional(Schema.String),
|
|
2329
|
+
order: Schema.optional(Schema.Number),
|
|
2330
|
+
preference: Schema.optional(Schema.Number),
|
|
2331
|
+
regex: Schema.optional(Schema.String),
|
|
2332
|
+
replacement: Schema.optional(Schema.String),
|
|
2333
|
+
service: Schema.optional(Schema.String),
|
|
2334
|
+
})),
|
|
2335
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
2336
|
+
settings: Schema.optional(Schema.Struct({
|
|
2337
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
2338
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
2339
|
+
}).pipe(Schema.encodeKeys({
|
|
2340
|
+
ipv4Only: "ipv4_only",
|
|
2341
|
+
ipv6Only: "ipv6_only",
|
|
2342
|
+
}))),
|
|
2343
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
2344
|
+
}).pipe(Schema.encodeKeys({
|
|
2345
|
+
zoneId: "zone_id",
|
|
2346
|
+
name: "name",
|
|
2347
|
+
ttl: "ttl",
|
|
2348
|
+
type: "type",
|
|
2349
|
+
comment: "comment",
|
|
2350
|
+
data: "data",
|
|
2351
|
+
proxied: "proxied",
|
|
2352
|
+
settings: "settings",
|
|
2353
|
+
tags: "tags",
|
|
2354
|
+
})),
|
|
2355
|
+
Schema.Struct({
|
|
2356
|
+
zoneId: Schema.String,
|
|
2357
|
+
name: Schema.String,
|
|
2358
|
+
ttl: Schema.Number,
|
|
2359
|
+
type: Schema.Literal("SMIMEA"),
|
|
2360
|
+
comment: Schema.optional(Schema.String),
|
|
2361
|
+
data: Schema.optional(Schema.Struct({
|
|
2362
|
+
certificate: Schema.optional(Schema.String),
|
|
2363
|
+
matchingType: Schema.optional(Schema.Number),
|
|
2364
|
+
selector: Schema.optional(Schema.Number),
|
|
2365
|
+
usage: Schema.optional(Schema.Number),
|
|
2366
|
+
}).pipe(Schema.encodeKeys({
|
|
2367
|
+
certificate: "certificate",
|
|
2368
|
+
matchingType: "matching_type",
|
|
2369
|
+
selector: "selector",
|
|
2370
|
+
usage: "usage",
|
|
2371
|
+
}))),
|
|
2372
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
2373
|
+
settings: Schema.optional(Schema.Struct({
|
|
2374
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
2375
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
2376
|
+
}).pipe(Schema.encodeKeys({
|
|
2377
|
+
ipv4Only: "ipv4_only",
|
|
2378
|
+
ipv6Only: "ipv6_only",
|
|
2379
|
+
}))),
|
|
2380
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
2381
|
+
}).pipe(Schema.encodeKeys({
|
|
2382
|
+
zoneId: "zone_id",
|
|
2383
|
+
name: "name",
|
|
2384
|
+
ttl: "ttl",
|
|
2385
|
+
type: "type",
|
|
2386
|
+
comment: "comment",
|
|
2387
|
+
data: "data",
|
|
2388
|
+
proxied: "proxied",
|
|
2389
|
+
settings: "settings",
|
|
2390
|
+
tags: "tags",
|
|
2391
|
+
})),
|
|
2392
|
+
Schema.Struct({
|
|
2393
|
+
zoneId: Schema.String,
|
|
2394
|
+
name: Schema.String,
|
|
2395
|
+
ttl: Schema.Number,
|
|
2396
|
+
type: Schema.Literal("SRV"),
|
|
2397
|
+
comment: Schema.optional(Schema.String),
|
|
2398
|
+
data: Schema.optional(Schema.Struct({
|
|
2399
|
+
port: Schema.optional(Schema.Number),
|
|
2400
|
+
priority: Schema.optional(Schema.Number),
|
|
2401
|
+
target: Schema.optional(Schema.String),
|
|
2402
|
+
weight: Schema.optional(Schema.Number),
|
|
2403
|
+
})),
|
|
2404
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
2405
|
+
settings: Schema.optional(Schema.Struct({
|
|
2406
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
2407
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
2408
|
+
}).pipe(Schema.encodeKeys({
|
|
2409
|
+
ipv4Only: "ipv4_only",
|
|
2410
|
+
ipv6Only: "ipv6_only",
|
|
2411
|
+
}))),
|
|
2412
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
2413
|
+
}).pipe(Schema.encodeKeys({
|
|
2414
|
+
zoneId: "zone_id",
|
|
2415
|
+
name: "name",
|
|
2416
|
+
ttl: "ttl",
|
|
2417
|
+
type: "type",
|
|
2418
|
+
comment: "comment",
|
|
2419
|
+
data: "data",
|
|
2420
|
+
proxied: "proxied",
|
|
2421
|
+
settings: "settings",
|
|
2422
|
+
tags: "tags",
|
|
2423
|
+
})),
|
|
2424
|
+
Schema.Struct({
|
|
2425
|
+
zoneId: Schema.String,
|
|
2426
|
+
name: Schema.String,
|
|
2427
|
+
ttl: Schema.Number,
|
|
2428
|
+
type: Schema.Literal("SSHFP"),
|
|
2429
|
+
comment: Schema.optional(Schema.String),
|
|
2430
|
+
data: Schema.optional(Schema.Struct({
|
|
2431
|
+
algorithm: Schema.optional(Schema.Number),
|
|
2432
|
+
fingerprint: Schema.optional(Schema.String),
|
|
2433
|
+
type: Schema.optional(Schema.Number),
|
|
2434
|
+
})),
|
|
2435
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
2436
|
+
settings: Schema.optional(Schema.Struct({
|
|
2437
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
2438
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
2439
|
+
}).pipe(Schema.encodeKeys({
|
|
2440
|
+
ipv4Only: "ipv4_only",
|
|
2441
|
+
ipv6Only: "ipv6_only",
|
|
2442
|
+
}))),
|
|
2443
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
2444
|
+
}).pipe(Schema.encodeKeys({
|
|
2445
|
+
zoneId: "zone_id",
|
|
2446
|
+
name: "name",
|
|
2447
|
+
ttl: "ttl",
|
|
2448
|
+
type: "type",
|
|
2449
|
+
comment: "comment",
|
|
2450
|
+
data: "data",
|
|
2451
|
+
proxied: "proxied",
|
|
2452
|
+
settings: "settings",
|
|
2453
|
+
tags: "tags",
|
|
2454
|
+
})),
|
|
2455
|
+
Schema.Struct({
|
|
2456
|
+
zoneId: Schema.String,
|
|
2457
|
+
name: Schema.String,
|
|
2458
|
+
ttl: Schema.Number,
|
|
2459
|
+
type: Schema.Literal("SVCB"),
|
|
2460
|
+
comment: Schema.optional(Schema.String),
|
|
2461
|
+
data: Schema.optional(Schema.Struct({
|
|
2462
|
+
priority: Schema.optional(Schema.Number),
|
|
2463
|
+
target: Schema.optional(Schema.String),
|
|
2464
|
+
value: Schema.optional(Schema.String),
|
|
2465
|
+
})),
|
|
2466
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
2467
|
+
settings: Schema.optional(Schema.Struct({
|
|
2468
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
2469
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
2470
|
+
}).pipe(Schema.encodeKeys({
|
|
2471
|
+
ipv4Only: "ipv4_only",
|
|
2472
|
+
ipv6Only: "ipv6_only",
|
|
2473
|
+
}))),
|
|
2474
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
2475
|
+
}).pipe(Schema.encodeKeys({
|
|
2476
|
+
zoneId: "zone_id",
|
|
2477
|
+
name: "name",
|
|
2478
|
+
ttl: "ttl",
|
|
2479
|
+
type: "type",
|
|
2480
|
+
comment: "comment",
|
|
2481
|
+
data: "data",
|
|
2482
|
+
proxied: "proxied",
|
|
2483
|
+
settings: "settings",
|
|
2484
|
+
tags: "tags",
|
|
2485
|
+
})),
|
|
2486
|
+
Schema.Struct({
|
|
2487
|
+
zoneId: Schema.String,
|
|
2488
|
+
name: Schema.String,
|
|
2489
|
+
ttl: Schema.Number,
|
|
2490
|
+
type: Schema.Literal("TLSA"),
|
|
2491
|
+
comment: Schema.optional(Schema.String),
|
|
2492
|
+
data: Schema.optional(Schema.Struct({
|
|
2493
|
+
certificate: Schema.optional(Schema.String),
|
|
2494
|
+
matchingType: Schema.optional(Schema.Number),
|
|
2495
|
+
selector: Schema.optional(Schema.Number),
|
|
2496
|
+
usage: Schema.optional(Schema.Number),
|
|
2497
|
+
}).pipe(Schema.encodeKeys({
|
|
2498
|
+
certificate: "certificate",
|
|
2499
|
+
matchingType: "matching_type",
|
|
2500
|
+
selector: "selector",
|
|
2501
|
+
usage: "usage",
|
|
2502
|
+
}))),
|
|
2503
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
2504
|
+
settings: Schema.optional(Schema.Struct({
|
|
2505
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
2506
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
2507
|
+
}).pipe(Schema.encodeKeys({
|
|
2508
|
+
ipv4Only: "ipv4_only",
|
|
2509
|
+
ipv6Only: "ipv6_only",
|
|
2510
|
+
}))),
|
|
2511
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
2512
|
+
}).pipe(Schema.encodeKeys({
|
|
2513
|
+
zoneId: "zone_id",
|
|
2514
|
+
name: "name",
|
|
2515
|
+
ttl: "ttl",
|
|
2516
|
+
type: "type",
|
|
2517
|
+
comment: "comment",
|
|
2518
|
+
data: "data",
|
|
2519
|
+
proxied: "proxied",
|
|
2520
|
+
settings: "settings",
|
|
2521
|
+
tags: "tags",
|
|
2522
|
+
})),
|
|
2523
|
+
Schema.Struct({
|
|
2524
|
+
zoneId: Schema.String,
|
|
2525
|
+
name: Schema.String,
|
|
2526
|
+
ttl: Schema.Number,
|
|
2527
|
+
type: Schema.Literal("URI"),
|
|
2528
|
+
comment: Schema.optional(Schema.String),
|
|
2529
|
+
data: Schema.optional(Schema.Struct({
|
|
2530
|
+
target: Schema.optional(Schema.String),
|
|
2531
|
+
weight: Schema.optional(Schema.Number),
|
|
2532
|
+
})),
|
|
2533
|
+
priority: Schema.optional(Schema.Number),
|
|
2534
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
2535
|
+
settings: Schema.optional(Schema.Struct({
|
|
2536
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
2537
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
2538
|
+
}).pipe(Schema.encodeKeys({
|
|
2539
|
+
ipv4Only: "ipv4_only",
|
|
2540
|
+
ipv6Only: "ipv6_only",
|
|
2541
|
+
}))),
|
|
2542
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
2543
|
+
}).pipe(Schema.encodeKeys({
|
|
2544
|
+
zoneId: "zone_id",
|
|
2545
|
+
name: "name",
|
|
2546
|
+
ttl: "ttl",
|
|
2547
|
+
type: "type",
|
|
2548
|
+
comment: "comment",
|
|
2549
|
+
data: "data",
|
|
2550
|
+
priority: "priority",
|
|
2551
|
+
proxied: "proxied",
|
|
2552
|
+
settings: "settings",
|
|
2553
|
+
tags: "tags",
|
|
2554
|
+
})),
|
|
2555
|
+
]))),
|
|
2556
|
+
}).pipe(T.Http({ method: "POST", path: "/zones/{zone_id}/dns_records/batch" }));
|
|
2557
|
+
export const BatchRecordResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2558
|
+
deletes: Schema.optional(Schema.Union([
|
|
2559
|
+
Schema.Array(Schema.Union([
|
|
2560
|
+
Schema.Struct({
|
|
2561
|
+
id: Schema.String,
|
|
2562
|
+
createdOn: Schema.String,
|
|
2563
|
+
meta: Schema.Unknown,
|
|
2564
|
+
modifiedOn: Schema.String,
|
|
2565
|
+
proxiable: Schema.Boolean,
|
|
2566
|
+
commentModifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2567
|
+
tagsModifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2568
|
+
}).pipe(Schema.encodeKeys({
|
|
2569
|
+
id: "id",
|
|
2570
|
+
createdOn: "created_on",
|
|
2571
|
+
meta: "meta",
|
|
2572
|
+
modifiedOn: "modified_on",
|
|
2573
|
+
proxiable: "proxiable",
|
|
2574
|
+
commentModifiedOn: "comment_modified_on",
|
|
2575
|
+
tagsModifiedOn: "tags_modified_on",
|
|
2576
|
+
})),
|
|
2577
|
+
Schema.Struct({
|
|
2578
|
+
id: Schema.String,
|
|
2579
|
+
comment: Schema.String,
|
|
2580
|
+
content: Schema.String,
|
|
2581
|
+
createdOn: Schema.String,
|
|
2582
|
+
meta: Schema.Unknown,
|
|
2583
|
+
modifiedOn: Schema.String,
|
|
2584
|
+
name: Schema.String,
|
|
2585
|
+
proxiable: Schema.Boolean,
|
|
2586
|
+
proxied: Schema.Boolean,
|
|
2587
|
+
settings: Schema.Struct({
|
|
2588
|
+
ipv4Only: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2589
|
+
ipv6Only: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2590
|
+
}).pipe(Schema.encodeKeys({
|
|
2591
|
+
ipv4Only: "ipv4_only",
|
|
2592
|
+
ipv6Only: "ipv6_only",
|
|
2593
|
+
})),
|
|
2594
|
+
tags: Schema.Array(Schema.String),
|
|
2595
|
+
ttl: Schema.Number,
|
|
2596
|
+
type: Schema.Literal("OPENPGPKEY"),
|
|
2597
|
+
commentModifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2598
|
+
tagsModifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2599
|
+
}).pipe(Schema.encodeKeys({
|
|
2600
|
+
id: "id",
|
|
2601
|
+
comment: "comment",
|
|
2602
|
+
content: "content",
|
|
2603
|
+
createdOn: "created_on",
|
|
2604
|
+
meta: "meta",
|
|
2605
|
+
modifiedOn: "modified_on",
|
|
2606
|
+
name: "name",
|
|
2607
|
+
proxiable: "proxiable",
|
|
2608
|
+
proxied: "proxied",
|
|
2609
|
+
settings: "settings",
|
|
2610
|
+
tags: "tags",
|
|
2611
|
+
ttl: "ttl",
|
|
2612
|
+
type: "type",
|
|
2613
|
+
commentModifiedOn: "comment_modified_on",
|
|
2614
|
+
tagsModifiedOn: "tags_modified_on",
|
|
2615
|
+
})),
|
|
2616
|
+
])),
|
|
2617
|
+
Schema.Null,
|
|
2618
|
+
])),
|
|
2619
|
+
patches: Schema.optional(Schema.Union([
|
|
2620
|
+
Schema.Array(Schema.Union([
|
|
2621
|
+
Schema.Struct({
|
|
2622
|
+
id: Schema.String,
|
|
2623
|
+
createdOn: Schema.String,
|
|
2624
|
+
meta: Schema.Unknown,
|
|
2625
|
+
modifiedOn: Schema.String,
|
|
2626
|
+
proxiable: Schema.Boolean,
|
|
2627
|
+
commentModifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2628
|
+
tagsModifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2629
|
+
}).pipe(Schema.encodeKeys({
|
|
2630
|
+
id: "id",
|
|
2631
|
+
createdOn: "created_on",
|
|
2632
|
+
meta: "meta",
|
|
2633
|
+
modifiedOn: "modified_on",
|
|
2634
|
+
proxiable: "proxiable",
|
|
2635
|
+
commentModifiedOn: "comment_modified_on",
|
|
2636
|
+
tagsModifiedOn: "tags_modified_on",
|
|
2637
|
+
})),
|
|
2638
|
+
Schema.Struct({
|
|
2639
|
+
id: Schema.String,
|
|
2640
|
+
comment: Schema.String,
|
|
2641
|
+
content: Schema.String,
|
|
2642
|
+
createdOn: Schema.String,
|
|
2643
|
+
meta: Schema.Unknown,
|
|
2644
|
+
modifiedOn: Schema.String,
|
|
2645
|
+
name: Schema.String,
|
|
2646
|
+
proxiable: Schema.Boolean,
|
|
2647
|
+
proxied: Schema.Boolean,
|
|
2648
|
+
settings: Schema.Struct({
|
|
2649
|
+
ipv4Only: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2650
|
+
ipv6Only: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2651
|
+
}).pipe(Schema.encodeKeys({
|
|
2652
|
+
ipv4Only: "ipv4_only",
|
|
2653
|
+
ipv6Only: "ipv6_only",
|
|
2654
|
+
})),
|
|
2655
|
+
tags: Schema.Array(Schema.String),
|
|
2656
|
+
ttl: Schema.Number,
|
|
2657
|
+
type: Schema.Literal("OPENPGPKEY"),
|
|
2658
|
+
commentModifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2659
|
+
tagsModifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2660
|
+
}).pipe(Schema.encodeKeys({
|
|
2661
|
+
id: "id",
|
|
2662
|
+
comment: "comment",
|
|
2663
|
+
content: "content",
|
|
2664
|
+
createdOn: "created_on",
|
|
2665
|
+
meta: "meta",
|
|
2666
|
+
modifiedOn: "modified_on",
|
|
2667
|
+
name: "name",
|
|
2668
|
+
proxiable: "proxiable",
|
|
2669
|
+
proxied: "proxied",
|
|
2670
|
+
settings: "settings",
|
|
2671
|
+
tags: "tags",
|
|
2672
|
+
ttl: "ttl",
|
|
2673
|
+
type: "type",
|
|
2674
|
+
commentModifiedOn: "comment_modified_on",
|
|
2675
|
+
tagsModifiedOn: "tags_modified_on",
|
|
2676
|
+
})),
|
|
2677
|
+
])),
|
|
2678
|
+
Schema.Null,
|
|
2679
|
+
])),
|
|
2680
|
+
posts: Schema.optional(Schema.Union([
|
|
2681
|
+
Schema.Array(Schema.Union([
|
|
2682
|
+
Schema.Struct({
|
|
2683
|
+
id: Schema.String,
|
|
2684
|
+
createdOn: Schema.String,
|
|
2685
|
+
meta: Schema.Unknown,
|
|
2686
|
+
modifiedOn: Schema.String,
|
|
2687
|
+
proxiable: Schema.Boolean,
|
|
2688
|
+
commentModifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2689
|
+
tagsModifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2690
|
+
}).pipe(Schema.encodeKeys({
|
|
2691
|
+
id: "id",
|
|
2692
|
+
createdOn: "created_on",
|
|
2693
|
+
meta: "meta",
|
|
2694
|
+
modifiedOn: "modified_on",
|
|
2695
|
+
proxiable: "proxiable",
|
|
2696
|
+
commentModifiedOn: "comment_modified_on",
|
|
2697
|
+
tagsModifiedOn: "tags_modified_on",
|
|
2698
|
+
})),
|
|
2699
|
+
Schema.Struct({
|
|
2700
|
+
id: Schema.String,
|
|
2701
|
+
comment: Schema.String,
|
|
2702
|
+
content: Schema.String,
|
|
2703
|
+
createdOn: Schema.String,
|
|
2704
|
+
meta: Schema.Unknown,
|
|
2705
|
+
modifiedOn: Schema.String,
|
|
2706
|
+
name: Schema.String,
|
|
2707
|
+
proxiable: Schema.Boolean,
|
|
2708
|
+
proxied: Schema.Boolean,
|
|
2709
|
+
settings: Schema.Struct({
|
|
2710
|
+
ipv4Only: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2711
|
+
ipv6Only: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2712
|
+
}).pipe(Schema.encodeKeys({
|
|
2713
|
+
ipv4Only: "ipv4_only",
|
|
2714
|
+
ipv6Only: "ipv6_only",
|
|
2715
|
+
})),
|
|
2716
|
+
tags: Schema.Array(Schema.String),
|
|
2717
|
+
ttl: Schema.Number,
|
|
2718
|
+
type: Schema.Literal("OPENPGPKEY"),
|
|
2719
|
+
commentModifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2720
|
+
tagsModifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2721
|
+
}).pipe(Schema.encodeKeys({
|
|
2722
|
+
id: "id",
|
|
2723
|
+
comment: "comment",
|
|
2724
|
+
content: "content",
|
|
2725
|
+
createdOn: "created_on",
|
|
2726
|
+
meta: "meta",
|
|
2727
|
+
modifiedOn: "modified_on",
|
|
2728
|
+
name: "name",
|
|
2729
|
+
proxiable: "proxiable",
|
|
2730
|
+
proxied: "proxied",
|
|
2731
|
+
settings: "settings",
|
|
2732
|
+
tags: "tags",
|
|
2733
|
+
ttl: "ttl",
|
|
2734
|
+
type: "type",
|
|
2735
|
+
commentModifiedOn: "comment_modified_on",
|
|
2736
|
+
tagsModifiedOn: "tags_modified_on",
|
|
2737
|
+
})),
|
|
2738
|
+
])),
|
|
2739
|
+
Schema.Null,
|
|
2740
|
+
])),
|
|
2741
|
+
puts: Schema.optional(Schema.Union([
|
|
2742
|
+
Schema.Array(Schema.Union([
|
|
2743
|
+
Schema.Struct({
|
|
2744
|
+
id: Schema.String,
|
|
2745
|
+
createdOn: Schema.String,
|
|
2746
|
+
meta: Schema.Unknown,
|
|
2747
|
+
modifiedOn: Schema.String,
|
|
2748
|
+
proxiable: Schema.Boolean,
|
|
2749
|
+
commentModifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2750
|
+
tagsModifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2751
|
+
}).pipe(Schema.encodeKeys({
|
|
2752
|
+
id: "id",
|
|
2753
|
+
createdOn: "created_on",
|
|
2754
|
+
meta: "meta",
|
|
2755
|
+
modifiedOn: "modified_on",
|
|
2756
|
+
proxiable: "proxiable",
|
|
2757
|
+
commentModifiedOn: "comment_modified_on",
|
|
2758
|
+
tagsModifiedOn: "tags_modified_on",
|
|
2759
|
+
})),
|
|
2760
|
+
Schema.Struct({
|
|
2761
|
+
id: Schema.String,
|
|
2762
|
+
comment: Schema.String,
|
|
2763
|
+
content: Schema.String,
|
|
2764
|
+
createdOn: Schema.String,
|
|
2765
|
+
meta: Schema.Unknown,
|
|
2766
|
+
modifiedOn: Schema.String,
|
|
2767
|
+
name: Schema.String,
|
|
2768
|
+
proxiable: Schema.Boolean,
|
|
2769
|
+
proxied: Schema.Boolean,
|
|
2770
|
+
settings: Schema.Struct({
|
|
2771
|
+
ipv4Only: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2772
|
+
ipv6Only: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2773
|
+
}).pipe(Schema.encodeKeys({
|
|
2774
|
+
ipv4Only: "ipv4_only",
|
|
2775
|
+
ipv6Only: "ipv6_only",
|
|
2776
|
+
})),
|
|
2777
|
+
tags: Schema.Array(Schema.String),
|
|
2778
|
+
ttl: Schema.Number,
|
|
2779
|
+
type: Schema.Literal("OPENPGPKEY"),
|
|
2780
|
+
commentModifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2781
|
+
tagsModifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2782
|
+
}).pipe(Schema.encodeKeys({
|
|
2783
|
+
id: "id",
|
|
2784
|
+
comment: "comment",
|
|
2785
|
+
content: "content",
|
|
2786
|
+
createdOn: "created_on",
|
|
2787
|
+
meta: "meta",
|
|
2788
|
+
modifiedOn: "modified_on",
|
|
2789
|
+
name: "name",
|
|
2790
|
+
proxiable: "proxiable",
|
|
2791
|
+
proxied: "proxied",
|
|
2792
|
+
settings: "settings",
|
|
2793
|
+
tags: "tags",
|
|
2794
|
+
ttl: "ttl",
|
|
2795
|
+
type: "type",
|
|
2796
|
+
commentModifiedOn: "comment_modified_on",
|
|
2797
|
+
tagsModifiedOn: "tags_modified_on",
|
|
2798
|
+
})),
|
|
2799
|
+
])),
|
|
2800
|
+
Schema.Null,
|
|
2801
|
+
])),
|
|
2802
|
+
});
|
|
2803
|
+
export const batchRecord = API.make(() => ({
|
|
2804
|
+
input: BatchRecordRequest,
|
|
2805
|
+
output: BatchRecordResponse,
|
|
2806
|
+
errors: [],
|
|
2807
|
+
}));
|
|
2808
|
+
export const ExportRecordRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2809
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
2810
|
+
}).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/dns_records/export" }));
|
|
2811
|
+
export const ExportRecordResponse =
|
|
2812
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
|
|
2813
|
+
export const exportRecord = API.make(() => ({
|
|
2814
|
+
input: ExportRecordRequest,
|
|
2815
|
+
output: ExportRecordResponse,
|
|
2816
|
+
errors: [],
|
|
2817
|
+
}));
|
|
2818
|
+
export const ImportRecordRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2819
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
2820
|
+
file: Schema.String,
|
|
2821
|
+
proxied: Schema.optional(Schema.String),
|
|
2822
|
+
}).pipe(T.Http({
|
|
2823
|
+
method: "POST",
|
|
2824
|
+
path: "/zones/{zone_id}/dns_records/import",
|
|
2825
|
+
contentType: "multipart",
|
|
2826
|
+
}));
|
|
2827
|
+
export const ImportRecordResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2828
|
+
recsAdded: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2829
|
+
totalRecordsParsed: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2830
|
+
}).pipe(Schema.encodeKeys({
|
|
2831
|
+
recsAdded: "recs_added",
|
|
2832
|
+
totalRecordsParsed: "total_records_parsed",
|
|
2833
|
+
}));
|
|
2834
|
+
export const importRecord = API.make(() => ({
|
|
2835
|
+
input: ImportRecordRequest,
|
|
2836
|
+
output: ImportRecordResponse,
|
|
2837
|
+
errors: [],
|
|
2838
|
+
}));
|
|
2839
|
+
export const ScanRecordRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2840
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
2841
|
+
body: Schema.Unknown.pipe(T.HttpBody()),
|
|
2842
|
+
}).pipe(T.Http({ method: "POST", path: "/zones/{zone_id}/dns_records/scan" }));
|
|
2843
|
+
export const ScanRecordResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2844
|
+
recsAdded: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2845
|
+
totalRecordsParsed: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2846
|
+
}).pipe(Schema.encodeKeys({
|
|
2847
|
+
recsAdded: "recs_added",
|
|
2848
|
+
totalRecordsParsed: "total_records_parsed",
|
|
2849
|
+
}));
|
|
2850
|
+
export const scanRecord = API.make(() => ({
|
|
2851
|
+
input: ScanRecordRequest,
|
|
2852
|
+
output: ScanRecordResponse,
|
|
2853
|
+
errors: [],
|
|
2854
|
+
}));
|
|
2855
|
+
export const ScanReviewRecordRequest =
|
|
2856
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2857
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
2858
|
+
accepts: Schema.optional(Schema.Array(Schema.Union([
|
|
2859
|
+
Schema.Struct({
|
|
2860
|
+
name: Schema.String,
|
|
2861
|
+
ttl: Schema.Number,
|
|
2862
|
+
type: Schema.Literal("A"),
|
|
2863
|
+
comment: Schema.optional(Schema.String),
|
|
2864
|
+
content: Schema.optional(Schema.String),
|
|
2865
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
2866
|
+
settings: Schema.optional(Schema.Struct({
|
|
2867
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
2868
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
2869
|
+
}).pipe(Schema.encodeKeys({
|
|
2870
|
+
ipv4Only: "ipv4_only",
|
|
2871
|
+
ipv6Only: "ipv6_only",
|
|
2872
|
+
}))),
|
|
2873
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
2874
|
+
}),
|
|
2875
|
+
Schema.Struct({
|
|
2876
|
+
name: Schema.String,
|
|
2877
|
+
ttl: Schema.Number,
|
|
2878
|
+
type: Schema.Literal("AAAA"),
|
|
2879
|
+
comment: Schema.optional(Schema.String),
|
|
2880
|
+
content: Schema.optional(Schema.String),
|
|
2881
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
2882
|
+
settings: Schema.optional(Schema.Struct({
|
|
2883
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
2884
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
2885
|
+
}).pipe(Schema.encodeKeys({
|
|
2886
|
+
ipv4Only: "ipv4_only",
|
|
2887
|
+
ipv6Only: "ipv6_only",
|
|
2888
|
+
}))),
|
|
2889
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
2890
|
+
}),
|
|
2891
|
+
Schema.Struct({
|
|
2892
|
+
name: Schema.String,
|
|
2893
|
+
ttl: Schema.Number,
|
|
2894
|
+
type: Schema.Literal("CNAME"),
|
|
2895
|
+
comment: Schema.optional(Schema.String),
|
|
2896
|
+
content: Schema.optional(Schema.String),
|
|
2897
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
2898
|
+
settings: Schema.optional(Schema.Struct({
|
|
2899
|
+
flattenCname: Schema.optional(Schema.Boolean),
|
|
2900
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
2901
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
2902
|
+
}).pipe(Schema.encodeKeys({
|
|
2903
|
+
flattenCname: "flatten_cname",
|
|
2904
|
+
ipv4Only: "ipv4_only",
|
|
2905
|
+
ipv6Only: "ipv6_only",
|
|
2906
|
+
}))),
|
|
2907
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
2908
|
+
}),
|
|
2909
|
+
Schema.Struct({
|
|
2910
|
+
name: Schema.String,
|
|
2911
|
+
ttl: Schema.Number,
|
|
2912
|
+
type: Schema.Literal("MX"),
|
|
2913
|
+
comment: Schema.optional(Schema.String),
|
|
2914
|
+
content: Schema.optional(Schema.String),
|
|
2915
|
+
priority: Schema.optional(Schema.Number),
|
|
2916
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
2917
|
+
settings: Schema.optional(Schema.Struct({
|
|
2918
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
2919
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
2920
|
+
}).pipe(Schema.encodeKeys({
|
|
2921
|
+
ipv4Only: "ipv4_only",
|
|
2922
|
+
ipv6Only: "ipv6_only",
|
|
2923
|
+
}))),
|
|
2924
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
2925
|
+
}),
|
|
2926
|
+
Schema.Struct({
|
|
2927
|
+
name: Schema.String,
|
|
2928
|
+
ttl: Schema.Number,
|
|
2929
|
+
type: Schema.Literal("NS"),
|
|
2930
|
+
comment: Schema.optional(Schema.String),
|
|
2931
|
+
content: Schema.optional(Schema.String),
|
|
2932
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
2933
|
+
settings: Schema.optional(Schema.Struct({
|
|
2934
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
2935
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
2936
|
+
}).pipe(Schema.encodeKeys({
|
|
2937
|
+
ipv4Only: "ipv4_only",
|
|
2938
|
+
ipv6Only: "ipv6_only",
|
|
2939
|
+
}))),
|
|
2940
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
2941
|
+
}),
|
|
2942
|
+
Schema.Struct({
|
|
2943
|
+
name: Schema.String,
|
|
2944
|
+
ttl: Schema.Number,
|
|
2945
|
+
type: Schema.Literal("OPENPGPKEY"),
|
|
2946
|
+
comment: Schema.optional(Schema.String),
|
|
2947
|
+
content: Schema.optional(Schema.String),
|
|
2948
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
2949
|
+
settings: Schema.optional(Schema.Struct({
|
|
2950
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
2951
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
2952
|
+
}).pipe(Schema.encodeKeys({
|
|
2953
|
+
ipv4Only: "ipv4_only",
|
|
2954
|
+
ipv6Only: "ipv6_only",
|
|
2955
|
+
}))),
|
|
2956
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
2957
|
+
}),
|
|
2958
|
+
Schema.Struct({
|
|
2959
|
+
name: Schema.String,
|
|
2960
|
+
ttl: Schema.Number,
|
|
2961
|
+
type: Schema.Literal("PTR"),
|
|
2962
|
+
comment: Schema.optional(Schema.String),
|
|
2963
|
+
content: Schema.optional(Schema.String),
|
|
2964
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
2965
|
+
settings: Schema.optional(Schema.Struct({
|
|
2966
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
2967
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
2968
|
+
}).pipe(Schema.encodeKeys({
|
|
2969
|
+
ipv4Only: "ipv4_only",
|
|
2970
|
+
ipv6Only: "ipv6_only",
|
|
2971
|
+
}))),
|
|
2972
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
2973
|
+
}),
|
|
2974
|
+
Schema.Struct({
|
|
2975
|
+
name: Schema.String,
|
|
2976
|
+
ttl: Schema.Number,
|
|
2977
|
+
type: Schema.Literal("TXT"),
|
|
2978
|
+
comment: Schema.optional(Schema.String),
|
|
2979
|
+
content: Schema.optional(Schema.String),
|
|
2980
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
2981
|
+
settings: Schema.optional(Schema.Struct({
|
|
2982
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
2983
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
2984
|
+
}).pipe(Schema.encodeKeys({
|
|
2985
|
+
ipv4Only: "ipv4_only",
|
|
2986
|
+
ipv6Only: "ipv6_only",
|
|
2987
|
+
}))),
|
|
2988
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
2989
|
+
}),
|
|
2990
|
+
Schema.Struct({
|
|
2991
|
+
name: Schema.String,
|
|
2992
|
+
ttl: Schema.Number,
|
|
2993
|
+
type: Schema.Literal("CAA"),
|
|
2994
|
+
comment: Schema.optional(Schema.String),
|
|
2995
|
+
data: Schema.optional(Schema.Struct({
|
|
2996
|
+
flags: Schema.optional(Schema.Number),
|
|
2997
|
+
tag: Schema.optional(Schema.String),
|
|
2998
|
+
value: Schema.optional(Schema.String),
|
|
2999
|
+
})),
|
|
3000
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
3001
|
+
settings: Schema.optional(Schema.Struct({
|
|
3002
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
3003
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
3004
|
+
}).pipe(Schema.encodeKeys({
|
|
3005
|
+
ipv4Only: "ipv4_only",
|
|
3006
|
+
ipv6Only: "ipv6_only",
|
|
3007
|
+
}))),
|
|
3008
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
3009
|
+
}),
|
|
3010
|
+
Schema.Struct({
|
|
3011
|
+
name: Schema.String,
|
|
3012
|
+
ttl: Schema.Number,
|
|
3013
|
+
type: Schema.Literal("CERT"),
|
|
3014
|
+
comment: Schema.optional(Schema.String),
|
|
3015
|
+
data: Schema.optional(Schema.Struct({
|
|
3016
|
+
algorithm: Schema.optional(Schema.Number),
|
|
3017
|
+
certificate: Schema.optional(Schema.String),
|
|
3018
|
+
keyTag: Schema.optional(Schema.Number),
|
|
3019
|
+
type: Schema.optional(Schema.Number),
|
|
3020
|
+
}).pipe(Schema.encodeKeys({
|
|
3021
|
+
algorithm: "algorithm",
|
|
3022
|
+
certificate: "certificate",
|
|
3023
|
+
keyTag: "key_tag",
|
|
3024
|
+
type: "type",
|
|
3025
|
+
}))),
|
|
3026
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
3027
|
+
settings: Schema.optional(Schema.Struct({
|
|
3028
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
3029
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
3030
|
+
}).pipe(Schema.encodeKeys({
|
|
3031
|
+
ipv4Only: "ipv4_only",
|
|
3032
|
+
ipv6Only: "ipv6_only",
|
|
3033
|
+
}))),
|
|
3034
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
3035
|
+
}),
|
|
3036
|
+
Schema.Struct({
|
|
3037
|
+
name: Schema.String,
|
|
3038
|
+
ttl: Schema.Number,
|
|
3039
|
+
type: Schema.Literal("DNSKEY"),
|
|
3040
|
+
comment: Schema.optional(Schema.String),
|
|
3041
|
+
data: Schema.optional(Schema.Struct({
|
|
3042
|
+
algorithm: Schema.optional(Schema.Number),
|
|
3043
|
+
flags: Schema.optional(Schema.Number),
|
|
3044
|
+
protocol: Schema.optional(Schema.Number),
|
|
3045
|
+
publicKey: Schema.optional(Schema.String),
|
|
3046
|
+
}).pipe(Schema.encodeKeys({
|
|
3047
|
+
algorithm: "algorithm",
|
|
3048
|
+
flags: "flags",
|
|
3049
|
+
protocol: "protocol",
|
|
3050
|
+
publicKey: "public_key",
|
|
3051
|
+
}))),
|
|
3052
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
3053
|
+
settings: Schema.optional(Schema.Struct({
|
|
3054
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
3055
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
3056
|
+
}).pipe(Schema.encodeKeys({
|
|
3057
|
+
ipv4Only: "ipv4_only",
|
|
3058
|
+
ipv6Only: "ipv6_only",
|
|
3059
|
+
}))),
|
|
3060
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
3061
|
+
}),
|
|
3062
|
+
Schema.Struct({
|
|
3063
|
+
name: Schema.String,
|
|
3064
|
+
ttl: Schema.Number,
|
|
3065
|
+
type: Schema.Literal("DS"),
|
|
3066
|
+
comment: Schema.optional(Schema.String),
|
|
3067
|
+
data: Schema.optional(Schema.Struct({
|
|
3068
|
+
algorithm: Schema.optional(Schema.Number),
|
|
3069
|
+
digest: Schema.optional(Schema.String),
|
|
3070
|
+
digestType: Schema.optional(Schema.Number),
|
|
3071
|
+
keyTag: Schema.optional(Schema.Number),
|
|
3072
|
+
}).pipe(Schema.encodeKeys({
|
|
3073
|
+
algorithm: "algorithm",
|
|
3074
|
+
digest: "digest",
|
|
3075
|
+
digestType: "digest_type",
|
|
3076
|
+
keyTag: "key_tag",
|
|
3077
|
+
}))),
|
|
3078
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
3079
|
+
settings: Schema.optional(Schema.Struct({
|
|
3080
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
3081
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
3082
|
+
}).pipe(Schema.encodeKeys({
|
|
3083
|
+
ipv4Only: "ipv4_only",
|
|
3084
|
+
ipv6Only: "ipv6_only",
|
|
3085
|
+
}))),
|
|
3086
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
3087
|
+
}),
|
|
3088
|
+
Schema.Struct({
|
|
3089
|
+
name: Schema.String,
|
|
3090
|
+
ttl: Schema.Number,
|
|
3091
|
+
type: Schema.Literal("HTTPS"),
|
|
3092
|
+
comment: Schema.optional(Schema.String),
|
|
3093
|
+
data: Schema.optional(Schema.Struct({
|
|
3094
|
+
priority: Schema.optional(Schema.Number),
|
|
3095
|
+
target: Schema.optional(Schema.String),
|
|
3096
|
+
value: Schema.optional(Schema.String),
|
|
3097
|
+
})),
|
|
3098
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
3099
|
+
settings: Schema.optional(Schema.Struct({
|
|
3100
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
3101
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
3102
|
+
}).pipe(Schema.encodeKeys({
|
|
3103
|
+
ipv4Only: "ipv4_only",
|
|
3104
|
+
ipv6Only: "ipv6_only",
|
|
3105
|
+
}))),
|
|
3106
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
3107
|
+
}),
|
|
3108
|
+
Schema.Struct({
|
|
3109
|
+
name: Schema.String,
|
|
3110
|
+
ttl: Schema.Number,
|
|
3111
|
+
type: Schema.Literal("LOC"),
|
|
3112
|
+
comment: Schema.optional(Schema.String),
|
|
3113
|
+
data: Schema.optional(Schema.Struct({
|
|
3114
|
+
altitude: Schema.optional(Schema.Number),
|
|
3115
|
+
latDegrees: Schema.optional(Schema.Number),
|
|
3116
|
+
latDirection: Schema.optional(Schema.Literals(["N", "S"])),
|
|
3117
|
+
latMinutes: Schema.optional(Schema.Number),
|
|
3118
|
+
latSeconds: Schema.optional(Schema.Number),
|
|
3119
|
+
longDegrees: Schema.optional(Schema.Number),
|
|
3120
|
+
longDirection: Schema.optional(Schema.Literals(["E", "W"])),
|
|
3121
|
+
longMinutes: Schema.optional(Schema.Number),
|
|
3122
|
+
longSeconds: Schema.optional(Schema.Number),
|
|
3123
|
+
precisionHorz: Schema.optional(Schema.Number),
|
|
3124
|
+
precisionVert: Schema.optional(Schema.Number),
|
|
3125
|
+
size: Schema.optional(Schema.Number),
|
|
3126
|
+
}).pipe(Schema.encodeKeys({
|
|
3127
|
+
altitude: "altitude",
|
|
3128
|
+
latDegrees: "lat_degrees",
|
|
3129
|
+
latDirection: "lat_direction",
|
|
3130
|
+
latMinutes: "lat_minutes",
|
|
3131
|
+
latSeconds: "lat_seconds",
|
|
3132
|
+
longDegrees: "long_degrees",
|
|
3133
|
+
longDirection: "long_direction",
|
|
3134
|
+
longMinutes: "long_minutes",
|
|
3135
|
+
longSeconds: "long_seconds",
|
|
3136
|
+
precisionHorz: "precision_horz",
|
|
3137
|
+
precisionVert: "precision_vert",
|
|
3138
|
+
size: "size",
|
|
3139
|
+
}))),
|
|
3140
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
3141
|
+
settings: Schema.optional(Schema.Struct({
|
|
3142
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
3143
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
3144
|
+
}).pipe(Schema.encodeKeys({
|
|
3145
|
+
ipv4Only: "ipv4_only",
|
|
3146
|
+
ipv6Only: "ipv6_only",
|
|
3147
|
+
}))),
|
|
3148
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
3149
|
+
}),
|
|
3150
|
+
Schema.Struct({
|
|
3151
|
+
name: Schema.String,
|
|
3152
|
+
ttl: Schema.Number,
|
|
3153
|
+
type: Schema.Literal("NAPTR"),
|
|
3154
|
+
comment: Schema.optional(Schema.String),
|
|
3155
|
+
data: Schema.optional(Schema.Struct({
|
|
3156
|
+
flags: Schema.optional(Schema.String),
|
|
3157
|
+
order: Schema.optional(Schema.Number),
|
|
3158
|
+
preference: Schema.optional(Schema.Number),
|
|
3159
|
+
regex: Schema.optional(Schema.String),
|
|
3160
|
+
replacement: Schema.optional(Schema.String),
|
|
3161
|
+
service: Schema.optional(Schema.String),
|
|
3162
|
+
})),
|
|
3163
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
3164
|
+
settings: Schema.optional(Schema.Struct({
|
|
3165
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
3166
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
3167
|
+
}).pipe(Schema.encodeKeys({
|
|
3168
|
+
ipv4Only: "ipv4_only",
|
|
3169
|
+
ipv6Only: "ipv6_only",
|
|
3170
|
+
}))),
|
|
3171
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
3172
|
+
}),
|
|
3173
|
+
Schema.Struct({
|
|
3174
|
+
name: Schema.String,
|
|
3175
|
+
ttl: Schema.Number,
|
|
3176
|
+
type: Schema.Literal("SMIMEA"),
|
|
3177
|
+
comment: Schema.optional(Schema.String),
|
|
3178
|
+
data: Schema.optional(Schema.Struct({
|
|
3179
|
+
certificate: Schema.optional(Schema.String),
|
|
3180
|
+
matchingType: Schema.optional(Schema.Number),
|
|
3181
|
+
selector: Schema.optional(Schema.Number),
|
|
3182
|
+
usage: Schema.optional(Schema.Number),
|
|
3183
|
+
}).pipe(Schema.encodeKeys({
|
|
3184
|
+
certificate: "certificate",
|
|
3185
|
+
matchingType: "matching_type",
|
|
3186
|
+
selector: "selector",
|
|
3187
|
+
usage: "usage",
|
|
3188
|
+
}))),
|
|
3189
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
3190
|
+
settings: Schema.optional(Schema.Struct({
|
|
3191
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
3192
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
3193
|
+
}).pipe(Schema.encodeKeys({
|
|
3194
|
+
ipv4Only: "ipv4_only",
|
|
3195
|
+
ipv6Only: "ipv6_only",
|
|
3196
|
+
}))),
|
|
3197
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
3198
|
+
}),
|
|
3199
|
+
Schema.Struct({
|
|
3200
|
+
name: Schema.String,
|
|
3201
|
+
ttl: Schema.Number,
|
|
3202
|
+
type: Schema.Literal("SRV"),
|
|
3203
|
+
comment: Schema.optional(Schema.String),
|
|
3204
|
+
data: Schema.optional(Schema.Struct({
|
|
3205
|
+
port: Schema.optional(Schema.Number),
|
|
3206
|
+
priority: Schema.optional(Schema.Number),
|
|
3207
|
+
target: Schema.optional(Schema.String),
|
|
3208
|
+
weight: Schema.optional(Schema.Number),
|
|
3209
|
+
})),
|
|
3210
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
3211
|
+
settings: Schema.optional(Schema.Struct({
|
|
3212
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
3213
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
3214
|
+
}).pipe(Schema.encodeKeys({
|
|
3215
|
+
ipv4Only: "ipv4_only",
|
|
3216
|
+
ipv6Only: "ipv6_only",
|
|
3217
|
+
}))),
|
|
3218
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
3219
|
+
}),
|
|
3220
|
+
Schema.Struct({
|
|
3221
|
+
name: Schema.String,
|
|
3222
|
+
ttl: Schema.Number,
|
|
3223
|
+
type: Schema.Literal("SSHFP"),
|
|
3224
|
+
comment: Schema.optional(Schema.String),
|
|
3225
|
+
data: Schema.optional(Schema.Struct({
|
|
3226
|
+
algorithm: Schema.optional(Schema.Number),
|
|
3227
|
+
fingerprint: Schema.optional(Schema.String),
|
|
3228
|
+
type: Schema.optional(Schema.Number),
|
|
3229
|
+
})),
|
|
3230
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
3231
|
+
settings: Schema.optional(Schema.Struct({
|
|
3232
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
3233
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
3234
|
+
}).pipe(Schema.encodeKeys({
|
|
3235
|
+
ipv4Only: "ipv4_only",
|
|
3236
|
+
ipv6Only: "ipv6_only",
|
|
3237
|
+
}))),
|
|
3238
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
3239
|
+
}),
|
|
3240
|
+
Schema.Struct({
|
|
3241
|
+
name: Schema.String,
|
|
3242
|
+
ttl: Schema.Number,
|
|
3243
|
+
type: Schema.Literal("SVCB"),
|
|
3244
|
+
comment: Schema.optional(Schema.String),
|
|
3245
|
+
data: Schema.optional(Schema.Struct({
|
|
3246
|
+
priority: Schema.optional(Schema.Number),
|
|
3247
|
+
target: Schema.optional(Schema.String),
|
|
3248
|
+
value: Schema.optional(Schema.String),
|
|
3249
|
+
})),
|
|
3250
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
3251
|
+
settings: Schema.optional(Schema.Struct({
|
|
3252
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
3253
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
3254
|
+
}).pipe(Schema.encodeKeys({
|
|
3255
|
+
ipv4Only: "ipv4_only",
|
|
3256
|
+
ipv6Only: "ipv6_only",
|
|
3257
|
+
}))),
|
|
3258
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
3259
|
+
}),
|
|
3260
|
+
Schema.Struct({
|
|
3261
|
+
name: Schema.String,
|
|
3262
|
+
ttl: Schema.Number,
|
|
3263
|
+
type: Schema.Literal("TLSA"),
|
|
3264
|
+
comment: Schema.optional(Schema.String),
|
|
3265
|
+
data: Schema.optional(Schema.Struct({
|
|
3266
|
+
certificate: Schema.optional(Schema.String),
|
|
3267
|
+
matchingType: Schema.optional(Schema.Number),
|
|
3268
|
+
selector: Schema.optional(Schema.Number),
|
|
3269
|
+
usage: Schema.optional(Schema.Number),
|
|
3270
|
+
}).pipe(Schema.encodeKeys({
|
|
3271
|
+
certificate: "certificate",
|
|
3272
|
+
matchingType: "matching_type",
|
|
3273
|
+
selector: "selector",
|
|
3274
|
+
usage: "usage",
|
|
3275
|
+
}))),
|
|
3276
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
3277
|
+
settings: Schema.optional(Schema.Struct({
|
|
3278
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
3279
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
3280
|
+
}).pipe(Schema.encodeKeys({
|
|
3281
|
+
ipv4Only: "ipv4_only",
|
|
3282
|
+
ipv6Only: "ipv6_only",
|
|
3283
|
+
}))),
|
|
3284
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
3285
|
+
}),
|
|
3286
|
+
Schema.Struct({
|
|
3287
|
+
name: Schema.String,
|
|
3288
|
+
ttl: Schema.Number,
|
|
3289
|
+
type: Schema.Literal("URI"),
|
|
3290
|
+
comment: Schema.optional(Schema.String),
|
|
3291
|
+
data: Schema.optional(Schema.Struct({
|
|
3292
|
+
target: Schema.optional(Schema.String),
|
|
3293
|
+
weight: Schema.optional(Schema.Number),
|
|
3294
|
+
})),
|
|
3295
|
+
priority: Schema.optional(Schema.Number),
|
|
3296
|
+
proxied: Schema.optional(Schema.Boolean),
|
|
3297
|
+
settings: Schema.optional(Schema.Struct({
|
|
3298
|
+
ipv4Only: Schema.optional(Schema.Boolean),
|
|
3299
|
+
ipv6Only: Schema.optional(Schema.Boolean),
|
|
3300
|
+
}).pipe(Schema.encodeKeys({
|
|
3301
|
+
ipv4Only: "ipv4_only",
|
|
3302
|
+
ipv6Only: "ipv6_only",
|
|
3303
|
+
}))),
|
|
3304
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
3305
|
+
}),
|
|
3306
|
+
]))),
|
|
3307
|
+
rejects: Schema.optional(Schema.Array(Schema.Struct({
|
|
3308
|
+
id: Schema.String,
|
|
3309
|
+
}))),
|
|
3310
|
+
}).pipe(T.Http({
|
|
3311
|
+
method: "POST",
|
|
3312
|
+
path: "/zones/{zone_id}/dns_records/scan/review",
|
|
3313
|
+
}));
|
|
3314
|
+
export const ScanReviewRecordResponse =
|
|
3315
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3316
|
+
accepts: Schema.optional(Schema.Union([
|
|
3317
|
+
Schema.Array(Schema.Union([
|
|
3318
|
+
Schema.Struct({
|
|
3319
|
+
id: Schema.String,
|
|
3320
|
+
createdOn: Schema.String,
|
|
3321
|
+
meta: Schema.Unknown,
|
|
3322
|
+
modifiedOn: Schema.String,
|
|
3323
|
+
proxiable: Schema.Boolean,
|
|
3324
|
+
commentModifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3325
|
+
tagsModifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3326
|
+
}).pipe(Schema.encodeKeys({
|
|
3327
|
+
id: "id",
|
|
3328
|
+
createdOn: "created_on",
|
|
3329
|
+
meta: "meta",
|
|
3330
|
+
modifiedOn: "modified_on",
|
|
3331
|
+
proxiable: "proxiable",
|
|
3332
|
+
commentModifiedOn: "comment_modified_on",
|
|
3333
|
+
tagsModifiedOn: "tags_modified_on",
|
|
3334
|
+
})),
|
|
3335
|
+
Schema.Struct({
|
|
3336
|
+
id: Schema.String,
|
|
3337
|
+
comment: Schema.String,
|
|
3338
|
+
content: Schema.String,
|
|
3339
|
+
createdOn: Schema.String,
|
|
3340
|
+
meta: Schema.Unknown,
|
|
3341
|
+
modifiedOn: Schema.String,
|
|
3342
|
+
name: Schema.String,
|
|
3343
|
+
proxiable: Schema.Boolean,
|
|
3344
|
+
proxied: Schema.Boolean,
|
|
3345
|
+
settings: Schema.Struct({
|
|
3346
|
+
ipv4Only: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
3347
|
+
ipv6Only: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
3348
|
+
}).pipe(Schema.encodeKeys({
|
|
3349
|
+
ipv4Only: "ipv4_only",
|
|
3350
|
+
ipv6Only: "ipv6_only",
|
|
3351
|
+
})),
|
|
3352
|
+
tags: Schema.Array(Schema.String),
|
|
3353
|
+
ttl: Schema.Number,
|
|
3354
|
+
type: Schema.Literal("OPENPGPKEY"),
|
|
3355
|
+
commentModifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3356
|
+
tagsModifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3357
|
+
}).pipe(Schema.encodeKeys({
|
|
3358
|
+
id: "id",
|
|
3359
|
+
comment: "comment",
|
|
3360
|
+
content: "content",
|
|
3361
|
+
createdOn: "created_on",
|
|
3362
|
+
meta: "meta",
|
|
3363
|
+
modifiedOn: "modified_on",
|
|
3364
|
+
name: "name",
|
|
3365
|
+
proxiable: "proxiable",
|
|
3366
|
+
proxied: "proxied",
|
|
3367
|
+
settings: "settings",
|
|
3368
|
+
tags: "tags",
|
|
3369
|
+
ttl: "ttl",
|
|
3370
|
+
type: "type",
|
|
3371
|
+
commentModifiedOn: "comment_modified_on",
|
|
3372
|
+
tagsModifiedOn: "tags_modified_on",
|
|
3373
|
+
})),
|
|
3374
|
+
])),
|
|
3375
|
+
Schema.Null,
|
|
3376
|
+
])),
|
|
3377
|
+
rejects: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
3378
|
+
});
|
|
3379
|
+
export const scanReviewRecord = API.make(() => ({
|
|
3380
|
+
input: ScanReviewRecordRequest,
|
|
3381
|
+
output: ScanReviewRecordResponse,
|
|
3382
|
+
errors: [],
|
|
3383
|
+
}));
|
|
3384
|
+
export const GetSettingAccountRequest =
|
|
3385
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3386
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3387
|
+
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/dns_settings" }));
|
|
3388
|
+
export const GetSettingAccountResponse =
|
|
3389
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3390
|
+
zoneDefaults: Schema.Struct({
|
|
3391
|
+
flattenAllCnames: Schema.Boolean,
|
|
3392
|
+
foundationDns: Schema.Boolean,
|
|
3393
|
+
internalDns: Schema.Struct({
|
|
3394
|
+
referenceZoneId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3395
|
+
}).pipe(Schema.encodeKeys({ referenceZoneId: "reference_zone_id" })),
|
|
3396
|
+
multiProvider: Schema.Boolean,
|
|
3397
|
+
nameservers: Schema.Struct({
|
|
3398
|
+
type: Schema.optional(Schema.Union([
|
|
3399
|
+
Schema.Literals([
|
|
3400
|
+
"cloudflare.standard",
|
|
3401
|
+
"cloudflare.standard.random",
|
|
3402
|
+
"custom.account",
|
|
3403
|
+
"custom.tenant",
|
|
3404
|
+
]),
|
|
3405
|
+
Schema.Null,
|
|
3406
|
+
])),
|
|
3407
|
+
}),
|
|
3408
|
+
nsTtl: Schema.Number,
|
|
3409
|
+
secondaryOverrides: Schema.Boolean,
|
|
3410
|
+
soa: Schema.Struct({
|
|
3411
|
+
expire: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3412
|
+
minTtl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3413
|
+
mname: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3414
|
+
refresh: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3415
|
+
retry: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3416
|
+
rname: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3417
|
+
ttl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3418
|
+
}).pipe(Schema.encodeKeys({
|
|
3419
|
+
expire: "expire",
|
|
3420
|
+
minTtl: "min_ttl",
|
|
3421
|
+
mname: "mname",
|
|
3422
|
+
refresh: "refresh",
|
|
3423
|
+
retry: "retry",
|
|
3424
|
+
rname: "rname",
|
|
3425
|
+
ttl: "ttl",
|
|
3426
|
+
})),
|
|
3427
|
+
zoneMode: Schema.Literals(["standard", "cdn_only", "dns_only"]),
|
|
3428
|
+
}).pipe(Schema.encodeKeys({
|
|
3429
|
+
flattenAllCnames: "flatten_all_cnames",
|
|
3430
|
+
foundationDns: "foundation_dns",
|
|
3431
|
+
internalDns: "internal_dns",
|
|
3432
|
+
multiProvider: "multi_provider",
|
|
3433
|
+
nameservers: "nameservers",
|
|
3434
|
+
nsTtl: "ns_ttl",
|
|
3435
|
+
secondaryOverrides: "secondary_overrides",
|
|
3436
|
+
soa: "soa",
|
|
3437
|
+
zoneMode: "zone_mode",
|
|
3438
|
+
})),
|
|
3439
|
+
}).pipe(Schema.encodeKeys({ zoneDefaults: "zone_defaults" }));
|
|
3440
|
+
export const getSettingAccount = API.make(() => ({
|
|
3441
|
+
input: GetSettingAccountRequest,
|
|
3442
|
+
output: GetSettingAccountResponse,
|
|
3443
|
+
errors: [],
|
|
3444
|
+
}));
|
|
3445
|
+
export const PatchSettingAccountRequest =
|
|
3446
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3447
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3448
|
+
zoneDefaults: Schema.optional(Schema.Struct({
|
|
3449
|
+
flattenAllCnames: Schema.optional(Schema.Boolean),
|
|
3450
|
+
foundationDns: Schema.optional(Schema.Boolean),
|
|
3451
|
+
internalDns: Schema.optional(Schema.Struct({
|
|
3452
|
+
referenceZoneId: Schema.optional(Schema.String),
|
|
3453
|
+
}).pipe(Schema.encodeKeys({ referenceZoneId: "reference_zone_id" }))),
|
|
3454
|
+
multiProvider: Schema.optional(Schema.Boolean),
|
|
3455
|
+
nameservers: Schema.optional(Schema.Struct({
|
|
3456
|
+
type: Schema.optional(Schema.Literals([
|
|
3457
|
+
"cloudflare.standard",
|
|
3458
|
+
"cloudflare.standard.random",
|
|
3459
|
+
"custom.account",
|
|
3460
|
+
"custom.tenant",
|
|
3461
|
+
])),
|
|
3462
|
+
})),
|
|
3463
|
+
nsTtl: Schema.optional(Schema.Number),
|
|
3464
|
+
secondaryOverrides: Schema.optional(Schema.Boolean),
|
|
3465
|
+
soa: Schema.optional(Schema.Struct({
|
|
3466
|
+
expire: Schema.optional(Schema.Number),
|
|
3467
|
+
minTtl: Schema.optional(Schema.Number),
|
|
3468
|
+
mname: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3469
|
+
refresh: Schema.optional(Schema.Number),
|
|
3470
|
+
retry: Schema.optional(Schema.Number),
|
|
3471
|
+
rname: Schema.optional(Schema.String),
|
|
3472
|
+
ttl: Schema.optional(Schema.Number),
|
|
3473
|
+
}).pipe(Schema.encodeKeys({
|
|
3474
|
+
expire: "expire",
|
|
3475
|
+
minTtl: "min_ttl",
|
|
3476
|
+
mname: "mname",
|
|
3477
|
+
refresh: "refresh",
|
|
3478
|
+
retry: "retry",
|
|
3479
|
+
rname: "rname",
|
|
3480
|
+
ttl: "ttl",
|
|
3481
|
+
}))),
|
|
3482
|
+
zoneMode: Schema.optional(Schema.Literals(["standard", "cdn_only", "dns_only"])),
|
|
3483
|
+
}).pipe(Schema.encodeKeys({
|
|
3484
|
+
flattenAllCnames: "flatten_all_cnames",
|
|
3485
|
+
foundationDns: "foundation_dns",
|
|
3486
|
+
internalDns: "internal_dns",
|
|
3487
|
+
multiProvider: "multi_provider",
|
|
3488
|
+
nameservers: "nameservers",
|
|
3489
|
+
nsTtl: "ns_ttl",
|
|
3490
|
+
secondaryOverrides: "secondary_overrides",
|
|
3491
|
+
soa: "soa",
|
|
3492
|
+
zoneMode: "zone_mode",
|
|
3493
|
+
}))),
|
|
3494
|
+
}).pipe(Schema.encodeKeys({ zoneDefaults: "zone_defaults" }), T.Http({ method: "PATCH", path: "/accounts/{account_id}/dns_settings" }));
|
|
3495
|
+
export const PatchSettingAccountResponse =
|
|
3496
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3497
|
+
zoneDefaults: Schema.Struct({
|
|
3498
|
+
flattenAllCnames: Schema.Boolean,
|
|
3499
|
+
foundationDns: Schema.Boolean,
|
|
3500
|
+
internalDns: Schema.Struct({
|
|
3501
|
+
referenceZoneId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3502
|
+
}).pipe(Schema.encodeKeys({ referenceZoneId: "reference_zone_id" })),
|
|
3503
|
+
multiProvider: Schema.Boolean,
|
|
3504
|
+
nameservers: Schema.Struct({
|
|
3505
|
+
type: Schema.optional(Schema.Union([
|
|
3506
|
+
Schema.Literals([
|
|
3507
|
+
"cloudflare.standard",
|
|
3508
|
+
"cloudflare.standard.random",
|
|
3509
|
+
"custom.account",
|
|
3510
|
+
"custom.tenant",
|
|
3511
|
+
]),
|
|
3512
|
+
Schema.Null,
|
|
3513
|
+
])),
|
|
3514
|
+
}),
|
|
3515
|
+
nsTtl: Schema.Number,
|
|
3516
|
+
secondaryOverrides: Schema.Boolean,
|
|
3517
|
+
soa: Schema.Struct({
|
|
3518
|
+
expire: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3519
|
+
minTtl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3520
|
+
mname: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3521
|
+
refresh: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3522
|
+
retry: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3523
|
+
rname: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3524
|
+
ttl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3525
|
+
}).pipe(Schema.encodeKeys({
|
|
3526
|
+
expire: "expire",
|
|
3527
|
+
minTtl: "min_ttl",
|
|
3528
|
+
mname: "mname",
|
|
3529
|
+
refresh: "refresh",
|
|
3530
|
+
retry: "retry",
|
|
3531
|
+
rname: "rname",
|
|
3532
|
+
ttl: "ttl",
|
|
3533
|
+
})),
|
|
3534
|
+
zoneMode: Schema.Literals(["standard", "cdn_only", "dns_only"]),
|
|
3535
|
+
}).pipe(Schema.encodeKeys({
|
|
3536
|
+
flattenAllCnames: "flatten_all_cnames",
|
|
3537
|
+
foundationDns: "foundation_dns",
|
|
3538
|
+
internalDns: "internal_dns",
|
|
3539
|
+
multiProvider: "multi_provider",
|
|
3540
|
+
nameservers: "nameservers",
|
|
3541
|
+
nsTtl: "ns_ttl",
|
|
3542
|
+
secondaryOverrides: "secondary_overrides",
|
|
3543
|
+
soa: "soa",
|
|
3544
|
+
zoneMode: "zone_mode",
|
|
3545
|
+
})),
|
|
3546
|
+
}).pipe(Schema.encodeKeys({ zoneDefaults: "zone_defaults" }));
|
|
3547
|
+
export const patchSettingAccount = API.make(() => ({
|
|
3548
|
+
input: PatchSettingAccountRequest,
|
|
3549
|
+
output: PatchSettingAccountResponse,
|
|
3550
|
+
errors: [],
|
|
3551
|
+
}));
|
|
3552
|
+
export const GetSettingAccountViewRequest =
|
|
3553
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3554
|
+
viewId: Schema.String.pipe(T.HttpPath("viewId")),
|
|
3555
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3556
|
+
}).pipe(T.Http({
|
|
3557
|
+
method: "GET",
|
|
3558
|
+
path: "/accounts/{account_id}/dns_settings/views/{viewId}",
|
|
3559
|
+
}));
|
|
3560
|
+
export const GetSettingAccountViewResponse =
|
|
3561
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3562
|
+
id: Schema.String,
|
|
3563
|
+
createdTime: Schema.String,
|
|
3564
|
+
modifiedTime: Schema.String,
|
|
3565
|
+
name: Schema.String,
|
|
3566
|
+
zones: Schema.Array(Schema.String),
|
|
3567
|
+
}).pipe(Schema.encodeKeys({
|
|
3568
|
+
id: "id",
|
|
3569
|
+
createdTime: "created_time",
|
|
3570
|
+
modifiedTime: "modified_time",
|
|
3571
|
+
name: "name",
|
|
3572
|
+
zones: "zones",
|
|
3573
|
+
}));
|
|
3574
|
+
export const getSettingAccountView = API.make(() => ({
|
|
3575
|
+
input: GetSettingAccountViewRequest,
|
|
3576
|
+
output: GetSettingAccountViewResponse,
|
|
3577
|
+
errors: [],
|
|
3578
|
+
}));
|
|
3579
|
+
export const ListSettingAccountViewsRequest =
|
|
3580
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3581
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3582
|
+
direction: Schema.optional(Schema.Literals(["asc", "desc"])).pipe(T.HttpQuery("direction")),
|
|
3583
|
+
match: Schema.optional(Schema.Literals(["any", "all"])).pipe(T.HttpQuery("match")),
|
|
3584
|
+
name: Schema.optional(Schema.Struct({
|
|
3585
|
+
contains: Schema.optional(Schema.String),
|
|
3586
|
+
endswith: Schema.optional(Schema.String),
|
|
3587
|
+
exact: Schema.optional(Schema.String),
|
|
3588
|
+
startswith: Schema.optional(Schema.String),
|
|
3589
|
+
})).pipe(T.HttpQuery("name")),
|
|
3590
|
+
order: Schema.optional(Schema.Literals(["name", "created_on", "modified_on"])).pipe(T.HttpQuery("order")),
|
|
3591
|
+
zoneId: Schema.optional(Schema.String).pipe(T.HttpQuery("zone_id")),
|
|
3592
|
+
zoneName: Schema.optional(Schema.String).pipe(T.HttpQuery("zone_name")),
|
|
3593
|
+
}).pipe(T.Http({
|
|
3594
|
+
method: "GET",
|
|
3595
|
+
path: "/accounts/{account_id}/dns_settings/views",
|
|
3596
|
+
}));
|
|
3597
|
+
export const ListSettingAccountViewsResponse =
|
|
3598
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
|
|
3599
|
+
id: Schema.String,
|
|
3600
|
+
createdTime: Schema.String,
|
|
3601
|
+
modifiedTime: Schema.String,
|
|
3602
|
+
name: Schema.String,
|
|
3603
|
+
zones: Schema.Array(Schema.String),
|
|
3604
|
+
}).pipe(Schema.encodeKeys({
|
|
3605
|
+
id: "id",
|
|
3606
|
+
createdTime: "created_time",
|
|
3607
|
+
modifiedTime: "modified_time",
|
|
3608
|
+
name: "name",
|
|
3609
|
+
zones: "zones",
|
|
3610
|
+
})));
|
|
3611
|
+
export const listSettingAccountViews = API.make(() => ({
|
|
3612
|
+
input: ListSettingAccountViewsRequest,
|
|
3613
|
+
output: ListSettingAccountViewsResponse,
|
|
3614
|
+
errors: [],
|
|
3615
|
+
}));
|
|
3616
|
+
export const CreateSettingAccountViewRequest =
|
|
3617
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3618
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3619
|
+
name: Schema.String,
|
|
3620
|
+
zones: Schema.Array(Schema.String),
|
|
3621
|
+
}).pipe(T.Http({
|
|
3622
|
+
method: "POST",
|
|
3623
|
+
path: "/accounts/{account_id}/dns_settings/views",
|
|
3624
|
+
}));
|
|
3625
|
+
export const CreateSettingAccountViewResponse =
|
|
3626
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3627
|
+
id: Schema.String,
|
|
3628
|
+
createdTime: Schema.String,
|
|
3629
|
+
modifiedTime: Schema.String,
|
|
3630
|
+
name: Schema.String,
|
|
3631
|
+
zones: Schema.Array(Schema.String),
|
|
3632
|
+
}).pipe(Schema.encodeKeys({
|
|
3633
|
+
id: "id",
|
|
3634
|
+
createdTime: "created_time",
|
|
3635
|
+
modifiedTime: "modified_time",
|
|
3636
|
+
name: "name",
|
|
3637
|
+
zones: "zones",
|
|
3638
|
+
}));
|
|
3639
|
+
export const createSettingAccountView = API.make(() => ({
|
|
3640
|
+
input: CreateSettingAccountViewRequest,
|
|
3641
|
+
output: CreateSettingAccountViewResponse,
|
|
3642
|
+
errors: [],
|
|
3643
|
+
}));
|
|
3644
|
+
export const PatchSettingAccountViewRequest =
|
|
3645
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3646
|
+
viewId: Schema.String.pipe(T.HttpPath("viewId")),
|
|
3647
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3648
|
+
name: Schema.optional(Schema.String),
|
|
3649
|
+
zones: Schema.optional(Schema.Array(Schema.String)),
|
|
3650
|
+
}).pipe(T.Http({
|
|
3651
|
+
method: "PATCH",
|
|
3652
|
+
path: "/accounts/{account_id}/dns_settings/views/{viewId}",
|
|
3653
|
+
}));
|
|
3654
|
+
export const PatchSettingAccountViewResponse =
|
|
3655
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3656
|
+
id: Schema.String,
|
|
3657
|
+
createdTime: Schema.String,
|
|
3658
|
+
modifiedTime: Schema.String,
|
|
3659
|
+
name: Schema.String,
|
|
3660
|
+
zones: Schema.Array(Schema.String),
|
|
3661
|
+
}).pipe(Schema.encodeKeys({
|
|
3662
|
+
id: "id",
|
|
3663
|
+
createdTime: "created_time",
|
|
3664
|
+
modifiedTime: "modified_time",
|
|
3665
|
+
name: "name",
|
|
3666
|
+
zones: "zones",
|
|
3667
|
+
}));
|
|
3668
|
+
export const patchSettingAccountView = API.make(() => ({
|
|
3669
|
+
input: PatchSettingAccountViewRequest,
|
|
3670
|
+
output: PatchSettingAccountViewResponse,
|
|
3671
|
+
errors: [],
|
|
3672
|
+
}));
|
|
3673
|
+
export const DeleteSettingAccountViewRequest =
|
|
3674
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3675
|
+
viewId: Schema.String.pipe(T.HttpPath("viewId")),
|
|
3676
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3677
|
+
}).pipe(T.Http({
|
|
3678
|
+
method: "DELETE",
|
|
3679
|
+
path: "/accounts/{account_id}/dns_settings/views/{viewId}",
|
|
3680
|
+
}));
|
|
3681
|
+
export const DeleteSettingAccountViewResponse =
|
|
3682
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3683
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3684
|
+
});
|
|
3685
|
+
export const deleteSettingAccountView = API.make(() => ({
|
|
3686
|
+
input: DeleteSettingAccountViewRequest,
|
|
3687
|
+
output: DeleteSettingAccountViewResponse,
|
|
3688
|
+
errors: [],
|
|
3689
|
+
}));
|
|
3690
|
+
export const GetSettingZoneRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3691
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
3692
|
+
}).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/dns_settings" }));
|
|
3693
|
+
export const GetSettingZoneResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3694
|
+
flattenAllCnames: Schema.Boolean,
|
|
3695
|
+
foundationDns: Schema.Boolean,
|
|
3696
|
+
internalDns: Schema.Struct({
|
|
3697
|
+
referenceZoneId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3698
|
+
}).pipe(Schema.encodeKeys({ referenceZoneId: "reference_zone_id" })),
|
|
3699
|
+
multiProvider: Schema.Boolean,
|
|
3700
|
+
nameservers: Schema.Struct({
|
|
3701
|
+
type: Schema.Literals([
|
|
3702
|
+
"cloudflare.standard",
|
|
3703
|
+
"custom.account",
|
|
3704
|
+
"custom.tenant",
|
|
3705
|
+
"custom.zone",
|
|
3706
|
+
]),
|
|
3707
|
+
nsSet: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3708
|
+
}).pipe(Schema.encodeKeys({ type: "type", nsSet: "ns_set" })),
|
|
3709
|
+
nsTtl: Schema.Number,
|
|
3710
|
+
secondaryOverrides: Schema.Boolean,
|
|
3711
|
+
soa: Schema.Struct({
|
|
3712
|
+
expire: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3713
|
+
minTtl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3714
|
+
mname: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3715
|
+
refresh: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3716
|
+
retry: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3717
|
+
rname: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3718
|
+
ttl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3719
|
+
}).pipe(Schema.encodeKeys({
|
|
3720
|
+
expire: "expire",
|
|
3721
|
+
minTtl: "min_ttl",
|
|
3722
|
+
mname: "mname",
|
|
3723
|
+
refresh: "refresh",
|
|
3724
|
+
retry: "retry",
|
|
3725
|
+
rname: "rname",
|
|
3726
|
+
ttl: "ttl",
|
|
3727
|
+
})),
|
|
3728
|
+
zoneMode: Schema.Literals(["standard", "cdn_only", "dns_only"]),
|
|
3729
|
+
}).pipe(Schema.encodeKeys({
|
|
3730
|
+
flattenAllCnames: "flatten_all_cnames",
|
|
3731
|
+
foundationDns: "foundation_dns",
|
|
3732
|
+
internalDns: "internal_dns",
|
|
3733
|
+
multiProvider: "multi_provider",
|
|
3734
|
+
nameservers: "nameservers",
|
|
3735
|
+
nsTtl: "ns_ttl",
|
|
3736
|
+
secondaryOverrides: "secondary_overrides",
|
|
3737
|
+
soa: "soa",
|
|
3738
|
+
zoneMode: "zone_mode",
|
|
3739
|
+
}));
|
|
3740
|
+
export const getSettingZone = API.make(() => ({
|
|
3741
|
+
input: GetSettingZoneRequest,
|
|
3742
|
+
output: GetSettingZoneResponse,
|
|
3743
|
+
errors: [],
|
|
3744
|
+
}));
|
|
3745
|
+
export const PatchSettingZoneRequest =
|
|
3746
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3747
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
3748
|
+
flattenAllCnames: Schema.optional(Schema.Boolean),
|
|
3749
|
+
foundationDns: Schema.optional(Schema.Boolean),
|
|
3750
|
+
internalDns: Schema.optional(Schema.Struct({
|
|
3751
|
+
referenceZoneId: Schema.optional(Schema.String),
|
|
3752
|
+
}).pipe(Schema.encodeKeys({ referenceZoneId: "reference_zone_id" }))),
|
|
3753
|
+
multiProvider: Schema.optional(Schema.Boolean),
|
|
3754
|
+
nameservers: Schema.optional(Schema.Struct({
|
|
3755
|
+
nsSet: Schema.optional(Schema.Number),
|
|
3756
|
+
type: Schema.optional(Schema.Literals([
|
|
3757
|
+
"cloudflare.standard",
|
|
3758
|
+
"custom.account",
|
|
3759
|
+
"custom.tenant",
|
|
3760
|
+
"custom.zone",
|
|
3761
|
+
])),
|
|
3762
|
+
}).pipe(Schema.encodeKeys({ nsSet: "ns_set", type: "type" }))),
|
|
3763
|
+
nsTtl: Schema.optional(Schema.Number),
|
|
3764
|
+
secondaryOverrides: Schema.optional(Schema.Boolean),
|
|
3765
|
+
soa: Schema.optional(Schema.Struct({
|
|
3766
|
+
expire: Schema.optional(Schema.Number),
|
|
3767
|
+
minTtl: Schema.optional(Schema.Number),
|
|
3768
|
+
mname: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3769
|
+
refresh: Schema.optional(Schema.Number),
|
|
3770
|
+
retry: Schema.optional(Schema.Number),
|
|
3771
|
+
rname: Schema.optional(Schema.String),
|
|
3772
|
+
ttl: Schema.optional(Schema.Number),
|
|
3773
|
+
}).pipe(Schema.encodeKeys({
|
|
3774
|
+
expire: "expire",
|
|
3775
|
+
minTtl: "min_ttl",
|
|
3776
|
+
mname: "mname",
|
|
3777
|
+
refresh: "refresh",
|
|
3778
|
+
retry: "retry",
|
|
3779
|
+
rname: "rname",
|
|
3780
|
+
ttl: "ttl",
|
|
3781
|
+
}))),
|
|
3782
|
+
zoneMode: Schema.optional(Schema.Literals(["standard", "cdn_only", "dns_only"])),
|
|
3783
|
+
}).pipe(Schema.encodeKeys({
|
|
3784
|
+
flattenAllCnames: "flatten_all_cnames",
|
|
3785
|
+
foundationDns: "foundation_dns",
|
|
3786
|
+
internalDns: "internal_dns",
|
|
3787
|
+
multiProvider: "multi_provider",
|
|
3788
|
+
nameservers: "nameservers",
|
|
3789
|
+
nsTtl: "ns_ttl",
|
|
3790
|
+
secondaryOverrides: "secondary_overrides",
|
|
3791
|
+
soa: "soa",
|
|
3792
|
+
zoneMode: "zone_mode",
|
|
3793
|
+
}), T.Http({ method: "PATCH", path: "/zones/{zone_id}/dns_settings" }));
|
|
3794
|
+
export const PatchSettingZoneResponse =
|
|
3795
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3796
|
+
flattenAllCnames: Schema.Boolean,
|
|
3797
|
+
foundationDns: Schema.Boolean,
|
|
3798
|
+
internalDns: Schema.Struct({
|
|
3799
|
+
referenceZoneId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3800
|
+
}).pipe(Schema.encodeKeys({ referenceZoneId: "reference_zone_id" })),
|
|
3801
|
+
multiProvider: Schema.Boolean,
|
|
3802
|
+
nameservers: Schema.Struct({
|
|
3803
|
+
type: Schema.Literals([
|
|
3804
|
+
"cloudflare.standard",
|
|
3805
|
+
"custom.account",
|
|
3806
|
+
"custom.tenant",
|
|
3807
|
+
"custom.zone",
|
|
3808
|
+
]),
|
|
3809
|
+
nsSet: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3810
|
+
}).pipe(Schema.encodeKeys({ type: "type", nsSet: "ns_set" })),
|
|
3811
|
+
nsTtl: Schema.Number,
|
|
3812
|
+
secondaryOverrides: Schema.Boolean,
|
|
3813
|
+
soa: Schema.Struct({
|
|
3814
|
+
expire: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3815
|
+
minTtl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3816
|
+
mname: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3817
|
+
refresh: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3818
|
+
retry: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3819
|
+
rname: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3820
|
+
ttl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3821
|
+
}).pipe(Schema.encodeKeys({
|
|
3822
|
+
expire: "expire",
|
|
3823
|
+
minTtl: "min_ttl",
|
|
3824
|
+
mname: "mname",
|
|
3825
|
+
refresh: "refresh",
|
|
3826
|
+
retry: "retry",
|
|
3827
|
+
rname: "rname",
|
|
3828
|
+
ttl: "ttl",
|
|
3829
|
+
})),
|
|
3830
|
+
zoneMode: Schema.Literals(["standard", "cdn_only", "dns_only"]),
|
|
3831
|
+
}).pipe(Schema.encodeKeys({
|
|
3832
|
+
flattenAllCnames: "flatten_all_cnames",
|
|
3833
|
+
foundationDns: "foundation_dns",
|
|
3834
|
+
internalDns: "internal_dns",
|
|
3835
|
+
multiProvider: "multi_provider",
|
|
3836
|
+
nameservers: "nameservers",
|
|
3837
|
+
nsTtl: "ns_ttl",
|
|
3838
|
+
secondaryOverrides: "secondary_overrides",
|
|
3839
|
+
soa: "soa",
|
|
3840
|
+
zoneMode: "zone_mode",
|
|
3841
|
+
}));
|
|
3842
|
+
export const patchSettingZone = API.make(() => ({
|
|
3843
|
+
input: PatchSettingZoneRequest,
|
|
3844
|
+
output: PatchSettingZoneResponse,
|
|
3845
|
+
errors: [],
|
|
3846
|
+
}));
|
|
3847
|
+
export const ScanTriggerRecordRequest =
|
|
3848
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3849
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
3850
|
+
}).pipe(T.Http({
|
|
3851
|
+
method: "POST",
|
|
3852
|
+
path: "/zones/{zone_id}/dns_records/scan/trigger",
|
|
3853
|
+
}));
|
|
3854
|
+
export const ScanTriggerRecordResponse =
|
|
3855
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3856
|
+
errors: Schema.Array(Schema.Struct({
|
|
3857
|
+
code: Schema.Number,
|
|
3858
|
+
message: Schema.String,
|
|
3859
|
+
documentationUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3860
|
+
source: Schema.optional(Schema.Union([
|
|
3861
|
+
Schema.Struct({
|
|
3862
|
+
pointer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3863
|
+
}),
|
|
3864
|
+
Schema.Null,
|
|
3865
|
+
])),
|
|
3866
|
+
}).pipe(Schema.encodeKeys({
|
|
3867
|
+
code: "code",
|
|
3868
|
+
message: "message",
|
|
3869
|
+
documentationUrl: "documentation_url",
|
|
3870
|
+
source: "source",
|
|
3871
|
+
}))),
|
|
3872
|
+
messages: Schema.Array(Schema.Struct({
|
|
3873
|
+
code: Schema.Number,
|
|
3874
|
+
message: Schema.String,
|
|
3875
|
+
documentationUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3876
|
+
source: Schema.optional(Schema.Union([
|
|
3877
|
+
Schema.Struct({
|
|
3878
|
+
pointer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3879
|
+
}),
|
|
3880
|
+
Schema.Null,
|
|
3881
|
+
])),
|
|
3882
|
+
}).pipe(Schema.encodeKeys({
|
|
3883
|
+
code: "code",
|
|
3884
|
+
message: "message",
|
|
3885
|
+
documentationUrl: "documentation_url",
|
|
3886
|
+
source: "source",
|
|
3887
|
+
}))),
|
|
3888
|
+
success: Schema.Literal(true),
|
|
3889
|
+
});
|
|
3890
|
+
export const scanTriggerRecord = API.make(() => ({
|
|
3891
|
+
input: ScanTriggerRecordRequest,
|
|
3892
|
+
output: ScanTriggerRecordResponse,
|
|
3893
|
+
errors: [],
|
|
3894
|
+
}));
|
|
3895
|
+
export const GetZoneTransferAclRequest =
|
|
3896
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3897
|
+
aclId: Schema.String.pipe(T.HttpPath("aclId")),
|
|
3898
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3899
|
+
}).pipe(T.Http({
|
|
3900
|
+
method: "GET",
|
|
3901
|
+
path: "/accounts/{account_id}/secondary_dns/acls/{aclId}",
|
|
3902
|
+
}));
|
|
3903
|
+
export const GetZoneTransferAclResponse =
|
|
3904
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3905
|
+
id: Schema.String,
|
|
3906
|
+
ipRange: Schema.String,
|
|
3907
|
+
name: Schema.String,
|
|
3908
|
+
}).pipe(Schema.encodeKeys({ id: "id", ipRange: "ip_range", name: "name" }));
|
|
3909
|
+
export const getZoneTransferAcl = API.make(() => ({
|
|
3910
|
+
input: GetZoneTransferAclRequest,
|
|
3911
|
+
output: GetZoneTransferAclResponse,
|
|
3912
|
+
errors: [],
|
|
3913
|
+
}));
|
|
3914
|
+
export const ListZoneTransferAclsRequest =
|
|
3915
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3916
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3917
|
+
}).pipe(T.Http({
|
|
3918
|
+
method: "GET",
|
|
3919
|
+
path: "/accounts/{account_id}/secondary_dns/acls",
|
|
3920
|
+
}));
|
|
3921
|
+
export const ListZoneTransferAclsResponse =
|
|
3922
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
|
|
3923
|
+
id: Schema.String,
|
|
3924
|
+
ipRange: Schema.String,
|
|
3925
|
+
name: Schema.String,
|
|
3926
|
+
}).pipe(Schema.encodeKeys({ id: "id", ipRange: "ip_range", name: "name" })));
|
|
3927
|
+
export const listZoneTransferAcls = API.make(() => ({
|
|
3928
|
+
input: ListZoneTransferAclsRequest,
|
|
3929
|
+
output: ListZoneTransferAclsResponse,
|
|
3930
|
+
errors: [],
|
|
3931
|
+
}));
|
|
3932
|
+
export const CreateZoneTransferAclRequest =
|
|
3933
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3934
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3935
|
+
ipRange: Schema.String,
|
|
3936
|
+
name: Schema.String,
|
|
3937
|
+
}).pipe(Schema.encodeKeys({ ipRange: "ip_range", name: "name" }), T.Http({
|
|
3938
|
+
method: "POST",
|
|
3939
|
+
path: "/accounts/{account_id}/secondary_dns/acls",
|
|
3940
|
+
}));
|
|
3941
|
+
export const CreateZoneTransferAclResponse =
|
|
3942
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3943
|
+
id: Schema.String,
|
|
3944
|
+
ipRange: Schema.String,
|
|
3945
|
+
name: Schema.String,
|
|
3946
|
+
}).pipe(Schema.encodeKeys({ id: "id", ipRange: "ip_range", name: "name" }));
|
|
3947
|
+
export const createZoneTransferAcl = API.make(() => ({
|
|
3948
|
+
input: CreateZoneTransferAclRequest,
|
|
3949
|
+
output: CreateZoneTransferAclResponse,
|
|
3950
|
+
errors: [],
|
|
3951
|
+
}));
|
|
3952
|
+
export const UpdateZoneTransferAclRequest =
|
|
3953
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3954
|
+
aclId: Schema.String.pipe(T.HttpPath("aclId")),
|
|
3955
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3956
|
+
ipRange: Schema.String,
|
|
3957
|
+
name: Schema.String,
|
|
3958
|
+
}).pipe(Schema.encodeKeys({ ipRange: "ip_range", name: "name" }), T.Http({
|
|
3959
|
+
method: "PUT",
|
|
3960
|
+
path: "/accounts/{account_id}/secondary_dns/acls/{aclId}",
|
|
3961
|
+
}));
|
|
3962
|
+
export const UpdateZoneTransferAclResponse =
|
|
3963
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3964
|
+
id: Schema.String,
|
|
3965
|
+
ipRange: Schema.String,
|
|
3966
|
+
name: Schema.String,
|
|
3967
|
+
}).pipe(Schema.encodeKeys({ id: "id", ipRange: "ip_range", name: "name" }));
|
|
3968
|
+
export const updateZoneTransferAcl = API.make(() => ({
|
|
3969
|
+
input: UpdateZoneTransferAclRequest,
|
|
3970
|
+
output: UpdateZoneTransferAclResponse,
|
|
3971
|
+
errors: [],
|
|
3972
|
+
}));
|
|
3973
|
+
export const DeleteZoneTransferAclRequest =
|
|
3974
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3975
|
+
aclId: Schema.String.pipe(T.HttpPath("aclId")),
|
|
3976
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3977
|
+
}).pipe(T.Http({
|
|
3978
|
+
method: "DELETE",
|
|
3979
|
+
path: "/accounts/{account_id}/secondary_dns/acls/{aclId}",
|
|
3980
|
+
}));
|
|
3981
|
+
export const DeleteZoneTransferAclResponse =
|
|
3982
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3983
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3984
|
+
});
|
|
3985
|
+
export const deleteZoneTransferAcl = API.make(() => ({
|
|
3986
|
+
input: DeleteZoneTransferAclRequest,
|
|
3987
|
+
output: DeleteZoneTransferAclResponse,
|
|
3988
|
+
errors: [],
|
|
3989
|
+
}));
|
|
3990
|
+
export const CreateZoneTransferForceAxfrRequest =
|
|
3991
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3992
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
3993
|
+
body: Schema.Unknown.pipe(T.HttpBody()),
|
|
3994
|
+
}).pipe(T.Http({
|
|
3995
|
+
method: "POST",
|
|
3996
|
+
path: "/zones/{zone_id}/secondary_dns/force_axfr",
|
|
3997
|
+
}));
|
|
3998
|
+
export const CreateZoneTransferForceAxfrResponse =
|
|
3999
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.String;
|
|
4000
|
+
export const createZoneTransferForceAxfr = API.make(() => ({
|
|
4001
|
+
input: CreateZoneTransferForceAxfrRequest,
|
|
4002
|
+
output: CreateZoneTransferForceAxfrResponse,
|
|
4003
|
+
errors: [],
|
|
4004
|
+
}));
|
|
4005
|
+
export const GetZoneTransferIncomingRequest =
|
|
4006
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
4007
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
4008
|
+
}).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/secondary_dns/incoming" }));
|
|
4009
|
+
export const GetZoneTransferIncomingResponse =
|
|
4010
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
4011
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4012
|
+
autoRefreshSeconds: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
4013
|
+
checkedTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4014
|
+
createdTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4015
|
+
modifiedTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4016
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4017
|
+
peers: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
4018
|
+
soaSerial: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
4019
|
+
}).pipe(Schema.encodeKeys({
|
|
4020
|
+
id: "id",
|
|
4021
|
+
autoRefreshSeconds: "auto_refresh_seconds",
|
|
4022
|
+
checkedTime: "checked_time",
|
|
4023
|
+
createdTime: "created_time",
|
|
4024
|
+
modifiedTime: "modified_time",
|
|
4025
|
+
name: "name",
|
|
4026
|
+
peers: "peers",
|
|
4027
|
+
soaSerial: "soa_serial",
|
|
4028
|
+
}));
|
|
4029
|
+
export const getZoneTransferIncoming = API.make(() => ({
|
|
4030
|
+
input: GetZoneTransferIncomingRequest,
|
|
4031
|
+
output: GetZoneTransferIncomingResponse,
|
|
4032
|
+
errors: [],
|
|
4033
|
+
}));
|
|
4034
|
+
export const CreateZoneTransferIncomingRequest =
|
|
4035
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
4036
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
4037
|
+
autoRefreshSeconds: Schema.Number,
|
|
4038
|
+
name: Schema.String,
|
|
4039
|
+
peers: Schema.Array(Schema.String),
|
|
4040
|
+
}).pipe(Schema.encodeKeys({
|
|
4041
|
+
autoRefreshSeconds: "auto_refresh_seconds",
|
|
4042
|
+
name: "name",
|
|
4043
|
+
peers: "peers",
|
|
4044
|
+
}), T.Http({ method: "POST", path: "/zones/{zone_id}/secondary_dns/incoming" }));
|
|
4045
|
+
export const CreateZoneTransferIncomingResponse =
|
|
4046
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
4047
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4048
|
+
autoRefreshSeconds: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
4049
|
+
checkedTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4050
|
+
createdTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4051
|
+
modifiedTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4052
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4053
|
+
peers: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
4054
|
+
soaSerial: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
4055
|
+
}).pipe(Schema.encodeKeys({
|
|
4056
|
+
id: "id",
|
|
4057
|
+
autoRefreshSeconds: "auto_refresh_seconds",
|
|
4058
|
+
checkedTime: "checked_time",
|
|
4059
|
+
createdTime: "created_time",
|
|
4060
|
+
modifiedTime: "modified_time",
|
|
4061
|
+
name: "name",
|
|
4062
|
+
peers: "peers",
|
|
4063
|
+
soaSerial: "soa_serial",
|
|
4064
|
+
}));
|
|
4065
|
+
export const createZoneTransferIncoming = API.make(() => ({
|
|
4066
|
+
input: CreateZoneTransferIncomingRequest,
|
|
4067
|
+
output: CreateZoneTransferIncomingResponse,
|
|
4068
|
+
errors: [],
|
|
4069
|
+
}));
|
|
4070
|
+
export const UpdateZoneTransferIncomingRequest =
|
|
4071
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
4072
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
4073
|
+
autoRefreshSeconds: Schema.Number,
|
|
4074
|
+
name: Schema.String,
|
|
4075
|
+
peers: Schema.Array(Schema.String),
|
|
4076
|
+
}).pipe(Schema.encodeKeys({
|
|
4077
|
+
autoRefreshSeconds: "auto_refresh_seconds",
|
|
4078
|
+
name: "name",
|
|
4079
|
+
peers: "peers",
|
|
4080
|
+
}), T.Http({ method: "PUT", path: "/zones/{zone_id}/secondary_dns/incoming" }));
|
|
4081
|
+
export const UpdateZoneTransferIncomingResponse =
|
|
4082
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
4083
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4084
|
+
autoRefreshSeconds: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
4085
|
+
checkedTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4086
|
+
createdTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4087
|
+
modifiedTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4088
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4089
|
+
peers: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
4090
|
+
soaSerial: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
4091
|
+
}).pipe(Schema.encodeKeys({
|
|
4092
|
+
id: "id",
|
|
4093
|
+
autoRefreshSeconds: "auto_refresh_seconds",
|
|
4094
|
+
checkedTime: "checked_time",
|
|
4095
|
+
createdTime: "created_time",
|
|
4096
|
+
modifiedTime: "modified_time",
|
|
4097
|
+
name: "name",
|
|
4098
|
+
peers: "peers",
|
|
4099
|
+
soaSerial: "soa_serial",
|
|
4100
|
+
}));
|
|
4101
|
+
export const updateZoneTransferIncoming = API.make(() => ({
|
|
4102
|
+
input: UpdateZoneTransferIncomingRequest,
|
|
4103
|
+
output: UpdateZoneTransferIncomingResponse,
|
|
4104
|
+
errors: [],
|
|
4105
|
+
}));
|
|
4106
|
+
export const DeleteZoneTransferIncomingRequest =
|
|
4107
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
4108
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
4109
|
+
}).pipe(T.Http({
|
|
4110
|
+
method: "DELETE",
|
|
4111
|
+
path: "/zones/{zone_id}/secondary_dns/incoming",
|
|
4112
|
+
}));
|
|
4113
|
+
export const DeleteZoneTransferIncomingResponse =
|
|
4114
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
4115
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4116
|
+
});
|
|
4117
|
+
export const deleteZoneTransferIncoming = API.make(() => ({
|
|
4118
|
+
input: DeleteZoneTransferIncomingRequest,
|
|
4119
|
+
output: DeleteZoneTransferIncomingResponse,
|
|
4120
|
+
errors: [],
|
|
4121
|
+
}));
|
|
4122
|
+
export const GetZoneTransferOutgoingRequest =
|
|
4123
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
4124
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
4125
|
+
}).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/secondary_dns/outgoing" }));
|
|
4126
|
+
export const GetZoneTransferOutgoingResponse =
|
|
4127
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
4128
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4129
|
+
checkedTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4130
|
+
createdTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4131
|
+
lastTransferredTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4132
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4133
|
+
peers: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
4134
|
+
soaSerial: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
4135
|
+
}).pipe(Schema.encodeKeys({
|
|
4136
|
+
id: "id",
|
|
4137
|
+
checkedTime: "checked_time",
|
|
4138
|
+
createdTime: "created_time",
|
|
4139
|
+
lastTransferredTime: "last_transferred_time",
|
|
4140
|
+
name: "name",
|
|
4141
|
+
peers: "peers",
|
|
4142
|
+
soaSerial: "soa_serial",
|
|
4143
|
+
}));
|
|
4144
|
+
export const getZoneTransferOutgoing = API.make(() => ({
|
|
4145
|
+
input: GetZoneTransferOutgoingRequest,
|
|
4146
|
+
output: GetZoneTransferOutgoingResponse,
|
|
4147
|
+
errors: [],
|
|
4148
|
+
}));
|
|
4149
|
+
export const CreateZoneTransferOutgoingRequest =
|
|
4150
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
4151
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
4152
|
+
name: Schema.String,
|
|
4153
|
+
peers: Schema.Array(Schema.String),
|
|
4154
|
+
}).pipe(T.Http({ method: "POST", path: "/zones/{zone_id}/secondary_dns/outgoing" }));
|
|
4155
|
+
export const CreateZoneTransferOutgoingResponse =
|
|
4156
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
4157
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4158
|
+
checkedTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4159
|
+
createdTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4160
|
+
lastTransferredTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4161
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4162
|
+
peers: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
4163
|
+
soaSerial: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
4164
|
+
}).pipe(Schema.encodeKeys({
|
|
4165
|
+
id: "id",
|
|
4166
|
+
checkedTime: "checked_time",
|
|
4167
|
+
createdTime: "created_time",
|
|
4168
|
+
lastTransferredTime: "last_transferred_time",
|
|
4169
|
+
name: "name",
|
|
4170
|
+
peers: "peers",
|
|
4171
|
+
soaSerial: "soa_serial",
|
|
4172
|
+
}));
|
|
4173
|
+
export const createZoneTransferOutgoing = API.make(() => ({
|
|
4174
|
+
input: CreateZoneTransferOutgoingRequest,
|
|
4175
|
+
output: CreateZoneTransferOutgoingResponse,
|
|
4176
|
+
errors: [],
|
|
4177
|
+
}));
|
|
4178
|
+
export const UpdateZoneTransferOutgoingRequest =
|
|
4179
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
4180
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
4181
|
+
name: Schema.String,
|
|
4182
|
+
peers: Schema.Array(Schema.String),
|
|
4183
|
+
}).pipe(T.Http({ method: "PUT", path: "/zones/{zone_id}/secondary_dns/outgoing" }));
|
|
4184
|
+
export const UpdateZoneTransferOutgoingResponse =
|
|
4185
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
4186
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4187
|
+
checkedTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4188
|
+
createdTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4189
|
+
lastTransferredTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4190
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4191
|
+
peers: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
4192
|
+
soaSerial: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
4193
|
+
}).pipe(Schema.encodeKeys({
|
|
4194
|
+
id: "id",
|
|
4195
|
+
checkedTime: "checked_time",
|
|
4196
|
+
createdTime: "created_time",
|
|
4197
|
+
lastTransferredTime: "last_transferred_time",
|
|
4198
|
+
name: "name",
|
|
4199
|
+
peers: "peers",
|
|
4200
|
+
soaSerial: "soa_serial",
|
|
4201
|
+
}));
|
|
4202
|
+
export const updateZoneTransferOutgoing = API.make(() => ({
|
|
4203
|
+
input: UpdateZoneTransferOutgoingRequest,
|
|
4204
|
+
output: UpdateZoneTransferOutgoingResponse,
|
|
4205
|
+
errors: [],
|
|
4206
|
+
}));
|
|
4207
|
+
export const DeleteZoneTransferOutgoingRequest =
|
|
4208
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
4209
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
4210
|
+
}).pipe(T.Http({
|
|
4211
|
+
method: "DELETE",
|
|
4212
|
+
path: "/zones/{zone_id}/secondary_dns/outgoing",
|
|
4213
|
+
}));
|
|
4214
|
+
export const DeleteZoneTransferOutgoingResponse =
|
|
4215
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
4216
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4217
|
+
});
|
|
4218
|
+
export const deleteZoneTransferOutgoing = API.make(() => ({
|
|
4219
|
+
input: DeleteZoneTransferOutgoingRequest,
|
|
4220
|
+
output: DeleteZoneTransferOutgoingResponse,
|
|
4221
|
+
errors: [],
|
|
4222
|
+
}));
|
|
4223
|
+
export const EnableZoneTransferOutgoingRequest =
|
|
4224
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
4225
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
4226
|
+
body: Schema.Unknown.pipe(T.HttpBody()),
|
|
4227
|
+
}).pipe(T.Http({
|
|
4228
|
+
method: "POST",
|
|
4229
|
+
path: "/zones/{zone_id}/secondary_dns/outgoing/enable",
|
|
4230
|
+
}));
|
|
4231
|
+
export const EnableZoneTransferOutgoingResponse =
|
|
4232
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.String;
|
|
4233
|
+
export const enableZoneTransferOutgoing = API.make(() => ({
|
|
4234
|
+
input: EnableZoneTransferOutgoingRequest,
|
|
4235
|
+
output: EnableZoneTransferOutgoingResponse,
|
|
4236
|
+
errors: [],
|
|
4237
|
+
}));
|
|
4238
|
+
export const DisableZoneTransferOutgoingRequest =
|
|
4239
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
4240
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
4241
|
+
body: Schema.Unknown.pipe(T.HttpBody()),
|
|
4242
|
+
}).pipe(T.Http({
|
|
4243
|
+
method: "POST",
|
|
4244
|
+
path: "/zones/{zone_id}/secondary_dns/outgoing/disable",
|
|
4245
|
+
}));
|
|
4246
|
+
export const DisableZoneTransferOutgoingResponse =
|
|
4247
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.String;
|
|
4248
|
+
export const disableZoneTransferOutgoing = API.make(() => ({
|
|
4249
|
+
input: DisableZoneTransferOutgoingRequest,
|
|
4250
|
+
output: DisableZoneTransferOutgoingResponse,
|
|
4251
|
+
errors: [],
|
|
4252
|
+
}));
|
|
4253
|
+
export const GetZoneTransferOutgoingStatusRequest =
|
|
4254
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
4255
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
4256
|
+
}).pipe(T.Http({
|
|
4257
|
+
method: "GET",
|
|
4258
|
+
path: "/zones/{zone_id}/secondary_dns/outgoing/status",
|
|
4259
|
+
}));
|
|
4260
|
+
export const GetZoneTransferOutgoingStatusResponse =
|
|
4261
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
|
|
4262
|
+
export const getZoneTransferOutgoingStatus = API.make(() => ({
|
|
4263
|
+
input: GetZoneTransferOutgoingStatusRequest,
|
|
4264
|
+
output: GetZoneTransferOutgoingStatusResponse,
|
|
4265
|
+
errors: [],
|
|
4266
|
+
}));
|
|
4267
|
+
export const GetZoneTransferPeerRequest =
|
|
4268
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
4269
|
+
peerId: Schema.String.pipe(T.HttpPath("peerId")),
|
|
4270
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
4271
|
+
}).pipe(T.Http({
|
|
4272
|
+
method: "GET",
|
|
4273
|
+
path: "/accounts/{account_id}/secondary_dns/peers/{peerId}",
|
|
4274
|
+
}));
|
|
4275
|
+
export const GetZoneTransferPeerResponse =
|
|
4276
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
4277
|
+
id: Schema.String,
|
|
4278
|
+
name: Schema.String,
|
|
4279
|
+
ip: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4280
|
+
ixfrEnable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
4281
|
+
port: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
4282
|
+
tsigId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4283
|
+
}).pipe(Schema.encodeKeys({
|
|
4284
|
+
id: "id",
|
|
4285
|
+
name: "name",
|
|
4286
|
+
ip: "ip",
|
|
4287
|
+
ixfrEnable: "ixfr_enable",
|
|
4288
|
+
port: "port",
|
|
4289
|
+
tsigId: "tsig_id",
|
|
4290
|
+
}));
|
|
4291
|
+
export const getZoneTransferPeer = API.make(() => ({
|
|
4292
|
+
input: GetZoneTransferPeerRequest,
|
|
4293
|
+
output: GetZoneTransferPeerResponse,
|
|
4294
|
+
errors: [],
|
|
4295
|
+
}));
|
|
4296
|
+
export const ListZoneTransferPeersRequest =
|
|
4297
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
4298
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
4299
|
+
}).pipe(T.Http({
|
|
4300
|
+
method: "GET",
|
|
4301
|
+
path: "/accounts/{account_id}/secondary_dns/peers",
|
|
4302
|
+
}));
|
|
4303
|
+
export const ListZoneTransferPeersResponse =
|
|
4304
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
|
|
4305
|
+
id: Schema.String,
|
|
4306
|
+
name: Schema.String,
|
|
4307
|
+
ip: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4308
|
+
ixfrEnable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
4309
|
+
port: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
4310
|
+
tsigId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4311
|
+
}).pipe(Schema.encodeKeys({
|
|
4312
|
+
id: "id",
|
|
4313
|
+
name: "name",
|
|
4314
|
+
ip: "ip",
|
|
4315
|
+
ixfrEnable: "ixfr_enable",
|
|
4316
|
+
port: "port",
|
|
4317
|
+
tsigId: "tsig_id",
|
|
4318
|
+
})));
|
|
4319
|
+
export const listZoneTransferPeers = API.make(() => ({
|
|
4320
|
+
input: ListZoneTransferPeersRequest,
|
|
4321
|
+
output: ListZoneTransferPeersResponse,
|
|
4322
|
+
errors: [],
|
|
4323
|
+
}));
|
|
4324
|
+
export const CreateZoneTransferPeerRequest =
|
|
4325
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
4326
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
4327
|
+
name: Schema.String,
|
|
4328
|
+
}).pipe(T.Http({
|
|
4329
|
+
method: "POST",
|
|
4330
|
+
path: "/accounts/{account_id}/secondary_dns/peers",
|
|
4331
|
+
}));
|
|
4332
|
+
export const CreateZoneTransferPeerResponse =
|
|
4333
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
4334
|
+
id: Schema.String,
|
|
4335
|
+
name: Schema.String,
|
|
4336
|
+
ip: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4337
|
+
ixfrEnable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
4338
|
+
port: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
4339
|
+
tsigId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4340
|
+
}).pipe(Schema.encodeKeys({
|
|
4341
|
+
id: "id",
|
|
4342
|
+
name: "name",
|
|
4343
|
+
ip: "ip",
|
|
4344
|
+
ixfrEnable: "ixfr_enable",
|
|
4345
|
+
port: "port",
|
|
4346
|
+
tsigId: "tsig_id",
|
|
4347
|
+
}));
|
|
4348
|
+
export const createZoneTransferPeer = API.make(() => ({
|
|
4349
|
+
input: CreateZoneTransferPeerRequest,
|
|
4350
|
+
output: CreateZoneTransferPeerResponse,
|
|
4351
|
+
errors: [],
|
|
4352
|
+
}));
|
|
4353
|
+
export const UpdateZoneTransferPeerRequest =
|
|
4354
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
4355
|
+
peerId: Schema.String.pipe(T.HttpPath("peerId")),
|
|
4356
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
4357
|
+
name: Schema.String,
|
|
4358
|
+
ip: Schema.optional(Schema.String),
|
|
4359
|
+
ixfrEnable: Schema.optional(Schema.Boolean),
|
|
4360
|
+
port: Schema.optional(Schema.Number),
|
|
4361
|
+
tsigId: Schema.optional(Schema.String),
|
|
4362
|
+
}).pipe(Schema.encodeKeys({
|
|
4363
|
+
name: "name",
|
|
4364
|
+
ip: "ip",
|
|
4365
|
+
ixfrEnable: "ixfr_enable",
|
|
4366
|
+
port: "port",
|
|
4367
|
+
tsigId: "tsig_id",
|
|
4368
|
+
}), T.Http({
|
|
4369
|
+
method: "PUT",
|
|
4370
|
+
path: "/accounts/{account_id}/secondary_dns/peers/{peerId}",
|
|
4371
|
+
}));
|
|
4372
|
+
export const UpdateZoneTransferPeerResponse =
|
|
4373
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
4374
|
+
id: Schema.String,
|
|
4375
|
+
name: Schema.String,
|
|
4376
|
+
ip: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4377
|
+
ixfrEnable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
4378
|
+
port: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
4379
|
+
tsigId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4380
|
+
}).pipe(Schema.encodeKeys({
|
|
4381
|
+
id: "id",
|
|
4382
|
+
name: "name",
|
|
4383
|
+
ip: "ip",
|
|
4384
|
+
ixfrEnable: "ixfr_enable",
|
|
4385
|
+
port: "port",
|
|
4386
|
+
tsigId: "tsig_id",
|
|
4387
|
+
}));
|
|
4388
|
+
export const updateZoneTransferPeer = API.make(() => ({
|
|
4389
|
+
input: UpdateZoneTransferPeerRequest,
|
|
4390
|
+
output: UpdateZoneTransferPeerResponse,
|
|
4391
|
+
errors: [],
|
|
4392
|
+
}));
|
|
4393
|
+
export const DeleteZoneTransferPeerRequest =
|
|
4394
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
4395
|
+
peerId: Schema.String.pipe(T.HttpPath("peerId")),
|
|
4396
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
4397
|
+
}).pipe(T.Http({
|
|
4398
|
+
method: "DELETE",
|
|
4399
|
+
path: "/accounts/{account_id}/secondary_dns/peers/{peerId}",
|
|
4400
|
+
}));
|
|
4401
|
+
export const DeleteZoneTransferPeerResponse =
|
|
4402
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
4403
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4404
|
+
});
|
|
4405
|
+
export const deleteZoneTransferPeer = API.make(() => ({
|
|
4406
|
+
input: DeleteZoneTransferPeerRequest,
|
|
4407
|
+
output: DeleteZoneTransferPeerResponse,
|
|
4408
|
+
errors: [],
|
|
4409
|
+
}));
|
|
4410
|
+
export const GetZoneTransferTsigRequest =
|
|
4411
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
4412
|
+
tsigId: Schema.String.pipe(T.HttpPath("tsigId")),
|
|
4413
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
4414
|
+
}).pipe(T.Http({
|
|
4415
|
+
method: "GET",
|
|
4416
|
+
path: "/accounts/{account_id}/secondary_dns/tsigs/{tsigId}",
|
|
4417
|
+
}));
|
|
4418
|
+
export const GetZoneTransferTsigResponse =
|
|
4419
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
4420
|
+
id: Schema.String,
|
|
4421
|
+
algo: Schema.String,
|
|
4422
|
+
name: Schema.String,
|
|
4423
|
+
secret: Schema.String,
|
|
4424
|
+
});
|
|
4425
|
+
export const getZoneTransferTsig = API.make(() => ({
|
|
4426
|
+
input: GetZoneTransferTsigRequest,
|
|
4427
|
+
output: GetZoneTransferTsigResponse,
|
|
4428
|
+
errors: [],
|
|
4429
|
+
}));
|
|
4430
|
+
export const ListZoneTransferTsigsRequest =
|
|
4431
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
4432
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
4433
|
+
}).pipe(T.Http({
|
|
4434
|
+
method: "GET",
|
|
4435
|
+
path: "/accounts/{account_id}/secondary_dns/tsigs",
|
|
4436
|
+
}));
|
|
4437
|
+
export const ListZoneTransferTsigsResponse =
|
|
4438
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
|
|
4439
|
+
id: Schema.String,
|
|
4440
|
+
algo: Schema.String,
|
|
4441
|
+
name: Schema.String,
|
|
4442
|
+
secret: Schema.String,
|
|
4443
|
+
}));
|
|
4444
|
+
export const listZoneTransferTsigs = API.make(() => ({
|
|
4445
|
+
input: ListZoneTransferTsigsRequest,
|
|
4446
|
+
output: ListZoneTransferTsigsResponse,
|
|
4447
|
+
errors: [],
|
|
4448
|
+
}));
|
|
4449
|
+
export const CreateZoneTransferTsigRequest =
|
|
4450
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
4451
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
4452
|
+
algo: Schema.String,
|
|
4453
|
+
name: Schema.String,
|
|
4454
|
+
secret: Schema.String,
|
|
4455
|
+
}).pipe(T.Http({
|
|
4456
|
+
method: "POST",
|
|
4457
|
+
path: "/accounts/{account_id}/secondary_dns/tsigs",
|
|
4458
|
+
}));
|
|
4459
|
+
export const CreateZoneTransferTsigResponse =
|
|
4460
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
4461
|
+
id: Schema.String,
|
|
4462
|
+
algo: Schema.String,
|
|
4463
|
+
name: Schema.String,
|
|
4464
|
+
secret: Schema.String,
|
|
4465
|
+
});
|
|
4466
|
+
export const createZoneTransferTsig = API.make(() => ({
|
|
4467
|
+
input: CreateZoneTransferTsigRequest,
|
|
4468
|
+
output: CreateZoneTransferTsigResponse,
|
|
4469
|
+
errors: [],
|
|
4470
|
+
}));
|
|
4471
|
+
export const UpdateZoneTransferTsigRequest =
|
|
4472
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
4473
|
+
tsigId: Schema.String.pipe(T.HttpPath("tsigId")),
|
|
4474
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
4475
|
+
algo: Schema.String,
|
|
4476
|
+
name: Schema.String,
|
|
4477
|
+
secret: Schema.String,
|
|
4478
|
+
}).pipe(T.Http({
|
|
4479
|
+
method: "PUT",
|
|
4480
|
+
path: "/accounts/{account_id}/secondary_dns/tsigs/{tsigId}",
|
|
4481
|
+
}));
|
|
4482
|
+
export const UpdateZoneTransferTsigResponse =
|
|
4483
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
4484
|
+
id: Schema.String,
|
|
4485
|
+
algo: Schema.String,
|
|
4486
|
+
name: Schema.String,
|
|
4487
|
+
secret: Schema.String,
|
|
4488
|
+
});
|
|
4489
|
+
export const updateZoneTransferTsig = API.make(() => ({
|
|
4490
|
+
input: UpdateZoneTransferTsigRequest,
|
|
4491
|
+
output: UpdateZoneTransferTsigResponse,
|
|
4492
|
+
errors: [],
|
|
4493
|
+
}));
|
|
4494
|
+
export const DeleteZoneTransferTsigRequest =
|
|
4495
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
4496
|
+
tsigId: Schema.String.pipe(T.HttpPath("tsigId")),
|
|
4497
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
4498
|
+
}).pipe(T.Http({
|
|
4499
|
+
method: "DELETE",
|
|
4500
|
+
path: "/accounts/{account_id}/secondary_dns/tsigs/{tsigId}",
|
|
4501
|
+
}));
|
|
4502
|
+
export const DeleteZoneTransferTsigResponse =
|
|
4503
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
4504
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4505
|
+
});
|
|
4506
|
+
export const deleteZoneTransferTsig = API.make(() => ({
|
|
4507
|
+
input: DeleteZoneTransferTsigRequest,
|
|
4508
|
+
output: DeleteZoneTransferTsigResponse,
|
|
4509
|
+
errors: [],
|
|
4510
|
+
}));
|
|
4511
|
+
//# sourceMappingURL=dns.js.map
|