@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,899 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cloudflare WEB3 API
|
|
3
|
+
*
|
|
4
|
+
* Generated from Cloudflare TypeScript SDK.
|
|
5
|
+
* DO NOT EDIT - regenerate with: bun scripts/generate.ts --service web3
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import * as stream from "effect/Stream";
|
|
9
|
+
import * as Schema from "effect/Schema";
|
|
10
|
+
import type * as HttpClient from "effect/unstable/http/HttpClient";
|
|
11
|
+
import * as API from "../client/api.ts";
|
|
12
|
+
import * as T from "../traits.ts";
|
|
13
|
+
import type { Credentials } from "../credentials.ts";
|
|
14
|
+
import { type DefaultErrors } from "../errors.ts";
|
|
15
|
+
|
|
16
|
+
// =============================================================================
|
|
17
|
+
// Hostname
|
|
18
|
+
// =============================================================================
|
|
19
|
+
|
|
20
|
+
export interface GetHostnameRequest {
|
|
21
|
+
identifier: string;
|
|
22
|
+
/** Specify the identifier of the hostname. */
|
|
23
|
+
zoneId: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export const GetHostnameRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
27
|
+
identifier: Schema.String.pipe(T.HttpPath("identifier")),
|
|
28
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
29
|
+
}).pipe(
|
|
30
|
+
T.Http({
|
|
31
|
+
method: "GET",
|
|
32
|
+
path: "/zones/{zone_id}/web3/hostnames/{identifier}",
|
|
33
|
+
}),
|
|
34
|
+
) as unknown as Schema.Schema<GetHostnameRequest>;
|
|
35
|
+
|
|
36
|
+
export interface GetHostnameResponse {
|
|
37
|
+
/** Specify the identifier of the hostname. */
|
|
38
|
+
id?: string | null;
|
|
39
|
+
createdOn?: string | null;
|
|
40
|
+
/** Specify an optional description of the hostname. */
|
|
41
|
+
description?: string | null;
|
|
42
|
+
/** Specify the DNSLink value used if the target is ipfs. */
|
|
43
|
+
dnslink?: string | null;
|
|
44
|
+
modifiedOn?: string | null;
|
|
45
|
+
/** Specify the hostname that points to the target gateway via CNAME. */
|
|
46
|
+
name?: string | null;
|
|
47
|
+
/** Specifies the status of the hostname's activation. */
|
|
48
|
+
status?: "active" | "pending" | "deleting" | "error" | null;
|
|
49
|
+
/** Specify the target gateway of the hostname. */
|
|
50
|
+
target?: "ethereum" | "ipfs" | "ipfs_universal_path" | null;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export const GetHostnameResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
54
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
55
|
+
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
56
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
57
|
+
dnslink: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
58
|
+
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
59
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
60
|
+
status: Schema.optional(
|
|
61
|
+
Schema.Union([
|
|
62
|
+
Schema.Literals(["active", "pending", "deleting", "error"]),
|
|
63
|
+
Schema.Null,
|
|
64
|
+
]),
|
|
65
|
+
),
|
|
66
|
+
target: Schema.optional(
|
|
67
|
+
Schema.Union([
|
|
68
|
+
Schema.Literals(["ethereum", "ipfs", "ipfs_universal_path"]),
|
|
69
|
+
Schema.Null,
|
|
70
|
+
]),
|
|
71
|
+
),
|
|
72
|
+
})
|
|
73
|
+
.pipe(
|
|
74
|
+
Schema.encodeKeys({
|
|
75
|
+
id: "id",
|
|
76
|
+
createdOn: "created_on",
|
|
77
|
+
description: "description",
|
|
78
|
+
dnslink: "dnslink",
|
|
79
|
+
modifiedOn: "modified_on",
|
|
80
|
+
name: "name",
|
|
81
|
+
status: "status",
|
|
82
|
+
target: "target",
|
|
83
|
+
}),
|
|
84
|
+
)
|
|
85
|
+
.pipe(
|
|
86
|
+
T.ResponsePath("result"),
|
|
87
|
+
) as unknown as Schema.Schema<GetHostnameResponse>;
|
|
88
|
+
|
|
89
|
+
export type GetHostnameError = DefaultErrors;
|
|
90
|
+
|
|
91
|
+
export const getHostname: API.OperationMethod<
|
|
92
|
+
GetHostnameRequest,
|
|
93
|
+
GetHostnameResponse,
|
|
94
|
+
GetHostnameError,
|
|
95
|
+
Credentials | HttpClient.HttpClient
|
|
96
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
97
|
+
input: GetHostnameRequest,
|
|
98
|
+
output: GetHostnameResponse,
|
|
99
|
+
errors: [],
|
|
100
|
+
}));
|
|
101
|
+
|
|
102
|
+
export interface ListHostnamesRequest {
|
|
103
|
+
/** Specify the identifier of the hostname. */
|
|
104
|
+
zoneId: string;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export const ListHostnamesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
108
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
109
|
+
}).pipe(
|
|
110
|
+
T.Http({ method: "GET", path: "/zones/{zone_id}/web3/hostnames" }),
|
|
111
|
+
) as unknown as Schema.Schema<ListHostnamesRequest>;
|
|
112
|
+
|
|
113
|
+
export interface ListHostnamesResponse {
|
|
114
|
+
result: {
|
|
115
|
+
id?: string | null;
|
|
116
|
+
createdOn?: string | null;
|
|
117
|
+
description?: string | null;
|
|
118
|
+
dnslink?: string | null;
|
|
119
|
+
modifiedOn?: string | null;
|
|
120
|
+
name?: string | null;
|
|
121
|
+
status?: "active" | "pending" | "deleting" | "error" | null;
|
|
122
|
+
target?: "ethereum" | "ipfs" | "ipfs_universal_path" | null;
|
|
123
|
+
}[];
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export const ListHostnamesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
127
|
+
result: Schema.Array(
|
|
128
|
+
Schema.Struct({
|
|
129
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
130
|
+
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
131
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
132
|
+
dnslink: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
133
|
+
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
134
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
135
|
+
status: Schema.optional(
|
|
136
|
+
Schema.Union([
|
|
137
|
+
Schema.Literals(["active", "pending", "deleting", "error"]),
|
|
138
|
+
Schema.Null,
|
|
139
|
+
]),
|
|
140
|
+
),
|
|
141
|
+
target: Schema.optional(
|
|
142
|
+
Schema.Union([
|
|
143
|
+
Schema.Literals(["ethereum", "ipfs", "ipfs_universal_path"]),
|
|
144
|
+
Schema.Null,
|
|
145
|
+
]),
|
|
146
|
+
),
|
|
147
|
+
}).pipe(
|
|
148
|
+
Schema.encodeKeys({
|
|
149
|
+
id: "id",
|
|
150
|
+
createdOn: "created_on",
|
|
151
|
+
description: "description",
|
|
152
|
+
dnslink: "dnslink",
|
|
153
|
+
modifiedOn: "modified_on",
|
|
154
|
+
name: "name",
|
|
155
|
+
status: "status",
|
|
156
|
+
target: "target",
|
|
157
|
+
}),
|
|
158
|
+
),
|
|
159
|
+
),
|
|
160
|
+
}) as unknown as Schema.Schema<ListHostnamesResponse>;
|
|
161
|
+
|
|
162
|
+
export type ListHostnamesError = DefaultErrors;
|
|
163
|
+
|
|
164
|
+
export const listHostnames: API.PaginatedOperationMethod<
|
|
165
|
+
ListHostnamesRequest,
|
|
166
|
+
ListHostnamesResponse,
|
|
167
|
+
ListHostnamesError,
|
|
168
|
+
Credentials | HttpClient.HttpClient
|
|
169
|
+
> & {
|
|
170
|
+
pages: (
|
|
171
|
+
input: ListHostnamesRequest,
|
|
172
|
+
) => stream.Stream<
|
|
173
|
+
ListHostnamesResponse,
|
|
174
|
+
ListHostnamesError,
|
|
175
|
+
Credentials | HttpClient.HttpClient
|
|
176
|
+
>;
|
|
177
|
+
items: (input: ListHostnamesRequest) => stream.Stream<
|
|
178
|
+
{
|
|
179
|
+
id?: string | null;
|
|
180
|
+
createdOn?: string | null;
|
|
181
|
+
description?: string | null;
|
|
182
|
+
dnslink?: string | null;
|
|
183
|
+
modifiedOn?: string | null;
|
|
184
|
+
name?: string | null;
|
|
185
|
+
status?: "active" | "pending" | "deleting" | "error" | null;
|
|
186
|
+
target?: "ethereum" | "ipfs" | "ipfs_universal_path" | null;
|
|
187
|
+
},
|
|
188
|
+
ListHostnamesError,
|
|
189
|
+
Credentials | HttpClient.HttpClient
|
|
190
|
+
>;
|
|
191
|
+
} = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
192
|
+
input: ListHostnamesRequest,
|
|
193
|
+
output: ListHostnamesResponse,
|
|
194
|
+
errors: [],
|
|
195
|
+
pagination: {
|
|
196
|
+
mode: "single",
|
|
197
|
+
items: "result",
|
|
198
|
+
} as const,
|
|
199
|
+
}));
|
|
200
|
+
|
|
201
|
+
export interface CreateHostnameRequest {
|
|
202
|
+
/** Path param: Specify the identifier of the hostname. */
|
|
203
|
+
zoneId: string;
|
|
204
|
+
/** Body param: Specify the hostname that points to the target gateway via CNAME. */
|
|
205
|
+
name: string;
|
|
206
|
+
/** Body param: Specify the target gateway of the hostname. */
|
|
207
|
+
target: "ethereum" | "ipfs" | "ipfs_universal_path";
|
|
208
|
+
/** Body param: Specify an optional description of the hostname. */
|
|
209
|
+
description?: string;
|
|
210
|
+
/** Body param: Specify the DNSLink value used if the target is ipfs. */
|
|
211
|
+
dnslink?: string;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
export const CreateHostnameRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
215
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
216
|
+
name: Schema.String,
|
|
217
|
+
target: Schema.Literals(["ethereum", "ipfs", "ipfs_universal_path"]),
|
|
218
|
+
description: Schema.optional(Schema.String),
|
|
219
|
+
dnslink: Schema.optional(Schema.String),
|
|
220
|
+
}).pipe(
|
|
221
|
+
T.Http({ method: "POST", path: "/zones/{zone_id}/web3/hostnames" }),
|
|
222
|
+
) as unknown as Schema.Schema<CreateHostnameRequest>;
|
|
223
|
+
|
|
224
|
+
export interface CreateHostnameResponse {
|
|
225
|
+
/** Specify the identifier of the hostname. */
|
|
226
|
+
id?: string | null;
|
|
227
|
+
createdOn?: string | null;
|
|
228
|
+
/** Specify an optional description of the hostname. */
|
|
229
|
+
description?: string | null;
|
|
230
|
+
/** Specify the DNSLink value used if the target is ipfs. */
|
|
231
|
+
dnslink?: string | null;
|
|
232
|
+
modifiedOn?: string | null;
|
|
233
|
+
/** Specify the hostname that points to the target gateway via CNAME. */
|
|
234
|
+
name?: string | null;
|
|
235
|
+
/** Specifies the status of the hostname's activation. */
|
|
236
|
+
status?: "active" | "pending" | "deleting" | "error" | null;
|
|
237
|
+
/** Specify the target gateway of the hostname. */
|
|
238
|
+
target?: "ethereum" | "ipfs" | "ipfs_universal_path" | null;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
export const CreateHostnameResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
242
|
+
{
|
|
243
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
244
|
+
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
245
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
246
|
+
dnslink: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
247
|
+
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
248
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
249
|
+
status: Schema.optional(
|
|
250
|
+
Schema.Union([
|
|
251
|
+
Schema.Literals(["active", "pending", "deleting", "error"]),
|
|
252
|
+
Schema.Null,
|
|
253
|
+
]),
|
|
254
|
+
),
|
|
255
|
+
target: Schema.optional(
|
|
256
|
+
Schema.Union([
|
|
257
|
+
Schema.Literals(["ethereum", "ipfs", "ipfs_universal_path"]),
|
|
258
|
+
Schema.Null,
|
|
259
|
+
]),
|
|
260
|
+
),
|
|
261
|
+
},
|
|
262
|
+
)
|
|
263
|
+
.pipe(
|
|
264
|
+
Schema.encodeKeys({
|
|
265
|
+
id: "id",
|
|
266
|
+
createdOn: "created_on",
|
|
267
|
+
description: "description",
|
|
268
|
+
dnslink: "dnslink",
|
|
269
|
+
modifiedOn: "modified_on",
|
|
270
|
+
name: "name",
|
|
271
|
+
status: "status",
|
|
272
|
+
target: "target",
|
|
273
|
+
}),
|
|
274
|
+
)
|
|
275
|
+
.pipe(
|
|
276
|
+
T.ResponsePath("result"),
|
|
277
|
+
) as unknown as Schema.Schema<CreateHostnameResponse>;
|
|
278
|
+
|
|
279
|
+
export type CreateHostnameError = DefaultErrors;
|
|
280
|
+
|
|
281
|
+
export const createHostname: API.OperationMethod<
|
|
282
|
+
CreateHostnameRequest,
|
|
283
|
+
CreateHostnameResponse,
|
|
284
|
+
CreateHostnameError,
|
|
285
|
+
Credentials | HttpClient.HttpClient
|
|
286
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
287
|
+
input: CreateHostnameRequest,
|
|
288
|
+
output: CreateHostnameResponse,
|
|
289
|
+
errors: [],
|
|
290
|
+
}));
|
|
291
|
+
|
|
292
|
+
export interface PatchHostnameRequest {
|
|
293
|
+
identifier: string;
|
|
294
|
+
/** Path param: Specify the identifier of the hostname. */
|
|
295
|
+
zoneId: string;
|
|
296
|
+
/** Body param: Specify an optional description of the hostname. */
|
|
297
|
+
description?: string;
|
|
298
|
+
/** Body param: Specify the DNSLink value used if the target is ipfs. */
|
|
299
|
+
dnslink?: string;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
export const PatchHostnameRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
303
|
+
identifier: Schema.String.pipe(T.HttpPath("identifier")),
|
|
304
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
305
|
+
description: Schema.optional(Schema.String),
|
|
306
|
+
dnslink: Schema.optional(Schema.String),
|
|
307
|
+
}).pipe(
|
|
308
|
+
T.Http({
|
|
309
|
+
method: "PATCH",
|
|
310
|
+
path: "/zones/{zone_id}/web3/hostnames/{identifier}",
|
|
311
|
+
}),
|
|
312
|
+
) as unknown as Schema.Schema<PatchHostnameRequest>;
|
|
313
|
+
|
|
314
|
+
export interface PatchHostnameResponse {
|
|
315
|
+
/** Specify the identifier of the hostname. */
|
|
316
|
+
id?: string | null;
|
|
317
|
+
createdOn?: string | null;
|
|
318
|
+
/** Specify an optional description of the hostname. */
|
|
319
|
+
description?: string | null;
|
|
320
|
+
/** Specify the DNSLink value used if the target is ipfs. */
|
|
321
|
+
dnslink?: string | null;
|
|
322
|
+
modifiedOn?: string | null;
|
|
323
|
+
/** Specify the hostname that points to the target gateway via CNAME. */
|
|
324
|
+
name?: string | null;
|
|
325
|
+
/** Specifies the status of the hostname's activation. */
|
|
326
|
+
status?: "active" | "pending" | "deleting" | "error" | null;
|
|
327
|
+
/** Specify the target gateway of the hostname. */
|
|
328
|
+
target?: "ethereum" | "ipfs" | "ipfs_universal_path" | null;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
export const PatchHostnameResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
332
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
333
|
+
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
334
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
335
|
+
dnslink: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
336
|
+
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
337
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
338
|
+
status: Schema.optional(
|
|
339
|
+
Schema.Union([
|
|
340
|
+
Schema.Literals(["active", "pending", "deleting", "error"]),
|
|
341
|
+
Schema.Null,
|
|
342
|
+
]),
|
|
343
|
+
),
|
|
344
|
+
target: Schema.optional(
|
|
345
|
+
Schema.Union([
|
|
346
|
+
Schema.Literals(["ethereum", "ipfs", "ipfs_universal_path"]),
|
|
347
|
+
Schema.Null,
|
|
348
|
+
]),
|
|
349
|
+
),
|
|
350
|
+
})
|
|
351
|
+
.pipe(
|
|
352
|
+
Schema.encodeKeys({
|
|
353
|
+
id: "id",
|
|
354
|
+
createdOn: "created_on",
|
|
355
|
+
description: "description",
|
|
356
|
+
dnslink: "dnslink",
|
|
357
|
+
modifiedOn: "modified_on",
|
|
358
|
+
name: "name",
|
|
359
|
+
status: "status",
|
|
360
|
+
target: "target",
|
|
361
|
+
}),
|
|
362
|
+
)
|
|
363
|
+
.pipe(
|
|
364
|
+
T.ResponsePath("result"),
|
|
365
|
+
) as unknown as Schema.Schema<PatchHostnameResponse>;
|
|
366
|
+
|
|
367
|
+
export type PatchHostnameError = DefaultErrors;
|
|
368
|
+
|
|
369
|
+
export const patchHostname: API.OperationMethod<
|
|
370
|
+
PatchHostnameRequest,
|
|
371
|
+
PatchHostnameResponse,
|
|
372
|
+
PatchHostnameError,
|
|
373
|
+
Credentials | HttpClient.HttpClient
|
|
374
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
375
|
+
input: PatchHostnameRequest,
|
|
376
|
+
output: PatchHostnameResponse,
|
|
377
|
+
errors: [],
|
|
378
|
+
}));
|
|
379
|
+
|
|
380
|
+
export interface DeleteHostnameRequest {
|
|
381
|
+
identifier: string;
|
|
382
|
+
/** Specify the identifier of the hostname. */
|
|
383
|
+
zoneId: string;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
export const DeleteHostnameRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
387
|
+
identifier: Schema.String.pipe(T.HttpPath("identifier")),
|
|
388
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
389
|
+
}).pipe(
|
|
390
|
+
T.Http({
|
|
391
|
+
method: "DELETE",
|
|
392
|
+
path: "/zones/{zone_id}/web3/hostnames/{identifier}",
|
|
393
|
+
}),
|
|
394
|
+
) as unknown as Schema.Schema<DeleteHostnameRequest>;
|
|
395
|
+
|
|
396
|
+
export interface DeleteHostnameResponse {
|
|
397
|
+
/** Specify the identifier of the hostname. */
|
|
398
|
+
id: string;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
export const DeleteHostnameResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
402
|
+
{
|
|
403
|
+
id: Schema.String,
|
|
404
|
+
},
|
|
405
|
+
).pipe(
|
|
406
|
+
T.ResponsePath("result"),
|
|
407
|
+
) as unknown as Schema.Schema<DeleteHostnameResponse>;
|
|
408
|
+
|
|
409
|
+
export type DeleteHostnameError = DefaultErrors;
|
|
410
|
+
|
|
411
|
+
export const deleteHostname: API.OperationMethod<
|
|
412
|
+
DeleteHostnameRequest,
|
|
413
|
+
DeleteHostnameResponse,
|
|
414
|
+
DeleteHostnameError,
|
|
415
|
+
Credentials | HttpClient.HttpClient
|
|
416
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
417
|
+
input: DeleteHostnameRequest,
|
|
418
|
+
output: DeleteHostnameResponse,
|
|
419
|
+
errors: [],
|
|
420
|
+
}));
|
|
421
|
+
|
|
422
|
+
// =============================================================================
|
|
423
|
+
// HostnameIpfsUniversalPathContentList
|
|
424
|
+
// =============================================================================
|
|
425
|
+
|
|
426
|
+
export interface GetHostnameIpfsUniversalPathContentListRequest {
|
|
427
|
+
identifier: string;
|
|
428
|
+
/** Specify the identifier of the hostname. */
|
|
429
|
+
zoneId: string;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
export const GetHostnameIpfsUniversalPathContentListRequest =
|
|
433
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
434
|
+
identifier: Schema.String.pipe(T.HttpPath("identifier")),
|
|
435
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
436
|
+
}).pipe(
|
|
437
|
+
T.Http({
|
|
438
|
+
method: "GET",
|
|
439
|
+
path: "/zones/{zone_id}/web3/hostnames/{identifier}/ipfs_universal_path/content_list",
|
|
440
|
+
}),
|
|
441
|
+
) as unknown as Schema.Schema<GetHostnameIpfsUniversalPathContentListRequest>;
|
|
442
|
+
|
|
443
|
+
export interface GetHostnameIpfsUniversalPathContentListResponse {
|
|
444
|
+
/** Behavior of the content list. */
|
|
445
|
+
action?: "block" | null;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
export const GetHostnameIpfsUniversalPathContentListResponse =
|
|
449
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
450
|
+
action: Schema.optional(
|
|
451
|
+
Schema.Union([Schema.Literal("block"), Schema.Null]),
|
|
452
|
+
),
|
|
453
|
+
}).pipe(
|
|
454
|
+
T.ResponsePath("result"),
|
|
455
|
+
) as unknown as Schema.Schema<GetHostnameIpfsUniversalPathContentListResponse>;
|
|
456
|
+
|
|
457
|
+
export type GetHostnameIpfsUniversalPathContentListError = DefaultErrors;
|
|
458
|
+
|
|
459
|
+
export const getHostnameIpfsUniversalPathContentList: API.OperationMethod<
|
|
460
|
+
GetHostnameIpfsUniversalPathContentListRequest,
|
|
461
|
+
GetHostnameIpfsUniversalPathContentListResponse,
|
|
462
|
+
GetHostnameIpfsUniversalPathContentListError,
|
|
463
|
+
Credentials | HttpClient.HttpClient
|
|
464
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
465
|
+
input: GetHostnameIpfsUniversalPathContentListRequest,
|
|
466
|
+
output: GetHostnameIpfsUniversalPathContentListResponse,
|
|
467
|
+
errors: [],
|
|
468
|
+
}));
|
|
469
|
+
|
|
470
|
+
export interface PutHostnameIpfsUniversalPathContentListRequest {
|
|
471
|
+
identifier: string;
|
|
472
|
+
/** Path param: Specify the identifier of the hostname. */
|
|
473
|
+
zoneId: string;
|
|
474
|
+
/** Body param: Behavior of the content list. */
|
|
475
|
+
action: "block";
|
|
476
|
+
/** Body param: Provides content list entries. */
|
|
477
|
+
entries: {
|
|
478
|
+
content?: string;
|
|
479
|
+
description?: string;
|
|
480
|
+
type?: "cid" | "content_path";
|
|
481
|
+
}[];
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
export const PutHostnameIpfsUniversalPathContentListRequest =
|
|
485
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
486
|
+
identifier: Schema.String.pipe(T.HttpPath("identifier")),
|
|
487
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
488
|
+
action: Schema.Literal("block"),
|
|
489
|
+
entries: Schema.Array(
|
|
490
|
+
Schema.Struct({
|
|
491
|
+
content: Schema.optional(Schema.String),
|
|
492
|
+
description: Schema.optional(Schema.String),
|
|
493
|
+
type: Schema.optional(Schema.Literals(["cid", "content_path"])),
|
|
494
|
+
}),
|
|
495
|
+
),
|
|
496
|
+
}).pipe(
|
|
497
|
+
T.Http({
|
|
498
|
+
method: "PUT",
|
|
499
|
+
path: "/zones/{zone_id}/web3/hostnames/{identifier}/ipfs_universal_path/content_list",
|
|
500
|
+
}),
|
|
501
|
+
) as unknown as Schema.Schema<PutHostnameIpfsUniversalPathContentListRequest>;
|
|
502
|
+
|
|
503
|
+
export interface PutHostnameIpfsUniversalPathContentListResponse {
|
|
504
|
+
/** Behavior of the content list. */
|
|
505
|
+
action?: "block" | null;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
export const PutHostnameIpfsUniversalPathContentListResponse =
|
|
509
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
510
|
+
action: Schema.optional(
|
|
511
|
+
Schema.Union([Schema.Literal("block"), Schema.Null]),
|
|
512
|
+
),
|
|
513
|
+
}).pipe(
|
|
514
|
+
T.ResponsePath("result"),
|
|
515
|
+
) as unknown as Schema.Schema<PutHostnameIpfsUniversalPathContentListResponse>;
|
|
516
|
+
|
|
517
|
+
export type PutHostnameIpfsUniversalPathContentListError = DefaultErrors;
|
|
518
|
+
|
|
519
|
+
export const putHostnameIpfsUniversalPathContentList: API.OperationMethod<
|
|
520
|
+
PutHostnameIpfsUniversalPathContentListRequest,
|
|
521
|
+
PutHostnameIpfsUniversalPathContentListResponse,
|
|
522
|
+
PutHostnameIpfsUniversalPathContentListError,
|
|
523
|
+
Credentials | HttpClient.HttpClient
|
|
524
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
525
|
+
input: PutHostnameIpfsUniversalPathContentListRequest,
|
|
526
|
+
output: PutHostnameIpfsUniversalPathContentListResponse,
|
|
527
|
+
errors: [],
|
|
528
|
+
}));
|
|
529
|
+
|
|
530
|
+
// =============================================================================
|
|
531
|
+
// HostnameIpfsUniversalPathContentListEntry
|
|
532
|
+
// =============================================================================
|
|
533
|
+
|
|
534
|
+
export interface GetHostnameIpfsUniversalPathContentListEntryRequest {
|
|
535
|
+
identifier: string;
|
|
536
|
+
contentListEntryIdentifier: string;
|
|
537
|
+
/** Specify the identifier of the hostname. */
|
|
538
|
+
zoneId: string;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
export const GetHostnameIpfsUniversalPathContentListEntryRequest =
|
|
542
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
543
|
+
identifier: Schema.String.pipe(T.HttpPath("identifier")),
|
|
544
|
+
contentListEntryIdentifier: Schema.String.pipe(
|
|
545
|
+
T.HttpPath("contentListEntryIdentifier"),
|
|
546
|
+
),
|
|
547
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
548
|
+
}).pipe(
|
|
549
|
+
T.Http({
|
|
550
|
+
method: "GET",
|
|
551
|
+
path: "/zones/{zone_id}/web3/hostnames/{identifier}/ipfs_universal_path/content_list/entries/{contentListEntryIdentifier}",
|
|
552
|
+
}),
|
|
553
|
+
) as unknown as Schema.Schema<GetHostnameIpfsUniversalPathContentListEntryRequest>;
|
|
554
|
+
|
|
555
|
+
export interface GetHostnameIpfsUniversalPathContentListEntryResponse {
|
|
556
|
+
/** Specify the identifier of the hostname. */
|
|
557
|
+
id?: string | null;
|
|
558
|
+
/** Specify the CID or content path of content to block. */
|
|
559
|
+
content?: string | null;
|
|
560
|
+
createdOn?: string | null;
|
|
561
|
+
/** Specify an optional description of the content list entry. */
|
|
562
|
+
description?: string | null;
|
|
563
|
+
modifiedOn?: string | null;
|
|
564
|
+
/** Specify the type of content list entry to block. */
|
|
565
|
+
type?: "cid" | "content_path" | null;
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
export const GetHostnameIpfsUniversalPathContentListEntryResponse =
|
|
569
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
570
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
571
|
+
content: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
572
|
+
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
573
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
574
|
+
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
575
|
+
type: Schema.optional(
|
|
576
|
+
Schema.Union([Schema.Literals(["cid", "content_path"]), Schema.Null]),
|
|
577
|
+
),
|
|
578
|
+
})
|
|
579
|
+
.pipe(
|
|
580
|
+
Schema.encodeKeys({
|
|
581
|
+
id: "id",
|
|
582
|
+
content: "content",
|
|
583
|
+
createdOn: "created_on",
|
|
584
|
+
description: "description",
|
|
585
|
+
modifiedOn: "modified_on",
|
|
586
|
+
type: "type",
|
|
587
|
+
}),
|
|
588
|
+
)
|
|
589
|
+
.pipe(
|
|
590
|
+
T.ResponsePath("result"),
|
|
591
|
+
) as unknown as Schema.Schema<GetHostnameIpfsUniversalPathContentListEntryResponse>;
|
|
592
|
+
|
|
593
|
+
export type GetHostnameIpfsUniversalPathContentListEntryError = DefaultErrors;
|
|
594
|
+
|
|
595
|
+
export const getHostnameIpfsUniversalPathContentListEntry: API.OperationMethod<
|
|
596
|
+
GetHostnameIpfsUniversalPathContentListEntryRequest,
|
|
597
|
+
GetHostnameIpfsUniversalPathContentListEntryResponse,
|
|
598
|
+
GetHostnameIpfsUniversalPathContentListEntryError,
|
|
599
|
+
Credentials | HttpClient.HttpClient
|
|
600
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
601
|
+
input: GetHostnameIpfsUniversalPathContentListEntryRequest,
|
|
602
|
+
output: GetHostnameIpfsUniversalPathContentListEntryResponse,
|
|
603
|
+
errors: [],
|
|
604
|
+
}));
|
|
605
|
+
|
|
606
|
+
export interface ListHostnameIpfsUniversalPathContentListEntriesRequest {
|
|
607
|
+
identifier: string;
|
|
608
|
+
/** Specify the identifier of the hostname. */
|
|
609
|
+
zoneId: string;
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
export const ListHostnameIpfsUniversalPathContentListEntriesRequest =
|
|
613
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
614
|
+
identifier: Schema.String.pipe(T.HttpPath("identifier")),
|
|
615
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
616
|
+
}).pipe(
|
|
617
|
+
T.Http({
|
|
618
|
+
method: "GET",
|
|
619
|
+
path: "/zones/{zone_id}/web3/hostnames/{identifier}/ipfs_universal_path/content_list/entries",
|
|
620
|
+
}),
|
|
621
|
+
) as unknown as Schema.Schema<ListHostnameIpfsUniversalPathContentListEntriesRequest>;
|
|
622
|
+
|
|
623
|
+
export interface ListHostnameIpfsUniversalPathContentListEntriesResponse {
|
|
624
|
+
/** Provides content list entries. */
|
|
625
|
+
entries?:
|
|
626
|
+
| {
|
|
627
|
+
id?: string | null;
|
|
628
|
+
content?: string | null;
|
|
629
|
+
createdOn?: string | null;
|
|
630
|
+
description?: string | null;
|
|
631
|
+
modifiedOn?: string | null;
|
|
632
|
+
type?: "cid" | "content_path" | null;
|
|
633
|
+
}[]
|
|
634
|
+
| null;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
export const ListHostnameIpfsUniversalPathContentListEntriesResponse =
|
|
638
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
639
|
+
entries: Schema.optional(
|
|
640
|
+
Schema.Union([
|
|
641
|
+
Schema.Array(
|
|
642
|
+
Schema.Struct({
|
|
643
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
644
|
+
content: Schema.optional(
|
|
645
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
646
|
+
),
|
|
647
|
+
createdOn: Schema.optional(
|
|
648
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
649
|
+
),
|
|
650
|
+
description: Schema.optional(
|
|
651
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
652
|
+
),
|
|
653
|
+
modifiedOn: Schema.optional(
|
|
654
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
655
|
+
),
|
|
656
|
+
type: Schema.optional(
|
|
657
|
+
Schema.Union([
|
|
658
|
+
Schema.Literals(["cid", "content_path"]),
|
|
659
|
+
Schema.Null,
|
|
660
|
+
]),
|
|
661
|
+
),
|
|
662
|
+
}).pipe(
|
|
663
|
+
Schema.encodeKeys({
|
|
664
|
+
id: "id",
|
|
665
|
+
content: "content",
|
|
666
|
+
createdOn: "created_on",
|
|
667
|
+
description: "description",
|
|
668
|
+
modifiedOn: "modified_on",
|
|
669
|
+
type: "type",
|
|
670
|
+
}),
|
|
671
|
+
),
|
|
672
|
+
),
|
|
673
|
+
Schema.Null,
|
|
674
|
+
]),
|
|
675
|
+
),
|
|
676
|
+
}).pipe(
|
|
677
|
+
T.ResponsePath("result"),
|
|
678
|
+
) as unknown as Schema.Schema<ListHostnameIpfsUniversalPathContentListEntriesResponse>;
|
|
679
|
+
|
|
680
|
+
export type ListHostnameIpfsUniversalPathContentListEntriesError =
|
|
681
|
+
DefaultErrors;
|
|
682
|
+
|
|
683
|
+
export const listHostnameIpfsUniversalPathContentListEntries: API.OperationMethod<
|
|
684
|
+
ListHostnameIpfsUniversalPathContentListEntriesRequest,
|
|
685
|
+
ListHostnameIpfsUniversalPathContentListEntriesResponse,
|
|
686
|
+
ListHostnameIpfsUniversalPathContentListEntriesError,
|
|
687
|
+
Credentials | HttpClient.HttpClient
|
|
688
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
689
|
+
input: ListHostnameIpfsUniversalPathContentListEntriesRequest,
|
|
690
|
+
output: ListHostnameIpfsUniversalPathContentListEntriesResponse,
|
|
691
|
+
errors: [],
|
|
692
|
+
}));
|
|
693
|
+
|
|
694
|
+
export interface CreateHostnameIpfsUniversalPathContentListEntryRequest {
|
|
695
|
+
identifier: string;
|
|
696
|
+
/** Path param: Specify the identifier of the hostname. */
|
|
697
|
+
zoneId: string;
|
|
698
|
+
/** Body param: Specify the CID or content path of content to block. */
|
|
699
|
+
content: string;
|
|
700
|
+
/** Body param: Specify the type of content list entry to block. */
|
|
701
|
+
type: "cid" | "content_path";
|
|
702
|
+
/** Body param: Specify an optional description of the content list entry. */
|
|
703
|
+
description?: string;
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
export const CreateHostnameIpfsUniversalPathContentListEntryRequest =
|
|
707
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
708
|
+
identifier: Schema.String.pipe(T.HttpPath("identifier")),
|
|
709
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
710
|
+
content: Schema.String,
|
|
711
|
+
type: Schema.Literals(["cid", "content_path"]),
|
|
712
|
+
description: Schema.optional(Schema.String),
|
|
713
|
+
}).pipe(
|
|
714
|
+
T.Http({
|
|
715
|
+
method: "POST",
|
|
716
|
+
path: "/zones/{zone_id}/web3/hostnames/{identifier}/ipfs_universal_path/content_list/entries",
|
|
717
|
+
}),
|
|
718
|
+
) as unknown as Schema.Schema<CreateHostnameIpfsUniversalPathContentListEntryRequest>;
|
|
719
|
+
|
|
720
|
+
export interface CreateHostnameIpfsUniversalPathContentListEntryResponse {
|
|
721
|
+
/** Specify the identifier of the hostname. */
|
|
722
|
+
id?: string | null;
|
|
723
|
+
/** Specify the CID or content path of content to block. */
|
|
724
|
+
content?: string | null;
|
|
725
|
+
createdOn?: string | null;
|
|
726
|
+
/** Specify an optional description of the content list entry. */
|
|
727
|
+
description?: string | null;
|
|
728
|
+
modifiedOn?: string | null;
|
|
729
|
+
/** Specify the type of content list entry to block. */
|
|
730
|
+
type?: "cid" | "content_path" | null;
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
export const CreateHostnameIpfsUniversalPathContentListEntryResponse =
|
|
734
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
735
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
736
|
+
content: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
737
|
+
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
738
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
739
|
+
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
740
|
+
type: Schema.optional(
|
|
741
|
+
Schema.Union([Schema.Literals(["cid", "content_path"]), Schema.Null]),
|
|
742
|
+
),
|
|
743
|
+
})
|
|
744
|
+
.pipe(
|
|
745
|
+
Schema.encodeKeys({
|
|
746
|
+
id: "id",
|
|
747
|
+
content: "content",
|
|
748
|
+
createdOn: "created_on",
|
|
749
|
+
description: "description",
|
|
750
|
+
modifiedOn: "modified_on",
|
|
751
|
+
type: "type",
|
|
752
|
+
}),
|
|
753
|
+
)
|
|
754
|
+
.pipe(
|
|
755
|
+
T.ResponsePath("result"),
|
|
756
|
+
) as unknown as Schema.Schema<CreateHostnameIpfsUniversalPathContentListEntryResponse>;
|
|
757
|
+
|
|
758
|
+
export type CreateHostnameIpfsUniversalPathContentListEntryError =
|
|
759
|
+
DefaultErrors;
|
|
760
|
+
|
|
761
|
+
export const createHostnameIpfsUniversalPathContentListEntry: API.OperationMethod<
|
|
762
|
+
CreateHostnameIpfsUniversalPathContentListEntryRequest,
|
|
763
|
+
CreateHostnameIpfsUniversalPathContentListEntryResponse,
|
|
764
|
+
CreateHostnameIpfsUniversalPathContentListEntryError,
|
|
765
|
+
Credentials | HttpClient.HttpClient
|
|
766
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
767
|
+
input: CreateHostnameIpfsUniversalPathContentListEntryRequest,
|
|
768
|
+
output: CreateHostnameIpfsUniversalPathContentListEntryResponse,
|
|
769
|
+
errors: [],
|
|
770
|
+
}));
|
|
771
|
+
|
|
772
|
+
export interface UpdateHostnameIpfsUniversalPathContentListEntryRequest {
|
|
773
|
+
identifier: string;
|
|
774
|
+
contentListEntryIdentifier: string;
|
|
775
|
+
/** Path param: Specify the identifier of the hostname. */
|
|
776
|
+
zoneId: string;
|
|
777
|
+
/** Body param: Specify the CID or content path of content to block. */
|
|
778
|
+
content: string;
|
|
779
|
+
/** Body param: Specify the type of content list entry to block. */
|
|
780
|
+
type: "cid" | "content_path";
|
|
781
|
+
/** Body param: Specify an optional description of the content list entry. */
|
|
782
|
+
description?: string;
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
export const UpdateHostnameIpfsUniversalPathContentListEntryRequest =
|
|
786
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
787
|
+
identifier: Schema.String.pipe(T.HttpPath("identifier")),
|
|
788
|
+
contentListEntryIdentifier: Schema.String.pipe(
|
|
789
|
+
T.HttpPath("contentListEntryIdentifier"),
|
|
790
|
+
),
|
|
791
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
792
|
+
content: Schema.String,
|
|
793
|
+
type: Schema.Literals(["cid", "content_path"]),
|
|
794
|
+
description: Schema.optional(Schema.String),
|
|
795
|
+
}).pipe(
|
|
796
|
+
T.Http({
|
|
797
|
+
method: "PUT",
|
|
798
|
+
path: "/zones/{zone_id}/web3/hostnames/{identifier}/ipfs_universal_path/content_list/entries/{contentListEntryIdentifier}",
|
|
799
|
+
}),
|
|
800
|
+
) as unknown as Schema.Schema<UpdateHostnameIpfsUniversalPathContentListEntryRequest>;
|
|
801
|
+
|
|
802
|
+
export interface UpdateHostnameIpfsUniversalPathContentListEntryResponse {
|
|
803
|
+
/** Specify the identifier of the hostname. */
|
|
804
|
+
id?: string | null;
|
|
805
|
+
/** Specify the CID or content path of content to block. */
|
|
806
|
+
content?: string | null;
|
|
807
|
+
createdOn?: string | null;
|
|
808
|
+
/** Specify an optional description of the content list entry. */
|
|
809
|
+
description?: string | null;
|
|
810
|
+
modifiedOn?: string | null;
|
|
811
|
+
/** Specify the type of content list entry to block. */
|
|
812
|
+
type?: "cid" | "content_path" | null;
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
export const UpdateHostnameIpfsUniversalPathContentListEntryResponse =
|
|
816
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
817
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
818
|
+
content: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
819
|
+
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
820
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
821
|
+
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
822
|
+
type: Schema.optional(
|
|
823
|
+
Schema.Union([Schema.Literals(["cid", "content_path"]), Schema.Null]),
|
|
824
|
+
),
|
|
825
|
+
})
|
|
826
|
+
.pipe(
|
|
827
|
+
Schema.encodeKeys({
|
|
828
|
+
id: "id",
|
|
829
|
+
content: "content",
|
|
830
|
+
createdOn: "created_on",
|
|
831
|
+
description: "description",
|
|
832
|
+
modifiedOn: "modified_on",
|
|
833
|
+
type: "type",
|
|
834
|
+
}),
|
|
835
|
+
)
|
|
836
|
+
.pipe(
|
|
837
|
+
T.ResponsePath("result"),
|
|
838
|
+
) as unknown as Schema.Schema<UpdateHostnameIpfsUniversalPathContentListEntryResponse>;
|
|
839
|
+
|
|
840
|
+
export type UpdateHostnameIpfsUniversalPathContentListEntryError =
|
|
841
|
+
DefaultErrors;
|
|
842
|
+
|
|
843
|
+
export const updateHostnameIpfsUniversalPathContentListEntry: API.OperationMethod<
|
|
844
|
+
UpdateHostnameIpfsUniversalPathContentListEntryRequest,
|
|
845
|
+
UpdateHostnameIpfsUniversalPathContentListEntryResponse,
|
|
846
|
+
UpdateHostnameIpfsUniversalPathContentListEntryError,
|
|
847
|
+
Credentials | HttpClient.HttpClient
|
|
848
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
849
|
+
input: UpdateHostnameIpfsUniversalPathContentListEntryRequest,
|
|
850
|
+
output: UpdateHostnameIpfsUniversalPathContentListEntryResponse,
|
|
851
|
+
errors: [],
|
|
852
|
+
}));
|
|
853
|
+
|
|
854
|
+
export interface DeleteHostnameIpfsUniversalPathContentListEntryRequest {
|
|
855
|
+
identifier: string;
|
|
856
|
+
contentListEntryIdentifier: string;
|
|
857
|
+
/** Specify the identifier of the hostname. */
|
|
858
|
+
zoneId: string;
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
export const DeleteHostnameIpfsUniversalPathContentListEntryRequest =
|
|
862
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
863
|
+
identifier: Schema.String.pipe(T.HttpPath("identifier")),
|
|
864
|
+
contentListEntryIdentifier: Schema.String.pipe(
|
|
865
|
+
T.HttpPath("contentListEntryIdentifier"),
|
|
866
|
+
),
|
|
867
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
868
|
+
}).pipe(
|
|
869
|
+
T.Http({
|
|
870
|
+
method: "DELETE",
|
|
871
|
+
path: "/zones/{zone_id}/web3/hostnames/{identifier}/ipfs_universal_path/content_list/entries/{contentListEntryIdentifier}",
|
|
872
|
+
}),
|
|
873
|
+
) as unknown as Schema.Schema<DeleteHostnameIpfsUniversalPathContentListEntryRequest>;
|
|
874
|
+
|
|
875
|
+
export interface DeleteHostnameIpfsUniversalPathContentListEntryResponse {
|
|
876
|
+
/** Specify the identifier of the hostname. */
|
|
877
|
+
id: string;
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
export const DeleteHostnameIpfsUniversalPathContentListEntryResponse =
|
|
881
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
882
|
+
id: Schema.String,
|
|
883
|
+
}).pipe(
|
|
884
|
+
T.ResponsePath("result"),
|
|
885
|
+
) as unknown as Schema.Schema<DeleteHostnameIpfsUniversalPathContentListEntryResponse>;
|
|
886
|
+
|
|
887
|
+
export type DeleteHostnameIpfsUniversalPathContentListEntryError =
|
|
888
|
+
DefaultErrors;
|
|
889
|
+
|
|
890
|
+
export const deleteHostnameIpfsUniversalPathContentListEntry: API.OperationMethod<
|
|
891
|
+
DeleteHostnameIpfsUniversalPathContentListEntryRequest,
|
|
892
|
+
DeleteHostnameIpfsUniversalPathContentListEntryResponse,
|
|
893
|
+
DeleteHostnameIpfsUniversalPathContentListEntryError,
|
|
894
|
+
Credentials | HttpClient.HttpClient
|
|
895
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
896
|
+
input: DeleteHostnameIpfsUniversalPathContentListEntryRequest,
|
|
897
|
+
output: DeleteHostnameIpfsUniversalPathContentListEntryResponse,
|
|
898
|
+
errors: [],
|
|
899
|
+
}));
|