@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,6 @@
|
|
|
1
|
+
import { MemoryOptions } from "./testing/memory-state.js";
|
|
2
|
+
import { memory_d_exports } from "./testing/memory.js";
|
|
3
|
+
import { FaultAttempt, FaultController, FaultDiagnostic, FaultStep, faults_d_exports } from "./testing/faults.js";
|
|
4
|
+
import { ConformanceFailure } from "./testing/conformance/assertions.js";
|
|
5
|
+
import { ConformanceResult, StorageConformanceCase, runStorageConformance, storageConformanceCases } from "./testing/conformance.js";
|
|
6
|
+
export { ConformanceFailure, type ConformanceResult, type FaultAttempt, type FaultController, type FaultDiagnostic, type FaultStep, faults_d_exports as Faults, type MemoryOptions, memory_d_exports as MemoryStorage, type StorageConformanceCase, runStorageConformance, storageConformanceCases };
|
package/dist/testing.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { memory_exports } from "./testing/memory.js";
|
|
2
|
+
import { faults_exports } from "./testing/faults.js";
|
|
3
|
+
import { ConformanceFailure } from "./testing/conformance/assertions.js";
|
|
4
|
+
import { runStorageConformance, storageConformanceCases } from "./testing/conformance.js";
|
|
5
|
+
|
|
6
|
+
export { ConformanceFailure, faults_exports as Faults, memory_exports as MemoryStorage, runStorageConformance, storageConformanceCases };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { StorageError } from "../core/errors.js";
|
|
2
|
+
import "../index.js";
|
|
3
|
+
import { Effect, Redacted } from "effect";
|
|
4
|
+
export declare namespace TigrisEvents {
|
|
5
|
+
/** messageId must identify an authenticated delivery; native payloads have no stable event ID. */
|
|
6
|
+
const decode: (payload: unknown, options: {
|
|
7
|
+
readonly bucket: string;
|
|
8
|
+
readonly storeId: string;
|
|
9
|
+
readonly messageId: string;
|
|
10
|
+
}) => Effect.Effect<{
|
|
11
|
+
readonly provider: string;
|
|
12
|
+
readonly kind: "delete-marker-created" | "metadata-updated" | "object-created" | "object-deleted" | "other" | "restore-completed" | "version-archived";
|
|
13
|
+
readonly ref: {
|
|
14
|
+
readonly storeId: string;
|
|
15
|
+
readonly key: string;
|
|
16
|
+
readonly version?: {
|
|
17
|
+
readonly _tag: "S3Version";
|
|
18
|
+
readonly id: string;
|
|
19
|
+
} | {
|
|
20
|
+
readonly _tag: "GcsGeneration";
|
|
21
|
+
readonly id: string;
|
|
22
|
+
readonly metageneration?: string | undefined;
|
|
23
|
+
} | {
|
|
24
|
+
readonly _tag: "AzureVersion";
|
|
25
|
+
readonly id: string;
|
|
26
|
+
} | {
|
|
27
|
+
readonly _tag: "AzureSnapshot";
|
|
28
|
+
readonly id: string;
|
|
29
|
+
} | {
|
|
30
|
+
readonly _tag: "OpaqueVersion";
|
|
31
|
+
readonly provider: string;
|
|
32
|
+
readonly id: string;
|
|
33
|
+
} | undefined;
|
|
34
|
+
};
|
|
35
|
+
readonly occurredAt: import("effect/DateTime").Utc;
|
|
36
|
+
readonly id?: string | undefined;
|
|
37
|
+
readonly sequencer?: string | undefined;
|
|
38
|
+
readonly nativeType: string;
|
|
39
|
+
readonly native?: Redacted.Redacted<unknown> | undefined;
|
|
40
|
+
}[], StorageError, never>;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=events.d.ts.map
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { storageError } from "../core/errors.js";
|
|
2
|
+
import { decodeRequest } from "../internal/request-validation.js";
|
|
3
|
+
import { StorageEvent } from "../events.js";
|
|
4
|
+
import { decodeResponse } from "../internal/provider-response.js";
|
|
5
|
+
import { Effect, Redacted, Schema } from "effect";
|
|
6
|
+
|
|
7
|
+
// src/providers/tigris/events.ts
|
|
8
|
+
let TigrisEvents;
|
|
9
|
+
(function(_TigrisEvents) {
|
|
10
|
+
_TigrisEvents.decode = Effect.fnUntraced(function* (payload, options) {
|
|
11
|
+
yield* decodeRequest(Schema.NonEmptyString, options.messageId, "decodeEvent", "tigris");
|
|
12
|
+
const batch = yield* decodeResponse(Schema.Struct({ events: Schema.Array(Schema.Struct({
|
|
13
|
+
eventVersion: Schema.NonEmptyString,
|
|
14
|
+
eventSource: Schema.Literal("tigris"),
|
|
15
|
+
eventName: Schema.NonEmptyString,
|
|
16
|
+
eventTime: Schema.DateTimeUtcFromString,
|
|
17
|
+
bucket: Schema.NonEmptyString,
|
|
18
|
+
object: Schema.Struct({ key: Schema.NonEmptyString })
|
|
19
|
+
})).check(Schema.isMaxLength(1e3)) }), payload, "decodeEvent", "tigris");
|
|
20
|
+
return yield* Effect.forEach(batch.events, (event, index) => Effect.gen(function* () {
|
|
21
|
+
if (event.bucket !== options.bucket) return yield* storageError("decodeEvent", "tigris", {
|
|
22
|
+
_tag: "InvalidInput",
|
|
23
|
+
field: "bucket"
|
|
24
|
+
});
|
|
25
|
+
return yield* decodeRequest(StorageEvent, {
|
|
26
|
+
provider: "tigris",
|
|
27
|
+
kind: event.eventName === "OBJECT_CREATED_PUT" ? "object-created" : event.eventName === "OBJECT_DELETED" ? "object-deleted" : "other",
|
|
28
|
+
ref: {
|
|
29
|
+
storeId: options.storeId,
|
|
30
|
+
key: event.object.key
|
|
31
|
+
},
|
|
32
|
+
occurredAt: event.eventTime,
|
|
33
|
+
id: `${options.messageId}:${String(index)}`,
|
|
34
|
+
nativeType: event.eventName,
|
|
35
|
+
native: Redacted.make(payload)
|
|
36
|
+
}, "decodeEvent", "tigris");
|
|
37
|
+
}));
|
|
38
|
+
});
|
|
39
|
+
})(TigrisEvents || (TigrisEvents = {}));
|
|
40
|
+
|
|
41
|
+
export { TigrisEvents };
|
|
42
|
+
//# sourceMappingURL=events.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.js","names":[],"sources":["../../src/providers/tigris/events.ts"],"sourcesContent":["import { Effect, Redacted, Schema } from \"effect\";\n\nimport { storageError } from \"../../core/errors.js\";\nimport { decodeResponse } from \"../../internal/provider-response.js\";\nimport { decodeRequest } from \"../../internal/request-validation.js\";\nimport { StorageEvent } from \"../../lifecycle/events.js\";\n\nexport namespace TigrisEvents {\n /** messageId must identify an authenticated delivery; native payloads have no stable event ID. */\n export const decode = Effect.fnUntraced(function* (\n payload: unknown,\n options: { readonly bucket: string; readonly storeId: string; readonly messageId: string },\n ) {\n yield* decodeRequest(Schema.NonEmptyString, options.messageId, \"decodeEvent\", \"tigris\");\n const batch = yield* decodeResponse(\n Schema.Struct({\n events: Schema.Array(\n Schema.Struct({\n eventVersion: Schema.NonEmptyString,\n eventSource: Schema.Literal(\"tigris\"),\n eventName: Schema.NonEmptyString,\n eventTime: Schema.DateTimeUtcFromString,\n bucket: Schema.NonEmptyString,\n object: Schema.Struct({ key: Schema.NonEmptyString }),\n }),\n ).check(Schema.isMaxLength(1000)),\n }),\n payload,\n \"decodeEvent\",\n \"tigris\",\n );\n return yield* Effect.forEach(batch.events, (event, index) =>\n Effect.gen(function* () {\n if (event.bucket !== options.bucket)\n return yield* storageError(\"decodeEvent\", \"tigris\", {\n _tag: \"InvalidInput\",\n field: \"bucket\",\n });\n return yield* decodeRequest(\n StorageEvent,\n {\n provider: \"tigris\",\n kind:\n event.eventName === \"OBJECT_CREATED_PUT\"\n ? \"object-created\"\n : event.eventName === \"OBJECT_DELETED\"\n ? \"object-deleted\"\n : \"other\",\n ref: { storeId: options.storeId, key: event.object.key },\n occurredAt: event.eventTime,\n id: `${options.messageId}:${String(index)}`,\n nativeType: event.eventName,\n native: Redacted.make(payload),\n },\n \"decodeEvent\",\n \"tigris\",\n );\n }),\n );\n });\n}\n"],"mappings":";;;;;;;AAOO,IAAU;CAAV;wBAEiB,OAAO,WAAW,WACtC,SACA,SACA;EACA,OAAO,cAAc,OAAO,gBAAgB,QAAQ,WAAW,eAAe,QAAQ;EACtF,MAAM,QAAQ,OAAO,eACnB,OAAO,OAAO,EACZ,QAAQ,OAAO,MACb,OAAO,OAAO;GACZ,cAAc,OAAO;GACrB,aAAa,OAAO,QAAQ,QAAQ;GACpC,WAAW,OAAO;GAClB,WAAW,OAAO;GAClB,QAAQ,OAAO;GACf,QAAQ,OAAO,OAAO,EAAE,KAAK,OAAO,eAAe,CAAC;EACtD,CAAC,CACH,CAAC,CAAC,MAAM,OAAO,YAAY,GAAI,CAAC,EAClC,CAAC,GACD,SACA,eACA,QACF;EACA,OAAO,OAAO,OAAO,QAAQ,MAAM,SAAS,OAAO,UACjD,OAAO,IAAI,aAAa;GACtB,IAAI,MAAM,WAAW,QAAQ,QAC3B,OAAO,OAAO,aAAa,eAAe,UAAU;IAClD,MAAM;IACN,OAAO;GACT,CAAC;GACH,OAAO,OAAO,cACZ,cACA;IACE,UAAU;IACV,MACE,MAAM,cAAc,uBAChB,mBACA,MAAM,cAAc,mBAClB,mBACA;IACR,KAAK;KAAE,SAAS,QAAQ;KAAS,KAAK,MAAM,OAAO;IAAI;IACvD,YAAY,MAAM;IAClB,IAAI,GAAG,QAAQ,UAAU,GAAG,OAAO,KAAK;IACxC,YAAY,MAAM;IAClB,QAAQ,SAAS,KAAK,OAAO;GAC/B,GACA,eACA,QACF;EACF,CAAC,CACH;CACF,CAAC;EACF,oCAAD"}
|
|
@@ -0,0 +1,438 @@
|
|
|
1
|
+
import { StorageError } from "../core/errors.js";
|
|
2
|
+
import { ArchiveService, VersionRef } from "../lifecycle.js";
|
|
3
|
+
import "../index.js";
|
|
4
|
+
import { S3Storage, S3StorageService } from "../s3.js";
|
|
5
|
+
import { Context, Effect, Layer, Redacted } from "effect";
|
|
6
|
+
import * as Tigris from "@tigrisdata/storage";
|
|
7
|
+
export interface TigrisNativeConfig {
|
|
8
|
+
readonly endpoint: string;
|
|
9
|
+
readonly organizationId?: string;
|
|
10
|
+
readonly credentials: NonNullable<Tigris.TigrisConfig["credentialProvider"]>;
|
|
11
|
+
}
|
|
12
|
+
declare const TigrisAdministration_base: Context.ServiceClass<TigrisAdministration, "@effect-kit/storage/tigris/TigrisAdministration", {
|
|
13
|
+
configuration: {
|
|
14
|
+
update: (input: {
|
|
15
|
+
readonly bucket: string;
|
|
16
|
+
readonly settings: {
|
|
17
|
+
readonly access?: "private" | "public" | undefined;
|
|
18
|
+
readonly allowObjectAcl?: boolean | undefined;
|
|
19
|
+
readonly defaultTier?: "GLACIER" | "GLACIER_IR" | "STANDARD" | "STANDARD_IA" | undefined;
|
|
20
|
+
readonly disableDirectoryListing?: boolean | undefined;
|
|
21
|
+
readonly cacheControl?: string | undefined;
|
|
22
|
+
readonly customDomain?: string | undefined;
|
|
23
|
+
readonly enableAdditionalHeaders?: boolean | undefined;
|
|
24
|
+
readonly softDelete?: {
|
|
25
|
+
readonly enabled: true;
|
|
26
|
+
readonly retentionDays: number;
|
|
27
|
+
} | {
|
|
28
|
+
readonly enabled: false;
|
|
29
|
+
} | undefined;
|
|
30
|
+
};
|
|
31
|
+
readonly intent: "change-storage-protection";
|
|
32
|
+
}) => Effect.Effect<Tigris.UpdateBucketResponse, StorageError, never>;
|
|
33
|
+
setCors: (input: {
|
|
34
|
+
readonly bucket: string;
|
|
35
|
+
readonly rules: ReadonlyArray<{
|
|
36
|
+
readonly allowedOrigins: string | readonly string[];
|
|
37
|
+
readonly allowedMethods?: string | readonly string[] | undefined;
|
|
38
|
+
readonly allowedHeaders?: string | readonly string[] | undefined;
|
|
39
|
+
readonly exposeHeaders?: string | readonly string[] | undefined;
|
|
40
|
+
readonly maxAge?: number | undefined;
|
|
41
|
+
}>;
|
|
42
|
+
}) => Effect.Effect<Tigris.UpdateBucketResponse, StorageError, never>;
|
|
43
|
+
setLifecycle: (input: {
|
|
44
|
+
readonly bucket: string;
|
|
45
|
+
readonly rules: ReadonlyArray<{
|
|
46
|
+
readonly id?: string | undefined;
|
|
47
|
+
readonly enabled?: boolean | undefined;
|
|
48
|
+
readonly storageClass?: "GLACIER" | "GLACIER_IR" | "STANDARD_IA" | undefined;
|
|
49
|
+
readonly days?: number | undefined;
|
|
50
|
+
readonly date?: string | undefined;
|
|
51
|
+
readonly expiration?: {
|
|
52
|
+
readonly days?: number | undefined;
|
|
53
|
+
readonly date?: string | undefined;
|
|
54
|
+
} | undefined;
|
|
55
|
+
readonly filter?: {
|
|
56
|
+
readonly prefix: string;
|
|
57
|
+
} | undefined;
|
|
58
|
+
}>;
|
|
59
|
+
readonly intent: "change-storage-protection";
|
|
60
|
+
}) => Effect.Effect<Tigris.UpdateBucketResponse, StorageError, never>;
|
|
61
|
+
setNotifications: (input: {
|
|
62
|
+
readonly bucket: string;
|
|
63
|
+
readonly enabled: boolean;
|
|
64
|
+
readonly url?: string;
|
|
65
|
+
readonly filter?: string;
|
|
66
|
+
readonly token?: Redacted.Redacted<string>;
|
|
67
|
+
}) => Effect.Effect<Tigris.UpdateBucketResponse, StorageError, never>;
|
|
68
|
+
};
|
|
69
|
+
listPage: (input?: {
|
|
70
|
+
readonly cursor?: string;
|
|
71
|
+
readonly limit?: number;
|
|
72
|
+
readonly deleted?: boolean;
|
|
73
|
+
}) => Effect.Effect<Tigris.ListBucketsResponse, StorageError, never>;
|
|
74
|
+
head: (input: {
|
|
75
|
+
readonly bucket: string;
|
|
76
|
+
}) => Effect.Effect<{
|
|
77
|
+
regions: string[];
|
|
78
|
+
locations: Tigris.BucketLocations;
|
|
79
|
+
isSnapshotEnabled: boolean;
|
|
80
|
+
forkInfo: {
|
|
81
|
+
hasChildren: boolean;
|
|
82
|
+
parents: Array<{
|
|
83
|
+
bucketName: string;
|
|
84
|
+
forkCreatedAt: Date;
|
|
85
|
+
snapshot: string;
|
|
86
|
+
snapshotCreatedAt: Date;
|
|
87
|
+
}>;
|
|
88
|
+
} | undefined;
|
|
89
|
+
sizeInfo: {
|
|
90
|
+
numberOfObjects: number | undefined;
|
|
91
|
+
size: number | undefined;
|
|
92
|
+
numberOfObjectsAllVersions: number | undefined;
|
|
93
|
+
};
|
|
94
|
+
settings: Redacted.Redacted<{
|
|
95
|
+
allowObjectAcl: boolean;
|
|
96
|
+
defaultTier: Tigris.StorageClass;
|
|
97
|
+
lifecycleRules?: Tigris.BucketLifecycleRule[];
|
|
98
|
+
dataMigration?: Omit<Tigris.BucketMigration, 'enabled'>;
|
|
99
|
+
ttlConfig?: Tigris.BucketTtl;
|
|
100
|
+
customDomain?: string;
|
|
101
|
+
softDelete: {
|
|
102
|
+
enabled: true;
|
|
103
|
+
retentionDays: number;
|
|
104
|
+
} | {
|
|
105
|
+
enabled: false;
|
|
106
|
+
};
|
|
107
|
+
deleteProtection: boolean;
|
|
108
|
+
corsRules: Tigris.BucketCorsRule[];
|
|
109
|
+
additionalHeaders?: {
|
|
110
|
+
'X-Content-Type-Options': 'nosniff';
|
|
111
|
+
} | null | undefined;
|
|
112
|
+
notifications?: Tigris.BucketNotification;
|
|
113
|
+
shares: Tigris.BucketShares;
|
|
114
|
+
}>;
|
|
115
|
+
}, StorageError, never>;
|
|
116
|
+
create: (input: {
|
|
117
|
+
readonly bucket: string;
|
|
118
|
+
}) => Effect.Effect<{
|
|
119
|
+
_tag: "Accepted";
|
|
120
|
+
bucket: string;
|
|
121
|
+
}, StorageError, never>;
|
|
122
|
+
deleteEmpty: (input: {
|
|
123
|
+
readonly bucket: string;
|
|
124
|
+
}) => Effect.Effect<void, StorageError, never>;
|
|
125
|
+
restoreDeleted: (input: {
|
|
126
|
+
readonly bucket: string;
|
|
127
|
+
}) => Effect.Effect<Tigris.RestoreBucketResponse, StorageError, never>;
|
|
128
|
+
snapshots: {
|
|
129
|
+
create: (input: {
|
|
130
|
+
readonly bucket: string;
|
|
131
|
+
readonly name?: string;
|
|
132
|
+
}) => Effect.Effect<{
|
|
133
|
+
snapshotVersion: string;
|
|
134
|
+
}, StorageError, never>;
|
|
135
|
+
listPage: (input: {
|
|
136
|
+
readonly bucket: string;
|
|
137
|
+
readonly cursor?: string;
|
|
138
|
+
readonly limit?: number;
|
|
139
|
+
}) => Effect.Effect<{
|
|
140
|
+
snapshots: {
|
|
141
|
+
version: string | undefined;
|
|
142
|
+
name: string | undefined;
|
|
143
|
+
createdAt: Date | undefined;
|
|
144
|
+
}[];
|
|
145
|
+
cursor: string | undefined;
|
|
146
|
+
}, StorageError, never>;
|
|
147
|
+
delete: (input: {
|
|
148
|
+
readonly bucket: string;
|
|
149
|
+
readonly version: string;
|
|
150
|
+
readonly intent: "delete-snapshot";
|
|
151
|
+
}) => Effect.Effect<void, StorageError, never>;
|
|
152
|
+
enable: (input: {
|
|
153
|
+
readonly bucket: string;
|
|
154
|
+
}) => Effect.Effect<Tigris.UpdateBucketResponse, StorageError, never>;
|
|
155
|
+
};
|
|
156
|
+
forks: {
|
|
157
|
+
listPage: (input: {
|
|
158
|
+
readonly bucket: string;
|
|
159
|
+
readonly cursor?: string;
|
|
160
|
+
readonly limit?: number;
|
|
161
|
+
}) => Effect.Effect<Tigris.ListForksResponse, StorageError, never>;
|
|
162
|
+
create: (input: {
|
|
163
|
+
readonly bucket: string;
|
|
164
|
+
readonly sourceBucket: string;
|
|
165
|
+
readonly snapshot: string;
|
|
166
|
+
}) => Effect.Effect<{
|
|
167
|
+
_tag: "Accepted";
|
|
168
|
+
bucket: string;
|
|
169
|
+
}, StorageError, never>;
|
|
170
|
+
merge: (input: {
|
|
171
|
+
readonly fork: string;
|
|
172
|
+
readonly destination: string;
|
|
173
|
+
readonly intent: "merge-fork";
|
|
174
|
+
}) => Effect.Effect<Tigris.MergeForkResponse, StorageError, never>;
|
|
175
|
+
rebase: (input: {
|
|
176
|
+
readonly fork: string;
|
|
177
|
+
readonly intent: "rebase-fork";
|
|
178
|
+
}) => Effect.Effect<Tigris.RebaseForkResponse, StorageError, never>;
|
|
179
|
+
};
|
|
180
|
+
}>;
|
|
181
|
+
export declare class TigrisAdministration extends TigrisAdministration_base {
|
|
182
|
+
static readonly make: (settings: TigrisNativeConfig) => Effect.Effect<{
|
|
183
|
+
configuration: {
|
|
184
|
+
update: (input: {
|
|
185
|
+
readonly bucket: string;
|
|
186
|
+
readonly settings: {
|
|
187
|
+
readonly access?: "private" | "public" | undefined;
|
|
188
|
+
readonly allowObjectAcl?: boolean | undefined;
|
|
189
|
+
readonly defaultTier?: "GLACIER" | "GLACIER_IR" | "STANDARD" | "STANDARD_IA" | undefined;
|
|
190
|
+
readonly disableDirectoryListing?: boolean | undefined;
|
|
191
|
+
readonly cacheControl?: string | undefined;
|
|
192
|
+
readonly customDomain?: string | undefined;
|
|
193
|
+
readonly enableAdditionalHeaders?: boolean | undefined;
|
|
194
|
+
readonly softDelete?: {
|
|
195
|
+
readonly enabled: true;
|
|
196
|
+
readonly retentionDays: number;
|
|
197
|
+
} | {
|
|
198
|
+
readonly enabled: false;
|
|
199
|
+
} | undefined;
|
|
200
|
+
};
|
|
201
|
+
readonly intent: "change-storage-protection";
|
|
202
|
+
}) => Effect.Effect<Tigris.UpdateBucketResponse, StorageError, never>;
|
|
203
|
+
setCors: (input: {
|
|
204
|
+
readonly bucket: string;
|
|
205
|
+
readonly rules: ReadonlyArray<{
|
|
206
|
+
readonly allowedOrigins: string | readonly string[];
|
|
207
|
+
readonly allowedMethods?: string | readonly string[] | undefined;
|
|
208
|
+
readonly allowedHeaders?: string | readonly string[] | undefined;
|
|
209
|
+
readonly exposeHeaders?: string | readonly string[] | undefined;
|
|
210
|
+
readonly maxAge?: number | undefined;
|
|
211
|
+
}>;
|
|
212
|
+
}) => Effect.Effect<Tigris.UpdateBucketResponse, StorageError, never>;
|
|
213
|
+
setLifecycle: (input: {
|
|
214
|
+
readonly bucket: string;
|
|
215
|
+
readonly rules: ReadonlyArray<{
|
|
216
|
+
readonly id?: string | undefined;
|
|
217
|
+
readonly enabled?: boolean | undefined;
|
|
218
|
+
readonly storageClass?: "GLACIER" | "GLACIER_IR" | "STANDARD_IA" | undefined;
|
|
219
|
+
readonly days?: number | undefined;
|
|
220
|
+
readonly date?: string | undefined;
|
|
221
|
+
readonly expiration?: {
|
|
222
|
+
readonly days?: number | undefined;
|
|
223
|
+
readonly date?: string | undefined;
|
|
224
|
+
} | undefined;
|
|
225
|
+
readonly filter?: {
|
|
226
|
+
readonly prefix: string;
|
|
227
|
+
} | undefined;
|
|
228
|
+
}>;
|
|
229
|
+
readonly intent: "change-storage-protection";
|
|
230
|
+
}) => Effect.Effect<Tigris.UpdateBucketResponse, StorageError, never>;
|
|
231
|
+
setNotifications: (input: {
|
|
232
|
+
readonly bucket: string;
|
|
233
|
+
readonly enabled: boolean;
|
|
234
|
+
readonly url?: string;
|
|
235
|
+
readonly filter?: string;
|
|
236
|
+
readonly token?: Redacted.Redacted<string>;
|
|
237
|
+
}) => Effect.Effect<Tigris.UpdateBucketResponse, StorageError, never>;
|
|
238
|
+
};
|
|
239
|
+
listPage: (input?: {
|
|
240
|
+
readonly cursor?: string;
|
|
241
|
+
readonly limit?: number;
|
|
242
|
+
readonly deleted?: boolean;
|
|
243
|
+
}) => Effect.Effect<Tigris.ListBucketsResponse, StorageError, never>;
|
|
244
|
+
head: (input: {
|
|
245
|
+
readonly bucket: string;
|
|
246
|
+
}) => Effect.Effect<{
|
|
247
|
+
regions: string[];
|
|
248
|
+
locations: Tigris.BucketLocations;
|
|
249
|
+
isSnapshotEnabled: boolean;
|
|
250
|
+
forkInfo: {
|
|
251
|
+
hasChildren: boolean;
|
|
252
|
+
parents: Array<{
|
|
253
|
+
bucketName: string;
|
|
254
|
+
forkCreatedAt: Date;
|
|
255
|
+
snapshot: string;
|
|
256
|
+
snapshotCreatedAt: Date;
|
|
257
|
+
}>;
|
|
258
|
+
} | undefined;
|
|
259
|
+
sizeInfo: {
|
|
260
|
+
numberOfObjects: number | undefined;
|
|
261
|
+
size: number | undefined;
|
|
262
|
+
numberOfObjectsAllVersions: number | undefined;
|
|
263
|
+
};
|
|
264
|
+
settings: Redacted.Redacted<{
|
|
265
|
+
allowObjectAcl: boolean;
|
|
266
|
+
defaultTier: Tigris.StorageClass;
|
|
267
|
+
lifecycleRules?: Tigris.BucketLifecycleRule[];
|
|
268
|
+
dataMigration?: Omit<Tigris.BucketMigration, 'enabled'>;
|
|
269
|
+
ttlConfig?: Tigris.BucketTtl;
|
|
270
|
+
customDomain?: string;
|
|
271
|
+
softDelete: {
|
|
272
|
+
enabled: true;
|
|
273
|
+
retentionDays: number;
|
|
274
|
+
} | {
|
|
275
|
+
enabled: false;
|
|
276
|
+
};
|
|
277
|
+
deleteProtection: boolean;
|
|
278
|
+
corsRules: Tigris.BucketCorsRule[];
|
|
279
|
+
additionalHeaders?: {
|
|
280
|
+
'X-Content-Type-Options': 'nosniff';
|
|
281
|
+
} | null | undefined;
|
|
282
|
+
notifications?: Tigris.BucketNotification;
|
|
283
|
+
shares: Tigris.BucketShares;
|
|
284
|
+
}>;
|
|
285
|
+
}, StorageError, never>;
|
|
286
|
+
create: (input: {
|
|
287
|
+
readonly bucket: string;
|
|
288
|
+
}) => Effect.Effect<{
|
|
289
|
+
_tag: "Accepted";
|
|
290
|
+
bucket: string;
|
|
291
|
+
}, StorageError, never>;
|
|
292
|
+
deleteEmpty: (input: {
|
|
293
|
+
readonly bucket: string;
|
|
294
|
+
}) => Effect.Effect<void, StorageError, never>;
|
|
295
|
+
restoreDeleted: (input: {
|
|
296
|
+
readonly bucket: string;
|
|
297
|
+
}) => Effect.Effect<Tigris.RestoreBucketResponse, StorageError, never>;
|
|
298
|
+
snapshots: {
|
|
299
|
+
create: (input: {
|
|
300
|
+
readonly bucket: string;
|
|
301
|
+
readonly name?: string;
|
|
302
|
+
}) => Effect.Effect<{
|
|
303
|
+
snapshotVersion: string;
|
|
304
|
+
}, StorageError, never>;
|
|
305
|
+
listPage: (input: {
|
|
306
|
+
readonly bucket: string;
|
|
307
|
+
readonly cursor?: string;
|
|
308
|
+
readonly limit?: number;
|
|
309
|
+
}) => Effect.Effect<{
|
|
310
|
+
snapshots: {
|
|
311
|
+
version: string | undefined;
|
|
312
|
+
name: string | undefined;
|
|
313
|
+
createdAt: Date | undefined;
|
|
314
|
+
}[];
|
|
315
|
+
cursor: string | undefined;
|
|
316
|
+
}, StorageError, never>;
|
|
317
|
+
delete: (input: {
|
|
318
|
+
readonly bucket: string;
|
|
319
|
+
readonly version: string;
|
|
320
|
+
readonly intent: "delete-snapshot";
|
|
321
|
+
}) => Effect.Effect<void, StorageError, never>;
|
|
322
|
+
enable: (input: {
|
|
323
|
+
readonly bucket: string;
|
|
324
|
+
}) => Effect.Effect<Tigris.UpdateBucketResponse, StorageError, never>;
|
|
325
|
+
};
|
|
326
|
+
forks: {
|
|
327
|
+
listPage: (input: {
|
|
328
|
+
readonly bucket: string;
|
|
329
|
+
readonly cursor?: string;
|
|
330
|
+
readonly limit?: number;
|
|
331
|
+
}) => Effect.Effect<Tigris.ListForksResponse, StorageError, never>;
|
|
332
|
+
create: (input: {
|
|
333
|
+
readonly bucket: string;
|
|
334
|
+
readonly sourceBucket: string;
|
|
335
|
+
readonly snapshot: string;
|
|
336
|
+
}) => Effect.Effect<{
|
|
337
|
+
_tag: "Accepted";
|
|
338
|
+
bucket: string;
|
|
339
|
+
}, StorageError, never>;
|
|
340
|
+
merge: (input: {
|
|
341
|
+
readonly fork: string;
|
|
342
|
+
readonly destination: string;
|
|
343
|
+
readonly intent: "merge-fork";
|
|
344
|
+
}) => Effect.Effect<Tigris.MergeForkResponse, StorageError, never>;
|
|
345
|
+
rebase: (input: {
|
|
346
|
+
readonly fork: string;
|
|
347
|
+
readonly intent: "rebase-fork";
|
|
348
|
+
}) => Effect.Effect<Tigris.RebaseForkResponse, StorageError, never>;
|
|
349
|
+
};
|
|
350
|
+
}, StorageError, import("effect/Scope").Scope>;
|
|
351
|
+
static layer(config: TigrisNativeConfig): Layer.Layer<TigrisAdministration, StorageError, never>;
|
|
352
|
+
}
|
|
353
|
+
declare const recovery: (storage: S3StorageService) => {
|
|
354
|
+
restoreDeleted: (input: {
|
|
355
|
+
readonly ref: VersionRef;
|
|
356
|
+
}) => Effect.Effect<{
|
|
357
|
+
_tag: "Accepted";
|
|
358
|
+
source: {
|
|
359
|
+
readonly storeId: string;
|
|
360
|
+
readonly key: string;
|
|
361
|
+
readonly version: {
|
|
362
|
+
readonly _tag: "S3Version";
|
|
363
|
+
readonly id: string;
|
|
364
|
+
} | {
|
|
365
|
+
readonly _tag: "GcsGeneration";
|
|
366
|
+
readonly id: string;
|
|
367
|
+
readonly metageneration?: string | undefined;
|
|
368
|
+
} | {
|
|
369
|
+
readonly _tag: "AzureVersion";
|
|
370
|
+
readonly id: string;
|
|
371
|
+
} | {
|
|
372
|
+
readonly _tag: "AzureSnapshot";
|
|
373
|
+
readonly id: string;
|
|
374
|
+
} | {
|
|
375
|
+
readonly _tag: "OpaqueVersion";
|
|
376
|
+
readonly provider: string;
|
|
377
|
+
readonly id: string;
|
|
378
|
+
};
|
|
379
|
+
};
|
|
380
|
+
}, StorageError, never>;
|
|
381
|
+
purgeDeleted: (input: {
|
|
382
|
+
readonly ref: VersionRef;
|
|
383
|
+
readonly intent: "purge-deleted-version";
|
|
384
|
+
}) => Effect.Effect<undefined, StorageError, never>;
|
|
385
|
+
archive: ArchiveService<{
|
|
386
|
+
readonly days: number;
|
|
387
|
+
readonly tier: "Bulk" | "Expedited" | "Standard";
|
|
388
|
+
} | {
|
|
389
|
+
readonly storage: "intelligent-tiering";
|
|
390
|
+
readonly tier: "Bulk" | "Expedited" | "Standard";
|
|
391
|
+
}>;
|
|
392
|
+
};
|
|
393
|
+
declare const TigrisRecovery_base: Context.ServiceClass<TigrisRecovery, "@effect-kit/storage/tigris/TigrisRecovery", {
|
|
394
|
+
restoreDeleted: (input: {
|
|
395
|
+
readonly ref: VersionRef;
|
|
396
|
+
}) => Effect.Effect<{
|
|
397
|
+
_tag: "Accepted";
|
|
398
|
+
source: {
|
|
399
|
+
readonly storeId: string;
|
|
400
|
+
readonly key: string;
|
|
401
|
+
readonly version: {
|
|
402
|
+
readonly _tag: "S3Version";
|
|
403
|
+
readonly id: string;
|
|
404
|
+
} | {
|
|
405
|
+
readonly _tag: "GcsGeneration";
|
|
406
|
+
readonly id: string;
|
|
407
|
+
readonly metageneration?: string | undefined;
|
|
408
|
+
} | {
|
|
409
|
+
readonly _tag: "AzureVersion";
|
|
410
|
+
readonly id: string;
|
|
411
|
+
} | {
|
|
412
|
+
readonly _tag: "AzureSnapshot";
|
|
413
|
+
readonly id: string;
|
|
414
|
+
} | {
|
|
415
|
+
readonly _tag: "OpaqueVersion";
|
|
416
|
+
readonly provider: string;
|
|
417
|
+
readonly id: string;
|
|
418
|
+
};
|
|
419
|
+
};
|
|
420
|
+
}, StorageError, never>;
|
|
421
|
+
purgeDeleted: (input: {
|
|
422
|
+
readonly ref: VersionRef;
|
|
423
|
+
readonly intent: "purge-deleted-version";
|
|
424
|
+
}) => Effect.Effect<undefined, StorageError, never>;
|
|
425
|
+
archive: ArchiveService<{
|
|
426
|
+
readonly days: number;
|
|
427
|
+
readonly tier: "Bulk" | "Expedited" | "Standard";
|
|
428
|
+
} | {
|
|
429
|
+
readonly storage: "intelligent-tiering";
|
|
430
|
+
readonly tier: "Bulk" | "Expedited" | "Standard";
|
|
431
|
+
}>;
|
|
432
|
+
}>;
|
|
433
|
+
export declare class TigrisRecovery extends TigrisRecovery_base {
|
|
434
|
+
static readonly make: typeof recovery;
|
|
435
|
+
static readonly layer: Layer.Layer<TigrisRecovery, never, S3Storage>;
|
|
436
|
+
}
|
|
437
|
+
export {};
|
|
438
|
+
//# sourceMappingURL=native.d.ts.map
|