@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/mirror.d.ts
ADDED
|
@@ -0,0 +1,830 @@
|
|
|
1
|
+
import { StorageError } from "./core/errors.js";
|
|
2
|
+
import { DeleteRequest, PutRequest } from "./core/requests.js";
|
|
3
|
+
import { Storage, StorageService } from "./core/storage.js";
|
|
4
|
+
import "./index.js";
|
|
5
|
+
import { TransferEndpoint, TransferPolicy } from "./transfers/models.js";
|
|
6
|
+
import { TransferDriver, TransferHash } from "./transfers/dependencies.js";
|
|
7
|
+
import { WorkflowStoreOptions } from "./workflows/store.js";
|
|
8
|
+
import { MirrorOperation, MirrorRepairPlan } from "./workflows/mirror/schema.js";
|
|
9
|
+
import { Context, Effect, Layer, Schema, Scope } from "effect";
|
|
10
|
+
import { SecureRandom } from "effect/crypto";
|
|
11
|
+
declare const MirrorStore_base: Context.ServiceClass<MirrorStore, "@effect-kit/storage/MirrorStore", {
|
|
12
|
+
exclusive: <A, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A, E | StorageError, R>;
|
|
13
|
+
read: <S extends Schema.Constraint>(id: string, schema: S) => Effect.Effect<S["Type"] | undefined, StorageError, S["DecodingServices"]>;
|
|
14
|
+
write: <S extends Schema.Constraint>(id: string, schema: S, value: S["Type"]) => Effect.Effect<undefined, StorageError, S["EncodingServices"]>;
|
|
15
|
+
}>;
|
|
16
|
+
export declare class MirrorStore extends MirrorStore_base {
|
|
17
|
+
static make(options: WorkflowStoreOptions): Effect.Effect<{
|
|
18
|
+
exclusive: <A, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A, E | StorageError, R>;
|
|
19
|
+
read: <S extends Schema.Constraint>(id: string, schema: S) => Effect.Effect<S["Type"] | undefined, StorageError, S["DecodingServices"]>;
|
|
20
|
+
write: <S extends Schema.Constraint>(id: string, schema: S, value: S["Type"]) => Effect.Effect<undefined, StorageError, S["EncodingServices"]>;
|
|
21
|
+
}, StorageError, import("effect/persistence/KeyValueStore").KeyValueStore>;
|
|
22
|
+
static layer(options: WorkflowStoreOptions): Layer.Layer<MirrorStore, StorageError, import("effect/persistence/KeyValueStore").KeyValueStore>;
|
|
23
|
+
}
|
|
24
|
+
export interface MirrorOptions {
|
|
25
|
+
readonly configurationId: string;
|
|
26
|
+
readonly primary: TransferEndpoint;
|
|
27
|
+
readonly replicas: ReadonlyArray<{
|
|
28
|
+
readonly storage: TransferEndpoint;
|
|
29
|
+
readonly required: boolean;
|
|
30
|
+
}>;
|
|
31
|
+
readonly maxBytes: number;
|
|
32
|
+
readonly transfer?: TransferPolicy;
|
|
33
|
+
}
|
|
34
|
+
declare const StorageMirror_base: Context.ServiceClass<StorageMirror, "@effect-kit/storage/StorageMirror", {
|
|
35
|
+
storage: StorageService;
|
|
36
|
+
maximumObjectBytes: number;
|
|
37
|
+
write: <E = never, R = never>(request: PutRequest<E, R> & {
|
|
38
|
+
readonly id?: string;
|
|
39
|
+
}) => Effect.Effect<{
|
|
40
|
+
operation: {
|
|
41
|
+
readonly id: string;
|
|
42
|
+
readonly binding: string;
|
|
43
|
+
readonly generation: number;
|
|
44
|
+
readonly key: string;
|
|
45
|
+
readonly kind: "delete" | "put";
|
|
46
|
+
readonly requestHash?: string | undefined;
|
|
47
|
+
readonly state: "completed" | "partial" | "pending" | "superseded";
|
|
48
|
+
readonly sha256: string;
|
|
49
|
+
readonly size: number;
|
|
50
|
+
readonly createdAt: number;
|
|
51
|
+
readonly outcomes: readonly {
|
|
52
|
+
readonly storeId: string;
|
|
53
|
+
readonly required: boolean;
|
|
54
|
+
readonly state: "conflict" | "pending" | "succeeded" | "unknown";
|
|
55
|
+
readonly metadata?: {
|
|
56
|
+
readonly contentType?: string | undefined;
|
|
57
|
+
readonly contentEncoding?: string | undefined;
|
|
58
|
+
readonly contentLanguage?: string | undefined;
|
|
59
|
+
readonly contentDisposition?: string | undefined;
|
|
60
|
+
readonly cacheControl?: string | undefined;
|
|
61
|
+
readonly customMetadata?: {
|
|
62
|
+
readonly [x: string]: string;
|
|
63
|
+
} | undefined;
|
|
64
|
+
readonly ref: {
|
|
65
|
+
readonly storeId: string;
|
|
66
|
+
readonly key: string;
|
|
67
|
+
readonly version?: {
|
|
68
|
+
readonly _tag: "S3Version";
|
|
69
|
+
readonly id: string;
|
|
70
|
+
} | {
|
|
71
|
+
readonly _tag: "GcsGeneration";
|
|
72
|
+
readonly id: string;
|
|
73
|
+
readonly metageneration?: string | undefined;
|
|
74
|
+
} | {
|
|
75
|
+
readonly _tag: "AzureVersion";
|
|
76
|
+
readonly id: string;
|
|
77
|
+
} | {
|
|
78
|
+
readonly _tag: "AzureSnapshot";
|
|
79
|
+
readonly id: string;
|
|
80
|
+
} | {
|
|
81
|
+
readonly _tag: "OpaqueVersion";
|
|
82
|
+
readonly provider: string;
|
|
83
|
+
readonly id: string;
|
|
84
|
+
} | undefined;
|
|
85
|
+
};
|
|
86
|
+
readonly size?: number | undefined;
|
|
87
|
+
readonly etag?: string | undefined;
|
|
88
|
+
readonly lastModified?: import("effect/DateTime").Utc | undefined;
|
|
89
|
+
readonly checksums?: readonly {
|
|
90
|
+
readonly algorithm: string;
|
|
91
|
+
readonly encoding: "base64" | "hex";
|
|
92
|
+
readonly scope: "composite" | "full-object";
|
|
93
|
+
readonly value: string;
|
|
94
|
+
readonly partCount?: number | undefined;
|
|
95
|
+
}[] | undefined;
|
|
96
|
+
readonly storageClass?: string | undefined;
|
|
97
|
+
} | undefined;
|
|
98
|
+
readonly error?: StorageError | undefined;
|
|
99
|
+
}[];
|
|
100
|
+
};
|
|
101
|
+
metadata: {
|
|
102
|
+
readonly contentType?: string | undefined;
|
|
103
|
+
readonly contentEncoding?: string | undefined;
|
|
104
|
+
readonly contentLanguage?: string | undefined;
|
|
105
|
+
readonly contentDisposition?: string | undefined;
|
|
106
|
+
readonly cacheControl?: string | undefined;
|
|
107
|
+
readonly customMetadata?: {
|
|
108
|
+
readonly [x: string]: string;
|
|
109
|
+
} | undefined;
|
|
110
|
+
readonly ref: {
|
|
111
|
+
readonly storeId: string;
|
|
112
|
+
readonly key: string;
|
|
113
|
+
readonly version?: {
|
|
114
|
+
readonly _tag: "S3Version";
|
|
115
|
+
readonly id: string;
|
|
116
|
+
} | {
|
|
117
|
+
readonly _tag: "GcsGeneration";
|
|
118
|
+
readonly id: string;
|
|
119
|
+
readonly metageneration?: string | undefined;
|
|
120
|
+
} | {
|
|
121
|
+
readonly _tag: "AzureVersion";
|
|
122
|
+
readonly id: string;
|
|
123
|
+
} | {
|
|
124
|
+
readonly _tag: "AzureSnapshot";
|
|
125
|
+
readonly id: string;
|
|
126
|
+
} | {
|
|
127
|
+
readonly _tag: "OpaqueVersion";
|
|
128
|
+
readonly provider: string;
|
|
129
|
+
readonly id: string;
|
|
130
|
+
} | undefined;
|
|
131
|
+
};
|
|
132
|
+
readonly size?: number | undefined;
|
|
133
|
+
readonly etag?: string | undefined;
|
|
134
|
+
readonly lastModified?: import("effect/DateTime").Utc | undefined;
|
|
135
|
+
readonly checksums?: readonly {
|
|
136
|
+
readonly algorithm: string;
|
|
137
|
+
readonly encoding: "base64" | "hex";
|
|
138
|
+
readonly scope: "composite" | "full-object";
|
|
139
|
+
readonly value: string;
|
|
140
|
+
readonly partCount?: number | undefined;
|
|
141
|
+
}[] | undefined;
|
|
142
|
+
readonly storageClass?: string | undefined;
|
|
143
|
+
} | undefined;
|
|
144
|
+
}, E | StorageError, Exclude<R, Scope.Scope>>;
|
|
145
|
+
remove: (request: DeleteRequest) => Effect.Effect<{
|
|
146
|
+
readonly id: string;
|
|
147
|
+
readonly binding: string;
|
|
148
|
+
readonly generation: number;
|
|
149
|
+
readonly key: string;
|
|
150
|
+
readonly kind: "delete" | "put";
|
|
151
|
+
readonly requestHash?: string | undefined;
|
|
152
|
+
readonly state: "completed" | "partial" | "pending" | "superseded";
|
|
153
|
+
readonly sha256: string;
|
|
154
|
+
readonly size: number;
|
|
155
|
+
readonly createdAt: number;
|
|
156
|
+
readonly outcomes: readonly {
|
|
157
|
+
readonly storeId: string;
|
|
158
|
+
readonly required: boolean;
|
|
159
|
+
readonly state: "conflict" | "pending" | "succeeded" | "unknown";
|
|
160
|
+
readonly metadata?: {
|
|
161
|
+
readonly contentType?: string | undefined;
|
|
162
|
+
readonly contentEncoding?: string | undefined;
|
|
163
|
+
readonly contentLanguage?: string | undefined;
|
|
164
|
+
readonly contentDisposition?: string | undefined;
|
|
165
|
+
readonly cacheControl?: string | undefined;
|
|
166
|
+
readonly customMetadata?: {
|
|
167
|
+
readonly [x: string]: string;
|
|
168
|
+
} | undefined;
|
|
169
|
+
readonly ref: {
|
|
170
|
+
readonly storeId: string;
|
|
171
|
+
readonly key: string;
|
|
172
|
+
readonly version?: {
|
|
173
|
+
readonly _tag: "S3Version";
|
|
174
|
+
readonly id: string;
|
|
175
|
+
} | {
|
|
176
|
+
readonly _tag: "GcsGeneration";
|
|
177
|
+
readonly id: string;
|
|
178
|
+
readonly metageneration?: string | undefined;
|
|
179
|
+
} | {
|
|
180
|
+
readonly _tag: "AzureVersion";
|
|
181
|
+
readonly id: string;
|
|
182
|
+
} | {
|
|
183
|
+
readonly _tag: "AzureSnapshot";
|
|
184
|
+
readonly id: string;
|
|
185
|
+
} | {
|
|
186
|
+
readonly _tag: "OpaqueVersion";
|
|
187
|
+
readonly provider: string;
|
|
188
|
+
readonly id: string;
|
|
189
|
+
} | undefined;
|
|
190
|
+
};
|
|
191
|
+
readonly size?: number | undefined;
|
|
192
|
+
readonly etag?: string | undefined;
|
|
193
|
+
readonly lastModified?: import("effect/DateTime").Utc | undefined;
|
|
194
|
+
readonly checksums?: readonly {
|
|
195
|
+
readonly algorithm: string;
|
|
196
|
+
readonly encoding: "base64" | "hex";
|
|
197
|
+
readonly scope: "composite" | "full-object";
|
|
198
|
+
readonly value: string;
|
|
199
|
+
readonly partCount?: number | undefined;
|
|
200
|
+
}[] | undefined;
|
|
201
|
+
readonly storageClass?: string | undefined;
|
|
202
|
+
} | undefined;
|
|
203
|
+
readonly error?: StorageError | undefined;
|
|
204
|
+
}[];
|
|
205
|
+
}, StorageError, never>;
|
|
206
|
+
status: (id: string) => Effect.Effect<{
|
|
207
|
+
readonly id: string;
|
|
208
|
+
readonly binding: string;
|
|
209
|
+
readonly generation: number;
|
|
210
|
+
readonly key: string;
|
|
211
|
+
readonly kind: "delete" | "put";
|
|
212
|
+
readonly requestHash?: string | undefined;
|
|
213
|
+
readonly state: "completed" | "partial" | "pending" | "superseded";
|
|
214
|
+
readonly sha256: string;
|
|
215
|
+
readonly size: number;
|
|
216
|
+
readonly createdAt: number;
|
|
217
|
+
readonly outcomes: readonly {
|
|
218
|
+
readonly storeId: string;
|
|
219
|
+
readonly required: boolean;
|
|
220
|
+
readonly state: "conflict" | "pending" | "succeeded" | "unknown";
|
|
221
|
+
readonly metadata?: {
|
|
222
|
+
readonly contentType?: string | undefined;
|
|
223
|
+
readonly contentEncoding?: string | undefined;
|
|
224
|
+
readonly contentLanguage?: string | undefined;
|
|
225
|
+
readonly contentDisposition?: string | undefined;
|
|
226
|
+
readonly cacheControl?: string | undefined;
|
|
227
|
+
readonly customMetadata?: {
|
|
228
|
+
readonly [x: string]: string;
|
|
229
|
+
} | undefined;
|
|
230
|
+
readonly ref: {
|
|
231
|
+
readonly storeId: string;
|
|
232
|
+
readonly key: string;
|
|
233
|
+
readonly version?: {
|
|
234
|
+
readonly _tag: "S3Version";
|
|
235
|
+
readonly id: string;
|
|
236
|
+
} | {
|
|
237
|
+
readonly _tag: "GcsGeneration";
|
|
238
|
+
readonly id: string;
|
|
239
|
+
readonly metageneration?: string | undefined;
|
|
240
|
+
} | {
|
|
241
|
+
readonly _tag: "AzureVersion";
|
|
242
|
+
readonly id: string;
|
|
243
|
+
} | {
|
|
244
|
+
readonly _tag: "AzureSnapshot";
|
|
245
|
+
readonly id: string;
|
|
246
|
+
} | {
|
|
247
|
+
readonly _tag: "OpaqueVersion";
|
|
248
|
+
readonly provider: string;
|
|
249
|
+
readonly id: string;
|
|
250
|
+
} | undefined;
|
|
251
|
+
};
|
|
252
|
+
readonly size?: number | undefined;
|
|
253
|
+
readonly etag?: string | undefined;
|
|
254
|
+
readonly lastModified?: import("effect/DateTime").Utc | undefined;
|
|
255
|
+
readonly checksums?: readonly {
|
|
256
|
+
readonly algorithm: string;
|
|
257
|
+
readonly encoding: "base64" | "hex";
|
|
258
|
+
readonly scope: "composite" | "full-object";
|
|
259
|
+
readonly value: string;
|
|
260
|
+
readonly partCount?: number | undefined;
|
|
261
|
+
}[] | undefined;
|
|
262
|
+
readonly storageClass?: string | undefined;
|
|
263
|
+
} | undefined;
|
|
264
|
+
readonly error?: StorageError | undefined;
|
|
265
|
+
}[];
|
|
266
|
+
}, StorageError, never>;
|
|
267
|
+
statusFor: (key: string) => Effect.Effect<{
|
|
268
|
+
readonly id: string;
|
|
269
|
+
readonly binding: string;
|
|
270
|
+
readonly generation: number;
|
|
271
|
+
readonly key: string;
|
|
272
|
+
readonly kind: "delete" | "put";
|
|
273
|
+
readonly requestHash?: string | undefined;
|
|
274
|
+
readonly state: "completed" | "partial" | "pending" | "superseded";
|
|
275
|
+
readonly sha256: string;
|
|
276
|
+
readonly size: number;
|
|
277
|
+
readonly createdAt: number;
|
|
278
|
+
readonly outcomes: readonly {
|
|
279
|
+
readonly storeId: string;
|
|
280
|
+
readonly required: boolean;
|
|
281
|
+
readonly state: "conflict" | "pending" | "succeeded" | "unknown";
|
|
282
|
+
readonly metadata?: {
|
|
283
|
+
readonly contentType?: string | undefined;
|
|
284
|
+
readonly contentEncoding?: string | undefined;
|
|
285
|
+
readonly contentLanguage?: string | undefined;
|
|
286
|
+
readonly contentDisposition?: string | undefined;
|
|
287
|
+
readonly cacheControl?: string | undefined;
|
|
288
|
+
readonly customMetadata?: {
|
|
289
|
+
readonly [x: string]: string;
|
|
290
|
+
} | undefined;
|
|
291
|
+
readonly ref: {
|
|
292
|
+
readonly storeId: string;
|
|
293
|
+
readonly key: string;
|
|
294
|
+
readonly version?: {
|
|
295
|
+
readonly _tag: "S3Version";
|
|
296
|
+
readonly id: string;
|
|
297
|
+
} | {
|
|
298
|
+
readonly _tag: "GcsGeneration";
|
|
299
|
+
readonly id: string;
|
|
300
|
+
readonly metageneration?: string | undefined;
|
|
301
|
+
} | {
|
|
302
|
+
readonly _tag: "AzureVersion";
|
|
303
|
+
readonly id: string;
|
|
304
|
+
} | {
|
|
305
|
+
readonly _tag: "AzureSnapshot";
|
|
306
|
+
readonly id: string;
|
|
307
|
+
} | {
|
|
308
|
+
readonly _tag: "OpaqueVersion";
|
|
309
|
+
readonly provider: string;
|
|
310
|
+
readonly id: string;
|
|
311
|
+
} | undefined;
|
|
312
|
+
};
|
|
313
|
+
readonly size?: number | undefined;
|
|
314
|
+
readonly etag?: string | undefined;
|
|
315
|
+
readonly lastModified?: import("effect/DateTime").Utc | undefined;
|
|
316
|
+
readonly checksums?: readonly {
|
|
317
|
+
readonly algorithm: string;
|
|
318
|
+
readonly encoding: "base64" | "hex";
|
|
319
|
+
readonly scope: "composite" | "full-object";
|
|
320
|
+
readonly value: string;
|
|
321
|
+
readonly partCount?: number | undefined;
|
|
322
|
+
}[] | undefined;
|
|
323
|
+
readonly storageClass?: string | undefined;
|
|
324
|
+
} | undefined;
|
|
325
|
+
readonly error?: StorageError | undefined;
|
|
326
|
+
}[];
|
|
327
|
+
} | undefined, StorageError, never>;
|
|
328
|
+
planRepair: (request: {
|
|
329
|
+
readonly prefix: string;
|
|
330
|
+
}) => Effect.Effect<{
|
|
331
|
+
readonly id: string;
|
|
332
|
+
readonly binding: string;
|
|
333
|
+
readonly count: number;
|
|
334
|
+
readonly offset: number;
|
|
335
|
+
readonly state: "applying" | "completed" | "partial" | "planned";
|
|
336
|
+
readonly unresolved: number;
|
|
337
|
+
readonly prefix: string;
|
|
338
|
+
}, StorageError, never>;
|
|
339
|
+
inspectRepair: (id: string, page?: {
|
|
340
|
+
readonly offset?: number;
|
|
341
|
+
readonly limit?: number;
|
|
342
|
+
}) => Effect.Effect<{
|
|
343
|
+
plan: {
|
|
344
|
+
readonly id: string;
|
|
345
|
+
readonly binding: string;
|
|
346
|
+
readonly count: number;
|
|
347
|
+
readonly offset: number;
|
|
348
|
+
readonly state: "applying" | "completed" | "partial" | "planned";
|
|
349
|
+
readonly unresolved: number;
|
|
350
|
+
readonly prefix: string;
|
|
351
|
+
};
|
|
352
|
+
entries: {
|
|
353
|
+
readonly id: string;
|
|
354
|
+
readonly binding: string;
|
|
355
|
+
readonly generation: number;
|
|
356
|
+
readonly key: string;
|
|
357
|
+
readonly kind: "delete" | "put";
|
|
358
|
+
readonly requestHash?: string | undefined;
|
|
359
|
+
readonly state: "completed" | "partial" | "pending" | "superseded";
|
|
360
|
+
readonly sha256: string;
|
|
361
|
+
readonly size: number;
|
|
362
|
+
readonly createdAt: number;
|
|
363
|
+
readonly outcomes: readonly {
|
|
364
|
+
readonly storeId: string;
|
|
365
|
+
readonly required: boolean;
|
|
366
|
+
readonly state: "conflict" | "pending" | "succeeded" | "unknown";
|
|
367
|
+
readonly metadata?: {
|
|
368
|
+
readonly contentType?: string | undefined;
|
|
369
|
+
readonly contentEncoding?: string | undefined;
|
|
370
|
+
readonly contentLanguage?: string | undefined;
|
|
371
|
+
readonly contentDisposition?: string | undefined;
|
|
372
|
+
readonly cacheControl?: string | undefined;
|
|
373
|
+
readonly customMetadata?: {
|
|
374
|
+
readonly [x: string]: string;
|
|
375
|
+
} | undefined;
|
|
376
|
+
readonly ref: {
|
|
377
|
+
readonly storeId: string;
|
|
378
|
+
readonly key: string;
|
|
379
|
+
readonly version?: {
|
|
380
|
+
readonly _tag: "S3Version";
|
|
381
|
+
readonly id: string;
|
|
382
|
+
} | {
|
|
383
|
+
readonly _tag: "GcsGeneration";
|
|
384
|
+
readonly id: string;
|
|
385
|
+
readonly metageneration?: string | undefined;
|
|
386
|
+
} | {
|
|
387
|
+
readonly _tag: "AzureVersion";
|
|
388
|
+
readonly id: string;
|
|
389
|
+
} | {
|
|
390
|
+
readonly _tag: "AzureSnapshot";
|
|
391
|
+
readonly id: string;
|
|
392
|
+
} | {
|
|
393
|
+
readonly _tag: "OpaqueVersion";
|
|
394
|
+
readonly provider: string;
|
|
395
|
+
readonly id: string;
|
|
396
|
+
} | undefined;
|
|
397
|
+
};
|
|
398
|
+
readonly size?: number | undefined;
|
|
399
|
+
readonly etag?: string | undefined;
|
|
400
|
+
readonly lastModified?: import("effect/DateTime").Utc | undefined;
|
|
401
|
+
readonly checksums?: readonly {
|
|
402
|
+
readonly algorithm: string;
|
|
403
|
+
readonly encoding: "base64" | "hex";
|
|
404
|
+
readonly scope: "composite" | "full-object";
|
|
405
|
+
readonly value: string;
|
|
406
|
+
readonly partCount?: number | undefined;
|
|
407
|
+
}[] | undefined;
|
|
408
|
+
readonly storageClass?: string | undefined;
|
|
409
|
+
} | undefined;
|
|
410
|
+
readonly error?: StorageError | undefined;
|
|
411
|
+
}[];
|
|
412
|
+
}[];
|
|
413
|
+
nextOffset?: number;
|
|
414
|
+
}, StorageError, never>;
|
|
415
|
+
applyRepair: (id: string, options?: {
|
|
416
|
+
readonly limit?: number;
|
|
417
|
+
}) => Effect.Effect<{
|
|
418
|
+
readonly id: string;
|
|
419
|
+
readonly binding: string;
|
|
420
|
+
readonly count: number;
|
|
421
|
+
readonly offset: number;
|
|
422
|
+
readonly state: "applying" | "completed" | "partial" | "planned";
|
|
423
|
+
readonly unresolved: number;
|
|
424
|
+
readonly prefix: string;
|
|
425
|
+
}, StorageError, never>;
|
|
426
|
+
}>;
|
|
427
|
+
export declare class StorageMirror extends StorageMirror_base {
|
|
428
|
+
static readonly make: (configuration: MirrorOptions) => Effect.Effect<{
|
|
429
|
+
storage: StorageService;
|
|
430
|
+
maximumObjectBytes: number;
|
|
431
|
+
write: <E = never, R = never>(request: PutRequest<E, R> & {
|
|
432
|
+
readonly id?: string;
|
|
433
|
+
}) => Effect.Effect<{
|
|
434
|
+
operation: {
|
|
435
|
+
readonly id: string;
|
|
436
|
+
readonly binding: string;
|
|
437
|
+
readonly generation: number;
|
|
438
|
+
readonly key: string;
|
|
439
|
+
readonly kind: "delete" | "put";
|
|
440
|
+
readonly requestHash?: string | undefined;
|
|
441
|
+
readonly state: "completed" | "partial" | "pending" | "superseded";
|
|
442
|
+
readonly sha256: string;
|
|
443
|
+
readonly size: number;
|
|
444
|
+
readonly createdAt: number;
|
|
445
|
+
readonly outcomes: readonly {
|
|
446
|
+
readonly storeId: string;
|
|
447
|
+
readonly required: boolean;
|
|
448
|
+
readonly state: "conflict" | "pending" | "succeeded" | "unknown";
|
|
449
|
+
readonly metadata?: {
|
|
450
|
+
readonly contentType?: string | undefined;
|
|
451
|
+
readonly contentEncoding?: string | undefined;
|
|
452
|
+
readonly contentLanguage?: string | undefined;
|
|
453
|
+
readonly contentDisposition?: string | undefined;
|
|
454
|
+
readonly cacheControl?: string | undefined;
|
|
455
|
+
readonly customMetadata?: {
|
|
456
|
+
readonly [x: string]: string;
|
|
457
|
+
} | undefined;
|
|
458
|
+
readonly ref: {
|
|
459
|
+
readonly storeId: string;
|
|
460
|
+
readonly key: string;
|
|
461
|
+
readonly version?: {
|
|
462
|
+
readonly _tag: "S3Version";
|
|
463
|
+
readonly id: string;
|
|
464
|
+
} | {
|
|
465
|
+
readonly _tag: "GcsGeneration";
|
|
466
|
+
readonly id: string;
|
|
467
|
+
readonly metageneration?: string | undefined;
|
|
468
|
+
} | {
|
|
469
|
+
readonly _tag: "AzureVersion";
|
|
470
|
+
readonly id: string;
|
|
471
|
+
} | {
|
|
472
|
+
readonly _tag: "AzureSnapshot";
|
|
473
|
+
readonly id: string;
|
|
474
|
+
} | {
|
|
475
|
+
readonly _tag: "OpaqueVersion";
|
|
476
|
+
readonly provider: string;
|
|
477
|
+
readonly id: string;
|
|
478
|
+
} | undefined;
|
|
479
|
+
};
|
|
480
|
+
readonly size?: number | undefined;
|
|
481
|
+
readonly etag?: string | undefined;
|
|
482
|
+
readonly lastModified?: import("effect/DateTime").Utc | undefined;
|
|
483
|
+
readonly checksums?: readonly {
|
|
484
|
+
readonly algorithm: string;
|
|
485
|
+
readonly encoding: "base64" | "hex";
|
|
486
|
+
readonly scope: "composite" | "full-object";
|
|
487
|
+
readonly value: string;
|
|
488
|
+
readonly partCount?: number | undefined;
|
|
489
|
+
}[] | undefined;
|
|
490
|
+
readonly storageClass?: string | undefined;
|
|
491
|
+
} | undefined;
|
|
492
|
+
readonly error?: StorageError | undefined;
|
|
493
|
+
}[];
|
|
494
|
+
};
|
|
495
|
+
metadata: {
|
|
496
|
+
readonly contentType?: string | undefined;
|
|
497
|
+
readonly contentEncoding?: string | undefined;
|
|
498
|
+
readonly contentLanguage?: string | undefined;
|
|
499
|
+
readonly contentDisposition?: string | undefined;
|
|
500
|
+
readonly cacheControl?: string | undefined;
|
|
501
|
+
readonly customMetadata?: {
|
|
502
|
+
readonly [x: string]: string;
|
|
503
|
+
} | undefined;
|
|
504
|
+
readonly ref: {
|
|
505
|
+
readonly storeId: string;
|
|
506
|
+
readonly key: string;
|
|
507
|
+
readonly version?: {
|
|
508
|
+
readonly _tag: "S3Version";
|
|
509
|
+
readonly id: string;
|
|
510
|
+
} | {
|
|
511
|
+
readonly _tag: "GcsGeneration";
|
|
512
|
+
readonly id: string;
|
|
513
|
+
readonly metageneration?: string | undefined;
|
|
514
|
+
} | {
|
|
515
|
+
readonly _tag: "AzureVersion";
|
|
516
|
+
readonly id: string;
|
|
517
|
+
} | {
|
|
518
|
+
readonly _tag: "AzureSnapshot";
|
|
519
|
+
readonly id: string;
|
|
520
|
+
} | {
|
|
521
|
+
readonly _tag: "OpaqueVersion";
|
|
522
|
+
readonly provider: string;
|
|
523
|
+
readonly id: string;
|
|
524
|
+
} | undefined;
|
|
525
|
+
};
|
|
526
|
+
readonly size?: number | undefined;
|
|
527
|
+
readonly etag?: string | undefined;
|
|
528
|
+
readonly lastModified?: import("effect/DateTime").Utc | undefined;
|
|
529
|
+
readonly checksums?: readonly {
|
|
530
|
+
readonly algorithm: string;
|
|
531
|
+
readonly encoding: "base64" | "hex";
|
|
532
|
+
readonly scope: "composite" | "full-object";
|
|
533
|
+
readonly value: string;
|
|
534
|
+
readonly partCount?: number | undefined;
|
|
535
|
+
}[] | undefined;
|
|
536
|
+
readonly storageClass?: string | undefined;
|
|
537
|
+
} | undefined;
|
|
538
|
+
}, E | StorageError, Exclude<R, Scope.Scope>>;
|
|
539
|
+
remove: (request: DeleteRequest) => Effect.Effect<{
|
|
540
|
+
readonly id: string;
|
|
541
|
+
readonly binding: string;
|
|
542
|
+
readonly generation: number;
|
|
543
|
+
readonly key: string;
|
|
544
|
+
readonly kind: "delete" | "put";
|
|
545
|
+
readonly requestHash?: string | undefined;
|
|
546
|
+
readonly state: "completed" | "partial" | "pending" | "superseded";
|
|
547
|
+
readonly sha256: string;
|
|
548
|
+
readonly size: number;
|
|
549
|
+
readonly createdAt: number;
|
|
550
|
+
readonly outcomes: readonly {
|
|
551
|
+
readonly storeId: string;
|
|
552
|
+
readonly required: boolean;
|
|
553
|
+
readonly state: "conflict" | "pending" | "succeeded" | "unknown";
|
|
554
|
+
readonly metadata?: {
|
|
555
|
+
readonly contentType?: string | undefined;
|
|
556
|
+
readonly contentEncoding?: string | undefined;
|
|
557
|
+
readonly contentLanguage?: string | undefined;
|
|
558
|
+
readonly contentDisposition?: string | undefined;
|
|
559
|
+
readonly cacheControl?: string | undefined;
|
|
560
|
+
readonly customMetadata?: {
|
|
561
|
+
readonly [x: string]: string;
|
|
562
|
+
} | undefined;
|
|
563
|
+
readonly ref: {
|
|
564
|
+
readonly storeId: string;
|
|
565
|
+
readonly key: string;
|
|
566
|
+
readonly version?: {
|
|
567
|
+
readonly _tag: "S3Version";
|
|
568
|
+
readonly id: string;
|
|
569
|
+
} | {
|
|
570
|
+
readonly _tag: "GcsGeneration";
|
|
571
|
+
readonly id: string;
|
|
572
|
+
readonly metageneration?: string | undefined;
|
|
573
|
+
} | {
|
|
574
|
+
readonly _tag: "AzureVersion";
|
|
575
|
+
readonly id: string;
|
|
576
|
+
} | {
|
|
577
|
+
readonly _tag: "AzureSnapshot";
|
|
578
|
+
readonly id: string;
|
|
579
|
+
} | {
|
|
580
|
+
readonly _tag: "OpaqueVersion";
|
|
581
|
+
readonly provider: string;
|
|
582
|
+
readonly id: string;
|
|
583
|
+
} | undefined;
|
|
584
|
+
};
|
|
585
|
+
readonly size?: number | undefined;
|
|
586
|
+
readonly etag?: string | undefined;
|
|
587
|
+
readonly lastModified?: import("effect/DateTime").Utc | undefined;
|
|
588
|
+
readonly checksums?: readonly {
|
|
589
|
+
readonly algorithm: string;
|
|
590
|
+
readonly encoding: "base64" | "hex";
|
|
591
|
+
readonly scope: "composite" | "full-object";
|
|
592
|
+
readonly value: string;
|
|
593
|
+
readonly partCount?: number | undefined;
|
|
594
|
+
}[] | undefined;
|
|
595
|
+
readonly storageClass?: string | undefined;
|
|
596
|
+
} | undefined;
|
|
597
|
+
readonly error?: StorageError | undefined;
|
|
598
|
+
}[];
|
|
599
|
+
}, StorageError, never>;
|
|
600
|
+
status: (id: string) => Effect.Effect<{
|
|
601
|
+
readonly id: string;
|
|
602
|
+
readonly binding: string;
|
|
603
|
+
readonly generation: number;
|
|
604
|
+
readonly key: string;
|
|
605
|
+
readonly kind: "delete" | "put";
|
|
606
|
+
readonly requestHash?: string | undefined;
|
|
607
|
+
readonly state: "completed" | "partial" | "pending" | "superseded";
|
|
608
|
+
readonly sha256: string;
|
|
609
|
+
readonly size: number;
|
|
610
|
+
readonly createdAt: number;
|
|
611
|
+
readonly outcomes: readonly {
|
|
612
|
+
readonly storeId: string;
|
|
613
|
+
readonly required: boolean;
|
|
614
|
+
readonly state: "conflict" | "pending" | "succeeded" | "unknown";
|
|
615
|
+
readonly metadata?: {
|
|
616
|
+
readonly contentType?: string | undefined;
|
|
617
|
+
readonly contentEncoding?: string | undefined;
|
|
618
|
+
readonly contentLanguage?: string | undefined;
|
|
619
|
+
readonly contentDisposition?: string | undefined;
|
|
620
|
+
readonly cacheControl?: string | undefined;
|
|
621
|
+
readonly customMetadata?: {
|
|
622
|
+
readonly [x: string]: string;
|
|
623
|
+
} | undefined;
|
|
624
|
+
readonly ref: {
|
|
625
|
+
readonly storeId: string;
|
|
626
|
+
readonly key: string;
|
|
627
|
+
readonly version?: {
|
|
628
|
+
readonly _tag: "S3Version";
|
|
629
|
+
readonly id: string;
|
|
630
|
+
} | {
|
|
631
|
+
readonly _tag: "GcsGeneration";
|
|
632
|
+
readonly id: string;
|
|
633
|
+
readonly metageneration?: string | undefined;
|
|
634
|
+
} | {
|
|
635
|
+
readonly _tag: "AzureVersion";
|
|
636
|
+
readonly id: string;
|
|
637
|
+
} | {
|
|
638
|
+
readonly _tag: "AzureSnapshot";
|
|
639
|
+
readonly id: string;
|
|
640
|
+
} | {
|
|
641
|
+
readonly _tag: "OpaqueVersion";
|
|
642
|
+
readonly provider: string;
|
|
643
|
+
readonly id: string;
|
|
644
|
+
} | undefined;
|
|
645
|
+
};
|
|
646
|
+
readonly size?: number | undefined;
|
|
647
|
+
readonly etag?: string | undefined;
|
|
648
|
+
readonly lastModified?: import("effect/DateTime").Utc | undefined;
|
|
649
|
+
readonly checksums?: readonly {
|
|
650
|
+
readonly algorithm: string;
|
|
651
|
+
readonly encoding: "base64" | "hex";
|
|
652
|
+
readonly scope: "composite" | "full-object";
|
|
653
|
+
readonly value: string;
|
|
654
|
+
readonly partCount?: number | undefined;
|
|
655
|
+
}[] | undefined;
|
|
656
|
+
readonly storageClass?: string | undefined;
|
|
657
|
+
} | undefined;
|
|
658
|
+
readonly error?: StorageError | undefined;
|
|
659
|
+
}[];
|
|
660
|
+
}, StorageError, never>;
|
|
661
|
+
statusFor: (key: string) => Effect.Effect<{
|
|
662
|
+
readonly id: string;
|
|
663
|
+
readonly binding: string;
|
|
664
|
+
readonly generation: number;
|
|
665
|
+
readonly key: string;
|
|
666
|
+
readonly kind: "delete" | "put";
|
|
667
|
+
readonly requestHash?: string | undefined;
|
|
668
|
+
readonly state: "completed" | "partial" | "pending" | "superseded";
|
|
669
|
+
readonly sha256: string;
|
|
670
|
+
readonly size: number;
|
|
671
|
+
readonly createdAt: number;
|
|
672
|
+
readonly outcomes: readonly {
|
|
673
|
+
readonly storeId: string;
|
|
674
|
+
readonly required: boolean;
|
|
675
|
+
readonly state: "conflict" | "pending" | "succeeded" | "unknown";
|
|
676
|
+
readonly metadata?: {
|
|
677
|
+
readonly contentType?: string | undefined;
|
|
678
|
+
readonly contentEncoding?: string | undefined;
|
|
679
|
+
readonly contentLanguage?: string | undefined;
|
|
680
|
+
readonly contentDisposition?: string | undefined;
|
|
681
|
+
readonly cacheControl?: string | undefined;
|
|
682
|
+
readonly customMetadata?: {
|
|
683
|
+
readonly [x: string]: string;
|
|
684
|
+
} | undefined;
|
|
685
|
+
readonly ref: {
|
|
686
|
+
readonly storeId: string;
|
|
687
|
+
readonly key: string;
|
|
688
|
+
readonly version?: {
|
|
689
|
+
readonly _tag: "S3Version";
|
|
690
|
+
readonly id: string;
|
|
691
|
+
} | {
|
|
692
|
+
readonly _tag: "GcsGeneration";
|
|
693
|
+
readonly id: string;
|
|
694
|
+
readonly metageneration?: string | undefined;
|
|
695
|
+
} | {
|
|
696
|
+
readonly _tag: "AzureVersion";
|
|
697
|
+
readonly id: string;
|
|
698
|
+
} | {
|
|
699
|
+
readonly _tag: "AzureSnapshot";
|
|
700
|
+
readonly id: string;
|
|
701
|
+
} | {
|
|
702
|
+
readonly _tag: "OpaqueVersion";
|
|
703
|
+
readonly provider: string;
|
|
704
|
+
readonly id: string;
|
|
705
|
+
} | undefined;
|
|
706
|
+
};
|
|
707
|
+
readonly size?: number | undefined;
|
|
708
|
+
readonly etag?: string | undefined;
|
|
709
|
+
readonly lastModified?: import("effect/DateTime").Utc | undefined;
|
|
710
|
+
readonly checksums?: readonly {
|
|
711
|
+
readonly algorithm: string;
|
|
712
|
+
readonly encoding: "base64" | "hex";
|
|
713
|
+
readonly scope: "composite" | "full-object";
|
|
714
|
+
readonly value: string;
|
|
715
|
+
readonly partCount?: number | undefined;
|
|
716
|
+
}[] | undefined;
|
|
717
|
+
readonly storageClass?: string | undefined;
|
|
718
|
+
} | undefined;
|
|
719
|
+
readonly error?: StorageError | undefined;
|
|
720
|
+
}[];
|
|
721
|
+
} | undefined, StorageError, never>;
|
|
722
|
+
planRepair: (request: {
|
|
723
|
+
readonly prefix: string;
|
|
724
|
+
}) => Effect.Effect<{
|
|
725
|
+
readonly id: string;
|
|
726
|
+
readonly binding: string;
|
|
727
|
+
readonly count: number;
|
|
728
|
+
readonly offset: number;
|
|
729
|
+
readonly state: "applying" | "completed" | "partial" | "planned";
|
|
730
|
+
readonly unresolved: number;
|
|
731
|
+
readonly prefix: string;
|
|
732
|
+
}, StorageError, never>;
|
|
733
|
+
inspectRepair: (id: string, page?: {
|
|
734
|
+
readonly offset?: number;
|
|
735
|
+
readonly limit?: number;
|
|
736
|
+
}) => Effect.Effect<{
|
|
737
|
+
plan: {
|
|
738
|
+
readonly id: string;
|
|
739
|
+
readonly binding: string;
|
|
740
|
+
readonly count: number;
|
|
741
|
+
readonly offset: number;
|
|
742
|
+
readonly state: "applying" | "completed" | "partial" | "planned";
|
|
743
|
+
readonly unresolved: number;
|
|
744
|
+
readonly prefix: string;
|
|
745
|
+
};
|
|
746
|
+
entries: {
|
|
747
|
+
readonly id: string;
|
|
748
|
+
readonly binding: string;
|
|
749
|
+
readonly generation: number;
|
|
750
|
+
readonly key: string;
|
|
751
|
+
readonly kind: "delete" | "put";
|
|
752
|
+
readonly requestHash?: string | undefined;
|
|
753
|
+
readonly state: "completed" | "partial" | "pending" | "superseded";
|
|
754
|
+
readonly sha256: string;
|
|
755
|
+
readonly size: number;
|
|
756
|
+
readonly createdAt: number;
|
|
757
|
+
readonly outcomes: readonly {
|
|
758
|
+
readonly storeId: string;
|
|
759
|
+
readonly required: boolean;
|
|
760
|
+
readonly state: "conflict" | "pending" | "succeeded" | "unknown";
|
|
761
|
+
readonly metadata?: {
|
|
762
|
+
readonly contentType?: string | undefined;
|
|
763
|
+
readonly contentEncoding?: string | undefined;
|
|
764
|
+
readonly contentLanguage?: string | undefined;
|
|
765
|
+
readonly contentDisposition?: string | undefined;
|
|
766
|
+
readonly cacheControl?: string | undefined;
|
|
767
|
+
readonly customMetadata?: {
|
|
768
|
+
readonly [x: string]: string;
|
|
769
|
+
} | undefined;
|
|
770
|
+
readonly ref: {
|
|
771
|
+
readonly storeId: string;
|
|
772
|
+
readonly key: string;
|
|
773
|
+
readonly version?: {
|
|
774
|
+
readonly _tag: "S3Version";
|
|
775
|
+
readonly id: string;
|
|
776
|
+
} | {
|
|
777
|
+
readonly _tag: "GcsGeneration";
|
|
778
|
+
readonly id: string;
|
|
779
|
+
readonly metageneration?: string | undefined;
|
|
780
|
+
} | {
|
|
781
|
+
readonly _tag: "AzureVersion";
|
|
782
|
+
readonly id: string;
|
|
783
|
+
} | {
|
|
784
|
+
readonly _tag: "AzureSnapshot";
|
|
785
|
+
readonly id: string;
|
|
786
|
+
} | {
|
|
787
|
+
readonly _tag: "OpaqueVersion";
|
|
788
|
+
readonly provider: string;
|
|
789
|
+
readonly id: string;
|
|
790
|
+
} | undefined;
|
|
791
|
+
};
|
|
792
|
+
readonly size?: number | undefined;
|
|
793
|
+
readonly etag?: string | undefined;
|
|
794
|
+
readonly lastModified?: import("effect/DateTime").Utc | undefined;
|
|
795
|
+
readonly checksums?: readonly {
|
|
796
|
+
readonly algorithm: string;
|
|
797
|
+
readonly encoding: "base64" | "hex";
|
|
798
|
+
readonly scope: "composite" | "full-object";
|
|
799
|
+
readonly value: string;
|
|
800
|
+
readonly partCount?: number | undefined;
|
|
801
|
+
}[] | undefined;
|
|
802
|
+
readonly storageClass?: string | undefined;
|
|
803
|
+
} | undefined;
|
|
804
|
+
readonly error?: StorageError | undefined;
|
|
805
|
+
}[];
|
|
806
|
+
}[];
|
|
807
|
+
nextOffset?: number;
|
|
808
|
+
}, StorageError, never>;
|
|
809
|
+
applyRepair: (id: string, options?: {
|
|
810
|
+
readonly limit?: number;
|
|
811
|
+
}) => Effect.Effect<{
|
|
812
|
+
readonly id: string;
|
|
813
|
+
readonly binding: string;
|
|
814
|
+
readonly count: number;
|
|
815
|
+
readonly offset: number;
|
|
816
|
+
readonly state: "applying" | "completed" | "partial" | "planned";
|
|
817
|
+
readonly unresolved: number;
|
|
818
|
+
readonly prefix: string;
|
|
819
|
+
}, StorageError, never>;
|
|
820
|
+
}, StorageError, import("effect/FileSystem").FileSystem | MirrorStore | import("effect/Path").Path | SecureRandom.SecureRandom | TransferHash>;
|
|
821
|
+
static layer<EP, RP, ER, RR>(options: Omit<MirrorOptions, "primary" | "replicas"> & {
|
|
822
|
+
readonly primary: Layer.Layer<Storage | TransferDriver, EP, RP>;
|
|
823
|
+
readonly replicas: ReadonlyArray<{
|
|
824
|
+
readonly storage: Layer.Layer<Storage | TransferDriver, ER, RR>;
|
|
825
|
+
readonly required: boolean;
|
|
826
|
+
}>;
|
|
827
|
+
}): Layer.Layer<Storage | StorageMirror | TransferDriver, EP | ER | StorageError, import("effect/FileSystem").FileSystem | MirrorStore | import("effect/Path").Path | SecureRandom.SecureRandom | TransferHash | Exclude<RP, Scope.Scope> | Exclude<RR, Scope.Scope>>;
|
|
828
|
+
}
|
|
829
|
+
export { MirrorOperation, MirrorRepairPlan, type WorkflowStoreOptions as MirrorStoreOptions };
|
|
830
|
+
//# sourceMappingURL=mirror.d.ts.map
|