@effect-kit/storage 0.0.0-stage → 0.1.0
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/CHANGELOG.md +18 -0
- package/LICENSE +204 -0
- package/README.md +369 -2
- package/dist/_virtual/_rolldown/runtime.js +17 -0
- package/dist/azure/account-admin.d.ts +116 -0
- package/dist/azure/account-admin.js +90 -0
- package/dist/azure/account-admin.js.map +1 -0
- package/dist/azure/admin.d.ts +68 -0
- package/dist/azure/admin.js +85 -0
- package/dist/azure/admin.js.map +1 -0
- package/dist/azure/archive.d.ts +95 -0
- package/dist/azure/archive.js +52 -0
- package/dist/azure/archive.js.map +1 -0
- package/dist/azure/events.d.ts +40 -0
- package/dist/azure/events.js +62 -0
- package/dist/azure/events.js.map +1 -0
- package/dist/azure/governance.d.ts +139 -0
- package/dist/azure/governance.js +59 -0
- package/dist/azure/governance.js.map +1 -0
- package/dist/azure/identity.d.ts +4 -0
- package/dist/azure/identity.js +8 -0
- package/dist/azure/identity.js.map +1 -0
- package/dist/azure/lifecycle.d.ts +21 -0
- package/dist/azure/lifecycle.js +193 -0
- package/dist/azure/lifecycle.js.map +1 -0
- package/dist/azure/signing.d.ts +17 -0
- package/dist/azure/signing.js +71 -0
- package/dist/azure/signing.js.map +1 -0
- package/dist/azure/uploads.d.ts +11 -0
- package/dist/azure/uploads.js +83 -0
- package/dist/azure/uploads.js.map +1 -0
- package/dist/azure.d.ts +427 -0
- package/dist/azure.js +77 -0
- package/dist/azure.js.map +1 -0
- package/dist/b2/admin.d.ts +149 -0
- package/dist/b2/admin.js +157 -0
- package/dist/b2/admin.js.map +1 -0
- package/dist/b2.d.ts +15 -0
- package/dist/b2.js +15 -0
- package/dist/b2.js.map +1 -0
- package/dist/browser.d.ts +7 -0
- package/dist/browser.js +11 -0
- package/dist/browser.js.map +1 -0
- package/dist/bun.d.ts +14 -0
- package/dist/bun.js +17 -0
- package/dist/bun.js.map +1 -0
- package/dist/cache.d.ts +18 -0
- package/dist/cache.js +116 -0
- package/dist/cache.js.map +1 -0
- package/dist/client/atoms/controller.d.ts +10 -0
- package/dist/client/atoms/controller.js +267 -0
- package/dist/client/atoms/controller.js.map +1 -0
- package/dist/client/atoms/state.d.ts +17 -0
- package/dist/client/atoms/state.js +11 -0
- package/dist/client/atoms/state.js.map +1 -0
- package/dist/client/atoms.d.ts +59 -0
- package/dist/client/atoms.js +39 -0
- package/dist/client/atoms.js.map +1 -0
- package/dist/client/fingerprint.js +28 -0
- package/dist/client/fingerprint.js.map +1 -0
- package/dist/client/store.d.ts +31 -0
- package/dist/client/store.js +56 -0
- package/dist/client/store.js.map +1 -0
- package/dist/client/transport.d.ts +11 -0
- package/dist/client/transport.js +78 -0
- package/dist/client/transport.js.map +1 -0
- package/dist/client.d.ts +259 -0
- package/dist/client.js +350 -0
- package/dist/client.js.map +1 -0
- package/dist/composition/layer.js +22 -0
- package/dist/composition/layer.js.map +1 -0
- package/dist/composition/representation/staging.js +46 -0
- package/dist/composition/representation/staging.js.map +1 -0
- package/dist/composition/representation/storage.js +188 -0
- package/dist/composition/representation/storage.js.map +1 -0
- package/dist/composition.d.ts +20 -0
- package/dist/composition.js +124 -0
- package/dist/composition.js.map +1 -0
- package/dist/compression.d.ts +16 -0
- package/dist/compression.js +38 -0
- package/dist/compression.js.map +1 -0
- package/dist/content.d.ts +590 -0
- package/dist/content.js +168 -0
- package/dist/content.js.map +1 -0
- package/dist/core/capabilities.d.ts +53 -0
- package/dist/core/capabilities.js +9 -0
- package/dist/core/capabilities.js.map +1 -0
- package/dist/core/contracts/multipart.d.ts +56 -0
- package/dist/core/contracts/resumable.d.ts +70 -0
- package/dist/core/errors.d.ts +55 -0
- package/dist/core/errors.js +55 -0
- package/dist/core/errors.js.map +1 -0
- package/dist/core/object.d.ts +97 -0
- package/dist/core/object.js +55 -0
- package/dist/core/object.js.map +1 -0
- package/dist/core/ranges.d.ts +17 -0
- package/dist/core/ranges.js +27 -0
- package/dist/core/ranges.js.map +1 -0
- package/dist/core/requests.d.ts +185 -0
- package/dist/core/requests.js +42 -0
- package/dist/core/requests.js.map +1 -0
- package/dist/core/storage.d.ts +249 -0
- package/dist/core/storage.js +173 -0
- package/dist/core/storage.js.map +1 -0
- package/dist/deno.d.ts +14 -0
- package/dist/deno.js +17 -0
- package/dist/deno.js.map +1 -0
- package/dist/encryption/age.d.ts +14 -0
- package/dist/encryption/age.js +46 -0
- package/dist/encryption/age.js.map +1 -0
- package/dist/encryption.d.ts +16 -0
- package/dist/encryption.js +16 -0
- package/dist/encryption.js.map +1 -0
- package/dist/events.d.ts +57 -0
- package/dist/events.js +106 -0
- package/dist/events.js.map +1 -0
- package/dist/filesystem.d.ts +23 -0
- package/dist/filesystem.js +75 -0
- package/dist/filesystem.js.map +1 -0
- package/dist/gcs/admin.d.ts +470 -0
- package/dist/gcs/admin.js +206 -0
- package/dist/gcs/admin.js.map +1 -0
- package/dist/gcs/events.d.ts +41 -0
- package/dist/gcs/events.js +45 -0
- package/dist/gcs/events.js.map +1 -0
- package/dist/gcs/governance.d.ts +158 -0
- package/dist/gcs/governance.js +100 -0
- package/dist/gcs/governance.js.map +1 -0
- package/dist/gcs/lifecycle.d.ts +161 -0
- package/dist/gcs/lifecycle.js +174 -0
- package/dist/gcs/lifecycle.js.map +1 -0
- package/dist/gcs/post.d.ts +31 -0
- package/dist/gcs/post.js +70 -0
- package/dist/gcs/post.js.map +1 -0
- package/dist/gcs/signing.d.ts +10 -0
- package/dist/gcs/signing.js +61 -0
- package/dist/gcs/signing.js.map +1 -0
- package/dist/gcs/uploads.d.ts +10 -0
- package/dist/gcs/uploads.js +76 -0
- package/dist/gcs/uploads.js.map +1 -0
- package/dist/gcs.d.ts +888 -0
- package/dist/gcs.js +91 -0
- package/dist/gcs.js.map +1 -0
- package/dist/hetzner/admin.d.ts +112 -0
- package/dist/hetzner/admin.js +19 -0
- package/dist/hetzner/admin.js.map +1 -0
- package/dist/hetzner.d.ts +15 -0
- package/dist/hetzner.js +15 -0
- package/dist/hetzner.js.map +1 -0
- package/dist/http/api.d.ts +236 -0
- package/dist/http/api.js +54 -0
- package/dist/http/api.js.map +1 -0
- package/dist/http/download.js +99 -0
- package/dist/http/download.js.map +1 -0
- package/dist/http/schema.d.ts +3 -0
- package/dist/http/schema.js +4 -0
- package/dist/http.d.ts +35 -0
- package/dist/http.js +178 -0
- package/dist/http.js.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +9 -0
- package/dist/internal/http/control-plane.js +71 -0
- package/dist/internal/http/control-plane.js.map +1 -0
- package/dist/internal/listing-cursor.js +44 -0
- package/dist/internal/listing-cursor.js.map +1 -0
- package/dist/internal/node/provider-errors.js +16 -0
- package/dist/internal/node/provider-errors.js.map +1 -0
- package/dist/internal/node/upload-body.js +111 -0
- package/dist/internal/node/upload-body.js.map +1 -0
- package/dist/internal/provider-response.js +14 -0
- package/dist/internal/provider-response.js.map +1 -0
- package/dist/internal/public-urls.js +30 -0
- package/dist/internal/public-urls.js.map +1 -0
- package/dist/internal/read-condition.js +11 -0
- package/dist/internal/read-condition.js.map +1 -0
- package/dist/internal/request-validation.js +24 -0
- package/dist/internal/request-validation.js.map +1 -0
- package/dist/internal/signing-request.js +22 -0
- package/dist/internal/signing-request.js.map +1 -0
- package/dist/internal/web-upload-body.js +71 -0
- package/dist/internal/web-upload-body.js.map +1 -0
- package/dist/lifecycle/configuration-state.js +26 -0
- package/dist/lifecycle/configuration-state.js.map +1 -0
- package/dist/lifecycle/metadata.js +28 -0
- package/dist/lifecycle/metadata.js.map +1 -0
- package/dist/lifecycle.d.ts +269 -0
- package/dist/lifecycle.js +72 -0
- package/dist/lifecycle.js.map +1 -0
- package/dist/migrations.d.ts +537 -0
- package/dist/migrations.js +296 -0
- package/dist/migrations.js.map +1 -0
- package/dist/minio/admin.d.ts +112 -0
- package/dist/minio/admin.js +19 -0
- package/dist/minio/admin.js.map +1 -0
- package/dist/minio.d.ts +15 -0
- package/dist/minio.js +15 -0
- package/dist/minio.js.map +1 -0
- package/dist/mirror.d.ts +830 -0
- package/dist/mirror.js +290 -0
- package/dist/mirror.js.map +1 -0
- package/dist/node.d.ts +14 -0
- package/dist/node.js +17 -0
- package/dist/node.js.map +1 -0
- package/dist/providers/azure/blocks.js +94 -0
- package/dist/providers/azure/blocks.js.map +1 -0
- package/dist/providers/azure/config.d.ts +41 -0
- package/dist/providers/azure/config.js +62 -0
- package/dist/providers/azure/config.js.map +1 -0
- package/dist/providers/azure/mapping.js +83 -0
- package/dist/providers/azure/mapping.js.map +1 -0
- package/dist/providers/azure/native.js +88 -0
- package/dist/providers/azure/native.js.map +1 -0
- package/dist/providers/azure/primitives.js +203 -0
- package/dist/providers/azure/primitives.js.map +1 -0
- package/dist/providers/azure/properties.d.ts +180 -0
- package/dist/providers/azure/properties.js +55 -0
- package/dist/providers/azure/properties.js.map +1 -0
- package/dist/providers/azure/transport.js +14 -0
- package/dist/providers/azure/transport.js.map +1 -0
- package/dist/providers/azure/validation.js +11 -0
- package/dist/providers/azure/validation.js.map +1 -0
- package/dist/providers/filesystem/envelope.js +56 -0
- package/dist/providers/filesystem/envelope.js.map +1 -0
- package/dist/providers/filesystem/identity.js +68 -0
- package/dist/providers/filesystem/identity.js.map +1 -0
- package/dist/providers/filesystem/layout.d.ts +15 -0
- package/dist/providers/filesystem/layout.js +112 -0
- package/dist/providers/filesystem/layout.js.map +1 -0
- package/dist/providers/filesystem/list.js +82 -0
- package/dist/providers/filesystem/list.js.map +1 -0
- package/dist/providers/filesystem/operations.js +134 -0
- package/dist/providers/filesystem/operations.js.map +1 -0
- package/dist/providers/gcs/config.d.ts +34 -0
- package/dist/providers/gcs/config.js +60 -0
- package/dist/providers/gcs/config.js.map +1 -0
- package/dist/providers/gcs/iam.js +45 -0
- package/dist/providers/gcs/iam.js.map +1 -0
- package/dist/providers/gcs/mapping.js +118 -0
- package/dist/providers/gcs/mapping.js.map +1 -0
- package/dist/providers/gcs/native.d.ts +11 -0
- package/dist/providers/gcs/native.js +122 -0
- package/dist/providers/gcs/native.js.map +1 -0
- package/dist/providers/gcs/primitives.js +194 -0
- package/dist/providers/gcs/primitives.js.map +1 -0
- package/dist/providers/gcs/resumable.js +145 -0
- package/dist/providers/gcs/resumable.js.map +1 -0
- package/dist/providers/gcs/tier.d.ts +176 -0
- package/dist/providers/gcs/tier.js +34 -0
- package/dist/providers/gcs/tier.js.map +1 -0
- package/dist/providers/gcs/transport.js +123 -0
- package/dist/providers/gcs/transport.js.map +1 -0
- package/dist/providers/gcs/upload.js +28 -0
- package/dist/providers/gcs/upload.js.map +1 -0
- package/dist/providers/gcs/validation.js +10 -0
- package/dist/providers/gcs/validation.js.map +1 -0
- package/dist/providers/r2-workers/binding.d.ts +102 -0
- package/dist/providers/r2-workers/body.js +82 -0
- package/dist/providers/r2-workers/body.js.map +1 -0
- package/dist/providers/r2-workers/list.js +62 -0
- package/dist/providers/r2-workers/list.js.map +1 -0
- package/dist/providers/r2-workers/mapping.js +140 -0
- package/dist/providers/r2-workers/mapping.js.map +1 -0
- package/dist/providers/r2-workers/multipart.js +121 -0
- package/dist/providers/r2-workers/multipart.js.map +1 -0
- package/dist/providers/r2-workers/primitives.js +80 -0
- package/dist/providers/r2-workers/primitives.js.map +1 -0
- package/dist/providers/s3/admin-configuration.d.ts +19 -0
- package/dist/providers/s3/admin-configuration.js +171 -0
- package/dist/providers/s3/admin-configuration.js.map +1 -0
- package/dist/providers/s3/bulk-delete.d.ts +43 -0
- package/dist/providers/s3/bulk-delete.js +58 -0
- package/dist/providers/s3/bulk-delete.js.map +1 -0
- package/dist/providers/s3/config.d.ts +43 -0
- package/dist/providers/s3/config.js +89 -0
- package/dist/providers/s3/config.js.map +1 -0
- package/dist/providers/s3/copy.d.ts +115 -0
- package/dist/providers/s3/copy.js +122 -0
- package/dist/providers/s3/copy.js.map +1 -0
- package/dist/providers/s3/lifecycle-validation.js +33 -0
- package/dist/providers/s3/lifecycle-validation.js.map +1 -0
- package/dist/providers/s3/listing.js +56 -0
- package/dist/providers/s3/listing.js.map +1 -0
- package/dist/providers/s3/metadata.d.ts +10 -0
- package/dist/providers/s3/metadata.js +90 -0
- package/dist/providers/s3/metadata.js.map +1 -0
- package/dist/providers/s3/multipart.d.ts +41 -0
- package/dist/providers/s3/multipart.js +299 -0
- package/dist/providers/s3/multipart.js.map +1 -0
- package/dist/providers/s3/native-models.d.ts +82 -0
- package/dist/providers/s3/native-models.js +91 -0
- package/dist/providers/s3/native-models.js.map +1 -0
- package/dist/providers/s3/object-mapping.js +114 -0
- package/dist/providers/s3/object-mapping.js.map +1 -0
- package/dist/providers/s3/primitives.d.ts +8 -0
- package/dist/providers/s3/primitives.js +235 -0
- package/dist/providers/s3/primitives.js.map +1 -0
- package/dist/providers/s3/profile.d.ts +25 -0
- package/dist/providers/s3/profile.js +46 -0
- package/dist/providers/s3/profile.js.map +1 -0
- package/dist/providers/s3/request-extension.js +29 -0
- package/dist/providers/s3/request-extension.js.map +1 -0
- package/dist/providers/s3/service.js +55 -0
- package/dist/providers/s3/service.js.map +1 -0
- package/dist/providers/s3/signing-credentials.js +32 -0
- package/dist/providers/s3/signing-credentials.js.map +1 -0
- package/dist/providers/s3/tags.d.ts +10 -0
- package/dist/providers/s3/tags.js +65 -0
- package/dist/providers/s3/tags.js.map +1 -0
- package/dist/providers/s3/tier.d.ts +171 -0
- package/dist/providers/s3/tier.js +100 -0
- package/dist/providers/s3/tier.js.map +1 -0
- package/dist/providers/s3/transfer-driver.js +72 -0
- package/dist/providers/s3/transfer-driver.js.map +1 -0
- package/dist/providers/s3/transport.js +94 -0
- package/dist/providers/s3/transport.js.map +1 -0
- package/dist/providers/s3/upload-body.js +10 -0
- package/dist/providers/s3/upload-body.js.map +1 -0
- package/dist/providers/s3/validation.js +31 -0
- package/dist/providers/s3/validation.js.map +1 -0
- package/dist/providers/s3/versions.d.ts +10 -0
- package/dist/providers/s3/versions.js +143 -0
- package/dist/providers/s3/versions.js.map +1 -0
- package/dist/providers/s3-compatible/config.d.ts +36 -0
- package/dist/providers/s3-compatible/config.js +174 -0
- package/dist/providers/s3-compatible/config.js.map +1 -0
- package/dist/providers/s3-compatible/service.js +48 -0
- package/dist/providers/s3-compatible/service.js.map +1 -0
- package/dist/providers/supabase/config.d.ts +20 -0
- package/dist/providers/supabase/config.js +41 -0
- package/dist/providers/supabase/config.js.map +1 -0
- package/dist/providers/supabase/mapping.js +60 -0
- package/dist/providers/supabase/mapping.js.map +1 -0
- package/dist/providers/supabase/primitives.js +205 -0
- package/dist/providers/supabase/primitives.js.map +1 -0
- package/dist/providers/supabase/transport.js +64 -0
- package/dist/providers/supabase/transport.js.map +1 -0
- package/dist/providers/supabase/tus.js +163 -0
- package/dist/providers/supabase/tus.js.map +1 -0
- package/dist/providers/tigris/configuration.js +118 -0
- package/dist/providers/tigris/configuration.js.map +1 -0
- package/dist/providers/tigris/snapshots.js +87 -0
- package/dist/providers/tigris/snapshots.js.map +1 -0
- package/dist/providers/tigris/transport.js +18 -0
- package/dist/providers/tigris/transport.js.map +1 -0
- package/dist/providers/vercel/config.d.ts +16 -0
- package/dist/providers/vercel/config.js +48 -0
- package/dist/providers/vercel/config.js.map +1 -0
- package/dist/providers/vercel/mapping.js +79 -0
- package/dist/providers/vercel/mapping.js.map +1 -0
- package/dist/providers/vercel/multipart.js +113 -0
- package/dist/providers/vercel/multipart.js.map +1 -0
- package/dist/providers/vercel/primitives.js +168 -0
- package/dist/providers/vercel/primitives.js.map +1 -0
- package/dist/providers/vercel/transport.js +32 -0
- package/dist/providers/vercel/transport.js.map +1 -0
- package/dist/providers/wasabi/compliance.d.ts +52 -0
- package/dist/providers/wasabi/compliance.js +89 -0
- package/dist/providers/wasabi/compliance.js.map +1 -0
- package/dist/providers/wasabi/xml.js +55 -0
- package/dist/providers/wasabi/xml.js.map +1 -0
- package/dist/r2/admin.d.ts +126 -0
- package/dist/r2/admin.js +138 -0
- package/dist/r2/admin.js.map +1 -0
- package/dist/r2/events.d.ts +41 -0
- package/dist/r2/events.js +37 -0
- package/dist/r2/events.js.map +1 -0
- package/dist/r2-workers.d.ts +24 -0
- package/dist/r2-workers.js +115 -0
- package/dist/r2-workers.js.map +1 -0
- package/dist/r2.d.ts +15 -0
- package/dist/r2.js +15 -0
- package/dist/r2.js.map +1 -0
- package/dist/react.d.ts +73 -0
- package/dist/react.js +49 -0
- package/dist/react.js.map +1 -0
- package/dist/representation.d.ts +24 -0
- package/dist/representation.js +7 -0
- package/dist/representation.js.map +1 -0
- package/dist/runtime/bun-filesystem.js +136 -0
- package/dist/runtime/bun-filesystem.js.map +1 -0
- package/dist/runtime/file-target.d.ts +10 -0
- package/dist/runtime/file-target.js +66 -0
- package/dist/runtime/file-target.js.map +1 -0
- package/dist/runtime/filesystem.d.ts +6 -0
- package/dist/runtime/filesystem.js +68 -0
- package/dist/runtime/filesystem.js.map +1 -0
- package/dist/runtime/node-hash.d.ts +4 -0
- package/dist/runtime/node-hash.js +31 -0
- package/dist/runtime/node-hash.js.map +1 -0
- package/dist/runtime/node-protection.d.ts +4 -0
- package/dist/runtime/node-protection.js +46 -0
- package/dist/runtime/node-protection.js.map +1 -0
- package/dist/runtime/portable-hash.d.ts +3 -0
- package/dist/runtime/portable-hash.js +31 -0
- package/dist/runtime/portable-hash.js.map +1 -0
- package/dist/runtime/session-store.d.ts +12 -0
- package/dist/runtime/session-store.js +19 -0
- package/dist/runtime/session-store.js.map +1 -0
- package/dist/runtime/web-protection.d.ts +7 -0
- package/dist/runtime/web-protection.js +54 -0
- package/dist/runtime/web-protection.js.map +1 -0
- package/dist/s3/admin.d.ts +183 -0
- package/dist/s3/admin.js +197 -0
- package/dist/s3/admin.js.map +1 -0
- package/dist/s3/archive.d.ts +25 -0
- package/dist/s3/archive.js +113 -0
- package/dist/s3/archive.js.map +1 -0
- package/dist/s3/events.d.ts +42 -0
- package/dist/s3/events.js +69 -0
- package/dist/s3/events.js.map +1 -0
- package/dist/s3/governance.d.ts +319 -0
- package/dist/s3/governance.js +108 -0
- package/dist/s3/governance.js.map +1 -0
- package/dist/s3/lifecycle.d.ts +4 -0
- package/dist/s3/lifecycle.js +5 -0
- package/dist/s3/post.d.ts +31 -0
- package/dist/s3/post.js +93 -0
- package/dist/s3/post.js.map +1 -0
- package/dist/s3/signing.d.ts +105 -0
- package/dist/s3/signing.js +198 -0
- package/dist/s3/signing.js.map +1 -0
- package/dist/s3/uploads.d.ts +11 -0
- package/dist/s3/uploads.js +173 -0
- package/dist/s3/uploads.js.map +1 -0
- package/dist/s3.d.ts +37 -0
- package/dist/s3.js +114 -0
- package/dist/s3.js.map +1 -0
- package/dist/scaleway/admin.d.ts +112 -0
- package/dist/scaleway/admin.js +19 -0
- package/dist/scaleway/admin.js.map +1 -0
- package/dist/scaleway.d.ts +15 -0
- package/dist/scaleway.js +15 -0
- package/dist/scaleway.js.map +1 -0
- package/dist/session-events.d.ts +22 -0
- package/dist/session-events.js +22 -0
- package/dist/session-events.js.map +1 -0
- package/dist/sessions/checkpoint.d.ts +423 -0
- package/dist/sessions/checkpoint.js +102 -0
- package/dist/sessions/checkpoint.js.map +1 -0
- package/dist/sessions/download.d.ts +17 -0
- package/dist/sessions/download.js +111 -0
- package/dist/sessions/download.js.map +1 -0
- package/dist/sessions/native-upload.js +168 -0
- package/dist/sessions/native-upload.js.map +1 -0
- package/dist/sessions/store.d.ts +40 -0
- package/dist/sessions/store.js +77 -0
- package/dist/sessions/store.js.map +1 -0
- package/dist/sessions/upload.d.ts +10 -0
- package/dist/sessions/upload.js +329 -0
- package/dist/sessions/upload.js.map +1 -0
- package/dist/sessions.d.ts +98 -0
- package/dist/sessions.js +268 -0
- package/dist/sessions.js.map +1 -0
- package/dist/spaces/admin.d.ts +112 -0
- package/dist/spaces/admin.js +19 -0
- package/dist/spaces/admin.js.map +1 -0
- package/dist/spaces.d.ts +15 -0
- package/dist/spaces.js +15 -0
- package/dist/spaces.js.map +1 -0
- package/dist/supabase/admin.d.ts +77 -0
- package/dist/supabase/admin.js +74 -0
- package/dist/supabase/admin.js.map +1 -0
- package/dist/supabase/s3.d.ts +311 -0
- package/dist/supabase/s3.js +153 -0
- package/dist/supabase/s3.js.map +1 -0
- package/dist/supabase/signing.d.ts +23 -0
- package/dist/supabase/signing.js +93 -0
- package/dist/supabase/signing.js.map +1 -0
- package/dist/supabase/tus-uploads.d.ts +13 -0
- package/dist/supabase/tus-uploads.js +109 -0
- package/dist/supabase/tus-uploads.js.map +1 -0
- package/dist/supabase/uploads.d.ts +5 -0
- package/dist/supabase/uploads.js +32 -0
- package/dist/supabase/uploads.js.map +1 -0
- package/dist/supabase.d.ts +100 -0
- package/dist/supabase.js +50 -0
- package/dist/supabase.js.map +1 -0
- package/dist/testing/body-failure.js +18 -0
- package/dist/testing/body-failure.js.map +1 -0
- package/dist/testing/conformance/assertions.d.ts +10 -0
- package/dist/testing/conformance/assertions.js +21 -0
- package/dist/testing/conformance/assertions.js.map +1 -0
- package/dist/testing/conformance/core-cases.js +107 -0
- package/dist/testing/conformance/core-cases.js.map +1 -0
- package/dist/testing/conformance/list-cases.js +72 -0
- package/dist/testing/conformance/list-cases.js.map +1 -0
- package/dist/testing/conformance/read-cases.js +105 -0
- package/dist/testing/conformance/read-cases.js.map +1 -0
- package/dist/testing/conformance.d.ts +23 -0
- package/dist/testing/conformance.js +37 -0
- package/dist/testing/conformance.js.map +1 -0
- package/dist/testing/faults.d.ts +258 -0
- package/dist/testing/faults.js +111 -0
- package/dist/testing/faults.js.map +1 -0
- package/dist/testing/memory-list.js +79 -0
- package/dist/testing/memory-list.js.map +1 -0
- package/dist/testing/memory-state.d.ts +18 -0
- package/dist/testing/memory-state.js +57 -0
- package/dist/testing/memory-state.js.map +1 -0
- package/dist/testing/memory-upload.js +123 -0
- package/dist/testing/memory-upload.js.map +1 -0
- package/dist/testing/memory.d.ts +23 -0
- package/dist/testing/memory.js +121 -0
- package/dist/testing/memory.js.map +1 -0
- package/dist/testing.d.ts +6 -0
- package/dist/testing.js +6 -0
- package/dist/tigris/events.d.ts +42 -0
- package/dist/tigris/events.js +42 -0
- package/dist/tigris/events.js.map +1 -0
- package/dist/tigris/native.d.ts +438 -0
- package/dist/tigris/native.js +166 -0
- package/dist/tigris/native.js.map +1 -0
- package/dist/tigris.d.ts +15 -0
- package/dist/tigris.js +15 -0
- package/dist/tigris.js.map +1 -0
- package/dist/transfers/budget.js +50 -0
- package/dist/transfers/budget.js.map +1 -0
- package/dist/transfers/copy.js +250 -0
- package/dist/transfers/copy.js.map +1 -0
- package/dist/transfers/dependencies.d.ts +10 -0
- package/dist/transfers/dependencies.js +11 -0
- package/dist/transfers/dependencies.js.map +1 -0
- package/dist/transfers/download.js +132 -0
- package/dist/transfers/download.js.map +1 -0
- package/dist/transfers/managed-runtime.d.ts +34 -0
- package/dist/transfers/managed-runtime.js +30 -0
- package/dist/transfers/managed-runtime.js.map +1 -0
- package/dist/transfers/models.d.ts +160 -0
- package/dist/transfers/native-upload.js +195 -0
- package/dist/transfers/native-upload.js.map +1 -0
- package/dist/transfers/part-receipts.js +32 -0
- package/dist/transfers/part-receipts.js.map +1 -0
- package/dist/transfers/planner.d.ts +19 -0
- package/dist/transfers/planner.js +153 -0
- package/dist/transfers/planner.js.map +1 -0
- package/dist/transfers/reader.js +81 -0
- package/dist/transfers/reader.js.map +1 -0
- package/dist/transfers/runtime.d.ts +19 -0
- package/dist/transfers/runtime.js +132 -0
- package/dist/transfers/runtime.js.map +1 -0
- package/dist/transfers/sources.d.ts +22 -0
- package/dist/transfers/sources.js +83 -0
- package/dist/transfers/sources.js.map +1 -0
- package/dist/transfers/upload.js +235 -0
- package/dist/transfers/upload.js.map +1 -0
- package/dist/transfers.d.ts +31 -0
- package/dist/transfers.js +82 -0
- package/dist/transfers.js.map +1 -0
- package/dist/uploads/driver.d.ts +22 -0
- package/dist/uploads/driver.js +18 -0
- package/dist/uploads/driver.js.map +1 -0
- package/dist/uploads/policy.d.ts +39 -0
- package/dist/uploads/schema.d.ts +278 -0
- package/dist/uploads/schema.js +167 -0
- package/dist/uploads/schema.js.map +1 -0
- package/dist/uploads/signed-driver.d.ts +8 -0
- package/dist/uploads/signed-driver.js +36 -0
- package/dist/uploads/signed-driver.js.map +1 -0
- package/dist/uploads/store.d.ts +26 -0
- package/dist/uploads/store.js +51 -0
- package/dist/uploads/store.js.map +1 -0
- package/dist/uploads/verification.js +86 -0
- package/dist/uploads/verification.js.map +1 -0
- package/dist/uploads.d.ts +518 -0
- package/dist/uploads.js +330 -0
- package/dist/uploads.js.map +1 -0
- package/dist/vercel/authorized-uploads.d.ts +7 -0
- package/dist/vercel/authorized-uploads.js +15 -0
- package/dist/vercel/authorized-uploads.js.map +1 -0
- package/dist/vercel/client.d.ts +16 -0
- package/dist/vercel/client.js +28 -0
- package/dist/vercel/client.js.map +1 -0
- package/dist/vercel/signing.d.ts +19 -0
- package/dist/vercel/signing.js +120 -0
- package/dist/vercel/signing.js.map +1 -0
- package/dist/vercel/uploads.d.ts +36 -0
- package/dist/vercel/uploads.js +161 -0
- package/dist/vercel/uploads.js.map +1 -0
- package/dist/vercel.d.ts +86 -0
- package/dist/vercel.js +46 -0
- package/dist/vercel.js.map +1 -0
- package/dist/wasabi/admin.d.ts +112 -0
- package/dist/wasabi/admin.js +19 -0
- package/dist/wasabi/admin.js.map +1 -0
- package/dist/wasabi/native.d.ts +200 -0
- package/dist/wasabi/native.js +132 -0
- package/dist/wasabi/native.js.map +1 -0
- package/dist/wasabi.d.ts +15 -0
- package/dist/wasabi.js +15 -0
- package/dist/wasabi.js.map +1 -0
- package/dist/workflows/content/collection.js +122 -0
- package/dist/workflows/content/collection.js.map +1 -0
- package/dist/workflows/content/references.js +113 -0
- package/dist/workflows/content/references.js.map +1 -0
- package/dist/workflows/content/schema.d.ts +58 -0
- package/dist/workflows/content/schema.js +64 -0
- package/dist/workflows/content/schema.js.map +1 -0
- package/dist/workflows/endpoint.js +16 -0
- package/dist/workflows/endpoint.js.map +1 -0
- package/dist/workflows/migrations/schema.d.ts +149 -0
- package/dist/workflows/migrations/schema.js +58 -0
- package/dist/workflows/migrations/schema.js.map +1 -0
- package/dist/workflows/mirror/operations.js +175 -0
- package/dist/workflows/mirror/operations.js.map +1 -0
- package/dist/workflows/mirror/schema.d.ts +68 -0
- package/dist/workflows/mirror/schema.js +57 -0
- package/dist/workflows/mirror/schema.js.map +1 -0
- package/dist/workflows/mirror/view.js +103 -0
- package/dist/workflows/mirror/view.js.map +1 -0
- package/dist/workflows/objects.js +54 -0
- package/dist/workflows/objects.js.map +1 -0
- package/dist/workflows/store.d.ts +13 -0
- package/dist/workflows/store.js +58 -0
- package/dist/workflows/store.js.map +1 -0
- package/package.json +513 -3
package/dist/gcs.d.ts
ADDED
|
@@ -0,0 +1,888 @@
|
|
|
1
|
+
import { ObjectHeaders, ObjectMetadata, ObjectRef } from "./core/object.js";
|
|
2
|
+
import { StorageError } from "./core/errors.js";
|
|
3
|
+
import { DeleteRequest, GetRequest, GetResult, HeadRequest, ListPage, ListRequest, PutRequest } from "./core/requests.js";
|
|
4
|
+
import { StorageCapabilities, StoragePublicUrls } from "./core/capabilities.js";
|
|
5
|
+
import { Storage as Storage$1 } from "./core/storage.js";
|
|
6
|
+
import { OffsetUploads } from "./core/contracts/resumable.js";
|
|
7
|
+
import "./index.js";
|
|
8
|
+
import { TransferDriver } from "./transfers/dependencies.js";
|
|
9
|
+
import { GcsConfig, GcsConnection, ResolvedGcsConfig } from "./providers/gcs/config.js";
|
|
10
|
+
import { GcsPreconditions } from "./providers/gcs/native.js";
|
|
11
|
+
import { Context, Effect, Layer } from "effect";
|
|
12
|
+
import { Storage } from "@google-cloud/storage";
|
|
13
|
+
declare function assemble(connection: GcsConnection): {
|
|
14
|
+
provider: string;
|
|
15
|
+
storeId: string;
|
|
16
|
+
capabilities: StorageCapabilities;
|
|
17
|
+
put: <E = never, R = never>(request: PutRequest<E, R>) => Effect.Effect<ObjectMetadata, StorageError | E, R>;
|
|
18
|
+
get: (request: GetRequest) => Effect.Effect<GetResult, StorageError, import("effect/Scope").Scope>;
|
|
19
|
+
head: (request: HeadRequest) => Effect.Effect<ObjectMetadata, StorageError>;
|
|
20
|
+
delete: (request: DeleteRequest) => Effect.Effect<void, StorageError>;
|
|
21
|
+
listPage: (request?: ListRequest) => Effect.Effect<ListPage, StorageError>;
|
|
22
|
+
client: Storage;
|
|
23
|
+
config: ResolvedGcsConfig;
|
|
24
|
+
updateMetadata: (request: {
|
|
25
|
+
readonly ref: ObjectRef;
|
|
26
|
+
readonly headers: ObjectHeaders;
|
|
27
|
+
readonly preconditions?: GcsPreconditions;
|
|
28
|
+
}) => Effect.Effect<{
|
|
29
|
+
readonly contentType?: string | undefined;
|
|
30
|
+
readonly contentEncoding?: string | undefined;
|
|
31
|
+
readonly contentLanguage?: string | undefined;
|
|
32
|
+
readonly contentDisposition?: string | undefined;
|
|
33
|
+
readonly cacheControl?: string | undefined;
|
|
34
|
+
readonly customMetadata?: {
|
|
35
|
+
readonly [x: string]: string;
|
|
36
|
+
} | undefined;
|
|
37
|
+
readonly ref: {
|
|
38
|
+
readonly storeId: string;
|
|
39
|
+
readonly key: string;
|
|
40
|
+
readonly version?: {
|
|
41
|
+
readonly _tag: "S3Version";
|
|
42
|
+
readonly id: string;
|
|
43
|
+
} | {
|
|
44
|
+
readonly _tag: "GcsGeneration";
|
|
45
|
+
readonly id: string;
|
|
46
|
+
readonly metageneration?: string | undefined;
|
|
47
|
+
} | {
|
|
48
|
+
readonly _tag: "AzureVersion";
|
|
49
|
+
readonly id: string;
|
|
50
|
+
} | {
|
|
51
|
+
readonly _tag: "AzureSnapshot";
|
|
52
|
+
readonly id: string;
|
|
53
|
+
} | {
|
|
54
|
+
readonly _tag: "OpaqueVersion";
|
|
55
|
+
readonly provider: string;
|
|
56
|
+
readonly id: string;
|
|
57
|
+
} | undefined;
|
|
58
|
+
};
|
|
59
|
+
readonly size?: number | undefined;
|
|
60
|
+
readonly etag?: string | undefined;
|
|
61
|
+
readonly lastModified?: import("effect/DateTime").Utc | undefined;
|
|
62
|
+
readonly checksums?: readonly {
|
|
63
|
+
readonly algorithm: string;
|
|
64
|
+
readonly encoding: "base64" | "hex";
|
|
65
|
+
readonly scope: "composite" | "full-object";
|
|
66
|
+
readonly value: string;
|
|
67
|
+
readonly partCount?: number | undefined;
|
|
68
|
+
}[] | undefined;
|
|
69
|
+
readonly storageClass?: string | undefined;
|
|
70
|
+
}, StorageError, never>;
|
|
71
|
+
deleteGeneration: (request: {
|
|
72
|
+
readonly ref: ObjectRef;
|
|
73
|
+
readonly preconditions?: GcsPreconditions;
|
|
74
|
+
}) => Effect.Effect<void, StorageError, never>;
|
|
75
|
+
rewrite: (request: {
|
|
76
|
+
readonly source: ObjectRef;
|
|
77
|
+
readonly destinationKey: string;
|
|
78
|
+
readonly headers?: ObjectHeaders;
|
|
79
|
+
readonly preconditions?: GcsPreconditions;
|
|
80
|
+
readonly token?: string;
|
|
81
|
+
readonly storageClass?: "STANDARD" | "NEARLINE" | "COLDLINE" | "ARCHIVE";
|
|
82
|
+
}) => Effect.Effect<{
|
|
83
|
+
_tag: "Completed";
|
|
84
|
+
metadata: {
|
|
85
|
+
readonly contentType?: string | undefined;
|
|
86
|
+
readonly contentEncoding?: string | undefined;
|
|
87
|
+
readonly contentLanguage?: string | undefined;
|
|
88
|
+
readonly contentDisposition?: string | undefined;
|
|
89
|
+
readonly cacheControl?: string | undefined;
|
|
90
|
+
readonly customMetadata?: {
|
|
91
|
+
readonly [x: string]: string;
|
|
92
|
+
} | undefined;
|
|
93
|
+
readonly ref: {
|
|
94
|
+
readonly storeId: string;
|
|
95
|
+
readonly key: string;
|
|
96
|
+
readonly version?: {
|
|
97
|
+
readonly _tag: "S3Version";
|
|
98
|
+
readonly id: string;
|
|
99
|
+
} | {
|
|
100
|
+
readonly _tag: "GcsGeneration";
|
|
101
|
+
readonly id: string;
|
|
102
|
+
readonly metageneration?: string | undefined;
|
|
103
|
+
} | {
|
|
104
|
+
readonly _tag: "AzureVersion";
|
|
105
|
+
readonly id: string;
|
|
106
|
+
} | {
|
|
107
|
+
readonly _tag: "AzureSnapshot";
|
|
108
|
+
readonly id: string;
|
|
109
|
+
} | {
|
|
110
|
+
readonly _tag: "OpaqueVersion";
|
|
111
|
+
readonly provider: string;
|
|
112
|
+
readonly id: string;
|
|
113
|
+
} | undefined;
|
|
114
|
+
};
|
|
115
|
+
readonly size?: number | undefined;
|
|
116
|
+
readonly etag?: string | undefined;
|
|
117
|
+
readonly lastModified?: import("effect/DateTime").Utc | undefined;
|
|
118
|
+
readonly checksums?: readonly {
|
|
119
|
+
readonly algorithm: string;
|
|
120
|
+
readonly encoding: "base64" | "hex";
|
|
121
|
+
readonly scope: "composite" | "full-object";
|
|
122
|
+
readonly value: string;
|
|
123
|
+
readonly partCount?: number | undefined;
|
|
124
|
+
}[] | undefined;
|
|
125
|
+
readonly storageClass?: string | undefined;
|
|
126
|
+
};
|
|
127
|
+
token?: never;
|
|
128
|
+
bytesRewritten?: never;
|
|
129
|
+
objectSize?: never;
|
|
130
|
+
} | {
|
|
131
|
+
metadata?: never;
|
|
132
|
+
_tag: "Pending";
|
|
133
|
+
token: string | undefined;
|
|
134
|
+
bytesRewritten: string;
|
|
135
|
+
objectSize: string;
|
|
136
|
+
}, StorageError, never>;
|
|
137
|
+
compose: (request: {
|
|
138
|
+
readonly sources: ReadonlyArray<ObjectRef>;
|
|
139
|
+
readonly destinationKey: string;
|
|
140
|
+
readonly headers?: ObjectHeaders;
|
|
141
|
+
readonly preconditions?: GcsPreconditions;
|
|
142
|
+
}) => Effect.Effect<{
|
|
143
|
+
readonly contentType?: string | undefined;
|
|
144
|
+
readonly contentEncoding?: string | undefined;
|
|
145
|
+
readonly contentLanguage?: string | undefined;
|
|
146
|
+
readonly contentDisposition?: string | undefined;
|
|
147
|
+
readonly cacheControl?: string | undefined;
|
|
148
|
+
readonly customMetadata?: {
|
|
149
|
+
readonly [x: string]: string;
|
|
150
|
+
} | undefined;
|
|
151
|
+
readonly ref: {
|
|
152
|
+
readonly storeId: string;
|
|
153
|
+
readonly key: string;
|
|
154
|
+
readonly version?: {
|
|
155
|
+
readonly _tag: "S3Version";
|
|
156
|
+
readonly id: string;
|
|
157
|
+
} | {
|
|
158
|
+
readonly _tag: "GcsGeneration";
|
|
159
|
+
readonly id: string;
|
|
160
|
+
readonly metageneration?: string | undefined;
|
|
161
|
+
} | {
|
|
162
|
+
readonly _tag: "AzureVersion";
|
|
163
|
+
readonly id: string;
|
|
164
|
+
} | {
|
|
165
|
+
readonly _tag: "AzureSnapshot";
|
|
166
|
+
readonly id: string;
|
|
167
|
+
} | {
|
|
168
|
+
readonly _tag: "OpaqueVersion";
|
|
169
|
+
readonly provider: string;
|
|
170
|
+
readonly id: string;
|
|
171
|
+
} | undefined;
|
|
172
|
+
};
|
|
173
|
+
readonly size?: number | undefined;
|
|
174
|
+
readonly etag?: string | undefined;
|
|
175
|
+
readonly lastModified?: import("effect/DateTime").Utc | undefined;
|
|
176
|
+
readonly checksums?: readonly {
|
|
177
|
+
readonly algorithm: string;
|
|
178
|
+
readonly encoding: "base64" | "hex";
|
|
179
|
+
readonly scope: "composite" | "full-object";
|
|
180
|
+
readonly value: string;
|
|
181
|
+
readonly partCount?: number | undefined;
|
|
182
|
+
}[] | undefined;
|
|
183
|
+
readonly storageClass?: string | undefined;
|
|
184
|
+
}, StorageError, never>;
|
|
185
|
+
offsets: OffsetUploads;
|
|
186
|
+
putObject: <E = never, R = never>(request: PutRequest<E, R>, conditions?: GcsPreconditions) => Effect.Effect<{
|
|
187
|
+
readonly contentType?: string | undefined;
|
|
188
|
+
readonly contentEncoding?: string | undefined;
|
|
189
|
+
readonly contentLanguage?: string | undefined;
|
|
190
|
+
readonly contentDisposition?: string | undefined;
|
|
191
|
+
readonly cacheControl?: string | undefined;
|
|
192
|
+
readonly customMetadata?: {
|
|
193
|
+
readonly [x: string]: string;
|
|
194
|
+
} | undefined;
|
|
195
|
+
readonly ref: {
|
|
196
|
+
readonly storeId: string;
|
|
197
|
+
readonly key: string;
|
|
198
|
+
readonly version?: {
|
|
199
|
+
readonly _tag: "S3Version";
|
|
200
|
+
readonly id: string;
|
|
201
|
+
} | {
|
|
202
|
+
readonly _tag: "GcsGeneration";
|
|
203
|
+
readonly id: string;
|
|
204
|
+
readonly metageneration?: string | undefined;
|
|
205
|
+
} | {
|
|
206
|
+
readonly _tag: "AzureVersion";
|
|
207
|
+
readonly id: string;
|
|
208
|
+
} | {
|
|
209
|
+
readonly _tag: "AzureSnapshot";
|
|
210
|
+
readonly id: string;
|
|
211
|
+
} | {
|
|
212
|
+
readonly _tag: "OpaqueVersion";
|
|
213
|
+
readonly provider: string;
|
|
214
|
+
readonly id: string;
|
|
215
|
+
} | undefined;
|
|
216
|
+
};
|
|
217
|
+
readonly size?: number | undefined;
|
|
218
|
+
readonly etag?: string | undefined;
|
|
219
|
+
readonly lastModified?: import("effect/DateTime").Utc | undefined;
|
|
220
|
+
readonly checksums?: readonly {
|
|
221
|
+
readonly algorithm: string;
|
|
222
|
+
readonly encoding: "base64" | "hex";
|
|
223
|
+
readonly scope: "composite" | "full-object";
|
|
224
|
+
readonly value: string;
|
|
225
|
+
readonly partCount?: number | undefined;
|
|
226
|
+
}[] | undefined;
|
|
227
|
+
readonly storageClass?: string | undefined;
|
|
228
|
+
}, E | StorageError, R>;
|
|
229
|
+
};
|
|
230
|
+
export type GcsStorageService = ReturnType<typeof assemble>;
|
|
231
|
+
declare const GcsStorage_base: Context.ServiceClass<GcsStorage, "@effect-kit/storage/gcs/GcsStorage", {
|
|
232
|
+
provider: string;
|
|
233
|
+
storeId: string;
|
|
234
|
+
capabilities: StorageCapabilities;
|
|
235
|
+
put: <E = never, R = never>(request: PutRequest<E, R>) => Effect.Effect<ObjectMetadata, StorageError | E, R>;
|
|
236
|
+
get: (request: GetRequest) => Effect.Effect<GetResult, StorageError, import("effect/Scope").Scope>;
|
|
237
|
+
head: (request: HeadRequest) => Effect.Effect<ObjectMetadata, StorageError>;
|
|
238
|
+
delete: (request: DeleteRequest) => Effect.Effect<void, StorageError>;
|
|
239
|
+
listPage: (request?: ListRequest) => Effect.Effect<ListPage, StorageError>;
|
|
240
|
+
client: Storage;
|
|
241
|
+
config: ResolvedGcsConfig;
|
|
242
|
+
updateMetadata: (request: {
|
|
243
|
+
readonly ref: ObjectRef;
|
|
244
|
+
readonly headers: ObjectHeaders;
|
|
245
|
+
readonly preconditions?: GcsPreconditions;
|
|
246
|
+
}) => Effect.Effect<{
|
|
247
|
+
readonly contentType?: string | undefined;
|
|
248
|
+
readonly contentEncoding?: string | undefined;
|
|
249
|
+
readonly contentLanguage?: string | undefined;
|
|
250
|
+
readonly contentDisposition?: string | undefined;
|
|
251
|
+
readonly cacheControl?: string | undefined;
|
|
252
|
+
readonly customMetadata?: {
|
|
253
|
+
readonly [x: string]: string;
|
|
254
|
+
} | undefined;
|
|
255
|
+
readonly ref: {
|
|
256
|
+
readonly storeId: string;
|
|
257
|
+
readonly key: string;
|
|
258
|
+
readonly version?: {
|
|
259
|
+
readonly _tag: "S3Version";
|
|
260
|
+
readonly id: string;
|
|
261
|
+
} | {
|
|
262
|
+
readonly _tag: "GcsGeneration";
|
|
263
|
+
readonly id: string;
|
|
264
|
+
readonly metageneration?: string | undefined;
|
|
265
|
+
} | {
|
|
266
|
+
readonly _tag: "AzureVersion";
|
|
267
|
+
readonly id: string;
|
|
268
|
+
} | {
|
|
269
|
+
readonly _tag: "AzureSnapshot";
|
|
270
|
+
readonly id: string;
|
|
271
|
+
} | {
|
|
272
|
+
readonly _tag: "OpaqueVersion";
|
|
273
|
+
readonly provider: string;
|
|
274
|
+
readonly id: string;
|
|
275
|
+
} | undefined;
|
|
276
|
+
};
|
|
277
|
+
readonly size?: number | undefined;
|
|
278
|
+
readonly etag?: string | undefined;
|
|
279
|
+
readonly lastModified?: import("effect/DateTime").Utc | undefined;
|
|
280
|
+
readonly checksums?: readonly {
|
|
281
|
+
readonly algorithm: string;
|
|
282
|
+
readonly encoding: "base64" | "hex";
|
|
283
|
+
readonly scope: "composite" | "full-object";
|
|
284
|
+
readonly value: string;
|
|
285
|
+
readonly partCount?: number | undefined;
|
|
286
|
+
}[] | undefined;
|
|
287
|
+
readonly storageClass?: string | undefined;
|
|
288
|
+
}, StorageError, never>;
|
|
289
|
+
deleteGeneration: (request: {
|
|
290
|
+
readonly ref: ObjectRef;
|
|
291
|
+
readonly preconditions?: GcsPreconditions;
|
|
292
|
+
}) => Effect.Effect<void, StorageError, never>;
|
|
293
|
+
rewrite: (request: {
|
|
294
|
+
readonly source: ObjectRef;
|
|
295
|
+
readonly destinationKey: string;
|
|
296
|
+
readonly headers?: ObjectHeaders;
|
|
297
|
+
readonly preconditions?: GcsPreconditions;
|
|
298
|
+
readonly token?: string;
|
|
299
|
+
readonly storageClass?: "STANDARD" | "NEARLINE" | "COLDLINE" | "ARCHIVE";
|
|
300
|
+
}) => Effect.Effect<{
|
|
301
|
+
_tag: "Completed";
|
|
302
|
+
metadata: {
|
|
303
|
+
readonly contentType?: string | undefined;
|
|
304
|
+
readonly contentEncoding?: string | undefined;
|
|
305
|
+
readonly contentLanguage?: string | undefined;
|
|
306
|
+
readonly contentDisposition?: string | undefined;
|
|
307
|
+
readonly cacheControl?: string | undefined;
|
|
308
|
+
readonly customMetadata?: {
|
|
309
|
+
readonly [x: string]: string;
|
|
310
|
+
} | undefined;
|
|
311
|
+
readonly ref: {
|
|
312
|
+
readonly storeId: string;
|
|
313
|
+
readonly key: string;
|
|
314
|
+
readonly version?: {
|
|
315
|
+
readonly _tag: "S3Version";
|
|
316
|
+
readonly id: string;
|
|
317
|
+
} | {
|
|
318
|
+
readonly _tag: "GcsGeneration";
|
|
319
|
+
readonly id: string;
|
|
320
|
+
readonly metageneration?: string | undefined;
|
|
321
|
+
} | {
|
|
322
|
+
readonly _tag: "AzureVersion";
|
|
323
|
+
readonly id: string;
|
|
324
|
+
} | {
|
|
325
|
+
readonly _tag: "AzureSnapshot";
|
|
326
|
+
readonly id: string;
|
|
327
|
+
} | {
|
|
328
|
+
readonly _tag: "OpaqueVersion";
|
|
329
|
+
readonly provider: string;
|
|
330
|
+
readonly id: string;
|
|
331
|
+
} | undefined;
|
|
332
|
+
};
|
|
333
|
+
readonly size?: number | undefined;
|
|
334
|
+
readonly etag?: string | undefined;
|
|
335
|
+
readonly lastModified?: import("effect/DateTime").Utc | undefined;
|
|
336
|
+
readonly checksums?: readonly {
|
|
337
|
+
readonly algorithm: string;
|
|
338
|
+
readonly encoding: "base64" | "hex";
|
|
339
|
+
readonly scope: "composite" | "full-object";
|
|
340
|
+
readonly value: string;
|
|
341
|
+
readonly partCount?: number | undefined;
|
|
342
|
+
}[] | undefined;
|
|
343
|
+
readonly storageClass?: string | undefined;
|
|
344
|
+
};
|
|
345
|
+
token?: never;
|
|
346
|
+
bytesRewritten?: never;
|
|
347
|
+
objectSize?: never;
|
|
348
|
+
} | {
|
|
349
|
+
metadata?: never;
|
|
350
|
+
_tag: "Pending";
|
|
351
|
+
token: string | undefined;
|
|
352
|
+
bytesRewritten: string;
|
|
353
|
+
objectSize: string;
|
|
354
|
+
}, StorageError, never>;
|
|
355
|
+
compose: (request: {
|
|
356
|
+
readonly sources: ReadonlyArray<ObjectRef>;
|
|
357
|
+
readonly destinationKey: string;
|
|
358
|
+
readonly headers?: ObjectHeaders;
|
|
359
|
+
readonly preconditions?: GcsPreconditions;
|
|
360
|
+
}) => Effect.Effect<{
|
|
361
|
+
readonly contentType?: string | undefined;
|
|
362
|
+
readonly contentEncoding?: string | undefined;
|
|
363
|
+
readonly contentLanguage?: string | undefined;
|
|
364
|
+
readonly contentDisposition?: string | undefined;
|
|
365
|
+
readonly cacheControl?: string | undefined;
|
|
366
|
+
readonly customMetadata?: {
|
|
367
|
+
readonly [x: string]: string;
|
|
368
|
+
} | undefined;
|
|
369
|
+
readonly ref: {
|
|
370
|
+
readonly storeId: string;
|
|
371
|
+
readonly key: string;
|
|
372
|
+
readonly version?: {
|
|
373
|
+
readonly _tag: "S3Version";
|
|
374
|
+
readonly id: string;
|
|
375
|
+
} | {
|
|
376
|
+
readonly _tag: "GcsGeneration";
|
|
377
|
+
readonly id: string;
|
|
378
|
+
readonly metageneration?: string | undefined;
|
|
379
|
+
} | {
|
|
380
|
+
readonly _tag: "AzureVersion";
|
|
381
|
+
readonly id: string;
|
|
382
|
+
} | {
|
|
383
|
+
readonly _tag: "AzureSnapshot";
|
|
384
|
+
readonly id: string;
|
|
385
|
+
} | {
|
|
386
|
+
readonly _tag: "OpaqueVersion";
|
|
387
|
+
readonly provider: string;
|
|
388
|
+
readonly id: string;
|
|
389
|
+
} | undefined;
|
|
390
|
+
};
|
|
391
|
+
readonly size?: number | undefined;
|
|
392
|
+
readonly etag?: string | undefined;
|
|
393
|
+
readonly lastModified?: import("effect/DateTime").Utc | undefined;
|
|
394
|
+
readonly checksums?: readonly {
|
|
395
|
+
readonly algorithm: string;
|
|
396
|
+
readonly encoding: "base64" | "hex";
|
|
397
|
+
readonly scope: "composite" | "full-object";
|
|
398
|
+
readonly value: string;
|
|
399
|
+
readonly partCount?: number | undefined;
|
|
400
|
+
}[] | undefined;
|
|
401
|
+
readonly storageClass?: string | undefined;
|
|
402
|
+
}, StorageError, never>;
|
|
403
|
+
offsets: OffsetUploads;
|
|
404
|
+
putObject: <E = never, R = never>(request: PutRequest<E, R>, conditions?: GcsPreconditions) => Effect.Effect<{
|
|
405
|
+
readonly contentType?: string | undefined;
|
|
406
|
+
readonly contentEncoding?: string | undefined;
|
|
407
|
+
readonly contentLanguage?: string | undefined;
|
|
408
|
+
readonly contentDisposition?: string | undefined;
|
|
409
|
+
readonly cacheControl?: string | undefined;
|
|
410
|
+
readonly customMetadata?: {
|
|
411
|
+
readonly [x: string]: string;
|
|
412
|
+
} | undefined;
|
|
413
|
+
readonly ref: {
|
|
414
|
+
readonly storeId: string;
|
|
415
|
+
readonly key: string;
|
|
416
|
+
readonly version?: {
|
|
417
|
+
readonly _tag: "S3Version";
|
|
418
|
+
readonly id: string;
|
|
419
|
+
} | {
|
|
420
|
+
readonly _tag: "GcsGeneration";
|
|
421
|
+
readonly id: string;
|
|
422
|
+
readonly metageneration?: string | undefined;
|
|
423
|
+
} | {
|
|
424
|
+
readonly _tag: "AzureVersion";
|
|
425
|
+
readonly id: string;
|
|
426
|
+
} | {
|
|
427
|
+
readonly _tag: "AzureSnapshot";
|
|
428
|
+
readonly id: string;
|
|
429
|
+
} | {
|
|
430
|
+
readonly _tag: "OpaqueVersion";
|
|
431
|
+
readonly provider: string;
|
|
432
|
+
readonly id: string;
|
|
433
|
+
} | undefined;
|
|
434
|
+
};
|
|
435
|
+
readonly size?: number | undefined;
|
|
436
|
+
readonly etag?: string | undefined;
|
|
437
|
+
readonly lastModified?: import("effect/DateTime").Utc | undefined;
|
|
438
|
+
readonly checksums?: readonly {
|
|
439
|
+
readonly algorithm: string;
|
|
440
|
+
readonly encoding: "base64" | "hex";
|
|
441
|
+
readonly scope: "composite" | "full-object";
|
|
442
|
+
readonly value: string;
|
|
443
|
+
readonly partCount?: number | undefined;
|
|
444
|
+
}[] | undefined;
|
|
445
|
+
readonly storageClass?: string | undefined;
|
|
446
|
+
}, E | StorageError, R>;
|
|
447
|
+
}>;
|
|
448
|
+
export declare class GcsStorage extends GcsStorage_base {
|
|
449
|
+
static readonly make: (input: GcsConfig) => Effect.Effect<{
|
|
450
|
+
provider: string;
|
|
451
|
+
storeId: string;
|
|
452
|
+
capabilities: StorageCapabilities;
|
|
453
|
+
put: <E = never, R = never>(request: PutRequest<E, R>) => Effect.Effect<ObjectMetadata, StorageError | E, R>;
|
|
454
|
+
get: (request: GetRequest) => Effect.Effect<GetResult, StorageError, import("effect/Scope").Scope>;
|
|
455
|
+
head: (request: HeadRequest) => Effect.Effect<ObjectMetadata, StorageError>;
|
|
456
|
+
delete: (request: DeleteRequest) => Effect.Effect<void, StorageError>;
|
|
457
|
+
listPage: (request?: ListRequest) => Effect.Effect<ListPage, StorageError>;
|
|
458
|
+
client: Storage;
|
|
459
|
+
config: ResolvedGcsConfig;
|
|
460
|
+
updateMetadata: (request: {
|
|
461
|
+
readonly ref: ObjectRef;
|
|
462
|
+
readonly headers: ObjectHeaders;
|
|
463
|
+
readonly preconditions?: GcsPreconditions;
|
|
464
|
+
}) => Effect.Effect<{
|
|
465
|
+
readonly contentType?: string | undefined;
|
|
466
|
+
readonly contentEncoding?: string | undefined;
|
|
467
|
+
readonly contentLanguage?: string | undefined;
|
|
468
|
+
readonly contentDisposition?: string | undefined;
|
|
469
|
+
readonly cacheControl?: string | undefined;
|
|
470
|
+
readonly customMetadata?: {
|
|
471
|
+
readonly [x: string]: string;
|
|
472
|
+
} | undefined;
|
|
473
|
+
readonly ref: {
|
|
474
|
+
readonly storeId: string;
|
|
475
|
+
readonly key: string;
|
|
476
|
+
readonly version?: {
|
|
477
|
+
readonly _tag: "S3Version";
|
|
478
|
+
readonly id: string;
|
|
479
|
+
} | {
|
|
480
|
+
readonly _tag: "GcsGeneration";
|
|
481
|
+
readonly id: string;
|
|
482
|
+
readonly metageneration?: string | undefined;
|
|
483
|
+
} | {
|
|
484
|
+
readonly _tag: "AzureVersion";
|
|
485
|
+
readonly id: string;
|
|
486
|
+
} | {
|
|
487
|
+
readonly _tag: "AzureSnapshot";
|
|
488
|
+
readonly id: string;
|
|
489
|
+
} | {
|
|
490
|
+
readonly _tag: "OpaqueVersion";
|
|
491
|
+
readonly provider: string;
|
|
492
|
+
readonly id: string;
|
|
493
|
+
} | undefined;
|
|
494
|
+
};
|
|
495
|
+
readonly size?: number | undefined;
|
|
496
|
+
readonly etag?: string | undefined;
|
|
497
|
+
readonly lastModified?: import("effect/DateTime").Utc | undefined;
|
|
498
|
+
readonly checksums?: readonly {
|
|
499
|
+
readonly algorithm: string;
|
|
500
|
+
readonly encoding: "base64" | "hex";
|
|
501
|
+
readonly scope: "composite" | "full-object";
|
|
502
|
+
readonly value: string;
|
|
503
|
+
readonly partCount?: number | undefined;
|
|
504
|
+
}[] | undefined;
|
|
505
|
+
readonly storageClass?: string | undefined;
|
|
506
|
+
}, StorageError, never>;
|
|
507
|
+
deleteGeneration: (request: {
|
|
508
|
+
readonly ref: ObjectRef;
|
|
509
|
+
readonly preconditions?: GcsPreconditions;
|
|
510
|
+
}) => Effect.Effect<void, StorageError, never>;
|
|
511
|
+
rewrite: (request: {
|
|
512
|
+
readonly source: ObjectRef;
|
|
513
|
+
readonly destinationKey: string;
|
|
514
|
+
readonly headers?: ObjectHeaders;
|
|
515
|
+
readonly preconditions?: GcsPreconditions;
|
|
516
|
+
readonly token?: string;
|
|
517
|
+
readonly storageClass?: "STANDARD" | "NEARLINE" | "COLDLINE" | "ARCHIVE";
|
|
518
|
+
}) => Effect.Effect<{
|
|
519
|
+
_tag: "Completed";
|
|
520
|
+
metadata: {
|
|
521
|
+
readonly contentType?: string | undefined;
|
|
522
|
+
readonly contentEncoding?: string | undefined;
|
|
523
|
+
readonly contentLanguage?: string | undefined;
|
|
524
|
+
readonly contentDisposition?: string | undefined;
|
|
525
|
+
readonly cacheControl?: string | undefined;
|
|
526
|
+
readonly customMetadata?: {
|
|
527
|
+
readonly [x: string]: string;
|
|
528
|
+
} | undefined;
|
|
529
|
+
readonly ref: {
|
|
530
|
+
readonly storeId: string;
|
|
531
|
+
readonly key: string;
|
|
532
|
+
readonly version?: {
|
|
533
|
+
readonly _tag: "S3Version";
|
|
534
|
+
readonly id: string;
|
|
535
|
+
} | {
|
|
536
|
+
readonly _tag: "GcsGeneration";
|
|
537
|
+
readonly id: string;
|
|
538
|
+
readonly metageneration?: string | undefined;
|
|
539
|
+
} | {
|
|
540
|
+
readonly _tag: "AzureVersion";
|
|
541
|
+
readonly id: string;
|
|
542
|
+
} | {
|
|
543
|
+
readonly _tag: "AzureSnapshot";
|
|
544
|
+
readonly id: string;
|
|
545
|
+
} | {
|
|
546
|
+
readonly _tag: "OpaqueVersion";
|
|
547
|
+
readonly provider: string;
|
|
548
|
+
readonly id: string;
|
|
549
|
+
} | undefined;
|
|
550
|
+
};
|
|
551
|
+
readonly size?: number | undefined;
|
|
552
|
+
readonly etag?: string | undefined;
|
|
553
|
+
readonly lastModified?: import("effect/DateTime").Utc | undefined;
|
|
554
|
+
readonly checksums?: readonly {
|
|
555
|
+
readonly algorithm: string;
|
|
556
|
+
readonly encoding: "base64" | "hex";
|
|
557
|
+
readonly scope: "composite" | "full-object";
|
|
558
|
+
readonly value: string;
|
|
559
|
+
readonly partCount?: number | undefined;
|
|
560
|
+
}[] | undefined;
|
|
561
|
+
readonly storageClass?: string | undefined;
|
|
562
|
+
};
|
|
563
|
+
token?: never;
|
|
564
|
+
bytesRewritten?: never;
|
|
565
|
+
objectSize?: never;
|
|
566
|
+
} | {
|
|
567
|
+
metadata?: never;
|
|
568
|
+
_tag: "Pending";
|
|
569
|
+
token: string | undefined;
|
|
570
|
+
bytesRewritten: string;
|
|
571
|
+
objectSize: string;
|
|
572
|
+
}, StorageError, never>;
|
|
573
|
+
compose: (request: {
|
|
574
|
+
readonly sources: ReadonlyArray<ObjectRef>;
|
|
575
|
+
readonly destinationKey: string;
|
|
576
|
+
readonly headers?: ObjectHeaders;
|
|
577
|
+
readonly preconditions?: GcsPreconditions;
|
|
578
|
+
}) => Effect.Effect<{
|
|
579
|
+
readonly contentType?: string | undefined;
|
|
580
|
+
readonly contentEncoding?: string | undefined;
|
|
581
|
+
readonly contentLanguage?: string | undefined;
|
|
582
|
+
readonly contentDisposition?: string | undefined;
|
|
583
|
+
readonly cacheControl?: string | undefined;
|
|
584
|
+
readonly customMetadata?: {
|
|
585
|
+
readonly [x: string]: string;
|
|
586
|
+
} | undefined;
|
|
587
|
+
readonly ref: {
|
|
588
|
+
readonly storeId: string;
|
|
589
|
+
readonly key: string;
|
|
590
|
+
readonly version?: {
|
|
591
|
+
readonly _tag: "S3Version";
|
|
592
|
+
readonly id: string;
|
|
593
|
+
} | {
|
|
594
|
+
readonly _tag: "GcsGeneration";
|
|
595
|
+
readonly id: string;
|
|
596
|
+
readonly metageneration?: string | undefined;
|
|
597
|
+
} | {
|
|
598
|
+
readonly _tag: "AzureVersion";
|
|
599
|
+
readonly id: string;
|
|
600
|
+
} | {
|
|
601
|
+
readonly _tag: "AzureSnapshot";
|
|
602
|
+
readonly id: string;
|
|
603
|
+
} | {
|
|
604
|
+
readonly _tag: "OpaqueVersion";
|
|
605
|
+
readonly provider: string;
|
|
606
|
+
readonly id: string;
|
|
607
|
+
} | undefined;
|
|
608
|
+
};
|
|
609
|
+
readonly size?: number | undefined;
|
|
610
|
+
readonly etag?: string | undefined;
|
|
611
|
+
readonly lastModified?: import("effect/DateTime").Utc | undefined;
|
|
612
|
+
readonly checksums?: readonly {
|
|
613
|
+
readonly algorithm: string;
|
|
614
|
+
readonly encoding: "base64" | "hex";
|
|
615
|
+
readonly scope: "composite" | "full-object";
|
|
616
|
+
readonly value: string;
|
|
617
|
+
readonly partCount?: number | undefined;
|
|
618
|
+
}[] | undefined;
|
|
619
|
+
readonly storageClass?: string | undefined;
|
|
620
|
+
}, StorageError, never>;
|
|
621
|
+
offsets: OffsetUploads;
|
|
622
|
+
putObject: <E = never, R = never>(request: PutRequest<E, R>, conditions?: GcsPreconditions) => Effect.Effect<{
|
|
623
|
+
readonly contentType?: string | undefined;
|
|
624
|
+
readonly contentEncoding?: string | undefined;
|
|
625
|
+
readonly contentLanguage?: string | undefined;
|
|
626
|
+
readonly contentDisposition?: string | undefined;
|
|
627
|
+
readonly cacheControl?: string | undefined;
|
|
628
|
+
readonly customMetadata?: {
|
|
629
|
+
readonly [x: string]: string;
|
|
630
|
+
} | undefined;
|
|
631
|
+
readonly ref: {
|
|
632
|
+
readonly storeId: string;
|
|
633
|
+
readonly key: string;
|
|
634
|
+
readonly version?: {
|
|
635
|
+
readonly _tag: "S3Version";
|
|
636
|
+
readonly id: string;
|
|
637
|
+
} | {
|
|
638
|
+
readonly _tag: "GcsGeneration";
|
|
639
|
+
readonly id: string;
|
|
640
|
+
readonly metageneration?: string | undefined;
|
|
641
|
+
} | {
|
|
642
|
+
readonly _tag: "AzureVersion";
|
|
643
|
+
readonly id: string;
|
|
644
|
+
} | {
|
|
645
|
+
readonly _tag: "AzureSnapshot";
|
|
646
|
+
readonly id: string;
|
|
647
|
+
} | {
|
|
648
|
+
readonly _tag: "OpaqueVersion";
|
|
649
|
+
readonly provider: string;
|
|
650
|
+
readonly id: string;
|
|
651
|
+
} | undefined;
|
|
652
|
+
};
|
|
653
|
+
readonly size?: number | undefined;
|
|
654
|
+
readonly etag?: string | undefined;
|
|
655
|
+
readonly lastModified?: import("effect/DateTime").Utc | undefined;
|
|
656
|
+
readonly checksums?: readonly {
|
|
657
|
+
readonly algorithm: string;
|
|
658
|
+
readonly encoding: "base64" | "hex";
|
|
659
|
+
readonly scope: "composite" | "full-object";
|
|
660
|
+
readonly value: string;
|
|
661
|
+
readonly partCount?: number | undefined;
|
|
662
|
+
}[] | undefined;
|
|
663
|
+
readonly storageClass?: string | undefined;
|
|
664
|
+
}, E | StorageError, R>;
|
|
665
|
+
}, StorageError, never>;
|
|
666
|
+
static readonly makeClient: (client: Storage, input: GcsConfig) => Effect.Effect<{
|
|
667
|
+
provider: string;
|
|
668
|
+
storeId: string;
|
|
669
|
+
capabilities: StorageCapabilities;
|
|
670
|
+
put: <E = never, R = never>(request: PutRequest<E, R>) => Effect.Effect<ObjectMetadata, StorageError | E, R>;
|
|
671
|
+
get: (request: GetRequest) => Effect.Effect<GetResult, StorageError, import("effect/Scope").Scope>;
|
|
672
|
+
head: (request: HeadRequest) => Effect.Effect<ObjectMetadata, StorageError>;
|
|
673
|
+
delete: (request: DeleteRequest) => Effect.Effect<void, StorageError>;
|
|
674
|
+
listPage: (request?: ListRequest) => Effect.Effect<ListPage, StorageError>;
|
|
675
|
+
client: Storage;
|
|
676
|
+
config: ResolvedGcsConfig;
|
|
677
|
+
updateMetadata: (request: {
|
|
678
|
+
readonly ref: ObjectRef;
|
|
679
|
+
readonly headers: ObjectHeaders;
|
|
680
|
+
readonly preconditions?: GcsPreconditions;
|
|
681
|
+
}) => Effect.Effect<{
|
|
682
|
+
readonly contentType?: string | undefined;
|
|
683
|
+
readonly contentEncoding?: string | undefined;
|
|
684
|
+
readonly contentLanguage?: string | undefined;
|
|
685
|
+
readonly contentDisposition?: string | undefined;
|
|
686
|
+
readonly cacheControl?: string | undefined;
|
|
687
|
+
readonly customMetadata?: {
|
|
688
|
+
readonly [x: string]: string;
|
|
689
|
+
} | undefined;
|
|
690
|
+
readonly ref: {
|
|
691
|
+
readonly storeId: string;
|
|
692
|
+
readonly key: string;
|
|
693
|
+
readonly version?: {
|
|
694
|
+
readonly _tag: "S3Version";
|
|
695
|
+
readonly id: string;
|
|
696
|
+
} | {
|
|
697
|
+
readonly _tag: "GcsGeneration";
|
|
698
|
+
readonly id: string;
|
|
699
|
+
readonly metageneration?: string | undefined;
|
|
700
|
+
} | {
|
|
701
|
+
readonly _tag: "AzureVersion";
|
|
702
|
+
readonly id: string;
|
|
703
|
+
} | {
|
|
704
|
+
readonly _tag: "AzureSnapshot";
|
|
705
|
+
readonly id: string;
|
|
706
|
+
} | {
|
|
707
|
+
readonly _tag: "OpaqueVersion";
|
|
708
|
+
readonly provider: string;
|
|
709
|
+
readonly id: string;
|
|
710
|
+
} | undefined;
|
|
711
|
+
};
|
|
712
|
+
readonly size?: number | undefined;
|
|
713
|
+
readonly etag?: string | undefined;
|
|
714
|
+
readonly lastModified?: import("effect/DateTime").Utc | undefined;
|
|
715
|
+
readonly checksums?: readonly {
|
|
716
|
+
readonly algorithm: string;
|
|
717
|
+
readonly encoding: "base64" | "hex";
|
|
718
|
+
readonly scope: "composite" | "full-object";
|
|
719
|
+
readonly value: string;
|
|
720
|
+
readonly partCount?: number | undefined;
|
|
721
|
+
}[] | undefined;
|
|
722
|
+
readonly storageClass?: string | undefined;
|
|
723
|
+
}, StorageError, never>;
|
|
724
|
+
deleteGeneration: (request: {
|
|
725
|
+
readonly ref: ObjectRef;
|
|
726
|
+
readonly preconditions?: GcsPreconditions;
|
|
727
|
+
}) => Effect.Effect<void, StorageError, never>;
|
|
728
|
+
rewrite: (request: {
|
|
729
|
+
readonly source: ObjectRef;
|
|
730
|
+
readonly destinationKey: string;
|
|
731
|
+
readonly headers?: ObjectHeaders;
|
|
732
|
+
readonly preconditions?: GcsPreconditions;
|
|
733
|
+
readonly token?: string;
|
|
734
|
+
readonly storageClass?: "STANDARD" | "NEARLINE" | "COLDLINE" | "ARCHIVE";
|
|
735
|
+
}) => Effect.Effect<{
|
|
736
|
+
_tag: "Completed";
|
|
737
|
+
metadata: {
|
|
738
|
+
readonly contentType?: string | undefined;
|
|
739
|
+
readonly contentEncoding?: string | undefined;
|
|
740
|
+
readonly contentLanguage?: string | undefined;
|
|
741
|
+
readonly contentDisposition?: string | undefined;
|
|
742
|
+
readonly cacheControl?: string | undefined;
|
|
743
|
+
readonly customMetadata?: {
|
|
744
|
+
readonly [x: string]: string;
|
|
745
|
+
} | undefined;
|
|
746
|
+
readonly ref: {
|
|
747
|
+
readonly storeId: string;
|
|
748
|
+
readonly key: string;
|
|
749
|
+
readonly version?: {
|
|
750
|
+
readonly _tag: "S3Version";
|
|
751
|
+
readonly id: string;
|
|
752
|
+
} | {
|
|
753
|
+
readonly _tag: "GcsGeneration";
|
|
754
|
+
readonly id: string;
|
|
755
|
+
readonly metageneration?: string | undefined;
|
|
756
|
+
} | {
|
|
757
|
+
readonly _tag: "AzureVersion";
|
|
758
|
+
readonly id: string;
|
|
759
|
+
} | {
|
|
760
|
+
readonly _tag: "AzureSnapshot";
|
|
761
|
+
readonly id: string;
|
|
762
|
+
} | {
|
|
763
|
+
readonly _tag: "OpaqueVersion";
|
|
764
|
+
readonly provider: string;
|
|
765
|
+
readonly id: string;
|
|
766
|
+
} | undefined;
|
|
767
|
+
};
|
|
768
|
+
readonly size?: number | undefined;
|
|
769
|
+
readonly etag?: string | undefined;
|
|
770
|
+
readonly lastModified?: import("effect/DateTime").Utc | undefined;
|
|
771
|
+
readonly checksums?: readonly {
|
|
772
|
+
readonly algorithm: string;
|
|
773
|
+
readonly encoding: "base64" | "hex";
|
|
774
|
+
readonly scope: "composite" | "full-object";
|
|
775
|
+
readonly value: string;
|
|
776
|
+
readonly partCount?: number | undefined;
|
|
777
|
+
}[] | undefined;
|
|
778
|
+
readonly storageClass?: string | undefined;
|
|
779
|
+
};
|
|
780
|
+
token?: never;
|
|
781
|
+
bytesRewritten?: never;
|
|
782
|
+
objectSize?: never;
|
|
783
|
+
} | {
|
|
784
|
+
metadata?: never;
|
|
785
|
+
_tag: "Pending";
|
|
786
|
+
token: string | undefined;
|
|
787
|
+
bytesRewritten: string;
|
|
788
|
+
objectSize: string;
|
|
789
|
+
}, StorageError, never>;
|
|
790
|
+
compose: (request: {
|
|
791
|
+
readonly sources: ReadonlyArray<ObjectRef>;
|
|
792
|
+
readonly destinationKey: string;
|
|
793
|
+
readonly headers?: ObjectHeaders;
|
|
794
|
+
readonly preconditions?: GcsPreconditions;
|
|
795
|
+
}) => Effect.Effect<{
|
|
796
|
+
readonly contentType?: string | undefined;
|
|
797
|
+
readonly contentEncoding?: string | undefined;
|
|
798
|
+
readonly contentLanguage?: string | undefined;
|
|
799
|
+
readonly contentDisposition?: string | undefined;
|
|
800
|
+
readonly cacheControl?: string | undefined;
|
|
801
|
+
readonly customMetadata?: {
|
|
802
|
+
readonly [x: string]: string;
|
|
803
|
+
} | undefined;
|
|
804
|
+
readonly ref: {
|
|
805
|
+
readonly storeId: string;
|
|
806
|
+
readonly key: string;
|
|
807
|
+
readonly version?: {
|
|
808
|
+
readonly _tag: "S3Version";
|
|
809
|
+
readonly id: string;
|
|
810
|
+
} | {
|
|
811
|
+
readonly _tag: "GcsGeneration";
|
|
812
|
+
readonly id: string;
|
|
813
|
+
readonly metageneration?: string | undefined;
|
|
814
|
+
} | {
|
|
815
|
+
readonly _tag: "AzureVersion";
|
|
816
|
+
readonly id: string;
|
|
817
|
+
} | {
|
|
818
|
+
readonly _tag: "AzureSnapshot";
|
|
819
|
+
readonly id: string;
|
|
820
|
+
} | {
|
|
821
|
+
readonly _tag: "OpaqueVersion";
|
|
822
|
+
readonly provider: string;
|
|
823
|
+
readonly id: string;
|
|
824
|
+
} | undefined;
|
|
825
|
+
};
|
|
826
|
+
readonly size?: number | undefined;
|
|
827
|
+
readonly etag?: string | undefined;
|
|
828
|
+
readonly lastModified?: import("effect/DateTime").Utc | undefined;
|
|
829
|
+
readonly checksums?: readonly {
|
|
830
|
+
readonly algorithm: string;
|
|
831
|
+
readonly encoding: "base64" | "hex";
|
|
832
|
+
readonly scope: "composite" | "full-object";
|
|
833
|
+
readonly value: string;
|
|
834
|
+
readonly partCount?: number | undefined;
|
|
835
|
+
}[] | undefined;
|
|
836
|
+
readonly storageClass?: string | undefined;
|
|
837
|
+
}, StorageError, never>;
|
|
838
|
+
offsets: OffsetUploads;
|
|
839
|
+
putObject: <E = never, R = never>(request: PutRequest<E, R>, conditions?: GcsPreconditions) => Effect.Effect<{
|
|
840
|
+
readonly contentType?: string | undefined;
|
|
841
|
+
readonly contentEncoding?: string | undefined;
|
|
842
|
+
readonly contentLanguage?: string | undefined;
|
|
843
|
+
readonly contentDisposition?: string | undefined;
|
|
844
|
+
readonly cacheControl?: string | undefined;
|
|
845
|
+
readonly customMetadata?: {
|
|
846
|
+
readonly [x: string]: string;
|
|
847
|
+
} | undefined;
|
|
848
|
+
readonly ref: {
|
|
849
|
+
readonly storeId: string;
|
|
850
|
+
readonly key: string;
|
|
851
|
+
readonly version?: {
|
|
852
|
+
readonly _tag: "S3Version";
|
|
853
|
+
readonly id: string;
|
|
854
|
+
} | {
|
|
855
|
+
readonly _tag: "GcsGeneration";
|
|
856
|
+
readonly id: string;
|
|
857
|
+
readonly metageneration?: string | undefined;
|
|
858
|
+
} | {
|
|
859
|
+
readonly _tag: "AzureVersion";
|
|
860
|
+
readonly id: string;
|
|
861
|
+
} | {
|
|
862
|
+
readonly _tag: "AzureSnapshot";
|
|
863
|
+
readonly id: string;
|
|
864
|
+
} | {
|
|
865
|
+
readonly _tag: "OpaqueVersion";
|
|
866
|
+
readonly provider: string;
|
|
867
|
+
readonly id: string;
|
|
868
|
+
} | undefined;
|
|
869
|
+
};
|
|
870
|
+
readonly size?: number | undefined;
|
|
871
|
+
readonly etag?: string | undefined;
|
|
872
|
+
readonly lastModified?: import("effect/DateTime").Utc | undefined;
|
|
873
|
+
readonly checksums?: readonly {
|
|
874
|
+
readonly algorithm: string;
|
|
875
|
+
readonly encoding: "base64" | "hex";
|
|
876
|
+
readonly scope: "composite" | "full-object";
|
|
877
|
+
readonly value: string;
|
|
878
|
+
readonly partCount?: number | undefined;
|
|
879
|
+
}[] | undefined;
|
|
880
|
+
readonly storageClass?: string | undefined;
|
|
881
|
+
}, E | StorageError, R>;
|
|
882
|
+
}, StorageError, never>;
|
|
883
|
+
static layer(config: GcsConfig): Layer.Layer<GcsStorage | Storage$1 | TransferDriver, StorageError, never>;
|
|
884
|
+
static layerClient(client: Storage, config: GcsConfig): Layer.Layer<GcsStorage | Storage$1 | TransferDriver, StorageError, never>;
|
|
885
|
+
static publicUrls(baseUrl?: string): Layer.Layer<StoragePublicUrls, StorageError, GcsStorage>;
|
|
886
|
+
}
|
|
887
|
+
export type { GcsConfig, GcsPreconditions };
|
|
888
|
+
//# sourceMappingURL=gcs.d.ts.map
|