@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,3529 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cloudflare R2 API
|
|
3
|
+
*
|
|
4
|
+
* Generated from Cloudflare TypeScript SDK.
|
|
5
|
+
* DO NOT EDIT - regenerate with: bun scripts/generate.ts --service r2
|
|
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
|
+
import { SensitiveString } from "../sensitive.ts";
|
|
16
|
+
|
|
17
|
+
// =============================================================================
|
|
18
|
+
// Errors
|
|
19
|
+
// =============================================================================
|
|
20
|
+
|
|
21
|
+
export class BucketAlreadyExists extends Schema.TaggedErrorClass<BucketAlreadyExists>()(
|
|
22
|
+
"BucketAlreadyExists",
|
|
23
|
+
{ code: Schema.Number, message: Schema.String },
|
|
24
|
+
) {}
|
|
25
|
+
T.applyErrorMatchers(BucketAlreadyExists, [{ code: 10004 }]);
|
|
26
|
+
|
|
27
|
+
export class BucketNotFound extends Schema.TaggedErrorClass<BucketNotFound>()(
|
|
28
|
+
"BucketNotFound",
|
|
29
|
+
{ code: Schema.Number, message: Schema.String },
|
|
30
|
+
) {}
|
|
31
|
+
T.applyErrorMatchers(BucketNotFound, [{ code: 10085 }]);
|
|
32
|
+
|
|
33
|
+
export class InvalidBucketName extends Schema.TaggedErrorClass<InvalidBucketName>()(
|
|
34
|
+
"InvalidBucketName",
|
|
35
|
+
{ code: Schema.Number, message: Schema.String },
|
|
36
|
+
) {}
|
|
37
|
+
T.applyErrorMatchers(InvalidBucketName, [{ code: 10005 }]);
|
|
38
|
+
|
|
39
|
+
export class InvalidRoute extends Schema.TaggedErrorClass<InvalidRoute>()(
|
|
40
|
+
"InvalidRoute",
|
|
41
|
+
{ code: Schema.Number, message: Schema.String },
|
|
42
|
+
) {}
|
|
43
|
+
T.applyErrorMatchers(InvalidRoute, [{ code: 7003 }]);
|
|
44
|
+
|
|
45
|
+
export class NoCorsConfiguration extends Schema.TaggedErrorClass<NoCorsConfiguration>()(
|
|
46
|
+
"NoCorsConfiguration",
|
|
47
|
+
{ code: Schema.Number, message: Schema.String },
|
|
48
|
+
) {}
|
|
49
|
+
T.applyErrorMatchers(NoCorsConfiguration, [{ code: 10059 }]);
|
|
50
|
+
|
|
51
|
+
export class NoEventNotificationConfig extends Schema.TaggedErrorClass<NoEventNotificationConfig>()(
|
|
52
|
+
"NoEventNotificationConfig",
|
|
53
|
+
{ code: Schema.Number, message: Schema.String },
|
|
54
|
+
) {}
|
|
55
|
+
T.applyErrorMatchers(NoEventNotificationConfig, [{ code: 11015 }]);
|
|
56
|
+
|
|
57
|
+
export class NoRoute extends Schema.TaggedErrorClass<NoRoute>()("NoRoute", {
|
|
58
|
+
code: Schema.Number,
|
|
59
|
+
message: Schema.String,
|
|
60
|
+
}) {}
|
|
61
|
+
T.applyErrorMatchers(NoRoute, [{ code: 10015 }]);
|
|
62
|
+
|
|
63
|
+
export class NoSuchBucket extends Schema.TaggedErrorClass<NoSuchBucket>()(
|
|
64
|
+
"NoSuchBucket",
|
|
65
|
+
{ code: Schema.Number, message: Schema.String },
|
|
66
|
+
) {}
|
|
67
|
+
T.applyErrorMatchers(NoSuchBucket, [{ code: 10006 }]);
|
|
68
|
+
|
|
69
|
+
// =============================================================================
|
|
70
|
+
// AllSuperSlurperJob
|
|
71
|
+
// =============================================================================
|
|
72
|
+
|
|
73
|
+
export interface AbortAllSuperSlurperJobRequest {
|
|
74
|
+
accountId: string;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export const AbortAllSuperSlurperJobRequest =
|
|
78
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
79
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
80
|
+
}).pipe(
|
|
81
|
+
T.Http({
|
|
82
|
+
method: "PUT",
|
|
83
|
+
path: "/accounts/{account_id}/slurper/jobs/abortAll",
|
|
84
|
+
}),
|
|
85
|
+
) as unknown as Schema.Schema<AbortAllSuperSlurperJobRequest>;
|
|
86
|
+
|
|
87
|
+
export type AbortAllSuperSlurperJobResponse = string;
|
|
88
|
+
|
|
89
|
+
export const AbortAllSuperSlurperJobResponse =
|
|
90
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.String.pipe(
|
|
91
|
+
T.ResponsePath("result"),
|
|
92
|
+
) as unknown as Schema.Schema<AbortAllSuperSlurperJobResponse>;
|
|
93
|
+
|
|
94
|
+
export type AbortAllSuperSlurperJobError = DefaultErrors;
|
|
95
|
+
|
|
96
|
+
export const abortAllSuperSlurperJob: API.OperationMethod<
|
|
97
|
+
AbortAllSuperSlurperJobRequest,
|
|
98
|
+
AbortAllSuperSlurperJobResponse,
|
|
99
|
+
AbortAllSuperSlurperJobError,
|
|
100
|
+
Credentials | HttpClient.HttpClient
|
|
101
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
102
|
+
input: AbortAllSuperSlurperJobRequest,
|
|
103
|
+
output: AbortAllSuperSlurperJobResponse,
|
|
104
|
+
errors: [],
|
|
105
|
+
}));
|
|
106
|
+
|
|
107
|
+
// =============================================================================
|
|
108
|
+
// Bucket
|
|
109
|
+
// =============================================================================
|
|
110
|
+
|
|
111
|
+
export interface GetBucketRequest {
|
|
112
|
+
bucketName: string;
|
|
113
|
+
/** Path param: Account ID. */
|
|
114
|
+
accountId: string;
|
|
115
|
+
/** Header param: Jurisdiction where objects in this bucket are guaranteed to be stored. */
|
|
116
|
+
jurisdiction?: "default" | "eu" | "fedramp";
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export const GetBucketRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
120
|
+
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
121
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
122
|
+
jurisdiction: Schema.optional(
|
|
123
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
124
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
125
|
+
}).pipe(
|
|
126
|
+
T.Http({
|
|
127
|
+
method: "GET",
|
|
128
|
+
path: "/accounts/{account_id}/r2/buckets/{bucketName}",
|
|
129
|
+
}),
|
|
130
|
+
) as unknown as Schema.Schema<GetBucketRequest>;
|
|
131
|
+
|
|
132
|
+
export interface GetBucketResponse {
|
|
133
|
+
/** Creation timestamp. */
|
|
134
|
+
creationDate?: string | null;
|
|
135
|
+
/** Jurisdiction where objects in this bucket are guaranteed to be stored. */
|
|
136
|
+
jurisdiction?: "default" | "eu" | "fedramp" | null;
|
|
137
|
+
/** Location of the bucket. */
|
|
138
|
+
location?:
|
|
139
|
+
| "apac"
|
|
140
|
+
| "eeur"
|
|
141
|
+
| "enam"
|
|
142
|
+
| "weur"
|
|
143
|
+
| "wnam"
|
|
144
|
+
| "oc"
|
|
145
|
+
| "APAC"
|
|
146
|
+
| "EEUR"
|
|
147
|
+
| "ENAM"
|
|
148
|
+
| "WEUR"
|
|
149
|
+
| "WNAM"
|
|
150
|
+
| "OC"
|
|
151
|
+
| null;
|
|
152
|
+
/** Name of the bucket. */
|
|
153
|
+
name?: string | null;
|
|
154
|
+
/** Storage class for newly uploaded objects, unless specified otherwise. */
|
|
155
|
+
storageClass?: "Standard" | "InfrequentAccess" | null;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export const GetBucketResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
159
|
+
creationDate: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
160
|
+
jurisdiction: Schema.optional(
|
|
161
|
+
Schema.Union([Schema.Literals(["default", "eu", "fedramp"]), Schema.Null]),
|
|
162
|
+
),
|
|
163
|
+
location: Schema.optional(
|
|
164
|
+
Schema.Union([
|
|
165
|
+
Schema.Literals([
|
|
166
|
+
"apac",
|
|
167
|
+
"eeur",
|
|
168
|
+
"enam",
|
|
169
|
+
"weur",
|
|
170
|
+
"wnam",
|
|
171
|
+
"oc",
|
|
172
|
+
"APAC",
|
|
173
|
+
"EEUR",
|
|
174
|
+
"ENAM",
|
|
175
|
+
"WEUR",
|
|
176
|
+
"WNAM",
|
|
177
|
+
"OC",
|
|
178
|
+
]),
|
|
179
|
+
Schema.Null,
|
|
180
|
+
]),
|
|
181
|
+
),
|
|
182
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
183
|
+
storageClass: Schema.optional(
|
|
184
|
+
Schema.Union([
|
|
185
|
+
Schema.Literals(["Standard", "InfrequentAccess"]),
|
|
186
|
+
Schema.Null,
|
|
187
|
+
]),
|
|
188
|
+
),
|
|
189
|
+
})
|
|
190
|
+
.pipe(
|
|
191
|
+
Schema.encodeKeys({
|
|
192
|
+
creationDate: "creation_date",
|
|
193
|
+
jurisdiction: "jurisdiction",
|
|
194
|
+
location: "location",
|
|
195
|
+
name: "name",
|
|
196
|
+
storageClass: "storage_class",
|
|
197
|
+
}),
|
|
198
|
+
)
|
|
199
|
+
.pipe(
|
|
200
|
+
T.ResponsePath("result"),
|
|
201
|
+
) as unknown as Schema.Schema<GetBucketResponse>;
|
|
202
|
+
|
|
203
|
+
export type GetBucketError = DefaultErrors | NoSuchBucket | InvalidRoute;
|
|
204
|
+
|
|
205
|
+
export const getBucket: API.OperationMethod<
|
|
206
|
+
GetBucketRequest,
|
|
207
|
+
GetBucketResponse,
|
|
208
|
+
GetBucketError,
|
|
209
|
+
Credentials | HttpClient.HttpClient
|
|
210
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
211
|
+
input: GetBucketRequest,
|
|
212
|
+
output: GetBucketResponse,
|
|
213
|
+
errors: [NoSuchBucket, InvalidRoute],
|
|
214
|
+
}));
|
|
215
|
+
|
|
216
|
+
export interface ListBucketsRequest {
|
|
217
|
+
/** Path param: Account ID. */
|
|
218
|
+
accountId: string;
|
|
219
|
+
/** Query param: Pagination cursor received during the last List Buckets call. R2 buckets are paginated using cursors instead of page numbers. */
|
|
220
|
+
cursor?: string;
|
|
221
|
+
/** Query param: Direction to order buckets. */
|
|
222
|
+
direction?: "asc" | "desc";
|
|
223
|
+
/** Query param: Bucket names to filter by. Only buckets with this phrase in their name will be returned. */
|
|
224
|
+
nameContains?: string;
|
|
225
|
+
/** Query param: Field to order buckets by. */
|
|
226
|
+
order?: "name";
|
|
227
|
+
/** Query param: Maximum number of buckets to return in a single call. */
|
|
228
|
+
perPage?: number;
|
|
229
|
+
/** Query param: Bucket name to start searching after. Buckets are ordered lexicographically. */
|
|
230
|
+
startAfter?: string;
|
|
231
|
+
/** Header param: Jurisdiction where objects in this bucket are guaranteed to be stored. */
|
|
232
|
+
jurisdiction?: "default" | "eu" | "fedramp";
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
export const ListBucketsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
236
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
237
|
+
cursor: Schema.optional(Schema.String).pipe(T.HttpQuery("cursor")),
|
|
238
|
+
direction: Schema.optional(Schema.Literals(["asc", "desc"])).pipe(
|
|
239
|
+
T.HttpQuery("direction"),
|
|
240
|
+
),
|
|
241
|
+
nameContains: Schema.optional(Schema.String).pipe(
|
|
242
|
+
T.HttpQuery("name_contains"),
|
|
243
|
+
),
|
|
244
|
+
order: Schema.optional(Schema.Literal("name")).pipe(T.HttpQuery("order")),
|
|
245
|
+
perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
|
|
246
|
+
startAfter: Schema.optional(Schema.String).pipe(T.HttpQuery("start_after")),
|
|
247
|
+
jurisdiction: Schema.optional(
|
|
248
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
249
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
250
|
+
}).pipe(
|
|
251
|
+
T.Http({ method: "GET", path: "/accounts/{account_id}/r2/buckets" }),
|
|
252
|
+
) as unknown as Schema.Schema<ListBucketsRequest>;
|
|
253
|
+
|
|
254
|
+
export interface ListBucketsResponse {
|
|
255
|
+
buckets?:
|
|
256
|
+
| {
|
|
257
|
+
creationDate?: string | null;
|
|
258
|
+
jurisdiction?: "default" | "eu" | "fedramp" | null;
|
|
259
|
+
location?:
|
|
260
|
+
| "apac"
|
|
261
|
+
| "eeur"
|
|
262
|
+
| "enam"
|
|
263
|
+
| "weur"
|
|
264
|
+
| "wnam"
|
|
265
|
+
| "oc"
|
|
266
|
+
| "APAC"
|
|
267
|
+
| "EEUR"
|
|
268
|
+
| "ENAM"
|
|
269
|
+
| "WEUR"
|
|
270
|
+
| "WNAM"
|
|
271
|
+
| "OC"
|
|
272
|
+
| null;
|
|
273
|
+
name?: string | null;
|
|
274
|
+
storageClass?: "Standard" | "InfrequentAccess" | null;
|
|
275
|
+
}[]
|
|
276
|
+
| null;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
export const ListBucketsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
280
|
+
buckets: Schema.optional(
|
|
281
|
+
Schema.Union([
|
|
282
|
+
Schema.Array(
|
|
283
|
+
Schema.Struct({
|
|
284
|
+
creationDate: Schema.optional(
|
|
285
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
286
|
+
),
|
|
287
|
+
jurisdiction: Schema.optional(
|
|
288
|
+
Schema.Union([
|
|
289
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
290
|
+
Schema.Null,
|
|
291
|
+
]),
|
|
292
|
+
),
|
|
293
|
+
location: Schema.optional(
|
|
294
|
+
Schema.Union([
|
|
295
|
+
Schema.Literals([
|
|
296
|
+
"apac",
|
|
297
|
+
"eeur",
|
|
298
|
+
"enam",
|
|
299
|
+
"weur",
|
|
300
|
+
"wnam",
|
|
301
|
+
"oc",
|
|
302
|
+
"APAC",
|
|
303
|
+
"EEUR",
|
|
304
|
+
"ENAM",
|
|
305
|
+
"WEUR",
|
|
306
|
+
"WNAM",
|
|
307
|
+
"OC",
|
|
308
|
+
]),
|
|
309
|
+
Schema.Null,
|
|
310
|
+
]),
|
|
311
|
+
),
|
|
312
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
313
|
+
storageClass: Schema.optional(
|
|
314
|
+
Schema.Union([
|
|
315
|
+
Schema.Literals(["Standard", "InfrequentAccess"]),
|
|
316
|
+
Schema.Null,
|
|
317
|
+
]),
|
|
318
|
+
),
|
|
319
|
+
}).pipe(
|
|
320
|
+
Schema.encodeKeys({
|
|
321
|
+
creationDate: "creation_date",
|
|
322
|
+
jurisdiction: "jurisdiction",
|
|
323
|
+
location: "location",
|
|
324
|
+
name: "name",
|
|
325
|
+
storageClass: "storage_class",
|
|
326
|
+
}),
|
|
327
|
+
),
|
|
328
|
+
),
|
|
329
|
+
Schema.Null,
|
|
330
|
+
]),
|
|
331
|
+
),
|
|
332
|
+
}).pipe(
|
|
333
|
+
T.ResponsePath("result"),
|
|
334
|
+
) as unknown as Schema.Schema<ListBucketsResponse>;
|
|
335
|
+
|
|
336
|
+
export type ListBucketsError = DefaultErrors | InvalidRoute;
|
|
337
|
+
|
|
338
|
+
export const listBuckets: API.OperationMethod<
|
|
339
|
+
ListBucketsRequest,
|
|
340
|
+
ListBucketsResponse,
|
|
341
|
+
ListBucketsError,
|
|
342
|
+
Credentials | HttpClient.HttpClient
|
|
343
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
344
|
+
input: ListBucketsRequest,
|
|
345
|
+
output: ListBucketsResponse,
|
|
346
|
+
errors: [InvalidRoute],
|
|
347
|
+
}));
|
|
348
|
+
|
|
349
|
+
export interface CreateBucketRequest {
|
|
350
|
+
/** Path param: Account ID. */
|
|
351
|
+
accountId: string;
|
|
352
|
+
/** Header param: Jurisdiction where objects in this bucket are guaranteed to be stored. */
|
|
353
|
+
jurisdiction?: "default" | "eu" | "fedramp";
|
|
354
|
+
/** Body param: Name of the bucket. */
|
|
355
|
+
name: string;
|
|
356
|
+
/** Body param: Location of the bucket. */
|
|
357
|
+
locationHint?: "apac" | "eeur" | "enam" | "weur" | "wnam" | "oc";
|
|
358
|
+
/** Body param: Storage class for newly uploaded objects, unless specified otherwise. */
|
|
359
|
+
storageClass?: "Standard" | "InfrequentAccess";
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
export const CreateBucketRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
363
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
364
|
+
jurisdiction: Schema.optional(
|
|
365
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
366
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
367
|
+
name: Schema.String,
|
|
368
|
+
locationHint: Schema.optional(
|
|
369
|
+
Schema.Literals(["apac", "eeur", "enam", "weur", "wnam", "oc"]),
|
|
370
|
+
),
|
|
371
|
+
storageClass: Schema.optional(
|
|
372
|
+
Schema.Literals(["Standard", "InfrequentAccess"]),
|
|
373
|
+
),
|
|
374
|
+
}).pipe(
|
|
375
|
+
T.Http({ method: "POST", path: "/accounts/{account_id}/r2/buckets" }),
|
|
376
|
+
) as unknown as Schema.Schema<CreateBucketRequest>;
|
|
377
|
+
|
|
378
|
+
export interface CreateBucketResponse {
|
|
379
|
+
/** Creation timestamp. */
|
|
380
|
+
creationDate?: string | null;
|
|
381
|
+
/** Jurisdiction where objects in this bucket are guaranteed to be stored. */
|
|
382
|
+
jurisdiction?: "default" | "eu" | "fedramp" | null;
|
|
383
|
+
/** Location of the bucket. */
|
|
384
|
+
location?:
|
|
385
|
+
| "apac"
|
|
386
|
+
| "eeur"
|
|
387
|
+
| "enam"
|
|
388
|
+
| "weur"
|
|
389
|
+
| "wnam"
|
|
390
|
+
| "oc"
|
|
391
|
+
| "APAC"
|
|
392
|
+
| "EEUR"
|
|
393
|
+
| "ENAM"
|
|
394
|
+
| "WEUR"
|
|
395
|
+
| "WNAM"
|
|
396
|
+
| "OC"
|
|
397
|
+
| null;
|
|
398
|
+
/** Name of the bucket. */
|
|
399
|
+
name?: string | null;
|
|
400
|
+
/** Storage class for newly uploaded objects, unless specified otherwise. */
|
|
401
|
+
storageClass?: "Standard" | "InfrequentAccess" | null;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
export const CreateBucketResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
405
|
+
creationDate: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
406
|
+
jurisdiction: Schema.optional(
|
|
407
|
+
Schema.Union([Schema.Literals(["default", "eu", "fedramp"]), Schema.Null]),
|
|
408
|
+
),
|
|
409
|
+
location: Schema.optional(
|
|
410
|
+
Schema.Union([
|
|
411
|
+
Schema.Literals([
|
|
412
|
+
"apac",
|
|
413
|
+
"eeur",
|
|
414
|
+
"enam",
|
|
415
|
+
"weur",
|
|
416
|
+
"wnam",
|
|
417
|
+
"oc",
|
|
418
|
+
"APAC",
|
|
419
|
+
"EEUR",
|
|
420
|
+
"ENAM",
|
|
421
|
+
"WEUR",
|
|
422
|
+
"WNAM",
|
|
423
|
+
"OC",
|
|
424
|
+
]),
|
|
425
|
+
Schema.Null,
|
|
426
|
+
]),
|
|
427
|
+
),
|
|
428
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
429
|
+
storageClass: Schema.optional(
|
|
430
|
+
Schema.Union([
|
|
431
|
+
Schema.Literals(["Standard", "InfrequentAccess"]),
|
|
432
|
+
Schema.Null,
|
|
433
|
+
]),
|
|
434
|
+
),
|
|
435
|
+
})
|
|
436
|
+
.pipe(
|
|
437
|
+
Schema.encodeKeys({
|
|
438
|
+
creationDate: "creation_date",
|
|
439
|
+
jurisdiction: "jurisdiction",
|
|
440
|
+
location: "location",
|
|
441
|
+
name: "name",
|
|
442
|
+
storageClass: "storage_class",
|
|
443
|
+
}),
|
|
444
|
+
)
|
|
445
|
+
.pipe(
|
|
446
|
+
T.ResponsePath("result"),
|
|
447
|
+
) as unknown as Schema.Schema<CreateBucketResponse>;
|
|
448
|
+
|
|
449
|
+
export type CreateBucketError =
|
|
450
|
+
| DefaultErrors
|
|
451
|
+
| InvalidBucketName
|
|
452
|
+
| BucketAlreadyExists
|
|
453
|
+
| InvalidRoute;
|
|
454
|
+
|
|
455
|
+
export const createBucket: API.OperationMethod<
|
|
456
|
+
CreateBucketRequest,
|
|
457
|
+
CreateBucketResponse,
|
|
458
|
+
CreateBucketError,
|
|
459
|
+
Credentials | HttpClient.HttpClient
|
|
460
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
461
|
+
input: CreateBucketRequest,
|
|
462
|
+
output: CreateBucketResponse,
|
|
463
|
+
errors: [InvalidBucketName, BucketAlreadyExists, InvalidRoute],
|
|
464
|
+
}));
|
|
465
|
+
|
|
466
|
+
export interface PatchBucketRequest {
|
|
467
|
+
bucketName: string;
|
|
468
|
+
/** Path param: Account ID. */
|
|
469
|
+
accountId: string;
|
|
470
|
+
/** Header param: Storage class for newly uploaded objects, unless specified otherwise. */
|
|
471
|
+
storageClass: "Standard" | "InfrequentAccess";
|
|
472
|
+
/** Header param: Jurisdiction where objects in this bucket are guaranteed to be stored. */
|
|
473
|
+
jurisdiction?: "default" | "eu" | "fedramp";
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
export const PatchBucketRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
477
|
+
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
478
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
479
|
+
storageClass: Schema.Literals(["Standard", "InfrequentAccess"]).pipe(
|
|
480
|
+
T.HttpHeader("cf-r2-storage-class"),
|
|
481
|
+
),
|
|
482
|
+
jurisdiction: Schema.optional(
|
|
483
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
484
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
485
|
+
}).pipe(
|
|
486
|
+
T.Http({
|
|
487
|
+
method: "PATCH",
|
|
488
|
+
path: "/accounts/{account_id}/r2/buckets/{bucketName}",
|
|
489
|
+
}),
|
|
490
|
+
) as unknown as Schema.Schema<PatchBucketRequest>;
|
|
491
|
+
|
|
492
|
+
export interface PatchBucketResponse {
|
|
493
|
+
/** Creation timestamp. */
|
|
494
|
+
creationDate?: string | null;
|
|
495
|
+
/** Jurisdiction where objects in this bucket are guaranteed to be stored. */
|
|
496
|
+
jurisdiction?: "default" | "eu" | "fedramp" | null;
|
|
497
|
+
/** Location of the bucket. */
|
|
498
|
+
location?:
|
|
499
|
+
| "apac"
|
|
500
|
+
| "eeur"
|
|
501
|
+
| "enam"
|
|
502
|
+
| "weur"
|
|
503
|
+
| "wnam"
|
|
504
|
+
| "oc"
|
|
505
|
+
| "APAC"
|
|
506
|
+
| "EEUR"
|
|
507
|
+
| "ENAM"
|
|
508
|
+
| "WEUR"
|
|
509
|
+
| "WNAM"
|
|
510
|
+
| "OC"
|
|
511
|
+
| null;
|
|
512
|
+
/** Name of the bucket. */
|
|
513
|
+
name?: string | null;
|
|
514
|
+
/** Storage class for newly uploaded objects, unless specified otherwise. */
|
|
515
|
+
storageClass?: "Standard" | "InfrequentAccess" | null;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
export const PatchBucketResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
519
|
+
creationDate: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
520
|
+
jurisdiction: Schema.optional(
|
|
521
|
+
Schema.Union([Schema.Literals(["default", "eu", "fedramp"]), Schema.Null]),
|
|
522
|
+
),
|
|
523
|
+
location: Schema.optional(
|
|
524
|
+
Schema.Union([
|
|
525
|
+
Schema.Literals([
|
|
526
|
+
"apac",
|
|
527
|
+
"eeur",
|
|
528
|
+
"enam",
|
|
529
|
+
"weur",
|
|
530
|
+
"wnam",
|
|
531
|
+
"oc",
|
|
532
|
+
"APAC",
|
|
533
|
+
"EEUR",
|
|
534
|
+
"ENAM",
|
|
535
|
+
"WEUR",
|
|
536
|
+
"WNAM",
|
|
537
|
+
"OC",
|
|
538
|
+
]),
|
|
539
|
+
Schema.Null,
|
|
540
|
+
]),
|
|
541
|
+
),
|
|
542
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
543
|
+
storageClass: Schema.optional(
|
|
544
|
+
Schema.Union([
|
|
545
|
+
Schema.Literals(["Standard", "InfrequentAccess"]),
|
|
546
|
+
Schema.Null,
|
|
547
|
+
]),
|
|
548
|
+
),
|
|
549
|
+
})
|
|
550
|
+
.pipe(
|
|
551
|
+
Schema.encodeKeys({
|
|
552
|
+
creationDate: "creation_date",
|
|
553
|
+
jurisdiction: "jurisdiction",
|
|
554
|
+
location: "location",
|
|
555
|
+
name: "name",
|
|
556
|
+
storageClass: "storage_class",
|
|
557
|
+
}),
|
|
558
|
+
)
|
|
559
|
+
.pipe(
|
|
560
|
+
T.ResponsePath("result"),
|
|
561
|
+
) as unknown as Schema.Schema<PatchBucketResponse>;
|
|
562
|
+
|
|
563
|
+
export type PatchBucketError = DefaultErrors | NoSuchBucket | InvalidRoute;
|
|
564
|
+
|
|
565
|
+
export const patchBucket: API.OperationMethod<
|
|
566
|
+
PatchBucketRequest,
|
|
567
|
+
PatchBucketResponse,
|
|
568
|
+
PatchBucketError,
|
|
569
|
+
Credentials | HttpClient.HttpClient
|
|
570
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
571
|
+
input: PatchBucketRequest,
|
|
572
|
+
output: PatchBucketResponse,
|
|
573
|
+
errors: [NoSuchBucket, InvalidRoute],
|
|
574
|
+
}));
|
|
575
|
+
|
|
576
|
+
export interface DeleteBucketRequest {
|
|
577
|
+
bucketName: string;
|
|
578
|
+
/** Path param: Account ID. */
|
|
579
|
+
accountId: string;
|
|
580
|
+
/** Header param: Jurisdiction where objects in this bucket are guaranteed to be stored. */
|
|
581
|
+
jurisdiction?: "default" | "eu" | "fedramp";
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
export const DeleteBucketRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
585
|
+
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
586
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
587
|
+
jurisdiction: Schema.optional(
|
|
588
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
589
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
590
|
+
}).pipe(
|
|
591
|
+
T.Http({
|
|
592
|
+
method: "DELETE",
|
|
593
|
+
path: "/accounts/{account_id}/r2/buckets/{bucketName}",
|
|
594
|
+
}),
|
|
595
|
+
) as unknown as Schema.Schema<DeleteBucketRequest>;
|
|
596
|
+
|
|
597
|
+
export type DeleteBucketResponse = unknown;
|
|
598
|
+
|
|
599
|
+
export const DeleteBucketResponse =
|
|
600
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(
|
|
601
|
+
T.ResponsePath("result"),
|
|
602
|
+
) as unknown as Schema.Schema<DeleteBucketResponse>;
|
|
603
|
+
|
|
604
|
+
export type DeleteBucketError =
|
|
605
|
+
| DefaultErrors
|
|
606
|
+
| NoSuchBucket
|
|
607
|
+
| InvalidRoute
|
|
608
|
+
| NoRoute;
|
|
609
|
+
|
|
610
|
+
export const deleteBucket: API.OperationMethod<
|
|
611
|
+
DeleteBucketRequest,
|
|
612
|
+
DeleteBucketResponse,
|
|
613
|
+
DeleteBucketError,
|
|
614
|
+
Credentials | HttpClient.HttpClient
|
|
615
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
616
|
+
input: DeleteBucketRequest,
|
|
617
|
+
output: DeleteBucketResponse,
|
|
618
|
+
errors: [NoSuchBucket, InvalidRoute, NoRoute],
|
|
619
|
+
}));
|
|
620
|
+
|
|
621
|
+
// =============================================================================
|
|
622
|
+
// BucketCor
|
|
623
|
+
// =============================================================================
|
|
624
|
+
|
|
625
|
+
export interface GetBucketCorsRequest {
|
|
626
|
+
bucketName: string;
|
|
627
|
+
/** Path param: Account ID. */
|
|
628
|
+
accountId: string;
|
|
629
|
+
/** Header param: Jurisdiction where objects in this bucket are guaranteed to be stored. */
|
|
630
|
+
jurisdiction?: "default" | "eu" | "fedramp";
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
export const GetBucketCorsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
634
|
+
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
635
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
636
|
+
jurisdiction: Schema.optional(
|
|
637
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
638
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
639
|
+
}).pipe(
|
|
640
|
+
T.Http({
|
|
641
|
+
method: "GET",
|
|
642
|
+
path: "/accounts/{account_id}/r2/buckets/{bucketName}/cors",
|
|
643
|
+
}),
|
|
644
|
+
) as unknown as Schema.Schema<GetBucketCorsRequest>;
|
|
645
|
+
|
|
646
|
+
export interface GetBucketCorsResponse {
|
|
647
|
+
rules?:
|
|
648
|
+
| {
|
|
649
|
+
allowed: {
|
|
650
|
+
methods: ("GET" | "PUT" | "POST" | "DELETE" | "HEAD")[];
|
|
651
|
+
origins: string[];
|
|
652
|
+
headers?: string[] | null;
|
|
653
|
+
};
|
|
654
|
+
id?: string | null;
|
|
655
|
+
exposeHeaders?: string[] | null;
|
|
656
|
+
maxAgeSeconds?: number | null;
|
|
657
|
+
}[]
|
|
658
|
+
| null;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
export const GetBucketCorsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
662
|
+
rules: Schema.optional(
|
|
663
|
+
Schema.Union([
|
|
664
|
+
Schema.Array(
|
|
665
|
+
Schema.Struct({
|
|
666
|
+
allowed: Schema.Struct({
|
|
667
|
+
methods: Schema.Array(
|
|
668
|
+
Schema.Literals(["GET", "PUT", "POST", "DELETE", "HEAD"]),
|
|
669
|
+
),
|
|
670
|
+
origins: Schema.Array(Schema.String),
|
|
671
|
+
headers: Schema.optional(
|
|
672
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
673
|
+
),
|
|
674
|
+
}),
|
|
675
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
676
|
+
exposeHeaders: Schema.optional(
|
|
677
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
678
|
+
),
|
|
679
|
+
maxAgeSeconds: Schema.optional(
|
|
680
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
681
|
+
),
|
|
682
|
+
}),
|
|
683
|
+
),
|
|
684
|
+
Schema.Null,
|
|
685
|
+
]),
|
|
686
|
+
),
|
|
687
|
+
}).pipe(
|
|
688
|
+
T.ResponsePath("result"),
|
|
689
|
+
) as unknown as Schema.Schema<GetBucketCorsResponse>;
|
|
690
|
+
|
|
691
|
+
export type GetBucketCorsError =
|
|
692
|
+
| DefaultErrors
|
|
693
|
+
| NoSuchBucket
|
|
694
|
+
| InvalidRoute
|
|
695
|
+
| NoCorsConfiguration;
|
|
696
|
+
|
|
697
|
+
export const getBucketCors: API.OperationMethod<
|
|
698
|
+
GetBucketCorsRequest,
|
|
699
|
+
GetBucketCorsResponse,
|
|
700
|
+
GetBucketCorsError,
|
|
701
|
+
Credentials | HttpClient.HttpClient
|
|
702
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
703
|
+
input: GetBucketCorsRequest,
|
|
704
|
+
output: GetBucketCorsResponse,
|
|
705
|
+
errors: [NoSuchBucket, InvalidRoute, NoCorsConfiguration],
|
|
706
|
+
}));
|
|
707
|
+
|
|
708
|
+
export interface PutBucketCorsRequest {
|
|
709
|
+
bucketName: string;
|
|
710
|
+
/** Path param: Account ID. */
|
|
711
|
+
accountId: string;
|
|
712
|
+
/** Header param: Jurisdiction where objects in this bucket are guaranteed to be stored. */
|
|
713
|
+
jurisdiction?: "default" | "eu" | "fedramp";
|
|
714
|
+
/** Body param: */
|
|
715
|
+
rules?: {
|
|
716
|
+
allowed: {
|
|
717
|
+
methods: ("GET" | "PUT" | "POST" | "DELETE" | "HEAD")[];
|
|
718
|
+
origins: string[];
|
|
719
|
+
headers?: string[];
|
|
720
|
+
};
|
|
721
|
+
id?: string;
|
|
722
|
+
exposeHeaders?: string[];
|
|
723
|
+
maxAgeSeconds?: number;
|
|
724
|
+
}[];
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
export const PutBucketCorsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
728
|
+
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
729
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
730
|
+
jurisdiction: Schema.optional(
|
|
731
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
732
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
733
|
+
rules: Schema.optional(
|
|
734
|
+
Schema.Array(
|
|
735
|
+
Schema.Struct({
|
|
736
|
+
allowed: Schema.Struct({
|
|
737
|
+
methods: Schema.Array(
|
|
738
|
+
Schema.Literals(["GET", "PUT", "POST", "DELETE", "HEAD"]),
|
|
739
|
+
),
|
|
740
|
+
origins: Schema.Array(Schema.String),
|
|
741
|
+
headers: Schema.optional(Schema.Array(Schema.String)),
|
|
742
|
+
}),
|
|
743
|
+
id: Schema.optional(Schema.String),
|
|
744
|
+
exposeHeaders: Schema.optional(Schema.Array(Schema.String)),
|
|
745
|
+
maxAgeSeconds: Schema.optional(Schema.Number),
|
|
746
|
+
}),
|
|
747
|
+
),
|
|
748
|
+
),
|
|
749
|
+
}).pipe(
|
|
750
|
+
T.Http({
|
|
751
|
+
method: "PUT",
|
|
752
|
+
path: "/accounts/{account_id}/r2/buckets/{bucketName}/cors",
|
|
753
|
+
}),
|
|
754
|
+
) as unknown as Schema.Schema<PutBucketCorsRequest>;
|
|
755
|
+
|
|
756
|
+
export type PutBucketCorsResponse = unknown;
|
|
757
|
+
|
|
758
|
+
export const PutBucketCorsResponse =
|
|
759
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(
|
|
760
|
+
T.ResponsePath("result"),
|
|
761
|
+
) as unknown as Schema.Schema<PutBucketCorsResponse>;
|
|
762
|
+
|
|
763
|
+
export type PutBucketCorsError = DefaultErrors | NoSuchBucket | InvalidRoute;
|
|
764
|
+
|
|
765
|
+
export const putBucketCors: API.OperationMethod<
|
|
766
|
+
PutBucketCorsRequest,
|
|
767
|
+
PutBucketCorsResponse,
|
|
768
|
+
PutBucketCorsError,
|
|
769
|
+
Credentials | HttpClient.HttpClient
|
|
770
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
771
|
+
input: PutBucketCorsRequest,
|
|
772
|
+
output: PutBucketCorsResponse,
|
|
773
|
+
errors: [NoSuchBucket, InvalidRoute],
|
|
774
|
+
}));
|
|
775
|
+
|
|
776
|
+
export interface DeleteBucketCorsRequest {
|
|
777
|
+
bucketName: string;
|
|
778
|
+
/** Path param: Account ID. */
|
|
779
|
+
accountId: string;
|
|
780
|
+
/** Header param: Jurisdiction where objects in this bucket are guaranteed to be stored. */
|
|
781
|
+
jurisdiction?: "default" | "eu" | "fedramp";
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
export const DeleteBucketCorsRequest =
|
|
785
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
786
|
+
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
787
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
788
|
+
jurisdiction: Schema.optional(
|
|
789
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
790
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
791
|
+
}).pipe(
|
|
792
|
+
T.Http({
|
|
793
|
+
method: "DELETE",
|
|
794
|
+
path: "/accounts/{account_id}/r2/buckets/{bucketName}/cors",
|
|
795
|
+
}),
|
|
796
|
+
) as unknown as Schema.Schema<DeleteBucketCorsRequest>;
|
|
797
|
+
|
|
798
|
+
export type DeleteBucketCorsResponse = unknown;
|
|
799
|
+
|
|
800
|
+
export const DeleteBucketCorsResponse =
|
|
801
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(
|
|
802
|
+
T.ResponsePath("result"),
|
|
803
|
+
) as unknown as Schema.Schema<DeleteBucketCorsResponse>;
|
|
804
|
+
|
|
805
|
+
export type DeleteBucketCorsError = DefaultErrors | NoSuchBucket | InvalidRoute;
|
|
806
|
+
|
|
807
|
+
export const deleteBucketCors: API.OperationMethod<
|
|
808
|
+
DeleteBucketCorsRequest,
|
|
809
|
+
DeleteBucketCorsResponse,
|
|
810
|
+
DeleteBucketCorsError,
|
|
811
|
+
Credentials | HttpClient.HttpClient
|
|
812
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
813
|
+
input: DeleteBucketCorsRequest,
|
|
814
|
+
output: DeleteBucketCorsResponse,
|
|
815
|
+
errors: [NoSuchBucket, InvalidRoute],
|
|
816
|
+
}));
|
|
817
|
+
|
|
818
|
+
// =============================================================================
|
|
819
|
+
// BucketDomainCustom
|
|
820
|
+
// =============================================================================
|
|
821
|
+
|
|
822
|
+
export interface GetBucketDomainCustomRequest {
|
|
823
|
+
bucketName: string;
|
|
824
|
+
domain: string;
|
|
825
|
+
/** Path param: Account ID. */
|
|
826
|
+
accountId: string;
|
|
827
|
+
/** Header param: Jurisdiction where objects in this bucket are guaranteed to be stored. */
|
|
828
|
+
jurisdiction?: "default" | "eu" | "fedramp";
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
export const GetBucketDomainCustomRequest =
|
|
832
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
833
|
+
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
834
|
+
domain: Schema.String.pipe(T.HttpPath("domain")),
|
|
835
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
836
|
+
jurisdiction: Schema.optional(
|
|
837
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
838
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
839
|
+
}).pipe(
|
|
840
|
+
T.Http({
|
|
841
|
+
method: "GET",
|
|
842
|
+
path: "/accounts/{account_id}/r2/buckets/{bucketName}/domains/custom/{domain}",
|
|
843
|
+
}),
|
|
844
|
+
) as unknown as Schema.Schema<GetBucketDomainCustomRequest>;
|
|
845
|
+
|
|
846
|
+
export interface GetBucketDomainCustomResponse {
|
|
847
|
+
/** Domain name of the custom domain to be added. */
|
|
848
|
+
domain: string;
|
|
849
|
+
/** Whether this bucket is publicly accessible at the specified custom domain. */
|
|
850
|
+
enabled: boolean;
|
|
851
|
+
status: {
|
|
852
|
+
ownership:
|
|
853
|
+
| "pending"
|
|
854
|
+
| "active"
|
|
855
|
+
| "deactivated"
|
|
856
|
+
| "blocked"
|
|
857
|
+
| "error"
|
|
858
|
+
| "unknown";
|
|
859
|
+
ssl:
|
|
860
|
+
| "initializing"
|
|
861
|
+
| "pending"
|
|
862
|
+
| "active"
|
|
863
|
+
| "deactivated"
|
|
864
|
+
| "error"
|
|
865
|
+
| "unknown";
|
|
866
|
+
};
|
|
867
|
+
/** An allowlist of ciphers for TLS termination. These ciphers must be in the BoringSSL format. */
|
|
868
|
+
ciphers?: string[] | null;
|
|
869
|
+
/** Minimum TLS Version the custom domain will accept for incoming connections. If not set, defaults to 1.0. */
|
|
870
|
+
minTLS?: "1.0" | "1.1" | "1.2" | "1.3" | null;
|
|
871
|
+
/** Zone ID of the custom domain resides in. */
|
|
872
|
+
zoneId?: string | null;
|
|
873
|
+
/** Zone that the custom domain resides in. */
|
|
874
|
+
zoneName?: string | null;
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
export const GetBucketDomainCustomResponse =
|
|
878
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
879
|
+
domain: Schema.String,
|
|
880
|
+
enabled: Schema.Boolean,
|
|
881
|
+
status: Schema.Struct({
|
|
882
|
+
ownership: Schema.Literals([
|
|
883
|
+
"pending",
|
|
884
|
+
"active",
|
|
885
|
+
"deactivated",
|
|
886
|
+
"blocked",
|
|
887
|
+
"error",
|
|
888
|
+
"unknown",
|
|
889
|
+
]),
|
|
890
|
+
ssl: Schema.Literals([
|
|
891
|
+
"initializing",
|
|
892
|
+
"pending",
|
|
893
|
+
"active",
|
|
894
|
+
"deactivated",
|
|
895
|
+
"error",
|
|
896
|
+
"unknown",
|
|
897
|
+
]),
|
|
898
|
+
}),
|
|
899
|
+
ciphers: Schema.optional(
|
|
900
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
901
|
+
),
|
|
902
|
+
minTLS: Schema.optional(
|
|
903
|
+
Schema.Union([
|
|
904
|
+
Schema.Literals(["1.0", "1.1", "1.2", "1.3"]),
|
|
905
|
+
Schema.Null,
|
|
906
|
+
]),
|
|
907
|
+
),
|
|
908
|
+
zoneId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
909
|
+
zoneName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
910
|
+
}).pipe(
|
|
911
|
+
T.ResponsePath("result"),
|
|
912
|
+
) as unknown as Schema.Schema<GetBucketDomainCustomResponse>;
|
|
913
|
+
|
|
914
|
+
export type GetBucketDomainCustomError = DefaultErrors;
|
|
915
|
+
|
|
916
|
+
export const getBucketDomainCustom: API.OperationMethod<
|
|
917
|
+
GetBucketDomainCustomRequest,
|
|
918
|
+
GetBucketDomainCustomResponse,
|
|
919
|
+
GetBucketDomainCustomError,
|
|
920
|
+
Credentials | HttpClient.HttpClient
|
|
921
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
922
|
+
input: GetBucketDomainCustomRequest,
|
|
923
|
+
output: GetBucketDomainCustomResponse,
|
|
924
|
+
errors: [],
|
|
925
|
+
}));
|
|
926
|
+
|
|
927
|
+
export interface ListBucketDomainCustomsRequest {
|
|
928
|
+
bucketName: string;
|
|
929
|
+
/** Path param: Account ID. */
|
|
930
|
+
accountId: string;
|
|
931
|
+
/** Header param: Jurisdiction where objects in this bucket are guaranteed to be stored. */
|
|
932
|
+
jurisdiction?: "default" | "eu" | "fedramp";
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
export const ListBucketDomainCustomsRequest =
|
|
936
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
937
|
+
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
938
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
939
|
+
jurisdiction: Schema.optional(
|
|
940
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
941
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
942
|
+
}).pipe(
|
|
943
|
+
T.Http({
|
|
944
|
+
method: "GET",
|
|
945
|
+
path: "/accounts/{account_id}/r2/buckets/{bucketName}/domains/custom",
|
|
946
|
+
}),
|
|
947
|
+
) as unknown as Schema.Schema<ListBucketDomainCustomsRequest>;
|
|
948
|
+
|
|
949
|
+
export interface ListBucketDomainCustomsResponse {
|
|
950
|
+
domains: {
|
|
951
|
+
domain: string;
|
|
952
|
+
enabled: boolean;
|
|
953
|
+
status: {
|
|
954
|
+
ownership:
|
|
955
|
+
| "pending"
|
|
956
|
+
| "active"
|
|
957
|
+
| "deactivated"
|
|
958
|
+
| "blocked"
|
|
959
|
+
| "error"
|
|
960
|
+
| "unknown";
|
|
961
|
+
ssl:
|
|
962
|
+
| "initializing"
|
|
963
|
+
| "pending"
|
|
964
|
+
| "active"
|
|
965
|
+
| "deactivated"
|
|
966
|
+
| "error"
|
|
967
|
+
| "unknown";
|
|
968
|
+
};
|
|
969
|
+
ciphers?: string[] | null;
|
|
970
|
+
minTLS?: "1.0" | "1.1" | "1.2" | "1.3" | null;
|
|
971
|
+
zoneId?: string | null;
|
|
972
|
+
zoneName?: string | null;
|
|
973
|
+
}[];
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
export const ListBucketDomainCustomsResponse =
|
|
977
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
978
|
+
domains: Schema.Array(
|
|
979
|
+
Schema.Struct({
|
|
980
|
+
domain: Schema.String,
|
|
981
|
+
enabled: Schema.Boolean,
|
|
982
|
+
status: Schema.Struct({
|
|
983
|
+
ownership: Schema.Literals([
|
|
984
|
+
"pending",
|
|
985
|
+
"active",
|
|
986
|
+
"deactivated",
|
|
987
|
+
"blocked",
|
|
988
|
+
"error",
|
|
989
|
+
"unknown",
|
|
990
|
+
]),
|
|
991
|
+
ssl: Schema.Literals([
|
|
992
|
+
"initializing",
|
|
993
|
+
"pending",
|
|
994
|
+
"active",
|
|
995
|
+
"deactivated",
|
|
996
|
+
"error",
|
|
997
|
+
"unknown",
|
|
998
|
+
]),
|
|
999
|
+
}),
|
|
1000
|
+
ciphers: Schema.optional(
|
|
1001
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
1002
|
+
),
|
|
1003
|
+
minTLS: Schema.optional(
|
|
1004
|
+
Schema.Union([
|
|
1005
|
+
Schema.Literals(["1.0", "1.1", "1.2", "1.3"]),
|
|
1006
|
+
Schema.Null,
|
|
1007
|
+
]),
|
|
1008
|
+
),
|
|
1009
|
+
zoneId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1010
|
+
zoneName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1011
|
+
}),
|
|
1012
|
+
),
|
|
1013
|
+
}).pipe(
|
|
1014
|
+
T.ResponsePath("result"),
|
|
1015
|
+
) as unknown as Schema.Schema<ListBucketDomainCustomsResponse>;
|
|
1016
|
+
|
|
1017
|
+
export type ListBucketDomainCustomsError =
|
|
1018
|
+
| DefaultErrors
|
|
1019
|
+
| NoSuchBucket
|
|
1020
|
+
| InvalidRoute;
|
|
1021
|
+
|
|
1022
|
+
export const listBucketDomainCustoms: API.OperationMethod<
|
|
1023
|
+
ListBucketDomainCustomsRequest,
|
|
1024
|
+
ListBucketDomainCustomsResponse,
|
|
1025
|
+
ListBucketDomainCustomsError,
|
|
1026
|
+
Credentials | HttpClient.HttpClient
|
|
1027
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1028
|
+
input: ListBucketDomainCustomsRequest,
|
|
1029
|
+
output: ListBucketDomainCustomsResponse,
|
|
1030
|
+
errors: [NoSuchBucket, InvalidRoute],
|
|
1031
|
+
}));
|
|
1032
|
+
|
|
1033
|
+
export interface CreateBucketDomainCustomRequest {
|
|
1034
|
+
bucketName: string;
|
|
1035
|
+
/** Path param: Account ID. */
|
|
1036
|
+
accountId: string;
|
|
1037
|
+
/** Header param: Jurisdiction where objects in this bucket are guaranteed to be stored. */
|
|
1038
|
+
jurisdiction?: "default" | "eu" | "fedramp";
|
|
1039
|
+
/** Body param: Name of the custom domain to be added. */
|
|
1040
|
+
domain: string;
|
|
1041
|
+
/** Body param: Whether to enable public bucket access at the custom domain. If undefined, the domain will be enabled. */
|
|
1042
|
+
enabled: boolean;
|
|
1043
|
+
/** Body param: Zone ID of the custom domain. */
|
|
1044
|
+
zoneId: string;
|
|
1045
|
+
/** Body param: An allowlist of ciphers for TLS termination. These ciphers must be in the BoringSSL format. */
|
|
1046
|
+
ciphers?: string[];
|
|
1047
|
+
/** Body param: Minimum TLS Version the custom domain will accept for incoming connections. If not set, defaults to 1.0. */
|
|
1048
|
+
minTLS?: "1.0" | "1.1" | "1.2" | "1.3";
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
export const CreateBucketDomainCustomRequest =
|
|
1052
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1053
|
+
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
1054
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1055
|
+
jurisdiction: Schema.optional(
|
|
1056
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
1057
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
1058
|
+
domain: Schema.String,
|
|
1059
|
+
enabled: Schema.Boolean,
|
|
1060
|
+
zoneId: Schema.String,
|
|
1061
|
+
ciphers: Schema.optional(Schema.Array(Schema.String)),
|
|
1062
|
+
minTLS: Schema.optional(Schema.Literals(["1.0", "1.1", "1.2", "1.3"])),
|
|
1063
|
+
}).pipe(
|
|
1064
|
+
T.Http({
|
|
1065
|
+
method: "POST",
|
|
1066
|
+
path: "/accounts/{account_id}/r2/buckets/{bucketName}/domains/custom",
|
|
1067
|
+
}),
|
|
1068
|
+
) as unknown as Schema.Schema<CreateBucketDomainCustomRequest>;
|
|
1069
|
+
|
|
1070
|
+
export interface CreateBucketDomainCustomResponse {
|
|
1071
|
+
/** Domain name of the affected custom domain. */
|
|
1072
|
+
domain: string;
|
|
1073
|
+
/** Whether this bucket is publicly accessible at the specified custom domain. */
|
|
1074
|
+
enabled: boolean;
|
|
1075
|
+
/** An allowlist of ciphers for TLS termination. These ciphers must be in the BoringSSL format. */
|
|
1076
|
+
ciphers?: string[] | null;
|
|
1077
|
+
/** Minimum TLS Version the custom domain will accept for incoming connections. If not set, defaults to 1.0. */
|
|
1078
|
+
minTLS?: "1.0" | "1.1" | "1.2" | "1.3" | null;
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1081
|
+
export const CreateBucketDomainCustomResponse =
|
|
1082
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1083
|
+
domain: Schema.String,
|
|
1084
|
+
enabled: Schema.Boolean,
|
|
1085
|
+
ciphers: Schema.optional(
|
|
1086
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
1087
|
+
),
|
|
1088
|
+
minTLS: Schema.optional(
|
|
1089
|
+
Schema.Union([
|
|
1090
|
+
Schema.Literals(["1.0", "1.1", "1.2", "1.3"]),
|
|
1091
|
+
Schema.Null,
|
|
1092
|
+
]),
|
|
1093
|
+
),
|
|
1094
|
+
}).pipe(
|
|
1095
|
+
T.ResponsePath("result"),
|
|
1096
|
+
) as unknown as Schema.Schema<CreateBucketDomainCustomResponse>;
|
|
1097
|
+
|
|
1098
|
+
export type CreateBucketDomainCustomError =
|
|
1099
|
+
| DefaultErrors
|
|
1100
|
+
| NoSuchBucket
|
|
1101
|
+
| InvalidBucketName;
|
|
1102
|
+
|
|
1103
|
+
export const createBucketDomainCustom: API.OperationMethod<
|
|
1104
|
+
CreateBucketDomainCustomRequest,
|
|
1105
|
+
CreateBucketDomainCustomResponse,
|
|
1106
|
+
CreateBucketDomainCustomError,
|
|
1107
|
+
Credentials | HttpClient.HttpClient
|
|
1108
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1109
|
+
input: CreateBucketDomainCustomRequest,
|
|
1110
|
+
output: CreateBucketDomainCustomResponse,
|
|
1111
|
+
errors: [NoSuchBucket, InvalidBucketName],
|
|
1112
|
+
}));
|
|
1113
|
+
|
|
1114
|
+
export interface UpdateBucketDomainCustomRequest {
|
|
1115
|
+
bucketName: string;
|
|
1116
|
+
domain: string;
|
|
1117
|
+
/** Path param: Account ID. */
|
|
1118
|
+
accountId: string;
|
|
1119
|
+
/** Header param: Jurisdiction where objects in this bucket are guaranteed to be stored. */
|
|
1120
|
+
jurisdiction?: "default" | "eu" | "fedramp";
|
|
1121
|
+
/** Body param: An allowlist of ciphers for TLS termination. These ciphers must be in the BoringSSL format. */
|
|
1122
|
+
ciphers?: string[];
|
|
1123
|
+
/** Body param: Whether to enable public bucket access at the specified custom domain. */
|
|
1124
|
+
enabled?: boolean;
|
|
1125
|
+
/** Body param: Minimum TLS Version the custom domain will accept for incoming connections. If not set, defaults to previous value. */
|
|
1126
|
+
minTLS?: "1.0" | "1.1" | "1.2" | "1.3";
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1129
|
+
export const UpdateBucketDomainCustomRequest =
|
|
1130
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1131
|
+
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
1132
|
+
domain: Schema.String.pipe(T.HttpPath("domain")),
|
|
1133
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1134
|
+
jurisdiction: Schema.optional(
|
|
1135
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
1136
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
1137
|
+
ciphers: Schema.optional(Schema.Array(Schema.String)),
|
|
1138
|
+
enabled: Schema.optional(Schema.Boolean),
|
|
1139
|
+
minTLS: Schema.optional(Schema.Literals(["1.0", "1.1", "1.2", "1.3"])),
|
|
1140
|
+
}).pipe(
|
|
1141
|
+
T.Http({
|
|
1142
|
+
method: "PUT",
|
|
1143
|
+
path: "/accounts/{account_id}/r2/buckets/{bucketName}/domains/custom/{domain}",
|
|
1144
|
+
}),
|
|
1145
|
+
) as unknown as Schema.Schema<UpdateBucketDomainCustomRequest>;
|
|
1146
|
+
|
|
1147
|
+
export interface UpdateBucketDomainCustomResponse {
|
|
1148
|
+
/** Domain name of the affected custom domain. */
|
|
1149
|
+
domain: string;
|
|
1150
|
+
/** An allowlist of ciphers for TLS termination. These ciphers must be in the BoringSSL format. */
|
|
1151
|
+
ciphers?: string[] | null;
|
|
1152
|
+
/** Whether this bucket is publicly accessible at the specified custom domain. */
|
|
1153
|
+
enabled?: boolean | null;
|
|
1154
|
+
/** Minimum TLS Version the custom domain will accept for incoming connections. If not set, defaults to 1.0. */
|
|
1155
|
+
minTLS?: "1.0" | "1.1" | "1.2" | "1.3" | null;
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
export const UpdateBucketDomainCustomResponse =
|
|
1159
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1160
|
+
domain: Schema.String,
|
|
1161
|
+
ciphers: Schema.optional(
|
|
1162
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
1163
|
+
),
|
|
1164
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1165
|
+
minTLS: Schema.optional(
|
|
1166
|
+
Schema.Union([
|
|
1167
|
+
Schema.Literals(["1.0", "1.1", "1.2", "1.3"]),
|
|
1168
|
+
Schema.Null,
|
|
1169
|
+
]),
|
|
1170
|
+
),
|
|
1171
|
+
}).pipe(
|
|
1172
|
+
T.ResponsePath("result"),
|
|
1173
|
+
) as unknown as Schema.Schema<UpdateBucketDomainCustomResponse>;
|
|
1174
|
+
|
|
1175
|
+
export type UpdateBucketDomainCustomError = DefaultErrors;
|
|
1176
|
+
|
|
1177
|
+
export const updateBucketDomainCustom: API.OperationMethod<
|
|
1178
|
+
UpdateBucketDomainCustomRequest,
|
|
1179
|
+
UpdateBucketDomainCustomResponse,
|
|
1180
|
+
UpdateBucketDomainCustomError,
|
|
1181
|
+
Credentials | HttpClient.HttpClient
|
|
1182
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1183
|
+
input: UpdateBucketDomainCustomRequest,
|
|
1184
|
+
output: UpdateBucketDomainCustomResponse,
|
|
1185
|
+
errors: [],
|
|
1186
|
+
}));
|
|
1187
|
+
|
|
1188
|
+
export interface DeleteBucketDomainCustomRequest {
|
|
1189
|
+
bucketName: string;
|
|
1190
|
+
domain: string;
|
|
1191
|
+
/** Path param: Account ID. */
|
|
1192
|
+
accountId: string;
|
|
1193
|
+
/** Header param: Jurisdiction where objects in this bucket are guaranteed to be stored. */
|
|
1194
|
+
jurisdiction?: "default" | "eu" | "fedramp";
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1197
|
+
export const DeleteBucketDomainCustomRequest =
|
|
1198
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1199
|
+
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
1200
|
+
domain: Schema.String.pipe(T.HttpPath("domain")),
|
|
1201
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1202
|
+
jurisdiction: Schema.optional(
|
|
1203
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
1204
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
1205
|
+
}).pipe(
|
|
1206
|
+
T.Http({
|
|
1207
|
+
method: "DELETE",
|
|
1208
|
+
path: "/accounts/{account_id}/r2/buckets/{bucketName}/domains/custom/{domain}",
|
|
1209
|
+
}),
|
|
1210
|
+
) as unknown as Schema.Schema<DeleteBucketDomainCustomRequest>;
|
|
1211
|
+
|
|
1212
|
+
export interface DeleteBucketDomainCustomResponse {
|
|
1213
|
+
/** Name of the removed custom domain. */
|
|
1214
|
+
domain: string;
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1217
|
+
export const DeleteBucketDomainCustomResponse =
|
|
1218
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1219
|
+
domain: Schema.String,
|
|
1220
|
+
}).pipe(
|
|
1221
|
+
T.ResponsePath("result"),
|
|
1222
|
+
) as unknown as Schema.Schema<DeleteBucketDomainCustomResponse>;
|
|
1223
|
+
|
|
1224
|
+
export type DeleteBucketDomainCustomError = DefaultErrors;
|
|
1225
|
+
|
|
1226
|
+
export const deleteBucketDomainCustom: API.OperationMethod<
|
|
1227
|
+
DeleteBucketDomainCustomRequest,
|
|
1228
|
+
DeleteBucketDomainCustomResponse,
|
|
1229
|
+
DeleteBucketDomainCustomError,
|
|
1230
|
+
Credentials | HttpClient.HttpClient
|
|
1231
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1232
|
+
input: DeleteBucketDomainCustomRequest,
|
|
1233
|
+
output: DeleteBucketDomainCustomResponse,
|
|
1234
|
+
errors: [],
|
|
1235
|
+
}));
|
|
1236
|
+
|
|
1237
|
+
// =============================================================================
|
|
1238
|
+
// BucketDomainManaged
|
|
1239
|
+
// =============================================================================
|
|
1240
|
+
|
|
1241
|
+
export interface ListBucketDomainManagedsRequest {
|
|
1242
|
+
bucketName: string;
|
|
1243
|
+
/** Path param: Account ID. */
|
|
1244
|
+
accountId: string;
|
|
1245
|
+
/** Header param: Jurisdiction where objects in this bucket are guaranteed to be stored. */
|
|
1246
|
+
jurisdiction?: "default" | "eu" | "fedramp";
|
|
1247
|
+
}
|
|
1248
|
+
|
|
1249
|
+
export const ListBucketDomainManagedsRequest =
|
|
1250
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1251
|
+
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
1252
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1253
|
+
jurisdiction: Schema.optional(
|
|
1254
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
1255
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
1256
|
+
}).pipe(
|
|
1257
|
+
T.Http({
|
|
1258
|
+
method: "GET",
|
|
1259
|
+
path: "/accounts/{account_id}/r2/buckets/{bucketName}/domains/managed",
|
|
1260
|
+
}),
|
|
1261
|
+
) as unknown as Schema.Schema<ListBucketDomainManagedsRequest>;
|
|
1262
|
+
|
|
1263
|
+
export interface ListBucketDomainManagedsResponse {
|
|
1264
|
+
/** Bucket ID. */
|
|
1265
|
+
bucketId: string;
|
|
1266
|
+
/** Domain name of the bucket's r2.dev domain. */
|
|
1267
|
+
domain: string;
|
|
1268
|
+
/** Whether this bucket is publicly accessible at the r2.dev domain. */
|
|
1269
|
+
enabled: boolean;
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1272
|
+
export const ListBucketDomainManagedsResponse =
|
|
1273
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1274
|
+
bucketId: Schema.String,
|
|
1275
|
+
domain: Schema.String,
|
|
1276
|
+
enabled: Schema.Boolean,
|
|
1277
|
+
}).pipe(
|
|
1278
|
+
T.ResponsePath("result"),
|
|
1279
|
+
) as unknown as Schema.Schema<ListBucketDomainManagedsResponse>;
|
|
1280
|
+
|
|
1281
|
+
export type ListBucketDomainManagedsError =
|
|
1282
|
+
| DefaultErrors
|
|
1283
|
+
| NoSuchBucket
|
|
1284
|
+
| InvalidRoute;
|
|
1285
|
+
|
|
1286
|
+
export const listBucketDomainManageds: API.OperationMethod<
|
|
1287
|
+
ListBucketDomainManagedsRequest,
|
|
1288
|
+
ListBucketDomainManagedsResponse,
|
|
1289
|
+
ListBucketDomainManagedsError,
|
|
1290
|
+
Credentials | HttpClient.HttpClient
|
|
1291
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1292
|
+
input: ListBucketDomainManagedsRequest,
|
|
1293
|
+
output: ListBucketDomainManagedsResponse,
|
|
1294
|
+
errors: [NoSuchBucket, InvalidRoute],
|
|
1295
|
+
}));
|
|
1296
|
+
|
|
1297
|
+
export interface PutBucketDomainManagedRequest {
|
|
1298
|
+
bucketName: string;
|
|
1299
|
+
/** Path param: Account ID. */
|
|
1300
|
+
accountId: string;
|
|
1301
|
+
/** Header param: Jurisdiction where objects in this bucket are guaranteed to be stored. */
|
|
1302
|
+
jurisdiction?: "default" | "eu" | "fedramp";
|
|
1303
|
+
/** Body param: Whether to enable public bucket access at the r2.dev domain. */
|
|
1304
|
+
enabled: boolean;
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1307
|
+
export const PutBucketDomainManagedRequest =
|
|
1308
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1309
|
+
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
1310
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1311
|
+
jurisdiction: Schema.optional(
|
|
1312
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
1313
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
1314
|
+
enabled: Schema.Boolean,
|
|
1315
|
+
}).pipe(
|
|
1316
|
+
T.Http({
|
|
1317
|
+
method: "PUT",
|
|
1318
|
+
path: "/accounts/{account_id}/r2/buckets/{bucketName}/domains/managed",
|
|
1319
|
+
}),
|
|
1320
|
+
) as unknown as Schema.Schema<PutBucketDomainManagedRequest>;
|
|
1321
|
+
|
|
1322
|
+
export interface PutBucketDomainManagedResponse {
|
|
1323
|
+
/** Bucket ID. */
|
|
1324
|
+
bucketId: string;
|
|
1325
|
+
/** Domain name of the bucket's r2.dev domain. */
|
|
1326
|
+
domain: string;
|
|
1327
|
+
/** Whether this bucket is publicly accessible at the r2.dev domain. */
|
|
1328
|
+
enabled: boolean;
|
|
1329
|
+
}
|
|
1330
|
+
|
|
1331
|
+
export const PutBucketDomainManagedResponse =
|
|
1332
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1333
|
+
bucketId: Schema.String,
|
|
1334
|
+
domain: Schema.String,
|
|
1335
|
+
enabled: Schema.Boolean,
|
|
1336
|
+
}).pipe(
|
|
1337
|
+
T.ResponsePath("result"),
|
|
1338
|
+
) as unknown as Schema.Schema<PutBucketDomainManagedResponse>;
|
|
1339
|
+
|
|
1340
|
+
export type PutBucketDomainManagedError =
|
|
1341
|
+
| DefaultErrors
|
|
1342
|
+
| NoSuchBucket
|
|
1343
|
+
| InvalidRoute;
|
|
1344
|
+
|
|
1345
|
+
export const putBucketDomainManaged: API.OperationMethod<
|
|
1346
|
+
PutBucketDomainManagedRequest,
|
|
1347
|
+
PutBucketDomainManagedResponse,
|
|
1348
|
+
PutBucketDomainManagedError,
|
|
1349
|
+
Credentials | HttpClient.HttpClient
|
|
1350
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1351
|
+
input: PutBucketDomainManagedRequest,
|
|
1352
|
+
output: PutBucketDomainManagedResponse,
|
|
1353
|
+
errors: [NoSuchBucket, InvalidRoute],
|
|
1354
|
+
}));
|
|
1355
|
+
|
|
1356
|
+
// =============================================================================
|
|
1357
|
+
// BucketEventNotification
|
|
1358
|
+
// =============================================================================
|
|
1359
|
+
|
|
1360
|
+
export interface GetBucketEventNotificationRequest {
|
|
1361
|
+
bucketName: string;
|
|
1362
|
+
queueId: string;
|
|
1363
|
+
/** Path param: Account ID. */
|
|
1364
|
+
accountId: string;
|
|
1365
|
+
/** Header param: The bucket jurisdiction. */
|
|
1366
|
+
jurisdiction?: "default" | "eu" | "fedramp";
|
|
1367
|
+
}
|
|
1368
|
+
|
|
1369
|
+
export const GetBucketEventNotificationRequest =
|
|
1370
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1371
|
+
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
1372
|
+
queueId: Schema.String.pipe(T.HttpPath("queueId")),
|
|
1373
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1374
|
+
jurisdiction: Schema.optional(
|
|
1375
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
1376
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
1377
|
+
}).pipe(
|
|
1378
|
+
T.Http({
|
|
1379
|
+
method: "GET",
|
|
1380
|
+
path: "/accounts/{account_id}/event_notifications/r2/{bucketName}/configuration/queues/{queueId}",
|
|
1381
|
+
}),
|
|
1382
|
+
) as unknown as Schema.Schema<GetBucketEventNotificationRequest>;
|
|
1383
|
+
|
|
1384
|
+
export interface GetBucketEventNotificationResponse {
|
|
1385
|
+
/** Queue ID. */
|
|
1386
|
+
queueId?: string | null;
|
|
1387
|
+
/** Name of the queue. */
|
|
1388
|
+
queueName?: string | null;
|
|
1389
|
+
rules?:
|
|
1390
|
+
| {
|
|
1391
|
+
actions: (
|
|
1392
|
+
| "PutObject"
|
|
1393
|
+
| "CopyObject"
|
|
1394
|
+
| "DeleteObject"
|
|
1395
|
+
| "CompleteMultipartUpload"
|
|
1396
|
+
| "LifecycleDeletion"
|
|
1397
|
+
)[];
|
|
1398
|
+
createdAt?: string | null;
|
|
1399
|
+
description?: string | null;
|
|
1400
|
+
prefix?: string | null;
|
|
1401
|
+
ruleId?: string | null;
|
|
1402
|
+
suffix?: string | null;
|
|
1403
|
+
}[]
|
|
1404
|
+
| null;
|
|
1405
|
+
}
|
|
1406
|
+
|
|
1407
|
+
export const GetBucketEventNotificationResponse =
|
|
1408
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1409
|
+
queueId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1410
|
+
queueName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1411
|
+
rules: Schema.optional(
|
|
1412
|
+
Schema.Union([
|
|
1413
|
+
Schema.Array(
|
|
1414
|
+
Schema.Struct({
|
|
1415
|
+
actions: Schema.Array(
|
|
1416
|
+
Schema.Literals([
|
|
1417
|
+
"PutObject",
|
|
1418
|
+
"CopyObject",
|
|
1419
|
+
"DeleteObject",
|
|
1420
|
+
"CompleteMultipartUpload",
|
|
1421
|
+
"LifecycleDeletion",
|
|
1422
|
+
]),
|
|
1423
|
+
),
|
|
1424
|
+
createdAt: Schema.optional(
|
|
1425
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1426
|
+
),
|
|
1427
|
+
description: Schema.optional(
|
|
1428
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1429
|
+
),
|
|
1430
|
+
prefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1431
|
+
ruleId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1432
|
+
suffix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1433
|
+
}),
|
|
1434
|
+
),
|
|
1435
|
+
Schema.Null,
|
|
1436
|
+
]),
|
|
1437
|
+
),
|
|
1438
|
+
}).pipe(
|
|
1439
|
+
T.ResponsePath("result"),
|
|
1440
|
+
) as unknown as Schema.Schema<GetBucketEventNotificationResponse>;
|
|
1441
|
+
|
|
1442
|
+
export type GetBucketEventNotificationError = DefaultErrors;
|
|
1443
|
+
|
|
1444
|
+
export const getBucketEventNotification: API.OperationMethod<
|
|
1445
|
+
GetBucketEventNotificationRequest,
|
|
1446
|
+
GetBucketEventNotificationResponse,
|
|
1447
|
+
GetBucketEventNotificationError,
|
|
1448
|
+
Credentials | HttpClient.HttpClient
|
|
1449
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1450
|
+
input: GetBucketEventNotificationRequest,
|
|
1451
|
+
output: GetBucketEventNotificationResponse,
|
|
1452
|
+
errors: [],
|
|
1453
|
+
}));
|
|
1454
|
+
|
|
1455
|
+
export interface ListBucketEventNotificationsRequest {
|
|
1456
|
+
bucketName: string;
|
|
1457
|
+
/** Path param: Account ID. */
|
|
1458
|
+
accountId: string;
|
|
1459
|
+
/** Header param: Jurisdiction where objects in this bucket are guaranteed to be stored. */
|
|
1460
|
+
jurisdiction?: "default" | "eu" | "fedramp";
|
|
1461
|
+
}
|
|
1462
|
+
|
|
1463
|
+
export const ListBucketEventNotificationsRequest =
|
|
1464
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1465
|
+
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
1466
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1467
|
+
jurisdiction: Schema.optional(
|
|
1468
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
1469
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
1470
|
+
}).pipe(
|
|
1471
|
+
T.Http({
|
|
1472
|
+
method: "GET",
|
|
1473
|
+
path: "/accounts/{account_id}/event_notifications/r2/{bucketName}/configuration",
|
|
1474
|
+
}),
|
|
1475
|
+
) as unknown as Schema.Schema<ListBucketEventNotificationsRequest>;
|
|
1476
|
+
|
|
1477
|
+
export interface ListBucketEventNotificationsResponse {
|
|
1478
|
+
/** Name of the bucket. */
|
|
1479
|
+
bucketName?: string | null;
|
|
1480
|
+
/** List of queues associated with the bucket. */
|
|
1481
|
+
queues?:
|
|
1482
|
+
| {
|
|
1483
|
+
queueId?: string | null;
|
|
1484
|
+
queueName?: string | null;
|
|
1485
|
+
rules?:
|
|
1486
|
+
| {
|
|
1487
|
+
actions: (
|
|
1488
|
+
| "PutObject"
|
|
1489
|
+
| "CopyObject"
|
|
1490
|
+
| "DeleteObject"
|
|
1491
|
+
| "CompleteMultipartUpload"
|
|
1492
|
+
| "LifecycleDeletion"
|
|
1493
|
+
)[];
|
|
1494
|
+
createdAt?: string | null;
|
|
1495
|
+
description?: string | null;
|
|
1496
|
+
prefix?: string | null;
|
|
1497
|
+
ruleId?: string | null;
|
|
1498
|
+
suffix?: string | null;
|
|
1499
|
+
}[]
|
|
1500
|
+
| null;
|
|
1501
|
+
}[]
|
|
1502
|
+
| null;
|
|
1503
|
+
}
|
|
1504
|
+
|
|
1505
|
+
export const ListBucketEventNotificationsResponse =
|
|
1506
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1507
|
+
bucketName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1508
|
+
queues: Schema.optional(
|
|
1509
|
+
Schema.Union([
|
|
1510
|
+
Schema.Array(
|
|
1511
|
+
Schema.Struct({
|
|
1512
|
+
queueId: Schema.optional(
|
|
1513
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1514
|
+
),
|
|
1515
|
+
queueName: Schema.optional(
|
|
1516
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1517
|
+
),
|
|
1518
|
+
rules: Schema.optional(
|
|
1519
|
+
Schema.Union([
|
|
1520
|
+
Schema.Array(
|
|
1521
|
+
Schema.Struct({
|
|
1522
|
+
actions: Schema.Array(
|
|
1523
|
+
Schema.Literals([
|
|
1524
|
+
"PutObject",
|
|
1525
|
+
"CopyObject",
|
|
1526
|
+
"DeleteObject",
|
|
1527
|
+
"CompleteMultipartUpload",
|
|
1528
|
+
"LifecycleDeletion",
|
|
1529
|
+
]),
|
|
1530
|
+
),
|
|
1531
|
+
createdAt: Schema.optional(
|
|
1532
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1533
|
+
),
|
|
1534
|
+
description: Schema.optional(
|
|
1535
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1536
|
+
),
|
|
1537
|
+
prefix: Schema.optional(
|
|
1538
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1539
|
+
),
|
|
1540
|
+
ruleId: Schema.optional(
|
|
1541
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1542
|
+
),
|
|
1543
|
+
suffix: Schema.optional(
|
|
1544
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1545
|
+
),
|
|
1546
|
+
}),
|
|
1547
|
+
),
|
|
1548
|
+
Schema.Null,
|
|
1549
|
+
]),
|
|
1550
|
+
),
|
|
1551
|
+
}),
|
|
1552
|
+
),
|
|
1553
|
+
Schema.Null,
|
|
1554
|
+
]),
|
|
1555
|
+
),
|
|
1556
|
+
}).pipe(
|
|
1557
|
+
T.ResponsePath("result"),
|
|
1558
|
+
) as unknown as Schema.Schema<ListBucketEventNotificationsResponse>;
|
|
1559
|
+
|
|
1560
|
+
export type ListBucketEventNotificationsError =
|
|
1561
|
+
| DefaultErrors
|
|
1562
|
+
| NoSuchBucket
|
|
1563
|
+
| InvalidRoute
|
|
1564
|
+
| NoEventNotificationConfig
|
|
1565
|
+
| BucketNotFound;
|
|
1566
|
+
|
|
1567
|
+
export const listBucketEventNotifications: API.OperationMethod<
|
|
1568
|
+
ListBucketEventNotificationsRequest,
|
|
1569
|
+
ListBucketEventNotificationsResponse,
|
|
1570
|
+
ListBucketEventNotificationsError,
|
|
1571
|
+
Credentials | HttpClient.HttpClient
|
|
1572
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1573
|
+
input: ListBucketEventNotificationsRequest,
|
|
1574
|
+
output: ListBucketEventNotificationsResponse,
|
|
1575
|
+
errors: [
|
|
1576
|
+
NoSuchBucket,
|
|
1577
|
+
InvalidRoute,
|
|
1578
|
+
NoEventNotificationConfig,
|
|
1579
|
+
BucketNotFound,
|
|
1580
|
+
],
|
|
1581
|
+
}));
|
|
1582
|
+
|
|
1583
|
+
export interface PutBucketEventNotificationRequest {
|
|
1584
|
+
bucketName: string;
|
|
1585
|
+
queueId: string;
|
|
1586
|
+
/** Path param: Account ID. */
|
|
1587
|
+
accountId: string;
|
|
1588
|
+
/** Header param: Jurisdiction where objects in this bucket are guaranteed to be stored. */
|
|
1589
|
+
jurisdiction?: "default" | "eu" | "fedramp";
|
|
1590
|
+
/** Body param: Array of rules to drive notifications. */
|
|
1591
|
+
rules: {
|
|
1592
|
+
actions: (
|
|
1593
|
+
| "PutObject"
|
|
1594
|
+
| "CopyObject"
|
|
1595
|
+
| "DeleteObject"
|
|
1596
|
+
| "CompleteMultipartUpload"
|
|
1597
|
+
| "LifecycleDeletion"
|
|
1598
|
+
)[];
|
|
1599
|
+
description?: string;
|
|
1600
|
+
prefix?: string;
|
|
1601
|
+
suffix?: string;
|
|
1602
|
+
}[];
|
|
1603
|
+
}
|
|
1604
|
+
|
|
1605
|
+
export const PutBucketEventNotificationRequest =
|
|
1606
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1607
|
+
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
1608
|
+
queueId: Schema.String.pipe(T.HttpPath("queueId")),
|
|
1609
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1610
|
+
jurisdiction: Schema.optional(
|
|
1611
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
1612
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
1613
|
+
rules: Schema.Array(
|
|
1614
|
+
Schema.Struct({
|
|
1615
|
+
actions: Schema.Array(
|
|
1616
|
+
Schema.Literals([
|
|
1617
|
+
"PutObject",
|
|
1618
|
+
"CopyObject",
|
|
1619
|
+
"DeleteObject",
|
|
1620
|
+
"CompleteMultipartUpload",
|
|
1621
|
+
"LifecycleDeletion",
|
|
1622
|
+
]),
|
|
1623
|
+
),
|
|
1624
|
+
description: Schema.optional(Schema.String),
|
|
1625
|
+
prefix: Schema.optional(Schema.String),
|
|
1626
|
+
suffix: Schema.optional(Schema.String),
|
|
1627
|
+
}),
|
|
1628
|
+
),
|
|
1629
|
+
}).pipe(
|
|
1630
|
+
T.Http({
|
|
1631
|
+
method: "PUT",
|
|
1632
|
+
path: "/accounts/{account_id}/event_notifications/r2/{bucketName}/configuration/queues/{queueId}",
|
|
1633
|
+
}),
|
|
1634
|
+
) as unknown as Schema.Schema<PutBucketEventNotificationRequest>;
|
|
1635
|
+
|
|
1636
|
+
export type PutBucketEventNotificationResponse = unknown;
|
|
1637
|
+
|
|
1638
|
+
export const PutBucketEventNotificationResponse =
|
|
1639
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(
|
|
1640
|
+
T.ResponsePath("result"),
|
|
1641
|
+
) as unknown as Schema.Schema<PutBucketEventNotificationResponse>;
|
|
1642
|
+
|
|
1643
|
+
export type PutBucketEventNotificationError = DefaultErrors;
|
|
1644
|
+
|
|
1645
|
+
export const putBucketEventNotification: API.OperationMethod<
|
|
1646
|
+
PutBucketEventNotificationRequest,
|
|
1647
|
+
PutBucketEventNotificationResponse,
|
|
1648
|
+
PutBucketEventNotificationError,
|
|
1649
|
+
Credentials | HttpClient.HttpClient
|
|
1650
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1651
|
+
input: PutBucketEventNotificationRequest,
|
|
1652
|
+
output: PutBucketEventNotificationResponse,
|
|
1653
|
+
errors: [],
|
|
1654
|
+
}));
|
|
1655
|
+
|
|
1656
|
+
export interface DeleteBucketEventNotificationRequest {
|
|
1657
|
+
bucketName: string;
|
|
1658
|
+
queueId: string;
|
|
1659
|
+
/** Path param: Account ID. */
|
|
1660
|
+
accountId: string;
|
|
1661
|
+
/** Header param: Jurisdiction where objects in this bucket are guaranteed to be stored. */
|
|
1662
|
+
jurisdiction?: "default" | "eu" | "fedramp";
|
|
1663
|
+
}
|
|
1664
|
+
|
|
1665
|
+
export const DeleteBucketEventNotificationRequest =
|
|
1666
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1667
|
+
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
1668
|
+
queueId: Schema.String.pipe(T.HttpPath("queueId")),
|
|
1669
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1670
|
+
jurisdiction: Schema.optional(
|
|
1671
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
1672
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
1673
|
+
}).pipe(
|
|
1674
|
+
T.Http({
|
|
1675
|
+
method: "DELETE",
|
|
1676
|
+
path: "/accounts/{account_id}/event_notifications/r2/{bucketName}/configuration/queues/{queueId}",
|
|
1677
|
+
}),
|
|
1678
|
+
) as unknown as Schema.Schema<DeleteBucketEventNotificationRequest>;
|
|
1679
|
+
|
|
1680
|
+
export type DeleteBucketEventNotificationResponse = unknown;
|
|
1681
|
+
|
|
1682
|
+
export const DeleteBucketEventNotificationResponse =
|
|
1683
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(
|
|
1684
|
+
T.ResponsePath("result"),
|
|
1685
|
+
) as unknown as Schema.Schema<DeleteBucketEventNotificationResponse>;
|
|
1686
|
+
|
|
1687
|
+
export type DeleteBucketEventNotificationError = DefaultErrors;
|
|
1688
|
+
|
|
1689
|
+
export const deleteBucketEventNotification: API.OperationMethod<
|
|
1690
|
+
DeleteBucketEventNotificationRequest,
|
|
1691
|
+
DeleteBucketEventNotificationResponse,
|
|
1692
|
+
DeleteBucketEventNotificationError,
|
|
1693
|
+
Credentials | HttpClient.HttpClient
|
|
1694
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1695
|
+
input: DeleteBucketEventNotificationRequest,
|
|
1696
|
+
output: DeleteBucketEventNotificationResponse,
|
|
1697
|
+
errors: [],
|
|
1698
|
+
}));
|
|
1699
|
+
|
|
1700
|
+
// =============================================================================
|
|
1701
|
+
// BucketLifecycle
|
|
1702
|
+
// =============================================================================
|
|
1703
|
+
|
|
1704
|
+
export interface GetBucketLifecycleRequest {
|
|
1705
|
+
bucketName: string;
|
|
1706
|
+
/** Path param: Account ID. */
|
|
1707
|
+
accountId: string;
|
|
1708
|
+
/** Header param: Jurisdiction where objects in this bucket are guaranteed to be stored. */
|
|
1709
|
+
jurisdiction?: "default" | "eu" | "fedramp";
|
|
1710
|
+
}
|
|
1711
|
+
|
|
1712
|
+
export const GetBucketLifecycleRequest =
|
|
1713
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1714
|
+
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
1715
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1716
|
+
jurisdiction: Schema.optional(
|
|
1717
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
1718
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
1719
|
+
}).pipe(
|
|
1720
|
+
T.Http({
|
|
1721
|
+
method: "GET",
|
|
1722
|
+
path: "/accounts/{account_id}/r2/buckets/{bucketName}/lifecycle",
|
|
1723
|
+
}),
|
|
1724
|
+
) as unknown as Schema.Schema<GetBucketLifecycleRequest>;
|
|
1725
|
+
|
|
1726
|
+
export interface GetBucketLifecycleResponse {
|
|
1727
|
+
rules?:
|
|
1728
|
+
| {
|
|
1729
|
+
id: string;
|
|
1730
|
+
conditions: { prefix?: string | null };
|
|
1731
|
+
enabled: boolean;
|
|
1732
|
+
abortMultipartUploadsTransition?: {
|
|
1733
|
+
condition?: { maxAge: number; type: "Age" } | null;
|
|
1734
|
+
} | null;
|
|
1735
|
+
deleteObjectsTransition?: {
|
|
1736
|
+
condition?:
|
|
1737
|
+
| { maxAge: number; type: "Age" }
|
|
1738
|
+
| { date: string; type: "Date" }
|
|
1739
|
+
| null;
|
|
1740
|
+
} | null;
|
|
1741
|
+
storageClassTransitions?:
|
|
1742
|
+
| {
|
|
1743
|
+
condition:
|
|
1744
|
+
| { maxAge: number; type: "Age" }
|
|
1745
|
+
| { date: string; type: "Date" };
|
|
1746
|
+
storageClass: "InfrequentAccess";
|
|
1747
|
+
}[]
|
|
1748
|
+
| null;
|
|
1749
|
+
}[]
|
|
1750
|
+
| null;
|
|
1751
|
+
}
|
|
1752
|
+
|
|
1753
|
+
export const GetBucketLifecycleResponse =
|
|
1754
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1755
|
+
rules: Schema.optional(
|
|
1756
|
+
Schema.Union([
|
|
1757
|
+
Schema.Array(
|
|
1758
|
+
Schema.Struct({
|
|
1759
|
+
id: Schema.String,
|
|
1760
|
+
conditions: Schema.Struct({
|
|
1761
|
+
prefix: Schema.optional(
|
|
1762
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1763
|
+
),
|
|
1764
|
+
}),
|
|
1765
|
+
enabled: Schema.Boolean,
|
|
1766
|
+
abortMultipartUploadsTransition: Schema.optional(
|
|
1767
|
+
Schema.Union([
|
|
1768
|
+
Schema.Struct({
|
|
1769
|
+
condition: Schema.optional(
|
|
1770
|
+
Schema.Union([
|
|
1771
|
+
Schema.Struct({
|
|
1772
|
+
maxAge: Schema.Number,
|
|
1773
|
+
type: Schema.Literal("Age"),
|
|
1774
|
+
}),
|
|
1775
|
+
Schema.Null,
|
|
1776
|
+
]),
|
|
1777
|
+
),
|
|
1778
|
+
}),
|
|
1779
|
+
Schema.Null,
|
|
1780
|
+
]),
|
|
1781
|
+
),
|
|
1782
|
+
deleteObjectsTransition: Schema.optional(
|
|
1783
|
+
Schema.Union([
|
|
1784
|
+
Schema.Struct({
|
|
1785
|
+
condition: Schema.optional(
|
|
1786
|
+
Schema.Union([
|
|
1787
|
+
Schema.Union([
|
|
1788
|
+
Schema.Struct({
|
|
1789
|
+
maxAge: Schema.Number,
|
|
1790
|
+
type: Schema.Literal("Age"),
|
|
1791
|
+
}),
|
|
1792
|
+
Schema.Struct({
|
|
1793
|
+
date: Schema.String,
|
|
1794
|
+
type: Schema.Literal("Date"),
|
|
1795
|
+
}),
|
|
1796
|
+
]),
|
|
1797
|
+
Schema.Null,
|
|
1798
|
+
]),
|
|
1799
|
+
),
|
|
1800
|
+
}),
|
|
1801
|
+
Schema.Null,
|
|
1802
|
+
]),
|
|
1803
|
+
),
|
|
1804
|
+
storageClassTransitions: Schema.optional(
|
|
1805
|
+
Schema.Union([
|
|
1806
|
+
Schema.Array(
|
|
1807
|
+
Schema.Struct({
|
|
1808
|
+
condition: Schema.Union([
|
|
1809
|
+
Schema.Struct({
|
|
1810
|
+
maxAge: Schema.Number,
|
|
1811
|
+
type: Schema.Literal("Age"),
|
|
1812
|
+
}),
|
|
1813
|
+
Schema.Struct({
|
|
1814
|
+
date: Schema.String,
|
|
1815
|
+
type: Schema.Literal("Date"),
|
|
1816
|
+
}),
|
|
1817
|
+
]),
|
|
1818
|
+
storageClass: Schema.Literal("InfrequentAccess"),
|
|
1819
|
+
}),
|
|
1820
|
+
),
|
|
1821
|
+
Schema.Null,
|
|
1822
|
+
]),
|
|
1823
|
+
),
|
|
1824
|
+
}),
|
|
1825
|
+
),
|
|
1826
|
+
Schema.Null,
|
|
1827
|
+
]),
|
|
1828
|
+
),
|
|
1829
|
+
}).pipe(
|
|
1830
|
+
T.ResponsePath("result"),
|
|
1831
|
+
) as unknown as Schema.Schema<GetBucketLifecycleResponse>;
|
|
1832
|
+
|
|
1833
|
+
export type GetBucketLifecycleError =
|
|
1834
|
+
| DefaultErrors
|
|
1835
|
+
| NoSuchBucket
|
|
1836
|
+
| InvalidRoute;
|
|
1837
|
+
|
|
1838
|
+
export const getBucketLifecycle: API.OperationMethod<
|
|
1839
|
+
GetBucketLifecycleRequest,
|
|
1840
|
+
GetBucketLifecycleResponse,
|
|
1841
|
+
GetBucketLifecycleError,
|
|
1842
|
+
Credentials | HttpClient.HttpClient
|
|
1843
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1844
|
+
input: GetBucketLifecycleRequest,
|
|
1845
|
+
output: GetBucketLifecycleResponse,
|
|
1846
|
+
errors: [NoSuchBucket, InvalidRoute],
|
|
1847
|
+
}));
|
|
1848
|
+
|
|
1849
|
+
export interface PutBucketLifecycleRequest {
|
|
1850
|
+
bucketName: string;
|
|
1851
|
+
/** Path param: Account ID. */
|
|
1852
|
+
accountId: string;
|
|
1853
|
+
/** Header param: Jurisdiction where objects in this bucket are guaranteed to be stored. */
|
|
1854
|
+
jurisdiction?: "default" | "eu" | "fedramp";
|
|
1855
|
+
/** Body param: */
|
|
1856
|
+
rules?: {
|
|
1857
|
+
id: string;
|
|
1858
|
+
conditions: { prefix: string };
|
|
1859
|
+
enabled: boolean;
|
|
1860
|
+
abortMultipartUploadsTransition?: {
|
|
1861
|
+
condition?: { maxAge: number; type: "Age" };
|
|
1862
|
+
};
|
|
1863
|
+
deleteObjectsTransition?: {
|
|
1864
|
+
condition?:
|
|
1865
|
+
| { maxAge: number; type: "Age" }
|
|
1866
|
+
| { date: string; type: "Date" };
|
|
1867
|
+
};
|
|
1868
|
+
storageClassTransitions?: {
|
|
1869
|
+
condition:
|
|
1870
|
+
| { maxAge: number; type: "Age" }
|
|
1871
|
+
| { date: string; type: "Date" };
|
|
1872
|
+
storageClass: "InfrequentAccess";
|
|
1873
|
+
}[];
|
|
1874
|
+
}[];
|
|
1875
|
+
}
|
|
1876
|
+
|
|
1877
|
+
export const PutBucketLifecycleRequest =
|
|
1878
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1879
|
+
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
1880
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1881
|
+
jurisdiction: Schema.optional(
|
|
1882
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
1883
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
1884
|
+
rules: Schema.optional(
|
|
1885
|
+
Schema.Array(
|
|
1886
|
+
Schema.Struct({
|
|
1887
|
+
id: Schema.String,
|
|
1888
|
+
conditions: Schema.Struct({
|
|
1889
|
+
prefix: Schema.String,
|
|
1890
|
+
}),
|
|
1891
|
+
enabled: Schema.Boolean,
|
|
1892
|
+
abortMultipartUploadsTransition: Schema.optional(
|
|
1893
|
+
Schema.Struct({
|
|
1894
|
+
condition: Schema.optional(
|
|
1895
|
+
Schema.Struct({
|
|
1896
|
+
maxAge: Schema.Number,
|
|
1897
|
+
type: Schema.Literal("Age"),
|
|
1898
|
+
}),
|
|
1899
|
+
),
|
|
1900
|
+
}),
|
|
1901
|
+
),
|
|
1902
|
+
deleteObjectsTransition: Schema.optional(
|
|
1903
|
+
Schema.Struct({
|
|
1904
|
+
condition: Schema.optional(
|
|
1905
|
+
Schema.Union([
|
|
1906
|
+
Schema.Struct({
|
|
1907
|
+
maxAge: Schema.Number,
|
|
1908
|
+
type: Schema.Literal("Age"),
|
|
1909
|
+
}),
|
|
1910
|
+
Schema.Struct({
|
|
1911
|
+
date: Schema.String,
|
|
1912
|
+
type: Schema.Literal("Date"),
|
|
1913
|
+
}),
|
|
1914
|
+
]),
|
|
1915
|
+
),
|
|
1916
|
+
}),
|
|
1917
|
+
),
|
|
1918
|
+
storageClassTransitions: Schema.optional(
|
|
1919
|
+
Schema.Array(
|
|
1920
|
+
Schema.Struct({
|
|
1921
|
+
condition: Schema.Union([
|
|
1922
|
+
Schema.Struct({
|
|
1923
|
+
maxAge: Schema.Number,
|
|
1924
|
+
type: Schema.Literal("Age"),
|
|
1925
|
+
}),
|
|
1926
|
+
Schema.Struct({
|
|
1927
|
+
date: Schema.String,
|
|
1928
|
+
type: Schema.Literal("Date"),
|
|
1929
|
+
}),
|
|
1930
|
+
]),
|
|
1931
|
+
storageClass: Schema.Literal("InfrequentAccess"),
|
|
1932
|
+
}),
|
|
1933
|
+
),
|
|
1934
|
+
),
|
|
1935
|
+
}),
|
|
1936
|
+
),
|
|
1937
|
+
),
|
|
1938
|
+
}).pipe(
|
|
1939
|
+
T.Http({
|
|
1940
|
+
method: "PUT",
|
|
1941
|
+
path: "/accounts/{account_id}/r2/buckets/{bucketName}/lifecycle",
|
|
1942
|
+
}),
|
|
1943
|
+
) as unknown as Schema.Schema<PutBucketLifecycleRequest>;
|
|
1944
|
+
|
|
1945
|
+
export type PutBucketLifecycleResponse = unknown;
|
|
1946
|
+
|
|
1947
|
+
export const PutBucketLifecycleResponse =
|
|
1948
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(
|
|
1949
|
+
T.ResponsePath("result"),
|
|
1950
|
+
) as unknown as Schema.Schema<PutBucketLifecycleResponse>;
|
|
1951
|
+
|
|
1952
|
+
export type PutBucketLifecycleError =
|
|
1953
|
+
| DefaultErrors
|
|
1954
|
+
| NoSuchBucket
|
|
1955
|
+
| InvalidRoute;
|
|
1956
|
+
|
|
1957
|
+
export const putBucketLifecycle: API.OperationMethod<
|
|
1958
|
+
PutBucketLifecycleRequest,
|
|
1959
|
+
PutBucketLifecycleResponse,
|
|
1960
|
+
PutBucketLifecycleError,
|
|
1961
|
+
Credentials | HttpClient.HttpClient
|
|
1962
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1963
|
+
input: PutBucketLifecycleRequest,
|
|
1964
|
+
output: PutBucketLifecycleResponse,
|
|
1965
|
+
errors: [NoSuchBucket, InvalidRoute],
|
|
1966
|
+
}));
|
|
1967
|
+
|
|
1968
|
+
// =============================================================================
|
|
1969
|
+
// BucketLock
|
|
1970
|
+
// =============================================================================
|
|
1971
|
+
|
|
1972
|
+
export interface GetBucketLockRequest {
|
|
1973
|
+
bucketName: string;
|
|
1974
|
+
/** Path param: Account ID. */
|
|
1975
|
+
accountId: string;
|
|
1976
|
+
/** Header param: Jurisdiction where objects in this bucket are guaranteed to be stored. */
|
|
1977
|
+
jurisdiction?: "default" | "eu" | "fedramp";
|
|
1978
|
+
}
|
|
1979
|
+
|
|
1980
|
+
export const GetBucketLockRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1981
|
+
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
1982
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1983
|
+
jurisdiction: Schema.optional(
|
|
1984
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
1985
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
1986
|
+
}).pipe(
|
|
1987
|
+
T.Http({
|
|
1988
|
+
method: "GET",
|
|
1989
|
+
path: "/accounts/{account_id}/r2/buckets/{bucketName}/lock",
|
|
1990
|
+
}),
|
|
1991
|
+
) as unknown as Schema.Schema<GetBucketLockRequest>;
|
|
1992
|
+
|
|
1993
|
+
export interface GetBucketLockResponse {
|
|
1994
|
+
rules?:
|
|
1995
|
+
| {
|
|
1996
|
+
id: string;
|
|
1997
|
+
condition:
|
|
1998
|
+
| { maxAgeSeconds: number; type: "Age" }
|
|
1999
|
+
| { date: string; type: "Date" }
|
|
2000
|
+
| { type: "Indefinite" };
|
|
2001
|
+
enabled: boolean;
|
|
2002
|
+
prefix?: string | null;
|
|
2003
|
+
}[]
|
|
2004
|
+
| null;
|
|
2005
|
+
}
|
|
2006
|
+
|
|
2007
|
+
export const GetBucketLockResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2008
|
+
rules: Schema.optional(
|
|
2009
|
+
Schema.Union([
|
|
2010
|
+
Schema.Array(
|
|
2011
|
+
Schema.Struct({
|
|
2012
|
+
id: Schema.String,
|
|
2013
|
+
condition: Schema.Union([
|
|
2014
|
+
Schema.Struct({
|
|
2015
|
+
maxAgeSeconds: Schema.Number,
|
|
2016
|
+
type: Schema.Literal("Age"),
|
|
2017
|
+
}),
|
|
2018
|
+
Schema.Struct({
|
|
2019
|
+
date: Schema.String,
|
|
2020
|
+
type: Schema.Literal("Date"),
|
|
2021
|
+
}),
|
|
2022
|
+
Schema.Struct({
|
|
2023
|
+
type: Schema.Literal("Indefinite"),
|
|
2024
|
+
}),
|
|
2025
|
+
]),
|
|
2026
|
+
enabled: Schema.Boolean,
|
|
2027
|
+
prefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2028
|
+
}),
|
|
2029
|
+
),
|
|
2030
|
+
Schema.Null,
|
|
2031
|
+
]),
|
|
2032
|
+
),
|
|
2033
|
+
}).pipe(
|
|
2034
|
+
T.ResponsePath("result"),
|
|
2035
|
+
) as unknown as Schema.Schema<GetBucketLockResponse>;
|
|
2036
|
+
|
|
2037
|
+
export type GetBucketLockError = DefaultErrors | NoSuchBucket | InvalidRoute;
|
|
2038
|
+
|
|
2039
|
+
export const getBucketLock: API.OperationMethod<
|
|
2040
|
+
GetBucketLockRequest,
|
|
2041
|
+
GetBucketLockResponse,
|
|
2042
|
+
GetBucketLockError,
|
|
2043
|
+
Credentials | HttpClient.HttpClient
|
|
2044
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
2045
|
+
input: GetBucketLockRequest,
|
|
2046
|
+
output: GetBucketLockResponse,
|
|
2047
|
+
errors: [NoSuchBucket, InvalidRoute],
|
|
2048
|
+
}));
|
|
2049
|
+
|
|
2050
|
+
export interface PutBucketLockRequest {
|
|
2051
|
+
bucketName: string;
|
|
2052
|
+
/** Path param: Account ID. */
|
|
2053
|
+
accountId: string;
|
|
2054
|
+
/** Header param: Jurisdiction where objects in this bucket are guaranteed to be stored. */
|
|
2055
|
+
jurisdiction?: "default" | "eu" | "fedramp";
|
|
2056
|
+
/** Body param: */
|
|
2057
|
+
rules?: {
|
|
2058
|
+
id: string;
|
|
2059
|
+
condition:
|
|
2060
|
+
| { maxAgeSeconds: number; type: "Age" }
|
|
2061
|
+
| { date: string; type: "Date" }
|
|
2062
|
+
| { type: "Indefinite" };
|
|
2063
|
+
enabled: boolean;
|
|
2064
|
+
prefix?: string;
|
|
2065
|
+
}[];
|
|
2066
|
+
}
|
|
2067
|
+
|
|
2068
|
+
export const PutBucketLockRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2069
|
+
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
2070
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2071
|
+
jurisdiction: Schema.optional(
|
|
2072
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
2073
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
2074
|
+
rules: Schema.optional(
|
|
2075
|
+
Schema.Array(
|
|
2076
|
+
Schema.Struct({
|
|
2077
|
+
id: Schema.String,
|
|
2078
|
+
condition: Schema.Union([
|
|
2079
|
+
Schema.Struct({
|
|
2080
|
+
maxAgeSeconds: Schema.Number,
|
|
2081
|
+
type: Schema.Literal("Age"),
|
|
2082
|
+
}),
|
|
2083
|
+
Schema.Struct({
|
|
2084
|
+
date: Schema.String,
|
|
2085
|
+
type: Schema.Literal("Date"),
|
|
2086
|
+
}),
|
|
2087
|
+
Schema.Struct({
|
|
2088
|
+
type: Schema.Literal("Indefinite"),
|
|
2089
|
+
}),
|
|
2090
|
+
]),
|
|
2091
|
+
enabled: Schema.Boolean,
|
|
2092
|
+
prefix: Schema.optional(Schema.String),
|
|
2093
|
+
}),
|
|
2094
|
+
),
|
|
2095
|
+
),
|
|
2096
|
+
}).pipe(
|
|
2097
|
+
T.Http({
|
|
2098
|
+
method: "PUT",
|
|
2099
|
+
path: "/accounts/{account_id}/r2/buckets/{bucketName}/lock",
|
|
2100
|
+
}),
|
|
2101
|
+
) as unknown as Schema.Schema<PutBucketLockRequest>;
|
|
2102
|
+
|
|
2103
|
+
export type PutBucketLockResponse = unknown;
|
|
2104
|
+
|
|
2105
|
+
export const PutBucketLockResponse =
|
|
2106
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(
|
|
2107
|
+
T.ResponsePath("result"),
|
|
2108
|
+
) as unknown as Schema.Schema<PutBucketLockResponse>;
|
|
2109
|
+
|
|
2110
|
+
export type PutBucketLockError = DefaultErrors | NoSuchBucket | InvalidRoute;
|
|
2111
|
+
|
|
2112
|
+
export const putBucketLock: API.OperationMethod<
|
|
2113
|
+
PutBucketLockRequest,
|
|
2114
|
+
PutBucketLockResponse,
|
|
2115
|
+
PutBucketLockError,
|
|
2116
|
+
Credentials | HttpClient.HttpClient
|
|
2117
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
2118
|
+
input: PutBucketLockRequest,
|
|
2119
|
+
output: PutBucketLockResponse,
|
|
2120
|
+
errors: [NoSuchBucket, InvalidRoute],
|
|
2121
|
+
}));
|
|
2122
|
+
|
|
2123
|
+
// =============================================================================
|
|
2124
|
+
// BucketMetric
|
|
2125
|
+
// =============================================================================
|
|
2126
|
+
|
|
2127
|
+
export interface ListBucketMetricsRequest {
|
|
2128
|
+
/** Account ID. */
|
|
2129
|
+
accountId: string;
|
|
2130
|
+
}
|
|
2131
|
+
|
|
2132
|
+
export const ListBucketMetricsRequest =
|
|
2133
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2134
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2135
|
+
}).pipe(
|
|
2136
|
+
T.Http({ method: "GET", path: "/accounts/{account_id}/r2/metrics" }),
|
|
2137
|
+
) as unknown as Schema.Schema<ListBucketMetricsRequest>;
|
|
2138
|
+
|
|
2139
|
+
export interface ListBucketMetricsResponse {
|
|
2140
|
+
/** Metrics based on what state they are in(uploaded or published). */
|
|
2141
|
+
infrequentAccess?: {
|
|
2142
|
+
published?: {
|
|
2143
|
+
metadataSize?: number | null;
|
|
2144
|
+
objects?: number | null;
|
|
2145
|
+
payloadSize?: number | null;
|
|
2146
|
+
} | null;
|
|
2147
|
+
uploaded?: {
|
|
2148
|
+
metadataSize?: number | null;
|
|
2149
|
+
objects?: number | null;
|
|
2150
|
+
payloadSize?: number | null;
|
|
2151
|
+
} | null;
|
|
2152
|
+
} | null;
|
|
2153
|
+
/** Metrics based on what state they are in(uploaded or published). */
|
|
2154
|
+
standard?: {
|
|
2155
|
+
published?: {
|
|
2156
|
+
metadataSize?: number | null;
|
|
2157
|
+
objects?: number | null;
|
|
2158
|
+
payloadSize?: number | null;
|
|
2159
|
+
} | null;
|
|
2160
|
+
uploaded?: {
|
|
2161
|
+
metadataSize?: number | null;
|
|
2162
|
+
objects?: number | null;
|
|
2163
|
+
payloadSize?: number | null;
|
|
2164
|
+
} | null;
|
|
2165
|
+
} | null;
|
|
2166
|
+
}
|
|
2167
|
+
|
|
2168
|
+
export const ListBucketMetricsResponse =
|
|
2169
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2170
|
+
infrequentAccess: Schema.optional(
|
|
2171
|
+
Schema.Union([
|
|
2172
|
+
Schema.Struct({
|
|
2173
|
+
published: Schema.optional(
|
|
2174
|
+
Schema.Union([
|
|
2175
|
+
Schema.Struct({
|
|
2176
|
+
metadataSize: Schema.optional(
|
|
2177
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
2178
|
+
),
|
|
2179
|
+
objects: Schema.optional(
|
|
2180
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
2181
|
+
),
|
|
2182
|
+
payloadSize: Schema.optional(
|
|
2183
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
2184
|
+
),
|
|
2185
|
+
}),
|
|
2186
|
+
Schema.Null,
|
|
2187
|
+
]),
|
|
2188
|
+
),
|
|
2189
|
+
uploaded: Schema.optional(
|
|
2190
|
+
Schema.Union([
|
|
2191
|
+
Schema.Struct({
|
|
2192
|
+
metadataSize: Schema.optional(
|
|
2193
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
2194
|
+
),
|
|
2195
|
+
objects: Schema.optional(
|
|
2196
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
2197
|
+
),
|
|
2198
|
+
payloadSize: Schema.optional(
|
|
2199
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
2200
|
+
),
|
|
2201
|
+
}),
|
|
2202
|
+
Schema.Null,
|
|
2203
|
+
]),
|
|
2204
|
+
),
|
|
2205
|
+
}),
|
|
2206
|
+
Schema.Null,
|
|
2207
|
+
]),
|
|
2208
|
+
),
|
|
2209
|
+
standard: Schema.optional(
|
|
2210
|
+
Schema.Union([
|
|
2211
|
+
Schema.Struct({
|
|
2212
|
+
published: Schema.optional(
|
|
2213
|
+
Schema.Union([
|
|
2214
|
+
Schema.Struct({
|
|
2215
|
+
metadataSize: Schema.optional(
|
|
2216
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
2217
|
+
),
|
|
2218
|
+
objects: Schema.optional(
|
|
2219
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
2220
|
+
),
|
|
2221
|
+
payloadSize: Schema.optional(
|
|
2222
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
2223
|
+
),
|
|
2224
|
+
}),
|
|
2225
|
+
Schema.Null,
|
|
2226
|
+
]),
|
|
2227
|
+
),
|
|
2228
|
+
uploaded: Schema.optional(
|
|
2229
|
+
Schema.Union([
|
|
2230
|
+
Schema.Struct({
|
|
2231
|
+
metadataSize: Schema.optional(
|
|
2232
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
2233
|
+
),
|
|
2234
|
+
objects: Schema.optional(
|
|
2235
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
2236
|
+
),
|
|
2237
|
+
payloadSize: Schema.optional(
|
|
2238
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
2239
|
+
),
|
|
2240
|
+
}),
|
|
2241
|
+
Schema.Null,
|
|
2242
|
+
]),
|
|
2243
|
+
),
|
|
2244
|
+
}),
|
|
2245
|
+
Schema.Null,
|
|
2246
|
+
]),
|
|
2247
|
+
),
|
|
2248
|
+
}).pipe(
|
|
2249
|
+
T.ResponsePath("result"),
|
|
2250
|
+
) as unknown as Schema.Schema<ListBucketMetricsResponse>;
|
|
2251
|
+
|
|
2252
|
+
export type ListBucketMetricsError = DefaultErrors | InvalidRoute;
|
|
2253
|
+
|
|
2254
|
+
export const listBucketMetrics: API.OperationMethod<
|
|
2255
|
+
ListBucketMetricsRequest,
|
|
2256
|
+
ListBucketMetricsResponse,
|
|
2257
|
+
ListBucketMetricsError,
|
|
2258
|
+
Credentials | HttpClient.HttpClient
|
|
2259
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
2260
|
+
input: ListBucketMetricsRequest,
|
|
2261
|
+
output: ListBucketMetricsResponse,
|
|
2262
|
+
errors: [InvalidRoute],
|
|
2263
|
+
}));
|
|
2264
|
+
|
|
2265
|
+
// =============================================================================
|
|
2266
|
+
// BucketSippy
|
|
2267
|
+
// =============================================================================
|
|
2268
|
+
|
|
2269
|
+
export interface GetBucketSippyRequest {
|
|
2270
|
+
bucketName: string;
|
|
2271
|
+
/** Path param: Account ID. */
|
|
2272
|
+
accountId: string;
|
|
2273
|
+
/** Header param: Jurisdiction where objects in this bucket are guaranteed to be stored. */
|
|
2274
|
+
jurisdiction?: "default" | "eu" | "fedramp";
|
|
2275
|
+
}
|
|
2276
|
+
|
|
2277
|
+
export const GetBucketSippyRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2278
|
+
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
2279
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2280
|
+
jurisdiction: Schema.optional(
|
|
2281
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
2282
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
2283
|
+
}).pipe(
|
|
2284
|
+
T.Http({
|
|
2285
|
+
method: "GET",
|
|
2286
|
+
path: "/accounts/{account_id}/r2/buckets/{bucketName}/sippy",
|
|
2287
|
+
}),
|
|
2288
|
+
) as unknown as Schema.Schema<GetBucketSippyRequest>;
|
|
2289
|
+
|
|
2290
|
+
export interface GetBucketSippyResponse {
|
|
2291
|
+
/** Details about the configured destination bucket. */
|
|
2292
|
+
destination?: {
|
|
2293
|
+
accessKeyId?: string | null;
|
|
2294
|
+
account?: string | null;
|
|
2295
|
+
bucket?: string | null;
|
|
2296
|
+
provider?: "r2" | null;
|
|
2297
|
+
} | null;
|
|
2298
|
+
/** State of Sippy for this bucket. */
|
|
2299
|
+
enabled?: boolean | null;
|
|
2300
|
+
/** Details about the configured source bucket. */
|
|
2301
|
+
source?: {
|
|
2302
|
+
bucket?: string | null;
|
|
2303
|
+
bucketUrl?: string | null;
|
|
2304
|
+
provider?: "aws" | "gcs" | "s3" | null;
|
|
2305
|
+
region?: string | null;
|
|
2306
|
+
} | null;
|
|
2307
|
+
}
|
|
2308
|
+
|
|
2309
|
+
export const GetBucketSippyResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
2310
|
+
{
|
|
2311
|
+
destination: Schema.optional(
|
|
2312
|
+
Schema.Union([
|
|
2313
|
+
Schema.Struct({
|
|
2314
|
+
accessKeyId: Schema.optional(
|
|
2315
|
+
Schema.Union([SensitiveString, Schema.Null]),
|
|
2316
|
+
),
|
|
2317
|
+
account: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2318
|
+
bucket: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2319
|
+
provider: Schema.optional(
|
|
2320
|
+
Schema.Union([Schema.Literal("r2"), Schema.Null]),
|
|
2321
|
+
),
|
|
2322
|
+
}),
|
|
2323
|
+
Schema.Null,
|
|
2324
|
+
]),
|
|
2325
|
+
),
|
|
2326
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2327
|
+
source: Schema.optional(
|
|
2328
|
+
Schema.Union([
|
|
2329
|
+
Schema.Struct({
|
|
2330
|
+
bucket: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2331
|
+
bucketUrl: Schema.optional(
|
|
2332
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
2333
|
+
),
|
|
2334
|
+
provider: Schema.optional(
|
|
2335
|
+
Schema.Union([Schema.Literals(["aws", "gcs", "s3"]), Schema.Null]),
|
|
2336
|
+
),
|
|
2337
|
+
region: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2338
|
+
}),
|
|
2339
|
+
Schema.Null,
|
|
2340
|
+
]),
|
|
2341
|
+
),
|
|
2342
|
+
},
|
|
2343
|
+
).pipe(
|
|
2344
|
+
T.ResponsePath("result"),
|
|
2345
|
+
) as unknown as Schema.Schema<GetBucketSippyResponse>;
|
|
2346
|
+
|
|
2347
|
+
export type GetBucketSippyError = DefaultErrors | NoSuchBucket | InvalidRoute;
|
|
2348
|
+
|
|
2349
|
+
export const getBucketSippy: API.OperationMethod<
|
|
2350
|
+
GetBucketSippyRequest,
|
|
2351
|
+
GetBucketSippyResponse,
|
|
2352
|
+
GetBucketSippyError,
|
|
2353
|
+
Credentials | HttpClient.HttpClient
|
|
2354
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
2355
|
+
input: GetBucketSippyRequest,
|
|
2356
|
+
output: GetBucketSippyResponse,
|
|
2357
|
+
errors: [NoSuchBucket, InvalidRoute],
|
|
2358
|
+
}));
|
|
2359
|
+
|
|
2360
|
+
export interface PutBucketSippyRequest {
|
|
2361
|
+
bucketName: string;
|
|
2362
|
+
/** Path param: Account ID. */
|
|
2363
|
+
accountId: string;
|
|
2364
|
+
/** Header param: Jurisdiction where objects in this bucket are guaranteed to be stored. */
|
|
2365
|
+
jurisdiction?: "default" | "eu" | "fedramp";
|
|
2366
|
+
/** Body param: R2 bucket to copy objects to. */
|
|
2367
|
+
destination?: {
|
|
2368
|
+
accessKeyId?: string;
|
|
2369
|
+
provider?: "r2";
|
|
2370
|
+
secretAccessKey?: string;
|
|
2371
|
+
};
|
|
2372
|
+
/** Body param: AWS S3 bucket to copy objects from. */
|
|
2373
|
+
source?: {
|
|
2374
|
+
accessKeyId?: string;
|
|
2375
|
+
bucket?: string;
|
|
2376
|
+
provider?: "aws";
|
|
2377
|
+
region?: string;
|
|
2378
|
+
secretAccessKey?: string;
|
|
2379
|
+
};
|
|
2380
|
+
}
|
|
2381
|
+
|
|
2382
|
+
export const PutBucketSippyRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2383
|
+
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
2384
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2385
|
+
jurisdiction: Schema.optional(
|
|
2386
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
2387
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
2388
|
+
destination: Schema.optional(
|
|
2389
|
+
Schema.Struct({
|
|
2390
|
+
accessKeyId: Schema.optional(SensitiveString),
|
|
2391
|
+
provider: Schema.optional(Schema.Literal("r2")),
|
|
2392
|
+
secretAccessKey: Schema.optional(SensitiveString),
|
|
2393
|
+
}),
|
|
2394
|
+
),
|
|
2395
|
+
source: Schema.optional(
|
|
2396
|
+
Schema.Struct({
|
|
2397
|
+
accessKeyId: Schema.optional(SensitiveString),
|
|
2398
|
+
bucket: Schema.optional(Schema.String),
|
|
2399
|
+
provider: Schema.optional(Schema.Literal("aws")),
|
|
2400
|
+
region: Schema.optional(Schema.String),
|
|
2401
|
+
secretAccessKey: Schema.optional(SensitiveString),
|
|
2402
|
+
}),
|
|
2403
|
+
),
|
|
2404
|
+
}).pipe(
|
|
2405
|
+
T.Http({
|
|
2406
|
+
method: "PUT",
|
|
2407
|
+
path: "/accounts/{account_id}/r2/buckets/{bucketName}/sippy",
|
|
2408
|
+
}),
|
|
2409
|
+
) as unknown as Schema.Schema<PutBucketSippyRequest>;
|
|
2410
|
+
|
|
2411
|
+
export interface PutBucketSippyResponse {
|
|
2412
|
+
/** Details about the configured destination bucket. */
|
|
2413
|
+
destination?: {
|
|
2414
|
+
accessKeyId?: string | null;
|
|
2415
|
+
account?: string | null;
|
|
2416
|
+
bucket?: string | null;
|
|
2417
|
+
provider?: "r2" | null;
|
|
2418
|
+
} | null;
|
|
2419
|
+
/** State of Sippy for this bucket. */
|
|
2420
|
+
enabled?: boolean | null;
|
|
2421
|
+
/** Details about the configured source bucket. */
|
|
2422
|
+
source?: {
|
|
2423
|
+
bucket?: string | null;
|
|
2424
|
+
bucketUrl?: string | null;
|
|
2425
|
+
provider?: "aws" | "gcs" | "s3" | null;
|
|
2426
|
+
region?: string | null;
|
|
2427
|
+
} | null;
|
|
2428
|
+
}
|
|
2429
|
+
|
|
2430
|
+
export const PutBucketSippyResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
2431
|
+
{
|
|
2432
|
+
destination: Schema.optional(
|
|
2433
|
+
Schema.Union([
|
|
2434
|
+
Schema.Struct({
|
|
2435
|
+
accessKeyId: Schema.optional(
|
|
2436
|
+
Schema.Union([SensitiveString, Schema.Null]),
|
|
2437
|
+
),
|
|
2438
|
+
account: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2439
|
+
bucket: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2440
|
+
provider: Schema.optional(
|
|
2441
|
+
Schema.Union([Schema.Literal("r2"), Schema.Null]),
|
|
2442
|
+
),
|
|
2443
|
+
}),
|
|
2444
|
+
Schema.Null,
|
|
2445
|
+
]),
|
|
2446
|
+
),
|
|
2447
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2448
|
+
source: Schema.optional(
|
|
2449
|
+
Schema.Union([
|
|
2450
|
+
Schema.Struct({
|
|
2451
|
+
bucket: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2452
|
+
bucketUrl: Schema.optional(
|
|
2453
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
2454
|
+
),
|
|
2455
|
+
provider: Schema.optional(
|
|
2456
|
+
Schema.Union([Schema.Literals(["aws", "gcs", "s3"]), Schema.Null]),
|
|
2457
|
+
),
|
|
2458
|
+
region: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2459
|
+
}),
|
|
2460
|
+
Schema.Null,
|
|
2461
|
+
]),
|
|
2462
|
+
),
|
|
2463
|
+
},
|
|
2464
|
+
).pipe(
|
|
2465
|
+
T.ResponsePath("result"),
|
|
2466
|
+
) as unknown as Schema.Schema<PutBucketSippyResponse>;
|
|
2467
|
+
|
|
2468
|
+
export type PutBucketSippyError = DefaultErrors;
|
|
2469
|
+
|
|
2470
|
+
export const putBucketSippy: API.OperationMethod<
|
|
2471
|
+
PutBucketSippyRequest,
|
|
2472
|
+
PutBucketSippyResponse,
|
|
2473
|
+
PutBucketSippyError,
|
|
2474
|
+
Credentials | HttpClient.HttpClient
|
|
2475
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
2476
|
+
input: PutBucketSippyRequest,
|
|
2477
|
+
output: PutBucketSippyResponse,
|
|
2478
|
+
errors: [],
|
|
2479
|
+
}));
|
|
2480
|
+
|
|
2481
|
+
export interface DeleteBucketSippyRequest {
|
|
2482
|
+
bucketName: string;
|
|
2483
|
+
/** Path param: Account ID. */
|
|
2484
|
+
accountId: string;
|
|
2485
|
+
/** Header param: Jurisdiction where objects in this bucket are guaranteed to be stored. */
|
|
2486
|
+
jurisdiction?: "default" | "eu" | "fedramp";
|
|
2487
|
+
}
|
|
2488
|
+
|
|
2489
|
+
export const DeleteBucketSippyRequest =
|
|
2490
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2491
|
+
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
2492
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2493
|
+
jurisdiction: Schema.optional(
|
|
2494
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
2495
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
2496
|
+
}).pipe(
|
|
2497
|
+
T.Http({
|
|
2498
|
+
method: "DELETE",
|
|
2499
|
+
path: "/accounts/{account_id}/r2/buckets/{bucketName}/sippy",
|
|
2500
|
+
}),
|
|
2501
|
+
) as unknown as Schema.Schema<DeleteBucketSippyRequest>;
|
|
2502
|
+
|
|
2503
|
+
export interface DeleteBucketSippyResponse {
|
|
2504
|
+
enabled?: false | null;
|
|
2505
|
+
}
|
|
2506
|
+
|
|
2507
|
+
export const DeleteBucketSippyResponse =
|
|
2508
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2509
|
+
enabled: Schema.optional(
|
|
2510
|
+
Schema.Union([Schema.Literal(false), Schema.Null]),
|
|
2511
|
+
),
|
|
2512
|
+
}).pipe(
|
|
2513
|
+
T.ResponsePath("result"),
|
|
2514
|
+
) as unknown as Schema.Schema<DeleteBucketSippyResponse>;
|
|
2515
|
+
|
|
2516
|
+
export type DeleteBucketSippyError =
|
|
2517
|
+
| DefaultErrors
|
|
2518
|
+
| NoSuchBucket
|
|
2519
|
+
| InvalidRoute;
|
|
2520
|
+
|
|
2521
|
+
export const deleteBucketSippy: API.OperationMethod<
|
|
2522
|
+
DeleteBucketSippyRequest,
|
|
2523
|
+
DeleteBucketSippyResponse,
|
|
2524
|
+
DeleteBucketSippyError,
|
|
2525
|
+
Credentials | HttpClient.HttpClient
|
|
2526
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
2527
|
+
input: DeleteBucketSippyRequest,
|
|
2528
|
+
output: DeleteBucketSippyResponse,
|
|
2529
|
+
errors: [NoSuchBucket, InvalidRoute],
|
|
2530
|
+
}));
|
|
2531
|
+
|
|
2532
|
+
// =============================================================================
|
|
2533
|
+
// SuperSlurperConnectivityPrecheck
|
|
2534
|
+
// =============================================================================
|
|
2535
|
+
|
|
2536
|
+
export interface SourceSuperSlurperConnectivityPrecheckRequest {
|
|
2537
|
+
/** Path param: */
|
|
2538
|
+
accountId: string;
|
|
2539
|
+
/** Body param: */
|
|
2540
|
+
bucket: string;
|
|
2541
|
+
/** Body param: */
|
|
2542
|
+
secret: { accessKeyId: string; secretAccessKey: string };
|
|
2543
|
+
/** Body param: */
|
|
2544
|
+
vendor: "s3";
|
|
2545
|
+
/** Body param: */
|
|
2546
|
+
endpoint?: string | null;
|
|
2547
|
+
/** Body param: */
|
|
2548
|
+
pathPrefix?: string | null;
|
|
2549
|
+
/** Body param: */
|
|
2550
|
+
region?: string | null;
|
|
2551
|
+
}
|
|
2552
|
+
|
|
2553
|
+
export const SourceSuperSlurperConnectivityPrecheckRequest =
|
|
2554
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2555
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2556
|
+
bucket: Schema.String,
|
|
2557
|
+
secret: Schema.Struct({
|
|
2558
|
+
accessKeyId: SensitiveString,
|
|
2559
|
+
secretAccessKey: SensitiveString,
|
|
2560
|
+
}),
|
|
2561
|
+
vendor: Schema.Literal("s3"),
|
|
2562
|
+
endpoint: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2563
|
+
pathPrefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2564
|
+
region: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2565
|
+
}).pipe(
|
|
2566
|
+
T.Http({
|
|
2567
|
+
method: "PUT",
|
|
2568
|
+
path: "/accounts/{account_id}/slurper/source/connectivity-precheck",
|
|
2569
|
+
}),
|
|
2570
|
+
) as unknown as Schema.Schema<SourceSuperSlurperConnectivityPrecheckRequest>;
|
|
2571
|
+
|
|
2572
|
+
export interface SourceSuperSlurperConnectivityPrecheckResponse {
|
|
2573
|
+
connectivityStatus?: "success" | "error" | null;
|
|
2574
|
+
}
|
|
2575
|
+
|
|
2576
|
+
export const SourceSuperSlurperConnectivityPrecheckResponse =
|
|
2577
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2578
|
+
connectivityStatus: Schema.optional(
|
|
2579
|
+
Schema.Union([Schema.Literals(["success", "error"]), Schema.Null]),
|
|
2580
|
+
),
|
|
2581
|
+
}).pipe(
|
|
2582
|
+
T.ResponsePath("result"),
|
|
2583
|
+
) as unknown as Schema.Schema<SourceSuperSlurperConnectivityPrecheckResponse>;
|
|
2584
|
+
|
|
2585
|
+
export type SourceSuperSlurperConnectivityPrecheckError = DefaultErrors;
|
|
2586
|
+
|
|
2587
|
+
export const sourceSuperSlurperConnectivityPrecheck: API.OperationMethod<
|
|
2588
|
+
SourceSuperSlurperConnectivityPrecheckRequest,
|
|
2589
|
+
SourceSuperSlurperConnectivityPrecheckResponse,
|
|
2590
|
+
SourceSuperSlurperConnectivityPrecheckError,
|
|
2591
|
+
Credentials | HttpClient.HttpClient
|
|
2592
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
2593
|
+
input: SourceSuperSlurperConnectivityPrecheckRequest,
|
|
2594
|
+
output: SourceSuperSlurperConnectivityPrecheckResponse,
|
|
2595
|
+
errors: [],
|
|
2596
|
+
}));
|
|
2597
|
+
|
|
2598
|
+
export interface TargetSuperSlurperConnectivityPrecheckRequest {
|
|
2599
|
+
/** Path param: */
|
|
2600
|
+
accountId: string;
|
|
2601
|
+
/** Body param: */
|
|
2602
|
+
bucket: string;
|
|
2603
|
+
/** Body param: */
|
|
2604
|
+
secret: { accessKeyId: string; secretAccessKey: string };
|
|
2605
|
+
/** Body param: */
|
|
2606
|
+
vendor: "r2";
|
|
2607
|
+
/** Body param: */
|
|
2608
|
+
jurisdiction?: "default" | "eu" | "fedramp";
|
|
2609
|
+
}
|
|
2610
|
+
|
|
2611
|
+
export const TargetSuperSlurperConnectivityPrecheckRequest =
|
|
2612
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2613
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2614
|
+
bucket: Schema.String,
|
|
2615
|
+
secret: Schema.Struct({
|
|
2616
|
+
accessKeyId: SensitiveString,
|
|
2617
|
+
secretAccessKey: SensitiveString,
|
|
2618
|
+
}),
|
|
2619
|
+
vendor: Schema.Literal("r2"),
|
|
2620
|
+
jurisdiction: Schema.optional(
|
|
2621
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
2622
|
+
),
|
|
2623
|
+
}).pipe(
|
|
2624
|
+
T.Http({
|
|
2625
|
+
method: "PUT",
|
|
2626
|
+
path: "/accounts/{account_id}/slurper/target/connectivity-precheck",
|
|
2627
|
+
}),
|
|
2628
|
+
) as unknown as Schema.Schema<TargetSuperSlurperConnectivityPrecheckRequest>;
|
|
2629
|
+
|
|
2630
|
+
export interface TargetSuperSlurperConnectivityPrecheckResponse {
|
|
2631
|
+
connectivityStatus?: "success" | "error" | null;
|
|
2632
|
+
}
|
|
2633
|
+
|
|
2634
|
+
export const TargetSuperSlurperConnectivityPrecheckResponse =
|
|
2635
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2636
|
+
connectivityStatus: Schema.optional(
|
|
2637
|
+
Schema.Union([Schema.Literals(["success", "error"]), Schema.Null]),
|
|
2638
|
+
),
|
|
2639
|
+
}).pipe(
|
|
2640
|
+
T.ResponsePath("result"),
|
|
2641
|
+
) as unknown as Schema.Schema<TargetSuperSlurperConnectivityPrecheckResponse>;
|
|
2642
|
+
|
|
2643
|
+
export type TargetSuperSlurperConnectivityPrecheckError = DefaultErrors;
|
|
2644
|
+
|
|
2645
|
+
export const targetSuperSlurperConnectivityPrecheck: API.OperationMethod<
|
|
2646
|
+
TargetSuperSlurperConnectivityPrecheckRequest,
|
|
2647
|
+
TargetSuperSlurperConnectivityPrecheckResponse,
|
|
2648
|
+
TargetSuperSlurperConnectivityPrecheckError,
|
|
2649
|
+
Credentials | HttpClient.HttpClient
|
|
2650
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
2651
|
+
input: TargetSuperSlurperConnectivityPrecheckRequest,
|
|
2652
|
+
output: TargetSuperSlurperConnectivityPrecheckResponse,
|
|
2653
|
+
errors: [],
|
|
2654
|
+
}));
|
|
2655
|
+
|
|
2656
|
+
// =============================================================================
|
|
2657
|
+
// SuperSlurperJob
|
|
2658
|
+
// =============================================================================
|
|
2659
|
+
|
|
2660
|
+
export interface GetSuperSlurperJobRequest {
|
|
2661
|
+
jobId: string;
|
|
2662
|
+
accountId: string;
|
|
2663
|
+
}
|
|
2664
|
+
|
|
2665
|
+
export const GetSuperSlurperJobRequest =
|
|
2666
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2667
|
+
jobId: Schema.String.pipe(T.HttpPath("jobId")),
|
|
2668
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2669
|
+
}).pipe(
|
|
2670
|
+
T.Http({
|
|
2671
|
+
method: "GET",
|
|
2672
|
+
path: "/accounts/{account_id}/slurper/jobs/{jobId}",
|
|
2673
|
+
}),
|
|
2674
|
+
) as unknown as Schema.Schema<GetSuperSlurperJobRequest>;
|
|
2675
|
+
|
|
2676
|
+
export interface GetSuperSlurperJobResponse {
|
|
2677
|
+
id?: string | null;
|
|
2678
|
+
createdAt?: string | null;
|
|
2679
|
+
finishedAt?: string | null;
|
|
2680
|
+
overwrite?: boolean | null;
|
|
2681
|
+
source?:
|
|
2682
|
+
| {
|
|
2683
|
+
bucket?: string | null;
|
|
2684
|
+
endpoint?: string | null;
|
|
2685
|
+
keys?: string[] | null;
|
|
2686
|
+
pathPrefix?: string | null;
|
|
2687
|
+
vendor?: "s3" | null;
|
|
2688
|
+
}
|
|
2689
|
+
| {
|
|
2690
|
+
bucket?: string | null;
|
|
2691
|
+
keys?: string[] | null;
|
|
2692
|
+
pathPrefix?: string | null;
|
|
2693
|
+
vendor?: "gcs" | null;
|
|
2694
|
+
}
|
|
2695
|
+
| {
|
|
2696
|
+
bucket?: string | null;
|
|
2697
|
+
jurisdiction?: "default" | "eu" | "fedramp" | null;
|
|
2698
|
+
keys?: string[] | null;
|
|
2699
|
+
pathPrefix?: string | null;
|
|
2700
|
+
vendor?: "r2" | null;
|
|
2701
|
+
}
|
|
2702
|
+
| null;
|
|
2703
|
+
status?: "running" | "paused" | "aborted" | "completed" | null;
|
|
2704
|
+
target?: {
|
|
2705
|
+
bucket?: string | null;
|
|
2706
|
+
jurisdiction?: "default" | "eu" | "fedramp" | null;
|
|
2707
|
+
vendor?: "r2" | null;
|
|
2708
|
+
} | null;
|
|
2709
|
+
}
|
|
2710
|
+
|
|
2711
|
+
export const GetSuperSlurperJobResponse =
|
|
2712
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2713
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2714
|
+
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2715
|
+
finishedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2716
|
+
overwrite: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2717
|
+
source: Schema.optional(
|
|
2718
|
+
Schema.Union([
|
|
2719
|
+
Schema.Union([
|
|
2720
|
+
Schema.Struct({
|
|
2721
|
+
bucket: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2722
|
+
endpoint: Schema.optional(
|
|
2723
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
2724
|
+
),
|
|
2725
|
+
keys: Schema.optional(
|
|
2726
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
2727
|
+
),
|
|
2728
|
+
pathPrefix: Schema.optional(
|
|
2729
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
2730
|
+
),
|
|
2731
|
+
vendor: Schema.optional(
|
|
2732
|
+
Schema.Union([Schema.Literal("s3"), Schema.Null]),
|
|
2733
|
+
),
|
|
2734
|
+
}),
|
|
2735
|
+
Schema.Struct({
|
|
2736
|
+
bucket: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2737
|
+
keys: Schema.optional(
|
|
2738
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
2739
|
+
),
|
|
2740
|
+
pathPrefix: Schema.optional(
|
|
2741
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
2742
|
+
),
|
|
2743
|
+
vendor: Schema.optional(
|
|
2744
|
+
Schema.Union([Schema.Literal("gcs"), Schema.Null]),
|
|
2745
|
+
),
|
|
2746
|
+
}),
|
|
2747
|
+
Schema.Struct({
|
|
2748
|
+
bucket: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2749
|
+
jurisdiction: Schema.optional(
|
|
2750
|
+
Schema.Union([
|
|
2751
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
2752
|
+
Schema.Null,
|
|
2753
|
+
]),
|
|
2754
|
+
),
|
|
2755
|
+
keys: Schema.optional(
|
|
2756
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
2757
|
+
),
|
|
2758
|
+
pathPrefix: Schema.optional(
|
|
2759
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
2760
|
+
),
|
|
2761
|
+
vendor: Schema.optional(
|
|
2762
|
+
Schema.Union([Schema.Literal("r2"), Schema.Null]),
|
|
2763
|
+
),
|
|
2764
|
+
}),
|
|
2765
|
+
]),
|
|
2766
|
+
Schema.Null,
|
|
2767
|
+
]),
|
|
2768
|
+
),
|
|
2769
|
+
status: Schema.optional(
|
|
2770
|
+
Schema.Union([
|
|
2771
|
+
Schema.Literals(["running", "paused", "aborted", "completed"]),
|
|
2772
|
+
Schema.Null,
|
|
2773
|
+
]),
|
|
2774
|
+
),
|
|
2775
|
+
target: Schema.optional(
|
|
2776
|
+
Schema.Union([
|
|
2777
|
+
Schema.Struct({
|
|
2778
|
+
bucket: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2779
|
+
jurisdiction: Schema.optional(
|
|
2780
|
+
Schema.Union([
|
|
2781
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
2782
|
+
Schema.Null,
|
|
2783
|
+
]),
|
|
2784
|
+
),
|
|
2785
|
+
vendor: Schema.optional(
|
|
2786
|
+
Schema.Union([Schema.Literal("r2"), Schema.Null]),
|
|
2787
|
+
),
|
|
2788
|
+
}),
|
|
2789
|
+
Schema.Null,
|
|
2790
|
+
]),
|
|
2791
|
+
),
|
|
2792
|
+
}).pipe(
|
|
2793
|
+
T.ResponsePath("result"),
|
|
2794
|
+
) as unknown as Schema.Schema<GetSuperSlurperJobResponse>;
|
|
2795
|
+
|
|
2796
|
+
export type GetSuperSlurperJobError = DefaultErrors;
|
|
2797
|
+
|
|
2798
|
+
export const getSuperSlurperJob: API.OperationMethod<
|
|
2799
|
+
GetSuperSlurperJobRequest,
|
|
2800
|
+
GetSuperSlurperJobResponse,
|
|
2801
|
+
GetSuperSlurperJobError,
|
|
2802
|
+
Credentials | HttpClient.HttpClient
|
|
2803
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
2804
|
+
input: GetSuperSlurperJobRequest,
|
|
2805
|
+
output: GetSuperSlurperJobResponse,
|
|
2806
|
+
errors: [],
|
|
2807
|
+
}));
|
|
2808
|
+
|
|
2809
|
+
export interface ListSuperSlurperJobsRequest {
|
|
2810
|
+
/** Path param: */
|
|
2811
|
+
accountId: string;
|
|
2812
|
+
/** Query param: */
|
|
2813
|
+
limit?: number;
|
|
2814
|
+
/** Query param: */
|
|
2815
|
+
offset?: number;
|
|
2816
|
+
}
|
|
2817
|
+
|
|
2818
|
+
export const ListSuperSlurperJobsRequest =
|
|
2819
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2820
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2821
|
+
limit: Schema.optional(Schema.Number).pipe(T.HttpQuery("limit")),
|
|
2822
|
+
offset: Schema.optional(Schema.Number).pipe(T.HttpQuery("offset")),
|
|
2823
|
+
}).pipe(
|
|
2824
|
+
T.Http({ method: "GET", path: "/accounts/{account_id}/slurper/jobs" }),
|
|
2825
|
+
) as unknown as Schema.Schema<ListSuperSlurperJobsRequest>;
|
|
2826
|
+
|
|
2827
|
+
export interface ListSuperSlurperJobsResponse {
|
|
2828
|
+
result: {
|
|
2829
|
+
id?: string | null;
|
|
2830
|
+
createdAt?: string | null;
|
|
2831
|
+
finishedAt?: string | null;
|
|
2832
|
+
overwrite?: boolean | null;
|
|
2833
|
+
source?:
|
|
2834
|
+
| {
|
|
2835
|
+
bucket?: string | null;
|
|
2836
|
+
endpoint?: string | null;
|
|
2837
|
+
keys?: string[] | null;
|
|
2838
|
+
pathPrefix?: string | null;
|
|
2839
|
+
vendor?: "s3" | null;
|
|
2840
|
+
}
|
|
2841
|
+
| {
|
|
2842
|
+
bucket?: string | null;
|
|
2843
|
+
keys?: string[] | null;
|
|
2844
|
+
pathPrefix?: string | null;
|
|
2845
|
+
vendor?: "gcs" | null;
|
|
2846
|
+
}
|
|
2847
|
+
| {
|
|
2848
|
+
bucket?: string | null;
|
|
2849
|
+
jurisdiction?: "default" | "eu" | "fedramp" | null;
|
|
2850
|
+
keys?: string[] | null;
|
|
2851
|
+
pathPrefix?: string | null;
|
|
2852
|
+
vendor?: "r2" | null;
|
|
2853
|
+
}
|
|
2854
|
+
| null;
|
|
2855
|
+
status?: "running" | "paused" | "aborted" | "completed" | null;
|
|
2856
|
+
target?: {
|
|
2857
|
+
bucket?: string | null;
|
|
2858
|
+
jurisdiction?: "default" | "eu" | "fedramp" | null;
|
|
2859
|
+
vendor?: "r2" | null;
|
|
2860
|
+
} | null;
|
|
2861
|
+
}[];
|
|
2862
|
+
}
|
|
2863
|
+
|
|
2864
|
+
export const ListSuperSlurperJobsResponse =
|
|
2865
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2866
|
+
result: Schema.Array(
|
|
2867
|
+
Schema.Struct({
|
|
2868
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2869
|
+
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2870
|
+
finishedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2871
|
+
overwrite: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2872
|
+
source: Schema.optional(
|
|
2873
|
+
Schema.Union([
|
|
2874
|
+
Schema.Union([
|
|
2875
|
+
Schema.Struct({
|
|
2876
|
+
bucket: Schema.optional(
|
|
2877
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
2878
|
+
),
|
|
2879
|
+
endpoint: Schema.optional(
|
|
2880
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
2881
|
+
),
|
|
2882
|
+
keys: Schema.optional(
|
|
2883
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
2884
|
+
),
|
|
2885
|
+
pathPrefix: Schema.optional(
|
|
2886
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
2887
|
+
),
|
|
2888
|
+
vendor: Schema.optional(
|
|
2889
|
+
Schema.Union([Schema.Literal("s3"), Schema.Null]),
|
|
2890
|
+
),
|
|
2891
|
+
}),
|
|
2892
|
+
Schema.Struct({
|
|
2893
|
+
bucket: Schema.optional(
|
|
2894
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
2895
|
+
),
|
|
2896
|
+
keys: Schema.optional(
|
|
2897
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
2898
|
+
),
|
|
2899
|
+
pathPrefix: Schema.optional(
|
|
2900
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
2901
|
+
),
|
|
2902
|
+
vendor: Schema.optional(
|
|
2903
|
+
Schema.Union([Schema.Literal("gcs"), Schema.Null]),
|
|
2904
|
+
),
|
|
2905
|
+
}),
|
|
2906
|
+
Schema.Struct({
|
|
2907
|
+
bucket: Schema.optional(
|
|
2908
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
2909
|
+
),
|
|
2910
|
+
jurisdiction: Schema.optional(
|
|
2911
|
+
Schema.Union([
|
|
2912
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
2913
|
+
Schema.Null,
|
|
2914
|
+
]),
|
|
2915
|
+
),
|
|
2916
|
+
keys: Schema.optional(
|
|
2917
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
2918
|
+
),
|
|
2919
|
+
pathPrefix: Schema.optional(
|
|
2920
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
2921
|
+
),
|
|
2922
|
+
vendor: Schema.optional(
|
|
2923
|
+
Schema.Union([Schema.Literal("r2"), Schema.Null]),
|
|
2924
|
+
),
|
|
2925
|
+
}),
|
|
2926
|
+
]),
|
|
2927
|
+
Schema.Null,
|
|
2928
|
+
]),
|
|
2929
|
+
),
|
|
2930
|
+
status: Schema.optional(
|
|
2931
|
+
Schema.Union([
|
|
2932
|
+
Schema.Literals(["running", "paused", "aborted", "completed"]),
|
|
2933
|
+
Schema.Null,
|
|
2934
|
+
]),
|
|
2935
|
+
),
|
|
2936
|
+
target: Schema.optional(
|
|
2937
|
+
Schema.Union([
|
|
2938
|
+
Schema.Struct({
|
|
2939
|
+
bucket: Schema.optional(
|
|
2940
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
2941
|
+
),
|
|
2942
|
+
jurisdiction: Schema.optional(
|
|
2943
|
+
Schema.Union([
|
|
2944
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
2945
|
+
Schema.Null,
|
|
2946
|
+
]),
|
|
2947
|
+
),
|
|
2948
|
+
vendor: Schema.optional(
|
|
2949
|
+
Schema.Union([Schema.Literal("r2"), Schema.Null]),
|
|
2950
|
+
),
|
|
2951
|
+
}),
|
|
2952
|
+
Schema.Null,
|
|
2953
|
+
]),
|
|
2954
|
+
),
|
|
2955
|
+
}),
|
|
2956
|
+
),
|
|
2957
|
+
}) as unknown as Schema.Schema<ListSuperSlurperJobsResponse>;
|
|
2958
|
+
|
|
2959
|
+
export type ListSuperSlurperJobsError = DefaultErrors;
|
|
2960
|
+
|
|
2961
|
+
export const listSuperSlurperJobs: API.PaginatedOperationMethod<
|
|
2962
|
+
ListSuperSlurperJobsRequest,
|
|
2963
|
+
ListSuperSlurperJobsResponse,
|
|
2964
|
+
ListSuperSlurperJobsError,
|
|
2965
|
+
Credentials | HttpClient.HttpClient
|
|
2966
|
+
> & {
|
|
2967
|
+
pages: (
|
|
2968
|
+
input: ListSuperSlurperJobsRequest,
|
|
2969
|
+
) => stream.Stream<
|
|
2970
|
+
ListSuperSlurperJobsResponse,
|
|
2971
|
+
ListSuperSlurperJobsError,
|
|
2972
|
+
Credentials | HttpClient.HttpClient
|
|
2973
|
+
>;
|
|
2974
|
+
items: (input: ListSuperSlurperJobsRequest) => stream.Stream<
|
|
2975
|
+
{
|
|
2976
|
+
id?: string | null;
|
|
2977
|
+
createdAt?: string | null;
|
|
2978
|
+
finishedAt?: string | null;
|
|
2979
|
+
overwrite?: boolean | null;
|
|
2980
|
+
source?:
|
|
2981
|
+
| {
|
|
2982
|
+
bucket?: string | null;
|
|
2983
|
+
endpoint?: string | null;
|
|
2984
|
+
keys?: string[] | null;
|
|
2985
|
+
pathPrefix?: string | null;
|
|
2986
|
+
vendor?: "s3" | null;
|
|
2987
|
+
}
|
|
2988
|
+
| {
|
|
2989
|
+
bucket?: string | null;
|
|
2990
|
+
keys?: string[] | null;
|
|
2991
|
+
pathPrefix?: string | null;
|
|
2992
|
+
vendor?: "gcs" | null;
|
|
2993
|
+
}
|
|
2994
|
+
| {
|
|
2995
|
+
bucket?: string | null;
|
|
2996
|
+
jurisdiction?: "default" | "eu" | "fedramp" | null;
|
|
2997
|
+
keys?: string[] | null;
|
|
2998
|
+
pathPrefix?: string | null;
|
|
2999
|
+
vendor?: "r2" | null;
|
|
3000
|
+
}
|
|
3001
|
+
| null;
|
|
3002
|
+
status?: "running" | "paused" | "aborted" | "completed" | null;
|
|
3003
|
+
target?: {
|
|
3004
|
+
bucket?: string | null;
|
|
3005
|
+
jurisdiction?: "default" | "eu" | "fedramp" | null;
|
|
3006
|
+
vendor?: "r2" | null;
|
|
3007
|
+
} | null;
|
|
3008
|
+
},
|
|
3009
|
+
ListSuperSlurperJobsError,
|
|
3010
|
+
Credentials | HttpClient.HttpClient
|
|
3011
|
+
>;
|
|
3012
|
+
} = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
3013
|
+
input: ListSuperSlurperJobsRequest,
|
|
3014
|
+
output: ListSuperSlurperJobsResponse,
|
|
3015
|
+
errors: [],
|
|
3016
|
+
pagination: {
|
|
3017
|
+
mode: "single",
|
|
3018
|
+
items: "result",
|
|
3019
|
+
} as const,
|
|
3020
|
+
}));
|
|
3021
|
+
|
|
3022
|
+
export interface CreateSuperSlurperJobRequest {
|
|
3023
|
+
/** Path param: */
|
|
3024
|
+
accountId: string;
|
|
3025
|
+
/** Body param: */
|
|
3026
|
+
overwrite?: boolean;
|
|
3027
|
+
/** Body param: */
|
|
3028
|
+
source?:
|
|
3029
|
+
| {
|
|
3030
|
+
bucket: string;
|
|
3031
|
+
secret: { accessKeyId: string; secretAccessKey: string };
|
|
3032
|
+
vendor: "s3";
|
|
3033
|
+
endpoint?: string | null;
|
|
3034
|
+
pathPrefix?: string | null;
|
|
3035
|
+
region?: string | null;
|
|
3036
|
+
}
|
|
3037
|
+
| {
|
|
3038
|
+
bucket: string;
|
|
3039
|
+
secret: { clientEmail: string; privateKey: string };
|
|
3040
|
+
vendor: "gcs";
|
|
3041
|
+
pathPrefix?: string | null;
|
|
3042
|
+
}
|
|
3043
|
+
| {
|
|
3044
|
+
bucket: string;
|
|
3045
|
+
secret: { accessKeyId: string; secretAccessKey: string };
|
|
3046
|
+
vendor: "r2";
|
|
3047
|
+
jurisdiction?: "default" | "eu" | "fedramp";
|
|
3048
|
+
pathPrefix?: string | null;
|
|
3049
|
+
};
|
|
3050
|
+
/** Body param: */
|
|
3051
|
+
target?: {
|
|
3052
|
+
bucket: string;
|
|
3053
|
+
secret: { accessKeyId: string; secretAccessKey: string };
|
|
3054
|
+
vendor: "r2";
|
|
3055
|
+
jurisdiction?: "default" | "eu" | "fedramp";
|
|
3056
|
+
};
|
|
3057
|
+
}
|
|
3058
|
+
|
|
3059
|
+
export const CreateSuperSlurperJobRequest =
|
|
3060
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3061
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3062
|
+
overwrite: Schema.optional(Schema.Boolean),
|
|
3063
|
+
source: Schema.optional(
|
|
3064
|
+
Schema.Union([
|
|
3065
|
+
Schema.Struct({
|
|
3066
|
+
bucket: Schema.String,
|
|
3067
|
+
secret: Schema.Struct({
|
|
3068
|
+
accessKeyId: SensitiveString,
|
|
3069
|
+
secretAccessKey: SensitiveString,
|
|
3070
|
+
}),
|
|
3071
|
+
vendor: Schema.Literal("s3"),
|
|
3072
|
+
endpoint: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3073
|
+
pathPrefix: Schema.optional(
|
|
3074
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
3075
|
+
),
|
|
3076
|
+
region: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3077
|
+
}),
|
|
3078
|
+
Schema.Struct({
|
|
3079
|
+
bucket: Schema.String,
|
|
3080
|
+
secret: Schema.Struct({
|
|
3081
|
+
clientEmail: Schema.String,
|
|
3082
|
+
privateKey: SensitiveString,
|
|
3083
|
+
}),
|
|
3084
|
+
vendor: Schema.Literal("gcs"),
|
|
3085
|
+
pathPrefix: Schema.optional(
|
|
3086
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
3087
|
+
),
|
|
3088
|
+
}),
|
|
3089
|
+
Schema.Struct({
|
|
3090
|
+
bucket: Schema.String,
|
|
3091
|
+
secret: Schema.Struct({
|
|
3092
|
+
accessKeyId: SensitiveString,
|
|
3093
|
+
secretAccessKey: SensitiveString,
|
|
3094
|
+
}),
|
|
3095
|
+
vendor: Schema.Literal("r2"),
|
|
3096
|
+
jurisdiction: Schema.optional(
|
|
3097
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
3098
|
+
),
|
|
3099
|
+
pathPrefix: Schema.optional(
|
|
3100
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
3101
|
+
),
|
|
3102
|
+
}),
|
|
3103
|
+
]),
|
|
3104
|
+
),
|
|
3105
|
+
target: Schema.optional(
|
|
3106
|
+
Schema.Struct({
|
|
3107
|
+
bucket: Schema.String,
|
|
3108
|
+
secret: Schema.Struct({
|
|
3109
|
+
accessKeyId: SensitiveString,
|
|
3110
|
+
secretAccessKey: SensitiveString,
|
|
3111
|
+
}),
|
|
3112
|
+
vendor: Schema.Literal("r2"),
|
|
3113
|
+
jurisdiction: Schema.optional(
|
|
3114
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
3115
|
+
),
|
|
3116
|
+
}),
|
|
3117
|
+
),
|
|
3118
|
+
}).pipe(
|
|
3119
|
+
T.Http({ method: "POST", path: "/accounts/{account_id}/slurper/jobs" }),
|
|
3120
|
+
) as unknown as Schema.Schema<CreateSuperSlurperJobRequest>;
|
|
3121
|
+
|
|
3122
|
+
export interface CreateSuperSlurperJobResponse {
|
|
3123
|
+
id?: string | null;
|
|
3124
|
+
}
|
|
3125
|
+
|
|
3126
|
+
export const CreateSuperSlurperJobResponse =
|
|
3127
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3128
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3129
|
+
}).pipe(
|
|
3130
|
+
T.ResponsePath("result"),
|
|
3131
|
+
) as unknown as Schema.Schema<CreateSuperSlurperJobResponse>;
|
|
3132
|
+
|
|
3133
|
+
export type CreateSuperSlurperJobError = DefaultErrors;
|
|
3134
|
+
|
|
3135
|
+
export const createSuperSlurperJob: API.OperationMethod<
|
|
3136
|
+
CreateSuperSlurperJobRequest,
|
|
3137
|
+
CreateSuperSlurperJobResponse,
|
|
3138
|
+
CreateSuperSlurperJobError,
|
|
3139
|
+
Credentials | HttpClient.HttpClient
|
|
3140
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
3141
|
+
input: CreateSuperSlurperJobRequest,
|
|
3142
|
+
output: CreateSuperSlurperJobResponse,
|
|
3143
|
+
errors: [],
|
|
3144
|
+
}));
|
|
3145
|
+
|
|
3146
|
+
export interface AbortSuperSlurperJobRequest {
|
|
3147
|
+
jobId: string;
|
|
3148
|
+
accountId: string;
|
|
3149
|
+
}
|
|
3150
|
+
|
|
3151
|
+
export const AbortSuperSlurperJobRequest =
|
|
3152
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3153
|
+
jobId: Schema.String.pipe(T.HttpPath("jobId")),
|
|
3154
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3155
|
+
}).pipe(
|
|
3156
|
+
T.Http({
|
|
3157
|
+
method: "PUT",
|
|
3158
|
+
path: "/accounts/{account_id}/slurper/jobs/{jobId}/abort",
|
|
3159
|
+
}),
|
|
3160
|
+
) as unknown as Schema.Schema<AbortSuperSlurperJobRequest>;
|
|
3161
|
+
|
|
3162
|
+
export type AbortSuperSlurperJobResponse = string;
|
|
3163
|
+
|
|
3164
|
+
export const AbortSuperSlurperJobResponse =
|
|
3165
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.String.pipe(
|
|
3166
|
+
T.ResponsePath("result"),
|
|
3167
|
+
) as unknown as Schema.Schema<AbortSuperSlurperJobResponse>;
|
|
3168
|
+
|
|
3169
|
+
export type AbortSuperSlurperJobError = DefaultErrors;
|
|
3170
|
+
|
|
3171
|
+
export const abortSuperSlurperJob: API.OperationMethod<
|
|
3172
|
+
AbortSuperSlurperJobRequest,
|
|
3173
|
+
AbortSuperSlurperJobResponse,
|
|
3174
|
+
AbortSuperSlurperJobError,
|
|
3175
|
+
Credentials | HttpClient.HttpClient
|
|
3176
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
3177
|
+
input: AbortSuperSlurperJobRequest,
|
|
3178
|
+
output: AbortSuperSlurperJobResponse,
|
|
3179
|
+
errors: [],
|
|
3180
|
+
}));
|
|
3181
|
+
|
|
3182
|
+
export interface PauseSuperSlurperJobRequest {
|
|
3183
|
+
jobId: string;
|
|
3184
|
+
accountId: string;
|
|
3185
|
+
}
|
|
3186
|
+
|
|
3187
|
+
export const PauseSuperSlurperJobRequest =
|
|
3188
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3189
|
+
jobId: Schema.String.pipe(T.HttpPath("jobId")),
|
|
3190
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3191
|
+
}).pipe(
|
|
3192
|
+
T.Http({
|
|
3193
|
+
method: "PUT",
|
|
3194
|
+
path: "/accounts/{account_id}/slurper/jobs/{jobId}/pause",
|
|
3195
|
+
}),
|
|
3196
|
+
) as unknown as Schema.Schema<PauseSuperSlurperJobRequest>;
|
|
3197
|
+
|
|
3198
|
+
export type PauseSuperSlurperJobResponse = string;
|
|
3199
|
+
|
|
3200
|
+
export const PauseSuperSlurperJobResponse =
|
|
3201
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.String.pipe(
|
|
3202
|
+
T.ResponsePath("result"),
|
|
3203
|
+
) as unknown as Schema.Schema<PauseSuperSlurperJobResponse>;
|
|
3204
|
+
|
|
3205
|
+
export type PauseSuperSlurperJobError = DefaultErrors;
|
|
3206
|
+
|
|
3207
|
+
export const pauseSuperSlurperJob: API.OperationMethod<
|
|
3208
|
+
PauseSuperSlurperJobRequest,
|
|
3209
|
+
PauseSuperSlurperJobResponse,
|
|
3210
|
+
PauseSuperSlurperJobError,
|
|
3211
|
+
Credentials | HttpClient.HttpClient
|
|
3212
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
3213
|
+
input: PauseSuperSlurperJobRequest,
|
|
3214
|
+
output: PauseSuperSlurperJobResponse,
|
|
3215
|
+
errors: [],
|
|
3216
|
+
}));
|
|
3217
|
+
|
|
3218
|
+
export interface ProgressSuperSlurperJobRequest {
|
|
3219
|
+
jobId: string;
|
|
3220
|
+
accountId: string;
|
|
3221
|
+
}
|
|
3222
|
+
|
|
3223
|
+
export const ProgressSuperSlurperJobRequest =
|
|
3224
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3225
|
+
jobId: Schema.String.pipe(T.HttpPath("jobId")),
|
|
3226
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3227
|
+
}).pipe(
|
|
3228
|
+
T.Http({
|
|
3229
|
+
method: "GET",
|
|
3230
|
+
path: "/accounts/{account_id}/slurper/jobs/{jobId}/progress",
|
|
3231
|
+
}),
|
|
3232
|
+
) as unknown as Schema.Schema<ProgressSuperSlurperJobRequest>;
|
|
3233
|
+
|
|
3234
|
+
export interface ProgressSuperSlurperJobResponse {
|
|
3235
|
+
id?: string | null;
|
|
3236
|
+
createdAt?: string | null;
|
|
3237
|
+
failedObjects?: number | null;
|
|
3238
|
+
objects?: number | null;
|
|
3239
|
+
skippedObjects?: number | null;
|
|
3240
|
+
status?: "running" | "paused" | "aborted" | "completed" | null;
|
|
3241
|
+
transferredObjects?: number | null;
|
|
3242
|
+
}
|
|
3243
|
+
|
|
3244
|
+
export const ProgressSuperSlurperJobResponse =
|
|
3245
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3246
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3247
|
+
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3248
|
+
failedObjects: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3249
|
+
objects: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3250
|
+
skippedObjects: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3251
|
+
status: Schema.optional(
|
|
3252
|
+
Schema.Union([
|
|
3253
|
+
Schema.Literals(["running", "paused", "aborted", "completed"]),
|
|
3254
|
+
Schema.Null,
|
|
3255
|
+
]),
|
|
3256
|
+
),
|
|
3257
|
+
transferredObjects: Schema.optional(
|
|
3258
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
3259
|
+
),
|
|
3260
|
+
}).pipe(
|
|
3261
|
+
T.ResponsePath("result"),
|
|
3262
|
+
) as unknown as Schema.Schema<ProgressSuperSlurperJobResponse>;
|
|
3263
|
+
|
|
3264
|
+
export type ProgressSuperSlurperJobError = DefaultErrors;
|
|
3265
|
+
|
|
3266
|
+
export const progressSuperSlurperJob: API.OperationMethod<
|
|
3267
|
+
ProgressSuperSlurperJobRequest,
|
|
3268
|
+
ProgressSuperSlurperJobResponse,
|
|
3269
|
+
ProgressSuperSlurperJobError,
|
|
3270
|
+
Credentials | HttpClient.HttpClient
|
|
3271
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
3272
|
+
input: ProgressSuperSlurperJobRequest,
|
|
3273
|
+
output: ProgressSuperSlurperJobResponse,
|
|
3274
|
+
errors: [],
|
|
3275
|
+
}));
|
|
3276
|
+
|
|
3277
|
+
export interface ResumeSuperSlurperJobRequest {
|
|
3278
|
+
jobId: string;
|
|
3279
|
+
accountId: string;
|
|
3280
|
+
}
|
|
3281
|
+
|
|
3282
|
+
export const ResumeSuperSlurperJobRequest =
|
|
3283
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3284
|
+
jobId: Schema.String.pipe(T.HttpPath("jobId")),
|
|
3285
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3286
|
+
}).pipe(
|
|
3287
|
+
T.Http({
|
|
3288
|
+
method: "PUT",
|
|
3289
|
+
path: "/accounts/{account_id}/slurper/jobs/{jobId}/resume",
|
|
3290
|
+
}),
|
|
3291
|
+
) as unknown as Schema.Schema<ResumeSuperSlurperJobRequest>;
|
|
3292
|
+
|
|
3293
|
+
export type ResumeSuperSlurperJobResponse = string;
|
|
3294
|
+
|
|
3295
|
+
export const ResumeSuperSlurperJobResponse =
|
|
3296
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.String.pipe(
|
|
3297
|
+
T.ResponsePath("result"),
|
|
3298
|
+
) as unknown as Schema.Schema<ResumeSuperSlurperJobResponse>;
|
|
3299
|
+
|
|
3300
|
+
export type ResumeSuperSlurperJobError = DefaultErrors;
|
|
3301
|
+
|
|
3302
|
+
export const resumeSuperSlurperJob: API.OperationMethod<
|
|
3303
|
+
ResumeSuperSlurperJobRequest,
|
|
3304
|
+
ResumeSuperSlurperJobResponse,
|
|
3305
|
+
ResumeSuperSlurperJobError,
|
|
3306
|
+
Credentials | HttpClient.HttpClient
|
|
3307
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
3308
|
+
input: ResumeSuperSlurperJobRequest,
|
|
3309
|
+
output: ResumeSuperSlurperJobResponse,
|
|
3310
|
+
errors: [],
|
|
3311
|
+
}));
|
|
3312
|
+
|
|
3313
|
+
// =============================================================================
|
|
3314
|
+
// SuperSlurperJobLog
|
|
3315
|
+
// =============================================================================
|
|
3316
|
+
|
|
3317
|
+
export interface ListSuperSlurperJobLogsRequest {
|
|
3318
|
+
jobId: string;
|
|
3319
|
+
/** Path param: */
|
|
3320
|
+
accountId: string;
|
|
3321
|
+
/** Query param: */
|
|
3322
|
+
limit?: number;
|
|
3323
|
+
/** Query param: */
|
|
3324
|
+
offset?: number;
|
|
3325
|
+
}
|
|
3326
|
+
|
|
3327
|
+
export const ListSuperSlurperJobLogsRequest =
|
|
3328
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3329
|
+
jobId: Schema.String.pipe(T.HttpPath("jobId")),
|
|
3330
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3331
|
+
limit: Schema.optional(Schema.Number).pipe(T.HttpQuery("limit")),
|
|
3332
|
+
offset: Schema.optional(Schema.Number).pipe(T.HttpQuery("offset")),
|
|
3333
|
+
}).pipe(
|
|
3334
|
+
T.Http({
|
|
3335
|
+
method: "GET",
|
|
3336
|
+
path: "/accounts/{account_id}/slurper/jobs/{jobId}/logs",
|
|
3337
|
+
}),
|
|
3338
|
+
) as unknown as Schema.Schema<ListSuperSlurperJobLogsRequest>;
|
|
3339
|
+
|
|
3340
|
+
export interface ListSuperSlurperJobLogsResponse {
|
|
3341
|
+
result: {
|
|
3342
|
+
createdAt?: string | null;
|
|
3343
|
+
job?: string | null;
|
|
3344
|
+
logType?:
|
|
3345
|
+
| "migrationStart"
|
|
3346
|
+
| "migrationComplete"
|
|
3347
|
+
| "migrationAbort"
|
|
3348
|
+
| "migrationError"
|
|
3349
|
+
| "migrationPause"
|
|
3350
|
+
| "migrationResume"
|
|
3351
|
+
| "migrationErrorFailedContinuation"
|
|
3352
|
+
| "importErrorRetryExhaustion"
|
|
3353
|
+
| "importSkippedStorageClass"
|
|
3354
|
+
| "importSkippedOversized"
|
|
3355
|
+
| "importSkippedEmptyObject"
|
|
3356
|
+
| "importSkippedUnsupportedContentType"
|
|
3357
|
+
| "importSkippedExcludedContentType"
|
|
3358
|
+
| "importSkippedInvalidMedia"
|
|
3359
|
+
| "importSkippedRequiresRetrieval"
|
|
3360
|
+
| null;
|
|
3361
|
+
message?: string | null;
|
|
3362
|
+
objectKey?: string | null;
|
|
3363
|
+
}[];
|
|
3364
|
+
}
|
|
3365
|
+
|
|
3366
|
+
export const ListSuperSlurperJobLogsResponse =
|
|
3367
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3368
|
+
result: Schema.Array(
|
|
3369
|
+
Schema.Struct({
|
|
3370
|
+
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3371
|
+
job: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3372
|
+
logType: Schema.optional(
|
|
3373
|
+
Schema.Union([
|
|
3374
|
+
Schema.Literals([
|
|
3375
|
+
"migrationStart",
|
|
3376
|
+
"migrationComplete",
|
|
3377
|
+
"migrationAbort",
|
|
3378
|
+
"migrationError",
|
|
3379
|
+
"migrationPause",
|
|
3380
|
+
"migrationResume",
|
|
3381
|
+
"migrationErrorFailedContinuation",
|
|
3382
|
+
"importErrorRetryExhaustion",
|
|
3383
|
+
"importSkippedStorageClass",
|
|
3384
|
+
"importSkippedOversized",
|
|
3385
|
+
"importSkippedEmptyObject",
|
|
3386
|
+
"importSkippedUnsupportedContentType",
|
|
3387
|
+
"importSkippedExcludedContentType",
|
|
3388
|
+
"importSkippedInvalidMedia",
|
|
3389
|
+
"importSkippedRequiresRetrieval",
|
|
3390
|
+
]),
|
|
3391
|
+
Schema.Null,
|
|
3392
|
+
]),
|
|
3393
|
+
),
|
|
3394
|
+
message: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3395
|
+
objectKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3396
|
+
}),
|
|
3397
|
+
),
|
|
3398
|
+
}) as unknown as Schema.Schema<ListSuperSlurperJobLogsResponse>;
|
|
3399
|
+
|
|
3400
|
+
export type ListSuperSlurperJobLogsError = DefaultErrors;
|
|
3401
|
+
|
|
3402
|
+
export const listSuperSlurperJobLogs: API.PaginatedOperationMethod<
|
|
3403
|
+
ListSuperSlurperJobLogsRequest,
|
|
3404
|
+
ListSuperSlurperJobLogsResponse,
|
|
3405
|
+
ListSuperSlurperJobLogsError,
|
|
3406
|
+
Credentials | HttpClient.HttpClient
|
|
3407
|
+
> & {
|
|
3408
|
+
pages: (
|
|
3409
|
+
input: ListSuperSlurperJobLogsRequest,
|
|
3410
|
+
) => stream.Stream<
|
|
3411
|
+
ListSuperSlurperJobLogsResponse,
|
|
3412
|
+
ListSuperSlurperJobLogsError,
|
|
3413
|
+
Credentials | HttpClient.HttpClient
|
|
3414
|
+
>;
|
|
3415
|
+
items: (input: ListSuperSlurperJobLogsRequest) => stream.Stream<
|
|
3416
|
+
{
|
|
3417
|
+
createdAt?: string | null;
|
|
3418
|
+
job?: string | null;
|
|
3419
|
+
logType?:
|
|
3420
|
+
| "migrationStart"
|
|
3421
|
+
| "migrationComplete"
|
|
3422
|
+
| "migrationAbort"
|
|
3423
|
+
| "migrationError"
|
|
3424
|
+
| "migrationPause"
|
|
3425
|
+
| "migrationResume"
|
|
3426
|
+
| "migrationErrorFailedContinuation"
|
|
3427
|
+
| "importErrorRetryExhaustion"
|
|
3428
|
+
| "importSkippedStorageClass"
|
|
3429
|
+
| "importSkippedOversized"
|
|
3430
|
+
| "importSkippedEmptyObject"
|
|
3431
|
+
| "importSkippedUnsupportedContentType"
|
|
3432
|
+
| "importSkippedExcludedContentType"
|
|
3433
|
+
| "importSkippedInvalidMedia"
|
|
3434
|
+
| "importSkippedRequiresRetrieval"
|
|
3435
|
+
| null;
|
|
3436
|
+
message?: string | null;
|
|
3437
|
+
objectKey?: string | null;
|
|
3438
|
+
},
|
|
3439
|
+
ListSuperSlurperJobLogsError,
|
|
3440
|
+
Credentials | HttpClient.HttpClient
|
|
3441
|
+
>;
|
|
3442
|
+
} = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
3443
|
+
input: ListSuperSlurperJobLogsRequest,
|
|
3444
|
+
output: ListSuperSlurperJobLogsResponse,
|
|
3445
|
+
errors: [],
|
|
3446
|
+
pagination: {
|
|
3447
|
+
mode: "single",
|
|
3448
|
+
items: "result",
|
|
3449
|
+
} as const,
|
|
3450
|
+
}));
|
|
3451
|
+
|
|
3452
|
+
// =============================================================================
|
|
3453
|
+
// TemporaryCredential
|
|
3454
|
+
// =============================================================================
|
|
3455
|
+
|
|
3456
|
+
export interface CreateTemporaryCredentialRequest {
|
|
3457
|
+
/** Path param: Account ID. */
|
|
3458
|
+
accountId: string;
|
|
3459
|
+
/** Body param: Name of the R2 bucket. */
|
|
3460
|
+
bucket: string;
|
|
3461
|
+
/** Body param: The parent access key id to use for signing. */
|
|
3462
|
+
parentAccessKeyId: string;
|
|
3463
|
+
/** Body param: Permissions allowed on the credentials. */
|
|
3464
|
+
permission:
|
|
3465
|
+
| "admin-read-write"
|
|
3466
|
+
| "admin-read-only"
|
|
3467
|
+
| "object-read-write"
|
|
3468
|
+
| "object-read-only";
|
|
3469
|
+
/** Body param: How long the credentials will live for in seconds. */
|
|
3470
|
+
ttlSeconds: number;
|
|
3471
|
+
/** Body param: Optional object paths to scope the credentials to. */
|
|
3472
|
+
objects?: string[];
|
|
3473
|
+
/** Body param: Optional prefix paths to scope the credentials to. */
|
|
3474
|
+
prefixes?: string[];
|
|
3475
|
+
}
|
|
3476
|
+
|
|
3477
|
+
export const CreateTemporaryCredentialRequest =
|
|
3478
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3479
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3480
|
+
bucket: Schema.String,
|
|
3481
|
+
parentAccessKeyId: Schema.String,
|
|
3482
|
+
permission: Schema.Literals([
|
|
3483
|
+
"admin-read-write",
|
|
3484
|
+
"admin-read-only",
|
|
3485
|
+
"object-read-write",
|
|
3486
|
+
"object-read-only",
|
|
3487
|
+
]),
|
|
3488
|
+
ttlSeconds: Schema.Number,
|
|
3489
|
+
objects: Schema.optional(Schema.Array(Schema.String)),
|
|
3490
|
+
prefixes: Schema.optional(Schema.Array(Schema.String)),
|
|
3491
|
+
}).pipe(
|
|
3492
|
+
T.Http({
|
|
3493
|
+
method: "POST",
|
|
3494
|
+
path: "/accounts/{account_id}/r2/temp-access-credentials",
|
|
3495
|
+
}),
|
|
3496
|
+
) as unknown as Schema.Schema<CreateTemporaryCredentialRequest>;
|
|
3497
|
+
|
|
3498
|
+
export interface CreateTemporaryCredentialResponse {
|
|
3499
|
+
/** ID for new access key. */
|
|
3500
|
+
accessKeyId?: string | null;
|
|
3501
|
+
/** Secret access key. */
|
|
3502
|
+
secretAccessKey?: string | null;
|
|
3503
|
+
/** Security token. */
|
|
3504
|
+
sessionToken?: string | null;
|
|
3505
|
+
}
|
|
3506
|
+
|
|
3507
|
+
export const CreateTemporaryCredentialResponse =
|
|
3508
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3509
|
+
accessKeyId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3510
|
+
secretAccessKey: Schema.optional(
|
|
3511
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
3512
|
+
),
|
|
3513
|
+
sessionToken: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3514
|
+
}).pipe(
|
|
3515
|
+
T.ResponsePath("result"),
|
|
3516
|
+
) as unknown as Schema.Schema<CreateTemporaryCredentialResponse>;
|
|
3517
|
+
|
|
3518
|
+
export type CreateTemporaryCredentialError = DefaultErrors;
|
|
3519
|
+
|
|
3520
|
+
export const createTemporaryCredential: API.OperationMethod<
|
|
3521
|
+
CreateTemporaryCredentialRequest,
|
|
3522
|
+
CreateTemporaryCredentialResponse,
|
|
3523
|
+
CreateTemporaryCredentialError,
|
|
3524
|
+
Credentials | HttpClient.HttpClient
|
|
3525
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
3526
|
+
input: CreateTemporaryCredentialRequest,
|
|
3527
|
+
output: CreateTemporaryCredentialResponse,
|
|
3528
|
+
errors: [],
|
|
3529
|
+
}));
|