@distilled.cloud/cloudflare 0.0.0 → 0.2.3
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 +41 -7
- package/lib/auth.d.ts +13 -0
- package/lib/auth.d.ts.map +1 -0
- package/lib/auth.js +12 -0
- package/lib/auth.js.map +1 -0
- package/lib/category.d.ts +2 -0
- package/lib/category.d.ts.map +1 -0
- package/lib/category.js +2 -0
- package/lib/category.js.map +1 -0
- package/lib/client/api.d.ts +14 -0
- package/lib/client/api.d.ts.map +1 -0
- package/lib/client/api.js +245 -0
- package/lib/client/api.js.map +1 -0
- package/lib/client/index.d.ts +8 -0
- package/lib/client/index.d.ts.map +1 -0
- package/lib/client/index.js +8 -0
- package/lib/client/index.js.map +1 -0
- package/lib/credentials.d.ts +14 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +17 -0
- package/lib/credentials.js.map +1 -0
- package/lib/errors.d.ts +37 -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/services/abuse-reports.d.ts +224 -0
- package/lib/services/abuse-reports.d.ts.map +1 -0
- package/lib/services/abuse-reports.js +353 -0
- package/lib/services/abuse-reports.js.map +1 -0
- package/lib/services/accounts.d.ts +682 -0
- package/lib/services/accounts.d.ts.map +1 -0
- package/lib/services/accounts.js +805 -0
- package/lib/services/accounts.js.map +1 -0
- package/lib/services/acm.d.ts +73 -0
- package/lib/services/acm.d.ts.map +1 -0
- package/lib/services/acm.js +76 -0
- package/lib/services/acm.js.map +1 -0
- package/lib/services/addressing.d.ts +1208 -0
- package/lib/services/addressing.d.ts.map +1 -0
- package/lib/services/addressing.js +1776 -0
- package/lib/services/addressing.js.map +1 -0
- package/lib/services/ai-gateway.d.ts +956 -0
- package/lib/services/ai-gateway.d.ts.map +1 -0
- package/lib/services/ai-gateway.js +1706 -0
- package/lib/services/ai-gateway.js.map +1 -0
- package/lib/services/ai.d.ts +243 -0
- package/lib/services/ai.d.ts.map +1 -0
- package/lib/services/ai.js +299 -0
- package/lib/services/ai.js.map +1 -0
- package/lib/services/aisearch.d.ts +915 -0
- package/lib/services/aisearch.d.ts.map +1 -0
- package/lib/services/aisearch.js +2425 -0
- package/lib/services/aisearch.js.map +1 -0
- package/lib/services/alerting.d.ts +718 -0
- package/lib/services/alerting.d.ts.map +1 -0
- package/lib/services/alerting.js +1388 -0
- package/lib/services/alerting.js.map +1 -0
- package/lib/services/api-gateway.d.ts +830 -0
- package/lib/services/api-gateway.d.ts.map +1 -0
- package/lib/services/api-gateway.js +1548 -0
- package/lib/services/api-gateway.js.map +1 -0
- package/lib/services/argo.d.ts +101 -0
- package/lib/services/argo.d.ts.map +1 -0
- package/lib/services/argo.js +105 -0
- package/lib/services/argo.js.map +1 -0
- package/lib/services/audit-logs.d.ts +46 -0
- package/lib/services/audit-logs.d.ts.map +1 -0
- package/lib/services/audit-logs.js +37 -0
- package/lib/services/audit-logs.js.map +1 -0
- package/lib/services/billing.d.ts +62 -0
- package/lib/services/billing.d.ts.map +1 -0
- package/lib/services/billing.js +100 -0
- package/lib/services/billing.js.map +1 -0
- package/lib/services/bot-management.d.ts +124 -0
- package/lib/services/bot-management.d.ts.map +1 -0
- package/lib/services/bot-management.js +262 -0
- package/lib/services/bot-management.js.map +1 -0
- package/lib/services/botnet-feed.d.ts +65 -0
- package/lib/services/botnet-feed.d.ts.map +1 -0
- package/lib/services/botnet-feed.js +84 -0
- package/lib/services/botnet-feed.js.map +1 -0
- package/lib/services/brand-protection.d.ts +188 -0
- package/lib/services/brand-protection.d.ts.map +1 -0
- package/lib/services/brand-protection.js +214 -0
- package/lib/services/brand-protection.js.map +1 -0
- package/lib/services/browser-rendering.d.ts +857 -0
- package/lib/services/browser-rendering.d.ts.map +1 -0
- package/lib/services/browser-rendering.js +1141 -0
- package/lib/services/browser-rendering.js.map +1 -0
- package/lib/services/cache.d.ts +287 -0
- package/lib/services/cache.d.ts.map +1 -0
- package/lib/services/cache.js +330 -0
- package/lib/services/cache.js.map +1 -0
- package/lib/services/calls.d.ts +202 -0
- package/lib/services/calls.d.ts.map +1 -0
- package/lib/services/calls.js +175 -0
- package/lib/services/calls.js.map +1 -0
- package/lib/services/certificate-authorities.d.ts +40 -0
- package/lib/services/certificate-authorities.d.ts.map +1 -0
- package/lib/services/certificate-authorities.js +49 -0
- package/lib/services/certificate-authorities.js.map +1 -0
- package/lib/services/client-certificates.d.ts +254 -0
- package/lib/services/client-certificates.d.ts.map +1 -0
- package/lib/services/client-certificates.js +350 -0
- package/lib/services/client-certificates.js.map +1 -0
- package/lib/services/cloud-connector.d.ts +59 -0
- package/lib/services/cloud-connector.d.ts.map +1 -0
- package/lib/services/cloud-connector.js +84 -0
- package/lib/services/cloud-connector.js.map +1 -0
- package/lib/services/cloudforce-one.d.ts +1318 -0
- package/lib/services/cloudforce-one.d.ts.map +1 -0
- package/lib/services/cloudforce-one.js +1684 -0
- package/lib/services/cloudforce-one.js.map +1 -0
- package/lib/services/connectivity.d.ts +248 -0
- package/lib/services/connectivity.d.ts.map +1 -0
- package/lib/services/connectivity.js +377 -0
- package/lib/services/connectivity.js.map +1 -0
- package/lib/services/content-scanning.d.ts +131 -0
- package/lib/services/content-scanning.d.ts.map +1 -0
- package/lib/services/content-scanning.js +156 -0
- package/lib/services/content-scanning.js.map +1 -0
- package/lib/services/custom-certificates.d.ts +211 -0
- package/lib/services/custom-certificates.d.ts.map +1 -0
- package/lib/services/custom-certificates.js +309 -0
- package/lib/services/custom-certificates.js.map +1 -0
- package/lib/services/custom-hostnames.d.ts +525 -0
- package/lib/services/custom-hostnames.d.ts.map +1 -0
- package/lib/services/custom-hostnames.js +1164 -0
- package/lib/services/custom-hostnames.js.map +1 -0
- package/lib/services/custom-nameservers.d.ts +67 -0
- package/lib/services/custom-nameservers.d.ts.map +1 -0
- package/lib/services/custom-nameservers.js +80 -0
- package/lib/services/custom-nameservers.js.map +1 -0
- package/lib/services/custom-pages.d.ts +74 -0
- package/lib/services/custom-pages.d.ts.map +1 -0
- package/lib/services/custom-pages.js +125 -0
- package/lib/services/custom-pages.js.map +1 -0
- package/lib/services/d1.d.ts +326 -0
- package/lib/services/d1.d.ts.map +1 -0
- package/lib/services/d1.js +448 -0
- package/lib/services/d1.js.map +1 -0
- package/lib/services/dcv-delegation.d.ts +24 -0
- package/lib/services/dcv-delegation.d.ts.map +1 -0
- package/lib/services/dcv-delegation.js +24 -0
- package/lib/services/dcv-delegation.js.map +1 -0
- package/lib/services/diagnostics.d.ts +175 -0
- package/lib/services/diagnostics.d.ts.map +1 -0
- package/lib/services/diagnostics.js +273 -0
- package/lib/services/diagnostics.js.map +1 -0
- package/lib/services/dns-firewall.d.ts +288 -0
- package/lib/services/dns-firewall.d.ts.map +1 -0
- package/lib/services/dns-firewall.js +373 -0
- package/lib/services/dns-firewall.js.map +1 -0
- package/lib/services/dns.d.ts +2946 -0
- package/lib/services/dns.d.ts.map +1 -0
- package/lib/services/dns.js +4511 -0
- package/lib/services/dns.js.map +1 -0
- package/lib/services/durable-objects.d.ts +61 -0
- package/lib/services/durable-objects.d.ts.map +1 -0
- package/lib/services/durable-objects.js +66 -0
- package/lib/services/durable-objects.js.map +1 -0
- package/lib/services/email-routing.d.ts +542 -0
- package/lib/services/email-routing.d.ts.map +1 -0
- package/lib/services/email-routing.js +662 -0
- package/lib/services/email-routing.js.map +1 -0
- package/lib/services/email-security.d.ts +1131 -0
- package/lib/services/email-security.d.ts.map +1 -0
- package/lib/services/email-security.js +2065 -0
- package/lib/services/email-security.js.map +1 -0
- package/lib/services/filters.d.ts +157 -0
- package/lib/services/filters.d.ts.map +1 -0
- package/lib/services/filters.js +135 -0
- package/lib/services/filters.js.map +1 -0
- package/lib/services/firewall.d.ts +1080 -0
- package/lib/services/firewall.d.ts.map +1 -0
- package/lib/services/firewall.js +1881 -0
- package/lib/services/firewall.js.map +1 -0
- package/lib/services/healthchecks.d.ts +464 -0
- package/lib/services/healthchecks.d.ts.map +1 -0
- package/lib/services/healthchecks.js +838 -0
- package/lib/services/healthchecks.js.map +1 -0
- package/lib/services/hostnames.d.ts +74 -0
- package/lib/services/hostnames.d.ts.map +1 -0
- package/lib/services/hostnames.js +100 -0
- package/lib/services/hostnames.js.map +1 -0
- package/lib/services/hyperdrive.d.ts +203 -0
- package/lib/services/hyperdrive.d.ts.map +1 -0
- package/lib/services/hyperdrive.js +299 -0
- package/lib/services/hyperdrive.js.map +1 -0
- package/lib/services/iam.d.ts +554 -0
- package/lib/services/iam.d.ts.map +1 -0
- package/lib/services/iam.js +743 -0
- package/lib/services/iam.js.map +1 -0
- package/lib/services/images.d.ts +403 -0
- package/lib/services/images.d.ts.map +1 -0
- package/lib/services/images.js +417 -0
- package/lib/services/images.js.map +1 -0
- package/lib/services/intel.d.ts +768 -0
- package/lib/services/intel.d.ts.map +1 -0
- package/lib/services/intel.js +1179 -0
- package/lib/services/intel.js.map +1 -0
- package/lib/services/ips.d.ts +28 -0
- package/lib/services/ips.d.ts.map +1 -0
- package/lib/services/ips.js +39 -0
- package/lib/services/ips.js.map +1 -0
- package/lib/services/keyless-certificates.d.ts +177 -0
- package/lib/services/keyless-certificates.d.ts.map +1 -0
- package/lib/services/keyless-certificates.js +216 -0
- package/lib/services/keyless-certificates.js.map +1 -0
- package/lib/services/kv.d.ts +339 -0
- package/lib/services/kv.d.ts.map +1 -0
- package/lib/services/kv.js +402 -0
- package/lib/services/kv.js.map +1 -0
- package/lib/services/leaked-credential-checks.d.ts +119 -0
- package/lib/services/leaked-credential-checks.d.ts.map +1 -0
- package/lib/services/leaked-credential-checks.js +130 -0
- package/lib/services/leaked-credential-checks.js.map +1 -0
- package/lib/services/load-balancers.d.ts +1767 -0
- package/lib/services/load-balancers.d.ts.map +1 -0
- package/lib/services/load-balancers.js +3068 -0
- package/lib/services/load-balancers.js.map +1 -0
- package/lib/services/logpush.d.ts +401 -0
- package/lib/services/logpush.d.ts.map +1 -0
- package/lib/services/logpush.js +724 -0
- package/lib/services/logpush.js.map +1 -0
- package/lib/services/logs.d.ts +125 -0
- package/lib/services/logs.d.ts.map +1 -0
- package/lib/services/logs.js +145 -0
- package/lib/services/logs.js.map +1 -0
- package/lib/services/magic-cloud-networking.d.ts +1599 -0
- package/lib/services/magic-cloud-networking.d.ts.map +1 -0
- package/lib/services/magic-cloud-networking.js +5205 -0
- package/lib/services/magic-cloud-networking.js.map +1 -0
- package/lib/services/magic-network-monitoring.d.ts +379 -0
- package/lib/services/magic-network-monitoring.d.ts.map +1 -0
- package/lib/services/magic-network-monitoring.js +535 -0
- package/lib/services/magic-network-monitoring.js.map +1 -0
- package/lib/services/magic-transit.d.ts +3650 -0
- package/lib/services/magic-transit.d.ts.map +1 -0
- package/lib/services/magic-transit.js +6120 -0
- package/lib/services/magic-transit.js.map +1 -0
- package/lib/services/managed-transforms.d.ts +79 -0
- package/lib/services/managed-transforms.d.ts.map +1 -0
- package/lib/services/managed-transforms.js +107 -0
- package/lib/services/managed-transforms.js.map +1 -0
- package/lib/services/memberships.d.ts +172 -0
- package/lib/services/memberships.d.ts.map +1 -0
- package/lib/services/memberships.js +282 -0
- package/lib/services/memberships.js.map +1 -0
- package/lib/services/mtls-certificates.d.ts +140 -0
- package/lib/services/mtls-certificates.d.ts.map +1 -0
- package/lib/services/mtls-certificates.js +173 -0
- package/lib/services/mtls-certificates.js.map +1 -0
- package/lib/services/network-interconnects.d.ts +410 -0
- package/lib/services/network-interconnects.d.ts.map +1 -0
- package/lib/services/network-interconnects.js +583 -0
- package/lib/services/network-interconnects.js.map +1 -0
- package/lib/services/organizations.d.ts +201 -0
- package/lib/services/organizations.d.ts.map +1 -0
- package/lib/services/organizations.js +355 -0
- package/lib/services/organizations.js.map +1 -0
- package/lib/services/origin-ca-certificates.d.ts +99 -0
- package/lib/services/origin-ca-certificates.d.ts.map +1 -0
- package/lib/services/origin-ca-certificates.js +156 -0
- package/lib/services/origin-ca-certificates.js.map +1 -0
- package/lib/services/origin-post-quantum-encryption.d.ts +50 -0
- package/lib/services/origin-post-quantum-encryption.d.ts.map +1 -0
- package/lib/services/origin-post-quantum-encryption.js +60 -0
- package/lib/services/origin-post-quantum-encryption.js.map +1 -0
- package/lib/services/origin-tls-client-auth.d.ts +273 -0
- package/lib/services/origin-tls-client-auth.d.ts.map +1 -0
- package/lib/services/origin-tls-client-auth.js +401 -0
- package/lib/services/origin-tls-client-auth.js.map +1 -0
- package/lib/services/page-rules.d.ts +773 -0
- package/lib/services/page-rules.d.ts.map +1 -0
- package/lib/services/page-rules.js +1365 -0
- package/lib/services/page-rules.js.map +1 -0
- package/lib/services/page-shield.d.ts +426 -0
- package/lib/services/page-shield.d.ts.map +1 -0
- package/lib/services/page-shield.js +484 -0
- package/lib/services/page-shield.js.map +1 -0
- package/lib/services/pages.d.ts +1654 -0
- package/lib/services/pages.d.ts.map +1 -0
- package/lib/services/pages.js +2954 -0
- package/lib/services/pages.js.map +1 -0
- package/lib/services/pipelines.d.ts +1461 -0
- package/lib/services/pipelines.d.ts.map +1 -0
- package/lib/services/pipelines.js +2912 -0
- package/lib/services/pipelines.js.map +1 -0
- package/lib/services/queues.d.ts +807 -0
- package/lib/services/queues.d.ts.map +1 -0
- package/lib/services/queues.js +1194 -0
- package/lib/services/queues.js.map +1 -0
- package/lib/services/r2-data-catalog.d.ts +341 -0
- package/lib/services/r2-data-catalog.d.ts.map +1 -0
- package/lib/services/r2-data-catalog.js +499 -0
- package/lib/services/r2-data-catalog.js.map +1 -0
- package/lib/services/r2.d.ts +1041 -0
- package/lib/services/r2.d.ts.map +1 -0
- package/lib/services/r2.js +1384 -0
- package/lib/services/r2.js.map +1 -0
- package/lib/services/radar.d.ts +9276 -0
- package/lib/services/radar.d.ts.map +1 -0
- package/lib/services/radar.js +20491 -0
- package/lib/services/radar.js.map +1 -0
- package/lib/services/rate-limits.d.ts +315 -0
- package/lib/services/rate-limits.d.ts.map +1 -0
- package/lib/services/rate-limits.js +521 -0
- package/lib/services/rate-limits.js.map +1 -0
- package/lib/services/realtime-kit.d.ts +2728 -0
- package/lib/services/realtime-kit.d.ts.map +1 -0
- package/lib/services/realtime-kit.js +5401 -0
- package/lib/services/realtime-kit.js.map +1 -0
- package/lib/services/registrar.d.ts +81 -0
- package/lib/services/registrar.d.ts.map +1 -0
- package/lib/services/registrar.js +154 -0
- package/lib/services/registrar.js.map +1 -0
- package/lib/services/request-tracers.d.ts +61 -0
- package/lib/services/request-tracers.d.ts.map +1 -0
- package/lib/services/request-tracers.js +82 -0
- package/lib/services/request-tracers.js.map +1 -0
- package/lib/services/resource-sharing.d.ts +540 -0
- package/lib/services/resource-sharing.d.ts.map +1 -0
- package/lib/services/resource-sharing.js +846 -0
- package/lib/services/resource-sharing.js.map +1 -0
- package/lib/services/rules.d.ts +297 -0
- package/lib/services/rules.d.ts.map +1 -0
- package/lib/services/rules.js +396 -0
- package/lib/services/rules.js.map +1 -0
- package/lib/services/rulesets.d.ts +3300 -0
- package/lib/services/rulesets.d.ts.map +1 -0
- package/lib/services/rulesets.js +7852 -0
- package/lib/services/rulesets.js.map +1 -0
- package/lib/services/rum.d.ts +289 -0
- package/lib/services/rum.d.ts.map +1 -0
- package/lib/services/rum.js +409 -0
- package/lib/services/rum.js.map +1 -0
- package/lib/services/schema-validation.d.ts +240 -0
- package/lib/services/schema-validation.d.ts.map +1 -0
- package/lib/services/schema-validation.js +306 -0
- package/lib/services/schema-validation.js.map +1 -0
- package/lib/services/secrets-store.d.ts +321 -0
- package/lib/services/secrets-store.d.ts.map +1 -0
- package/lib/services/secrets-store.js +385 -0
- package/lib/services/secrets-store.js.map +1 -0
- package/lib/services/security-center.d.ts +102 -0
- package/lib/services/security-center.d.ts.map +1 -0
- package/lib/services/security-center.js +170 -0
- package/lib/services/security-center.js.map +1 -0
- package/lib/services/security-txt.d.ts +105 -0
- package/lib/services/security-txt.d.ts.map +1 -0
- package/lib/services/security-txt.js +136 -0
- package/lib/services/security-txt.js.map +1 -0
- package/lib/services/snippets.d.ts +138 -0
- package/lib/services/snippets.d.ts.map +1 -0
- package/lib/services/snippets.js +178 -0
- package/lib/services/snippets.js.map +1 -0
- package/lib/services/spectrum.d.ts +316 -0
- package/lib/services/spectrum.d.ts.map +1 -0
- package/lib/services/spectrum.js +510 -0
- package/lib/services/spectrum.js.map +1 -0
- package/lib/services/speed.d.ts +227 -0
- package/lib/services/speed.d.ts.map +1 -0
- package/lib/services/speed.js +444 -0
- package/lib/services/speed.js.map +1 -0
- package/lib/services/ssl.d.ts +370 -0
- package/lib/services/ssl.d.ts.map +1 -0
- package/lib/services/ssl.js +732 -0
- package/lib/services/ssl.js.map +1 -0
- package/lib/services/stream.d.ts +1014 -0
- package/lib/services/stream.d.ts.map +1 -0
- package/lib/services/stream.js +1049 -0
- package/lib/services/stream.js.map +1 -0
- package/lib/services/token-validation.d.ts +547 -0
- package/lib/services/token-validation.d.ts.map +1 -0
- package/lib/services/token-validation.js +768 -0
- package/lib/services/token-validation.js.map +1 -0
- package/lib/services/turnstile.d.ts +248 -0
- package/lib/services/turnstile.d.ts.map +1 -0
- package/lib/services/turnstile.js +308 -0
- package/lib/services/turnstile.js.map +1 -0
- package/lib/services/url-normalization.d.ts +53 -0
- package/lib/services/url-normalization.d.ts.map +1 -0
- package/lib/services/url-normalization.js +52 -0
- package/lib/services/url-normalization.js.map +1 -0
- package/lib/services/url-scanner.d.ts +612 -0
- package/lib/services/url-scanner.d.ts.map +1 -0
- package/lib/services/url-scanner.js +915 -0
- package/lib/services/url-scanner.js.map +1 -0
- package/lib/services/user.d.ts +441 -0
- package/lib/services/user.d.ts.map +1 -0
- package/lib/services/user.js +567 -0
- package/lib/services/user.js.map +1 -0
- package/lib/services/vectorize.d.ts +282 -0
- package/lib/services/vectorize.d.ts.map +1 -0
- package/lib/services/vectorize.js +340 -0
- package/lib/services/vectorize.js.map +1 -0
- package/lib/services/waiting-rooms.d.ts +1009 -0
- package/lib/services/waiting-rooms.d.ts.map +1 -0
- package/lib/services/waiting-rooms.js +1757 -0
- package/lib/services/waiting-rooms.js.map +1 -0
- package/lib/services/web3.d.ts +274 -0
- package/lib/services/web3.d.ts.map +1 -0
- package/lib/services/web3.js +362 -0
- package/lib/services/web3.js.map +1 -0
- package/lib/services/workers-for-platforms.d.ts +1224 -0
- package/lib/services/workers-for-platforms.d.ts.map +1 -0
- package/lib/services/workers-for-platforms.js +2078 -0
- package/lib/services/workers-for-platforms.js.map +1 -0
- package/lib/services/workers.d.ts +3498 -0
- package/lib/services/workers.d.ts.map +1 -0
- package/lib/services/workers.js +5967 -0
- package/lib/services/workers.js.map +1 -0
- package/lib/services/workflows.d.ts +359 -0
- package/lib/services/workflows.d.ts.map +1 -0
- package/lib/services/workflows.js +516 -0
- package/lib/services/workflows.js.map +1 -0
- package/lib/services/zaraz.d.ts +300 -0
- package/lib/services/zaraz.d.ts.map +1 -0
- package/lib/services/zaraz.js +298 -0
- package/lib/services/zaraz.js.map +1 -0
- package/lib/services/zero-trust.d.ts +15449 -0
- package/lib/services/zero-trust.d.ts.map +1 -0
- package/lib/services/zero-trust.js +29194 -0
- package/lib/services/zero-trust.js.map +1 -0
- package/lib/services/zones.d.ts +1278 -0
- package/lib/services/zones.d.ts.map +1 -0
- package/lib/services/zones.js +2416 -0
- package/lib/services/zones.js.map +1 -0
- package/lib/traits.d.ts +28 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +26 -0
- package/lib/traits.js.map +1 -0
- package/package.json +68 -5
- package/src/auth.ts +14 -0
- package/src/category.ts +1 -0
- package/src/client/api.ts +329 -0
- package/src/client/index.ts +7 -0
- package/src/credentials.ts +30 -0
- package/src/errors.ts +57 -0
- package/src/index.ts +9 -0
- package/src/retry.ts +35 -0
- package/src/schemas.ts +51 -0
- package/src/services/abuse-reports.ts +747 -0
- package/src/services/accounts.ts +1947 -0
- package/src/services/acm.ts +170 -0
- package/src/services/addressing.ts +3947 -0
- package/src/services/ai-gateway.ts +3335 -0
- package/src/services/ai.ts +727 -0
- package/src/services/aisearch.ts +4750 -0
- package/src/services/alerting.ts +2947 -0
- package/src/services/api-gateway.ts +3391 -0
- package/src/services/argo.ts +254 -0
- package/src/services/audit-logs.ts +90 -0
- package/src/services/billing.ts +172 -0
- package/src/services/bot-management.ts +541 -0
- package/src/services/botnet-feed.ts +193 -0
- package/src/services/brand-protection.ts +553 -0
- package/src/services/browser-rendering.ts +2707 -0
- package/src/services/cache.ts +827 -0
- package/src/services/calls.ts +483 -0
- package/src/services/certificate-authorities.ts +110 -0
- package/src/services/client-certificates.ts +718 -0
- package/src/services/cloud-connector.ts +181 -0
- package/src/services/cloudforce-one.ts +3876 -0
- package/src/services/connectivity.ts +629 -0
- package/src/services/content-scanning.ts +385 -0
- package/src/services/custom-certificates.ts +611 -0
- package/src/services/custom-hostnames.ts +2453 -0
- package/src/services/custom-nameservers.ts +182 -0
- package/src/services/custom-pages.ts +264 -0
- package/src/services/d1.ts +1034 -0
- package/src/services/dcv-delegation.ts +52 -0
- package/src/services/diagnostics.ts +603 -0
- package/src/services/dns-firewall.ts +823 -0
- package/src/services/dns.ts +8897 -0
- package/src/services/durable-objects.ts +148 -0
- package/src/services/email-routing.ts +1602 -0
- package/src/services/email-security.ts +4283 -0
- package/src/services/filters.ts +370 -0
- package/src/services/firewall.ts +3896 -0
- package/src/services/healthchecks.ts +1750 -0
- package/src/services/hostnames.ts +218 -0
- package/src/services/hyperdrive.ts +592 -0
- package/src/services/iam.ts +1668 -0
- package/src/services/images.ts +1086 -0
- package/src/services/intel.ts +2768 -0
- package/src/services/ips.ts +88 -0
- package/src/services/keyless-certificates.ts +462 -0
- package/src/services/kv.ts +1011 -0
- package/src/services/leaked-credential-checks.ts +325 -0
- package/src/services/load-balancers.ts +6438 -0
- package/src/services/logpush.ts +1667 -0
- package/src/services/logs.ts +375 -0
- package/src/services/magic-cloud-networking.ts +10020 -0
- package/src/services/magic-network-monitoring.ts +1156 -0
- package/src/services/magic-transit.ts +13050 -0
- package/src/services/managed-transforms.ts +237 -0
- package/src/services/memberships.ts +615 -0
- package/src/services/mtls-certificates.ts +374 -0
- package/src/services/network-interconnects.ts +1253 -0
- package/src/services/organizations.ts +674 -0
- package/src/services/origin-ca-certificates.ts +303 -0
- package/src/services/origin-post-quantum-encryption.ts +128 -0
- package/src/services/origin-tls-client-auth.ts +878 -0
- package/src/services/page-rules.ts +2612 -0
- package/src/services/page-shield.ts +1195 -0
- package/src/services/pages.ts +5709 -0
- package/src/services/pipelines.ts +6000 -0
- package/src/services/queues.ts +2629 -0
- package/src/services/r2-data-catalog.ts +1119 -0
- package/src/services/r2.ts +3348 -0
- package/src/services/radar.ts +42152 -0
- package/src/services/rate-limits.ts +1150 -0
- package/src/services/realtime-kit.ts +11079 -0
- package/src/services/registrar.ts +295 -0
- package/src/services/request-tracers.ts +158 -0
- package/src/services/resource-sharing.ts +1832 -0
- package/src/services/rules.ts +837 -0
- package/src/services/rulesets.ts +15144 -0
- package/src/services/rum.ts +901 -0
- package/src/services/schema-validation.ts +733 -0
- package/src/services/secrets-store.ts +860 -0
- package/src/services/security-center.ts +397 -0
- package/src/services/security-txt.ts +315 -0
- package/src/services/snippets.ts +420 -0
- package/src/services/spectrum.ts +1103 -0
- package/src/services/speed.ts +1056 -0
- package/src/services/ssl.ts +1587 -0
- package/src/services/stream.ts +2756 -0
- package/src/services/token-validation.ts +1585 -0
- package/src/services/turnstile.ts +643 -0
- package/src/services/url-normalization.ts +129 -0
- package/src/services/url-scanner.ts +1851 -0
- package/src/services/user.ts +1384 -0
- package/src/services/vectorize.ts +816 -0
- package/src/services/waiting-rooms.ts +3807 -0
- package/src/services/web3.ts +834 -0
- package/src/services/workers-for-platforms.ts +3859 -0
- package/src/services/workers.ts +11637 -0
- package/src/services/workflows.ts +1124 -0
- package/src/services/zaraz.ts +797 -0
- package/src/services/zero-trust.ts +58929 -0
- package/src/services/zones.ts +4875 -0
- package/src/traits.ts +47 -0
- package/bun.lock +0 -26
- package/index.ts +0 -1
- package/tsconfig.json +0 -29
|
@@ -0,0 +1,1119 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cloudflare R2-DATA-CATALOG API
|
|
3
|
+
*
|
|
4
|
+
* Generated from Cloudflare TypeScript SDK.
|
|
5
|
+
* DO NOT EDIT - regenerate with: bun scripts/generate.ts --service r2-data-catalog
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import * as Schema from "effect/Schema";
|
|
9
|
+
import type * as HttpClient from "effect/unstable/http/HttpClient";
|
|
10
|
+
import * as API from "../client/api.ts";
|
|
11
|
+
import * as T from "../traits";
|
|
12
|
+
import type { Credentials } from "../credentials";
|
|
13
|
+
import { type DefaultErrors } from "../errors";
|
|
14
|
+
|
|
15
|
+
// =============================================================================
|
|
16
|
+
// Errors
|
|
17
|
+
// =============================================================================
|
|
18
|
+
|
|
19
|
+
export class InvalidCredential extends Schema.TaggedErrorClass<InvalidCredential>()(
|
|
20
|
+
"InvalidCredential",
|
|
21
|
+
{ code: Schema.Number, message: Schema.String },
|
|
22
|
+
) {}
|
|
23
|
+
T.applyErrorMatchers(InvalidCredential, [{ code: 30004 }]);
|
|
24
|
+
|
|
25
|
+
export class InvalidRoute extends Schema.TaggedErrorClass<InvalidRoute>()(
|
|
26
|
+
"InvalidRoute",
|
|
27
|
+
{ code: Schema.Number, message: Schema.String },
|
|
28
|
+
) {}
|
|
29
|
+
T.applyErrorMatchers(InvalidRoute, [{ code: 7003 }]);
|
|
30
|
+
|
|
31
|
+
export class NoSuchBucket extends Schema.TaggedErrorClass<NoSuchBucket>()(
|
|
32
|
+
"NoSuchBucket",
|
|
33
|
+
{ code: Schema.Number, message: Schema.String },
|
|
34
|
+
) {}
|
|
35
|
+
T.applyErrorMatchers(NoSuchBucket, [{ code: 10006 }]);
|
|
36
|
+
|
|
37
|
+
export class TableNotFound extends Schema.TaggedErrorClass<TableNotFound>()(
|
|
38
|
+
"TableNotFound",
|
|
39
|
+
{ code: Schema.Number, message: Schema.String },
|
|
40
|
+
) {}
|
|
41
|
+
T.applyErrorMatchers(TableNotFound, [{ code: 10001 }, { code: 40403 }]);
|
|
42
|
+
|
|
43
|
+
export class WarehouseInactive extends Schema.TaggedErrorClass<WarehouseInactive>()(
|
|
44
|
+
"WarehouseInactive",
|
|
45
|
+
{ code: Schema.Number, message: Schema.String },
|
|
46
|
+
) {}
|
|
47
|
+
T.applyErrorMatchers(WarehouseInactive, [{ code: 40402 }]);
|
|
48
|
+
|
|
49
|
+
export class WarehouseNotFound extends Schema.TaggedErrorClass<WarehouseNotFound>()(
|
|
50
|
+
"WarehouseNotFound",
|
|
51
|
+
{ code: Schema.Number, message: Schema.String },
|
|
52
|
+
) {}
|
|
53
|
+
T.applyErrorMatchers(WarehouseNotFound, [{ code: 40401 }]);
|
|
54
|
+
|
|
55
|
+
// =============================================================================
|
|
56
|
+
// Credential
|
|
57
|
+
// =============================================================================
|
|
58
|
+
|
|
59
|
+
export interface CreateCredentialRequest {
|
|
60
|
+
bucketName: string;
|
|
61
|
+
/** Path param: Use this to identify the account. */
|
|
62
|
+
accountId: string;
|
|
63
|
+
/** Body param: Provides the Cloudflare API token for accessing R2. */
|
|
64
|
+
token: string;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export const CreateCredentialRequest =
|
|
68
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
69
|
+
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
70
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
71
|
+
token: Schema.String,
|
|
72
|
+
}).pipe(
|
|
73
|
+
T.Http({
|
|
74
|
+
method: "POST",
|
|
75
|
+
path: "/accounts/{account_id}/r2-catalog/{bucketName}/credential",
|
|
76
|
+
}),
|
|
77
|
+
) as unknown as Schema.Schema<CreateCredentialRequest>;
|
|
78
|
+
|
|
79
|
+
export type CreateCredentialResponse = unknown;
|
|
80
|
+
|
|
81
|
+
export const CreateCredentialResponse =
|
|
82
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<CreateCredentialResponse>;
|
|
83
|
+
|
|
84
|
+
export type CreateCredentialError =
|
|
85
|
+
| DefaultErrors
|
|
86
|
+
| InvalidRoute
|
|
87
|
+
| InvalidCredential;
|
|
88
|
+
|
|
89
|
+
export const createCredential: API.OperationMethod<
|
|
90
|
+
CreateCredentialRequest,
|
|
91
|
+
CreateCredentialResponse,
|
|
92
|
+
CreateCredentialError,
|
|
93
|
+
Credentials | HttpClient.HttpClient
|
|
94
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
95
|
+
input: CreateCredentialRequest,
|
|
96
|
+
output: CreateCredentialResponse,
|
|
97
|
+
errors: [InvalidRoute, InvalidCredential],
|
|
98
|
+
}));
|
|
99
|
+
|
|
100
|
+
// =============================================================================
|
|
101
|
+
// MaintenanceConfig
|
|
102
|
+
// =============================================================================
|
|
103
|
+
|
|
104
|
+
export interface GetMaintenanceConfigRequest {
|
|
105
|
+
bucketName: string;
|
|
106
|
+
/** Use this to identify the account. */
|
|
107
|
+
accountId: string;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export const GetMaintenanceConfigRequest =
|
|
111
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
112
|
+
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
113
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
114
|
+
}).pipe(
|
|
115
|
+
T.Http({
|
|
116
|
+
method: "GET",
|
|
117
|
+
path: "/accounts/{account_id}/r2-catalog/{bucketName}/maintenance-configs",
|
|
118
|
+
}),
|
|
119
|
+
) as unknown as Schema.Schema<GetMaintenanceConfigRequest>;
|
|
120
|
+
|
|
121
|
+
export interface GetMaintenanceConfigResponse {
|
|
122
|
+
/** Shows the credential configuration status. */
|
|
123
|
+
credentialStatus: "present" | "absent";
|
|
124
|
+
/** Configures maintenance for the catalog. */
|
|
125
|
+
maintenanceConfig: {
|
|
126
|
+
compaction?: {
|
|
127
|
+
state: "enabled" | "disabled";
|
|
128
|
+
targetSizeMb: "64" | "128" | "256" | "512";
|
|
129
|
+
} | null;
|
|
130
|
+
snapshotExpiration?: {
|
|
131
|
+
maxSnapshotAge: string;
|
|
132
|
+
minSnapshotsToKeep: number;
|
|
133
|
+
state: "enabled" | "disabled";
|
|
134
|
+
} | null;
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export const GetMaintenanceConfigResponse =
|
|
139
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
140
|
+
credentialStatus: Schema.Literals(["present", "absent"]),
|
|
141
|
+
maintenanceConfig: Schema.Struct({
|
|
142
|
+
compaction: Schema.optional(
|
|
143
|
+
Schema.Union([
|
|
144
|
+
Schema.Struct({
|
|
145
|
+
state: Schema.Literals(["enabled", "disabled"]),
|
|
146
|
+
targetSizeMb: Schema.Literals(["64", "128", "256", "512"]),
|
|
147
|
+
}).pipe(
|
|
148
|
+
Schema.encodeKeys({
|
|
149
|
+
state: "state",
|
|
150
|
+
targetSizeMb: "target_size_mb",
|
|
151
|
+
}),
|
|
152
|
+
),
|
|
153
|
+
Schema.Null,
|
|
154
|
+
]),
|
|
155
|
+
),
|
|
156
|
+
snapshotExpiration: Schema.optional(
|
|
157
|
+
Schema.Union([
|
|
158
|
+
Schema.Struct({
|
|
159
|
+
maxSnapshotAge: Schema.String,
|
|
160
|
+
minSnapshotsToKeep: Schema.Number,
|
|
161
|
+
state: Schema.Literals(["enabled", "disabled"]),
|
|
162
|
+
}).pipe(
|
|
163
|
+
Schema.encodeKeys({
|
|
164
|
+
maxSnapshotAge: "max_snapshot_age",
|
|
165
|
+
minSnapshotsToKeep: "min_snapshots_to_keep",
|
|
166
|
+
state: "state",
|
|
167
|
+
}),
|
|
168
|
+
),
|
|
169
|
+
Schema.Null,
|
|
170
|
+
]),
|
|
171
|
+
),
|
|
172
|
+
}).pipe(
|
|
173
|
+
Schema.encodeKeys({
|
|
174
|
+
compaction: "compaction",
|
|
175
|
+
snapshotExpiration: "snapshot_expiration",
|
|
176
|
+
}),
|
|
177
|
+
),
|
|
178
|
+
}).pipe(
|
|
179
|
+
Schema.encodeKeys({
|
|
180
|
+
credentialStatus: "credential_status",
|
|
181
|
+
maintenanceConfig: "maintenance_config",
|
|
182
|
+
}),
|
|
183
|
+
) as unknown as Schema.Schema<GetMaintenanceConfigResponse>;
|
|
184
|
+
|
|
185
|
+
export type GetMaintenanceConfigError =
|
|
186
|
+
| DefaultErrors
|
|
187
|
+
| InvalidRoute
|
|
188
|
+
| WarehouseInactive
|
|
189
|
+
| WarehouseNotFound;
|
|
190
|
+
|
|
191
|
+
export const getMaintenanceConfig: API.OperationMethod<
|
|
192
|
+
GetMaintenanceConfigRequest,
|
|
193
|
+
GetMaintenanceConfigResponse,
|
|
194
|
+
GetMaintenanceConfigError,
|
|
195
|
+
Credentials | HttpClient.HttpClient
|
|
196
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
197
|
+
input: GetMaintenanceConfigRequest,
|
|
198
|
+
output: GetMaintenanceConfigResponse,
|
|
199
|
+
errors: [InvalidRoute, WarehouseInactive, WarehouseNotFound],
|
|
200
|
+
}));
|
|
201
|
+
|
|
202
|
+
export interface UpdateMaintenanceConfigRequest {
|
|
203
|
+
bucketName: string;
|
|
204
|
+
/** Path param: Use this to identify the account. */
|
|
205
|
+
accountId: string;
|
|
206
|
+
/** Body param: Updates compaction configuration (all fields optional). */
|
|
207
|
+
compaction?: {
|
|
208
|
+
state?: "enabled" | "disabled";
|
|
209
|
+
targetSizeMb?: "64" | "128" | "256" | "512";
|
|
210
|
+
};
|
|
211
|
+
/** Body param: Updates snapshot expiration configuration (all fields optional). */
|
|
212
|
+
snapshotExpiration?: {
|
|
213
|
+
maxSnapshotAge?: string;
|
|
214
|
+
minSnapshotsToKeep?: number;
|
|
215
|
+
state?: "enabled" | "disabled";
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
export const UpdateMaintenanceConfigRequest =
|
|
220
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
221
|
+
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
222
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
223
|
+
compaction: Schema.optional(
|
|
224
|
+
Schema.Struct({
|
|
225
|
+
state: Schema.optional(Schema.Literals(["enabled", "disabled"])),
|
|
226
|
+
targetSizeMb: Schema.optional(
|
|
227
|
+
Schema.Literals(["64", "128", "256", "512"]),
|
|
228
|
+
),
|
|
229
|
+
}).pipe(
|
|
230
|
+
Schema.encodeKeys({ state: "state", targetSizeMb: "target_size_mb" }),
|
|
231
|
+
),
|
|
232
|
+
),
|
|
233
|
+
snapshotExpiration: Schema.optional(
|
|
234
|
+
Schema.Struct({
|
|
235
|
+
maxSnapshotAge: Schema.optional(Schema.String),
|
|
236
|
+
minSnapshotsToKeep: Schema.optional(Schema.Number),
|
|
237
|
+
state: Schema.optional(Schema.Literals(["enabled", "disabled"])),
|
|
238
|
+
}).pipe(
|
|
239
|
+
Schema.encodeKeys({
|
|
240
|
+
maxSnapshotAge: "max_snapshot_age",
|
|
241
|
+
minSnapshotsToKeep: "min_snapshots_to_keep",
|
|
242
|
+
state: "state",
|
|
243
|
+
}),
|
|
244
|
+
),
|
|
245
|
+
),
|
|
246
|
+
}).pipe(
|
|
247
|
+
Schema.encodeKeys({
|
|
248
|
+
compaction: "compaction",
|
|
249
|
+
snapshotExpiration: "snapshot_expiration",
|
|
250
|
+
}),
|
|
251
|
+
T.Http({
|
|
252
|
+
method: "POST",
|
|
253
|
+
path: "/accounts/{account_id}/r2-catalog/{bucketName}/maintenance-configs",
|
|
254
|
+
}),
|
|
255
|
+
) as unknown as Schema.Schema<UpdateMaintenanceConfigRequest>;
|
|
256
|
+
|
|
257
|
+
export interface UpdateMaintenanceConfigResponse {
|
|
258
|
+
/** Configures compaction for catalog maintenance. */
|
|
259
|
+
compaction?: {
|
|
260
|
+
state: "enabled" | "disabled";
|
|
261
|
+
targetSizeMb: "64" | "128" | "256" | "512";
|
|
262
|
+
} | null;
|
|
263
|
+
/** Configures snapshot expiration settings. */
|
|
264
|
+
snapshotExpiration?: {
|
|
265
|
+
maxSnapshotAge: string;
|
|
266
|
+
minSnapshotsToKeep: number;
|
|
267
|
+
state: "enabled" | "disabled";
|
|
268
|
+
} | null;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
export const UpdateMaintenanceConfigResponse =
|
|
272
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
273
|
+
compaction: Schema.optional(
|
|
274
|
+
Schema.Union([
|
|
275
|
+
Schema.Struct({
|
|
276
|
+
state: Schema.Literals(["enabled", "disabled"]),
|
|
277
|
+
targetSizeMb: Schema.Literals(["64", "128", "256", "512"]),
|
|
278
|
+
}).pipe(
|
|
279
|
+
Schema.encodeKeys({ state: "state", targetSizeMb: "target_size_mb" }),
|
|
280
|
+
),
|
|
281
|
+
Schema.Null,
|
|
282
|
+
]),
|
|
283
|
+
),
|
|
284
|
+
snapshotExpiration: Schema.optional(
|
|
285
|
+
Schema.Union([
|
|
286
|
+
Schema.Struct({
|
|
287
|
+
maxSnapshotAge: Schema.String,
|
|
288
|
+
minSnapshotsToKeep: Schema.Number,
|
|
289
|
+
state: Schema.Literals(["enabled", "disabled"]),
|
|
290
|
+
}).pipe(
|
|
291
|
+
Schema.encodeKeys({
|
|
292
|
+
maxSnapshotAge: "max_snapshot_age",
|
|
293
|
+
minSnapshotsToKeep: "min_snapshots_to_keep",
|
|
294
|
+
state: "state",
|
|
295
|
+
}),
|
|
296
|
+
),
|
|
297
|
+
Schema.Null,
|
|
298
|
+
]),
|
|
299
|
+
),
|
|
300
|
+
}).pipe(
|
|
301
|
+
Schema.encodeKeys({
|
|
302
|
+
compaction: "compaction",
|
|
303
|
+
snapshotExpiration: "snapshot_expiration",
|
|
304
|
+
}),
|
|
305
|
+
) as unknown as Schema.Schema<UpdateMaintenanceConfigResponse>;
|
|
306
|
+
|
|
307
|
+
export type UpdateMaintenanceConfigError =
|
|
308
|
+
| DefaultErrors
|
|
309
|
+
| InvalidRoute
|
|
310
|
+
| WarehouseInactive;
|
|
311
|
+
|
|
312
|
+
export const updateMaintenanceConfig: API.OperationMethod<
|
|
313
|
+
UpdateMaintenanceConfigRequest,
|
|
314
|
+
UpdateMaintenanceConfigResponse,
|
|
315
|
+
UpdateMaintenanceConfigError,
|
|
316
|
+
Credentials | HttpClient.HttpClient
|
|
317
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
318
|
+
input: UpdateMaintenanceConfigRequest,
|
|
319
|
+
output: UpdateMaintenanceConfigResponse,
|
|
320
|
+
errors: [InvalidRoute, WarehouseInactive],
|
|
321
|
+
}));
|
|
322
|
+
|
|
323
|
+
// =============================================================================
|
|
324
|
+
// Namespace
|
|
325
|
+
// =============================================================================
|
|
326
|
+
|
|
327
|
+
export interface ListNamespacesRequest {
|
|
328
|
+
bucketName: string;
|
|
329
|
+
/** Path param: Use this to identify the account. */
|
|
330
|
+
accountId: string;
|
|
331
|
+
/** Query param: Maximum number of namespaces to return per page. Defaults to 100, maximum 1000. */
|
|
332
|
+
pageSize?: number;
|
|
333
|
+
/** Query param: Opaque pagination token from a previous response. Use this to fetch the next page of results. */
|
|
334
|
+
pageToken?: string;
|
|
335
|
+
/** Query param: Parent namespace to filter by. Only returns direct children of this namespace. For nested namespaces, use %1F as separator (e.g., "bronze%1Fanalytics"). Omit this parameter to list top-le */
|
|
336
|
+
parent?: string;
|
|
337
|
+
/** Query param: Whether to include additional metadata (timestamps). When true, response includes created_at and updated_at arrays. */
|
|
338
|
+
returnDetails?: boolean;
|
|
339
|
+
/** Query param: Whether to include namespace UUIDs in the response. Set to true to receive the namespace_uuids array. */
|
|
340
|
+
returnUuids?: boolean;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
export const ListNamespacesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
344
|
+
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
345
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
346
|
+
pageSize: Schema.optional(Schema.Number).pipe(T.HttpQuery("page_size")),
|
|
347
|
+
pageToken: Schema.optional(Schema.String).pipe(T.HttpQuery("page_token")),
|
|
348
|
+
parent: Schema.optional(Schema.String).pipe(T.HttpQuery("parent")),
|
|
349
|
+
returnDetails: Schema.optional(Schema.Boolean).pipe(
|
|
350
|
+
T.HttpQuery("return_details"),
|
|
351
|
+
),
|
|
352
|
+
returnUuids: Schema.optional(Schema.Boolean).pipe(
|
|
353
|
+
T.HttpQuery("return_uuids"),
|
|
354
|
+
),
|
|
355
|
+
}).pipe(
|
|
356
|
+
T.Http({
|
|
357
|
+
method: "GET",
|
|
358
|
+
path: "/accounts/{account_id}/r2-catalog/{bucketName}/namespaces",
|
|
359
|
+
}),
|
|
360
|
+
) as unknown as Schema.Schema<ListNamespacesRequest>;
|
|
361
|
+
|
|
362
|
+
export interface ListNamespacesResponse {
|
|
363
|
+
/** Lists namespaces in the catalog. */
|
|
364
|
+
namespaces: string[][];
|
|
365
|
+
/** Contains detailed metadata for each namespace when return_details is true. Each object includes the namespace, UUID, and timestamps. */
|
|
366
|
+
details?:
|
|
367
|
+
| {
|
|
368
|
+
namespace: string[];
|
|
369
|
+
namespaceUuid: string;
|
|
370
|
+
createdAt?: string | null;
|
|
371
|
+
updatedAt?: string | null;
|
|
372
|
+
}[]
|
|
373
|
+
| null;
|
|
374
|
+
/** Contains UUIDs for each namespace when return_uuids is true. The order corresponds to the namespaces array. */
|
|
375
|
+
namespaceUuids?: string[] | null;
|
|
376
|
+
/** Use this opaque token to fetch the next page of results. A null or absent value indicates the last page. */
|
|
377
|
+
nextPageToken?: string | null;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
export const ListNamespacesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
381
|
+
{
|
|
382
|
+
namespaces: Schema.Array(Schema.Array(Schema.String)),
|
|
383
|
+
details: Schema.optional(
|
|
384
|
+
Schema.Union([
|
|
385
|
+
Schema.Array(
|
|
386
|
+
Schema.Struct({
|
|
387
|
+
namespace: Schema.Array(Schema.String),
|
|
388
|
+
namespaceUuid: Schema.String,
|
|
389
|
+
createdAt: Schema.optional(
|
|
390
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
391
|
+
),
|
|
392
|
+
updatedAt: Schema.optional(
|
|
393
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
394
|
+
),
|
|
395
|
+
}).pipe(
|
|
396
|
+
Schema.encodeKeys({
|
|
397
|
+
namespace: "namespace",
|
|
398
|
+
namespaceUuid: "namespace_uuid",
|
|
399
|
+
createdAt: "created_at",
|
|
400
|
+
updatedAt: "updated_at",
|
|
401
|
+
}),
|
|
402
|
+
),
|
|
403
|
+
),
|
|
404
|
+
Schema.Null,
|
|
405
|
+
]),
|
|
406
|
+
),
|
|
407
|
+
namespaceUuids: Schema.optional(
|
|
408
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
409
|
+
),
|
|
410
|
+
nextPageToken: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
411
|
+
},
|
|
412
|
+
).pipe(
|
|
413
|
+
Schema.encodeKeys({
|
|
414
|
+
namespaces: "namespaces",
|
|
415
|
+
details: "details",
|
|
416
|
+
namespaceUuids: "namespace_uuids",
|
|
417
|
+
nextPageToken: "next_page_token",
|
|
418
|
+
}),
|
|
419
|
+
) as unknown as Schema.Schema<ListNamespacesResponse>;
|
|
420
|
+
|
|
421
|
+
export type ListNamespacesError =
|
|
422
|
+
| DefaultErrors
|
|
423
|
+
| InvalidRoute
|
|
424
|
+
| WarehouseInactive
|
|
425
|
+
| WarehouseNotFound;
|
|
426
|
+
|
|
427
|
+
export const listNamespaces: API.OperationMethod<
|
|
428
|
+
ListNamespacesRequest,
|
|
429
|
+
ListNamespacesResponse,
|
|
430
|
+
ListNamespacesError,
|
|
431
|
+
Credentials | HttpClient.HttpClient
|
|
432
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
433
|
+
input: ListNamespacesRequest,
|
|
434
|
+
output: ListNamespacesResponse,
|
|
435
|
+
errors: [InvalidRoute, WarehouseInactive, WarehouseNotFound],
|
|
436
|
+
}));
|
|
437
|
+
|
|
438
|
+
// =============================================================================
|
|
439
|
+
// NamespaceTable
|
|
440
|
+
// =============================================================================
|
|
441
|
+
|
|
442
|
+
export interface ListNamespaceTablesRequest {
|
|
443
|
+
bucketName: string;
|
|
444
|
+
namespace: string;
|
|
445
|
+
/** Path param: Use this to identify the account. */
|
|
446
|
+
accountId: string;
|
|
447
|
+
/** Query param: Maximum number of tables to return per page. Defaults to 100, maximum 1000. */
|
|
448
|
+
pageSize?: number;
|
|
449
|
+
/** Query param: Opaque pagination token from a previous response. Use this to fetch the next page of results. */
|
|
450
|
+
pageToken?: string;
|
|
451
|
+
/** Query param: Whether to include additional metadata (timestamps, locations). When true, response includes created_at, updated_at, metadata_locations, and locations arrays. */
|
|
452
|
+
returnDetails?: boolean;
|
|
453
|
+
/** Query param: Whether to include table UUIDs in the response. Set to true to receive the table_uuids array. */
|
|
454
|
+
returnUuids?: boolean;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
export const ListNamespaceTablesRequest =
|
|
458
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
459
|
+
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
460
|
+
namespace: Schema.String.pipe(T.HttpPath("namespace")),
|
|
461
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
462
|
+
pageSize: Schema.optional(Schema.Number).pipe(T.HttpQuery("page_size")),
|
|
463
|
+
pageToken: Schema.optional(Schema.String).pipe(T.HttpQuery("page_token")),
|
|
464
|
+
returnDetails: Schema.optional(Schema.Boolean).pipe(
|
|
465
|
+
T.HttpQuery("return_details"),
|
|
466
|
+
),
|
|
467
|
+
returnUuids: Schema.optional(Schema.Boolean).pipe(
|
|
468
|
+
T.HttpQuery("return_uuids"),
|
|
469
|
+
),
|
|
470
|
+
}).pipe(
|
|
471
|
+
T.Http({
|
|
472
|
+
method: "GET",
|
|
473
|
+
path: "/accounts/{account_id}/r2-catalog/{bucketName}/namespaces/{namespace}/tables",
|
|
474
|
+
}),
|
|
475
|
+
) as unknown as Schema.Schema<ListNamespaceTablesRequest>;
|
|
476
|
+
|
|
477
|
+
export interface ListNamespaceTablesResponse {
|
|
478
|
+
/** Lists tables in the namespace. */
|
|
479
|
+
identifiers: { name: string; namespace: string[] }[];
|
|
480
|
+
/** Contains detailed metadata for each table when return_details is true. Each object includes identifier, UUID, timestamps, and locations. */
|
|
481
|
+
details?:
|
|
482
|
+
| {
|
|
483
|
+
identifier: { name: string; namespace: string[] };
|
|
484
|
+
tableUuid: string;
|
|
485
|
+
createdAt?: string | null;
|
|
486
|
+
location?: string | null;
|
|
487
|
+
metadataLocation?: string | null;
|
|
488
|
+
updatedAt?: string | null;
|
|
489
|
+
}[]
|
|
490
|
+
| null;
|
|
491
|
+
/** Use this opaque token to fetch the next page of results. A null or absent value indicates the last page. */
|
|
492
|
+
nextPageToken?: string | null;
|
|
493
|
+
/** Contains UUIDs for each table when return_uuids is true. The order corresponds to the identifiers array. */
|
|
494
|
+
tableUuids?: string[] | null;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
export const ListNamespaceTablesResponse =
|
|
498
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
499
|
+
identifiers: Schema.Array(
|
|
500
|
+
Schema.Struct({
|
|
501
|
+
name: Schema.String,
|
|
502
|
+
namespace: Schema.Array(Schema.String),
|
|
503
|
+
}),
|
|
504
|
+
),
|
|
505
|
+
details: Schema.optional(
|
|
506
|
+
Schema.Union([
|
|
507
|
+
Schema.Array(
|
|
508
|
+
Schema.Struct({
|
|
509
|
+
identifier: Schema.Struct({
|
|
510
|
+
name: Schema.String,
|
|
511
|
+
namespace: Schema.Array(Schema.String),
|
|
512
|
+
}),
|
|
513
|
+
tableUuid: Schema.String,
|
|
514
|
+
createdAt: Schema.optional(
|
|
515
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
516
|
+
),
|
|
517
|
+
location: Schema.optional(
|
|
518
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
519
|
+
),
|
|
520
|
+
metadataLocation: Schema.optional(
|
|
521
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
522
|
+
),
|
|
523
|
+
updatedAt: Schema.optional(
|
|
524
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
525
|
+
),
|
|
526
|
+
}).pipe(
|
|
527
|
+
Schema.encodeKeys({
|
|
528
|
+
identifier: "identifier",
|
|
529
|
+
tableUuid: "table_uuid",
|
|
530
|
+
createdAt: "created_at",
|
|
531
|
+
location: "location",
|
|
532
|
+
metadataLocation: "metadata_location",
|
|
533
|
+
updatedAt: "updated_at",
|
|
534
|
+
}),
|
|
535
|
+
),
|
|
536
|
+
),
|
|
537
|
+
Schema.Null,
|
|
538
|
+
]),
|
|
539
|
+
),
|
|
540
|
+
nextPageToken: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
541
|
+
tableUuids: Schema.optional(
|
|
542
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
543
|
+
),
|
|
544
|
+
}).pipe(
|
|
545
|
+
Schema.encodeKeys({
|
|
546
|
+
identifiers: "identifiers",
|
|
547
|
+
details: "details",
|
|
548
|
+
nextPageToken: "next_page_token",
|
|
549
|
+
tableUuids: "table_uuids",
|
|
550
|
+
}),
|
|
551
|
+
) as unknown as Schema.Schema<ListNamespaceTablesResponse>;
|
|
552
|
+
|
|
553
|
+
export type ListNamespaceTablesError =
|
|
554
|
+
| DefaultErrors
|
|
555
|
+
| InvalidRoute
|
|
556
|
+
| WarehouseInactive;
|
|
557
|
+
|
|
558
|
+
export const listNamespaceTables: API.OperationMethod<
|
|
559
|
+
ListNamespaceTablesRequest,
|
|
560
|
+
ListNamespaceTablesResponse,
|
|
561
|
+
ListNamespaceTablesError,
|
|
562
|
+
Credentials | HttpClient.HttpClient
|
|
563
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
564
|
+
input: ListNamespaceTablesRequest,
|
|
565
|
+
output: ListNamespaceTablesResponse,
|
|
566
|
+
errors: [InvalidRoute, WarehouseInactive],
|
|
567
|
+
}));
|
|
568
|
+
|
|
569
|
+
// =============================================================================
|
|
570
|
+
// NamespaceTableMaintenanceConfig
|
|
571
|
+
// =============================================================================
|
|
572
|
+
|
|
573
|
+
export interface GetNamespaceTableMaintenanceConfigRequest {
|
|
574
|
+
bucketName: string;
|
|
575
|
+
namespace: string;
|
|
576
|
+
tableName: string;
|
|
577
|
+
/** Use this to identify the account. */
|
|
578
|
+
accountId: string;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
export const GetNamespaceTableMaintenanceConfigRequest =
|
|
582
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
583
|
+
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
584
|
+
namespace: Schema.String.pipe(T.HttpPath("namespace")),
|
|
585
|
+
tableName: Schema.String.pipe(T.HttpPath("tableName")),
|
|
586
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
587
|
+
}).pipe(
|
|
588
|
+
T.Http({
|
|
589
|
+
method: "GET",
|
|
590
|
+
path: "/accounts/{account_id}/r2-catalog/{bucketName}/namespaces/{namespace}/tables/{tableName}/maintenance-configs",
|
|
591
|
+
}),
|
|
592
|
+
) as unknown as Schema.Schema<GetNamespaceTableMaintenanceConfigRequest>;
|
|
593
|
+
|
|
594
|
+
export interface GetNamespaceTableMaintenanceConfigResponse {
|
|
595
|
+
/** Configures maintenance for the table. */
|
|
596
|
+
maintenanceConfig: {
|
|
597
|
+
compaction?: {
|
|
598
|
+
state: "enabled" | "disabled";
|
|
599
|
+
targetSizeMb: "64" | "128" | "256" | "512";
|
|
600
|
+
} | null;
|
|
601
|
+
snapshotExpiration?: {
|
|
602
|
+
maxSnapshotAge: string;
|
|
603
|
+
minSnapshotsToKeep: number;
|
|
604
|
+
state: "enabled" | "disabled";
|
|
605
|
+
} | null;
|
|
606
|
+
};
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
export const GetNamespaceTableMaintenanceConfigResponse =
|
|
610
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
611
|
+
maintenanceConfig: Schema.Struct({
|
|
612
|
+
compaction: Schema.optional(
|
|
613
|
+
Schema.Union([
|
|
614
|
+
Schema.Struct({
|
|
615
|
+
state: Schema.Literals(["enabled", "disabled"]),
|
|
616
|
+
targetSizeMb: Schema.Literals(["64", "128", "256", "512"]),
|
|
617
|
+
}).pipe(
|
|
618
|
+
Schema.encodeKeys({
|
|
619
|
+
state: "state",
|
|
620
|
+
targetSizeMb: "target_size_mb",
|
|
621
|
+
}),
|
|
622
|
+
),
|
|
623
|
+
Schema.Null,
|
|
624
|
+
]),
|
|
625
|
+
),
|
|
626
|
+
snapshotExpiration: Schema.optional(
|
|
627
|
+
Schema.Union([
|
|
628
|
+
Schema.Struct({
|
|
629
|
+
maxSnapshotAge: Schema.String,
|
|
630
|
+
minSnapshotsToKeep: Schema.Number,
|
|
631
|
+
state: Schema.Literals(["enabled", "disabled"]),
|
|
632
|
+
}).pipe(
|
|
633
|
+
Schema.encodeKeys({
|
|
634
|
+
maxSnapshotAge: "max_snapshot_age",
|
|
635
|
+
minSnapshotsToKeep: "min_snapshots_to_keep",
|
|
636
|
+
state: "state",
|
|
637
|
+
}),
|
|
638
|
+
),
|
|
639
|
+
Schema.Null,
|
|
640
|
+
]),
|
|
641
|
+
),
|
|
642
|
+
}).pipe(
|
|
643
|
+
Schema.encodeKeys({
|
|
644
|
+
compaction: "compaction",
|
|
645
|
+
snapshotExpiration: "snapshot_expiration",
|
|
646
|
+
}),
|
|
647
|
+
),
|
|
648
|
+
}).pipe(
|
|
649
|
+
Schema.encodeKeys({ maintenanceConfig: "maintenance_config" }),
|
|
650
|
+
) as unknown as Schema.Schema<GetNamespaceTableMaintenanceConfigResponse>;
|
|
651
|
+
|
|
652
|
+
export type GetNamespaceTableMaintenanceConfigError =
|
|
653
|
+
| DefaultErrors
|
|
654
|
+
| TableNotFound
|
|
655
|
+
| InvalidRoute
|
|
656
|
+
| WarehouseInactive;
|
|
657
|
+
|
|
658
|
+
export const getNamespaceTableMaintenanceConfig: API.OperationMethod<
|
|
659
|
+
GetNamespaceTableMaintenanceConfigRequest,
|
|
660
|
+
GetNamespaceTableMaintenanceConfigResponse,
|
|
661
|
+
GetNamespaceTableMaintenanceConfigError,
|
|
662
|
+
Credentials | HttpClient.HttpClient
|
|
663
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
664
|
+
input: GetNamespaceTableMaintenanceConfigRequest,
|
|
665
|
+
output: GetNamespaceTableMaintenanceConfigResponse,
|
|
666
|
+
errors: [TableNotFound, InvalidRoute, WarehouseInactive],
|
|
667
|
+
}));
|
|
668
|
+
|
|
669
|
+
export interface UpdateNamespaceTableMaintenanceConfigRequest {
|
|
670
|
+
bucketName: string;
|
|
671
|
+
namespace: string;
|
|
672
|
+
tableName: string;
|
|
673
|
+
/** Path param: Use this to identify the account. */
|
|
674
|
+
accountId: string;
|
|
675
|
+
/** Body param: Updates compaction configuration (all fields optional). */
|
|
676
|
+
compaction?: {
|
|
677
|
+
state?: "enabled" | "disabled";
|
|
678
|
+
targetSizeMb?: "64" | "128" | "256" | "512";
|
|
679
|
+
};
|
|
680
|
+
/** Body param: Updates snapshot expiration configuration (all fields optional). */
|
|
681
|
+
snapshotExpiration?: {
|
|
682
|
+
maxSnapshotAge?: string;
|
|
683
|
+
minSnapshotsToKeep?: number;
|
|
684
|
+
state?: "enabled" | "disabled";
|
|
685
|
+
};
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
export const UpdateNamespaceTableMaintenanceConfigRequest =
|
|
689
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
690
|
+
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
691
|
+
namespace: Schema.String.pipe(T.HttpPath("namespace")),
|
|
692
|
+
tableName: Schema.String.pipe(T.HttpPath("tableName")),
|
|
693
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
694
|
+
compaction: Schema.optional(
|
|
695
|
+
Schema.Struct({
|
|
696
|
+
state: Schema.optional(Schema.Literals(["enabled", "disabled"])),
|
|
697
|
+
targetSizeMb: Schema.optional(
|
|
698
|
+
Schema.Literals(["64", "128", "256", "512"]),
|
|
699
|
+
),
|
|
700
|
+
}).pipe(
|
|
701
|
+
Schema.encodeKeys({ state: "state", targetSizeMb: "target_size_mb" }),
|
|
702
|
+
),
|
|
703
|
+
),
|
|
704
|
+
snapshotExpiration: Schema.optional(
|
|
705
|
+
Schema.Struct({
|
|
706
|
+
maxSnapshotAge: Schema.optional(Schema.String),
|
|
707
|
+
minSnapshotsToKeep: Schema.optional(Schema.Number),
|
|
708
|
+
state: Schema.optional(Schema.Literals(["enabled", "disabled"])),
|
|
709
|
+
}).pipe(
|
|
710
|
+
Schema.encodeKeys({
|
|
711
|
+
maxSnapshotAge: "max_snapshot_age",
|
|
712
|
+
minSnapshotsToKeep: "min_snapshots_to_keep",
|
|
713
|
+
state: "state",
|
|
714
|
+
}),
|
|
715
|
+
),
|
|
716
|
+
),
|
|
717
|
+
}).pipe(
|
|
718
|
+
Schema.encodeKeys({
|
|
719
|
+
compaction: "compaction",
|
|
720
|
+
snapshotExpiration: "snapshot_expiration",
|
|
721
|
+
}),
|
|
722
|
+
T.Http({
|
|
723
|
+
method: "POST",
|
|
724
|
+
path: "/accounts/{account_id}/r2-catalog/{bucketName}/namespaces/{namespace}/tables/{tableName}/maintenance-configs",
|
|
725
|
+
}),
|
|
726
|
+
) as unknown as Schema.Schema<UpdateNamespaceTableMaintenanceConfigRequest>;
|
|
727
|
+
|
|
728
|
+
export interface UpdateNamespaceTableMaintenanceConfigResponse {
|
|
729
|
+
/** Configures compaction settings for table optimization. */
|
|
730
|
+
compaction?: {
|
|
731
|
+
state: "enabled" | "disabled";
|
|
732
|
+
targetSizeMb: "64" | "128" | "256" | "512";
|
|
733
|
+
} | null;
|
|
734
|
+
/** Configures snapshot expiration settings. */
|
|
735
|
+
snapshotExpiration?: {
|
|
736
|
+
maxSnapshotAge: string;
|
|
737
|
+
minSnapshotsToKeep: number;
|
|
738
|
+
state: "enabled" | "disabled";
|
|
739
|
+
} | null;
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
export const UpdateNamespaceTableMaintenanceConfigResponse =
|
|
743
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
744
|
+
compaction: Schema.optional(
|
|
745
|
+
Schema.Union([
|
|
746
|
+
Schema.Struct({
|
|
747
|
+
state: Schema.Literals(["enabled", "disabled"]),
|
|
748
|
+
targetSizeMb: Schema.Literals(["64", "128", "256", "512"]),
|
|
749
|
+
}).pipe(
|
|
750
|
+
Schema.encodeKeys({ state: "state", targetSizeMb: "target_size_mb" }),
|
|
751
|
+
),
|
|
752
|
+
Schema.Null,
|
|
753
|
+
]),
|
|
754
|
+
),
|
|
755
|
+
snapshotExpiration: Schema.optional(
|
|
756
|
+
Schema.Union([
|
|
757
|
+
Schema.Struct({
|
|
758
|
+
maxSnapshotAge: Schema.String,
|
|
759
|
+
minSnapshotsToKeep: Schema.Number,
|
|
760
|
+
state: Schema.Literals(["enabled", "disabled"]),
|
|
761
|
+
}).pipe(
|
|
762
|
+
Schema.encodeKeys({
|
|
763
|
+
maxSnapshotAge: "max_snapshot_age",
|
|
764
|
+
minSnapshotsToKeep: "min_snapshots_to_keep",
|
|
765
|
+
state: "state",
|
|
766
|
+
}),
|
|
767
|
+
),
|
|
768
|
+
Schema.Null,
|
|
769
|
+
]),
|
|
770
|
+
),
|
|
771
|
+
}).pipe(
|
|
772
|
+
Schema.encodeKeys({
|
|
773
|
+
compaction: "compaction",
|
|
774
|
+
snapshotExpiration: "snapshot_expiration",
|
|
775
|
+
}),
|
|
776
|
+
) as unknown as Schema.Schema<UpdateNamespaceTableMaintenanceConfigResponse>;
|
|
777
|
+
|
|
778
|
+
export type UpdateNamespaceTableMaintenanceConfigError =
|
|
779
|
+
| DefaultErrors
|
|
780
|
+
| TableNotFound
|
|
781
|
+
| InvalidRoute
|
|
782
|
+
| WarehouseInactive;
|
|
783
|
+
|
|
784
|
+
export const updateNamespaceTableMaintenanceConfig: API.OperationMethod<
|
|
785
|
+
UpdateNamespaceTableMaintenanceConfigRequest,
|
|
786
|
+
UpdateNamespaceTableMaintenanceConfigResponse,
|
|
787
|
+
UpdateNamespaceTableMaintenanceConfigError,
|
|
788
|
+
Credentials | HttpClient.HttpClient
|
|
789
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
790
|
+
input: UpdateNamespaceTableMaintenanceConfigRequest,
|
|
791
|
+
output: UpdateNamespaceTableMaintenanceConfigResponse,
|
|
792
|
+
errors: [TableNotFound, InvalidRoute, WarehouseInactive],
|
|
793
|
+
}));
|
|
794
|
+
|
|
795
|
+
// =============================================================================
|
|
796
|
+
// R2DataCatalog
|
|
797
|
+
// =============================================================================
|
|
798
|
+
|
|
799
|
+
export interface GetR2DataCatalogRequest {
|
|
800
|
+
bucketName: string;
|
|
801
|
+
/** Use this to identify the account. */
|
|
802
|
+
accountId: string;
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
export const GetR2DataCatalogRequest =
|
|
806
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
807
|
+
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
808
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
809
|
+
}).pipe(
|
|
810
|
+
T.Http({
|
|
811
|
+
method: "GET",
|
|
812
|
+
path: "/accounts/{account_id}/r2-catalog/{bucketName}",
|
|
813
|
+
}),
|
|
814
|
+
) as unknown as Schema.Schema<GetR2DataCatalogRequest>;
|
|
815
|
+
|
|
816
|
+
export interface GetR2DataCatalogResponse {
|
|
817
|
+
/** Use this to uniquely identify the catalog. */
|
|
818
|
+
id: string;
|
|
819
|
+
/** Specifies the associated R2 bucket name. */
|
|
820
|
+
bucket: string;
|
|
821
|
+
/** Specifies the catalog name (generated from account and bucket name). */
|
|
822
|
+
name: string;
|
|
823
|
+
/** Indicates the status of the catalog. */
|
|
824
|
+
status: "active" | "inactive";
|
|
825
|
+
/** Shows the credential configuration status. */
|
|
826
|
+
credentialStatus?: "present" | "absent" | null;
|
|
827
|
+
/** Configures maintenance for the catalog. */
|
|
828
|
+
maintenanceConfig?: {
|
|
829
|
+
compaction?: {
|
|
830
|
+
state: "enabled" | "disabled";
|
|
831
|
+
targetSizeMb: "64" | "128" | "256" | "512";
|
|
832
|
+
} | null;
|
|
833
|
+
snapshotExpiration?: {
|
|
834
|
+
maxSnapshotAge: string;
|
|
835
|
+
minSnapshotsToKeep: number;
|
|
836
|
+
state: "enabled" | "disabled";
|
|
837
|
+
} | null;
|
|
838
|
+
} | null;
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
export const GetR2DataCatalogResponse =
|
|
842
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
843
|
+
id: Schema.String,
|
|
844
|
+
bucket: Schema.String,
|
|
845
|
+
name: Schema.String,
|
|
846
|
+
status: Schema.Literals(["active", "inactive"]),
|
|
847
|
+
credentialStatus: Schema.optional(
|
|
848
|
+
Schema.Union([
|
|
849
|
+
Schema.Literal("present"),
|
|
850
|
+
Schema.Literal("absent"),
|
|
851
|
+
Schema.Null,
|
|
852
|
+
]),
|
|
853
|
+
),
|
|
854
|
+
maintenanceConfig: Schema.optional(
|
|
855
|
+
Schema.Union([
|
|
856
|
+
Schema.Struct({
|
|
857
|
+
compaction: Schema.optional(
|
|
858
|
+
Schema.Union([
|
|
859
|
+
Schema.Struct({
|
|
860
|
+
state: Schema.Literals(["enabled", "disabled"]),
|
|
861
|
+
targetSizeMb: Schema.Literals(["64", "128", "256", "512"]),
|
|
862
|
+
}).pipe(
|
|
863
|
+
Schema.encodeKeys({
|
|
864
|
+
state: "state",
|
|
865
|
+
targetSizeMb: "target_size_mb",
|
|
866
|
+
}),
|
|
867
|
+
),
|
|
868
|
+
Schema.Null,
|
|
869
|
+
]),
|
|
870
|
+
),
|
|
871
|
+
snapshotExpiration: Schema.optional(
|
|
872
|
+
Schema.Union([
|
|
873
|
+
Schema.Struct({
|
|
874
|
+
maxSnapshotAge: Schema.String,
|
|
875
|
+
minSnapshotsToKeep: Schema.Number,
|
|
876
|
+
state: Schema.Literals(["enabled", "disabled"]),
|
|
877
|
+
}).pipe(
|
|
878
|
+
Schema.encodeKeys({
|
|
879
|
+
maxSnapshotAge: "max_snapshot_age",
|
|
880
|
+
minSnapshotsToKeep: "min_snapshots_to_keep",
|
|
881
|
+
state: "state",
|
|
882
|
+
}),
|
|
883
|
+
),
|
|
884
|
+
Schema.Null,
|
|
885
|
+
]),
|
|
886
|
+
),
|
|
887
|
+
}).pipe(
|
|
888
|
+
Schema.encodeKeys({
|
|
889
|
+
compaction: "compaction",
|
|
890
|
+
snapshotExpiration: "snapshot_expiration",
|
|
891
|
+
}),
|
|
892
|
+
),
|
|
893
|
+
Schema.Null,
|
|
894
|
+
]),
|
|
895
|
+
),
|
|
896
|
+
}).pipe(
|
|
897
|
+
Schema.encodeKeys({
|
|
898
|
+
id: "id",
|
|
899
|
+
bucket: "bucket",
|
|
900
|
+
name: "name",
|
|
901
|
+
status: "status",
|
|
902
|
+
credentialStatus: "credential_status",
|
|
903
|
+
maintenanceConfig: "maintenance_config",
|
|
904
|
+
}),
|
|
905
|
+
) as unknown as Schema.Schema<GetR2DataCatalogResponse>;
|
|
906
|
+
|
|
907
|
+
export type GetR2DataCatalogError = DefaultErrors | NoSuchBucket | InvalidRoute;
|
|
908
|
+
|
|
909
|
+
export const getR2DataCatalog: API.OperationMethod<
|
|
910
|
+
GetR2DataCatalogRequest,
|
|
911
|
+
GetR2DataCatalogResponse,
|
|
912
|
+
GetR2DataCatalogError,
|
|
913
|
+
Credentials | HttpClient.HttpClient
|
|
914
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
915
|
+
input: GetR2DataCatalogRequest,
|
|
916
|
+
output: GetR2DataCatalogResponse,
|
|
917
|
+
errors: [NoSuchBucket, InvalidRoute],
|
|
918
|
+
}));
|
|
919
|
+
|
|
920
|
+
export interface ListR2DataCatalogsRequest {
|
|
921
|
+
/** Use this to identify the account. */
|
|
922
|
+
accountId: string;
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
export const ListR2DataCatalogsRequest =
|
|
926
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
927
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
928
|
+
}).pipe(
|
|
929
|
+
T.Http({ method: "GET", path: "/accounts/{account_id}/r2-catalog" }),
|
|
930
|
+
) as unknown as Schema.Schema<ListR2DataCatalogsRequest>;
|
|
931
|
+
|
|
932
|
+
export interface ListR2DataCatalogsResponse {
|
|
933
|
+
/** Lists catalogs in the account. */
|
|
934
|
+
warehouses: {
|
|
935
|
+
id: string;
|
|
936
|
+
bucket: string;
|
|
937
|
+
name: string;
|
|
938
|
+
status: "active" | "inactive";
|
|
939
|
+
credentialStatus?: "present" | "absent" | null;
|
|
940
|
+
maintenanceConfig?: {
|
|
941
|
+
compaction?: {
|
|
942
|
+
state: "enabled" | "disabled";
|
|
943
|
+
targetSizeMb: "64" | "128" | "256" | "512";
|
|
944
|
+
} | null;
|
|
945
|
+
snapshotExpiration?: {
|
|
946
|
+
maxSnapshotAge: string;
|
|
947
|
+
minSnapshotsToKeep: number;
|
|
948
|
+
state: "enabled" | "disabled";
|
|
949
|
+
} | null;
|
|
950
|
+
} | null;
|
|
951
|
+
}[];
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
export const ListR2DataCatalogsResponse =
|
|
955
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
956
|
+
warehouses: Schema.Array(
|
|
957
|
+
Schema.Struct({
|
|
958
|
+
id: Schema.String,
|
|
959
|
+
bucket: Schema.String,
|
|
960
|
+
name: Schema.String,
|
|
961
|
+
status: Schema.Literals(["active", "inactive"]),
|
|
962
|
+
credentialStatus: Schema.optional(
|
|
963
|
+
Schema.Union([
|
|
964
|
+
Schema.Literal("present"),
|
|
965
|
+
Schema.Literal("absent"),
|
|
966
|
+
Schema.Null,
|
|
967
|
+
]),
|
|
968
|
+
),
|
|
969
|
+
maintenanceConfig: Schema.optional(
|
|
970
|
+
Schema.Union([
|
|
971
|
+
Schema.Struct({
|
|
972
|
+
compaction: Schema.optional(
|
|
973
|
+
Schema.Union([
|
|
974
|
+
Schema.Struct({
|
|
975
|
+
state: Schema.Literals(["enabled", "disabled"]),
|
|
976
|
+
targetSizeMb: Schema.Literals(["64", "128", "256", "512"]),
|
|
977
|
+
}).pipe(
|
|
978
|
+
Schema.encodeKeys({
|
|
979
|
+
state: "state",
|
|
980
|
+
targetSizeMb: "target_size_mb",
|
|
981
|
+
}),
|
|
982
|
+
),
|
|
983
|
+
Schema.Null,
|
|
984
|
+
]),
|
|
985
|
+
),
|
|
986
|
+
snapshotExpiration: Schema.optional(
|
|
987
|
+
Schema.Union([
|
|
988
|
+
Schema.Struct({
|
|
989
|
+
maxSnapshotAge: Schema.String,
|
|
990
|
+
minSnapshotsToKeep: Schema.Number,
|
|
991
|
+
state: Schema.Literals(["enabled", "disabled"]),
|
|
992
|
+
}).pipe(
|
|
993
|
+
Schema.encodeKeys({
|
|
994
|
+
maxSnapshotAge: "max_snapshot_age",
|
|
995
|
+
minSnapshotsToKeep: "min_snapshots_to_keep",
|
|
996
|
+
state: "state",
|
|
997
|
+
}),
|
|
998
|
+
),
|
|
999
|
+
Schema.Null,
|
|
1000
|
+
]),
|
|
1001
|
+
),
|
|
1002
|
+
}).pipe(
|
|
1003
|
+
Schema.encodeKeys({
|
|
1004
|
+
compaction: "compaction",
|
|
1005
|
+
snapshotExpiration: "snapshot_expiration",
|
|
1006
|
+
}),
|
|
1007
|
+
),
|
|
1008
|
+
Schema.Null,
|
|
1009
|
+
]),
|
|
1010
|
+
),
|
|
1011
|
+
}).pipe(
|
|
1012
|
+
Schema.encodeKeys({
|
|
1013
|
+
id: "id",
|
|
1014
|
+
bucket: "bucket",
|
|
1015
|
+
name: "name",
|
|
1016
|
+
status: "status",
|
|
1017
|
+
credentialStatus: "credential_status",
|
|
1018
|
+
maintenanceConfig: "maintenance_config",
|
|
1019
|
+
}),
|
|
1020
|
+
),
|
|
1021
|
+
),
|
|
1022
|
+
}) as unknown as Schema.Schema<ListR2DataCatalogsResponse>;
|
|
1023
|
+
|
|
1024
|
+
export type ListR2DataCatalogsError = DefaultErrors | InvalidRoute;
|
|
1025
|
+
|
|
1026
|
+
export const listR2DataCatalogs: API.OperationMethod<
|
|
1027
|
+
ListR2DataCatalogsRequest,
|
|
1028
|
+
ListR2DataCatalogsResponse,
|
|
1029
|
+
ListR2DataCatalogsError,
|
|
1030
|
+
Credentials | HttpClient.HttpClient
|
|
1031
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1032
|
+
input: ListR2DataCatalogsRequest,
|
|
1033
|
+
output: ListR2DataCatalogsResponse,
|
|
1034
|
+
errors: [InvalidRoute],
|
|
1035
|
+
}));
|
|
1036
|
+
|
|
1037
|
+
export interface EnableR2DataCatalogRequest {
|
|
1038
|
+
bucketName: string;
|
|
1039
|
+
/** Use this to identify the account. */
|
|
1040
|
+
accountId: string;
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
export const EnableR2DataCatalogRequest =
|
|
1044
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1045
|
+
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
1046
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1047
|
+
}).pipe(
|
|
1048
|
+
T.Http({
|
|
1049
|
+
method: "POST",
|
|
1050
|
+
path: "/accounts/{account_id}/r2-catalog/{bucketName}/enable",
|
|
1051
|
+
}),
|
|
1052
|
+
) as unknown as Schema.Schema<EnableR2DataCatalogRequest>;
|
|
1053
|
+
|
|
1054
|
+
export interface EnableR2DataCatalogResponse {
|
|
1055
|
+
/** Use this to uniquely identify the activated catalog. */
|
|
1056
|
+
id?: string | null;
|
|
1057
|
+
/** Specifies the name of the activated catalog. */
|
|
1058
|
+
name: string;
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
export const EnableR2DataCatalogResponse =
|
|
1062
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1063
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1064
|
+
name: Schema.String,
|
|
1065
|
+
}) as unknown as Schema.Schema<EnableR2DataCatalogResponse>;
|
|
1066
|
+
|
|
1067
|
+
export type EnableR2DataCatalogError =
|
|
1068
|
+
| DefaultErrors
|
|
1069
|
+
| NoSuchBucket
|
|
1070
|
+
| InvalidRoute;
|
|
1071
|
+
|
|
1072
|
+
export const enableR2DataCatalog: API.OperationMethod<
|
|
1073
|
+
EnableR2DataCatalogRequest,
|
|
1074
|
+
EnableR2DataCatalogResponse,
|
|
1075
|
+
EnableR2DataCatalogError,
|
|
1076
|
+
Credentials | HttpClient.HttpClient
|
|
1077
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1078
|
+
input: EnableR2DataCatalogRequest,
|
|
1079
|
+
output: EnableR2DataCatalogResponse,
|
|
1080
|
+
errors: [NoSuchBucket, InvalidRoute],
|
|
1081
|
+
}));
|
|
1082
|
+
|
|
1083
|
+
export interface DisableR2DataCatalogRequest {
|
|
1084
|
+
bucketName: string;
|
|
1085
|
+
/** Use this to identify the account. */
|
|
1086
|
+
accountId: string;
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
export const DisableR2DataCatalogRequest =
|
|
1090
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1091
|
+
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
1092
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1093
|
+
}).pipe(
|
|
1094
|
+
T.Http({
|
|
1095
|
+
method: "POST",
|
|
1096
|
+
path: "/accounts/{account_id}/r2-catalog/{bucketName}/disable",
|
|
1097
|
+
}),
|
|
1098
|
+
) as unknown as Schema.Schema<DisableR2DataCatalogRequest>;
|
|
1099
|
+
|
|
1100
|
+
export type DisableR2DataCatalogResponse = unknown;
|
|
1101
|
+
|
|
1102
|
+
export const DisableR2DataCatalogResponse =
|
|
1103
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<DisableR2DataCatalogResponse>;
|
|
1104
|
+
|
|
1105
|
+
export type DisableR2DataCatalogError =
|
|
1106
|
+
| DefaultErrors
|
|
1107
|
+
| NoSuchBucket
|
|
1108
|
+
| InvalidRoute;
|
|
1109
|
+
|
|
1110
|
+
export const disableR2DataCatalog: API.OperationMethod<
|
|
1111
|
+
DisableR2DataCatalogRequest,
|
|
1112
|
+
DisableR2DataCatalogResponse,
|
|
1113
|
+
DisableR2DataCatalogError,
|
|
1114
|
+
Credentials | HttpClient.HttpClient
|
|
1115
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1116
|
+
input: DisableR2DataCatalogRequest,
|
|
1117
|
+
output: DisableR2DataCatalogResponse,
|
|
1118
|
+
errors: [NoSuchBucket, InvalidRoute],
|
|
1119
|
+
}));
|