@distilled.cloud/cloudflare 0.0.0 → 0.2.0-alpha
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/lib/auth.d.ts +13 -0
- package/lib/auth.d.ts.map +1 -0
- package/lib/auth.js +12 -0
- package/lib/auth.js.map +1 -0
- package/lib/category.d.ts +2 -0
- package/lib/category.d.ts.map +1 -0
- package/lib/category.js +2 -0
- package/lib/category.js.map +1 -0
- package/lib/client/api.d.ts +14 -0
- package/lib/client/api.d.ts.map +1 -0
- package/lib/client/api.js +197 -0
- package/lib/client/api.js.map +1 -0
- package/lib/client/index.d.ts +8 -0
- package/lib/client/index.d.ts.map +1 -0
- package/lib/client/index.js +8 -0
- package/lib/client/index.js.map +1 -0
- package/lib/credentials.d.ts +14 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +17 -0
- package/lib/credentials.js.map +1 -0
- package/lib/errors.d.ts +48 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +38 -0
- package/lib/errors.js.map +1 -0
- package/lib/index.d.ts +10 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +10 -0
- package/lib/index.js.map +1 -0
- package/lib/retry.d.ts +14 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +14 -0
- package/lib/retry.js.map +1 -0
- package/lib/schemas.d.ts +29 -0
- package/lib/schemas.d.ts.map +1 -0
- package/lib/schemas.js +34 -0
- package/lib/schemas.js.map +1 -0
- package/lib/services/abuse-reports.d.ts +224 -0
- package/lib/services/abuse-reports.d.ts.map +1 -0
- package/lib/services/abuse-reports.js +353 -0
- package/lib/services/abuse-reports.js.map +1 -0
- package/lib/services/accounts.d.ts +682 -0
- package/lib/services/accounts.d.ts.map +1 -0
- package/lib/services/accounts.js +805 -0
- package/lib/services/accounts.js.map +1 -0
- package/lib/services/acm.d.ts +73 -0
- package/lib/services/acm.d.ts.map +1 -0
- package/lib/services/acm.js +76 -0
- package/lib/services/acm.js.map +1 -0
- package/lib/services/addressing.d.ts +1208 -0
- package/lib/services/addressing.d.ts.map +1 -0
- package/lib/services/addressing.js +1776 -0
- package/lib/services/addressing.js.map +1 -0
- package/lib/services/ai-gateway.d.ts +956 -0
- package/lib/services/ai-gateway.d.ts.map +1 -0
- package/lib/services/ai-gateway.js +1706 -0
- package/lib/services/ai-gateway.js.map +1 -0
- package/lib/services/ai.d.ts +243 -0
- package/lib/services/ai.d.ts.map +1 -0
- package/lib/services/ai.js +299 -0
- package/lib/services/ai.js.map +1 -0
- package/lib/services/aisearch.d.ts +915 -0
- package/lib/services/aisearch.d.ts.map +1 -0
- package/lib/services/aisearch.js +2425 -0
- package/lib/services/aisearch.js.map +1 -0
- package/lib/services/alerting.d.ts +718 -0
- package/lib/services/alerting.d.ts.map +1 -0
- package/lib/services/alerting.js +1388 -0
- package/lib/services/alerting.js.map +1 -0
- package/lib/services/api-gateway.d.ts +830 -0
- package/lib/services/api-gateway.d.ts.map +1 -0
- package/lib/services/api-gateway.js +1548 -0
- package/lib/services/api-gateway.js.map +1 -0
- package/lib/services/argo.d.ts +101 -0
- package/lib/services/argo.d.ts.map +1 -0
- package/lib/services/argo.js +105 -0
- package/lib/services/argo.js.map +1 -0
- package/lib/services/audit-logs.d.ts +46 -0
- package/lib/services/audit-logs.d.ts.map +1 -0
- package/lib/services/audit-logs.js +37 -0
- package/lib/services/audit-logs.js.map +1 -0
- package/lib/services/billing.d.ts +62 -0
- package/lib/services/billing.d.ts.map +1 -0
- package/lib/services/billing.js +100 -0
- package/lib/services/billing.js.map +1 -0
- package/lib/services/bot-management.d.ts +124 -0
- package/lib/services/bot-management.d.ts.map +1 -0
- package/lib/services/bot-management.js +262 -0
- package/lib/services/bot-management.js.map +1 -0
- package/lib/services/botnet-feed.d.ts +65 -0
- package/lib/services/botnet-feed.d.ts.map +1 -0
- package/lib/services/botnet-feed.js +84 -0
- package/lib/services/botnet-feed.js.map +1 -0
- package/lib/services/brand-protection.d.ts +188 -0
- package/lib/services/brand-protection.d.ts.map +1 -0
- package/lib/services/brand-protection.js +214 -0
- package/lib/services/brand-protection.js.map +1 -0
- package/lib/services/browser-rendering.d.ts +857 -0
- package/lib/services/browser-rendering.d.ts.map +1 -0
- package/lib/services/browser-rendering.js +1141 -0
- package/lib/services/browser-rendering.js.map +1 -0
- package/lib/services/cache.d.ts +287 -0
- package/lib/services/cache.d.ts.map +1 -0
- package/lib/services/cache.js +330 -0
- package/lib/services/cache.js.map +1 -0
- package/lib/services/calls.d.ts +202 -0
- package/lib/services/calls.d.ts.map +1 -0
- package/lib/services/calls.js +175 -0
- package/lib/services/calls.js.map +1 -0
- package/lib/services/certificate-authorities.d.ts +40 -0
- package/lib/services/certificate-authorities.d.ts.map +1 -0
- package/lib/services/certificate-authorities.js +49 -0
- package/lib/services/certificate-authorities.js.map +1 -0
- package/lib/services/client-certificates.d.ts +254 -0
- package/lib/services/client-certificates.d.ts.map +1 -0
- package/lib/services/client-certificates.js +350 -0
- package/lib/services/client-certificates.js.map +1 -0
- package/lib/services/cloud-connector.d.ts +59 -0
- package/lib/services/cloud-connector.d.ts.map +1 -0
- package/lib/services/cloud-connector.js +84 -0
- package/lib/services/cloud-connector.js.map +1 -0
- package/lib/services/cloudforce-one.d.ts +1318 -0
- package/lib/services/cloudforce-one.d.ts.map +1 -0
- package/lib/services/cloudforce-one.js +1684 -0
- package/lib/services/cloudforce-one.js.map +1 -0
- package/lib/services/connectivity.d.ts +248 -0
- package/lib/services/connectivity.d.ts.map +1 -0
- package/lib/services/connectivity.js +377 -0
- package/lib/services/connectivity.js.map +1 -0
- package/lib/services/content-scanning.d.ts +131 -0
- package/lib/services/content-scanning.d.ts.map +1 -0
- package/lib/services/content-scanning.js +156 -0
- package/lib/services/content-scanning.js.map +1 -0
- package/lib/services/custom-certificates.d.ts +211 -0
- package/lib/services/custom-certificates.d.ts.map +1 -0
- package/lib/services/custom-certificates.js +309 -0
- package/lib/services/custom-certificates.js.map +1 -0
- package/lib/services/custom-hostnames.d.ts +525 -0
- package/lib/services/custom-hostnames.d.ts.map +1 -0
- package/lib/services/custom-hostnames.js +1164 -0
- package/lib/services/custom-hostnames.js.map +1 -0
- package/lib/services/custom-nameservers.d.ts +67 -0
- package/lib/services/custom-nameservers.d.ts.map +1 -0
- package/lib/services/custom-nameservers.js +80 -0
- package/lib/services/custom-nameservers.js.map +1 -0
- package/lib/services/custom-pages.d.ts +74 -0
- package/lib/services/custom-pages.d.ts.map +1 -0
- package/lib/services/custom-pages.js +125 -0
- package/lib/services/custom-pages.js.map +1 -0
- package/lib/services/d1.d.ts +326 -0
- package/lib/services/d1.d.ts.map +1 -0
- package/lib/services/d1.js +448 -0
- package/lib/services/d1.js.map +1 -0
- package/lib/services/dcv-delegation.d.ts +24 -0
- package/lib/services/dcv-delegation.d.ts.map +1 -0
- package/lib/services/dcv-delegation.js +24 -0
- package/lib/services/dcv-delegation.js.map +1 -0
- package/lib/services/diagnostics.d.ts +175 -0
- package/lib/services/diagnostics.d.ts.map +1 -0
- package/lib/services/diagnostics.js +273 -0
- package/lib/services/diagnostics.js.map +1 -0
- package/lib/services/dns-firewall.d.ts +288 -0
- package/lib/services/dns-firewall.d.ts.map +1 -0
- package/lib/services/dns-firewall.js +373 -0
- package/lib/services/dns-firewall.js.map +1 -0
- package/lib/services/dns.d.ts +2946 -0
- package/lib/services/dns.d.ts.map +1 -0
- package/lib/services/dns.js +4511 -0
- package/lib/services/dns.js.map +1 -0
- package/lib/services/durable-objects.d.ts +61 -0
- package/lib/services/durable-objects.d.ts.map +1 -0
- package/lib/services/durable-objects.js +66 -0
- package/lib/services/durable-objects.js.map +1 -0
- package/lib/services/email-routing.d.ts +542 -0
- package/lib/services/email-routing.d.ts.map +1 -0
- package/lib/services/email-routing.js +662 -0
- package/lib/services/email-routing.js.map +1 -0
- package/lib/services/email-security.d.ts +1131 -0
- package/lib/services/email-security.d.ts.map +1 -0
- package/lib/services/email-security.js +2065 -0
- package/lib/services/email-security.js.map +1 -0
- package/lib/services/filters.d.ts +157 -0
- package/lib/services/filters.d.ts.map +1 -0
- package/lib/services/filters.js +135 -0
- package/lib/services/filters.js.map +1 -0
- package/lib/services/firewall.d.ts +1080 -0
- package/lib/services/firewall.d.ts.map +1 -0
- package/lib/services/firewall.js +1881 -0
- package/lib/services/firewall.js.map +1 -0
- package/lib/services/healthchecks.d.ts +464 -0
- package/lib/services/healthchecks.d.ts.map +1 -0
- package/lib/services/healthchecks.js +838 -0
- package/lib/services/healthchecks.js.map +1 -0
- package/lib/services/hostnames.d.ts +74 -0
- package/lib/services/hostnames.d.ts.map +1 -0
- package/lib/services/hostnames.js +100 -0
- package/lib/services/hostnames.js.map +1 -0
- package/lib/services/hyperdrive.d.ts +203 -0
- package/lib/services/hyperdrive.d.ts.map +1 -0
- package/lib/services/hyperdrive.js +299 -0
- package/lib/services/hyperdrive.js.map +1 -0
- package/lib/services/iam.d.ts +554 -0
- package/lib/services/iam.d.ts.map +1 -0
- package/lib/services/iam.js +743 -0
- package/lib/services/iam.js.map +1 -0
- package/lib/services/images.d.ts +403 -0
- package/lib/services/images.d.ts.map +1 -0
- package/lib/services/images.js +417 -0
- package/lib/services/images.js.map +1 -0
- package/lib/services/intel.d.ts +768 -0
- package/lib/services/intel.d.ts.map +1 -0
- package/lib/services/intel.js +1179 -0
- package/lib/services/intel.js.map +1 -0
- package/lib/services/ips.d.ts +28 -0
- package/lib/services/ips.d.ts.map +1 -0
- package/lib/services/ips.js +39 -0
- package/lib/services/ips.js.map +1 -0
- package/lib/services/keyless-certificates.d.ts +177 -0
- package/lib/services/keyless-certificates.d.ts.map +1 -0
- package/lib/services/keyless-certificates.js +216 -0
- package/lib/services/keyless-certificates.js.map +1 -0
- package/lib/services/kv.d.ts +339 -0
- package/lib/services/kv.d.ts.map +1 -0
- package/lib/services/kv.js +402 -0
- package/lib/services/kv.js.map +1 -0
- package/lib/services/leaked-credential-checks.d.ts +119 -0
- package/lib/services/leaked-credential-checks.d.ts.map +1 -0
- package/lib/services/leaked-credential-checks.js +130 -0
- package/lib/services/leaked-credential-checks.js.map +1 -0
- package/lib/services/load-balancers.d.ts +1767 -0
- package/lib/services/load-balancers.d.ts.map +1 -0
- package/lib/services/load-balancers.js +3068 -0
- package/lib/services/load-balancers.js.map +1 -0
- package/lib/services/logpush.d.ts +401 -0
- package/lib/services/logpush.d.ts.map +1 -0
- package/lib/services/logpush.js +724 -0
- package/lib/services/logpush.js.map +1 -0
- package/lib/services/logs.d.ts +125 -0
- package/lib/services/logs.d.ts.map +1 -0
- package/lib/services/logs.js +145 -0
- package/lib/services/logs.js.map +1 -0
- package/lib/services/magic-cloud-networking.d.ts +1599 -0
- package/lib/services/magic-cloud-networking.d.ts.map +1 -0
- package/lib/services/magic-cloud-networking.js +5205 -0
- package/lib/services/magic-cloud-networking.js.map +1 -0
- package/lib/services/magic-network-monitoring.d.ts +379 -0
- package/lib/services/magic-network-monitoring.d.ts.map +1 -0
- package/lib/services/magic-network-monitoring.js +535 -0
- package/lib/services/magic-network-monitoring.js.map +1 -0
- package/lib/services/magic-transit.d.ts +3650 -0
- package/lib/services/magic-transit.d.ts.map +1 -0
- package/lib/services/magic-transit.js +6120 -0
- package/lib/services/magic-transit.js.map +1 -0
- package/lib/services/managed-transforms.d.ts +79 -0
- package/lib/services/managed-transforms.d.ts.map +1 -0
- package/lib/services/managed-transforms.js +107 -0
- package/lib/services/managed-transforms.js.map +1 -0
- package/lib/services/memberships.d.ts +172 -0
- package/lib/services/memberships.d.ts.map +1 -0
- package/lib/services/memberships.js +282 -0
- package/lib/services/memberships.js.map +1 -0
- package/lib/services/mtls-certificates.d.ts +140 -0
- package/lib/services/mtls-certificates.d.ts.map +1 -0
- package/lib/services/mtls-certificates.js +173 -0
- package/lib/services/mtls-certificates.js.map +1 -0
- package/lib/services/network-interconnects.d.ts +410 -0
- package/lib/services/network-interconnects.d.ts.map +1 -0
- package/lib/services/network-interconnects.js +583 -0
- package/lib/services/network-interconnects.js.map +1 -0
- package/lib/services/organizations.d.ts +201 -0
- package/lib/services/organizations.d.ts.map +1 -0
- package/lib/services/organizations.js +355 -0
- package/lib/services/organizations.js.map +1 -0
- package/lib/services/origin-ca-certificates.d.ts +99 -0
- package/lib/services/origin-ca-certificates.d.ts.map +1 -0
- package/lib/services/origin-ca-certificates.js +156 -0
- package/lib/services/origin-ca-certificates.js.map +1 -0
- package/lib/services/origin-post-quantum-encryption.d.ts +50 -0
- package/lib/services/origin-post-quantum-encryption.d.ts.map +1 -0
- package/lib/services/origin-post-quantum-encryption.js +60 -0
- package/lib/services/origin-post-quantum-encryption.js.map +1 -0
- package/lib/services/origin-tls-client-auth.d.ts +273 -0
- package/lib/services/origin-tls-client-auth.d.ts.map +1 -0
- package/lib/services/origin-tls-client-auth.js +401 -0
- package/lib/services/origin-tls-client-auth.js.map +1 -0
- package/lib/services/page-rules.d.ts +773 -0
- package/lib/services/page-rules.d.ts.map +1 -0
- package/lib/services/page-rules.js +1365 -0
- package/lib/services/page-rules.js.map +1 -0
- package/lib/services/page-shield.d.ts +426 -0
- package/lib/services/page-shield.d.ts.map +1 -0
- package/lib/services/page-shield.js +484 -0
- package/lib/services/page-shield.js.map +1 -0
- package/lib/services/pages.d.ts +1654 -0
- package/lib/services/pages.d.ts.map +1 -0
- package/lib/services/pages.js +2954 -0
- package/lib/services/pages.js.map +1 -0
- package/lib/services/pipelines.d.ts +1461 -0
- package/lib/services/pipelines.d.ts.map +1 -0
- package/lib/services/pipelines.js +2912 -0
- package/lib/services/pipelines.js.map +1 -0
- package/lib/services/queues.d.ts +807 -0
- package/lib/services/queues.d.ts.map +1 -0
- package/lib/services/queues.js +1194 -0
- package/lib/services/queues.js.map +1 -0
- package/lib/services/r2-data-catalog.d.ts +341 -0
- package/lib/services/r2-data-catalog.d.ts.map +1 -0
- package/lib/services/r2-data-catalog.js +499 -0
- package/lib/services/r2-data-catalog.js.map +1 -0
- package/lib/services/r2.d.ts +1041 -0
- package/lib/services/r2.d.ts.map +1 -0
- package/lib/services/r2.js +1384 -0
- package/lib/services/r2.js.map +1 -0
- package/lib/services/radar.d.ts +9276 -0
- package/lib/services/radar.d.ts.map +1 -0
- package/lib/services/radar.js +20491 -0
- package/lib/services/radar.js.map +1 -0
- package/lib/services/rate-limits.d.ts +315 -0
- package/lib/services/rate-limits.d.ts.map +1 -0
- package/lib/services/rate-limits.js +521 -0
- package/lib/services/rate-limits.js.map +1 -0
- package/lib/services/realtime-kit.d.ts +2728 -0
- package/lib/services/realtime-kit.d.ts.map +1 -0
- package/lib/services/realtime-kit.js +5401 -0
- package/lib/services/realtime-kit.js.map +1 -0
- package/lib/services/registrar.d.ts +81 -0
- package/lib/services/registrar.d.ts.map +1 -0
- package/lib/services/registrar.js +154 -0
- package/lib/services/registrar.js.map +1 -0
- package/lib/services/request-tracers.d.ts +61 -0
- package/lib/services/request-tracers.d.ts.map +1 -0
- package/lib/services/request-tracers.js +82 -0
- package/lib/services/request-tracers.js.map +1 -0
- package/lib/services/resource-sharing.d.ts +540 -0
- package/lib/services/resource-sharing.d.ts.map +1 -0
- package/lib/services/resource-sharing.js +846 -0
- package/lib/services/resource-sharing.js.map +1 -0
- package/lib/services/rules.d.ts +297 -0
- package/lib/services/rules.d.ts.map +1 -0
- package/lib/services/rules.js +396 -0
- package/lib/services/rules.js.map +1 -0
- package/lib/services/rulesets.d.ts +3300 -0
- package/lib/services/rulesets.d.ts.map +1 -0
- package/lib/services/rulesets.js +7852 -0
- package/lib/services/rulesets.js.map +1 -0
- package/lib/services/rum.d.ts +289 -0
- package/lib/services/rum.d.ts.map +1 -0
- package/lib/services/rum.js +409 -0
- package/lib/services/rum.js.map +1 -0
- package/lib/services/schema-validation.d.ts +240 -0
- package/lib/services/schema-validation.d.ts.map +1 -0
- package/lib/services/schema-validation.js +306 -0
- package/lib/services/schema-validation.js.map +1 -0
- package/lib/services/secrets-store.d.ts +321 -0
- package/lib/services/secrets-store.d.ts.map +1 -0
- package/lib/services/secrets-store.js +385 -0
- package/lib/services/secrets-store.js.map +1 -0
- package/lib/services/security-center.d.ts +102 -0
- package/lib/services/security-center.d.ts.map +1 -0
- package/lib/services/security-center.js +170 -0
- package/lib/services/security-center.js.map +1 -0
- package/lib/services/security-txt.d.ts +105 -0
- package/lib/services/security-txt.d.ts.map +1 -0
- package/lib/services/security-txt.js +136 -0
- package/lib/services/security-txt.js.map +1 -0
- package/lib/services/snippets.d.ts +138 -0
- package/lib/services/snippets.d.ts.map +1 -0
- package/lib/services/snippets.js +178 -0
- package/lib/services/snippets.js.map +1 -0
- package/lib/services/spectrum.d.ts +316 -0
- package/lib/services/spectrum.d.ts.map +1 -0
- package/lib/services/spectrum.js +510 -0
- package/lib/services/spectrum.js.map +1 -0
- package/lib/services/speed.d.ts +227 -0
- package/lib/services/speed.d.ts.map +1 -0
- package/lib/services/speed.js +444 -0
- package/lib/services/speed.js.map +1 -0
- package/lib/services/ssl.d.ts +370 -0
- package/lib/services/ssl.d.ts.map +1 -0
- package/lib/services/ssl.js +732 -0
- package/lib/services/ssl.js.map +1 -0
- package/lib/services/stream.d.ts +1014 -0
- package/lib/services/stream.d.ts.map +1 -0
- package/lib/services/stream.js +1049 -0
- package/lib/services/stream.js.map +1 -0
- package/lib/services/token-validation.d.ts +547 -0
- package/lib/services/token-validation.d.ts.map +1 -0
- package/lib/services/token-validation.js +768 -0
- package/lib/services/token-validation.js.map +1 -0
- package/lib/services/turnstile.d.ts +248 -0
- package/lib/services/turnstile.d.ts.map +1 -0
- package/lib/services/turnstile.js +308 -0
- package/lib/services/turnstile.js.map +1 -0
- package/lib/services/url-normalization.d.ts +53 -0
- package/lib/services/url-normalization.d.ts.map +1 -0
- package/lib/services/url-normalization.js +52 -0
- package/lib/services/url-normalization.js.map +1 -0
- package/lib/services/url-scanner.d.ts +612 -0
- package/lib/services/url-scanner.d.ts.map +1 -0
- package/lib/services/url-scanner.js +915 -0
- package/lib/services/url-scanner.js.map +1 -0
- package/lib/services/user.d.ts +441 -0
- package/lib/services/user.d.ts.map +1 -0
- package/lib/services/user.js +567 -0
- package/lib/services/user.js.map +1 -0
- package/lib/services/vectorize.d.ts +282 -0
- package/lib/services/vectorize.d.ts.map +1 -0
- package/lib/services/vectorize.js +340 -0
- package/lib/services/vectorize.js.map +1 -0
- package/lib/services/waiting-rooms.d.ts +1009 -0
- package/lib/services/waiting-rooms.d.ts.map +1 -0
- package/lib/services/waiting-rooms.js +1757 -0
- package/lib/services/waiting-rooms.js.map +1 -0
- package/lib/services/web3.d.ts +274 -0
- package/lib/services/web3.d.ts.map +1 -0
- package/lib/services/web3.js +362 -0
- package/lib/services/web3.js.map +1 -0
- package/lib/services/workers-for-platforms.d.ts +1224 -0
- package/lib/services/workers-for-platforms.d.ts.map +1 -0
- package/lib/services/workers-for-platforms.js +2078 -0
- package/lib/services/workers-for-platforms.js.map +1 -0
- package/lib/services/workers.d.ts +3498 -0
- package/lib/services/workers.d.ts.map +1 -0
- package/lib/services/workers.js +5967 -0
- package/lib/services/workers.js.map +1 -0
- package/lib/services/workflows.d.ts +359 -0
- package/lib/services/workflows.d.ts.map +1 -0
- package/lib/services/workflows.js +516 -0
- package/lib/services/workflows.js.map +1 -0
- package/lib/services/zaraz.d.ts +300 -0
- package/lib/services/zaraz.d.ts.map +1 -0
- package/lib/services/zaraz.js +298 -0
- package/lib/services/zaraz.js.map +1 -0
- package/lib/services/zero-trust.d.ts +15449 -0
- package/lib/services/zero-trust.d.ts.map +1 -0
- package/lib/services/zero-trust.js +29194 -0
- package/lib/services/zero-trust.js.map +1 -0
- package/lib/services/zones.d.ts +1278 -0
- package/lib/services/zones.d.ts.map +1 -0
- package/lib/services/zones.js +2416 -0
- package/lib/services/zones.js.map +1 -0
- package/lib/traits.d.ts +28 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +26 -0
- package/lib/traits.js.map +1 -0
- package/package.json +67 -5
- package/src/auth.ts +14 -0
- package/src/category.ts +1 -0
- package/src/client/api.ts +269 -0
- package/src/client/index.ts +7 -0
- package/src/credentials.ts +30 -0
- package/src/errors.ts +65 -0
- package/src/index.ts +9 -0
- package/src/retry.ts +35 -0
- package/src/schemas.ts +51 -0
- package/src/services/abuse-reports.ts +747 -0
- package/src/services/accounts.ts +1947 -0
- package/src/services/acm.ts +170 -0
- package/src/services/addressing.ts +3947 -0
- package/src/services/ai-gateway.ts +3335 -0
- package/src/services/ai.ts +727 -0
- package/src/services/aisearch.ts +4750 -0
- package/src/services/alerting.ts +2947 -0
- package/src/services/api-gateway.ts +3391 -0
- package/src/services/argo.ts +254 -0
- package/src/services/audit-logs.ts +90 -0
- package/src/services/billing.ts +172 -0
- package/src/services/bot-management.ts +541 -0
- package/src/services/botnet-feed.ts +193 -0
- package/src/services/brand-protection.ts +553 -0
- package/src/services/browser-rendering.ts +2707 -0
- package/src/services/cache.ts +827 -0
- package/src/services/calls.ts +483 -0
- package/src/services/certificate-authorities.ts +110 -0
- package/src/services/client-certificates.ts +718 -0
- package/src/services/cloud-connector.ts +181 -0
- package/src/services/cloudforce-one.ts +3876 -0
- package/src/services/connectivity.ts +629 -0
- package/src/services/content-scanning.ts +385 -0
- package/src/services/custom-certificates.ts +611 -0
- package/src/services/custom-hostnames.ts +2453 -0
- package/src/services/custom-nameservers.ts +182 -0
- package/src/services/custom-pages.ts +264 -0
- package/src/services/d1.ts +1034 -0
- package/src/services/dcv-delegation.ts +52 -0
- package/src/services/diagnostics.ts +603 -0
- package/src/services/dns-firewall.ts +823 -0
- package/src/services/dns.ts +8897 -0
- package/src/services/durable-objects.ts +148 -0
- package/src/services/email-routing.ts +1602 -0
- package/src/services/email-security.ts +4283 -0
- package/src/services/filters.ts +370 -0
- package/src/services/firewall.ts +3896 -0
- package/src/services/healthchecks.ts +1750 -0
- package/src/services/hostnames.ts +218 -0
- package/src/services/hyperdrive.ts +592 -0
- package/src/services/iam.ts +1668 -0
- package/src/services/images.ts +1086 -0
- package/src/services/intel.ts +2768 -0
- package/src/services/ips.ts +88 -0
- package/src/services/keyless-certificates.ts +462 -0
- package/src/services/kv.ts +1011 -0
- package/src/services/leaked-credential-checks.ts +325 -0
- package/src/services/load-balancers.ts +6438 -0
- package/src/services/logpush.ts +1667 -0
- package/src/services/logs.ts +375 -0
- package/src/services/magic-cloud-networking.ts +10020 -0
- package/src/services/magic-network-monitoring.ts +1156 -0
- package/src/services/magic-transit.ts +13050 -0
- package/src/services/managed-transforms.ts +237 -0
- package/src/services/memberships.ts +615 -0
- package/src/services/mtls-certificates.ts +374 -0
- package/src/services/network-interconnects.ts +1253 -0
- package/src/services/organizations.ts +674 -0
- package/src/services/origin-ca-certificates.ts +303 -0
- package/src/services/origin-post-quantum-encryption.ts +128 -0
- package/src/services/origin-tls-client-auth.ts +878 -0
- package/src/services/page-rules.ts +2612 -0
- package/src/services/page-shield.ts +1195 -0
- package/src/services/pages.ts +5709 -0
- package/src/services/pipelines.ts +6000 -0
- package/src/services/queues.ts +2629 -0
- package/src/services/r2-data-catalog.ts +1119 -0
- package/src/services/r2.ts +3348 -0
- package/src/services/radar.ts +42152 -0
- package/src/services/rate-limits.ts +1150 -0
- package/src/services/realtime-kit.ts +11079 -0
- package/src/services/registrar.ts +295 -0
- package/src/services/request-tracers.ts +158 -0
- package/src/services/resource-sharing.ts +1832 -0
- package/src/services/rules.ts +837 -0
- package/src/services/rulesets.ts +15144 -0
- package/src/services/rum.ts +901 -0
- package/src/services/schema-validation.ts +733 -0
- package/src/services/secrets-store.ts +860 -0
- package/src/services/security-center.ts +397 -0
- package/src/services/security-txt.ts +315 -0
- package/src/services/snippets.ts +420 -0
- package/src/services/spectrum.ts +1103 -0
- package/src/services/speed.ts +1056 -0
- package/src/services/ssl.ts +1587 -0
- package/src/services/stream.ts +2756 -0
- package/src/services/token-validation.ts +1585 -0
- package/src/services/turnstile.ts +643 -0
- package/src/services/url-normalization.ts +129 -0
- package/src/services/url-scanner.ts +1851 -0
- package/src/services/user.ts +1384 -0
- package/src/services/vectorize.ts +816 -0
- package/src/services/waiting-rooms.ts +3807 -0
- package/src/services/web3.ts +834 -0
- package/src/services/workers-for-platforms.ts +3859 -0
- package/src/services/workers.ts +11637 -0
- package/src/services/workflows.ts +1124 -0
- package/src/services/zaraz.ts +797 -0
- package/src/services/zero-trust.ts +58933 -0
- package/src/services/zones.ts +4875 -0
- package/src/traits.ts +47 -0
- package/README.md +0 -15
- package/bun.lock +0 -26
- package/index.ts +0 -1
- package/tsconfig.json +0 -29
|
@@ -0,0 +1,1086 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cloudflare IMAGES API
|
|
3
|
+
*
|
|
4
|
+
* Generated from Cloudflare TypeScript SDK.
|
|
5
|
+
* DO NOT EDIT - regenerate with: bun scripts/generate.ts --service images
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import * as Schema from "effect/Schema";
|
|
9
|
+
import type * as HttpClient from "effect/unstable/http/HttpClient";
|
|
10
|
+
import * as API from "../client/api.ts";
|
|
11
|
+
import * as T from "../traits";
|
|
12
|
+
import type { Credentials } from "../credentials";
|
|
13
|
+
import { type DefaultErrors } from "../errors";
|
|
14
|
+
import { UploadableSchema } from "../schemas";
|
|
15
|
+
|
|
16
|
+
// =============================================================================
|
|
17
|
+
// Errors
|
|
18
|
+
// =============================================================================
|
|
19
|
+
|
|
20
|
+
export class ImageAlreadyExists extends Schema.TaggedErrorClass<ImageAlreadyExists>()(
|
|
21
|
+
"ImageAlreadyExists",
|
|
22
|
+
{ code: Schema.Number, message: Schema.String },
|
|
23
|
+
) {}
|
|
24
|
+
T.applyErrorMatchers(ImageAlreadyExists, [{ code: 5409 }]);
|
|
25
|
+
|
|
26
|
+
export class ImageNotFound extends Schema.TaggedErrorClass<ImageNotFound>()(
|
|
27
|
+
"ImageNotFound",
|
|
28
|
+
{ code: Schema.Number, message: Schema.String },
|
|
29
|
+
) {}
|
|
30
|
+
T.applyErrorMatchers(ImageNotFound, [{ code: 5404 }]);
|
|
31
|
+
|
|
32
|
+
export class ImagesAccessNotEnabled extends Schema.TaggedErrorClass<ImagesAccessNotEnabled>()(
|
|
33
|
+
"ImagesAccessNotEnabled",
|
|
34
|
+
{ code: Schema.Number, message: Schema.String },
|
|
35
|
+
) {}
|
|
36
|
+
T.applyErrorMatchers(ImagesAccessNotEnabled, [{ code: 5403 }]);
|
|
37
|
+
|
|
38
|
+
export class InvalidUploadFormat extends Schema.TaggedErrorClass<InvalidUploadFormat>()(
|
|
39
|
+
"InvalidUploadFormat",
|
|
40
|
+
{ code: Schema.Number, message: Schema.String },
|
|
41
|
+
) {}
|
|
42
|
+
T.applyErrorMatchers(InvalidUploadFormat, [{ code: 5415 }]);
|
|
43
|
+
|
|
44
|
+
export class KeyNotFound extends Schema.TaggedErrorClass<KeyNotFound>()(
|
|
45
|
+
"KeyNotFound",
|
|
46
|
+
{ code: Schema.Number, message: Schema.String },
|
|
47
|
+
) {}
|
|
48
|
+
T.applyErrorMatchers(KeyNotFound, [{ code: 5404 }]);
|
|
49
|
+
|
|
50
|
+
export class VariantNameNotAllowed extends Schema.TaggedErrorClass<VariantNameNotAllowed>()(
|
|
51
|
+
"VariantNameNotAllowed",
|
|
52
|
+
{ code: Schema.Number, message: Schema.String },
|
|
53
|
+
) {}
|
|
54
|
+
T.applyErrorMatchers(VariantNameNotAllowed, [{ code: 5400 }]);
|
|
55
|
+
|
|
56
|
+
export class VariantNotFound extends Schema.TaggedErrorClass<VariantNotFound>()(
|
|
57
|
+
"VariantNotFound",
|
|
58
|
+
{ code: Schema.Number, message: Schema.String },
|
|
59
|
+
) {}
|
|
60
|
+
T.applyErrorMatchers(VariantNotFound, [{ code: 5401 }]);
|
|
61
|
+
|
|
62
|
+
// =============================================================================
|
|
63
|
+
// V1
|
|
64
|
+
// =============================================================================
|
|
65
|
+
|
|
66
|
+
export interface GetV1Request {
|
|
67
|
+
imageId: string;
|
|
68
|
+
/** Account identifier tag. */
|
|
69
|
+
accountId: string;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export const GetV1Request = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
73
|
+
imageId: Schema.String.pipe(T.HttpPath("imageId")),
|
|
74
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
75
|
+
}).pipe(
|
|
76
|
+
T.Http({ method: "GET", path: "/accounts/{account_id}/images/v1/{imageId}" }),
|
|
77
|
+
) as unknown as Schema.Schema<GetV1Request>;
|
|
78
|
+
|
|
79
|
+
export interface GetV1Response {
|
|
80
|
+
/** Image unique identifier. */
|
|
81
|
+
id?: string | null;
|
|
82
|
+
/** Can set the creator field with an internal user ID. */
|
|
83
|
+
creator?: string | null;
|
|
84
|
+
/** Image file name. */
|
|
85
|
+
filename?: string | null;
|
|
86
|
+
/** User modifiable key-value store. Can be used for keeping references to another system of record for managing images. Metadata must not exceed 1024 bytes. */
|
|
87
|
+
meta?: unknown | null;
|
|
88
|
+
/** Indicates whether the image can be a accessed only using it's UID. If set to true, a signed token needs to be generated with a signing key to view the image. */
|
|
89
|
+
requireSignedURLs?: boolean | null;
|
|
90
|
+
/** When the media item was uploaded. */
|
|
91
|
+
uploaded?: string | null;
|
|
92
|
+
/** Object specifying available variants for an image. */
|
|
93
|
+
variants?: string[] | null;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export const GetV1Response = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
97
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
98
|
+
creator: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
99
|
+
filename: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
100
|
+
meta: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
101
|
+
requireSignedURLs: Schema.optional(
|
|
102
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
103
|
+
),
|
|
104
|
+
uploaded: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
105
|
+
variants: Schema.optional(
|
|
106
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
107
|
+
),
|
|
108
|
+
}) as unknown as Schema.Schema<GetV1Response>;
|
|
109
|
+
|
|
110
|
+
export type GetV1Error = DefaultErrors | ImagesAccessNotEnabled | ImageNotFound;
|
|
111
|
+
|
|
112
|
+
export const getV1: API.OperationMethod<
|
|
113
|
+
GetV1Request,
|
|
114
|
+
GetV1Response,
|
|
115
|
+
GetV1Error,
|
|
116
|
+
Credentials | HttpClient.HttpClient
|
|
117
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
118
|
+
input: GetV1Request,
|
|
119
|
+
output: GetV1Response,
|
|
120
|
+
errors: [ImagesAccessNotEnabled, ImageNotFound],
|
|
121
|
+
}));
|
|
122
|
+
|
|
123
|
+
export interface ListV1sRequest {
|
|
124
|
+
/** Path param: Account identifier tag. */
|
|
125
|
+
accountId: string;
|
|
126
|
+
/** Query param: Internal user ID set within the creator field. Setting to empty string "" will return images where creator field is not set */
|
|
127
|
+
creator?: string | null;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export const ListV1sRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
131
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
132
|
+
creator: Schema.optional(Schema.Union([Schema.String, Schema.Null])).pipe(
|
|
133
|
+
T.HttpQuery("creator"),
|
|
134
|
+
),
|
|
135
|
+
}).pipe(
|
|
136
|
+
T.Http({ method: "GET", path: "/accounts/{account_id}/images/v1" }),
|
|
137
|
+
) as unknown as Schema.Schema<ListV1sRequest>;
|
|
138
|
+
|
|
139
|
+
export type ListV1sResponse = {
|
|
140
|
+
images?:
|
|
141
|
+
| {
|
|
142
|
+
id?: string | null;
|
|
143
|
+
creator?: string | null;
|
|
144
|
+
filename?: string | null;
|
|
145
|
+
meta?: unknown | null;
|
|
146
|
+
requireSignedURLs?: boolean | null;
|
|
147
|
+
uploaded?: string | null;
|
|
148
|
+
variants?: string[] | null;
|
|
149
|
+
}[]
|
|
150
|
+
| null;
|
|
151
|
+
}[];
|
|
152
|
+
|
|
153
|
+
export const ListV1sResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
154
|
+
Schema.Struct({
|
|
155
|
+
images: Schema.optional(
|
|
156
|
+
Schema.Union([
|
|
157
|
+
Schema.Array(
|
|
158
|
+
Schema.Struct({
|
|
159
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
160
|
+
creator: Schema.optional(
|
|
161
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
162
|
+
),
|
|
163
|
+
filename: Schema.optional(
|
|
164
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
165
|
+
),
|
|
166
|
+
meta: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
167
|
+
requireSignedURLs: Schema.optional(
|
|
168
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
169
|
+
),
|
|
170
|
+
uploaded: Schema.optional(
|
|
171
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
172
|
+
),
|
|
173
|
+
variants: Schema.optional(
|
|
174
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
175
|
+
),
|
|
176
|
+
}),
|
|
177
|
+
),
|
|
178
|
+
Schema.Null,
|
|
179
|
+
]),
|
|
180
|
+
),
|
|
181
|
+
}),
|
|
182
|
+
) as unknown as Schema.Schema<ListV1sResponse>;
|
|
183
|
+
|
|
184
|
+
export type ListV1sError = DefaultErrors | ImagesAccessNotEnabled;
|
|
185
|
+
|
|
186
|
+
export const listV1s: API.OperationMethod<
|
|
187
|
+
ListV1sRequest,
|
|
188
|
+
ListV1sResponse,
|
|
189
|
+
ListV1sError,
|
|
190
|
+
Credentials | HttpClient.HttpClient
|
|
191
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
192
|
+
input: ListV1sRequest,
|
|
193
|
+
output: ListV1sResponse,
|
|
194
|
+
errors: [ImagesAccessNotEnabled],
|
|
195
|
+
}));
|
|
196
|
+
|
|
197
|
+
export interface CreateV1Request {
|
|
198
|
+
/** Path param: Account identifier tag. */
|
|
199
|
+
accountId: string;
|
|
200
|
+
/** Body param: An optional custom unique identifier for your image. */
|
|
201
|
+
id?: string;
|
|
202
|
+
/** Body param: Can set the creator field with an internal user ID. */
|
|
203
|
+
creator?: string;
|
|
204
|
+
/** Body param: An image binary data. Only needed when type is uploading a file. */
|
|
205
|
+
file?: File | Blob;
|
|
206
|
+
/** Body param: User modifiable key-value store. Can use used for keeping references to another system of record for managing images. */
|
|
207
|
+
metadata?: unknown;
|
|
208
|
+
/** Body param: Indicates whether the image requires a signature token for the access. */
|
|
209
|
+
requireSignedURLs?: boolean;
|
|
210
|
+
/** Body param: A URL to fetch an image from origin. Only needed when type is uploading from a URL. */
|
|
211
|
+
url?: string;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
export const CreateV1Request = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
215
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
216
|
+
id: Schema.optional(Schema.String),
|
|
217
|
+
creator: Schema.optional(Schema.String),
|
|
218
|
+
file: Schema.optional(UploadableSchema.pipe(T.HttpFormDataFile())),
|
|
219
|
+
metadata: Schema.optional(Schema.Unknown),
|
|
220
|
+
requireSignedURLs: Schema.optional(Schema.Boolean),
|
|
221
|
+
url: Schema.optional(Schema.String),
|
|
222
|
+
}).pipe(
|
|
223
|
+
T.Http({
|
|
224
|
+
method: "POST",
|
|
225
|
+
path: "/accounts/{account_id}/images/v1",
|
|
226
|
+
contentType: "multipart",
|
|
227
|
+
}),
|
|
228
|
+
) as unknown as Schema.Schema<CreateV1Request>;
|
|
229
|
+
|
|
230
|
+
export interface CreateV1Response {
|
|
231
|
+
/** Image unique identifier. */
|
|
232
|
+
id?: string | null;
|
|
233
|
+
/** Can set the creator field with an internal user ID. */
|
|
234
|
+
creator?: string | null;
|
|
235
|
+
/** Image file name. */
|
|
236
|
+
filename?: string | null;
|
|
237
|
+
/** User modifiable key-value store. Can be used for keeping references to another system of record for managing images. Metadata must not exceed 1024 bytes. */
|
|
238
|
+
meta?: unknown | null;
|
|
239
|
+
/** Indicates whether the image can be a accessed only using it's UID. If set to true, a signed token needs to be generated with a signing key to view the image. */
|
|
240
|
+
requireSignedURLs?: boolean | null;
|
|
241
|
+
/** When the media item was uploaded. */
|
|
242
|
+
uploaded?: string | null;
|
|
243
|
+
/** Object specifying available variants for an image. */
|
|
244
|
+
variants?: string[] | null;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
export const CreateV1Response = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
248
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
249
|
+
creator: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
250
|
+
filename: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
251
|
+
meta: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
252
|
+
requireSignedURLs: Schema.optional(
|
|
253
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
254
|
+
),
|
|
255
|
+
uploaded: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
256
|
+
variants: Schema.optional(
|
|
257
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
258
|
+
),
|
|
259
|
+
}) as unknown as Schema.Schema<CreateV1Response>;
|
|
260
|
+
|
|
261
|
+
export type CreateV1Error = DefaultErrors | ImagesAccessNotEnabled;
|
|
262
|
+
|
|
263
|
+
export const createV1: API.OperationMethod<
|
|
264
|
+
CreateV1Request,
|
|
265
|
+
CreateV1Response,
|
|
266
|
+
CreateV1Error,
|
|
267
|
+
Credentials | HttpClient.HttpClient
|
|
268
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
269
|
+
input: CreateV1Request,
|
|
270
|
+
output: CreateV1Response,
|
|
271
|
+
errors: [ImagesAccessNotEnabled],
|
|
272
|
+
}));
|
|
273
|
+
|
|
274
|
+
export interface PatchV1Request {
|
|
275
|
+
imageId: string;
|
|
276
|
+
/** Path param: Account identifier tag. */
|
|
277
|
+
accountId: string;
|
|
278
|
+
/** Body param: Can set the creator field with an internal user ID. */
|
|
279
|
+
creator?: string;
|
|
280
|
+
/** Body param: User modifiable key-value store. Can be used for keeping references to another system of record for managing images. No change if not specified. */
|
|
281
|
+
metadata?: unknown;
|
|
282
|
+
/** Body param: Indicates whether the image can be accessed using only its UID. If set to `true`, a signed token needs to be generated with a signing key to view the image. Returns a new UID on a change. */
|
|
283
|
+
requireSignedURLs?: boolean;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
export const PatchV1Request = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
287
|
+
imageId: Schema.String.pipe(T.HttpPath("imageId")),
|
|
288
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
289
|
+
creator: Schema.optional(Schema.String),
|
|
290
|
+
metadata: Schema.optional(Schema.Unknown),
|
|
291
|
+
requireSignedURLs: Schema.optional(Schema.Boolean),
|
|
292
|
+
}).pipe(
|
|
293
|
+
T.Http({
|
|
294
|
+
method: "PATCH",
|
|
295
|
+
path: "/accounts/{account_id}/images/v1/{imageId}",
|
|
296
|
+
}),
|
|
297
|
+
) as unknown as Schema.Schema<PatchV1Request>;
|
|
298
|
+
|
|
299
|
+
export interface PatchV1Response {
|
|
300
|
+
/** Image unique identifier. */
|
|
301
|
+
id?: string | null;
|
|
302
|
+
/** Can set the creator field with an internal user ID. */
|
|
303
|
+
creator?: string | null;
|
|
304
|
+
/** Image file name. */
|
|
305
|
+
filename?: string | null;
|
|
306
|
+
/** User modifiable key-value store. Can be used for keeping references to another system of record for managing images. Metadata must not exceed 1024 bytes. */
|
|
307
|
+
meta?: unknown | null;
|
|
308
|
+
/** Indicates whether the image can be a accessed only using it's UID. If set to true, a signed token needs to be generated with a signing key to view the image. */
|
|
309
|
+
requireSignedURLs?: boolean | null;
|
|
310
|
+
/** When the media item was uploaded. */
|
|
311
|
+
uploaded?: string | null;
|
|
312
|
+
/** Object specifying available variants for an image. */
|
|
313
|
+
variants?: string[] | null;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
export const PatchV1Response = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
317
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
318
|
+
creator: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
319
|
+
filename: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
320
|
+
meta: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
321
|
+
requireSignedURLs: Schema.optional(
|
|
322
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
323
|
+
),
|
|
324
|
+
uploaded: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
325
|
+
variants: Schema.optional(
|
|
326
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
327
|
+
),
|
|
328
|
+
}) as unknown as Schema.Schema<PatchV1Response>;
|
|
329
|
+
|
|
330
|
+
export type PatchV1Error =
|
|
331
|
+
| DefaultErrors
|
|
332
|
+
| ImagesAccessNotEnabled
|
|
333
|
+
| ImageNotFound;
|
|
334
|
+
|
|
335
|
+
export const patchV1: API.OperationMethod<
|
|
336
|
+
PatchV1Request,
|
|
337
|
+
PatchV1Response,
|
|
338
|
+
PatchV1Error,
|
|
339
|
+
Credentials | HttpClient.HttpClient
|
|
340
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
341
|
+
input: PatchV1Request,
|
|
342
|
+
output: PatchV1Response,
|
|
343
|
+
errors: [ImagesAccessNotEnabled, ImageNotFound],
|
|
344
|
+
}));
|
|
345
|
+
|
|
346
|
+
export interface DeleteV1Request {
|
|
347
|
+
imageId: string;
|
|
348
|
+
/** Account identifier tag. */
|
|
349
|
+
accountId: string;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
export const DeleteV1Request = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
353
|
+
imageId: Schema.String.pipe(T.HttpPath("imageId")),
|
|
354
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
355
|
+
}).pipe(
|
|
356
|
+
T.Http({
|
|
357
|
+
method: "DELETE",
|
|
358
|
+
path: "/accounts/{account_id}/images/v1/{imageId}",
|
|
359
|
+
}),
|
|
360
|
+
) as unknown as Schema.Schema<DeleteV1Request>;
|
|
361
|
+
|
|
362
|
+
export type DeleteV1Response = string;
|
|
363
|
+
|
|
364
|
+
export const DeleteV1Response =
|
|
365
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.String as unknown as Schema.Schema<DeleteV1Response>;
|
|
366
|
+
|
|
367
|
+
export type DeleteV1Error =
|
|
368
|
+
| DefaultErrors
|
|
369
|
+
| ImagesAccessNotEnabled
|
|
370
|
+
| ImageNotFound;
|
|
371
|
+
|
|
372
|
+
export const deleteV1: API.OperationMethod<
|
|
373
|
+
DeleteV1Request,
|
|
374
|
+
DeleteV1Response,
|
|
375
|
+
DeleteV1Error,
|
|
376
|
+
Credentials | HttpClient.HttpClient
|
|
377
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
378
|
+
input: DeleteV1Request,
|
|
379
|
+
output: DeleteV1Response,
|
|
380
|
+
errors: [ImagesAccessNotEnabled, ImageNotFound],
|
|
381
|
+
}));
|
|
382
|
+
|
|
383
|
+
// =============================================================================
|
|
384
|
+
// V1Blob
|
|
385
|
+
// =============================================================================
|
|
386
|
+
|
|
387
|
+
export interface GetV1BlobRequest {
|
|
388
|
+
imageId: string;
|
|
389
|
+
/** Account identifier tag. */
|
|
390
|
+
accountId: string;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
export const GetV1BlobRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
394
|
+
imageId: Schema.String.pipe(T.HttpPath("imageId")),
|
|
395
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
396
|
+
}).pipe(
|
|
397
|
+
T.Http({
|
|
398
|
+
method: "GET",
|
|
399
|
+
path: "/accounts/{account_id}/images/v1/{imageId}/blob",
|
|
400
|
+
}),
|
|
401
|
+
) as unknown as Schema.Schema<GetV1BlobRequest>;
|
|
402
|
+
|
|
403
|
+
export type GetV1BlobResponse = unknown;
|
|
404
|
+
|
|
405
|
+
export const GetV1BlobResponse =
|
|
406
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<GetV1BlobResponse>;
|
|
407
|
+
|
|
408
|
+
export type GetV1BlobError =
|
|
409
|
+
| DefaultErrors
|
|
410
|
+
| ImagesAccessNotEnabled
|
|
411
|
+
| ImageNotFound;
|
|
412
|
+
|
|
413
|
+
export const getV1Blob: API.OperationMethod<
|
|
414
|
+
GetV1BlobRequest,
|
|
415
|
+
GetV1BlobResponse,
|
|
416
|
+
GetV1BlobError,
|
|
417
|
+
Credentials | HttpClient.HttpClient
|
|
418
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
419
|
+
input: GetV1BlobRequest,
|
|
420
|
+
output: GetV1BlobResponse,
|
|
421
|
+
errors: [ImagesAccessNotEnabled, ImageNotFound],
|
|
422
|
+
}));
|
|
423
|
+
|
|
424
|
+
// =============================================================================
|
|
425
|
+
// V1Key
|
|
426
|
+
// =============================================================================
|
|
427
|
+
|
|
428
|
+
export interface ListV1KeysRequest {
|
|
429
|
+
/** Account identifier tag. */
|
|
430
|
+
accountId: string;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
export const ListV1KeysRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
434
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
435
|
+
}).pipe(
|
|
436
|
+
T.Http({ method: "GET", path: "/accounts/{account_id}/images/v1/keys" }),
|
|
437
|
+
) as unknown as Schema.Schema<ListV1KeysRequest>;
|
|
438
|
+
|
|
439
|
+
export interface ListV1KeysResponse {
|
|
440
|
+
keys?: { name?: string | null; value?: string | null }[] | null;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
export const ListV1KeysResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
444
|
+
keys: Schema.optional(
|
|
445
|
+
Schema.Union([
|
|
446
|
+
Schema.Array(
|
|
447
|
+
Schema.Struct({
|
|
448
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
449
|
+
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
450
|
+
}),
|
|
451
|
+
),
|
|
452
|
+
Schema.Null,
|
|
453
|
+
]),
|
|
454
|
+
),
|
|
455
|
+
}) as unknown as Schema.Schema<ListV1KeysResponse>;
|
|
456
|
+
|
|
457
|
+
export type ListV1KeysError = DefaultErrors | ImagesAccessNotEnabled;
|
|
458
|
+
|
|
459
|
+
export const listV1Keys: API.OperationMethod<
|
|
460
|
+
ListV1KeysRequest,
|
|
461
|
+
ListV1KeysResponse,
|
|
462
|
+
ListV1KeysError,
|
|
463
|
+
Credentials | HttpClient.HttpClient
|
|
464
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
465
|
+
input: ListV1KeysRequest,
|
|
466
|
+
output: ListV1KeysResponse,
|
|
467
|
+
errors: [ImagesAccessNotEnabled],
|
|
468
|
+
}));
|
|
469
|
+
|
|
470
|
+
export interface PutV1KeyRequest {
|
|
471
|
+
signingKeyName: string;
|
|
472
|
+
/** Account identifier tag. */
|
|
473
|
+
accountId: string;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
export const PutV1KeyRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
477
|
+
signingKeyName: Schema.String.pipe(T.HttpPath("signingKeyName")),
|
|
478
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
479
|
+
}).pipe(
|
|
480
|
+
T.Http({
|
|
481
|
+
method: "PUT",
|
|
482
|
+
path: "/accounts/{account_id}/images/v1/keys/{signingKeyName}",
|
|
483
|
+
}),
|
|
484
|
+
) as unknown as Schema.Schema<PutV1KeyRequest>;
|
|
485
|
+
|
|
486
|
+
export interface PutV1KeyResponse {
|
|
487
|
+
keys?: { name?: string | null; value?: string | null }[] | null;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
export const PutV1KeyResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
491
|
+
keys: Schema.optional(
|
|
492
|
+
Schema.Union([
|
|
493
|
+
Schema.Array(
|
|
494
|
+
Schema.Struct({
|
|
495
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
496
|
+
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
497
|
+
}),
|
|
498
|
+
),
|
|
499
|
+
Schema.Null,
|
|
500
|
+
]),
|
|
501
|
+
),
|
|
502
|
+
}) as unknown as Schema.Schema<PutV1KeyResponse>;
|
|
503
|
+
|
|
504
|
+
export type PutV1KeyError = DefaultErrors | ImagesAccessNotEnabled;
|
|
505
|
+
|
|
506
|
+
export const putV1Key: API.OperationMethod<
|
|
507
|
+
PutV1KeyRequest,
|
|
508
|
+
PutV1KeyResponse,
|
|
509
|
+
PutV1KeyError,
|
|
510
|
+
Credentials | HttpClient.HttpClient
|
|
511
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
512
|
+
input: PutV1KeyRequest,
|
|
513
|
+
output: PutV1KeyResponse,
|
|
514
|
+
errors: [ImagesAccessNotEnabled],
|
|
515
|
+
}));
|
|
516
|
+
|
|
517
|
+
export interface DeleteV1KeyRequest {
|
|
518
|
+
signingKeyName: string;
|
|
519
|
+
/** Account identifier tag. */
|
|
520
|
+
accountId: string;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
export const DeleteV1KeyRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
524
|
+
signingKeyName: Schema.String.pipe(T.HttpPath("signingKeyName")),
|
|
525
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
526
|
+
}).pipe(
|
|
527
|
+
T.Http({
|
|
528
|
+
method: "DELETE",
|
|
529
|
+
path: "/accounts/{account_id}/images/v1/keys/{signingKeyName}",
|
|
530
|
+
}),
|
|
531
|
+
) as unknown as Schema.Schema<DeleteV1KeyRequest>;
|
|
532
|
+
|
|
533
|
+
export interface DeleteV1KeyResponse {
|
|
534
|
+
keys?: { name?: string | null; value?: string | null }[] | null;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
export const DeleteV1KeyResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
538
|
+
keys: Schema.optional(
|
|
539
|
+
Schema.Union([
|
|
540
|
+
Schema.Array(
|
|
541
|
+
Schema.Struct({
|
|
542
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
543
|
+
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
544
|
+
}),
|
|
545
|
+
),
|
|
546
|
+
Schema.Null,
|
|
547
|
+
]),
|
|
548
|
+
),
|
|
549
|
+
}) as unknown as Schema.Schema<DeleteV1KeyResponse>;
|
|
550
|
+
|
|
551
|
+
export type DeleteV1KeyError =
|
|
552
|
+
| DefaultErrors
|
|
553
|
+
| ImagesAccessNotEnabled
|
|
554
|
+
| KeyNotFound;
|
|
555
|
+
|
|
556
|
+
export const deleteV1Key: API.OperationMethod<
|
|
557
|
+
DeleteV1KeyRequest,
|
|
558
|
+
DeleteV1KeyResponse,
|
|
559
|
+
DeleteV1KeyError,
|
|
560
|
+
Credentials | HttpClient.HttpClient
|
|
561
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
562
|
+
input: DeleteV1KeyRequest,
|
|
563
|
+
output: DeleteV1KeyResponse,
|
|
564
|
+
errors: [ImagesAccessNotEnabled, KeyNotFound],
|
|
565
|
+
}));
|
|
566
|
+
|
|
567
|
+
// =============================================================================
|
|
568
|
+
// V1Stat
|
|
569
|
+
// =============================================================================
|
|
570
|
+
|
|
571
|
+
export interface GetV1StatRequest {
|
|
572
|
+
/** Account identifier tag. */
|
|
573
|
+
accountId: string;
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
export const GetV1StatRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
577
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
578
|
+
}).pipe(
|
|
579
|
+
T.Http({ method: "GET", path: "/accounts/{account_id}/images/v1/stats" }),
|
|
580
|
+
) as unknown as Schema.Schema<GetV1StatRequest>;
|
|
581
|
+
|
|
582
|
+
export interface GetV1StatResponse {
|
|
583
|
+
count?: { allowed?: number | null; current?: number | null } | null;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
export const GetV1StatResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
587
|
+
count: Schema.optional(
|
|
588
|
+
Schema.Union([
|
|
589
|
+
Schema.Struct({
|
|
590
|
+
allowed: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
591
|
+
current: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
592
|
+
}),
|
|
593
|
+
Schema.Null,
|
|
594
|
+
]),
|
|
595
|
+
),
|
|
596
|
+
}) as unknown as Schema.Schema<GetV1StatResponse>;
|
|
597
|
+
|
|
598
|
+
export type GetV1StatError = DefaultErrors | ImagesAccessNotEnabled;
|
|
599
|
+
|
|
600
|
+
export const getV1Stat: API.OperationMethod<
|
|
601
|
+
GetV1StatRequest,
|
|
602
|
+
GetV1StatResponse,
|
|
603
|
+
GetV1StatError,
|
|
604
|
+
Credentials | HttpClient.HttpClient
|
|
605
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
606
|
+
input: GetV1StatRequest,
|
|
607
|
+
output: GetV1StatResponse,
|
|
608
|
+
errors: [ImagesAccessNotEnabled],
|
|
609
|
+
}));
|
|
610
|
+
|
|
611
|
+
// =============================================================================
|
|
612
|
+
// V1Variant
|
|
613
|
+
// =============================================================================
|
|
614
|
+
|
|
615
|
+
export interface GetV1VariantRequest {
|
|
616
|
+
variantId: string;
|
|
617
|
+
/** Account identifier tag. */
|
|
618
|
+
accountId: string;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
export const GetV1VariantRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
622
|
+
variantId: Schema.String.pipe(T.HttpPath("variantId")),
|
|
623
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
624
|
+
}).pipe(
|
|
625
|
+
T.Http({
|
|
626
|
+
method: "GET",
|
|
627
|
+
path: "/accounts/{account_id}/images/v1/variants/{variantId}",
|
|
628
|
+
}),
|
|
629
|
+
) as unknown as Schema.Schema<GetV1VariantRequest>;
|
|
630
|
+
|
|
631
|
+
export interface GetV1VariantResponse {
|
|
632
|
+
variant?: {
|
|
633
|
+
id: string;
|
|
634
|
+
options: {
|
|
635
|
+
fit: "scale-down" | "contain" | "cover" | "crop" | "pad";
|
|
636
|
+
height: number;
|
|
637
|
+
metadata: "keep" | "copyright" | "none";
|
|
638
|
+
width: number;
|
|
639
|
+
};
|
|
640
|
+
neverRequireSignedURLs?: boolean | null;
|
|
641
|
+
} | null;
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
export const GetV1VariantResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
645
|
+
variant: Schema.optional(
|
|
646
|
+
Schema.Union([
|
|
647
|
+
Schema.Struct({
|
|
648
|
+
id: Schema.String,
|
|
649
|
+
options: Schema.Struct({
|
|
650
|
+
fit: Schema.Literals([
|
|
651
|
+
"scale-down",
|
|
652
|
+
"contain",
|
|
653
|
+
"cover",
|
|
654
|
+
"crop",
|
|
655
|
+
"pad",
|
|
656
|
+
]),
|
|
657
|
+
height: Schema.Number,
|
|
658
|
+
metadata: Schema.Literals(["keep", "copyright", "none"]),
|
|
659
|
+
width: Schema.Number,
|
|
660
|
+
}),
|
|
661
|
+
neverRequireSignedURLs: Schema.optional(
|
|
662
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
663
|
+
),
|
|
664
|
+
}),
|
|
665
|
+
Schema.Null,
|
|
666
|
+
]),
|
|
667
|
+
),
|
|
668
|
+
}) as unknown as Schema.Schema<GetV1VariantResponse>;
|
|
669
|
+
|
|
670
|
+
export type GetV1VariantError =
|
|
671
|
+
| DefaultErrors
|
|
672
|
+
| ImagesAccessNotEnabled
|
|
673
|
+
| VariantNameNotAllowed
|
|
674
|
+
| VariantNotFound;
|
|
675
|
+
|
|
676
|
+
export const getV1Variant: API.OperationMethod<
|
|
677
|
+
GetV1VariantRequest,
|
|
678
|
+
GetV1VariantResponse,
|
|
679
|
+
GetV1VariantError,
|
|
680
|
+
Credentials | HttpClient.HttpClient
|
|
681
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
682
|
+
input: GetV1VariantRequest,
|
|
683
|
+
output: GetV1VariantResponse,
|
|
684
|
+
errors: [ImagesAccessNotEnabled, VariantNameNotAllowed, VariantNotFound],
|
|
685
|
+
}));
|
|
686
|
+
|
|
687
|
+
export interface ListV1VariantsRequest {
|
|
688
|
+
/** Account identifier tag. */
|
|
689
|
+
accountId: string;
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
export const ListV1VariantsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
693
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
694
|
+
}).pipe(
|
|
695
|
+
T.Http({ method: "GET", path: "/accounts/{account_id}/images/v1/variants" }),
|
|
696
|
+
) as unknown as Schema.Schema<ListV1VariantsRequest>;
|
|
697
|
+
|
|
698
|
+
export interface ListV1VariantsResponse {
|
|
699
|
+
id: string;
|
|
700
|
+
/** Allows you to define image resizing sizes for different use cases. */
|
|
701
|
+
options: {
|
|
702
|
+
fit: "scale-down" | "contain" | "cover" | "crop" | "pad";
|
|
703
|
+
height: number;
|
|
704
|
+
metadata: "keep" | "copyright" | "none";
|
|
705
|
+
width: number;
|
|
706
|
+
};
|
|
707
|
+
/** Indicates whether the variant can access an image without a signature, regardless of image access control. */
|
|
708
|
+
neverRequireSignedURLs?: boolean | null;
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
export const ListV1VariantsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
712
|
+
{
|
|
713
|
+
id: Schema.String,
|
|
714
|
+
options: Schema.Struct({
|
|
715
|
+
fit: Schema.Literals(["scale-down", "contain", "cover", "crop", "pad"]),
|
|
716
|
+
height: Schema.Number,
|
|
717
|
+
metadata: Schema.Literals(["keep", "copyright", "none"]),
|
|
718
|
+
width: Schema.Number,
|
|
719
|
+
}),
|
|
720
|
+
neverRequireSignedURLs: Schema.optional(
|
|
721
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
722
|
+
),
|
|
723
|
+
},
|
|
724
|
+
) as unknown as Schema.Schema<ListV1VariantsResponse>;
|
|
725
|
+
|
|
726
|
+
export type ListV1VariantsError = DefaultErrors | ImagesAccessNotEnabled;
|
|
727
|
+
|
|
728
|
+
export const listV1Variants: API.OperationMethod<
|
|
729
|
+
ListV1VariantsRequest,
|
|
730
|
+
ListV1VariantsResponse,
|
|
731
|
+
ListV1VariantsError,
|
|
732
|
+
Credentials | HttpClient.HttpClient
|
|
733
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
734
|
+
input: ListV1VariantsRequest,
|
|
735
|
+
output: ListV1VariantsResponse,
|
|
736
|
+
errors: [ImagesAccessNotEnabled],
|
|
737
|
+
}));
|
|
738
|
+
|
|
739
|
+
export interface CreateV1VariantRequest {
|
|
740
|
+
/** Path param: Account identifier tag. */
|
|
741
|
+
accountId: string;
|
|
742
|
+
/** Body param: */
|
|
743
|
+
id: string;
|
|
744
|
+
/** Body param: Allows you to define image resizing sizes for different use cases. */
|
|
745
|
+
options: {
|
|
746
|
+
fit: "scale-down" | "contain" | "cover" | "crop" | "pad";
|
|
747
|
+
height: number;
|
|
748
|
+
metadata: "keep" | "copyright" | "none";
|
|
749
|
+
width: number;
|
|
750
|
+
};
|
|
751
|
+
/** Body param: Indicates whether the variant can access an image without a signature, regardless of image access control. */
|
|
752
|
+
neverRequireSignedURLs?: boolean;
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
export const CreateV1VariantRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
756
|
+
{
|
|
757
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
758
|
+
id: Schema.String,
|
|
759
|
+
options: Schema.Struct({
|
|
760
|
+
fit: Schema.Literals(["scale-down", "contain", "cover", "crop", "pad"]),
|
|
761
|
+
height: Schema.Number,
|
|
762
|
+
metadata: Schema.Literals(["keep", "copyright", "none"]),
|
|
763
|
+
width: Schema.Number,
|
|
764
|
+
}),
|
|
765
|
+
neverRequireSignedURLs: Schema.optional(Schema.Boolean),
|
|
766
|
+
},
|
|
767
|
+
).pipe(
|
|
768
|
+
T.Http({ method: "POST", path: "/accounts/{account_id}/images/v1/variants" }),
|
|
769
|
+
) as unknown as Schema.Schema<CreateV1VariantRequest>;
|
|
770
|
+
|
|
771
|
+
export interface CreateV1VariantResponse {
|
|
772
|
+
variant?: {
|
|
773
|
+
id: string;
|
|
774
|
+
options: {
|
|
775
|
+
fit: "scale-down" | "contain" | "cover" | "crop" | "pad";
|
|
776
|
+
height: number;
|
|
777
|
+
metadata: "keep" | "copyright" | "none";
|
|
778
|
+
width: number;
|
|
779
|
+
};
|
|
780
|
+
neverRequireSignedURLs?: boolean | null;
|
|
781
|
+
} | null;
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
export const CreateV1VariantResponse =
|
|
785
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
786
|
+
variant: Schema.optional(
|
|
787
|
+
Schema.Union([
|
|
788
|
+
Schema.Struct({
|
|
789
|
+
id: Schema.String,
|
|
790
|
+
options: Schema.Struct({
|
|
791
|
+
fit: Schema.Literals([
|
|
792
|
+
"scale-down",
|
|
793
|
+
"contain",
|
|
794
|
+
"cover",
|
|
795
|
+
"crop",
|
|
796
|
+
"pad",
|
|
797
|
+
]),
|
|
798
|
+
height: Schema.Number,
|
|
799
|
+
metadata: Schema.Literals(["keep", "copyright", "none"]),
|
|
800
|
+
width: Schema.Number,
|
|
801
|
+
}),
|
|
802
|
+
neverRequireSignedURLs: Schema.optional(
|
|
803
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
804
|
+
),
|
|
805
|
+
}),
|
|
806
|
+
Schema.Null,
|
|
807
|
+
]),
|
|
808
|
+
),
|
|
809
|
+
}) as unknown as Schema.Schema<CreateV1VariantResponse>;
|
|
810
|
+
|
|
811
|
+
export type CreateV1VariantError =
|
|
812
|
+
| DefaultErrors
|
|
813
|
+
| ImagesAccessNotEnabled
|
|
814
|
+
| VariantNameNotAllowed;
|
|
815
|
+
|
|
816
|
+
export const createV1Variant: API.OperationMethod<
|
|
817
|
+
CreateV1VariantRequest,
|
|
818
|
+
CreateV1VariantResponse,
|
|
819
|
+
CreateV1VariantError,
|
|
820
|
+
Credentials | HttpClient.HttpClient
|
|
821
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
822
|
+
input: CreateV1VariantRequest,
|
|
823
|
+
output: CreateV1VariantResponse,
|
|
824
|
+
errors: [ImagesAccessNotEnabled, VariantNameNotAllowed],
|
|
825
|
+
}));
|
|
826
|
+
|
|
827
|
+
export interface PatchV1VariantRequest {
|
|
828
|
+
variantId: string;
|
|
829
|
+
/** Path param: Account identifier tag. */
|
|
830
|
+
accountId: string;
|
|
831
|
+
/** Body param: Allows you to define image resizing sizes for different use cases. */
|
|
832
|
+
options: {
|
|
833
|
+
fit: "scale-down" | "contain" | "cover" | "crop" | "pad";
|
|
834
|
+
height: number;
|
|
835
|
+
metadata: "keep" | "copyright" | "none";
|
|
836
|
+
width: number;
|
|
837
|
+
};
|
|
838
|
+
/** Body param: Indicates whether the variant can access an image without a signature, regardless of image access control. */
|
|
839
|
+
neverRequireSignedURLs?: boolean;
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
export const PatchV1VariantRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
843
|
+
variantId: Schema.String.pipe(T.HttpPath("variantId")),
|
|
844
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
845
|
+
options: Schema.Struct({
|
|
846
|
+
fit: Schema.Literals(["scale-down", "contain", "cover", "crop", "pad"]),
|
|
847
|
+
height: Schema.Number,
|
|
848
|
+
metadata: Schema.Literals(["keep", "copyright", "none"]),
|
|
849
|
+
width: Schema.Number,
|
|
850
|
+
}),
|
|
851
|
+
neverRequireSignedURLs: Schema.optional(Schema.Boolean),
|
|
852
|
+
}).pipe(
|
|
853
|
+
T.Http({
|
|
854
|
+
method: "PATCH",
|
|
855
|
+
path: "/accounts/{account_id}/images/v1/variants/{variantId}",
|
|
856
|
+
}),
|
|
857
|
+
) as unknown as Schema.Schema<PatchV1VariantRequest>;
|
|
858
|
+
|
|
859
|
+
export interface PatchV1VariantResponse {
|
|
860
|
+
variant?: {
|
|
861
|
+
id: string;
|
|
862
|
+
options: {
|
|
863
|
+
fit: "scale-down" | "contain" | "cover" | "crop" | "pad";
|
|
864
|
+
height: number;
|
|
865
|
+
metadata: "keep" | "copyright" | "none";
|
|
866
|
+
width: number;
|
|
867
|
+
};
|
|
868
|
+
neverRequireSignedURLs?: boolean | null;
|
|
869
|
+
} | null;
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
export const PatchV1VariantResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
873
|
+
{
|
|
874
|
+
variant: Schema.optional(
|
|
875
|
+
Schema.Union([
|
|
876
|
+
Schema.Struct({
|
|
877
|
+
id: Schema.String,
|
|
878
|
+
options: Schema.Struct({
|
|
879
|
+
fit: Schema.Literals([
|
|
880
|
+
"scale-down",
|
|
881
|
+
"contain",
|
|
882
|
+
"cover",
|
|
883
|
+
"crop",
|
|
884
|
+
"pad",
|
|
885
|
+
]),
|
|
886
|
+
height: Schema.Number,
|
|
887
|
+
metadata: Schema.Literals(["keep", "copyright", "none"]),
|
|
888
|
+
width: Schema.Number,
|
|
889
|
+
}),
|
|
890
|
+
neverRequireSignedURLs: Schema.optional(
|
|
891
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
892
|
+
),
|
|
893
|
+
}),
|
|
894
|
+
Schema.Null,
|
|
895
|
+
]),
|
|
896
|
+
),
|
|
897
|
+
},
|
|
898
|
+
) as unknown as Schema.Schema<PatchV1VariantResponse>;
|
|
899
|
+
|
|
900
|
+
export type PatchV1VariantError =
|
|
901
|
+
| DefaultErrors
|
|
902
|
+
| ImagesAccessNotEnabled
|
|
903
|
+
| VariantNameNotAllowed
|
|
904
|
+
| VariantNotFound;
|
|
905
|
+
|
|
906
|
+
export const patchV1Variant: API.OperationMethod<
|
|
907
|
+
PatchV1VariantRequest,
|
|
908
|
+
PatchV1VariantResponse,
|
|
909
|
+
PatchV1VariantError,
|
|
910
|
+
Credentials | HttpClient.HttpClient
|
|
911
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
912
|
+
input: PatchV1VariantRequest,
|
|
913
|
+
output: PatchV1VariantResponse,
|
|
914
|
+
errors: [ImagesAccessNotEnabled, VariantNameNotAllowed, VariantNotFound],
|
|
915
|
+
}));
|
|
916
|
+
|
|
917
|
+
export interface DeleteV1VariantRequest {
|
|
918
|
+
variantId: string;
|
|
919
|
+
/** Account identifier tag. */
|
|
920
|
+
accountId: string;
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
export const DeleteV1VariantRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
924
|
+
{
|
|
925
|
+
variantId: Schema.String.pipe(T.HttpPath("variantId")),
|
|
926
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
927
|
+
},
|
|
928
|
+
).pipe(
|
|
929
|
+
T.Http({
|
|
930
|
+
method: "DELETE",
|
|
931
|
+
path: "/accounts/{account_id}/images/v1/variants/{variantId}",
|
|
932
|
+
}),
|
|
933
|
+
) as unknown as Schema.Schema<DeleteV1VariantRequest>;
|
|
934
|
+
|
|
935
|
+
export type DeleteV1VariantResponse = string;
|
|
936
|
+
|
|
937
|
+
export const DeleteV1VariantResponse =
|
|
938
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.String as unknown as Schema.Schema<DeleteV1VariantResponse>;
|
|
939
|
+
|
|
940
|
+
export type DeleteV1VariantError =
|
|
941
|
+
| DefaultErrors
|
|
942
|
+
| ImagesAccessNotEnabled
|
|
943
|
+
| VariantNameNotAllowed
|
|
944
|
+
| VariantNotFound;
|
|
945
|
+
|
|
946
|
+
export const deleteV1Variant: API.OperationMethod<
|
|
947
|
+
DeleteV1VariantRequest,
|
|
948
|
+
DeleteV1VariantResponse,
|
|
949
|
+
DeleteV1VariantError,
|
|
950
|
+
Credentials | HttpClient.HttpClient
|
|
951
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
952
|
+
input: DeleteV1VariantRequest,
|
|
953
|
+
output: DeleteV1VariantResponse,
|
|
954
|
+
errors: [ImagesAccessNotEnabled, VariantNameNotAllowed, VariantNotFound],
|
|
955
|
+
}));
|
|
956
|
+
|
|
957
|
+
// =============================================================================
|
|
958
|
+
// V2
|
|
959
|
+
// =============================================================================
|
|
960
|
+
|
|
961
|
+
export interface ListV2sRequest {
|
|
962
|
+
/** Path param: Account identifier tag. */
|
|
963
|
+
accountId: string;
|
|
964
|
+
/** Query param: Continuation token for a next page. List images V2 returns continuation_token */
|
|
965
|
+
continuationToken?: string | null;
|
|
966
|
+
/** Query param: Internal user ID set within the creator field. Setting to empty string "" will return images where creator field is not set */
|
|
967
|
+
creator?: string | null;
|
|
968
|
+
/** Query param: Number of items per page. */
|
|
969
|
+
perPage?: number;
|
|
970
|
+
/** Query param: Sorting order by upload time. */
|
|
971
|
+
sortOrder?: "asc" | "desc";
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
export const ListV2sRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
975
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
976
|
+
continuationToken: Schema.optional(
|
|
977
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
978
|
+
).pipe(T.HttpQuery("continuation_token")),
|
|
979
|
+
creator: Schema.optional(Schema.Union([Schema.String, Schema.Null])).pipe(
|
|
980
|
+
T.HttpQuery("creator"),
|
|
981
|
+
),
|
|
982
|
+
perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
|
|
983
|
+
sortOrder: Schema.optional(Schema.Literals(["asc", "desc"])).pipe(
|
|
984
|
+
T.HttpQuery("sort_order"),
|
|
985
|
+
),
|
|
986
|
+
}).pipe(
|
|
987
|
+
T.Http({ method: "GET", path: "/accounts/{account_id}/images/v2" }),
|
|
988
|
+
) as unknown as Schema.Schema<ListV2sRequest>;
|
|
989
|
+
|
|
990
|
+
export interface ListV2sResponse {
|
|
991
|
+
/** Continuation token to fetch next page. Passed as a query param when requesting List V2 api endpoint. */
|
|
992
|
+
continuationToken?: string | null;
|
|
993
|
+
images?: unknown[] | null;
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
export const ListV2sResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
997
|
+
continuationToken: Schema.optional(
|
|
998
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
999
|
+
),
|
|
1000
|
+
images: Schema.optional(
|
|
1001
|
+
Schema.Union([Schema.Array(Schema.Unknown), Schema.Null]),
|
|
1002
|
+
),
|
|
1003
|
+
}).pipe(
|
|
1004
|
+
Schema.encodeKeys({
|
|
1005
|
+
continuationToken: "continuation_token",
|
|
1006
|
+
images: "images",
|
|
1007
|
+
}),
|
|
1008
|
+
) as unknown as Schema.Schema<ListV2sResponse>;
|
|
1009
|
+
|
|
1010
|
+
export type ListV2sError = DefaultErrors | ImagesAccessNotEnabled;
|
|
1011
|
+
|
|
1012
|
+
export const listV2s: API.OperationMethod<
|
|
1013
|
+
ListV2sRequest,
|
|
1014
|
+
ListV2sResponse,
|
|
1015
|
+
ListV2sError,
|
|
1016
|
+
Credentials | HttpClient.HttpClient
|
|
1017
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1018
|
+
input: ListV2sRequest,
|
|
1019
|
+
output: ListV2sResponse,
|
|
1020
|
+
errors: [ImagesAccessNotEnabled],
|
|
1021
|
+
}));
|
|
1022
|
+
|
|
1023
|
+
// =============================================================================
|
|
1024
|
+
// V2DirectUpload
|
|
1025
|
+
// =============================================================================
|
|
1026
|
+
|
|
1027
|
+
export interface CreateV2DirectUploadRequest {
|
|
1028
|
+
/** Path param: Account identifier tag. */
|
|
1029
|
+
accountId: string;
|
|
1030
|
+
/** Body param: Optional Image Custom ID. Up to 1024 chars. Can include any number of subpaths, and utf8 characters. Cannot start nor end with a / (forward slash). Cannot be a UUID. */
|
|
1031
|
+
id?: string;
|
|
1032
|
+
/** Body param: Can set the creator field with an internal user ID. */
|
|
1033
|
+
creator?: string;
|
|
1034
|
+
/** Body param: The date after which the upload will not be accepted. Minimum: Now + 2 minutes. Maximum: Now + 6 hours. */
|
|
1035
|
+
expiry?: string;
|
|
1036
|
+
/** Body param: User modifiable key-value store. Can be used for keeping references to another system of record, for managing images. */
|
|
1037
|
+
metadata?: unknown;
|
|
1038
|
+
/** Body param: Indicates whether the image requires a signature token to be accessed. */
|
|
1039
|
+
requireSignedURLs?: boolean;
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
export const CreateV2DirectUploadRequest =
|
|
1043
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1044
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1045
|
+
id: Schema.optional(Schema.String),
|
|
1046
|
+
creator: Schema.optional(Schema.String),
|
|
1047
|
+
expiry: Schema.optional(Schema.String),
|
|
1048
|
+
metadata: Schema.optional(Schema.Unknown),
|
|
1049
|
+
requireSignedURLs: Schema.optional(Schema.Boolean),
|
|
1050
|
+
}).pipe(
|
|
1051
|
+
T.Http({
|
|
1052
|
+
method: "POST",
|
|
1053
|
+
path: "/accounts/{account_id}/images/v2/direct_upload",
|
|
1054
|
+
contentType: "multipart",
|
|
1055
|
+
}),
|
|
1056
|
+
) as unknown as Schema.Schema<CreateV2DirectUploadRequest>;
|
|
1057
|
+
|
|
1058
|
+
export interface CreateV2DirectUploadResponse {
|
|
1059
|
+
/** Image unique identifier. */
|
|
1060
|
+
id?: string | null;
|
|
1061
|
+
/** The URL the unauthenticated upload can be performed to using a single HTTP POST (multipart/form-data) request. */
|
|
1062
|
+
uploadURL?: string | null;
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
export const CreateV2DirectUploadResponse =
|
|
1066
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1067
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1068
|
+
uploadURL: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1069
|
+
}) as unknown as Schema.Schema<CreateV2DirectUploadResponse>;
|
|
1070
|
+
|
|
1071
|
+
export type CreateV2DirectUploadError =
|
|
1072
|
+
| DefaultErrors
|
|
1073
|
+
| ImagesAccessNotEnabled
|
|
1074
|
+
| ImageAlreadyExists
|
|
1075
|
+
| InvalidUploadFormat;
|
|
1076
|
+
|
|
1077
|
+
export const createV2DirectUpload: API.OperationMethod<
|
|
1078
|
+
CreateV2DirectUploadRequest,
|
|
1079
|
+
CreateV2DirectUploadResponse,
|
|
1080
|
+
CreateV2DirectUploadError,
|
|
1081
|
+
Credentials | HttpClient.HttpClient
|
|
1082
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1083
|
+
input: CreateV2DirectUploadRequest,
|
|
1084
|
+
output: CreateV2DirectUploadResponse,
|
|
1085
|
+
errors: [ImagesAccessNotEnabled, ImageAlreadyExists, InvalidUploadFormat],
|
|
1086
|
+
}));
|