@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,1129 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cloudflare KV API
|
|
3
|
+
*
|
|
4
|
+
* Generated from Cloudflare TypeScript SDK.
|
|
5
|
+
* DO NOT EDIT - regenerate with: bun scripts/generate.ts --service kv
|
|
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
|
+
// Errors
|
|
18
|
+
// =============================================================================
|
|
19
|
+
|
|
20
|
+
export class InvalidExpirationTtl extends Schema.TaggedErrorClass<InvalidExpirationTtl>()(
|
|
21
|
+
"InvalidExpirationTtl",
|
|
22
|
+
{ code: Schema.Number, message: Schema.String },
|
|
23
|
+
) {}
|
|
24
|
+
T.applyErrorMatchers(InvalidExpirationTtl, [{ code: 10034 }]);
|
|
25
|
+
|
|
26
|
+
export class InvalidObjectIdentifier extends Schema.TaggedErrorClass<InvalidObjectIdentifier>()(
|
|
27
|
+
"InvalidObjectIdentifier",
|
|
28
|
+
{ code: Schema.Number, message: Schema.String },
|
|
29
|
+
) {}
|
|
30
|
+
T.applyErrorMatchers(InvalidObjectIdentifier, [{ code: 7003 }]);
|
|
31
|
+
|
|
32
|
+
export class InvalidRequestBody extends Schema.TaggedErrorClass<InvalidRequestBody>()(
|
|
33
|
+
"InvalidRequestBody",
|
|
34
|
+
{ code: Schema.Number, message: Schema.String },
|
|
35
|
+
) {}
|
|
36
|
+
T.applyErrorMatchers(InvalidRequestBody, [{ code: 10012 }]);
|
|
37
|
+
|
|
38
|
+
export class KeyNotFound extends Schema.TaggedErrorClass<KeyNotFound>()(
|
|
39
|
+
"KeyNotFound",
|
|
40
|
+
{ code: Schema.Number, message: Schema.String },
|
|
41
|
+
) {}
|
|
42
|
+
T.applyErrorMatchers(KeyNotFound, [{ code: 10009 }]);
|
|
43
|
+
|
|
44
|
+
export class MethodNotAllowed extends Schema.TaggedErrorClass<MethodNotAllowed>()(
|
|
45
|
+
"MethodNotAllowed",
|
|
46
|
+
{ code: Schema.Number, message: Schema.String },
|
|
47
|
+
) {}
|
|
48
|
+
T.applyErrorMatchers(MethodNotAllowed, [
|
|
49
|
+
{ code: 10405, message: { includes: "not allowed" } },
|
|
50
|
+
{ code: 10000, message: { includes: "not allowed" } },
|
|
51
|
+
]);
|
|
52
|
+
|
|
53
|
+
export class MinimumKeysRequired extends Schema.TaggedErrorClass<MinimumKeysRequired>()(
|
|
54
|
+
"MinimumKeysRequired",
|
|
55
|
+
{ code: Schema.Number, message: Schema.String },
|
|
56
|
+
) {}
|
|
57
|
+
T.applyErrorMatchers(MinimumKeysRequired, [{ code: 10029 }]);
|
|
58
|
+
|
|
59
|
+
export class NamespaceNotFound extends Schema.TaggedErrorClass<NamespaceNotFound>()(
|
|
60
|
+
"NamespaceNotFound",
|
|
61
|
+
{ code: Schema.Number, message: Schema.String },
|
|
62
|
+
) {}
|
|
63
|
+
T.applyErrorMatchers(NamespaceNotFound, [{ code: 10013 }]);
|
|
64
|
+
|
|
65
|
+
export class NamespaceTitleAlreadyExists extends Schema.TaggedErrorClass<NamespaceTitleAlreadyExists>()(
|
|
66
|
+
"NamespaceTitleAlreadyExists",
|
|
67
|
+
{ code: Schema.Number, message: Schema.String },
|
|
68
|
+
) {}
|
|
69
|
+
T.applyErrorMatchers(NamespaceTitleAlreadyExists, [{ code: 10014 }]);
|
|
70
|
+
|
|
71
|
+
export class TitleRequired extends Schema.TaggedErrorClass<TitleRequired>()(
|
|
72
|
+
"TitleRequired",
|
|
73
|
+
{ code: Schema.Number, message: Schema.String },
|
|
74
|
+
) {}
|
|
75
|
+
T.applyErrorMatchers(TitleRequired, [{ code: 10019 }]);
|
|
76
|
+
|
|
77
|
+
// =============================================================================
|
|
78
|
+
// Namespace
|
|
79
|
+
// =============================================================================
|
|
80
|
+
|
|
81
|
+
export interface GetNamespaceRequest {
|
|
82
|
+
namespaceId: string;
|
|
83
|
+
/** Identifier. */
|
|
84
|
+
accountId: string;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export const GetNamespaceRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
88
|
+
namespaceId: Schema.String.pipe(T.HttpPath("namespaceId")),
|
|
89
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
90
|
+
}).pipe(
|
|
91
|
+
T.Http({
|
|
92
|
+
method: "GET",
|
|
93
|
+
path: "/accounts/{account_id}/storage/kv/namespaces/{namespaceId}",
|
|
94
|
+
}),
|
|
95
|
+
) as unknown as Schema.Schema<GetNamespaceRequest>;
|
|
96
|
+
|
|
97
|
+
export interface GetNamespaceResponse {
|
|
98
|
+
/** Namespace identifier tag. */
|
|
99
|
+
id: string;
|
|
100
|
+
/** A human-readable string name for a Namespace. */
|
|
101
|
+
title: string;
|
|
102
|
+
/** True if keys written on the URL will be URL-decoded before storing. For example, if set to "true", a key written on the URL as "%3F" will be stored as "?". */
|
|
103
|
+
supportsUrlEncoding?: boolean | null;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export const GetNamespaceResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
107
|
+
id: Schema.String,
|
|
108
|
+
title: Schema.String,
|
|
109
|
+
supportsUrlEncoding: Schema.optional(
|
|
110
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
111
|
+
),
|
|
112
|
+
})
|
|
113
|
+
.pipe(
|
|
114
|
+
Schema.encodeKeys({
|
|
115
|
+
id: "id",
|
|
116
|
+
title: "title",
|
|
117
|
+
supportsUrlEncoding: "supports_url_encoding",
|
|
118
|
+
}),
|
|
119
|
+
)
|
|
120
|
+
.pipe(
|
|
121
|
+
T.ResponsePath("result"),
|
|
122
|
+
) as unknown as Schema.Schema<GetNamespaceResponse>;
|
|
123
|
+
|
|
124
|
+
export type GetNamespaceError =
|
|
125
|
+
| DefaultErrors
|
|
126
|
+
| NamespaceNotFound
|
|
127
|
+
| InvalidObjectIdentifier;
|
|
128
|
+
|
|
129
|
+
export const getNamespace: API.OperationMethod<
|
|
130
|
+
GetNamespaceRequest,
|
|
131
|
+
GetNamespaceResponse,
|
|
132
|
+
GetNamespaceError,
|
|
133
|
+
Credentials | HttpClient.HttpClient
|
|
134
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
135
|
+
input: GetNamespaceRequest,
|
|
136
|
+
output: GetNamespaceResponse,
|
|
137
|
+
errors: [NamespaceNotFound, InvalidObjectIdentifier],
|
|
138
|
+
}));
|
|
139
|
+
|
|
140
|
+
export interface ListNamespacesRequest {
|
|
141
|
+
/** Path param: Identifier. */
|
|
142
|
+
accountId: string;
|
|
143
|
+
/** Query param: Direction to order namespaces. */
|
|
144
|
+
direction?: "asc" | "desc";
|
|
145
|
+
/** Query param: Field to order results by. */
|
|
146
|
+
order?: "id" | "title";
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export const ListNamespacesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
150
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
151
|
+
direction: Schema.optional(Schema.Literals(["asc", "desc"])).pipe(
|
|
152
|
+
T.HttpQuery("direction"),
|
|
153
|
+
),
|
|
154
|
+
order: Schema.optional(Schema.Literals(["id", "title"])).pipe(
|
|
155
|
+
T.HttpQuery("order"),
|
|
156
|
+
),
|
|
157
|
+
}).pipe(
|
|
158
|
+
T.Http({
|
|
159
|
+
method: "GET",
|
|
160
|
+
path: "/accounts/{account_id}/storage/kv/namespaces",
|
|
161
|
+
}),
|
|
162
|
+
) as unknown as Schema.Schema<ListNamespacesRequest>;
|
|
163
|
+
|
|
164
|
+
export interface ListNamespacesResponse {
|
|
165
|
+
result: { id: string; title: string; supportsUrlEncoding?: boolean | null }[];
|
|
166
|
+
resultInfo: {
|
|
167
|
+
count?: number | null;
|
|
168
|
+
page?: number | null;
|
|
169
|
+
perPage?: number | null;
|
|
170
|
+
totalCount?: number | null;
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export const ListNamespacesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
175
|
+
{
|
|
176
|
+
result: Schema.Array(
|
|
177
|
+
Schema.Struct({
|
|
178
|
+
id: Schema.String,
|
|
179
|
+
title: Schema.String,
|
|
180
|
+
supportsUrlEncoding: Schema.optional(
|
|
181
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
182
|
+
),
|
|
183
|
+
}).pipe(
|
|
184
|
+
Schema.encodeKeys({
|
|
185
|
+
id: "id",
|
|
186
|
+
title: "title",
|
|
187
|
+
supportsUrlEncoding: "supports_url_encoding",
|
|
188
|
+
}),
|
|
189
|
+
),
|
|
190
|
+
),
|
|
191
|
+
resultInfo: Schema.Struct({
|
|
192
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
193
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
194
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
195
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
196
|
+
}).pipe(
|
|
197
|
+
Schema.encodeKeys({
|
|
198
|
+
count: "count",
|
|
199
|
+
page: "page",
|
|
200
|
+
perPage: "per_page",
|
|
201
|
+
totalCount: "total_count",
|
|
202
|
+
}),
|
|
203
|
+
),
|
|
204
|
+
},
|
|
205
|
+
).pipe(
|
|
206
|
+
Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
|
|
207
|
+
) as unknown as Schema.Schema<ListNamespacesResponse>;
|
|
208
|
+
|
|
209
|
+
export type ListNamespacesError = DefaultErrors;
|
|
210
|
+
|
|
211
|
+
export const listNamespaces: API.PaginatedOperationMethod<
|
|
212
|
+
ListNamespacesRequest,
|
|
213
|
+
ListNamespacesResponse,
|
|
214
|
+
ListNamespacesError,
|
|
215
|
+
Credentials | HttpClient.HttpClient
|
|
216
|
+
> & {
|
|
217
|
+
pages: (
|
|
218
|
+
input: ListNamespacesRequest,
|
|
219
|
+
) => stream.Stream<
|
|
220
|
+
ListNamespacesResponse,
|
|
221
|
+
ListNamespacesError,
|
|
222
|
+
Credentials | HttpClient.HttpClient
|
|
223
|
+
>;
|
|
224
|
+
items: (
|
|
225
|
+
input: ListNamespacesRequest,
|
|
226
|
+
) => stream.Stream<
|
|
227
|
+
{ id: string; title: string; supportsUrlEncoding?: boolean | null },
|
|
228
|
+
ListNamespacesError,
|
|
229
|
+
Credentials | HttpClient.HttpClient
|
|
230
|
+
>;
|
|
231
|
+
} = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
232
|
+
input: ListNamespacesRequest,
|
|
233
|
+
output: ListNamespacesResponse,
|
|
234
|
+
errors: [],
|
|
235
|
+
pagination: {
|
|
236
|
+
mode: "page",
|
|
237
|
+
inputToken: "page",
|
|
238
|
+
outputToken: "resultInfo.page",
|
|
239
|
+
items: "result",
|
|
240
|
+
pageSize: "perPage",
|
|
241
|
+
} as const,
|
|
242
|
+
}));
|
|
243
|
+
|
|
244
|
+
export interface CreateNamespaceRequest {
|
|
245
|
+
/** Path param: Identifier. */
|
|
246
|
+
accountId: string;
|
|
247
|
+
/** Body param: A human-readable string name for a Namespace. */
|
|
248
|
+
title: string;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
export const CreateNamespaceRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
252
|
+
{
|
|
253
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
254
|
+
title: Schema.String,
|
|
255
|
+
},
|
|
256
|
+
).pipe(
|
|
257
|
+
T.Http({
|
|
258
|
+
method: "POST",
|
|
259
|
+
path: "/accounts/{account_id}/storage/kv/namespaces",
|
|
260
|
+
}),
|
|
261
|
+
) as unknown as Schema.Schema<CreateNamespaceRequest>;
|
|
262
|
+
|
|
263
|
+
export interface CreateNamespaceResponse {
|
|
264
|
+
/** Namespace identifier tag. */
|
|
265
|
+
id: string;
|
|
266
|
+
/** A human-readable string name for a Namespace. */
|
|
267
|
+
title: string;
|
|
268
|
+
/** True if keys written on the URL will be URL-decoded before storing. For example, if set to "true", a key written on the URL as "%3F" will be stored as "?". */
|
|
269
|
+
supportsUrlEncoding?: boolean | null;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
export const CreateNamespaceResponse =
|
|
273
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
274
|
+
id: Schema.String,
|
|
275
|
+
title: Schema.String,
|
|
276
|
+
supportsUrlEncoding: Schema.optional(
|
|
277
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
278
|
+
),
|
|
279
|
+
})
|
|
280
|
+
.pipe(
|
|
281
|
+
Schema.encodeKeys({
|
|
282
|
+
id: "id",
|
|
283
|
+
title: "title",
|
|
284
|
+
supportsUrlEncoding: "supports_url_encoding",
|
|
285
|
+
}),
|
|
286
|
+
)
|
|
287
|
+
.pipe(
|
|
288
|
+
T.ResponsePath("result"),
|
|
289
|
+
) as unknown as Schema.Schema<CreateNamespaceResponse>;
|
|
290
|
+
|
|
291
|
+
export type CreateNamespaceError =
|
|
292
|
+
| DefaultErrors
|
|
293
|
+
| TitleRequired
|
|
294
|
+
| InvalidObjectIdentifier
|
|
295
|
+
| NamespaceTitleAlreadyExists;
|
|
296
|
+
|
|
297
|
+
export const createNamespace: API.OperationMethod<
|
|
298
|
+
CreateNamespaceRequest,
|
|
299
|
+
CreateNamespaceResponse,
|
|
300
|
+
CreateNamespaceError,
|
|
301
|
+
Credentials | HttpClient.HttpClient
|
|
302
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
303
|
+
input: CreateNamespaceRequest,
|
|
304
|
+
output: CreateNamespaceResponse,
|
|
305
|
+
errors: [TitleRequired, InvalidObjectIdentifier, NamespaceTitleAlreadyExists],
|
|
306
|
+
}));
|
|
307
|
+
|
|
308
|
+
export interface UpdateNamespaceRequest {
|
|
309
|
+
namespaceId: string;
|
|
310
|
+
/** Path param: Identifier. */
|
|
311
|
+
accountId: string;
|
|
312
|
+
/** Body param: A human-readable string name for a Namespace. */
|
|
313
|
+
title: string;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
export const UpdateNamespaceRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
317
|
+
{
|
|
318
|
+
namespaceId: Schema.String.pipe(T.HttpPath("namespaceId")),
|
|
319
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
320
|
+
title: Schema.String,
|
|
321
|
+
},
|
|
322
|
+
).pipe(
|
|
323
|
+
T.Http({
|
|
324
|
+
method: "PUT",
|
|
325
|
+
path: "/accounts/{account_id}/storage/kv/namespaces/{namespaceId}",
|
|
326
|
+
}),
|
|
327
|
+
) as unknown as Schema.Schema<UpdateNamespaceRequest>;
|
|
328
|
+
|
|
329
|
+
export interface UpdateNamespaceResponse {
|
|
330
|
+
/** Namespace identifier tag. */
|
|
331
|
+
id: string;
|
|
332
|
+
/** A human-readable string name for a Namespace. */
|
|
333
|
+
title: string;
|
|
334
|
+
/** True if keys written on the URL will be URL-decoded before storing. For example, if set to "true", a key written on the URL as "%3F" will be stored as "?". */
|
|
335
|
+
supportsUrlEncoding?: boolean | null;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
export const UpdateNamespaceResponse =
|
|
339
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
340
|
+
id: Schema.String,
|
|
341
|
+
title: Schema.String,
|
|
342
|
+
supportsUrlEncoding: Schema.optional(
|
|
343
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
344
|
+
),
|
|
345
|
+
})
|
|
346
|
+
.pipe(
|
|
347
|
+
Schema.encodeKeys({
|
|
348
|
+
id: "id",
|
|
349
|
+
title: "title",
|
|
350
|
+
supportsUrlEncoding: "supports_url_encoding",
|
|
351
|
+
}),
|
|
352
|
+
)
|
|
353
|
+
.pipe(
|
|
354
|
+
T.ResponsePath("result"),
|
|
355
|
+
) as unknown as Schema.Schema<UpdateNamespaceResponse>;
|
|
356
|
+
|
|
357
|
+
export type UpdateNamespaceError =
|
|
358
|
+
| DefaultErrors
|
|
359
|
+
| NamespaceNotFound
|
|
360
|
+
| TitleRequired
|
|
361
|
+
| InvalidObjectIdentifier
|
|
362
|
+
| NamespaceTitleAlreadyExists;
|
|
363
|
+
|
|
364
|
+
export const updateNamespace: API.OperationMethod<
|
|
365
|
+
UpdateNamespaceRequest,
|
|
366
|
+
UpdateNamespaceResponse,
|
|
367
|
+
UpdateNamespaceError,
|
|
368
|
+
Credentials | HttpClient.HttpClient
|
|
369
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
370
|
+
input: UpdateNamespaceRequest,
|
|
371
|
+
output: UpdateNamespaceResponse,
|
|
372
|
+
errors: [
|
|
373
|
+
NamespaceNotFound,
|
|
374
|
+
TitleRequired,
|
|
375
|
+
InvalidObjectIdentifier,
|
|
376
|
+
NamespaceTitleAlreadyExists,
|
|
377
|
+
],
|
|
378
|
+
}));
|
|
379
|
+
|
|
380
|
+
export interface DeleteNamespaceRequest {
|
|
381
|
+
namespaceId: string;
|
|
382
|
+
/** Identifier. */
|
|
383
|
+
accountId: string;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
export const DeleteNamespaceRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
387
|
+
{
|
|
388
|
+
namespaceId: Schema.String.pipe(T.HttpPath("namespaceId")),
|
|
389
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
390
|
+
},
|
|
391
|
+
).pipe(
|
|
392
|
+
T.Http({
|
|
393
|
+
method: "DELETE",
|
|
394
|
+
path: "/accounts/{account_id}/storage/kv/namespaces/{namespaceId}",
|
|
395
|
+
}),
|
|
396
|
+
) as unknown as Schema.Schema<DeleteNamespaceRequest>;
|
|
397
|
+
|
|
398
|
+
export interface DeleteNamespaceResponse {}
|
|
399
|
+
|
|
400
|
+
export const DeleteNamespaceResponse =
|
|
401
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(
|
|
402
|
+
T.ResponsePath("result"),
|
|
403
|
+
) as unknown as Schema.Schema<DeleteNamespaceResponse>;
|
|
404
|
+
|
|
405
|
+
export type DeleteNamespaceError =
|
|
406
|
+
| DefaultErrors
|
|
407
|
+
| MethodNotAllowed
|
|
408
|
+
| NamespaceNotFound
|
|
409
|
+
| InvalidObjectIdentifier;
|
|
410
|
+
|
|
411
|
+
export const deleteNamespace: API.OperationMethod<
|
|
412
|
+
DeleteNamespaceRequest,
|
|
413
|
+
DeleteNamespaceResponse,
|
|
414
|
+
DeleteNamespaceError,
|
|
415
|
+
Credentials | HttpClient.HttpClient
|
|
416
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
417
|
+
input: DeleteNamespaceRequest,
|
|
418
|
+
output: DeleteNamespaceResponse,
|
|
419
|
+
errors: [MethodNotAllowed, NamespaceNotFound, InvalidObjectIdentifier],
|
|
420
|
+
}));
|
|
421
|
+
|
|
422
|
+
export interface BulkGetNamespacesRequest {
|
|
423
|
+
namespaceId: string;
|
|
424
|
+
/** Path param: Identifier. */
|
|
425
|
+
accountId: string;
|
|
426
|
+
/** Body param: Array of keys to retrieve (maximum of 100). */
|
|
427
|
+
keys: string[];
|
|
428
|
+
/** Body param: Whether to parse JSON values in the response. */
|
|
429
|
+
type?: "text" | "json";
|
|
430
|
+
/** Body param: Whether to include metadata in the response. */
|
|
431
|
+
withMetadata?: boolean;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
export const BulkGetNamespacesRequest =
|
|
435
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
436
|
+
namespaceId: Schema.String.pipe(T.HttpPath("namespaceId")),
|
|
437
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
438
|
+
keys: Schema.Array(Schema.String),
|
|
439
|
+
type: Schema.optional(Schema.Literals(["text", "json"])),
|
|
440
|
+
withMetadata: Schema.optional(Schema.Boolean),
|
|
441
|
+
}).pipe(
|
|
442
|
+
T.Http({
|
|
443
|
+
method: "POST",
|
|
444
|
+
path: "/accounts/{account_id}/storage/kv/namespaces/{namespaceId}/bulk/get",
|
|
445
|
+
}),
|
|
446
|
+
) as unknown as Schema.Schema<BulkGetNamespacesRequest>;
|
|
447
|
+
|
|
448
|
+
export type BulkGetNamespacesResponse = {
|
|
449
|
+
values?: Record<string, unknown> | null;
|
|
450
|
+
};
|
|
451
|
+
|
|
452
|
+
export const BulkGetNamespacesResponse =
|
|
453
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
454
|
+
values: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
455
|
+
}).pipe(
|
|
456
|
+
T.ResponsePath("result"),
|
|
457
|
+
) as unknown as Schema.Schema<BulkGetNamespacesResponse>;
|
|
458
|
+
|
|
459
|
+
export type BulkGetNamespacesError =
|
|
460
|
+
| DefaultErrors
|
|
461
|
+
| InvalidRequestBody
|
|
462
|
+
| MinimumKeysRequired
|
|
463
|
+
| NamespaceNotFound
|
|
464
|
+
| InvalidObjectIdentifier;
|
|
465
|
+
|
|
466
|
+
export const bulkGetNamespaces: API.OperationMethod<
|
|
467
|
+
BulkGetNamespacesRequest,
|
|
468
|
+
BulkGetNamespacesResponse,
|
|
469
|
+
BulkGetNamespacesError,
|
|
470
|
+
Credentials | HttpClient.HttpClient
|
|
471
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
472
|
+
input: BulkGetNamespacesRequest,
|
|
473
|
+
output: BulkGetNamespacesResponse,
|
|
474
|
+
errors: [
|
|
475
|
+
InvalidRequestBody,
|
|
476
|
+
MinimumKeysRequired,
|
|
477
|
+
NamespaceNotFound,
|
|
478
|
+
InvalidObjectIdentifier,
|
|
479
|
+
],
|
|
480
|
+
}));
|
|
481
|
+
|
|
482
|
+
export interface BulkDeleteNamespacesRequest {
|
|
483
|
+
namespaceId: string;
|
|
484
|
+
/** Path param: Identifier. */
|
|
485
|
+
accountId: string;
|
|
486
|
+
/** Body param: */
|
|
487
|
+
body: string[];
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
export const BulkDeleteNamespacesRequest =
|
|
491
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
492
|
+
namespaceId: Schema.String.pipe(T.HttpPath("namespaceId")),
|
|
493
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
494
|
+
body: Schema.Array(Schema.String).pipe(T.HttpBody()),
|
|
495
|
+
}).pipe(
|
|
496
|
+
T.Http({
|
|
497
|
+
method: "POST",
|
|
498
|
+
path: "/accounts/{account_id}/storage/kv/namespaces/{namespaceId}/bulk/delete",
|
|
499
|
+
}),
|
|
500
|
+
) as unknown as Schema.Schema<BulkDeleteNamespacesRequest>;
|
|
501
|
+
|
|
502
|
+
export interface BulkDeleteNamespacesResponse {
|
|
503
|
+
/** Number of keys successfully updated. */
|
|
504
|
+
successfulKeyCount?: number | null;
|
|
505
|
+
/** Name of the keys that failed to be fully updated. They should be retried. */
|
|
506
|
+
unsuccessfulKeys?: string[] | null;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
export const BulkDeleteNamespacesResponse =
|
|
510
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
511
|
+
successfulKeyCount: Schema.optional(
|
|
512
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
513
|
+
),
|
|
514
|
+
unsuccessfulKeys: Schema.optional(
|
|
515
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
516
|
+
),
|
|
517
|
+
})
|
|
518
|
+
.pipe(
|
|
519
|
+
Schema.encodeKeys({
|
|
520
|
+
successfulKeyCount: "successful_key_count",
|
|
521
|
+
unsuccessfulKeys: "unsuccessful_keys",
|
|
522
|
+
}),
|
|
523
|
+
)
|
|
524
|
+
.pipe(
|
|
525
|
+
T.ResponsePath("result"),
|
|
526
|
+
) as unknown as Schema.Schema<BulkDeleteNamespacesResponse>;
|
|
527
|
+
|
|
528
|
+
export type BulkDeleteNamespacesError =
|
|
529
|
+
| DefaultErrors
|
|
530
|
+
| NamespaceNotFound
|
|
531
|
+
| InvalidRequestBody
|
|
532
|
+
| InvalidObjectIdentifier;
|
|
533
|
+
|
|
534
|
+
export const bulkDeleteNamespaces: API.OperationMethod<
|
|
535
|
+
BulkDeleteNamespacesRequest,
|
|
536
|
+
BulkDeleteNamespacesResponse,
|
|
537
|
+
BulkDeleteNamespacesError,
|
|
538
|
+
Credentials | HttpClient.HttpClient
|
|
539
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
540
|
+
input: BulkDeleteNamespacesRequest,
|
|
541
|
+
output: BulkDeleteNamespacesResponse,
|
|
542
|
+
errors: [NamespaceNotFound, InvalidRequestBody, InvalidObjectIdentifier],
|
|
543
|
+
}));
|
|
544
|
+
|
|
545
|
+
// =============================================================================
|
|
546
|
+
// NamespaceKey
|
|
547
|
+
// =============================================================================
|
|
548
|
+
|
|
549
|
+
export interface ListNamespaceKeysRequest {
|
|
550
|
+
namespaceId: string;
|
|
551
|
+
/** Path param: Identifier. */
|
|
552
|
+
accountId: string;
|
|
553
|
+
/** Query param: Limits the number of keys returned in the response. The cursor attribute may be used to iterate over the next batch of keys if there are more than the limit. */
|
|
554
|
+
limit?: number;
|
|
555
|
+
/** Query param: Filters returned keys by a name prefix. Exact matches and any key names that begin with the prefix will be returned. */
|
|
556
|
+
prefix?: string;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
export const ListNamespaceKeysRequest =
|
|
560
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
561
|
+
namespaceId: Schema.String.pipe(T.HttpPath("namespaceId")),
|
|
562
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
563
|
+
limit: Schema.optional(Schema.Number).pipe(T.HttpQuery("limit")),
|
|
564
|
+
prefix: Schema.optional(Schema.String).pipe(T.HttpQuery("prefix")),
|
|
565
|
+
}).pipe(
|
|
566
|
+
T.Http({
|
|
567
|
+
method: "GET",
|
|
568
|
+
path: "/accounts/{account_id}/storage/kv/namespaces/{namespaceId}/keys",
|
|
569
|
+
}),
|
|
570
|
+
) as unknown as Schema.Schema<ListNamespaceKeysRequest>;
|
|
571
|
+
|
|
572
|
+
export interface ListNamespaceKeysResponse {
|
|
573
|
+
result: {
|
|
574
|
+
name: string;
|
|
575
|
+
expiration?: number | null;
|
|
576
|
+
metadata?: unknown | null;
|
|
577
|
+
}[];
|
|
578
|
+
resultInfo: { cursors?: { after?: string | null } | null };
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
export const ListNamespaceKeysResponse =
|
|
582
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
583
|
+
result: Schema.Array(
|
|
584
|
+
Schema.Struct({
|
|
585
|
+
name: Schema.String,
|
|
586
|
+
expiration: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
587
|
+
metadata: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
588
|
+
}),
|
|
589
|
+
),
|
|
590
|
+
resultInfo: Schema.Struct({
|
|
591
|
+
cursors: Schema.optional(
|
|
592
|
+
Schema.Union([
|
|
593
|
+
Schema.Struct({
|
|
594
|
+
after: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
595
|
+
}),
|
|
596
|
+
Schema.Null,
|
|
597
|
+
]),
|
|
598
|
+
),
|
|
599
|
+
}),
|
|
600
|
+
}).pipe(
|
|
601
|
+
Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
|
|
602
|
+
) as unknown as Schema.Schema<ListNamespaceKeysResponse>;
|
|
603
|
+
|
|
604
|
+
export type ListNamespaceKeysError = DefaultErrors;
|
|
605
|
+
|
|
606
|
+
export const listNamespaceKeys: API.PaginatedOperationMethod<
|
|
607
|
+
ListNamespaceKeysRequest,
|
|
608
|
+
ListNamespaceKeysResponse,
|
|
609
|
+
ListNamespaceKeysError,
|
|
610
|
+
Credentials | HttpClient.HttpClient
|
|
611
|
+
> & {
|
|
612
|
+
pages: (
|
|
613
|
+
input: ListNamespaceKeysRequest,
|
|
614
|
+
) => stream.Stream<
|
|
615
|
+
ListNamespaceKeysResponse,
|
|
616
|
+
ListNamespaceKeysError,
|
|
617
|
+
Credentials | HttpClient.HttpClient
|
|
618
|
+
>;
|
|
619
|
+
items: (
|
|
620
|
+
input: ListNamespaceKeysRequest,
|
|
621
|
+
) => stream.Stream<
|
|
622
|
+
{ name: string; expiration?: number | null; metadata?: unknown | null },
|
|
623
|
+
ListNamespaceKeysError,
|
|
624
|
+
Credentials | HttpClient.HttpClient
|
|
625
|
+
>;
|
|
626
|
+
} = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
627
|
+
input: ListNamespaceKeysRequest,
|
|
628
|
+
output: ListNamespaceKeysResponse,
|
|
629
|
+
errors: [],
|
|
630
|
+
pagination: {
|
|
631
|
+
mode: "cursor",
|
|
632
|
+
inputToken: "cursor",
|
|
633
|
+
outputToken: "resultInfo.cursors.after",
|
|
634
|
+
items: "result",
|
|
635
|
+
} as const,
|
|
636
|
+
}));
|
|
637
|
+
|
|
638
|
+
export interface BulkGetNamespaceKeysRequest {
|
|
639
|
+
namespaceId: string;
|
|
640
|
+
/** Path param: Identifier. */
|
|
641
|
+
accountId: string;
|
|
642
|
+
/** Body param: Array of keys to retrieve (maximum of 100). */
|
|
643
|
+
keys: string[];
|
|
644
|
+
/** Body param: Whether to parse JSON values in the response. */
|
|
645
|
+
type?: "text" | "json";
|
|
646
|
+
/** Body param: Whether to include metadata in the response. */
|
|
647
|
+
withMetadata?: boolean;
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
export const BulkGetNamespaceKeysRequest =
|
|
651
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
652
|
+
namespaceId: Schema.String.pipe(T.HttpPath("namespaceId")),
|
|
653
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
654
|
+
keys: Schema.Array(Schema.String),
|
|
655
|
+
type: Schema.optional(Schema.Literals(["text", "json"])),
|
|
656
|
+
withMetadata: Schema.optional(Schema.Boolean),
|
|
657
|
+
}).pipe(
|
|
658
|
+
T.Http({
|
|
659
|
+
method: "POST",
|
|
660
|
+
path: "/accounts/{account_id}/storage/kv/namespaces/{namespaceId}/bulk/get",
|
|
661
|
+
}),
|
|
662
|
+
) as unknown as Schema.Schema<BulkGetNamespaceKeysRequest>;
|
|
663
|
+
|
|
664
|
+
export type BulkGetNamespaceKeysResponse = {
|
|
665
|
+
values?: Record<string, unknown> | null;
|
|
666
|
+
};
|
|
667
|
+
|
|
668
|
+
export const BulkGetNamespaceKeysResponse =
|
|
669
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
670
|
+
values: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
671
|
+
}).pipe(
|
|
672
|
+
T.ResponsePath("result"),
|
|
673
|
+
) as unknown as Schema.Schema<BulkGetNamespaceKeysResponse>;
|
|
674
|
+
|
|
675
|
+
export type BulkGetNamespaceKeysError =
|
|
676
|
+
| DefaultErrors
|
|
677
|
+
| InvalidRequestBody
|
|
678
|
+
| NamespaceNotFound
|
|
679
|
+
| InvalidObjectIdentifier;
|
|
680
|
+
|
|
681
|
+
export const bulkGetNamespaceKeys: API.OperationMethod<
|
|
682
|
+
BulkGetNamespaceKeysRequest,
|
|
683
|
+
BulkGetNamespaceKeysResponse,
|
|
684
|
+
BulkGetNamespaceKeysError,
|
|
685
|
+
Credentials | HttpClient.HttpClient
|
|
686
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
687
|
+
input: BulkGetNamespaceKeysRequest,
|
|
688
|
+
output: BulkGetNamespaceKeysResponse,
|
|
689
|
+
errors: [InvalidRequestBody, NamespaceNotFound, InvalidObjectIdentifier],
|
|
690
|
+
}));
|
|
691
|
+
|
|
692
|
+
export interface BulkDeleteNamespaceKeysRequest {
|
|
693
|
+
namespaceId: string;
|
|
694
|
+
/** Path param: Identifier. */
|
|
695
|
+
accountId: string;
|
|
696
|
+
/** Body param: */
|
|
697
|
+
body: string[];
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
export const BulkDeleteNamespaceKeysRequest =
|
|
701
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
702
|
+
namespaceId: Schema.String.pipe(T.HttpPath("namespaceId")),
|
|
703
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
704
|
+
body: Schema.Array(Schema.String).pipe(T.HttpBody()),
|
|
705
|
+
}).pipe(
|
|
706
|
+
T.Http({
|
|
707
|
+
method: "POST",
|
|
708
|
+
path: "/accounts/{account_id}/storage/kv/namespaces/{namespaceId}/bulk/delete",
|
|
709
|
+
}),
|
|
710
|
+
) as unknown as Schema.Schema<BulkDeleteNamespaceKeysRequest>;
|
|
711
|
+
|
|
712
|
+
export interface BulkDeleteNamespaceKeysResponse {
|
|
713
|
+
/** Number of keys successfully updated. */
|
|
714
|
+
successfulKeyCount?: number | null;
|
|
715
|
+
/** Name of the keys that failed to be fully updated. They should be retried. */
|
|
716
|
+
unsuccessfulKeys?: string[] | null;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
export const BulkDeleteNamespaceKeysResponse =
|
|
720
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
721
|
+
successfulKeyCount: Schema.optional(
|
|
722
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
723
|
+
),
|
|
724
|
+
unsuccessfulKeys: Schema.optional(
|
|
725
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
726
|
+
),
|
|
727
|
+
})
|
|
728
|
+
.pipe(
|
|
729
|
+
Schema.encodeKeys({
|
|
730
|
+
successfulKeyCount: "successful_key_count",
|
|
731
|
+
unsuccessfulKeys: "unsuccessful_keys",
|
|
732
|
+
}),
|
|
733
|
+
)
|
|
734
|
+
.pipe(
|
|
735
|
+
T.ResponsePath("result"),
|
|
736
|
+
) as unknown as Schema.Schema<BulkDeleteNamespaceKeysResponse>;
|
|
737
|
+
|
|
738
|
+
export type BulkDeleteNamespaceKeysError =
|
|
739
|
+
| DefaultErrors
|
|
740
|
+
| NamespaceNotFound
|
|
741
|
+
| InvalidRequestBody
|
|
742
|
+
| InvalidObjectIdentifier;
|
|
743
|
+
|
|
744
|
+
export const bulkDeleteNamespaceKeys: API.OperationMethod<
|
|
745
|
+
BulkDeleteNamespaceKeysRequest,
|
|
746
|
+
BulkDeleteNamespaceKeysResponse,
|
|
747
|
+
BulkDeleteNamespaceKeysError,
|
|
748
|
+
Credentials | HttpClient.HttpClient
|
|
749
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
750
|
+
input: BulkDeleteNamespaceKeysRequest,
|
|
751
|
+
output: BulkDeleteNamespaceKeysResponse,
|
|
752
|
+
errors: [NamespaceNotFound, InvalidRequestBody, InvalidObjectIdentifier],
|
|
753
|
+
}));
|
|
754
|
+
|
|
755
|
+
// =============================================================================
|
|
756
|
+
// NamespaceMetadata
|
|
757
|
+
// =============================================================================
|
|
758
|
+
|
|
759
|
+
export interface GetNamespaceMetadataRequest {
|
|
760
|
+
namespaceId: string;
|
|
761
|
+
keyName: string;
|
|
762
|
+
/** Identifier. */
|
|
763
|
+
accountId: string;
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
export const GetNamespaceMetadataRequest =
|
|
767
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
768
|
+
namespaceId: Schema.String.pipe(T.HttpPath("namespaceId")),
|
|
769
|
+
keyName: Schema.String.pipe(T.HttpPath("keyName")),
|
|
770
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
771
|
+
}).pipe(
|
|
772
|
+
T.Http({
|
|
773
|
+
method: "GET",
|
|
774
|
+
path: "/accounts/{account_id}/storage/kv/namespaces/{namespaceId}/metadata/{keyName}",
|
|
775
|
+
}),
|
|
776
|
+
) as unknown as Schema.Schema<GetNamespaceMetadataRequest>;
|
|
777
|
+
|
|
778
|
+
export type GetNamespaceMetadataResponse = unknown;
|
|
779
|
+
|
|
780
|
+
export const GetNamespaceMetadataResponse =
|
|
781
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(
|
|
782
|
+
T.ResponsePath("result"),
|
|
783
|
+
) as unknown as Schema.Schema<GetNamespaceMetadataResponse>;
|
|
784
|
+
|
|
785
|
+
export type GetNamespaceMetadataError =
|
|
786
|
+
| DefaultErrors
|
|
787
|
+
| KeyNotFound
|
|
788
|
+
| NamespaceNotFound
|
|
789
|
+
| InvalidObjectIdentifier;
|
|
790
|
+
|
|
791
|
+
export const getNamespaceMetadata: API.OperationMethod<
|
|
792
|
+
GetNamespaceMetadataRequest,
|
|
793
|
+
GetNamespaceMetadataResponse,
|
|
794
|
+
GetNamespaceMetadataError,
|
|
795
|
+
Credentials | HttpClient.HttpClient
|
|
796
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
797
|
+
input: GetNamespaceMetadataRequest,
|
|
798
|
+
output: GetNamespaceMetadataResponse,
|
|
799
|
+
errors: [KeyNotFound, NamespaceNotFound, InvalidObjectIdentifier],
|
|
800
|
+
}));
|
|
801
|
+
|
|
802
|
+
// =============================================================================
|
|
803
|
+
// NamespaceValue
|
|
804
|
+
// =============================================================================
|
|
805
|
+
|
|
806
|
+
export interface GetNamespaceValueRequest {
|
|
807
|
+
namespaceId: string;
|
|
808
|
+
keyName: string;
|
|
809
|
+
/** Identifier. */
|
|
810
|
+
accountId: string;
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
export const GetNamespaceValueRequest =
|
|
814
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
815
|
+
namespaceId: Schema.String.pipe(T.HttpPath("namespaceId")),
|
|
816
|
+
keyName: Schema.String.pipe(T.HttpPath("keyName")),
|
|
817
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
818
|
+
}).pipe(
|
|
819
|
+
T.Http({
|
|
820
|
+
method: "GET",
|
|
821
|
+
path: "/accounts/{account_id}/storage/kv/namespaces/{namespaceId}/values/{keyName}",
|
|
822
|
+
}),
|
|
823
|
+
) as unknown as Schema.Schema<GetNamespaceValueRequest>;
|
|
824
|
+
|
|
825
|
+
export type GetNamespaceValueResponse = unknown;
|
|
826
|
+
|
|
827
|
+
export const GetNamespaceValueResponse =
|
|
828
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<GetNamespaceValueResponse>;
|
|
829
|
+
|
|
830
|
+
export type GetNamespaceValueError =
|
|
831
|
+
| DefaultErrors
|
|
832
|
+
| KeyNotFound
|
|
833
|
+
| NamespaceNotFound
|
|
834
|
+
| InvalidObjectIdentifier;
|
|
835
|
+
|
|
836
|
+
export const getNamespaceValue: API.OperationMethod<
|
|
837
|
+
GetNamespaceValueRequest,
|
|
838
|
+
GetNamespaceValueResponse,
|
|
839
|
+
GetNamespaceValueError,
|
|
840
|
+
Credentials | HttpClient.HttpClient
|
|
841
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
842
|
+
input: GetNamespaceValueRequest,
|
|
843
|
+
output: GetNamespaceValueResponse,
|
|
844
|
+
errors: [KeyNotFound, NamespaceNotFound, InvalidObjectIdentifier],
|
|
845
|
+
}));
|
|
846
|
+
|
|
847
|
+
export interface PutNamespaceValueRequest {
|
|
848
|
+
namespaceId: string;
|
|
849
|
+
keyName: string;
|
|
850
|
+
/** Path param: Identifier. */
|
|
851
|
+
accountId: string;
|
|
852
|
+
/** Query param: Expires the key at a certain time, measured in number of seconds since the UNIX epoch. */
|
|
853
|
+
expiration?: number;
|
|
854
|
+
/** Query param: Expires the key after a number of seconds. Must be at least 60. */
|
|
855
|
+
expirationTtl?: number;
|
|
856
|
+
/** Body param: A byte sequence to be stored, up to 25 MiB in length. */
|
|
857
|
+
value: string;
|
|
858
|
+
/** Body param: Associates arbitrary JSON data with a key/value pair. */
|
|
859
|
+
metadata?: unknown;
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
export const PutNamespaceValueRequest =
|
|
863
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
864
|
+
namespaceId: Schema.String.pipe(T.HttpPath("namespaceId")),
|
|
865
|
+
keyName: Schema.String.pipe(T.HttpPath("keyName")),
|
|
866
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
867
|
+
expiration: Schema.optional(Schema.Number).pipe(T.HttpQuery("expiration")),
|
|
868
|
+
expirationTtl: Schema.optional(Schema.Number).pipe(
|
|
869
|
+
T.HttpQuery("expiration_ttl"),
|
|
870
|
+
),
|
|
871
|
+
value: Schema.String,
|
|
872
|
+
metadata: Schema.optional(Schema.Unknown),
|
|
873
|
+
}).pipe(
|
|
874
|
+
T.Http({
|
|
875
|
+
method: "PUT",
|
|
876
|
+
path: "/accounts/{account_id}/storage/kv/namespaces/{namespaceId}/values/{keyName}",
|
|
877
|
+
contentType: "multipart",
|
|
878
|
+
}),
|
|
879
|
+
) as unknown as Schema.Schema<PutNamespaceValueRequest>;
|
|
880
|
+
|
|
881
|
+
export interface PutNamespaceValueResponse {}
|
|
882
|
+
|
|
883
|
+
export const PutNamespaceValueResponse =
|
|
884
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(
|
|
885
|
+
T.ResponsePath("result"),
|
|
886
|
+
) as unknown as Schema.Schema<PutNamespaceValueResponse>;
|
|
887
|
+
|
|
888
|
+
export type PutNamespaceValueError =
|
|
889
|
+
| DefaultErrors
|
|
890
|
+
| NamespaceNotFound
|
|
891
|
+
| InvalidObjectIdentifier
|
|
892
|
+
| InvalidExpirationTtl;
|
|
893
|
+
|
|
894
|
+
export const putNamespaceValue: API.OperationMethod<
|
|
895
|
+
PutNamespaceValueRequest,
|
|
896
|
+
PutNamespaceValueResponse,
|
|
897
|
+
PutNamespaceValueError,
|
|
898
|
+
Credentials | HttpClient.HttpClient
|
|
899
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
900
|
+
input: PutNamespaceValueRequest,
|
|
901
|
+
output: PutNamespaceValueResponse,
|
|
902
|
+
errors: [NamespaceNotFound, InvalidObjectIdentifier, InvalidExpirationTtl],
|
|
903
|
+
}));
|
|
904
|
+
|
|
905
|
+
export interface DeleteNamespaceValueRequest {
|
|
906
|
+
namespaceId: string;
|
|
907
|
+
keyName: string;
|
|
908
|
+
/** Identifier. */
|
|
909
|
+
accountId: string;
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
export const DeleteNamespaceValueRequest =
|
|
913
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
914
|
+
namespaceId: Schema.String.pipe(T.HttpPath("namespaceId")),
|
|
915
|
+
keyName: Schema.String.pipe(T.HttpPath("keyName")),
|
|
916
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
917
|
+
}).pipe(
|
|
918
|
+
T.Http({
|
|
919
|
+
method: "DELETE",
|
|
920
|
+
path: "/accounts/{account_id}/storage/kv/namespaces/{namespaceId}/values/{keyName}",
|
|
921
|
+
}),
|
|
922
|
+
) as unknown as Schema.Schema<DeleteNamespaceValueRequest>;
|
|
923
|
+
|
|
924
|
+
export interface DeleteNamespaceValueResponse {}
|
|
925
|
+
|
|
926
|
+
export const DeleteNamespaceValueResponse =
|
|
927
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(
|
|
928
|
+
T.ResponsePath("result"),
|
|
929
|
+
) as unknown as Schema.Schema<DeleteNamespaceValueResponse>;
|
|
930
|
+
|
|
931
|
+
export type DeleteNamespaceValueError =
|
|
932
|
+
| DefaultErrors
|
|
933
|
+
| NamespaceNotFound
|
|
934
|
+
| InvalidObjectIdentifier;
|
|
935
|
+
|
|
936
|
+
export const deleteNamespaceValue: API.OperationMethod<
|
|
937
|
+
DeleteNamespaceValueRequest,
|
|
938
|
+
DeleteNamespaceValueResponse,
|
|
939
|
+
DeleteNamespaceValueError,
|
|
940
|
+
Credentials | HttpClient.HttpClient
|
|
941
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
942
|
+
input: DeleteNamespaceValueRequest,
|
|
943
|
+
output: DeleteNamespaceValueResponse,
|
|
944
|
+
errors: [NamespaceNotFound, InvalidObjectIdentifier],
|
|
945
|
+
}));
|
|
946
|
+
|
|
947
|
+
// =============================================================================
|
|
948
|
+
// PutNamespace
|
|
949
|
+
// =============================================================================
|
|
950
|
+
|
|
951
|
+
export interface BulkPutNamespacesRequest {
|
|
952
|
+
namespaceId: string;
|
|
953
|
+
/** Path param: Identifier. */
|
|
954
|
+
accountId: string;
|
|
955
|
+
/** Body param: */
|
|
956
|
+
body: {
|
|
957
|
+
key: string;
|
|
958
|
+
value: string;
|
|
959
|
+
base64?: boolean;
|
|
960
|
+
expiration?: number;
|
|
961
|
+
expirationTtl?: number;
|
|
962
|
+
metadata?: unknown;
|
|
963
|
+
}[];
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
export const BulkPutNamespacesRequest =
|
|
967
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
968
|
+
namespaceId: Schema.String.pipe(T.HttpPath("namespaceId")),
|
|
969
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
970
|
+
body: Schema.Array(
|
|
971
|
+
Schema.Struct({
|
|
972
|
+
key: Schema.String,
|
|
973
|
+
value: Schema.String,
|
|
974
|
+
base64: Schema.optional(Schema.Boolean),
|
|
975
|
+
expiration: Schema.optional(Schema.Number),
|
|
976
|
+
expirationTtl: Schema.optional(Schema.Number),
|
|
977
|
+
metadata: Schema.optional(Schema.Unknown),
|
|
978
|
+
}).pipe(
|
|
979
|
+
Schema.encodeKeys({
|
|
980
|
+
key: "key",
|
|
981
|
+
value: "value",
|
|
982
|
+
base64: "base64",
|
|
983
|
+
expiration: "expiration",
|
|
984
|
+
expirationTtl: "expiration_ttl",
|
|
985
|
+
metadata: "metadata",
|
|
986
|
+
}),
|
|
987
|
+
),
|
|
988
|
+
).pipe(T.HttpBody()),
|
|
989
|
+
}).pipe(
|
|
990
|
+
T.Http({
|
|
991
|
+
method: "PUT",
|
|
992
|
+
path: "/accounts/{account_id}/storage/kv/namespaces/{namespaceId}/bulk",
|
|
993
|
+
}),
|
|
994
|
+
) as unknown as Schema.Schema<BulkPutNamespacesRequest>;
|
|
995
|
+
|
|
996
|
+
export interface BulkPutNamespacesResponse {
|
|
997
|
+
/** Number of keys successfully updated. */
|
|
998
|
+
successfulKeyCount?: number | null;
|
|
999
|
+
/** Name of the keys that failed to be fully updated. They should be retried. */
|
|
1000
|
+
unsuccessfulKeys?: string[] | null;
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
export const BulkPutNamespacesResponse =
|
|
1004
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1005
|
+
successfulKeyCount: Schema.optional(
|
|
1006
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
1007
|
+
),
|
|
1008
|
+
unsuccessfulKeys: Schema.optional(
|
|
1009
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
1010
|
+
),
|
|
1011
|
+
})
|
|
1012
|
+
.pipe(
|
|
1013
|
+
Schema.encodeKeys({
|
|
1014
|
+
successfulKeyCount: "successful_key_count",
|
|
1015
|
+
unsuccessfulKeys: "unsuccessful_keys",
|
|
1016
|
+
}),
|
|
1017
|
+
)
|
|
1018
|
+
.pipe(
|
|
1019
|
+
T.ResponsePath("result"),
|
|
1020
|
+
) as unknown as Schema.Schema<BulkPutNamespacesResponse>;
|
|
1021
|
+
|
|
1022
|
+
export type BulkPutNamespacesError =
|
|
1023
|
+
| DefaultErrors
|
|
1024
|
+
| InvalidRequestBody
|
|
1025
|
+
| NamespaceNotFound
|
|
1026
|
+
| InvalidObjectIdentifier;
|
|
1027
|
+
|
|
1028
|
+
export const bulkPutNamespaces: API.OperationMethod<
|
|
1029
|
+
BulkPutNamespacesRequest,
|
|
1030
|
+
BulkPutNamespacesResponse,
|
|
1031
|
+
BulkPutNamespacesError,
|
|
1032
|
+
Credentials | HttpClient.HttpClient
|
|
1033
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1034
|
+
input: BulkPutNamespacesRequest,
|
|
1035
|
+
output: BulkPutNamespacesResponse,
|
|
1036
|
+
errors: [InvalidRequestBody, NamespaceNotFound, InvalidObjectIdentifier],
|
|
1037
|
+
}));
|
|
1038
|
+
|
|
1039
|
+
// =============================================================================
|
|
1040
|
+
// PutNamespaceKey
|
|
1041
|
+
// =============================================================================
|
|
1042
|
+
|
|
1043
|
+
export interface BulkPutNamespaceKeysRequest {
|
|
1044
|
+
namespaceId: string;
|
|
1045
|
+
/** Path param: Identifier. */
|
|
1046
|
+
accountId: string;
|
|
1047
|
+
/** Body param: */
|
|
1048
|
+
body: {
|
|
1049
|
+
key: string;
|
|
1050
|
+
value: string;
|
|
1051
|
+
base64?: boolean;
|
|
1052
|
+
expiration?: number;
|
|
1053
|
+
expirationTtl?: number;
|
|
1054
|
+
metadata?: unknown;
|
|
1055
|
+
}[];
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
export const BulkPutNamespaceKeysRequest =
|
|
1059
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1060
|
+
namespaceId: Schema.String.pipe(T.HttpPath("namespaceId")),
|
|
1061
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1062
|
+
body: Schema.Array(
|
|
1063
|
+
Schema.Struct({
|
|
1064
|
+
key: Schema.String,
|
|
1065
|
+
value: Schema.String,
|
|
1066
|
+
base64: Schema.optional(Schema.Boolean),
|
|
1067
|
+
expiration: Schema.optional(Schema.Number),
|
|
1068
|
+
expirationTtl: Schema.optional(Schema.Number),
|
|
1069
|
+
metadata: Schema.optional(Schema.Unknown),
|
|
1070
|
+
}).pipe(
|
|
1071
|
+
Schema.encodeKeys({
|
|
1072
|
+
key: "key",
|
|
1073
|
+
value: "value",
|
|
1074
|
+
base64: "base64",
|
|
1075
|
+
expiration: "expiration",
|
|
1076
|
+
expirationTtl: "expiration_ttl",
|
|
1077
|
+
metadata: "metadata",
|
|
1078
|
+
}),
|
|
1079
|
+
),
|
|
1080
|
+
).pipe(T.HttpBody()),
|
|
1081
|
+
}).pipe(
|
|
1082
|
+
T.Http({
|
|
1083
|
+
method: "PUT",
|
|
1084
|
+
path: "/accounts/{account_id}/storage/kv/namespaces/{namespaceId}/bulk",
|
|
1085
|
+
}),
|
|
1086
|
+
) as unknown as Schema.Schema<BulkPutNamespaceKeysRequest>;
|
|
1087
|
+
|
|
1088
|
+
export interface BulkPutNamespaceKeysResponse {
|
|
1089
|
+
/** Number of keys successfully updated. */
|
|
1090
|
+
successfulKeyCount?: number | null;
|
|
1091
|
+
/** Name of the keys that failed to be fully updated. They should be retried. */
|
|
1092
|
+
unsuccessfulKeys?: string[] | null;
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
export const BulkPutNamespaceKeysResponse =
|
|
1096
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1097
|
+
successfulKeyCount: Schema.optional(
|
|
1098
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
1099
|
+
),
|
|
1100
|
+
unsuccessfulKeys: Schema.optional(
|
|
1101
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
1102
|
+
),
|
|
1103
|
+
})
|
|
1104
|
+
.pipe(
|
|
1105
|
+
Schema.encodeKeys({
|
|
1106
|
+
successfulKeyCount: "successful_key_count",
|
|
1107
|
+
unsuccessfulKeys: "unsuccessful_keys",
|
|
1108
|
+
}),
|
|
1109
|
+
)
|
|
1110
|
+
.pipe(
|
|
1111
|
+
T.ResponsePath("result"),
|
|
1112
|
+
) as unknown as Schema.Schema<BulkPutNamespaceKeysResponse>;
|
|
1113
|
+
|
|
1114
|
+
export type BulkPutNamespaceKeysError =
|
|
1115
|
+
| DefaultErrors
|
|
1116
|
+
| InvalidRequestBody
|
|
1117
|
+
| NamespaceNotFound
|
|
1118
|
+
| InvalidObjectIdentifier;
|
|
1119
|
+
|
|
1120
|
+
export const bulkPutNamespaceKeys: API.OperationMethod<
|
|
1121
|
+
BulkPutNamespaceKeysRequest,
|
|
1122
|
+
BulkPutNamespaceKeysResponse,
|
|
1123
|
+
BulkPutNamespaceKeysError,
|
|
1124
|
+
Credentials | HttpClient.HttpClient
|
|
1125
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1126
|
+
input: BulkPutNamespaceKeysRequest,
|
|
1127
|
+
output: BulkPutNamespaceKeysResponse,
|
|
1128
|
+
errors: [InvalidRequestBody, NamespaceNotFound, InvalidObjectIdentifier],
|
|
1129
|
+
}));
|