@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
|
@@ -0,0 +1,590 @@
|
|
|
1
|
+
import { StorageError } from "./core/errors.js";
|
|
2
|
+
import { GetResult } from "./core/requests.js";
|
|
3
|
+
import { Storage } from "./core/storage.js";
|
|
4
|
+
import "./index.js";
|
|
5
|
+
import { UploadSource } from "./transfers/sources.js";
|
|
6
|
+
import { TransferPolicy } from "./transfers/models.js";
|
|
7
|
+
import { TransferDriver, TransferHash } from "./transfers/dependencies.js";
|
|
8
|
+
import "./transfers.js";
|
|
9
|
+
import { WorkflowStoreOptions } from "./workflows/store.js";
|
|
10
|
+
import { CollectionPlan, ContentId, ContentRecord } from "./workflows/content/schema.js";
|
|
11
|
+
import { Context, Effect, Layer, Schema } from "effect";
|
|
12
|
+
import { SecureRandom } from "effect/crypto";
|
|
13
|
+
declare const ContentReferenceStore_base: Context.ServiceClass<ContentReferenceStore, "@effect-kit/storage/ContentReferenceStore", {
|
|
14
|
+
exclusive: <A, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A, E | StorageError, R>;
|
|
15
|
+
read: <S extends Schema.Constraint>(id: string, schema: S) => Effect.Effect<S["Type"] | undefined, StorageError, S["DecodingServices"]>;
|
|
16
|
+
write: <S extends Schema.Constraint>(id: string, schema: S, value: S["Type"]) => Effect.Effect<undefined, StorageError, S["EncodingServices"]>;
|
|
17
|
+
}>;
|
|
18
|
+
export declare class ContentReferenceStore extends ContentReferenceStore_base {
|
|
19
|
+
static make(options: WorkflowStoreOptions): Effect.Effect<{
|
|
20
|
+
exclusive: <A, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A, E | StorageError, R>;
|
|
21
|
+
read: <S extends Schema.Constraint>(id: string, schema: S) => Effect.Effect<S["Type"] | undefined, StorageError, S["DecodingServices"]>;
|
|
22
|
+
write: <S extends Schema.Constraint>(id: string, schema: S, value: S["Type"]) => Effect.Effect<undefined, StorageError, S["EncodingServices"]>;
|
|
23
|
+
}, StorageError, import("effect/persistence/KeyValueStore").KeyValueStore>;
|
|
24
|
+
static layer(options: WorkflowStoreOptions): Layer.Layer<ContentReferenceStore, StorageError, import("effect/persistence/KeyValueStore").KeyValueStore>;
|
|
25
|
+
}
|
|
26
|
+
export interface ContentStoreOptions {
|
|
27
|
+
readonly configurationId: string;
|
|
28
|
+
readonly namespace: string;
|
|
29
|
+
readonly algorithm?: "sha256";
|
|
30
|
+
readonly maxBytes: number;
|
|
31
|
+
readonly minimumRetentionMillis?: number;
|
|
32
|
+
readonly transfer?: TransferPolicy;
|
|
33
|
+
}
|
|
34
|
+
declare const ContentStore_base: Context.ServiceClass<ContentStore, "@effect-kit/storage/ContentStore", {
|
|
35
|
+
put: <E = never, R = never>(request: {
|
|
36
|
+
readonly source: UploadSource<E, R>;
|
|
37
|
+
readonly reference?: string;
|
|
38
|
+
}) => Effect.Effect<{
|
|
39
|
+
id: string;
|
|
40
|
+
metadata: {
|
|
41
|
+
readonly contentType?: string | undefined;
|
|
42
|
+
readonly contentEncoding?: string | undefined;
|
|
43
|
+
readonly contentLanguage?: string | undefined;
|
|
44
|
+
readonly contentDisposition?: string | undefined;
|
|
45
|
+
readonly cacheControl?: string | undefined;
|
|
46
|
+
readonly customMetadata?: {
|
|
47
|
+
readonly [x: string]: string;
|
|
48
|
+
} | undefined;
|
|
49
|
+
readonly ref: {
|
|
50
|
+
readonly storeId: string;
|
|
51
|
+
readonly key: string;
|
|
52
|
+
readonly version?: {
|
|
53
|
+
readonly _tag: "S3Version";
|
|
54
|
+
readonly id: string;
|
|
55
|
+
} | {
|
|
56
|
+
readonly _tag: "GcsGeneration";
|
|
57
|
+
readonly id: string;
|
|
58
|
+
readonly metageneration?: string | undefined;
|
|
59
|
+
} | {
|
|
60
|
+
readonly _tag: "AzureVersion";
|
|
61
|
+
readonly id: string;
|
|
62
|
+
} | {
|
|
63
|
+
readonly _tag: "AzureSnapshot";
|
|
64
|
+
readonly id: string;
|
|
65
|
+
} | {
|
|
66
|
+
readonly _tag: "OpaqueVersion";
|
|
67
|
+
readonly provider: string;
|
|
68
|
+
readonly id: string;
|
|
69
|
+
} | undefined;
|
|
70
|
+
};
|
|
71
|
+
readonly size?: number | undefined;
|
|
72
|
+
readonly etag?: string | undefined;
|
|
73
|
+
readonly lastModified?: import("effect/DateTime").Utc | undefined;
|
|
74
|
+
readonly checksums?: readonly {
|
|
75
|
+
readonly algorithm: string;
|
|
76
|
+
readonly encoding: "base64" | "hex";
|
|
77
|
+
readonly scope: "composite" | "full-object";
|
|
78
|
+
readonly value: string;
|
|
79
|
+
readonly partCount?: number | undefined;
|
|
80
|
+
}[] | undefined;
|
|
81
|
+
readonly storageClass?: string | undefined;
|
|
82
|
+
};
|
|
83
|
+
size: number;
|
|
84
|
+
checksum: {
|
|
85
|
+
readonly algorithm: string;
|
|
86
|
+
readonly encoding: "base64" | "hex";
|
|
87
|
+
readonly scope: "composite" | "full-object";
|
|
88
|
+
readonly value: string;
|
|
89
|
+
readonly partCount?: number | undefined;
|
|
90
|
+
};
|
|
91
|
+
}, E | StorageError, Exclude<R, import("effect/Scope").Scope>>;
|
|
92
|
+
head: (id: string) => Effect.Effect<{
|
|
93
|
+
readonly contentType?: string | undefined;
|
|
94
|
+
readonly contentEncoding?: string | undefined;
|
|
95
|
+
readonly contentLanguage?: string | undefined;
|
|
96
|
+
readonly contentDisposition?: string | undefined;
|
|
97
|
+
readonly cacheControl?: string | undefined;
|
|
98
|
+
readonly customMetadata?: {
|
|
99
|
+
readonly [x: string]: string;
|
|
100
|
+
} | undefined;
|
|
101
|
+
readonly ref: {
|
|
102
|
+
readonly storeId: string;
|
|
103
|
+
readonly key: string;
|
|
104
|
+
readonly version?: {
|
|
105
|
+
readonly _tag: "S3Version";
|
|
106
|
+
readonly id: string;
|
|
107
|
+
} | {
|
|
108
|
+
readonly _tag: "GcsGeneration";
|
|
109
|
+
readonly id: string;
|
|
110
|
+
readonly metageneration?: string | undefined;
|
|
111
|
+
} | {
|
|
112
|
+
readonly _tag: "AzureVersion";
|
|
113
|
+
readonly id: string;
|
|
114
|
+
} | {
|
|
115
|
+
readonly _tag: "AzureSnapshot";
|
|
116
|
+
readonly id: string;
|
|
117
|
+
} | {
|
|
118
|
+
readonly _tag: "OpaqueVersion";
|
|
119
|
+
readonly provider: string;
|
|
120
|
+
readonly id: string;
|
|
121
|
+
} | undefined;
|
|
122
|
+
};
|
|
123
|
+
readonly size?: number | undefined;
|
|
124
|
+
readonly etag?: string | undefined;
|
|
125
|
+
readonly lastModified?: import("effect/DateTime").Utc | undefined;
|
|
126
|
+
readonly checksums?: readonly {
|
|
127
|
+
readonly algorithm: string;
|
|
128
|
+
readonly encoding: "base64" | "hex";
|
|
129
|
+
readonly scope: "composite" | "full-object";
|
|
130
|
+
readonly value: string;
|
|
131
|
+
readonly partCount?: number | undefined;
|
|
132
|
+
}[] | undefined;
|
|
133
|
+
readonly storageClass?: string | undefined;
|
|
134
|
+
}, StorageError, never>;
|
|
135
|
+
get: (id: string) => Effect.Effect<GetResult, StorageError, import("effect/Scope").Scope>;
|
|
136
|
+
status: (id: string) => Effect.Effect<{
|
|
137
|
+
readonly id: string;
|
|
138
|
+
readonly binding: string;
|
|
139
|
+
readonly generation: number;
|
|
140
|
+
readonly state: "deleted" | "deleting" | "ready" | "writing";
|
|
141
|
+
readonly size: number;
|
|
142
|
+
readonly createdAt: number;
|
|
143
|
+
readonly retainUntil: number;
|
|
144
|
+
readonly edgeCount: number;
|
|
145
|
+
readonly object?: {
|
|
146
|
+
readonly contentType?: string | undefined;
|
|
147
|
+
readonly contentEncoding?: string | undefined;
|
|
148
|
+
readonly contentLanguage?: string | undefined;
|
|
149
|
+
readonly contentDisposition?: string | undefined;
|
|
150
|
+
readonly cacheControl?: string | undefined;
|
|
151
|
+
readonly customMetadata?: {
|
|
152
|
+
readonly [x: string]: string;
|
|
153
|
+
} | undefined;
|
|
154
|
+
readonly ref: {
|
|
155
|
+
readonly storeId: string;
|
|
156
|
+
readonly key: string;
|
|
157
|
+
readonly version?: {
|
|
158
|
+
readonly _tag: "S3Version";
|
|
159
|
+
readonly id: string;
|
|
160
|
+
} | {
|
|
161
|
+
readonly _tag: "GcsGeneration";
|
|
162
|
+
readonly id: string;
|
|
163
|
+
readonly metageneration?: string | undefined;
|
|
164
|
+
} | {
|
|
165
|
+
readonly _tag: "AzureVersion";
|
|
166
|
+
readonly id: string;
|
|
167
|
+
} | {
|
|
168
|
+
readonly _tag: "AzureSnapshot";
|
|
169
|
+
readonly id: string;
|
|
170
|
+
} | {
|
|
171
|
+
readonly _tag: "OpaqueVersion";
|
|
172
|
+
readonly provider: string;
|
|
173
|
+
readonly id: string;
|
|
174
|
+
} | undefined;
|
|
175
|
+
};
|
|
176
|
+
readonly size?: number | undefined;
|
|
177
|
+
readonly etag?: string | undefined;
|
|
178
|
+
readonly lastModified?: import("effect/DateTime").Utc | undefined;
|
|
179
|
+
readonly checksums?: readonly {
|
|
180
|
+
readonly algorithm: string;
|
|
181
|
+
readonly encoding: "base64" | "hex";
|
|
182
|
+
readonly scope: "composite" | "full-object";
|
|
183
|
+
readonly value: string;
|
|
184
|
+
readonly partCount?: number | undefined;
|
|
185
|
+
}[] | undefined;
|
|
186
|
+
readonly storageClass?: string | undefined;
|
|
187
|
+
} | undefined;
|
|
188
|
+
}, StorageError, never>;
|
|
189
|
+
reconcile: (id: string) => Effect.Effect<{
|
|
190
|
+
readonly id: string;
|
|
191
|
+
readonly binding: string;
|
|
192
|
+
readonly generation: number;
|
|
193
|
+
readonly state: "deleted" | "deleting" | "ready" | "writing";
|
|
194
|
+
readonly size: number;
|
|
195
|
+
readonly createdAt: number;
|
|
196
|
+
readonly retainUntil: number;
|
|
197
|
+
readonly edgeCount: number;
|
|
198
|
+
readonly object?: {
|
|
199
|
+
readonly contentType?: string | undefined;
|
|
200
|
+
readonly contentEncoding?: string | undefined;
|
|
201
|
+
readonly contentLanguage?: string | undefined;
|
|
202
|
+
readonly contentDisposition?: string | undefined;
|
|
203
|
+
readonly cacheControl?: string | undefined;
|
|
204
|
+
readonly customMetadata?: {
|
|
205
|
+
readonly [x: string]: string;
|
|
206
|
+
} | undefined;
|
|
207
|
+
readonly ref: {
|
|
208
|
+
readonly storeId: string;
|
|
209
|
+
readonly key: string;
|
|
210
|
+
readonly version?: {
|
|
211
|
+
readonly _tag: "S3Version";
|
|
212
|
+
readonly id: string;
|
|
213
|
+
} | {
|
|
214
|
+
readonly _tag: "GcsGeneration";
|
|
215
|
+
readonly id: string;
|
|
216
|
+
readonly metageneration?: string | undefined;
|
|
217
|
+
} | {
|
|
218
|
+
readonly _tag: "AzureVersion";
|
|
219
|
+
readonly id: string;
|
|
220
|
+
} | {
|
|
221
|
+
readonly _tag: "AzureSnapshot";
|
|
222
|
+
readonly id: string;
|
|
223
|
+
} | {
|
|
224
|
+
readonly _tag: "OpaqueVersion";
|
|
225
|
+
readonly provider: string;
|
|
226
|
+
readonly id: string;
|
|
227
|
+
} | undefined;
|
|
228
|
+
};
|
|
229
|
+
readonly size?: number | undefined;
|
|
230
|
+
readonly etag?: string | undefined;
|
|
231
|
+
readonly lastModified?: import("effect/DateTime").Utc | undefined;
|
|
232
|
+
readonly checksums?: readonly {
|
|
233
|
+
readonly algorithm: string;
|
|
234
|
+
readonly encoding: "base64" | "hex";
|
|
235
|
+
readonly scope: "composite" | "full-object";
|
|
236
|
+
readonly value: string;
|
|
237
|
+
readonly partCount?: number | undefined;
|
|
238
|
+
}[] | undefined;
|
|
239
|
+
readonly storageClass?: string | undefined;
|
|
240
|
+
} | undefined;
|
|
241
|
+
}, StorageError, never>;
|
|
242
|
+
attach: (request: {
|
|
243
|
+
readonly contentId: string;
|
|
244
|
+
readonly reference: string;
|
|
245
|
+
readonly replace?: boolean;
|
|
246
|
+
}) => Effect.Effect<{
|
|
247
|
+
readonly reference: string;
|
|
248
|
+
readonly intentId: string;
|
|
249
|
+
readonly contentId?: string | undefined;
|
|
250
|
+
}, StorageError, never>;
|
|
251
|
+
detach: (request: {
|
|
252
|
+
readonly reference: string;
|
|
253
|
+
}) => Effect.Effect<{
|
|
254
|
+
readonly reference: string;
|
|
255
|
+
readonly intentId: string;
|
|
256
|
+
readonly contentId?: string | undefined;
|
|
257
|
+
}, StorageError, never>;
|
|
258
|
+
references: (id: string, page?: {
|
|
259
|
+
readonly offset?: number;
|
|
260
|
+
readonly limit?: number;
|
|
261
|
+
}) => Effect.Effect<{
|
|
262
|
+
references: string[];
|
|
263
|
+
pending: string[];
|
|
264
|
+
nextOffset?: number;
|
|
265
|
+
}, StorageError, never>;
|
|
266
|
+
reconcileReference: (reference: string) => Effect.Effect<{
|
|
267
|
+
readonly id: string;
|
|
268
|
+
readonly reference: string;
|
|
269
|
+
readonly contentId?: string | undefined;
|
|
270
|
+
readonly edge?: number | undefined;
|
|
271
|
+
readonly state: "completed" | "pending";
|
|
272
|
+
} | undefined, StorageError, never>;
|
|
273
|
+
planGarbageCollection: (request: {
|
|
274
|
+
readonly olderThan: number;
|
|
275
|
+
}) => Effect.Effect<{
|
|
276
|
+
readonly id: string;
|
|
277
|
+
readonly binding: string;
|
|
278
|
+
readonly cutoff: number;
|
|
279
|
+
readonly count: number;
|
|
280
|
+
readonly state: "applying" | "completed" | "partial" | "planned";
|
|
281
|
+
}, StorageError, never>;
|
|
282
|
+
inspectGarbageCollection: (id: string, page?: {
|
|
283
|
+
readonly offset?: number;
|
|
284
|
+
readonly limit?: number;
|
|
285
|
+
}) => Effect.Effect<{
|
|
286
|
+
plan: {
|
|
287
|
+
readonly id: string;
|
|
288
|
+
readonly binding: string;
|
|
289
|
+
readonly cutoff: number;
|
|
290
|
+
readonly count: number;
|
|
291
|
+
readonly state: "applying" | "completed" | "partial" | "planned";
|
|
292
|
+
};
|
|
293
|
+
entries: ({
|
|
294
|
+
readonly contentId: string;
|
|
295
|
+
readonly generation: number;
|
|
296
|
+
readonly state: "collected" | "planned" | "retained" | "unknown";
|
|
297
|
+
} | undefined)[];
|
|
298
|
+
nextOffset?: number;
|
|
299
|
+
}, StorageError, never>;
|
|
300
|
+
applyGarbageCollection: (id: string, batch?: {
|
|
301
|
+
readonly limit?: number;
|
|
302
|
+
}) => Effect.Effect<{
|
|
303
|
+
readonly id: string;
|
|
304
|
+
readonly binding: string;
|
|
305
|
+
readonly cutoff: number;
|
|
306
|
+
readonly count: number;
|
|
307
|
+
readonly state: "applying" | "completed" | "partial" | "planned";
|
|
308
|
+
}, StorageError, never>;
|
|
309
|
+
}>;
|
|
310
|
+
export declare class ContentStore extends ContentStore_base {
|
|
311
|
+
static readonly make: (options: ContentStoreOptions) => Effect.Effect<{
|
|
312
|
+
put: <E = never, R = never>(request: {
|
|
313
|
+
readonly source: UploadSource<E, R>;
|
|
314
|
+
readonly reference?: string;
|
|
315
|
+
}) => Effect.Effect<{
|
|
316
|
+
id: string;
|
|
317
|
+
metadata: {
|
|
318
|
+
readonly contentType?: string | undefined;
|
|
319
|
+
readonly contentEncoding?: string | undefined;
|
|
320
|
+
readonly contentLanguage?: string | undefined;
|
|
321
|
+
readonly contentDisposition?: string | undefined;
|
|
322
|
+
readonly cacheControl?: string | undefined;
|
|
323
|
+
readonly customMetadata?: {
|
|
324
|
+
readonly [x: string]: string;
|
|
325
|
+
} | undefined;
|
|
326
|
+
readonly ref: {
|
|
327
|
+
readonly storeId: string;
|
|
328
|
+
readonly key: string;
|
|
329
|
+
readonly version?: {
|
|
330
|
+
readonly _tag: "S3Version";
|
|
331
|
+
readonly id: string;
|
|
332
|
+
} | {
|
|
333
|
+
readonly _tag: "GcsGeneration";
|
|
334
|
+
readonly id: string;
|
|
335
|
+
readonly metageneration?: string | undefined;
|
|
336
|
+
} | {
|
|
337
|
+
readonly _tag: "AzureVersion";
|
|
338
|
+
readonly id: string;
|
|
339
|
+
} | {
|
|
340
|
+
readonly _tag: "AzureSnapshot";
|
|
341
|
+
readonly id: string;
|
|
342
|
+
} | {
|
|
343
|
+
readonly _tag: "OpaqueVersion";
|
|
344
|
+
readonly provider: string;
|
|
345
|
+
readonly id: string;
|
|
346
|
+
} | undefined;
|
|
347
|
+
};
|
|
348
|
+
readonly size?: number | undefined;
|
|
349
|
+
readonly etag?: string | undefined;
|
|
350
|
+
readonly lastModified?: import("effect/DateTime").Utc | undefined;
|
|
351
|
+
readonly checksums?: readonly {
|
|
352
|
+
readonly algorithm: string;
|
|
353
|
+
readonly encoding: "base64" | "hex";
|
|
354
|
+
readonly scope: "composite" | "full-object";
|
|
355
|
+
readonly value: string;
|
|
356
|
+
readonly partCount?: number | undefined;
|
|
357
|
+
}[] | undefined;
|
|
358
|
+
readonly storageClass?: string | undefined;
|
|
359
|
+
};
|
|
360
|
+
size: number;
|
|
361
|
+
checksum: {
|
|
362
|
+
readonly algorithm: string;
|
|
363
|
+
readonly encoding: "base64" | "hex";
|
|
364
|
+
readonly scope: "composite" | "full-object";
|
|
365
|
+
readonly value: string;
|
|
366
|
+
readonly partCount?: number | undefined;
|
|
367
|
+
};
|
|
368
|
+
}, E | StorageError, Exclude<R, import("effect/Scope").Scope>>;
|
|
369
|
+
head: (id: string) => Effect.Effect<{
|
|
370
|
+
readonly contentType?: string | undefined;
|
|
371
|
+
readonly contentEncoding?: string | undefined;
|
|
372
|
+
readonly contentLanguage?: string | undefined;
|
|
373
|
+
readonly contentDisposition?: string | undefined;
|
|
374
|
+
readonly cacheControl?: string | undefined;
|
|
375
|
+
readonly customMetadata?: {
|
|
376
|
+
readonly [x: string]: string;
|
|
377
|
+
} | undefined;
|
|
378
|
+
readonly ref: {
|
|
379
|
+
readonly storeId: string;
|
|
380
|
+
readonly key: string;
|
|
381
|
+
readonly version?: {
|
|
382
|
+
readonly _tag: "S3Version";
|
|
383
|
+
readonly id: string;
|
|
384
|
+
} | {
|
|
385
|
+
readonly _tag: "GcsGeneration";
|
|
386
|
+
readonly id: string;
|
|
387
|
+
readonly metageneration?: string | undefined;
|
|
388
|
+
} | {
|
|
389
|
+
readonly _tag: "AzureVersion";
|
|
390
|
+
readonly id: string;
|
|
391
|
+
} | {
|
|
392
|
+
readonly _tag: "AzureSnapshot";
|
|
393
|
+
readonly id: string;
|
|
394
|
+
} | {
|
|
395
|
+
readonly _tag: "OpaqueVersion";
|
|
396
|
+
readonly provider: string;
|
|
397
|
+
readonly id: string;
|
|
398
|
+
} | undefined;
|
|
399
|
+
};
|
|
400
|
+
readonly size?: number | undefined;
|
|
401
|
+
readonly etag?: string | undefined;
|
|
402
|
+
readonly lastModified?: import("effect/DateTime").Utc | undefined;
|
|
403
|
+
readonly checksums?: readonly {
|
|
404
|
+
readonly algorithm: string;
|
|
405
|
+
readonly encoding: "base64" | "hex";
|
|
406
|
+
readonly scope: "composite" | "full-object";
|
|
407
|
+
readonly value: string;
|
|
408
|
+
readonly partCount?: number | undefined;
|
|
409
|
+
}[] | undefined;
|
|
410
|
+
readonly storageClass?: string | undefined;
|
|
411
|
+
}, StorageError, never>;
|
|
412
|
+
get: (id: string) => Effect.Effect<GetResult, StorageError, import("effect/Scope").Scope>;
|
|
413
|
+
status: (id: string) => Effect.Effect<{
|
|
414
|
+
readonly id: string;
|
|
415
|
+
readonly binding: string;
|
|
416
|
+
readonly generation: number;
|
|
417
|
+
readonly state: "deleted" | "deleting" | "ready" | "writing";
|
|
418
|
+
readonly size: number;
|
|
419
|
+
readonly createdAt: number;
|
|
420
|
+
readonly retainUntil: number;
|
|
421
|
+
readonly edgeCount: number;
|
|
422
|
+
readonly object?: {
|
|
423
|
+
readonly contentType?: string | undefined;
|
|
424
|
+
readonly contentEncoding?: string | undefined;
|
|
425
|
+
readonly contentLanguage?: string | undefined;
|
|
426
|
+
readonly contentDisposition?: string | undefined;
|
|
427
|
+
readonly cacheControl?: string | undefined;
|
|
428
|
+
readonly customMetadata?: {
|
|
429
|
+
readonly [x: string]: string;
|
|
430
|
+
} | undefined;
|
|
431
|
+
readonly ref: {
|
|
432
|
+
readonly storeId: string;
|
|
433
|
+
readonly key: string;
|
|
434
|
+
readonly version?: {
|
|
435
|
+
readonly _tag: "S3Version";
|
|
436
|
+
readonly id: string;
|
|
437
|
+
} | {
|
|
438
|
+
readonly _tag: "GcsGeneration";
|
|
439
|
+
readonly id: string;
|
|
440
|
+
readonly metageneration?: string | undefined;
|
|
441
|
+
} | {
|
|
442
|
+
readonly _tag: "AzureVersion";
|
|
443
|
+
readonly id: string;
|
|
444
|
+
} | {
|
|
445
|
+
readonly _tag: "AzureSnapshot";
|
|
446
|
+
readonly id: string;
|
|
447
|
+
} | {
|
|
448
|
+
readonly _tag: "OpaqueVersion";
|
|
449
|
+
readonly provider: string;
|
|
450
|
+
readonly id: string;
|
|
451
|
+
} | undefined;
|
|
452
|
+
};
|
|
453
|
+
readonly size?: number | undefined;
|
|
454
|
+
readonly etag?: string | undefined;
|
|
455
|
+
readonly lastModified?: import("effect/DateTime").Utc | undefined;
|
|
456
|
+
readonly checksums?: readonly {
|
|
457
|
+
readonly algorithm: string;
|
|
458
|
+
readonly encoding: "base64" | "hex";
|
|
459
|
+
readonly scope: "composite" | "full-object";
|
|
460
|
+
readonly value: string;
|
|
461
|
+
readonly partCount?: number | undefined;
|
|
462
|
+
}[] | undefined;
|
|
463
|
+
readonly storageClass?: string | undefined;
|
|
464
|
+
} | undefined;
|
|
465
|
+
}, StorageError, never>;
|
|
466
|
+
reconcile: (id: string) => Effect.Effect<{
|
|
467
|
+
readonly id: string;
|
|
468
|
+
readonly binding: string;
|
|
469
|
+
readonly generation: number;
|
|
470
|
+
readonly state: "deleted" | "deleting" | "ready" | "writing";
|
|
471
|
+
readonly size: number;
|
|
472
|
+
readonly createdAt: number;
|
|
473
|
+
readonly retainUntil: number;
|
|
474
|
+
readonly edgeCount: number;
|
|
475
|
+
readonly object?: {
|
|
476
|
+
readonly contentType?: string | undefined;
|
|
477
|
+
readonly contentEncoding?: string | undefined;
|
|
478
|
+
readonly contentLanguage?: string | undefined;
|
|
479
|
+
readonly contentDisposition?: string | undefined;
|
|
480
|
+
readonly cacheControl?: string | undefined;
|
|
481
|
+
readonly customMetadata?: {
|
|
482
|
+
readonly [x: string]: string;
|
|
483
|
+
} | undefined;
|
|
484
|
+
readonly ref: {
|
|
485
|
+
readonly storeId: string;
|
|
486
|
+
readonly key: string;
|
|
487
|
+
readonly version?: {
|
|
488
|
+
readonly _tag: "S3Version";
|
|
489
|
+
readonly id: string;
|
|
490
|
+
} | {
|
|
491
|
+
readonly _tag: "GcsGeneration";
|
|
492
|
+
readonly id: string;
|
|
493
|
+
readonly metageneration?: string | undefined;
|
|
494
|
+
} | {
|
|
495
|
+
readonly _tag: "AzureVersion";
|
|
496
|
+
readonly id: string;
|
|
497
|
+
} | {
|
|
498
|
+
readonly _tag: "AzureSnapshot";
|
|
499
|
+
readonly id: string;
|
|
500
|
+
} | {
|
|
501
|
+
readonly _tag: "OpaqueVersion";
|
|
502
|
+
readonly provider: string;
|
|
503
|
+
readonly id: string;
|
|
504
|
+
} | undefined;
|
|
505
|
+
};
|
|
506
|
+
readonly size?: number | undefined;
|
|
507
|
+
readonly etag?: string | undefined;
|
|
508
|
+
readonly lastModified?: import("effect/DateTime").Utc | undefined;
|
|
509
|
+
readonly checksums?: readonly {
|
|
510
|
+
readonly algorithm: string;
|
|
511
|
+
readonly encoding: "base64" | "hex";
|
|
512
|
+
readonly scope: "composite" | "full-object";
|
|
513
|
+
readonly value: string;
|
|
514
|
+
readonly partCount?: number | undefined;
|
|
515
|
+
}[] | undefined;
|
|
516
|
+
readonly storageClass?: string | undefined;
|
|
517
|
+
} | undefined;
|
|
518
|
+
}, StorageError, never>;
|
|
519
|
+
attach: (request: {
|
|
520
|
+
readonly contentId: string;
|
|
521
|
+
readonly reference: string;
|
|
522
|
+
readonly replace?: boolean;
|
|
523
|
+
}) => Effect.Effect<{
|
|
524
|
+
readonly reference: string;
|
|
525
|
+
readonly intentId: string;
|
|
526
|
+
readonly contentId?: string | undefined;
|
|
527
|
+
}, StorageError, never>;
|
|
528
|
+
detach: (request: {
|
|
529
|
+
readonly reference: string;
|
|
530
|
+
}) => Effect.Effect<{
|
|
531
|
+
readonly reference: string;
|
|
532
|
+
readonly intentId: string;
|
|
533
|
+
readonly contentId?: string | undefined;
|
|
534
|
+
}, StorageError, never>;
|
|
535
|
+
references: (id: string, page?: {
|
|
536
|
+
readonly offset?: number;
|
|
537
|
+
readonly limit?: number;
|
|
538
|
+
}) => Effect.Effect<{
|
|
539
|
+
references: string[];
|
|
540
|
+
pending: string[];
|
|
541
|
+
nextOffset?: number;
|
|
542
|
+
}, StorageError, never>;
|
|
543
|
+
reconcileReference: (reference: string) => Effect.Effect<{
|
|
544
|
+
readonly id: string;
|
|
545
|
+
readonly reference: string;
|
|
546
|
+
readonly contentId?: string | undefined;
|
|
547
|
+
readonly edge?: number | undefined;
|
|
548
|
+
readonly state: "completed" | "pending";
|
|
549
|
+
} | undefined, StorageError, never>;
|
|
550
|
+
planGarbageCollection: (request: {
|
|
551
|
+
readonly olderThan: number;
|
|
552
|
+
}) => Effect.Effect<{
|
|
553
|
+
readonly id: string;
|
|
554
|
+
readonly binding: string;
|
|
555
|
+
readonly cutoff: number;
|
|
556
|
+
readonly count: number;
|
|
557
|
+
readonly state: "applying" | "completed" | "partial" | "planned";
|
|
558
|
+
}, StorageError, never>;
|
|
559
|
+
inspectGarbageCollection: (id: string, page?: {
|
|
560
|
+
readonly offset?: number;
|
|
561
|
+
readonly limit?: number;
|
|
562
|
+
}) => Effect.Effect<{
|
|
563
|
+
plan: {
|
|
564
|
+
readonly id: string;
|
|
565
|
+
readonly binding: string;
|
|
566
|
+
readonly cutoff: number;
|
|
567
|
+
readonly count: number;
|
|
568
|
+
readonly state: "applying" | "completed" | "partial" | "planned";
|
|
569
|
+
};
|
|
570
|
+
entries: ({
|
|
571
|
+
readonly contentId: string;
|
|
572
|
+
readonly generation: number;
|
|
573
|
+
readonly state: "collected" | "planned" | "retained" | "unknown";
|
|
574
|
+
} | undefined)[];
|
|
575
|
+
nextOffset?: number;
|
|
576
|
+
}, StorageError, never>;
|
|
577
|
+
applyGarbageCollection: (id: string, batch?: {
|
|
578
|
+
readonly limit?: number;
|
|
579
|
+
}) => Effect.Effect<{
|
|
580
|
+
readonly id: string;
|
|
581
|
+
readonly binding: string;
|
|
582
|
+
readonly cutoff: number;
|
|
583
|
+
readonly count: number;
|
|
584
|
+
readonly state: "applying" | "completed" | "partial" | "planned";
|
|
585
|
+
}, StorageError, never>;
|
|
586
|
+
}, StorageError, ContentReferenceStore | import("effect/FileSystem").FileSystem | import("effect/Path").Path | SecureRandom.SecureRandom | Storage | TransferDriver | TransferHash>;
|
|
587
|
+
static layer(options: ContentStoreOptions): Layer.Layer<ContentStore, StorageError, ContentReferenceStore | import("effect/FileSystem").FileSystem | import("effect/Path").Path | SecureRandom.SecureRandom | Storage | TransferDriver | TransferHash>;
|
|
588
|
+
}
|
|
589
|
+
export { CollectionPlan, ContentId, ContentRecord, type WorkflowStoreOptions as ContentReferenceStoreOptions };
|
|
590
|
+
//# sourceMappingURL=content.d.ts.map
|