@distilled.cloud/cloudflare 0.0.0-john
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +59 -0
- package/lib/auth.d.ts +14 -0
- package/lib/auth.d.ts.map +1 -0
- package/lib/auth.js +13 -0
- package/lib/auth.js.map +1 -0
- package/lib/category.d.ts +2 -0
- package/lib/category.d.ts.map +1 -0
- package/lib/category.js +2 -0
- package/lib/category.js.map +1 -0
- package/lib/client/api.d.ts +12 -0
- package/lib/client/api.d.ts.map +1 -0
- package/lib/client/api.js +292 -0
- package/lib/client/api.js.map +1 -0
- package/lib/client/index.d.ts +8 -0
- package/lib/client/index.d.ts.map +1 -0
- package/lib/client/index.js +8 -0
- package/lib/client/index.js.map +1 -0
- package/lib/credentials.d.ts +68 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +136 -0
- package/lib/credentials.js.map +1 -0
- package/lib/errors.d.ts +48 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +31 -0
- package/lib/errors.js.map +1 -0
- package/lib/index.d.ts +10 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +10 -0
- package/lib/index.js.map +1 -0
- package/lib/retry.d.ts +14 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +14 -0
- package/lib/retry.js.map +1 -0
- package/lib/schemas.d.ts +29 -0
- package/lib/schemas.d.ts.map +1 -0
- package/lib/schemas.js +34 -0
- package/lib/schemas.js.map +1 -0
- package/lib/sensitive.d.ts +5 -0
- package/lib/sensitive.d.ts.map +1 -0
- package/lib/sensitive.js +5 -0
- package/lib/sensitive.js.map +1 -0
- package/lib/services/abuse-reports.d.ts +296 -0
- package/lib/services/abuse-reports.d.ts.map +1 -0
- package/lib/services/abuse-reports.js +414 -0
- package/lib/services/abuse-reports.js.map +1 -0
- package/lib/services/accounts.d.ts +766 -0
- package/lib/services/accounts.d.ts.map +1 -0
- package/lib/services/accounts.js +860 -0
- package/lib/services/accounts.js.map +1 -0
- package/lib/services/acm.d.ts +73 -0
- package/lib/services/acm.d.ts.map +1 -0
- package/lib/services/acm.js +80 -0
- package/lib/services/acm.js.map +1 -0
- package/lib/services/addressing.d.ts +1321 -0
- package/lib/services/addressing.d.ts.map +1 -0
- package/lib/services/addressing.js +1863 -0
- package/lib/services/addressing.js.map +1 -0
- package/lib/services/ai-gateway.d.ts +1137 -0
- package/lib/services/ai-gateway.d.ts.map +1 -0
- package/lib/services/ai-gateway.js +1830 -0
- package/lib/services/ai-gateway.js.map +1 -0
- package/lib/services/ai.d.ts +297 -0
- package/lib/services/ai.d.ts.map +1 -0
- package/lib/services/ai.js +352 -0
- package/lib/services/ai.js.map +1 -0
- package/lib/services/aisearch.d.ts +1069 -0
- package/lib/services/aisearch.d.ts.map +1 -0
- package/lib/services/aisearch.js +2542 -0
- package/lib/services/aisearch.js.map +1 -0
- package/lib/services/alerting.d.ts +855 -0
- package/lib/services/alerting.d.ts.map +1 -0
- package/lib/services/alerting.js +1445 -0
- package/lib/services/alerting.js.map +1 -0
- package/lib/services/api-gateway.d.ts +1088 -0
- package/lib/services/api-gateway.d.ts.map +1 -0
- package/lib/services/api-gateway.js +1655 -0
- package/lib/services/api-gateway.js.map +1 -0
- package/lib/services/argo.d.ts +101 -0
- package/lib/services/argo.d.ts.map +1 -0
- package/lib/services/argo.js +113 -0
- package/lib/services/argo.js.map +1 -0
- package/lib/services/audit-logs.d.ts +46 -0
- package/lib/services/audit-logs.d.ts.map +1 -0
- package/lib/services/audit-logs.js +37 -0
- package/lib/services/audit-logs.js.map +1 -0
- package/lib/services/billing.d.ts +62 -0
- package/lib/services/billing.d.ts.map +1 -0
- package/lib/services/billing.js +102 -0
- package/lib/services/billing.js.map +1 -0
- package/lib/services/bot-management.d.ts +124 -0
- package/lib/services/bot-management.d.ts.map +1 -0
- package/lib/services/bot-management.js +262 -0
- package/lib/services/bot-management.js.map +1 -0
- package/lib/services/botnet-feed.d.ts +65 -0
- package/lib/services/botnet-feed.d.ts.map +1 -0
- package/lib/services/botnet-feed.js +88 -0
- package/lib/services/botnet-feed.js.map +1 -0
- package/lib/services/brand-protection.d.ts +194 -0
- package/lib/services/brand-protection.d.ts.map +1 -0
- package/lib/services/brand-protection.js +221 -0
- package/lib/services/brand-protection.js.map +1 -0
- package/lib/services/browser-rendering.d.ts +857 -0
- package/lib/services/browser-rendering.d.ts.map +1 -0
- package/lib/services/browser-rendering.js +1142 -0
- package/lib/services/browser-rendering.js.map +1 -0
- package/lib/services/cache.d.ts +287 -0
- package/lib/services/cache.d.ts.map +1 -0
- package/lib/services/cache.js +354 -0
- package/lib/services/cache.js.map +1 -0
- package/lib/services/calls.d.ts +223 -0
- package/lib/services/calls.d.ts.map +1 -0
- package/lib/services/calls.js +188 -0
- package/lib/services/calls.js.map +1 -0
- package/lib/services/certificate-authorities.d.ts +40 -0
- package/lib/services/certificate-authorities.d.ts.map +1 -0
- package/lib/services/certificate-authorities.js +49 -0
- package/lib/services/certificate-authorities.js.map +1 -0
- package/lib/services/client-certificates.d.ts +288 -0
- package/lib/services/client-certificates.d.ts.map +1 -0
- package/lib/services/client-certificates.js +379 -0
- package/lib/services/client-certificates.js.map +1 -0
- package/lib/services/cloud-connector.d.ts +88 -0
- package/lib/services/cloud-connector.d.ts.map +1 -0
- package/lib/services/cloud-connector.js +97 -0
- package/lib/services/cloud-connector.js.map +1 -0
- package/lib/services/cloudforce-one.d.ts +1387 -0
- package/lib/services/cloudforce-one.d.ts.map +1 -0
- package/lib/services/cloudforce-one.js +1741 -0
- package/lib/services/cloudforce-one.js.map +1 -0
- package/lib/services/connectivity.d.ts +291 -0
- package/lib/services/connectivity.d.ts.map +1 -0
- package/lib/services/connectivity.js +404 -0
- package/lib/services/connectivity.js.map +1 -0
- package/lib/services/content-scanning.d.ts +156 -0
- package/lib/services/content-scanning.d.ts.map +1 -0
- package/lib/services/content-scanning.js +175 -0
- package/lib/services/content-scanning.js.map +1 -0
- package/lib/services/custom-certificates.d.ts +240 -0
- package/lib/services/custom-certificates.d.ts.map +1 -0
- package/lib/services/custom-certificates.js +336 -0
- package/lib/services/custom-certificates.js.map +1 -0
- package/lib/services/custom-hostnames.d.ts +590 -0
- package/lib/services/custom-hostnames.d.ts.map +1 -0
- package/lib/services/custom-hostnames.js +1204 -0
- package/lib/services/custom-hostnames.js.map +1 -0
- package/lib/services/custom-nameservers.d.ts +87 -0
- package/lib/services/custom-nameservers.d.ts.map +1 -0
- package/lib/services/custom-nameservers.js +95 -0
- package/lib/services/custom-nameservers.js.map +1 -0
- package/lib/services/custom-pages.d.ts +89 -0
- package/lib/services/custom-pages.d.ts.map +1 -0
- package/lib/services/custom-pages.js +140 -0
- package/lib/services/custom-pages.js.map +1 -0
- package/lib/services/d1.d.ts +392 -0
- package/lib/services/d1.d.ts.map +1 -0
- package/lib/services/d1.js +487 -0
- package/lib/services/d1.js.map +1 -0
- package/lib/services/dcv-delegation.d.ts +24 -0
- package/lib/services/dcv-delegation.d.ts.map +1 -0
- package/lib/services/dcv-delegation.js +24 -0
- package/lib/services/dcv-delegation.js.map +1 -0
- package/lib/services/diagnostics.d.ts +208 -0
- package/lib/services/diagnostics.d.ts.map +1 -0
- package/lib/services/diagnostics.js +288 -0
- package/lib/services/diagnostics.js.map +1 -0
- package/lib/services/dns-firewall.d.ts +317 -0
- package/lib/services/dns-firewall.d.ts.map +1 -0
- package/lib/services/dns-firewall.js +400 -0
- package/lib/services/dns-firewall.js.map +1 -0
- package/lib/services/dns.d.ts +3065 -0
- package/lib/services/dns.d.ts.map +1 -0
- package/lib/services/dns.js +4627 -0
- package/lib/services/dns.js.map +1 -0
- package/lib/services/durable-objects.d.ts +92 -0
- package/lib/services/durable-objects.d.ts.map +1 -0
- package/lib/services/durable-objects.js +103 -0
- package/lib/services/durable-objects.js.map +1 -0
- package/lib/services/email-routing.d.ts +598 -0
- package/lib/services/email-routing.d.ts.map +1 -0
- package/lib/services/email-routing.js +715 -0
- package/lib/services/email-routing.js.map +1 -0
- package/lib/services/email-security.d.ts +1389 -0
- package/lib/services/email-security.d.ts.map +1 -0
- package/lib/services/email-security.js +2261 -0
- package/lib/services/email-security.js.map +1 -0
- package/lib/services/filters.d.ts +197 -0
- package/lib/services/filters.d.ts.map +1 -0
- package/lib/services/filters.js +168 -0
- package/lib/services/filters.js.map +1 -0
- package/lib/services/firewall.d.ts +1352 -0
- package/lib/services/firewall.d.ts.map +1 -0
- package/lib/services/firewall.js +2084 -0
- package/lib/services/firewall.js.map +1 -0
- package/lib/services/healthchecks.d.ts +507 -0
- package/lib/services/healthchecks.d.ts.map +1 -0
- package/lib/services/healthchecks.js +867 -0
- package/lib/services/healthchecks.js.map +1 -0
- package/lib/services/hostnames.d.ts +86 -0
- package/lib/services/hostnames.d.ts.map +1 -0
- package/lib/services/hostnames.js +111 -0
- package/lib/services/hostnames.js.map +1 -0
- package/lib/services/hyperdrive.d.ts +203 -0
- package/lib/services/hyperdrive.d.ts.map +1 -0
- package/lib/services/hyperdrive.js +300 -0
- package/lib/services/hyperdrive.js.map +1 -0
- package/lib/services/iam.d.ts +657 -0
- package/lib/services/iam.d.ts.map +1 -0
- package/lib/services/iam.js +843 -0
- package/lib/services/iam.js.map +1 -0
- package/lib/services/images.d.ts +427 -0
- package/lib/services/images.d.ts.map +1 -0
- package/lib/services/images.js +444 -0
- package/lib/services/images.js.map +1 -0
- package/lib/services/intel.d.ts +865 -0
- package/lib/services/intel.d.ts.map +1 -0
- package/lib/services/intel.js +1266 -0
- package/lib/services/intel.js.map +1 -0
- package/lib/services/ips.d.ts +28 -0
- package/lib/services/ips.d.ts.map +1 -0
- package/lib/services/ips.js +39 -0
- package/lib/services/ips.js.map +1 -0
- package/lib/services/keyless-certificates.d.ts +197 -0
- package/lib/services/keyless-certificates.d.ts.map +1 -0
- package/lib/services/keyless-certificates.js +229 -0
- package/lib/services/keyless-certificates.js.map +1 -0
- package/lib/services/kv.d.ts +369 -0
- package/lib/services/kv.d.ts.map +1 -0
- package/lib/services/kv.js +453 -0
- package/lib/services/kv.js.map +1 -0
- package/lib/services/leaked-credential-checks.d.ts +129 -0
- package/lib/services/leaked-credential-checks.d.ts.map +1 -0
- package/lib/services/leaked-credential-checks.js +138 -0
- package/lib/services/leaked-credential-checks.js.map +1 -0
- package/lib/services/load-balancers.d.ts +1973 -0
- package/lib/services/load-balancers.d.ts.map +1 -0
- package/lib/services/load-balancers.js +3181 -0
- package/lib/services/load-balancers.js.map +1 -0
- package/lib/services/logpush.d.ts +401 -0
- package/lib/services/logpush.d.ts.map +1 -0
- package/lib/services/logpush.js +732 -0
- package/lib/services/logpush.js.map +1 -0
- package/lib/services/logs.d.ts +125 -0
- package/lib/services/logs.d.ts.map +1 -0
- package/lib/services/logs.js +149 -0
- package/lib/services/logs.js.map +1 -0
- package/lib/services/magic-cloud-networking.d.ts +1892 -0
- package/lib/services/magic-cloud-networking.d.ts.map +1 -0
- package/lib/services/magic-cloud-networking.js +5291 -0
- package/lib/services/magic-cloud-networking.js.map +1 -0
- package/lib/services/magic-network-monitoring.d.ts +379 -0
- package/lib/services/magic-network-monitoring.d.ts.map +1 -0
- package/lib/services/magic-network-monitoring.js +557 -0
- package/lib/services/magic-network-monitoring.js.map +1 -0
- package/lib/services/magic-transit.d.ts +3886 -0
- package/lib/services/magic-transit.d.ts.map +1 -0
- package/lib/services/magic-transit.js +6284 -0
- package/lib/services/magic-transit.js.map +1 -0
- package/lib/services/managed-transforms.d.ts +79 -0
- package/lib/services/managed-transforms.d.ts.map +1 -0
- package/lib/services/managed-transforms.js +111 -0
- package/lib/services/managed-transforms.js.map +1 -0
- package/lib/services/memberships.d.ts +204 -0
- package/lib/services/memberships.d.ts.map +1 -0
- package/lib/services/memberships.js +308 -0
- package/lib/services/memberships.js.map +1 -0
- package/lib/services/mtls-certificates.d.ts +164 -0
- package/lib/services/mtls-certificates.d.ts.map +1 -0
- package/lib/services/mtls-certificates.js +192 -0
- package/lib/services/mtls-certificates.js.map +1 -0
- package/lib/services/network-interconnects.d.ts +410 -0
- package/lib/services/network-interconnects.d.ts.map +1 -0
- package/lib/services/network-interconnects.js +583 -0
- package/lib/services/network-interconnects.js.map +1 -0
- package/lib/services/organizations.d.ts +232 -0
- package/lib/services/organizations.d.ts.map +1 -0
- package/lib/services/organizations.js +370 -0
- package/lib/services/organizations.js.map +1 -0
- package/lib/services/origin-ca-certificates.d.ts +119 -0
- package/lib/services/origin-ca-certificates.d.ts.map +1 -0
- package/lib/services/origin-ca-certificates.js +183 -0
- package/lib/services/origin-ca-certificates.js.map +1 -0
- package/lib/services/origin-post-quantum-encryption.d.ts +50 -0
- package/lib/services/origin-post-quantum-encryption.d.ts.map +1 -0
- package/lib/services/origin-post-quantum-encryption.js +64 -0
- package/lib/services/origin-post-quantum-encryption.js.map +1 -0
- package/lib/services/origin-tls-client-auth.d.ts +308 -0
- package/lib/services/origin-tls-client-auth.d.ts.map +1 -0
- package/lib/services/origin-tls-client-auth.js +435 -0
- package/lib/services/origin-tls-client-auth.js.map +1 -0
- package/lib/services/page-rules.d.ts +773 -0
- package/lib/services/page-rules.d.ts.map +1 -0
- package/lib/services/page-rules.js +1373 -0
- package/lib/services/page-rules.js.map +1 -0
- package/lib/services/page-shield.d.ts +505 -0
- package/lib/services/page-shield.d.ts.map +1 -0
- package/lib/services/page-shield.js +520 -0
- package/lib/services/page-shield.js.map +1 -0
- package/lib/services/pages.d.ts +1949 -0
- package/lib/services/pages.d.ts.map +1 -0
- package/lib/services/pages.js +3030 -0
- package/lib/services/pages.js.map +1 -0
- package/lib/services/pipelines.d.ts +1716 -0
- package/lib/services/pipelines.d.ts.map +1 -0
- package/lib/services/pipelines.js +2991 -0
- package/lib/services/pipelines.js.map +1 -0
- package/lib/services/queues.d.ts +904 -0
- package/lib/services/queues.d.ts.map +1 -0
- package/lib/services/queues.js +1250 -0
- package/lib/services/queues.js.map +1 -0
- package/lib/services/r2-data-catalog.d.ts +341 -0
- package/lib/services/r2-data-catalog.d.ts.map +1 -0
- package/lib/services/r2-data-catalog.js +513 -0
- package/lib/services/r2-data-catalog.js.map +1 -0
- package/lib/services/r2.d.ts +1087 -0
- package/lib/services/r2.d.ts.map +1 -0
- package/lib/services/r2.js +1404 -0
- package/lib/services/r2.js.map +1 -0
- package/lib/services/radar.d.ts +9365 -0
- package/lib/services/radar.d.ts.map +1 -0
- package/lib/services/radar.js +20552 -0
- package/lib/services/radar.js.map +1 -0
- package/lib/services/rate-limits.d.ts +360 -0
- package/lib/services/rate-limits.d.ts.map +1 -0
- package/lib/services/rate-limits.js +545 -0
- package/lib/services/rate-limits.js.map +1 -0
- package/lib/services/realtime-kit.d.ts +2728 -0
- package/lib/services/realtime-kit.d.ts.map +1 -0
- package/lib/services/realtime-kit.js +5402 -0
- package/lib/services/realtime-kit.js.map +1 -0
- package/lib/services/registrar.d.ts +121 -0
- package/lib/services/registrar.d.ts.map +1 -0
- package/lib/services/registrar.js +167 -0
- package/lib/services/registrar.js.map +1 -0
- package/lib/services/request-tracers.d.ts +61 -0
- package/lib/services/request-tracers.d.ts.map +1 -0
- package/lib/services/request-tracers.js +85 -0
- package/lib/services/request-tracers.js.map +1 -0
- package/lib/services/resource-sharing.d.ts +622 -0
- package/lib/services/resource-sharing.d.ts.map +1 -0
- package/lib/services/resource-sharing.js +929 -0
- package/lib/services/resource-sharing.js.map +1 -0
- package/lib/services/rules.d.ts +346 -0
- package/lib/services/rules.d.ts.map +1 -0
- package/lib/services/rules.js +431 -0
- package/lib/services/rules.js.map +1 -0
- package/lib/services/rulesets.d.ts +3345 -0
- package/lib/services/rulesets.d.ts.map +1 -0
- package/lib/services/rulesets.js +7904 -0
- package/lib/services/rulesets.js.map +1 -0
- package/lib/services/rum.d.ts +314 -0
- package/lib/services/rum.d.ts.map +1 -0
- package/lib/services/rum.js +442 -0
- package/lib/services/rum.js.map +1 -0
- package/lib/services/schema-validation.d.ts +273 -0
- package/lib/services/schema-validation.d.ts.map +1 -0
- package/lib/services/schema-validation.js +365 -0
- package/lib/services/schema-validation.js.map +1 -0
- package/lib/services/secrets-store.d.ts +393 -0
- package/lib/services/secrets-store.d.ts.map +1 -0
- package/lib/services/secrets-store.js +452 -0
- package/lib/services/secrets-store.js.map +1 -0
- package/lib/services/security-center.d.ts +136 -0
- package/lib/services/security-center.d.ts.map +1 -0
- package/lib/services/security-center.js +196 -0
- package/lib/services/security-center.js.map +1 -0
- package/lib/services/security-txt.d.ts +105 -0
- package/lib/services/security-txt.d.ts.map +1 -0
- package/lib/services/security-txt.js +136 -0
- package/lib/services/security-txt.js.map +1 -0
- package/lib/services/snippets.d.ts +190 -0
- package/lib/services/snippets.d.ts.map +1 -0
- package/lib/services/snippets.js +221 -0
- package/lib/services/snippets.js.map +1 -0
- package/lib/services/spectrum.d.ts +350 -0
- package/lib/services/spectrum.d.ts.map +1 -0
- package/lib/services/spectrum.js +535 -0
- package/lib/services/spectrum.js.map +1 -0
- package/lib/services/speed.d.ts +257 -0
- package/lib/services/speed.d.ts.map +1 -0
- package/lib/services/speed.js +471 -0
- package/lib/services/speed.js.map +1 -0
- package/lib/services/ssl.d.ts +412 -0
- package/lib/services/ssl.d.ts.map +1 -0
- package/lib/services/ssl.js +755 -0
- package/lib/services/ssl.js.map +1 -0
- package/lib/services/stream.d.ts +1110 -0
- package/lib/services/stream.d.ts.map +1 -0
- package/lib/services/stream.js +1085 -0
- package/lib/services/stream.js.map +1 -0
- package/lib/services/token-validation.d.ts +662 -0
- package/lib/services/token-validation.d.ts.map +1 -0
- package/lib/services/token-validation.js +834 -0
- package/lib/services/token-validation.js.map +1 -0
- package/lib/services/turnstile.d.ts +272 -0
- package/lib/services/turnstile.d.ts.map +1 -0
- package/lib/services/turnstile.js +339 -0
- package/lib/services/turnstile.js.map +1 -0
- package/lib/services/url-normalization.d.ts +53 -0
- package/lib/services/url-normalization.d.ts.map +1 -0
- package/lib/services/url-normalization.js +52 -0
- package/lib/services/url-normalization.js.map +1 -0
- package/lib/services/url-scanner.d.ts +612 -0
- package/lib/services/url-scanner.d.ts.map +1 -0
- package/lib/services/url-scanner.js +915 -0
- package/lib/services/url-scanner.js.map +1 -0
- package/lib/services/user.d.ts +507 -0
- package/lib/services/user.d.ts.map +1 -0
- package/lib/services/user.js +634 -0
- package/lib/services/user.js.map +1 -0
- package/lib/services/vectorize.d.ts +297 -0
- package/lib/services/vectorize.d.ts.map +1 -0
- package/lib/services/vectorize.js +351 -0
- package/lib/services/vectorize.js.map +1 -0
- package/lib/services/waiting-rooms.d.ts +1149 -0
- package/lib/services/waiting-rooms.d.ts.map +1 -0
- package/lib/services/waiting-rooms.js +1859 -0
- package/lib/services/waiting-rooms.js.map +1 -0
- package/lib/services/web3.d.ts +289 -0
- package/lib/services/web3.d.ts.map +1 -0
- package/lib/services/web3.js +381 -0
- package/lib/services/web3.js.map +1 -0
- package/lib/services/workers-for-platforms.d.ts +1394 -0
- package/lib/services/workers-for-platforms.d.ts.map +1 -0
- package/lib/services/workers-for-platforms.js +2121 -0
- package/lib/services/workers-for-platforms.js.map +1 -0
- package/lib/services/workers.d.ts +3827 -0
- package/lib/services/workers.d.ts.map +1 -0
- package/lib/services/workers.js +6105 -0
- package/lib/services/workers.js.map +1 -0
- package/lib/services/workflows.d.ts +442 -0
- package/lib/services/workflows.d.ts.map +1 -0
- package/lib/services/workflows.js +599 -0
- package/lib/services/workflows.js.map +1 -0
- package/lib/services/zaraz.d.ts +312 -0
- package/lib/services/zaraz.d.ts.map +1 -0
- package/lib/services/zaraz.js +305 -0
- package/lib/services/zaraz.js.map +1 -0
- package/lib/services/zero-trust.d.ts +18235 -0
- package/lib/services/zero-trust.d.ts.map +1 -0
- package/lib/services/zero-trust.js +30268 -0
- package/lib/services/zero-trust.js.map +1 -0
- package/lib/services/zones.d.ts +1382 -0
- package/lib/services/zones.d.ts.map +1 -0
- package/lib/services/zones.js +2477 -0
- package/lib/services/zones.js.map +1 -0
- package/lib/traits.d.ts +28 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +26 -0
- package/lib/traits.js.map +1 -0
- package/package.json +82 -0
- package/src/auth.ts +15 -0
- package/src/category.ts +1 -0
- package/src/client/api.ts +421 -0
- package/src/client/index.ts +7 -0
- package/src/credentials.ts +271 -0
- package/src/errors.ts +73 -0
- package/src/index.ts +9 -0
- package/src/retry.ts +35 -0
- package/src/schemas.ts +51 -0
- package/src/sensitive.ts +4 -0
- package/src/services/abuse-reports.ts +955 -0
- package/src/services/accounts.ts +2152 -0
- package/src/services/acm.ts +178 -0
- package/src/services/addressing.ts +4262 -0
- package/src/services/ai-gateway.ts +3773 -0
- package/src/services/ai.ts +901 -0
- package/src/services/aisearch.ts +5215 -0
- package/src/services/alerting.ts +3303 -0
- package/src/services/api-gateway.ts +3890 -0
- package/src/services/argo.ts +270 -0
- package/src/services/audit-logs.ts +90 -0
- package/src/services/billing.ts +176 -0
- package/src/services/bot-management.ts +545 -0
- package/src/services/botnet-feed.ts +205 -0
- package/src/services/brand-protection.ts +575 -0
- package/src/services/browser-rendering.ts +2720 -0
- package/src/services/cache.ts +877 -0
- package/src/services/calls.ts +548 -0
- package/src/services/certificate-authorities.ts +114 -0
- package/src/services/client-certificates.ts +815 -0
- package/src/services/cloud-connector.ts +248 -0
- package/src/services/cloudforce-one.ts +4104 -0
- package/src/services/connectivity.ts +706 -0
- package/src/services/content-scanning.ts +458 -0
- package/src/services/custom-certificates.ts +690 -0
- package/src/services/custom-hostnames.ts +2641 -0
- package/src/services/custom-nameservers.ts +235 -0
- package/src/services/custom-pages.ts +311 -0
- package/src/services/d1.ts +1208 -0
- package/src/services/dcv-delegation.ts +54 -0
- package/src/services/diagnostics.ts +677 -0
- package/src/services/dns-firewall.ts +904 -0
- package/src/services/dns.ts +9277 -0
- package/src/services/durable-objects.ts +237 -0
- package/src/services/email-routing.ts +1796 -0
- package/src/services/email-security.ts +5052 -0
- package/src/services/filters.ts +488 -0
- package/src/services/firewall.ts +4728 -0
- package/src/services/healthchecks.ts +1866 -0
- package/src/services/hostnames.ts +254 -0
- package/src/services/hyperdrive.ts +595 -0
- package/src/services/iam.ts +1969 -0
- package/src/services/images.ts +1180 -0
- package/src/services/intel.ts +3072 -0
- package/src/services/ips.ts +88 -0
- package/src/services/keyless-certificates.ts +509 -0
- package/src/services/kv.ts +1129 -0
- package/src/services/leaked-credential-checks.ts +364 -0
- package/src/services/load-balancers.ts +6993 -0
- package/src/services/logpush.ts +1695 -0
- package/src/services/logs.ts +389 -0
- package/src/services/magic-cloud-networking.ts +10747 -0
- package/src/services/magic-network-monitoring.ts +1200 -0
- package/src/services/magic-transit.ts +13673 -0
- package/src/services/managed-transforms.ts +245 -0
- package/src/services/memberships.ts +698 -0
- package/src/services/mtls-certificates.ts +444 -0
- package/src/services/network-interconnects.ts +1253 -0
- package/src/services/organizations.ts +738 -0
- package/src/services/origin-ca-certificates.ts +369 -0
- package/src/services/origin-post-quantum-encryption.ts +136 -0
- package/src/services/origin-tls-client-auth.ts +1002 -0
- package/src/services/page-rules.ts +2632 -0
- package/src/services/page-shield.ts +1371 -0
- package/src/services/pages.ts +6167 -0
- package/src/services/pipelines.ts +6455 -0
- package/src/services/queues.ts +2827 -0
- package/src/services/r2-data-catalog.ts +1151 -0
- package/src/services/r2.ts +3529 -0
- package/src/services/radar.ts +42836 -0
- package/src/services/rate-limits.ts +1252 -0
- package/src/services/realtime-kit.ts +11080 -0
- package/src/services/registrar.ts +390 -0
- package/src/services/request-tracers.ts +161 -0
- package/src/services/resource-sharing.ts +2082 -0
- package/src/services/rules.ts +953 -0
- package/src/services/rulesets.ts +15361 -0
- package/src/services/rum.ts +994 -0
- package/src/services/schema-validation.ts +869 -0
- package/src/services/secrets-store.ts +1050 -0
- package/src/services/security-center.ts +495 -0
- package/src/services/security-txt.ts +317 -0
- package/src/services/snippets.ts +562 -0
- package/src/services/spectrum.ts +1190 -0
- package/src/services/speed.ts +1154 -0
- package/src/services/ssl.ts +1714 -0
- package/src/services/stream.ts +3008 -0
- package/src/services/token-validation.ts +1825 -0
- package/src/services/turnstile.ts +725 -0
- package/src/services/url-normalization.ts +133 -0
- package/src/services/url-scanner.ts +1851 -0
- package/src/services/user.ts +1587 -0
- package/src/services/vectorize.ts +875 -0
- package/src/services/waiting-rooms.ts +4216 -0
- package/src/services/web3.ts +899 -0
- package/src/services/workers-for-platforms.ts +4134 -0
- package/src/services/workers.ts +12298 -0
- package/src/services/workflows.ts +1372 -0
- package/src/services/zaraz.ts +833 -0
- package/src/services/zero-trust.ts +64685 -0
- package/src/services/zones.ts +5106 -0
- package/src/traits.ts +47 -0
|
@@ -0,0 +1,1863 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cloudflare ADDRESSING API
|
|
3
|
+
*
|
|
4
|
+
* Generated from Cloudflare TypeScript SDK.
|
|
5
|
+
* DO NOT EDIT - regenerate with: bun scripts/generate.ts --service addressing
|
|
6
|
+
*/
|
|
7
|
+
import * as stream from "effect/Stream";
|
|
8
|
+
import * as Schema from "effect/Schema";
|
|
9
|
+
import * as API from "../client/api.js";
|
|
10
|
+
import * as T from "../traits.js";
|
|
11
|
+
import {} from "../errors.js";
|
|
12
|
+
// =============================================================================
|
|
13
|
+
// Errors
|
|
14
|
+
// =============================================================================
|
|
15
|
+
export class AddressMapNotFound extends Schema.TaggedErrorClass()("AddressMapNotFound", { code: Schema.Number, message: Schema.String }) {
|
|
16
|
+
}
|
|
17
|
+
T.applyErrorMatchers(AddressMapNotFound, [
|
|
18
|
+
{ code: 1000 },
|
|
19
|
+
{ code: 1000, message: { includes: "not_found" } },
|
|
20
|
+
]);
|
|
21
|
+
export class BgpPrefixNotFound extends Schema.TaggedErrorClass()("BgpPrefixNotFound", { code: Schema.Number, message: Schema.String }) {
|
|
22
|
+
}
|
|
23
|
+
T.applyErrorMatchers(BgpPrefixNotFound, [{ code: 1002 }]);
|
|
24
|
+
export class BindingNotFound extends Schema.TaggedErrorClass()("BindingNotFound", { code: Schema.Number, message: Schema.String }) {
|
|
25
|
+
}
|
|
26
|
+
T.applyErrorMatchers(BindingNotFound, [{ code: 1002 }]);
|
|
27
|
+
export class DelegationNotFound extends Schema.TaggedErrorClass()("DelegationNotFound", { code: Schema.Number, message: Schema.String }) {
|
|
28
|
+
}
|
|
29
|
+
T.applyErrorMatchers(DelegationNotFound, [{ code: 1000 }]);
|
|
30
|
+
export class FeatureNotEnabled extends Schema.TaggedErrorClass()("FeatureNotEnabled", { code: Schema.Number, message: Schema.String }) {
|
|
31
|
+
}
|
|
32
|
+
T.applyErrorMatchers(FeatureNotEnabled, [
|
|
33
|
+
{ code: 1002, message: { includes: "address_maps_not_enabled" } },
|
|
34
|
+
]);
|
|
35
|
+
export class InvalidAccountId extends Schema.TaggedErrorClass()("InvalidAccountId", { code: Schema.Number, message: Schema.String }) {
|
|
36
|
+
}
|
|
37
|
+
T.applyErrorMatchers(InvalidAccountId, [
|
|
38
|
+
{ code: 7003, message: { includes: "Could not route" } },
|
|
39
|
+
]);
|
|
40
|
+
export class InvalidHostname extends Schema.TaggedErrorClass()("InvalidHostname", { code: Schema.Number, message: Schema.String }) {
|
|
41
|
+
}
|
|
42
|
+
T.applyErrorMatchers(InvalidHostname, [
|
|
43
|
+
{ code: 1002, message: { includes: "forbidden" } },
|
|
44
|
+
]);
|
|
45
|
+
export class InvalidLoaForm extends Schema.TaggedErrorClass()("InvalidLoaForm", { code: Schema.Number, message: Schema.String }) {
|
|
46
|
+
}
|
|
47
|
+
T.applyErrorMatchers(InvalidLoaForm, [
|
|
48
|
+
{ code: 1001, message: { includes: "invalid_loa_form" } },
|
|
49
|
+
{ code: 1001 },
|
|
50
|
+
]);
|
|
51
|
+
export class InvalidNetworkCidr extends Schema.TaggedErrorClass()("InvalidNetworkCidr", { code: Schema.Number, message: Schema.String }) {
|
|
52
|
+
}
|
|
53
|
+
T.applyErrorMatchers(InvalidNetworkCidr, [
|
|
54
|
+
{ code: 1001, message: { includes: "invalid_network_cidr" } },
|
|
55
|
+
]);
|
|
56
|
+
export class InvalidZoneId extends Schema.TaggedErrorClass()("InvalidZoneId", { code: Schema.Number, message: Schema.String }) {
|
|
57
|
+
}
|
|
58
|
+
T.applyErrorMatchers(InvalidZoneId, [
|
|
59
|
+
{ code: 7003, message: { includes: "Could not route" } },
|
|
60
|
+
]);
|
|
61
|
+
export class IrrEntryNotFound extends Schema.TaggedErrorClass()("IrrEntryNotFound", { code: Schema.Number, message: Schema.String }) {
|
|
62
|
+
}
|
|
63
|
+
T.applyErrorMatchers(IrrEntryNotFound, [
|
|
64
|
+
{ code: 1003, message: { includes: "irr_entry_not_found" } },
|
|
65
|
+
]);
|
|
66
|
+
export class LoaDocumentNotFound extends Schema.TaggedErrorClass()("LoaDocumentNotFound", { code: Schema.Number, message: Schema.String }) {
|
|
67
|
+
}
|
|
68
|
+
T.applyErrorMatchers(LoaDocumentNotFound, [{ code: 1000 }]);
|
|
69
|
+
export class MethodNotAllowed extends Schema.TaggedErrorClass()("MethodNotAllowed", { code: Schema.Number, message: Schema.String }) {
|
|
70
|
+
}
|
|
71
|
+
T.applyErrorMatchers(MethodNotAllowed, [
|
|
72
|
+
{ code: 10405, message: { includes: "not allowed" } },
|
|
73
|
+
{ code: 10000, message: { includes: "not allowed" } },
|
|
74
|
+
]);
|
|
75
|
+
export class MissingAccountId extends Schema.TaggedErrorClass()("MissingAccountId", { code: Schema.Number, message: Schema.String }) {
|
|
76
|
+
}
|
|
77
|
+
T.applyErrorMatchers(MissingAccountId, [{ code: 1001 }]);
|
|
78
|
+
export class NonexistentAccountPrefix extends Schema.TaggedErrorClass()("NonexistentAccountPrefix", { code: Schema.Number, message: Schema.String }) {
|
|
79
|
+
}
|
|
80
|
+
T.applyErrorMatchers(NonexistentAccountPrefix, [{ code: 1003 }]);
|
|
81
|
+
export class PrefixNotFound extends Schema.TaggedErrorClass()("PrefixNotFound", { code: Schema.Number, message: Schema.String }) {
|
|
82
|
+
}
|
|
83
|
+
T.applyErrorMatchers(PrefixNotFound, [
|
|
84
|
+
{ code: 1000 },
|
|
85
|
+
{ code: 1000, message: { includes: "not_found" } },
|
|
86
|
+
]);
|
|
87
|
+
export class RegionalHostnameEmpty extends Schema.TaggedErrorClass()("RegionalHostnameEmpty", { code: Schema.Number, message: Schema.String }) {
|
|
88
|
+
}
|
|
89
|
+
T.applyErrorMatchers(RegionalHostnameEmpty, [
|
|
90
|
+
{ code: 1000, message: { includes: "not_found" } },
|
|
91
|
+
]);
|
|
92
|
+
export class RegionalHostnameNotFound extends Schema.TaggedErrorClass()("RegionalHostnameNotFound", { code: Schema.Number, message: Schema.String }) {
|
|
93
|
+
}
|
|
94
|
+
T.applyErrorMatchers(RegionalHostnameNotFound, [
|
|
95
|
+
{ code: 1002, message: { includes: "forbidden" } },
|
|
96
|
+
]);
|
|
97
|
+
export class UnsupportedBindingConfiguration extends Schema.TaggedErrorClass()("UnsupportedBindingConfiguration", { code: Schema.Number, message: Schema.String }) {
|
|
98
|
+
}
|
|
99
|
+
T.applyErrorMatchers(UnsupportedBindingConfiguration, [{ code: 1003 }]);
|
|
100
|
+
export const GetAddressMapRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
101
|
+
addressMapId: Schema.String.pipe(T.HttpPath("addressMapId")),
|
|
102
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
103
|
+
}).pipe(T.Http({
|
|
104
|
+
method: "GET",
|
|
105
|
+
path: "/accounts/{account_id}/addressing/address_maps/{addressMapId}",
|
|
106
|
+
}));
|
|
107
|
+
export const GetAddressMapResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
108
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
109
|
+
canDelete: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
110
|
+
canModifyIps: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
111
|
+
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
112
|
+
defaultSni: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
113
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
114
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
115
|
+
ips: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
116
|
+
memberships: Schema.optional(Schema.Union([
|
|
117
|
+
Schema.Array(Schema.Struct({
|
|
118
|
+
canDelete: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
119
|
+
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
120
|
+
identifier: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
121
|
+
kind: Schema.optional(Schema.Union([Schema.Literals(["zone", "account"]), Schema.Null])),
|
|
122
|
+
}).pipe(Schema.encodeKeys({
|
|
123
|
+
canDelete: "can_delete",
|
|
124
|
+
createdAt: "created_at",
|
|
125
|
+
identifier: "identifier",
|
|
126
|
+
kind: "kind",
|
|
127
|
+
}))),
|
|
128
|
+
Schema.Null,
|
|
129
|
+
])),
|
|
130
|
+
modifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
131
|
+
})
|
|
132
|
+
.pipe(Schema.encodeKeys({
|
|
133
|
+
id: "id",
|
|
134
|
+
canDelete: "can_delete",
|
|
135
|
+
canModifyIps: "can_modify_ips",
|
|
136
|
+
createdAt: "created_at",
|
|
137
|
+
defaultSni: "default_sni",
|
|
138
|
+
description: "description",
|
|
139
|
+
enabled: "enabled",
|
|
140
|
+
ips: "ips",
|
|
141
|
+
memberships: "memberships",
|
|
142
|
+
modifiedAt: "modified_at",
|
|
143
|
+
}))
|
|
144
|
+
.pipe(T.ResponsePath("result"));
|
|
145
|
+
export const getAddressMap = API.make(() => ({
|
|
146
|
+
input: GetAddressMapRequest,
|
|
147
|
+
output: GetAddressMapResponse,
|
|
148
|
+
errors: [AddressMapNotFound, InvalidAccountId],
|
|
149
|
+
}));
|
|
150
|
+
export const ListAddressMapsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
151
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
152
|
+
}).pipe(T.Http({
|
|
153
|
+
method: "GET",
|
|
154
|
+
path: "/accounts/{account_id}/addressing/address_maps",
|
|
155
|
+
}));
|
|
156
|
+
export const ListAddressMapsResponse =
|
|
157
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
158
|
+
result: Schema.Array(Schema.Struct({
|
|
159
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
160
|
+
canDelete: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
161
|
+
canModifyIps: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
162
|
+
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
163
|
+
defaultSni: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
164
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
165
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
166
|
+
modifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
167
|
+
}).pipe(Schema.encodeKeys({
|
|
168
|
+
id: "id",
|
|
169
|
+
canDelete: "can_delete",
|
|
170
|
+
canModifyIps: "can_modify_ips",
|
|
171
|
+
createdAt: "created_at",
|
|
172
|
+
defaultSni: "default_sni",
|
|
173
|
+
description: "description",
|
|
174
|
+
enabled: "enabled",
|
|
175
|
+
modifiedAt: "modified_at",
|
|
176
|
+
}))),
|
|
177
|
+
});
|
|
178
|
+
export const listAddressMaps = API.makePaginated(() => ({
|
|
179
|
+
input: ListAddressMapsRequest,
|
|
180
|
+
output: ListAddressMapsResponse,
|
|
181
|
+
errors: [],
|
|
182
|
+
pagination: {
|
|
183
|
+
mode: "single",
|
|
184
|
+
items: "result",
|
|
185
|
+
},
|
|
186
|
+
}));
|
|
187
|
+
export const CreateAddressMapRequest =
|
|
188
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
189
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
190
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
191
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
192
|
+
ips: Schema.optional(Schema.Array(Schema.String)),
|
|
193
|
+
memberships: Schema.optional(Schema.Array(Schema.Struct({
|
|
194
|
+
identifier: Schema.optional(Schema.String),
|
|
195
|
+
kind: Schema.optional(Schema.Literals(["zone", "account"])),
|
|
196
|
+
}))),
|
|
197
|
+
}).pipe(T.Http({
|
|
198
|
+
method: "POST",
|
|
199
|
+
path: "/accounts/{account_id}/addressing/address_maps",
|
|
200
|
+
}));
|
|
201
|
+
export const CreateAddressMapResponse =
|
|
202
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
203
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
204
|
+
canDelete: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
205
|
+
canModifyIps: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
206
|
+
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
207
|
+
defaultSni: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
208
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
209
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
210
|
+
ips: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
211
|
+
memberships: Schema.optional(Schema.Union([
|
|
212
|
+
Schema.Array(Schema.Struct({
|
|
213
|
+
canDelete: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
214
|
+
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
215
|
+
identifier: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
216
|
+
kind: Schema.optional(Schema.Union([Schema.Literals(["zone", "account"]), Schema.Null])),
|
|
217
|
+
}).pipe(Schema.encodeKeys({
|
|
218
|
+
canDelete: "can_delete",
|
|
219
|
+
createdAt: "created_at",
|
|
220
|
+
identifier: "identifier",
|
|
221
|
+
kind: "kind",
|
|
222
|
+
}))),
|
|
223
|
+
Schema.Null,
|
|
224
|
+
])),
|
|
225
|
+
modifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
226
|
+
})
|
|
227
|
+
.pipe(Schema.encodeKeys({
|
|
228
|
+
id: "id",
|
|
229
|
+
canDelete: "can_delete",
|
|
230
|
+
canModifyIps: "can_modify_ips",
|
|
231
|
+
createdAt: "created_at",
|
|
232
|
+
defaultSni: "default_sni",
|
|
233
|
+
description: "description",
|
|
234
|
+
enabled: "enabled",
|
|
235
|
+
ips: "ips",
|
|
236
|
+
memberships: "memberships",
|
|
237
|
+
modifiedAt: "modified_at",
|
|
238
|
+
}))
|
|
239
|
+
.pipe(T.ResponsePath("result"));
|
|
240
|
+
export const createAddressMap = API.make(() => ({
|
|
241
|
+
input: CreateAddressMapRequest,
|
|
242
|
+
output: CreateAddressMapResponse,
|
|
243
|
+
errors: [FeatureNotEnabled, InvalidAccountId],
|
|
244
|
+
}));
|
|
245
|
+
export const PatchAddressMapRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
246
|
+
addressMapId: Schema.String.pipe(T.HttpPath("addressMapId")),
|
|
247
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
248
|
+
defaultSni: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
249
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
250
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
251
|
+
}).pipe(Schema.encodeKeys({
|
|
252
|
+
defaultSni: "default_sni",
|
|
253
|
+
description: "description",
|
|
254
|
+
enabled: "enabled",
|
|
255
|
+
}), T.Http({
|
|
256
|
+
method: "PATCH",
|
|
257
|
+
path: "/accounts/{account_id}/addressing/address_maps/{addressMapId}",
|
|
258
|
+
}));
|
|
259
|
+
export const PatchAddressMapResponse =
|
|
260
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
261
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
262
|
+
canDelete: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
263
|
+
canModifyIps: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
264
|
+
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
265
|
+
defaultSni: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
266
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
267
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
268
|
+
modifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
269
|
+
})
|
|
270
|
+
.pipe(Schema.encodeKeys({
|
|
271
|
+
id: "id",
|
|
272
|
+
canDelete: "can_delete",
|
|
273
|
+
canModifyIps: "can_modify_ips",
|
|
274
|
+
createdAt: "created_at",
|
|
275
|
+
defaultSni: "default_sni",
|
|
276
|
+
description: "description",
|
|
277
|
+
enabled: "enabled",
|
|
278
|
+
modifiedAt: "modified_at",
|
|
279
|
+
}))
|
|
280
|
+
.pipe(T.ResponsePath("result"));
|
|
281
|
+
export const patchAddressMap = API.make(() => ({
|
|
282
|
+
input: PatchAddressMapRequest,
|
|
283
|
+
output: PatchAddressMapResponse,
|
|
284
|
+
errors: [MethodNotAllowed, FeatureNotEnabled, InvalidAccountId],
|
|
285
|
+
}));
|
|
286
|
+
export const DeleteAddressMapRequest =
|
|
287
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
288
|
+
addressMapId: Schema.String.pipe(T.HttpPath("addressMapId")),
|
|
289
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
290
|
+
}).pipe(T.Http({
|
|
291
|
+
method: "DELETE",
|
|
292
|
+
path: "/accounts/{account_id}/addressing/address_maps/{addressMapId}",
|
|
293
|
+
}));
|
|
294
|
+
export const DeleteAddressMapResponse =
|
|
295
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
296
|
+
errors: Schema.Array(Schema.Struct({
|
|
297
|
+
code: Schema.Number,
|
|
298
|
+
message: Schema.String,
|
|
299
|
+
documentationUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
300
|
+
source: Schema.optional(Schema.Union([
|
|
301
|
+
Schema.Struct({
|
|
302
|
+
pointer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
303
|
+
}),
|
|
304
|
+
Schema.Null,
|
|
305
|
+
])),
|
|
306
|
+
}).pipe(Schema.encodeKeys({
|
|
307
|
+
code: "code",
|
|
308
|
+
message: "message",
|
|
309
|
+
documentationUrl: "documentation_url",
|
|
310
|
+
source: "source",
|
|
311
|
+
}))),
|
|
312
|
+
messages: Schema.Array(Schema.Struct({
|
|
313
|
+
code: Schema.Number,
|
|
314
|
+
message: Schema.String,
|
|
315
|
+
documentationUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
316
|
+
source: Schema.optional(Schema.Union([
|
|
317
|
+
Schema.Struct({
|
|
318
|
+
pointer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
319
|
+
}),
|
|
320
|
+
Schema.Null,
|
|
321
|
+
])),
|
|
322
|
+
}).pipe(Schema.encodeKeys({
|
|
323
|
+
code: "code",
|
|
324
|
+
message: "message",
|
|
325
|
+
documentationUrl: "documentation_url",
|
|
326
|
+
source: "source",
|
|
327
|
+
}))),
|
|
328
|
+
success: Schema.Literal(true),
|
|
329
|
+
resultInfo: Schema.optional(Schema.Union([
|
|
330
|
+
Schema.Struct({
|
|
331
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
332
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
333
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
334
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
335
|
+
}).pipe(Schema.encodeKeys({
|
|
336
|
+
count: "count",
|
|
337
|
+
page: "page",
|
|
338
|
+
perPage: "per_page",
|
|
339
|
+
totalCount: "total_count",
|
|
340
|
+
})),
|
|
341
|
+
Schema.Null,
|
|
342
|
+
])),
|
|
343
|
+
}).pipe(Schema.encodeKeys({
|
|
344
|
+
errors: "errors",
|
|
345
|
+
messages: "messages",
|
|
346
|
+
success: "success",
|
|
347
|
+
resultInfo: "result_info",
|
|
348
|
+
}));
|
|
349
|
+
export const deleteAddressMap = API.make(() => ({
|
|
350
|
+
input: DeleteAddressMapRequest,
|
|
351
|
+
output: DeleteAddressMapResponse,
|
|
352
|
+
errors: [
|
|
353
|
+
MethodNotAllowed,
|
|
354
|
+
FeatureNotEnabled,
|
|
355
|
+
InvalidAccountId,
|
|
356
|
+
AddressMapNotFound,
|
|
357
|
+
],
|
|
358
|
+
}));
|
|
359
|
+
export const PutAddressMapAccountRequest =
|
|
360
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
361
|
+
addressMapId: Schema.String.pipe(T.HttpPath("addressMapId")),
|
|
362
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
363
|
+
body: Schema.Unknown.pipe(T.HttpBody()),
|
|
364
|
+
}).pipe(T.Http({
|
|
365
|
+
method: "PUT",
|
|
366
|
+
path: "/accounts/{account_id}/addressing/address_maps/{addressMapId}/accounts/{account_id}",
|
|
367
|
+
}));
|
|
368
|
+
export const PutAddressMapAccountResponse =
|
|
369
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
370
|
+
errors: Schema.Array(Schema.Struct({
|
|
371
|
+
code: Schema.Number,
|
|
372
|
+
message: Schema.String,
|
|
373
|
+
documentationUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
374
|
+
source: Schema.optional(Schema.Union([
|
|
375
|
+
Schema.Struct({
|
|
376
|
+
pointer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
377
|
+
}),
|
|
378
|
+
Schema.Null,
|
|
379
|
+
])),
|
|
380
|
+
}).pipe(Schema.encodeKeys({
|
|
381
|
+
code: "code",
|
|
382
|
+
message: "message",
|
|
383
|
+
documentationUrl: "documentation_url",
|
|
384
|
+
source: "source",
|
|
385
|
+
}))),
|
|
386
|
+
messages: Schema.Array(Schema.Struct({
|
|
387
|
+
code: Schema.Number,
|
|
388
|
+
message: Schema.String,
|
|
389
|
+
documentationUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
390
|
+
source: Schema.optional(Schema.Union([
|
|
391
|
+
Schema.Struct({
|
|
392
|
+
pointer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
393
|
+
}),
|
|
394
|
+
Schema.Null,
|
|
395
|
+
])),
|
|
396
|
+
}).pipe(Schema.encodeKeys({
|
|
397
|
+
code: "code",
|
|
398
|
+
message: "message",
|
|
399
|
+
documentationUrl: "documentation_url",
|
|
400
|
+
source: "source",
|
|
401
|
+
}))),
|
|
402
|
+
success: Schema.Literal(true),
|
|
403
|
+
resultInfo: Schema.optional(Schema.Union([
|
|
404
|
+
Schema.Struct({
|
|
405
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
406
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
407
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
408
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
409
|
+
}).pipe(Schema.encodeKeys({
|
|
410
|
+
count: "count",
|
|
411
|
+
page: "page",
|
|
412
|
+
perPage: "per_page",
|
|
413
|
+
totalCount: "total_count",
|
|
414
|
+
})),
|
|
415
|
+
Schema.Null,
|
|
416
|
+
])),
|
|
417
|
+
}).pipe(Schema.encodeKeys({
|
|
418
|
+
errors: "errors",
|
|
419
|
+
messages: "messages",
|
|
420
|
+
success: "success",
|
|
421
|
+
resultInfo: "result_info",
|
|
422
|
+
}));
|
|
423
|
+
export const putAddressMapAccount = API.make(() => ({
|
|
424
|
+
input: PutAddressMapAccountRequest,
|
|
425
|
+
output: PutAddressMapAccountResponse,
|
|
426
|
+
errors: [MethodNotAllowed, FeatureNotEnabled, InvalidAccountId],
|
|
427
|
+
}));
|
|
428
|
+
export const DeleteAddressMapAccountRequest =
|
|
429
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
430
|
+
addressMapId: Schema.String.pipe(T.HttpPath("addressMapId")),
|
|
431
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
432
|
+
}).pipe(T.Http({
|
|
433
|
+
method: "DELETE",
|
|
434
|
+
path: "/accounts/{account_id}/addressing/address_maps/{addressMapId}/accounts/{account_id}",
|
|
435
|
+
}));
|
|
436
|
+
export const DeleteAddressMapAccountResponse =
|
|
437
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
438
|
+
errors: Schema.Array(Schema.Struct({
|
|
439
|
+
code: Schema.Number,
|
|
440
|
+
message: Schema.String,
|
|
441
|
+
documentationUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
442
|
+
source: Schema.optional(Schema.Union([
|
|
443
|
+
Schema.Struct({
|
|
444
|
+
pointer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
445
|
+
}),
|
|
446
|
+
Schema.Null,
|
|
447
|
+
])),
|
|
448
|
+
}).pipe(Schema.encodeKeys({
|
|
449
|
+
code: "code",
|
|
450
|
+
message: "message",
|
|
451
|
+
documentationUrl: "documentation_url",
|
|
452
|
+
source: "source",
|
|
453
|
+
}))),
|
|
454
|
+
messages: Schema.Array(Schema.Struct({
|
|
455
|
+
code: Schema.Number,
|
|
456
|
+
message: Schema.String,
|
|
457
|
+
documentationUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
458
|
+
source: Schema.optional(Schema.Union([
|
|
459
|
+
Schema.Struct({
|
|
460
|
+
pointer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
461
|
+
}),
|
|
462
|
+
Schema.Null,
|
|
463
|
+
])),
|
|
464
|
+
}).pipe(Schema.encodeKeys({
|
|
465
|
+
code: "code",
|
|
466
|
+
message: "message",
|
|
467
|
+
documentationUrl: "documentation_url",
|
|
468
|
+
source: "source",
|
|
469
|
+
}))),
|
|
470
|
+
success: Schema.Literal(true),
|
|
471
|
+
resultInfo: Schema.optional(Schema.Union([
|
|
472
|
+
Schema.Struct({
|
|
473
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
474
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
475
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
476
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
477
|
+
}).pipe(Schema.encodeKeys({
|
|
478
|
+
count: "count",
|
|
479
|
+
page: "page",
|
|
480
|
+
perPage: "per_page",
|
|
481
|
+
totalCount: "total_count",
|
|
482
|
+
})),
|
|
483
|
+
Schema.Null,
|
|
484
|
+
])),
|
|
485
|
+
}).pipe(Schema.encodeKeys({
|
|
486
|
+
errors: "errors",
|
|
487
|
+
messages: "messages",
|
|
488
|
+
success: "success",
|
|
489
|
+
resultInfo: "result_info",
|
|
490
|
+
}));
|
|
491
|
+
export const deleteAddressMapAccount = API.make(() => ({
|
|
492
|
+
input: DeleteAddressMapAccountRequest,
|
|
493
|
+
output: DeleteAddressMapAccountResponse,
|
|
494
|
+
errors: [MethodNotAllowed, FeatureNotEnabled, InvalidAccountId],
|
|
495
|
+
}));
|
|
496
|
+
export const PutAddressMapIpRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
497
|
+
addressMapId: Schema.String.pipe(T.HttpPath("addressMapId")),
|
|
498
|
+
ipAddress: Schema.String.pipe(T.HttpPath("ipAddress")),
|
|
499
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
500
|
+
body: Schema.Unknown.pipe(T.HttpBody()),
|
|
501
|
+
}).pipe(T.Http({
|
|
502
|
+
method: "PUT",
|
|
503
|
+
path: "/accounts/{account_id}/addressing/address_maps/{addressMapId}/ips/{ipAddress}",
|
|
504
|
+
}));
|
|
505
|
+
export const PutAddressMapIpResponse =
|
|
506
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
507
|
+
errors: Schema.Array(Schema.Struct({
|
|
508
|
+
code: Schema.Number,
|
|
509
|
+
message: Schema.String,
|
|
510
|
+
documentationUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
511
|
+
source: Schema.optional(Schema.Union([
|
|
512
|
+
Schema.Struct({
|
|
513
|
+
pointer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
514
|
+
}),
|
|
515
|
+
Schema.Null,
|
|
516
|
+
])),
|
|
517
|
+
}).pipe(Schema.encodeKeys({
|
|
518
|
+
code: "code",
|
|
519
|
+
message: "message",
|
|
520
|
+
documentationUrl: "documentation_url",
|
|
521
|
+
source: "source",
|
|
522
|
+
}))),
|
|
523
|
+
messages: Schema.Array(Schema.Struct({
|
|
524
|
+
code: Schema.Number,
|
|
525
|
+
message: Schema.String,
|
|
526
|
+
documentationUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
527
|
+
source: Schema.optional(Schema.Union([
|
|
528
|
+
Schema.Struct({
|
|
529
|
+
pointer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
530
|
+
}),
|
|
531
|
+
Schema.Null,
|
|
532
|
+
])),
|
|
533
|
+
}).pipe(Schema.encodeKeys({
|
|
534
|
+
code: "code",
|
|
535
|
+
message: "message",
|
|
536
|
+
documentationUrl: "documentation_url",
|
|
537
|
+
source: "source",
|
|
538
|
+
}))),
|
|
539
|
+
success: Schema.Literal(true),
|
|
540
|
+
resultInfo: Schema.optional(Schema.Union([
|
|
541
|
+
Schema.Struct({
|
|
542
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
543
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
544
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
545
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
546
|
+
}).pipe(Schema.encodeKeys({
|
|
547
|
+
count: "count",
|
|
548
|
+
page: "page",
|
|
549
|
+
perPage: "per_page",
|
|
550
|
+
totalCount: "total_count",
|
|
551
|
+
})),
|
|
552
|
+
Schema.Null,
|
|
553
|
+
])),
|
|
554
|
+
}).pipe(Schema.encodeKeys({
|
|
555
|
+
errors: "errors",
|
|
556
|
+
messages: "messages",
|
|
557
|
+
success: "success",
|
|
558
|
+
resultInfo: "result_info",
|
|
559
|
+
}));
|
|
560
|
+
export const putAddressMapIp = API.make(() => ({
|
|
561
|
+
input: PutAddressMapIpRequest,
|
|
562
|
+
output: PutAddressMapIpResponse,
|
|
563
|
+
errors: [
|
|
564
|
+
MethodNotAllowed,
|
|
565
|
+
FeatureNotEnabled,
|
|
566
|
+
InvalidAccountId,
|
|
567
|
+
AddressMapNotFound,
|
|
568
|
+
],
|
|
569
|
+
}));
|
|
570
|
+
export const DeleteAddressMapIpRequest =
|
|
571
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
572
|
+
addressMapId: Schema.String.pipe(T.HttpPath("addressMapId")),
|
|
573
|
+
ipAddress: Schema.String.pipe(T.HttpPath("ipAddress")),
|
|
574
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
575
|
+
}).pipe(T.Http({
|
|
576
|
+
method: "DELETE",
|
|
577
|
+
path: "/accounts/{account_id}/addressing/address_maps/{addressMapId}/ips/{ipAddress}",
|
|
578
|
+
}));
|
|
579
|
+
export const DeleteAddressMapIpResponse =
|
|
580
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
581
|
+
errors: Schema.Array(Schema.Struct({
|
|
582
|
+
code: Schema.Number,
|
|
583
|
+
message: Schema.String,
|
|
584
|
+
documentationUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
585
|
+
source: Schema.optional(Schema.Union([
|
|
586
|
+
Schema.Struct({
|
|
587
|
+
pointer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
588
|
+
}),
|
|
589
|
+
Schema.Null,
|
|
590
|
+
])),
|
|
591
|
+
}).pipe(Schema.encodeKeys({
|
|
592
|
+
code: "code",
|
|
593
|
+
message: "message",
|
|
594
|
+
documentationUrl: "documentation_url",
|
|
595
|
+
source: "source",
|
|
596
|
+
}))),
|
|
597
|
+
messages: Schema.Array(Schema.Struct({
|
|
598
|
+
code: Schema.Number,
|
|
599
|
+
message: Schema.String,
|
|
600
|
+
documentationUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
601
|
+
source: Schema.optional(Schema.Union([
|
|
602
|
+
Schema.Struct({
|
|
603
|
+
pointer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
604
|
+
}),
|
|
605
|
+
Schema.Null,
|
|
606
|
+
])),
|
|
607
|
+
}).pipe(Schema.encodeKeys({
|
|
608
|
+
code: "code",
|
|
609
|
+
message: "message",
|
|
610
|
+
documentationUrl: "documentation_url",
|
|
611
|
+
source: "source",
|
|
612
|
+
}))),
|
|
613
|
+
success: Schema.Literal(true),
|
|
614
|
+
resultInfo: Schema.optional(Schema.Union([
|
|
615
|
+
Schema.Struct({
|
|
616
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
617
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
618
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
619
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
620
|
+
}).pipe(Schema.encodeKeys({
|
|
621
|
+
count: "count",
|
|
622
|
+
page: "page",
|
|
623
|
+
perPage: "per_page",
|
|
624
|
+
totalCount: "total_count",
|
|
625
|
+
})),
|
|
626
|
+
Schema.Null,
|
|
627
|
+
])),
|
|
628
|
+
}).pipe(Schema.encodeKeys({
|
|
629
|
+
errors: "errors",
|
|
630
|
+
messages: "messages",
|
|
631
|
+
success: "success",
|
|
632
|
+
resultInfo: "result_info",
|
|
633
|
+
}));
|
|
634
|
+
export const deleteAddressMapIp = API.make(() => ({
|
|
635
|
+
input: DeleteAddressMapIpRequest,
|
|
636
|
+
output: DeleteAddressMapIpResponse,
|
|
637
|
+
errors: [
|
|
638
|
+
MethodNotAllowed,
|
|
639
|
+
FeatureNotEnabled,
|
|
640
|
+
InvalidAccountId,
|
|
641
|
+
AddressMapNotFound,
|
|
642
|
+
],
|
|
643
|
+
}));
|
|
644
|
+
export const PutAddressMapZoneRequest =
|
|
645
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
646
|
+
addressMapId: Schema.String.pipe(T.HttpPath("addressMapId")),
|
|
647
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
648
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
649
|
+
body: Schema.Unknown.pipe(T.HttpBody()),
|
|
650
|
+
}).pipe(T.Http({
|
|
651
|
+
method: "PUT",
|
|
652
|
+
path: "/accounts/{account_id}/addressing/address_maps/{addressMapId}/zones/{zone_id}",
|
|
653
|
+
}));
|
|
654
|
+
export const PutAddressMapZoneResponse =
|
|
655
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
656
|
+
errors: Schema.Array(Schema.Struct({
|
|
657
|
+
code: Schema.Number,
|
|
658
|
+
message: Schema.String,
|
|
659
|
+
documentationUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
660
|
+
source: Schema.optional(Schema.Union([
|
|
661
|
+
Schema.Struct({
|
|
662
|
+
pointer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
663
|
+
}),
|
|
664
|
+
Schema.Null,
|
|
665
|
+
])),
|
|
666
|
+
}).pipe(Schema.encodeKeys({
|
|
667
|
+
code: "code",
|
|
668
|
+
message: "message",
|
|
669
|
+
documentationUrl: "documentation_url",
|
|
670
|
+
source: "source",
|
|
671
|
+
}))),
|
|
672
|
+
messages: Schema.Array(Schema.Struct({
|
|
673
|
+
code: Schema.Number,
|
|
674
|
+
message: Schema.String,
|
|
675
|
+
documentationUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
676
|
+
source: Schema.optional(Schema.Union([
|
|
677
|
+
Schema.Struct({
|
|
678
|
+
pointer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
679
|
+
}),
|
|
680
|
+
Schema.Null,
|
|
681
|
+
])),
|
|
682
|
+
}).pipe(Schema.encodeKeys({
|
|
683
|
+
code: "code",
|
|
684
|
+
message: "message",
|
|
685
|
+
documentationUrl: "documentation_url",
|
|
686
|
+
source: "source",
|
|
687
|
+
}))),
|
|
688
|
+
success: Schema.Literal(true),
|
|
689
|
+
resultInfo: Schema.optional(Schema.Union([
|
|
690
|
+
Schema.Struct({
|
|
691
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
692
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
693
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
694
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
695
|
+
}).pipe(Schema.encodeKeys({
|
|
696
|
+
count: "count",
|
|
697
|
+
page: "page",
|
|
698
|
+
perPage: "per_page",
|
|
699
|
+
totalCount: "total_count",
|
|
700
|
+
})),
|
|
701
|
+
Schema.Null,
|
|
702
|
+
])),
|
|
703
|
+
}).pipe(Schema.encodeKeys({
|
|
704
|
+
errors: "errors",
|
|
705
|
+
messages: "messages",
|
|
706
|
+
success: "success",
|
|
707
|
+
resultInfo: "result_info",
|
|
708
|
+
}));
|
|
709
|
+
export const putAddressMapZone = API.make(() => ({
|
|
710
|
+
input: PutAddressMapZoneRequest,
|
|
711
|
+
output: PutAddressMapZoneResponse,
|
|
712
|
+
errors: [MethodNotAllowed, FeatureNotEnabled, InvalidAccountId],
|
|
713
|
+
}));
|
|
714
|
+
export const DeleteAddressMapZoneRequest =
|
|
715
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
716
|
+
addressMapId: Schema.String.pipe(T.HttpPath("addressMapId")),
|
|
717
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
718
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
719
|
+
}).pipe(T.Http({
|
|
720
|
+
method: "DELETE",
|
|
721
|
+
path: "/accounts/{account_id}/addressing/address_maps/{addressMapId}/zones/{zone_id}",
|
|
722
|
+
}));
|
|
723
|
+
export const DeleteAddressMapZoneResponse =
|
|
724
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
725
|
+
errors: Schema.Array(Schema.Struct({
|
|
726
|
+
code: Schema.Number,
|
|
727
|
+
message: Schema.String,
|
|
728
|
+
documentationUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
729
|
+
source: Schema.optional(Schema.Union([
|
|
730
|
+
Schema.Struct({
|
|
731
|
+
pointer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
732
|
+
}),
|
|
733
|
+
Schema.Null,
|
|
734
|
+
])),
|
|
735
|
+
}).pipe(Schema.encodeKeys({
|
|
736
|
+
code: "code",
|
|
737
|
+
message: "message",
|
|
738
|
+
documentationUrl: "documentation_url",
|
|
739
|
+
source: "source",
|
|
740
|
+
}))),
|
|
741
|
+
messages: Schema.Array(Schema.Struct({
|
|
742
|
+
code: Schema.Number,
|
|
743
|
+
message: Schema.String,
|
|
744
|
+
documentationUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
745
|
+
source: Schema.optional(Schema.Union([
|
|
746
|
+
Schema.Struct({
|
|
747
|
+
pointer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
748
|
+
}),
|
|
749
|
+
Schema.Null,
|
|
750
|
+
])),
|
|
751
|
+
}).pipe(Schema.encodeKeys({
|
|
752
|
+
code: "code",
|
|
753
|
+
message: "message",
|
|
754
|
+
documentationUrl: "documentation_url",
|
|
755
|
+
source: "source",
|
|
756
|
+
}))),
|
|
757
|
+
success: Schema.Literal(true),
|
|
758
|
+
resultInfo: Schema.optional(Schema.Union([
|
|
759
|
+
Schema.Struct({
|
|
760
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
761
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
762
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
763
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
764
|
+
}).pipe(Schema.encodeKeys({
|
|
765
|
+
count: "count",
|
|
766
|
+
page: "page",
|
|
767
|
+
perPage: "per_page",
|
|
768
|
+
totalCount: "total_count",
|
|
769
|
+
})),
|
|
770
|
+
Schema.Null,
|
|
771
|
+
])),
|
|
772
|
+
}).pipe(Schema.encodeKeys({
|
|
773
|
+
errors: "errors",
|
|
774
|
+
messages: "messages",
|
|
775
|
+
success: "success",
|
|
776
|
+
resultInfo: "result_info",
|
|
777
|
+
}));
|
|
778
|
+
export const deleteAddressMapZone = API.make(() => ({
|
|
779
|
+
input: DeleteAddressMapZoneRequest,
|
|
780
|
+
output: DeleteAddressMapZoneResponse,
|
|
781
|
+
errors: [MethodNotAllowed, FeatureNotEnabled, InvalidAccountId],
|
|
782
|
+
}));
|
|
783
|
+
export const GetLoaDocumentRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
784
|
+
loaDocumentId: Schema.Union([Schema.String, Schema.Null]).pipe(T.HttpPath("loaDocumentId")),
|
|
785
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
786
|
+
}).pipe(T.Http({
|
|
787
|
+
method: "GET",
|
|
788
|
+
path: "/accounts/{account_id}/addressing/loa_documents/{loaDocumentId}/download",
|
|
789
|
+
}));
|
|
790
|
+
export const GetLoaDocumentResponse =
|
|
791
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
|
|
792
|
+
export const getLoaDocument = API.make(() => ({
|
|
793
|
+
input: GetLoaDocumentRequest,
|
|
794
|
+
output: GetLoaDocumentResponse,
|
|
795
|
+
errors: [LoaDocumentNotFound, InvalidAccountId],
|
|
796
|
+
}));
|
|
797
|
+
export const CreateLoaDocumentRequest =
|
|
798
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
799
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
800
|
+
loaDocument: Schema.String,
|
|
801
|
+
}).pipe(Schema.encodeKeys({ loaDocument: "loa_document" }), T.Http({
|
|
802
|
+
method: "POST",
|
|
803
|
+
path: "/accounts/{account_id}/addressing/loa_documents",
|
|
804
|
+
contentType: "multipart",
|
|
805
|
+
}));
|
|
806
|
+
export const CreateLoaDocumentResponse =
|
|
807
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
808
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
809
|
+
accountId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
810
|
+
autoGenerated: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
811
|
+
created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
812
|
+
filename: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
813
|
+
sizeBytes: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
814
|
+
verified: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
815
|
+
verifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
816
|
+
})
|
|
817
|
+
.pipe(Schema.encodeKeys({
|
|
818
|
+
id: "id",
|
|
819
|
+
accountId: "account_id",
|
|
820
|
+
autoGenerated: "auto_generated",
|
|
821
|
+
created: "created",
|
|
822
|
+
filename: "filename",
|
|
823
|
+
sizeBytes: "size_bytes",
|
|
824
|
+
verified: "verified",
|
|
825
|
+
verifiedAt: "verified_at",
|
|
826
|
+
}))
|
|
827
|
+
.pipe(T.ResponsePath("result"));
|
|
828
|
+
export const createLoaDocument = API.make(() => ({
|
|
829
|
+
input: CreateLoaDocumentRequest,
|
|
830
|
+
output: CreateLoaDocumentResponse,
|
|
831
|
+
errors: [InvalidAccountId, InvalidLoaForm],
|
|
832
|
+
}));
|
|
833
|
+
export const GetPrefixRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
834
|
+
prefixId: Schema.String.pipe(T.HttpPath("prefixId")),
|
|
835
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
836
|
+
}).pipe(T.Http({
|
|
837
|
+
method: "GET",
|
|
838
|
+
path: "/accounts/{account_id}/addressing/prefixes/{prefixId}",
|
|
839
|
+
}));
|
|
840
|
+
export const GetPrefixResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
841
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
842
|
+
accountId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
843
|
+
advertised: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
844
|
+
advertisedModifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
845
|
+
approved: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
846
|
+
asn: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
847
|
+
cidr: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
848
|
+
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
849
|
+
delegateLoaCreation: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
850
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
851
|
+
irrValidationState: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
852
|
+
loaDocumentId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
853
|
+
modifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
854
|
+
onDemandEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
855
|
+
onDemandLocked: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
856
|
+
ownershipValidationState: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
857
|
+
ownershipValidationToken: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
858
|
+
rpkiValidationState: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
859
|
+
})
|
|
860
|
+
.pipe(Schema.encodeKeys({
|
|
861
|
+
id: "id",
|
|
862
|
+
accountId: "account_id",
|
|
863
|
+
advertised: "advertised",
|
|
864
|
+
advertisedModifiedAt: "advertised_modified_at",
|
|
865
|
+
approved: "approved",
|
|
866
|
+
asn: "asn",
|
|
867
|
+
cidr: "cidr",
|
|
868
|
+
createdAt: "created_at",
|
|
869
|
+
delegateLoaCreation: "delegate_loa_creation",
|
|
870
|
+
description: "description",
|
|
871
|
+
irrValidationState: "irr_validation_state",
|
|
872
|
+
loaDocumentId: "loa_document_id",
|
|
873
|
+
modifiedAt: "modified_at",
|
|
874
|
+
onDemandEnabled: "on_demand_enabled",
|
|
875
|
+
onDemandLocked: "on_demand_locked",
|
|
876
|
+
ownershipValidationState: "ownership_validation_state",
|
|
877
|
+
ownershipValidationToken: "ownership_validation_token",
|
|
878
|
+
rpkiValidationState: "rpki_validation_state",
|
|
879
|
+
}))
|
|
880
|
+
.pipe(T.ResponsePath("result"));
|
|
881
|
+
export const getPrefix = API.make(() => ({
|
|
882
|
+
input: GetPrefixRequest,
|
|
883
|
+
output: GetPrefixResponse,
|
|
884
|
+
errors: [PrefixNotFound, InvalidAccountId],
|
|
885
|
+
}));
|
|
886
|
+
export const ListPrefixesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
887
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
888
|
+
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/addressing/prefixes" }));
|
|
889
|
+
export const ListPrefixesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
890
|
+
result: Schema.Array(Schema.Struct({
|
|
891
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
892
|
+
accountId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
893
|
+
advertised: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
894
|
+
advertisedModifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
895
|
+
approved: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
896
|
+
asn: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
897
|
+
cidr: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
898
|
+
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
899
|
+
delegateLoaCreation: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
900
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
901
|
+
irrValidationState: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
902
|
+
loaDocumentId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
903
|
+
modifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
904
|
+
onDemandEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
905
|
+
onDemandLocked: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
906
|
+
ownershipValidationState: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
907
|
+
ownershipValidationToken: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
908
|
+
rpkiValidationState: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
909
|
+
}).pipe(Schema.encodeKeys({
|
|
910
|
+
id: "id",
|
|
911
|
+
accountId: "account_id",
|
|
912
|
+
advertised: "advertised",
|
|
913
|
+
advertisedModifiedAt: "advertised_modified_at",
|
|
914
|
+
approved: "approved",
|
|
915
|
+
asn: "asn",
|
|
916
|
+
cidr: "cidr",
|
|
917
|
+
createdAt: "created_at",
|
|
918
|
+
delegateLoaCreation: "delegate_loa_creation",
|
|
919
|
+
description: "description",
|
|
920
|
+
irrValidationState: "irr_validation_state",
|
|
921
|
+
loaDocumentId: "loa_document_id",
|
|
922
|
+
modifiedAt: "modified_at",
|
|
923
|
+
onDemandEnabled: "on_demand_enabled",
|
|
924
|
+
onDemandLocked: "on_demand_locked",
|
|
925
|
+
ownershipValidationState: "ownership_validation_state",
|
|
926
|
+
ownershipValidationToken: "ownership_validation_token",
|
|
927
|
+
rpkiValidationState: "rpki_validation_state",
|
|
928
|
+
}))),
|
|
929
|
+
});
|
|
930
|
+
export const listPrefixes = API.makePaginated(() => ({
|
|
931
|
+
input: ListPrefixesRequest,
|
|
932
|
+
output: ListPrefixesResponse,
|
|
933
|
+
errors: [],
|
|
934
|
+
pagination: {
|
|
935
|
+
mode: "single",
|
|
936
|
+
items: "result",
|
|
937
|
+
},
|
|
938
|
+
}));
|
|
939
|
+
export const CreatePrefixRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
940
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
941
|
+
asn: Schema.Number,
|
|
942
|
+
cidr: Schema.String,
|
|
943
|
+
delegateLoaCreation: Schema.optional(Schema.Boolean),
|
|
944
|
+
description: Schema.optional(Schema.String),
|
|
945
|
+
loaDocumentId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
946
|
+
}).pipe(Schema.encodeKeys({
|
|
947
|
+
asn: "asn",
|
|
948
|
+
cidr: "cidr",
|
|
949
|
+
delegateLoaCreation: "delegate_loa_creation",
|
|
950
|
+
description: "description",
|
|
951
|
+
loaDocumentId: "loa_document_id",
|
|
952
|
+
}), T.Http({
|
|
953
|
+
method: "POST",
|
|
954
|
+
path: "/accounts/{account_id}/addressing/prefixes",
|
|
955
|
+
}));
|
|
956
|
+
export const CreatePrefixResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
957
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
958
|
+
accountId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
959
|
+
advertised: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
960
|
+
advertisedModifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
961
|
+
approved: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
962
|
+
asn: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
963
|
+
cidr: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
964
|
+
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
965
|
+
delegateLoaCreation: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
966
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
967
|
+
irrValidationState: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
968
|
+
loaDocumentId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
969
|
+
modifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
970
|
+
onDemandEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
971
|
+
onDemandLocked: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
972
|
+
ownershipValidationState: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
973
|
+
ownershipValidationToken: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
974
|
+
rpkiValidationState: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
975
|
+
})
|
|
976
|
+
.pipe(Schema.encodeKeys({
|
|
977
|
+
id: "id",
|
|
978
|
+
accountId: "account_id",
|
|
979
|
+
advertised: "advertised",
|
|
980
|
+
advertisedModifiedAt: "advertised_modified_at",
|
|
981
|
+
approved: "approved",
|
|
982
|
+
asn: "asn",
|
|
983
|
+
cidr: "cidr",
|
|
984
|
+
createdAt: "created_at",
|
|
985
|
+
delegateLoaCreation: "delegate_loa_creation",
|
|
986
|
+
description: "description",
|
|
987
|
+
irrValidationState: "irr_validation_state",
|
|
988
|
+
loaDocumentId: "loa_document_id",
|
|
989
|
+
modifiedAt: "modified_at",
|
|
990
|
+
onDemandEnabled: "on_demand_enabled",
|
|
991
|
+
onDemandLocked: "on_demand_locked",
|
|
992
|
+
ownershipValidationState: "ownership_validation_state",
|
|
993
|
+
ownershipValidationToken: "ownership_validation_token",
|
|
994
|
+
rpkiValidationState: "rpki_validation_state",
|
|
995
|
+
}))
|
|
996
|
+
.pipe(T.ResponsePath("result"));
|
|
997
|
+
export const createPrefix = API.make(() => ({
|
|
998
|
+
input: CreatePrefixRequest,
|
|
999
|
+
output: CreatePrefixResponse,
|
|
1000
|
+
errors: [InvalidAccountId, InvalidNetworkCidr, IrrEntryNotFound],
|
|
1001
|
+
}));
|
|
1002
|
+
export const PatchPrefixRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1003
|
+
prefixId: Schema.String.pipe(T.HttpPath("prefixId")),
|
|
1004
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1005
|
+
description: Schema.String,
|
|
1006
|
+
}).pipe(T.Http({
|
|
1007
|
+
method: "PATCH",
|
|
1008
|
+
path: "/accounts/{account_id}/addressing/prefixes/{prefixId}",
|
|
1009
|
+
}));
|
|
1010
|
+
export const PatchPrefixResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1011
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1012
|
+
accountId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1013
|
+
advertised: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1014
|
+
advertisedModifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1015
|
+
approved: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1016
|
+
asn: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1017
|
+
cidr: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1018
|
+
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1019
|
+
delegateLoaCreation: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1020
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1021
|
+
irrValidationState: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1022
|
+
loaDocumentId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1023
|
+
modifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1024
|
+
onDemandEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1025
|
+
onDemandLocked: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1026
|
+
ownershipValidationState: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1027
|
+
ownershipValidationToken: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1028
|
+
rpkiValidationState: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1029
|
+
})
|
|
1030
|
+
.pipe(Schema.encodeKeys({
|
|
1031
|
+
id: "id",
|
|
1032
|
+
accountId: "account_id",
|
|
1033
|
+
advertised: "advertised",
|
|
1034
|
+
advertisedModifiedAt: "advertised_modified_at",
|
|
1035
|
+
approved: "approved",
|
|
1036
|
+
asn: "asn",
|
|
1037
|
+
cidr: "cidr",
|
|
1038
|
+
createdAt: "created_at",
|
|
1039
|
+
delegateLoaCreation: "delegate_loa_creation",
|
|
1040
|
+
description: "description",
|
|
1041
|
+
irrValidationState: "irr_validation_state",
|
|
1042
|
+
loaDocumentId: "loa_document_id",
|
|
1043
|
+
modifiedAt: "modified_at",
|
|
1044
|
+
onDemandEnabled: "on_demand_enabled",
|
|
1045
|
+
onDemandLocked: "on_demand_locked",
|
|
1046
|
+
ownershipValidationState: "ownership_validation_state",
|
|
1047
|
+
ownershipValidationToken: "ownership_validation_token",
|
|
1048
|
+
rpkiValidationState: "rpki_validation_state",
|
|
1049
|
+
}))
|
|
1050
|
+
.pipe(T.ResponsePath("result"));
|
|
1051
|
+
export const patchPrefix = API.make(() => ({
|
|
1052
|
+
input: PatchPrefixRequest,
|
|
1053
|
+
output: PatchPrefixResponse,
|
|
1054
|
+
errors: [MethodNotAllowed, PrefixNotFound, InvalidAccountId],
|
|
1055
|
+
}));
|
|
1056
|
+
export const DeletePrefixRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1057
|
+
prefixId: Schema.String.pipe(T.HttpPath("prefixId")),
|
|
1058
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1059
|
+
}).pipe(T.Http({
|
|
1060
|
+
method: "DELETE",
|
|
1061
|
+
path: "/accounts/{account_id}/addressing/prefixes/{prefixId}",
|
|
1062
|
+
}));
|
|
1063
|
+
export const DeletePrefixResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1064
|
+
errors: Schema.Array(Schema.Struct({
|
|
1065
|
+
code: Schema.Number,
|
|
1066
|
+
message: Schema.String,
|
|
1067
|
+
documentationUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1068
|
+
source: Schema.optional(Schema.Union([
|
|
1069
|
+
Schema.Struct({
|
|
1070
|
+
pointer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1071
|
+
}),
|
|
1072
|
+
Schema.Null,
|
|
1073
|
+
])),
|
|
1074
|
+
}).pipe(Schema.encodeKeys({
|
|
1075
|
+
code: "code",
|
|
1076
|
+
message: "message",
|
|
1077
|
+
documentationUrl: "documentation_url",
|
|
1078
|
+
source: "source",
|
|
1079
|
+
}))),
|
|
1080
|
+
messages: Schema.Array(Schema.Struct({
|
|
1081
|
+
code: Schema.Number,
|
|
1082
|
+
message: Schema.String,
|
|
1083
|
+
documentationUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1084
|
+
source: Schema.optional(Schema.Union([
|
|
1085
|
+
Schema.Struct({
|
|
1086
|
+
pointer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1087
|
+
}),
|
|
1088
|
+
Schema.Null,
|
|
1089
|
+
])),
|
|
1090
|
+
}).pipe(Schema.encodeKeys({
|
|
1091
|
+
code: "code",
|
|
1092
|
+
message: "message",
|
|
1093
|
+
documentationUrl: "documentation_url",
|
|
1094
|
+
source: "source",
|
|
1095
|
+
}))),
|
|
1096
|
+
success: Schema.Literal(true),
|
|
1097
|
+
});
|
|
1098
|
+
export const deletePrefix = API.make(() => ({
|
|
1099
|
+
input: DeletePrefixRequest,
|
|
1100
|
+
output: DeletePrefixResponse,
|
|
1101
|
+
errors: [MethodNotAllowed, PrefixNotFound, InvalidAccountId],
|
|
1102
|
+
}));
|
|
1103
|
+
export const GetPrefixAdvertisementStatusRequest =
|
|
1104
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1105
|
+
prefixId: Schema.String.pipe(T.HttpPath("prefixId")),
|
|
1106
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1107
|
+
}).pipe(T.Http({
|
|
1108
|
+
method: "GET",
|
|
1109
|
+
path: "/accounts/{account_id}/addressing/prefixes/{prefixId}/bgp/status",
|
|
1110
|
+
}));
|
|
1111
|
+
export const GetPrefixAdvertisementStatusResponse =
|
|
1112
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1113
|
+
advertised: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1114
|
+
advertisedModifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1115
|
+
})
|
|
1116
|
+
.pipe(Schema.encodeKeys({
|
|
1117
|
+
advertised: "advertised",
|
|
1118
|
+
advertisedModifiedAt: "advertised_modified_at",
|
|
1119
|
+
}))
|
|
1120
|
+
.pipe(T.ResponsePath("result"));
|
|
1121
|
+
export const getPrefixAdvertisementStatus = API.make(() => ({
|
|
1122
|
+
input: GetPrefixAdvertisementStatusRequest,
|
|
1123
|
+
output: GetPrefixAdvertisementStatusResponse,
|
|
1124
|
+
errors: [PrefixNotFound, InvalidAccountId],
|
|
1125
|
+
}));
|
|
1126
|
+
export const PatchPrefixAdvertisementStatusRequest =
|
|
1127
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1128
|
+
prefixId: Schema.String.pipe(T.HttpPath("prefixId")),
|
|
1129
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1130
|
+
advertised: Schema.Boolean,
|
|
1131
|
+
}).pipe(T.Http({
|
|
1132
|
+
method: "PATCH",
|
|
1133
|
+
path: "/accounts/{account_id}/addressing/prefixes/{prefixId}/bgp/status",
|
|
1134
|
+
}));
|
|
1135
|
+
export const PatchPrefixAdvertisementStatusResponse =
|
|
1136
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1137
|
+
advertised: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1138
|
+
advertisedModifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1139
|
+
})
|
|
1140
|
+
.pipe(Schema.encodeKeys({
|
|
1141
|
+
advertised: "advertised",
|
|
1142
|
+
advertisedModifiedAt: "advertised_modified_at",
|
|
1143
|
+
}))
|
|
1144
|
+
.pipe(T.ResponsePath("result"));
|
|
1145
|
+
export const patchPrefixAdvertisementStatus = API.make(() => ({
|
|
1146
|
+
input: PatchPrefixAdvertisementStatusRequest,
|
|
1147
|
+
output: PatchPrefixAdvertisementStatusResponse,
|
|
1148
|
+
errors: [PrefixNotFound, InvalidAccountId],
|
|
1149
|
+
}));
|
|
1150
|
+
export const GetPrefixBgpPrefixRequest =
|
|
1151
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1152
|
+
prefixId: Schema.String.pipe(T.HttpPath("prefixId")),
|
|
1153
|
+
bgpPrefixId: Schema.String.pipe(T.HttpPath("bgpPrefixId")),
|
|
1154
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1155
|
+
}).pipe(T.Http({
|
|
1156
|
+
method: "GET",
|
|
1157
|
+
path: "/accounts/{account_id}/addressing/prefixes/{prefixId}/bgp/prefixes/{bgpPrefixId}",
|
|
1158
|
+
}));
|
|
1159
|
+
export const GetPrefixBgpPrefixResponse =
|
|
1160
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1161
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1162
|
+
asn: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1163
|
+
asnPrependCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1164
|
+
autoAdvertiseWithdraw: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1165
|
+
bgpSignalOpts: Schema.optional(Schema.Union([
|
|
1166
|
+
Schema.Struct({
|
|
1167
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1168
|
+
modifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1169
|
+
}).pipe(Schema.encodeKeys({ enabled: "enabled", modifiedAt: "modified_at" })),
|
|
1170
|
+
Schema.Null,
|
|
1171
|
+
])),
|
|
1172
|
+
cidr: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1173
|
+
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1174
|
+
modifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1175
|
+
onDemand: Schema.optional(Schema.Union([
|
|
1176
|
+
Schema.Struct({
|
|
1177
|
+
advertised: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1178
|
+
advertisedModifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1179
|
+
onDemandEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1180
|
+
onDemandLocked: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1181
|
+
}).pipe(Schema.encodeKeys({
|
|
1182
|
+
advertised: "advertised",
|
|
1183
|
+
advertisedModifiedAt: "advertised_modified_at",
|
|
1184
|
+
onDemandEnabled: "on_demand_enabled",
|
|
1185
|
+
onDemandLocked: "on_demand_locked",
|
|
1186
|
+
})),
|
|
1187
|
+
Schema.Null,
|
|
1188
|
+
])),
|
|
1189
|
+
})
|
|
1190
|
+
.pipe(Schema.encodeKeys({
|
|
1191
|
+
id: "id",
|
|
1192
|
+
asn: "asn",
|
|
1193
|
+
asnPrependCount: "asn_prepend_count",
|
|
1194
|
+
autoAdvertiseWithdraw: "auto_advertise_withdraw",
|
|
1195
|
+
bgpSignalOpts: "bgp_signal_opts",
|
|
1196
|
+
cidr: "cidr",
|
|
1197
|
+
createdAt: "created_at",
|
|
1198
|
+
modifiedAt: "modified_at",
|
|
1199
|
+
onDemand: "on_demand",
|
|
1200
|
+
}))
|
|
1201
|
+
.pipe(T.ResponsePath("result"));
|
|
1202
|
+
export const getPrefixBgpPrefix = API.make(() => ({
|
|
1203
|
+
input: GetPrefixBgpPrefixRequest,
|
|
1204
|
+
output: GetPrefixBgpPrefixResponse,
|
|
1205
|
+
errors: [BgpPrefixNotFound, InvalidAccountId, PrefixNotFound],
|
|
1206
|
+
}));
|
|
1207
|
+
export const ListPrefixBgpPrefixesRequest =
|
|
1208
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1209
|
+
prefixId: Schema.String.pipe(T.HttpPath("prefixId")),
|
|
1210
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1211
|
+
}).pipe(T.Http({
|
|
1212
|
+
method: "GET",
|
|
1213
|
+
path: "/accounts/{account_id}/addressing/prefixes/{prefixId}/bgp/prefixes",
|
|
1214
|
+
}));
|
|
1215
|
+
export const ListPrefixBgpPrefixesResponse =
|
|
1216
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1217
|
+
result: Schema.Array(Schema.Struct({
|
|
1218
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1219
|
+
asn: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1220
|
+
asnPrependCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1221
|
+
autoAdvertiseWithdraw: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1222
|
+
bgpSignalOpts: Schema.optional(Schema.Union([
|
|
1223
|
+
Schema.Struct({
|
|
1224
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1225
|
+
modifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1226
|
+
}).pipe(Schema.encodeKeys({
|
|
1227
|
+
enabled: "enabled",
|
|
1228
|
+
modifiedAt: "modified_at",
|
|
1229
|
+
})),
|
|
1230
|
+
Schema.Null,
|
|
1231
|
+
])),
|
|
1232
|
+
cidr: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1233
|
+
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1234
|
+
modifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1235
|
+
onDemand: Schema.optional(Schema.Union([
|
|
1236
|
+
Schema.Struct({
|
|
1237
|
+
advertised: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1238
|
+
advertisedModifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1239
|
+
onDemandEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1240
|
+
onDemandLocked: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1241
|
+
}).pipe(Schema.encodeKeys({
|
|
1242
|
+
advertised: "advertised",
|
|
1243
|
+
advertisedModifiedAt: "advertised_modified_at",
|
|
1244
|
+
onDemandEnabled: "on_demand_enabled",
|
|
1245
|
+
onDemandLocked: "on_demand_locked",
|
|
1246
|
+
})),
|
|
1247
|
+
Schema.Null,
|
|
1248
|
+
])),
|
|
1249
|
+
}).pipe(Schema.encodeKeys({
|
|
1250
|
+
id: "id",
|
|
1251
|
+
asn: "asn",
|
|
1252
|
+
asnPrependCount: "asn_prepend_count",
|
|
1253
|
+
autoAdvertiseWithdraw: "auto_advertise_withdraw",
|
|
1254
|
+
bgpSignalOpts: "bgp_signal_opts",
|
|
1255
|
+
cidr: "cidr",
|
|
1256
|
+
createdAt: "created_at",
|
|
1257
|
+
modifiedAt: "modified_at",
|
|
1258
|
+
onDemand: "on_demand",
|
|
1259
|
+
}))),
|
|
1260
|
+
});
|
|
1261
|
+
export const listPrefixBgpPrefixes = API.makePaginated(() => ({
|
|
1262
|
+
input: ListPrefixBgpPrefixesRequest,
|
|
1263
|
+
output: ListPrefixBgpPrefixesResponse,
|
|
1264
|
+
errors: [],
|
|
1265
|
+
pagination: {
|
|
1266
|
+
mode: "single",
|
|
1267
|
+
items: "result",
|
|
1268
|
+
},
|
|
1269
|
+
}));
|
|
1270
|
+
export const CreatePrefixBgpPrefixRequest =
|
|
1271
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1272
|
+
prefixId: Schema.String.pipe(T.HttpPath("prefixId")),
|
|
1273
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1274
|
+
cidr: Schema.String,
|
|
1275
|
+
}).pipe(T.Http({
|
|
1276
|
+
method: "POST",
|
|
1277
|
+
path: "/accounts/{account_id}/addressing/prefixes/{prefixId}/bgp/prefixes",
|
|
1278
|
+
}));
|
|
1279
|
+
export const CreatePrefixBgpPrefixResponse =
|
|
1280
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1281
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1282
|
+
asn: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1283
|
+
asnPrependCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1284
|
+
autoAdvertiseWithdraw: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1285
|
+
bgpSignalOpts: Schema.optional(Schema.Union([
|
|
1286
|
+
Schema.Struct({
|
|
1287
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1288
|
+
modifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1289
|
+
}).pipe(Schema.encodeKeys({ enabled: "enabled", modifiedAt: "modified_at" })),
|
|
1290
|
+
Schema.Null,
|
|
1291
|
+
])),
|
|
1292
|
+
cidr: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1293
|
+
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1294
|
+
modifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1295
|
+
onDemand: Schema.optional(Schema.Union([
|
|
1296
|
+
Schema.Struct({
|
|
1297
|
+
advertised: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1298
|
+
advertisedModifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1299
|
+
onDemandEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1300
|
+
onDemandLocked: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1301
|
+
}).pipe(Schema.encodeKeys({
|
|
1302
|
+
advertised: "advertised",
|
|
1303
|
+
advertisedModifiedAt: "advertised_modified_at",
|
|
1304
|
+
onDemandEnabled: "on_demand_enabled",
|
|
1305
|
+
onDemandLocked: "on_demand_locked",
|
|
1306
|
+
})),
|
|
1307
|
+
Schema.Null,
|
|
1308
|
+
])),
|
|
1309
|
+
})
|
|
1310
|
+
.pipe(Schema.encodeKeys({
|
|
1311
|
+
id: "id",
|
|
1312
|
+
asn: "asn",
|
|
1313
|
+
asnPrependCount: "asn_prepend_count",
|
|
1314
|
+
autoAdvertiseWithdraw: "auto_advertise_withdraw",
|
|
1315
|
+
bgpSignalOpts: "bgp_signal_opts",
|
|
1316
|
+
cidr: "cidr",
|
|
1317
|
+
createdAt: "created_at",
|
|
1318
|
+
modifiedAt: "modified_at",
|
|
1319
|
+
onDemand: "on_demand",
|
|
1320
|
+
}))
|
|
1321
|
+
.pipe(T.ResponsePath("result"));
|
|
1322
|
+
export const createPrefixBgpPrefix = API.make(() => ({
|
|
1323
|
+
input: CreatePrefixBgpPrefixRequest,
|
|
1324
|
+
output: CreatePrefixBgpPrefixResponse,
|
|
1325
|
+
errors: [NonexistentAccountPrefix, InvalidAccountId, InvalidNetworkCidr],
|
|
1326
|
+
}));
|
|
1327
|
+
export const PatchPrefixBgpPrefixRequest =
|
|
1328
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1329
|
+
prefixId: Schema.String.pipe(T.HttpPath("prefixId")),
|
|
1330
|
+
bgpPrefixId: Schema.String.pipe(T.HttpPath("bgpPrefixId")),
|
|
1331
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1332
|
+
asnPrependCount: Schema.optional(Schema.Number),
|
|
1333
|
+
autoAdvertiseWithdraw: Schema.optional(Schema.Boolean),
|
|
1334
|
+
onDemand: Schema.optional(Schema.Struct({
|
|
1335
|
+
advertised: Schema.optional(Schema.Boolean),
|
|
1336
|
+
})),
|
|
1337
|
+
}).pipe(Schema.encodeKeys({
|
|
1338
|
+
asnPrependCount: "asn_prepend_count",
|
|
1339
|
+
autoAdvertiseWithdraw: "auto_advertise_withdraw",
|
|
1340
|
+
onDemand: "on_demand",
|
|
1341
|
+
}), T.Http({
|
|
1342
|
+
method: "PATCH",
|
|
1343
|
+
path: "/accounts/{account_id}/addressing/prefixes/{prefixId}/bgp/prefixes/{bgpPrefixId}",
|
|
1344
|
+
}));
|
|
1345
|
+
export const PatchPrefixBgpPrefixResponse =
|
|
1346
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1347
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1348
|
+
asn: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1349
|
+
asnPrependCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1350
|
+
autoAdvertiseWithdraw: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1351
|
+
bgpSignalOpts: Schema.optional(Schema.Union([
|
|
1352
|
+
Schema.Struct({
|
|
1353
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1354
|
+
modifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1355
|
+
}).pipe(Schema.encodeKeys({ enabled: "enabled", modifiedAt: "modified_at" })),
|
|
1356
|
+
Schema.Null,
|
|
1357
|
+
])),
|
|
1358
|
+
cidr: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1359
|
+
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1360
|
+
modifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1361
|
+
onDemand: Schema.optional(Schema.Union([
|
|
1362
|
+
Schema.Struct({
|
|
1363
|
+
advertised: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1364
|
+
advertisedModifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1365
|
+
onDemandEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1366
|
+
onDemandLocked: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1367
|
+
}).pipe(Schema.encodeKeys({
|
|
1368
|
+
advertised: "advertised",
|
|
1369
|
+
advertisedModifiedAt: "advertised_modified_at",
|
|
1370
|
+
onDemandEnabled: "on_demand_enabled",
|
|
1371
|
+
onDemandLocked: "on_demand_locked",
|
|
1372
|
+
})),
|
|
1373
|
+
Schema.Null,
|
|
1374
|
+
])),
|
|
1375
|
+
})
|
|
1376
|
+
.pipe(Schema.encodeKeys({
|
|
1377
|
+
id: "id",
|
|
1378
|
+
asn: "asn",
|
|
1379
|
+
asnPrependCount: "asn_prepend_count",
|
|
1380
|
+
autoAdvertiseWithdraw: "auto_advertise_withdraw",
|
|
1381
|
+
bgpSignalOpts: "bgp_signal_opts",
|
|
1382
|
+
cidr: "cidr",
|
|
1383
|
+
createdAt: "created_at",
|
|
1384
|
+
modifiedAt: "modified_at",
|
|
1385
|
+
onDemand: "on_demand",
|
|
1386
|
+
}))
|
|
1387
|
+
.pipe(T.ResponsePath("result"));
|
|
1388
|
+
export const patchPrefixBgpPrefix = API.make(() => ({
|
|
1389
|
+
input: PatchPrefixBgpPrefixRequest,
|
|
1390
|
+
output: PatchPrefixBgpPrefixResponse,
|
|
1391
|
+
errors: [BgpPrefixNotFound, InvalidAccountId],
|
|
1392
|
+
}));
|
|
1393
|
+
export const ListPrefixDelegationsRequest =
|
|
1394
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1395
|
+
prefixId: Schema.String.pipe(T.HttpPath("prefixId")),
|
|
1396
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1397
|
+
}).pipe(T.Http({
|
|
1398
|
+
method: "GET",
|
|
1399
|
+
path: "/accounts/{account_id}/addressing/prefixes/{prefixId}/delegations",
|
|
1400
|
+
}));
|
|
1401
|
+
export const ListPrefixDelegationsResponse =
|
|
1402
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1403
|
+
result: Schema.Array(Schema.Struct({
|
|
1404
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1405
|
+
cidr: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1406
|
+
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1407
|
+
delegatedAccountId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1408
|
+
modifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1409
|
+
parentPrefixId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1410
|
+
}).pipe(Schema.encodeKeys({
|
|
1411
|
+
id: "id",
|
|
1412
|
+
cidr: "cidr",
|
|
1413
|
+
createdAt: "created_at",
|
|
1414
|
+
delegatedAccountId: "delegated_account_id",
|
|
1415
|
+
modifiedAt: "modified_at",
|
|
1416
|
+
parentPrefixId: "parent_prefix_id",
|
|
1417
|
+
}))),
|
|
1418
|
+
});
|
|
1419
|
+
export const listPrefixDelegations = API.makePaginated(() => ({
|
|
1420
|
+
input: ListPrefixDelegationsRequest,
|
|
1421
|
+
output: ListPrefixDelegationsResponse,
|
|
1422
|
+
errors: [],
|
|
1423
|
+
pagination: {
|
|
1424
|
+
mode: "single",
|
|
1425
|
+
items: "result",
|
|
1426
|
+
},
|
|
1427
|
+
}));
|
|
1428
|
+
export const CreatePrefixDelegationRequest =
|
|
1429
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1430
|
+
prefixId: Schema.String.pipe(T.HttpPath("prefixId")),
|
|
1431
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1432
|
+
cidr: Schema.String,
|
|
1433
|
+
delegatedAccountId: Schema.String,
|
|
1434
|
+
}).pipe(Schema.encodeKeys({
|
|
1435
|
+
cidr: "cidr",
|
|
1436
|
+
delegatedAccountId: "delegated_account_id",
|
|
1437
|
+
}), T.Http({
|
|
1438
|
+
method: "POST",
|
|
1439
|
+
path: "/accounts/{account_id}/addressing/prefixes/{prefixId}/delegations",
|
|
1440
|
+
}));
|
|
1441
|
+
export const CreatePrefixDelegationResponse =
|
|
1442
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1443
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1444
|
+
cidr: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1445
|
+
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1446
|
+
delegatedAccountId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1447
|
+
modifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1448
|
+
parentPrefixId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1449
|
+
})
|
|
1450
|
+
.pipe(Schema.encodeKeys({
|
|
1451
|
+
id: "id",
|
|
1452
|
+
cidr: "cidr",
|
|
1453
|
+
createdAt: "created_at",
|
|
1454
|
+
delegatedAccountId: "delegated_account_id",
|
|
1455
|
+
modifiedAt: "modified_at",
|
|
1456
|
+
parentPrefixId: "parent_prefix_id",
|
|
1457
|
+
}))
|
|
1458
|
+
.pipe(T.ResponsePath("result"));
|
|
1459
|
+
export const createPrefixDelegation = API.make(() => ({
|
|
1460
|
+
input: CreatePrefixDelegationRequest,
|
|
1461
|
+
output: CreatePrefixDelegationResponse,
|
|
1462
|
+
errors: [PrefixNotFound, MissingAccountId, InvalidAccountId],
|
|
1463
|
+
}));
|
|
1464
|
+
export const DeletePrefixDelegationRequest =
|
|
1465
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1466
|
+
prefixId: Schema.String.pipe(T.HttpPath("prefixId")),
|
|
1467
|
+
delegationId: Schema.String.pipe(T.HttpPath("delegationId")),
|
|
1468
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1469
|
+
}).pipe(T.Http({
|
|
1470
|
+
method: "DELETE",
|
|
1471
|
+
path: "/accounts/{account_id}/addressing/prefixes/{prefixId}/delegations/{delegationId}",
|
|
1472
|
+
}));
|
|
1473
|
+
export const DeletePrefixDelegationResponse =
|
|
1474
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1475
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1476
|
+
}).pipe(T.ResponsePath("result"));
|
|
1477
|
+
export const deletePrefixDelegation = API.make(() => ({
|
|
1478
|
+
input: DeletePrefixDelegationRequest,
|
|
1479
|
+
output: DeletePrefixDelegationResponse,
|
|
1480
|
+
errors: [DelegationNotFound, InvalidAccountId],
|
|
1481
|
+
}));
|
|
1482
|
+
export const GetPrefixServiceBindingRequest =
|
|
1483
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1484
|
+
prefixId: Schema.String.pipe(T.HttpPath("prefixId")),
|
|
1485
|
+
bindingId: Schema.String.pipe(T.HttpPath("bindingId")),
|
|
1486
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1487
|
+
}).pipe(T.Http({
|
|
1488
|
+
method: "GET",
|
|
1489
|
+
path: "/accounts/{account_id}/addressing/prefixes/{prefixId}/bindings/{bindingId}",
|
|
1490
|
+
}));
|
|
1491
|
+
export const GetPrefixServiceBindingResponse =
|
|
1492
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1493
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1494
|
+
cidr: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1495
|
+
provisioning: Schema.optional(Schema.Union([
|
|
1496
|
+
Schema.Struct({
|
|
1497
|
+
state: Schema.optional(Schema.Union([
|
|
1498
|
+
Schema.Literals(["provisioning", "active"]),
|
|
1499
|
+
Schema.Null,
|
|
1500
|
+
])),
|
|
1501
|
+
}),
|
|
1502
|
+
Schema.Null,
|
|
1503
|
+
])),
|
|
1504
|
+
serviceId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1505
|
+
serviceName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1506
|
+
})
|
|
1507
|
+
.pipe(Schema.encodeKeys({
|
|
1508
|
+
id: "id",
|
|
1509
|
+
cidr: "cidr",
|
|
1510
|
+
provisioning: "provisioning",
|
|
1511
|
+
serviceId: "service_id",
|
|
1512
|
+
serviceName: "service_name",
|
|
1513
|
+
}))
|
|
1514
|
+
.pipe(T.ResponsePath("result"));
|
|
1515
|
+
export const getPrefixServiceBinding = API.make(() => ({
|
|
1516
|
+
input: GetPrefixServiceBindingRequest,
|
|
1517
|
+
output: GetPrefixServiceBindingResponse,
|
|
1518
|
+
errors: [BindingNotFound, InvalidAccountId, PrefixNotFound],
|
|
1519
|
+
}));
|
|
1520
|
+
export const ListPrefixServiceBindingsRequest =
|
|
1521
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1522
|
+
prefixId: Schema.String.pipe(T.HttpPath("prefixId")),
|
|
1523
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1524
|
+
}).pipe(T.Http({
|
|
1525
|
+
method: "GET",
|
|
1526
|
+
path: "/accounts/{account_id}/addressing/prefixes/{prefixId}/bindings",
|
|
1527
|
+
}));
|
|
1528
|
+
export const ListPrefixServiceBindingsResponse =
|
|
1529
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1530
|
+
result: Schema.Array(Schema.Struct({
|
|
1531
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1532
|
+
cidr: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1533
|
+
provisioning: Schema.optional(Schema.Union([
|
|
1534
|
+
Schema.Struct({
|
|
1535
|
+
state: Schema.optional(Schema.Union([
|
|
1536
|
+
Schema.Literals(["provisioning", "active"]),
|
|
1537
|
+
Schema.Null,
|
|
1538
|
+
])),
|
|
1539
|
+
}),
|
|
1540
|
+
Schema.Null,
|
|
1541
|
+
])),
|
|
1542
|
+
serviceId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1543
|
+
serviceName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1544
|
+
}).pipe(Schema.encodeKeys({
|
|
1545
|
+
id: "id",
|
|
1546
|
+
cidr: "cidr",
|
|
1547
|
+
provisioning: "provisioning",
|
|
1548
|
+
serviceId: "service_id",
|
|
1549
|
+
serviceName: "service_name",
|
|
1550
|
+
}))),
|
|
1551
|
+
});
|
|
1552
|
+
export const listPrefixServiceBindings = API.makePaginated(() => ({
|
|
1553
|
+
input: ListPrefixServiceBindingsRequest,
|
|
1554
|
+
output: ListPrefixServiceBindingsResponse,
|
|
1555
|
+
errors: [],
|
|
1556
|
+
pagination: {
|
|
1557
|
+
mode: "single",
|
|
1558
|
+
items: "result",
|
|
1559
|
+
},
|
|
1560
|
+
}));
|
|
1561
|
+
export const CreatePrefixServiceBindingRequest =
|
|
1562
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1563
|
+
prefixId: Schema.String.pipe(T.HttpPath("prefixId")),
|
|
1564
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1565
|
+
cidr: Schema.String,
|
|
1566
|
+
serviceId: Schema.String,
|
|
1567
|
+
}).pipe(Schema.encodeKeys({ cidr: "cidr", serviceId: "service_id" }), T.Http({
|
|
1568
|
+
method: "POST",
|
|
1569
|
+
path: "/accounts/{account_id}/addressing/prefixes/{prefixId}/bindings",
|
|
1570
|
+
}));
|
|
1571
|
+
export const CreatePrefixServiceBindingResponse =
|
|
1572
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1573
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1574
|
+
cidr: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1575
|
+
provisioning: Schema.optional(Schema.Union([
|
|
1576
|
+
Schema.Struct({
|
|
1577
|
+
state: Schema.optional(Schema.Union([
|
|
1578
|
+
Schema.Literals(["provisioning", "active"]),
|
|
1579
|
+
Schema.Null,
|
|
1580
|
+
])),
|
|
1581
|
+
}),
|
|
1582
|
+
Schema.Null,
|
|
1583
|
+
])),
|
|
1584
|
+
serviceId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1585
|
+
serviceName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1586
|
+
})
|
|
1587
|
+
.pipe(Schema.encodeKeys({
|
|
1588
|
+
id: "id",
|
|
1589
|
+
cidr: "cidr",
|
|
1590
|
+
provisioning: "provisioning",
|
|
1591
|
+
serviceId: "service_id",
|
|
1592
|
+
serviceName: "service_name",
|
|
1593
|
+
}))
|
|
1594
|
+
.pipe(T.ResponsePath("result"));
|
|
1595
|
+
export const createPrefixServiceBinding = API.make(() => ({
|
|
1596
|
+
input: CreatePrefixServiceBindingRequest,
|
|
1597
|
+
output: CreatePrefixServiceBindingResponse,
|
|
1598
|
+
errors: [UnsupportedBindingConfiguration, InvalidAccountId],
|
|
1599
|
+
}));
|
|
1600
|
+
export const DeletePrefixServiceBindingRequest =
|
|
1601
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1602
|
+
prefixId: Schema.String.pipe(T.HttpPath("prefixId")),
|
|
1603
|
+
bindingId: Schema.String.pipe(T.HttpPath("bindingId")),
|
|
1604
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1605
|
+
}).pipe(T.Http({
|
|
1606
|
+
method: "DELETE",
|
|
1607
|
+
path: "/accounts/{account_id}/addressing/prefixes/{prefixId}/bindings/{bindingId}",
|
|
1608
|
+
}));
|
|
1609
|
+
export const DeletePrefixServiceBindingResponse =
|
|
1610
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1611
|
+
errors: Schema.Array(Schema.Struct({
|
|
1612
|
+
code: Schema.Number,
|
|
1613
|
+
message: Schema.String,
|
|
1614
|
+
documentationUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1615
|
+
source: Schema.optional(Schema.Union([
|
|
1616
|
+
Schema.Struct({
|
|
1617
|
+
pointer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1618
|
+
}),
|
|
1619
|
+
Schema.Null,
|
|
1620
|
+
])),
|
|
1621
|
+
}).pipe(Schema.encodeKeys({
|
|
1622
|
+
code: "code",
|
|
1623
|
+
message: "message",
|
|
1624
|
+
documentationUrl: "documentation_url",
|
|
1625
|
+
source: "source",
|
|
1626
|
+
}))),
|
|
1627
|
+
messages: Schema.Array(Schema.Struct({
|
|
1628
|
+
code: Schema.Number,
|
|
1629
|
+
message: Schema.String,
|
|
1630
|
+
documentationUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1631
|
+
source: Schema.optional(Schema.Union([
|
|
1632
|
+
Schema.Struct({
|
|
1633
|
+
pointer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1634
|
+
}),
|
|
1635
|
+
Schema.Null,
|
|
1636
|
+
])),
|
|
1637
|
+
}).pipe(Schema.encodeKeys({
|
|
1638
|
+
code: "code",
|
|
1639
|
+
message: "message",
|
|
1640
|
+
documentationUrl: "documentation_url",
|
|
1641
|
+
source: "source",
|
|
1642
|
+
}))),
|
|
1643
|
+
success: Schema.Literal(true),
|
|
1644
|
+
});
|
|
1645
|
+
export const deletePrefixServiceBinding = API.make(() => ({
|
|
1646
|
+
input: DeletePrefixServiceBindingRequest,
|
|
1647
|
+
output: DeletePrefixServiceBindingResponse,
|
|
1648
|
+
errors: [BindingNotFound, InvalidAccountId, PrefixNotFound],
|
|
1649
|
+
}));
|
|
1650
|
+
export const GetRegionalHostnameRequest =
|
|
1651
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1652
|
+
hostname: Schema.String.pipe(T.HttpPath("hostname")),
|
|
1653
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
1654
|
+
}).pipe(T.Http({
|
|
1655
|
+
method: "GET",
|
|
1656
|
+
path: "/zones/{zone_id}/addressing/regional_hostnames/{hostname}",
|
|
1657
|
+
}));
|
|
1658
|
+
export const GetRegionalHostnameResponse =
|
|
1659
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1660
|
+
createdOn: Schema.String,
|
|
1661
|
+
hostname: Schema.String,
|
|
1662
|
+
regionKey: Schema.String,
|
|
1663
|
+
routing: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1664
|
+
})
|
|
1665
|
+
.pipe(Schema.encodeKeys({
|
|
1666
|
+
createdOn: "created_on",
|
|
1667
|
+
hostname: "hostname",
|
|
1668
|
+
regionKey: "region_key",
|
|
1669
|
+
routing: "routing",
|
|
1670
|
+
}))
|
|
1671
|
+
.pipe(T.ResponsePath("result"));
|
|
1672
|
+
export const getRegionalHostname = API.make(() => ({
|
|
1673
|
+
input: GetRegionalHostnameRequest,
|
|
1674
|
+
output: GetRegionalHostnameResponse,
|
|
1675
|
+
errors: [InvalidZoneId, RegionalHostnameNotFound, RegionalHostnameEmpty],
|
|
1676
|
+
}));
|
|
1677
|
+
export const ListRegionalHostnamesRequest =
|
|
1678
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1679
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
1680
|
+
}).pipe(T.Http({
|
|
1681
|
+
method: "GET",
|
|
1682
|
+
path: "/zones/{zone_id}/addressing/regional_hostnames",
|
|
1683
|
+
}));
|
|
1684
|
+
export const ListRegionalHostnamesResponse =
|
|
1685
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1686
|
+
result: Schema.Array(Schema.Struct({
|
|
1687
|
+
createdOn: Schema.String,
|
|
1688
|
+
hostname: Schema.String,
|
|
1689
|
+
regionKey: Schema.String,
|
|
1690
|
+
routing: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1691
|
+
}).pipe(Schema.encodeKeys({
|
|
1692
|
+
createdOn: "created_on",
|
|
1693
|
+
hostname: "hostname",
|
|
1694
|
+
regionKey: "region_key",
|
|
1695
|
+
routing: "routing",
|
|
1696
|
+
}))),
|
|
1697
|
+
});
|
|
1698
|
+
export const listRegionalHostnames = API.makePaginated(() => ({
|
|
1699
|
+
input: ListRegionalHostnamesRequest,
|
|
1700
|
+
output: ListRegionalHostnamesResponse,
|
|
1701
|
+
errors: [],
|
|
1702
|
+
pagination: {
|
|
1703
|
+
mode: "single",
|
|
1704
|
+
items: "result",
|
|
1705
|
+
},
|
|
1706
|
+
}));
|
|
1707
|
+
export const CreateRegionalHostnameRequest =
|
|
1708
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1709
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
1710
|
+
hostname: Schema.String,
|
|
1711
|
+
regionKey: Schema.String,
|
|
1712
|
+
routing: Schema.optional(Schema.String),
|
|
1713
|
+
}).pipe(Schema.encodeKeys({
|
|
1714
|
+
hostname: "hostname",
|
|
1715
|
+
regionKey: "region_key",
|
|
1716
|
+
routing: "routing",
|
|
1717
|
+
}), T.Http({
|
|
1718
|
+
method: "POST",
|
|
1719
|
+
path: "/zones/{zone_id}/addressing/regional_hostnames",
|
|
1720
|
+
}));
|
|
1721
|
+
export const CreateRegionalHostnameResponse =
|
|
1722
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1723
|
+
createdOn: Schema.String,
|
|
1724
|
+
hostname: Schema.String,
|
|
1725
|
+
regionKey: Schema.String,
|
|
1726
|
+
routing: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1727
|
+
})
|
|
1728
|
+
.pipe(Schema.encodeKeys({
|
|
1729
|
+
createdOn: "created_on",
|
|
1730
|
+
hostname: "hostname",
|
|
1731
|
+
regionKey: "region_key",
|
|
1732
|
+
routing: "routing",
|
|
1733
|
+
}))
|
|
1734
|
+
.pipe(T.ResponsePath("result"));
|
|
1735
|
+
export const createRegionalHostname = API.make(() => ({
|
|
1736
|
+
input: CreateRegionalHostnameRequest,
|
|
1737
|
+
output: CreateRegionalHostnameResponse,
|
|
1738
|
+
errors: [InvalidZoneId, InvalidHostname, RegionalHostnameEmpty],
|
|
1739
|
+
}));
|
|
1740
|
+
export const PatchRegionalHostnameRequest =
|
|
1741
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1742
|
+
hostname: Schema.String.pipe(T.HttpPath("hostname")),
|
|
1743
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
1744
|
+
regionKey: Schema.String,
|
|
1745
|
+
}).pipe(Schema.encodeKeys({ regionKey: "region_key" }), T.Http({
|
|
1746
|
+
method: "PATCH",
|
|
1747
|
+
path: "/zones/{zone_id}/addressing/regional_hostnames/{hostname}",
|
|
1748
|
+
}));
|
|
1749
|
+
export const PatchRegionalHostnameResponse =
|
|
1750
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1751
|
+
createdOn: Schema.String,
|
|
1752
|
+
hostname: Schema.String,
|
|
1753
|
+
regionKey: Schema.String,
|
|
1754
|
+
routing: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1755
|
+
})
|
|
1756
|
+
.pipe(Schema.encodeKeys({
|
|
1757
|
+
createdOn: "created_on",
|
|
1758
|
+
hostname: "hostname",
|
|
1759
|
+
regionKey: "region_key",
|
|
1760
|
+
routing: "routing",
|
|
1761
|
+
}))
|
|
1762
|
+
.pipe(T.ResponsePath("result"));
|
|
1763
|
+
export const patchRegionalHostname = API.make(() => ({
|
|
1764
|
+
input: PatchRegionalHostnameRequest,
|
|
1765
|
+
output: PatchRegionalHostnameResponse,
|
|
1766
|
+
errors: [InvalidZoneId, RegionalHostnameNotFound, RegionalHostnameEmpty],
|
|
1767
|
+
}));
|
|
1768
|
+
export const DeleteRegionalHostnameRequest =
|
|
1769
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1770
|
+
hostname: Schema.String.pipe(T.HttpPath("hostname")),
|
|
1771
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
1772
|
+
}).pipe(T.Http({
|
|
1773
|
+
method: "DELETE",
|
|
1774
|
+
path: "/zones/{zone_id}/addressing/regional_hostnames/{hostname}",
|
|
1775
|
+
}));
|
|
1776
|
+
export const DeleteRegionalHostnameResponse =
|
|
1777
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1778
|
+
errors: Schema.Array(Schema.Struct({
|
|
1779
|
+
code: Schema.Number,
|
|
1780
|
+
message: Schema.String,
|
|
1781
|
+
documentationUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1782
|
+
source: Schema.optional(Schema.Union([
|
|
1783
|
+
Schema.Struct({
|
|
1784
|
+
pointer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1785
|
+
}),
|
|
1786
|
+
Schema.Null,
|
|
1787
|
+
])),
|
|
1788
|
+
}).pipe(Schema.encodeKeys({
|
|
1789
|
+
code: "code",
|
|
1790
|
+
message: "message",
|
|
1791
|
+
documentationUrl: "documentation_url",
|
|
1792
|
+
source: "source",
|
|
1793
|
+
}))),
|
|
1794
|
+
messages: Schema.Array(Schema.Struct({
|
|
1795
|
+
code: Schema.Number,
|
|
1796
|
+
message: Schema.String,
|
|
1797
|
+
documentationUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1798
|
+
source: Schema.optional(Schema.Union([
|
|
1799
|
+
Schema.Struct({
|
|
1800
|
+
pointer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1801
|
+
}),
|
|
1802
|
+
Schema.Null,
|
|
1803
|
+
])),
|
|
1804
|
+
}).pipe(Schema.encodeKeys({
|
|
1805
|
+
code: "code",
|
|
1806
|
+
message: "message",
|
|
1807
|
+
documentationUrl: "documentation_url",
|
|
1808
|
+
source: "source",
|
|
1809
|
+
}))),
|
|
1810
|
+
success: Schema.Literal(true),
|
|
1811
|
+
});
|
|
1812
|
+
export const deleteRegionalHostname = API.make(() => ({
|
|
1813
|
+
input: DeleteRegionalHostnameRequest,
|
|
1814
|
+
output: DeleteRegionalHostnameResponse,
|
|
1815
|
+
errors: [
|
|
1816
|
+
MethodNotAllowed,
|
|
1817
|
+
InvalidZoneId,
|
|
1818
|
+
RegionalHostnameNotFound,
|
|
1819
|
+
RegionalHostnameEmpty,
|
|
1820
|
+
],
|
|
1821
|
+
}));
|
|
1822
|
+
export const ListRegionalHostnameRegionsRequest =
|
|
1823
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1824
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1825
|
+
}).pipe(T.Http({
|
|
1826
|
+
method: "GET",
|
|
1827
|
+
path: "/accounts/{account_id}/addressing/regional_hostnames/regions",
|
|
1828
|
+
}));
|
|
1829
|
+
export const ListRegionalHostnameRegionsResponse =
|
|
1830
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1831
|
+
result: Schema.Array(Schema.Struct({
|
|
1832
|
+
key: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1833
|
+
label: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1834
|
+
})),
|
|
1835
|
+
});
|
|
1836
|
+
export const listRegionalHostnameRegions = API.makePaginated(() => ({
|
|
1837
|
+
input: ListRegionalHostnameRegionsRequest,
|
|
1838
|
+
output: ListRegionalHostnameRegionsResponse,
|
|
1839
|
+
errors: [],
|
|
1840
|
+
pagination: {
|
|
1841
|
+
mode: "single",
|
|
1842
|
+
items: "result",
|
|
1843
|
+
},
|
|
1844
|
+
}));
|
|
1845
|
+
export const ListServicesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1846
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1847
|
+
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/addressing/services" }));
|
|
1848
|
+
export const ListServicesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1849
|
+
result: Schema.Array(Schema.Struct({
|
|
1850
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1851
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1852
|
+
})),
|
|
1853
|
+
});
|
|
1854
|
+
export const listServices = API.makePaginated(() => ({
|
|
1855
|
+
input: ListServicesRequest,
|
|
1856
|
+
output: ListServicesResponse,
|
|
1857
|
+
errors: [],
|
|
1858
|
+
pagination: {
|
|
1859
|
+
mode: "single",
|
|
1860
|
+
items: "result",
|
|
1861
|
+
},
|
|
1862
|
+
}));
|
|
1863
|
+
//# sourceMappingURL=addressing.js.map
|