@effect-kit/storage 0.0.0-stage → 0.0.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/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,75 @@
|
|
|
1
|
+
import { Storage } from "./core/storage.js";
|
|
2
|
+
import { TransferDriver } from "./transfers/dependencies.js";
|
|
3
|
+
import { syncDirectory } from "./runtime/filesystem.js";
|
|
4
|
+
import { fileError, makeLayout, mapIO } from "./providers/filesystem/layout.js";
|
|
5
|
+
import { list } from "./providers/filesystem/list.js";
|
|
6
|
+
import { get, head, put } from "./providers/filesystem/operations.js";
|
|
7
|
+
import { Context, Effect, Layer } from "effect";
|
|
8
|
+
|
|
9
|
+
// src/providers/filesystem/index.ts
|
|
10
|
+
var FilesystemStorage = class FilesystemStorage extends Context.Service()("@effect-kit/storage/FilesystemStorage") {
|
|
11
|
+
static make = Effect.fnUntraced(function* (options) {
|
|
12
|
+
const context = yield* makeLayout(options).pipe(Effect.mapError((error) => error._tag === "PlatformError" ? mapIO("make")(error) : error));
|
|
13
|
+
const { fs } = context;
|
|
14
|
+
return {
|
|
15
|
+
...Storage.make({
|
|
16
|
+
provider: "filesystem",
|
|
17
|
+
storeId: context.storeId,
|
|
18
|
+
capabilities: {
|
|
19
|
+
putConditions: ["create-only"],
|
|
20
|
+
getConditions: ["if-match", "if-none-match"],
|
|
21
|
+
deleteConditions: [],
|
|
22
|
+
ranges: [
|
|
23
|
+
"bounded",
|
|
24
|
+
"from",
|
|
25
|
+
"suffix"
|
|
26
|
+
],
|
|
27
|
+
versionedReads: "none",
|
|
28
|
+
list: {
|
|
29
|
+
maxPageSize: 1e3,
|
|
30
|
+
delimiter: true,
|
|
31
|
+
cursorPersistence: "provider",
|
|
32
|
+
snapshot: false
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
put: (request) => put(context, request),
|
|
36
|
+
get: (request) => get(context, request),
|
|
37
|
+
head: (request) => head(context, request),
|
|
38
|
+
delete: Effect.fnUntraced(function* (request) {
|
|
39
|
+
yield* context.checkDirectories;
|
|
40
|
+
const key = "ref" in request ? request.ref.key : request.key;
|
|
41
|
+
const filename = yield* context.filename(key);
|
|
42
|
+
yield* context.regularFile(filename).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.void), Effect.mapError((error) => error._tag === "PlatformError" ? mapIO("delete", "not-started")(error) : error));
|
|
43
|
+
yield* fs.remove(filename, { force: true }).pipe(Effect.andThen(syncDirectory(fs, context.objects)), Effect.uninterruptible, Effect.mapError(mapIO("delete", "unknown")));
|
|
44
|
+
}),
|
|
45
|
+
listPage: (request) => list(context, request)
|
|
46
|
+
}),
|
|
47
|
+
reclaimStaging: Effect.fnUntraced(function* (ownership) {
|
|
48
|
+
if (ownership.ownership !== "exclusive") return yield* fileError("reclaimStaging", "ExclusiveOwnershipRequired", "not-started");
|
|
49
|
+
yield* context.checkDirectories;
|
|
50
|
+
const names = yield* fs.readDirectory(context.staging).pipe(Effect.mapError(mapIO("reclaimStaging")));
|
|
51
|
+
let removed = 0;
|
|
52
|
+
for (const name of names) {
|
|
53
|
+
if (!/^upload-[a-f0-9-]{36}\.pending$/u.test(name)) continue;
|
|
54
|
+
const filename = context.path.join(context.staging, name);
|
|
55
|
+
yield* context.regularFile(filename).pipe(Effect.mapError((error) => error._tag === "PlatformError" ? mapIO("reclaimStaging")(error) : error));
|
|
56
|
+
yield* fs.remove(filename).pipe(Effect.uninterruptible, Effect.mapError(mapIO("reclaimStaging", "unknown")));
|
|
57
|
+
removed++;
|
|
58
|
+
}
|
|
59
|
+
yield* syncDirectory(fs, context.staging).pipe(Effect.uninterruptible, Effect.mapError(mapIO("reclaimStaging", "unknown")));
|
|
60
|
+
return removed;
|
|
61
|
+
})
|
|
62
|
+
};
|
|
63
|
+
});
|
|
64
|
+
static layer(options) {
|
|
65
|
+
return Layer.effectContext(Effect.map(FilesystemStorage.make(options), (service) => Context.make(Storage, service).pipe(Context.add(FilesystemStorage, service), Context.add(TransferDriver, {
|
|
66
|
+
storage: service,
|
|
67
|
+
maximumObjectBytes: options.maxObjectBytes ?? 1073741824,
|
|
68
|
+
maximumSingleUploadBytes: options.maxObjectBytes ?? 1073741824,
|
|
69
|
+
transportOverheadBytes: 98304
|
|
70
|
+
}))));
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
export { FilesystemStorage };
|
|
75
|
+
//# sourceMappingURL=filesystem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filesystem.js","names":[],"sources":["../src/providers/filesystem/index.ts"],"sourcesContent":["import { Context, Effect, Layer } from \"effect\";\n\nimport type { StorageError } from \"../../core/errors.js\";\nimport { Storage } from \"../../core/storage.js\";\nimport type { StorageService } from \"../../core/storage.js\";\nimport { syncDirectory } from \"../../runtime/filesystem.js\";\nimport { TransferDriver } from \"../../transfers/dependencies.js\";\nimport type { FilesystemOptions } from \"./layout.js\";\nimport { makeLayout, mapIO, fileError } from \"./layout.js\";\nimport { list } from \"./list.js\";\nimport { get, head, put } from \"./operations.js\";\n\nexport type { FilesystemOptions } from \"./layout.js\";\nexport interface FilesystemStorageService extends StorageService {\n /** Only call after excluding every writer across processes. No age heuristic proves ownership. */\n readonly reclaimStaging: (options: {\n readonly ownership: \"exclusive\";\n }) => Effect.Effect<number, StorageError>;\n}\n\nexport class FilesystemStorage extends Context.Service<\n FilesystemStorage,\n FilesystemStorageService\n>()(\"@effect-kit/storage/FilesystemStorage\") {\n static readonly make = Effect.fnUntraced(function* (options: FilesystemOptions) {\n const context = yield* makeLayout(options).pipe(\n Effect.mapError((error) => (error._tag === \"PlatformError\" ? mapIO(\"make\")(error) : error)),\n );\n const { fs } = context;\n const storage = Storage.make({\n provider: \"filesystem\",\n storeId: context.storeId,\n capabilities: {\n putConditions: [\"create-only\"],\n getConditions: [\"if-match\", \"if-none-match\"],\n deleteConditions: [],\n ranges: [\"bounded\", \"from\", \"suffix\"],\n versionedReads: \"none\",\n list: {\n maxPageSize: 1000,\n delimiter: true,\n cursorPersistence: \"provider\",\n snapshot: false,\n },\n },\n put: (request) => put(context, request),\n get: (request) => get(context, request),\n head: (request) => head(context, request),\n delete: Effect.fnUntraced(function* (request) {\n yield* context.checkDirectories;\n const key = \"ref\" in request ? request.ref.key : request.key;\n const filename = yield* context.filename(key);\n yield* context.regularFile(filename).pipe(\n Effect.catchReason(\"PlatformError\", \"NotFound\", () => Effect.void),\n Effect.mapError((error) =>\n error._tag === \"PlatformError\" ? mapIO(\"delete\", \"not-started\")(error) : error,\n ),\n );\n yield* fs\n .remove(filename, { force: true })\n .pipe(\n Effect.andThen(syncDirectory(fs, context.objects)),\n Effect.uninterruptible,\n Effect.mapError(mapIO(\"delete\", \"unknown\")),\n );\n }),\n listPage: (request) => list(context, request),\n });\n const service: FilesystemStorageService = {\n ...storage,\n reclaimStaging: Effect.fnUntraced(function* (ownership) {\n if (ownership.ownership !== \"exclusive\")\n return yield* fileError(\"reclaimStaging\", \"ExclusiveOwnershipRequired\", \"not-started\");\n yield* context.checkDirectories;\n const names = yield* fs\n .readDirectory(context.staging)\n .pipe(Effect.mapError(mapIO(\"reclaimStaging\")));\n let removed = 0;\n for (const name of names) {\n if (!/^upload-[a-f0-9-]{36}\\.pending$/u.test(name)) continue;\n const filename = context.path.join(context.staging, name);\n yield* context\n .regularFile(filename)\n .pipe(\n Effect.mapError((error) =>\n error._tag === \"PlatformError\" ? mapIO(\"reclaimStaging\")(error) : error,\n ),\n );\n yield* fs\n .remove(filename)\n .pipe(Effect.uninterruptible, Effect.mapError(mapIO(\"reclaimStaging\", \"unknown\")));\n removed++;\n }\n yield* syncDirectory(fs, context.staging).pipe(\n Effect.uninterruptible,\n Effect.mapError(mapIO(\"reclaimStaging\", \"unknown\")),\n );\n return removed;\n }),\n };\n return service;\n });\n\n static layer(options: FilesystemOptions) {\n return Layer.effectContext(\n Effect.map(FilesystemStorage.make(options), (service) =>\n Context.make(Storage, service).pipe(\n Context.add(FilesystemStorage, service),\n Context.add(TransferDriver, {\n storage: service,\n maximumObjectBytes: options.maxObjectBytes ?? 1024 * 1024 * 1024,\n maximumSingleUploadBytes: options.maxObjectBytes ?? 1024 * 1024 * 1024,\n transportOverheadBytes: 65536 + 32768,\n }),\n ),\n ),\n );\n }\n}\n"],"mappings":";;;;;;;;;AAoBA,IAAa,oBAAb,MAAa,0BAA0B,QAAQ,QAG7C,CAAC,CAAC,uCAAuC,CAAC,CAAC;CAC3C,OAAgB,OAAO,OAAO,WAAW,WAAW,SAA4B;EAC9E,MAAM,UAAU,OAAO,WAAW,OAAO,CAAC,CAAC,KACzC,OAAO,UAAU,UAAW,MAAM,SAAS,kBAAkB,MAAM,MAAM,CAAC,CAAC,KAAK,IAAI,KAAM,CAC5F;EACA,MAAM,EAAE,OAAO;EAwEf,OAAO;GA/BL,GAxCc,QAAQ,KAAK;IAC3B,UAAU;IACV,SAAS,QAAQ;IACjB,cAAc;KACZ,eAAe,CAAC,aAAa;KAC7B,eAAe,CAAC,YAAY,eAAe;KAC3C,kBAAkB,CAAC;KACnB,QAAQ;MAAC;MAAW;MAAQ;KAAQ;KACpC,gBAAgB;KAChB,MAAM;MACJ,aAAa;MACb,WAAW;MACX,mBAAmB;MACnB,UAAU;KACZ;IACF;IACA,MAAM,YAAY,IAAI,SAAS,OAAO;IACtC,MAAM,YAAY,IAAI,SAAS,OAAO;IACtC,OAAO,YAAY,KAAK,SAAS,OAAO;IACxC,QAAQ,OAAO,WAAW,WAAW,SAAS;KAC5C,OAAO,QAAQ;KACf,MAAM,MAAM,SAAS,UAAU,QAAQ,IAAI,MAAM,QAAQ;KACzD,MAAM,WAAW,OAAO,QAAQ,SAAS,GAAG;KAC5C,OAAO,QAAQ,YAAY,QAAQ,CAAC,CAAC,KACnC,OAAO,YAAY,iBAAiB,kBAAkB,OAAO,IAAI,GACjE,OAAO,UAAU,UACf,MAAM,SAAS,kBAAkB,MAAM,UAAU,aAAa,CAAC,CAAC,KAAK,IAAI,KAC3E,CACF;KACA,OAAO,GACJ,OAAO,UAAU,EAAE,OAAO,KAAK,CAAC,CAAC,CACjC,KACC,OAAO,QAAQ,cAAc,IAAI,QAAQ,OAAO,CAAC,GACjD,OAAO,iBACP,OAAO,SAAS,MAAM,UAAU,SAAS,CAAC,CAC5C;IACJ,CAAC;IACD,WAAW,YAAY,KAAK,SAAS,OAAO;GAC9C,CAEW;GACT,gBAAgB,OAAO,WAAW,WAAW,WAAW;IACtD,IAAI,UAAU,cAAc,aAC1B,OAAO,OAAO,UAAU,kBAAkB,8BAA8B,aAAa;IACvF,OAAO,QAAQ;IACf,MAAM,QAAQ,OAAO,GAClB,cAAc,QAAQ,OAAO,CAAC,CAC9B,KAAK,OAAO,SAAS,MAAM,gBAAgB,CAAC,CAAC;IAChD,IAAI,UAAU;IACd,KAAK,MAAM,QAAQ,OAAO;KACxB,IAAI,CAAC,mCAAmC,KAAK,IAAI,GAAG;KACpD,MAAM,WAAW,QAAQ,KAAK,KAAK,QAAQ,SAAS,IAAI;KACxD,OAAO,QACJ,YAAY,QAAQ,CAAC,CACrB,KACC,OAAO,UAAU,UACf,MAAM,SAAS,kBAAkB,MAAM,gBAAgB,CAAC,CAAC,KAAK,IAAI,KACpE,CACF;KACF,OAAO,GACJ,OAAO,QAAQ,CAAC,CAChB,KAAK,OAAO,iBAAiB,OAAO,SAAS,MAAM,kBAAkB,SAAS,CAAC,CAAC;KACnF;IACF;IACA,OAAO,cAAc,IAAI,QAAQ,OAAO,CAAC,CAAC,KACxC,OAAO,iBACP,OAAO,SAAS,MAAM,kBAAkB,SAAS,CAAC,CACpD;IACA,OAAO;GACT,CAAC;EAEU;CACf,CAAC;CAED,OAAO,MAAM,SAA4B;EACvC,OAAO,MAAM,cACX,OAAO,IAAI,kBAAkB,KAAK,OAAO,IAAI,YAC3C,QAAQ,KAAK,SAAS,OAAO,CAAC,CAAC,KAC7B,QAAQ,IAAI,mBAAmB,OAAO,GACtC,QAAQ,IAAI,gBAAgB;GAC1B,SAAS;GACT,oBAAoB,QAAQ,kBAAkB;GAC9C,0BAA0B,QAAQ,kBAAkB;GACpD,wBAAwB;EAC1B,CAAC,CACH,CACF,CACF;CACF;AACF"}
|
|
@@ -0,0 +1,470 @@
|
|
|
1
|
+
import { StorageError } from "../core/errors.js";
|
|
2
|
+
import "../index.js";
|
|
3
|
+
import { GcsConfig } from "../providers/gcs/config.js";
|
|
4
|
+
import "../gcs.js";
|
|
5
|
+
import { Context, Effect, Layer, Schema } from "effect";
|
|
6
|
+
declare const Configuration: Schema.Struct<{
|
|
7
|
+
readonly cors: Schema.optional<Schema.$Array<Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
8
|
+
readonly lifecycle: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
9
|
+
readonly versioning: Schema.optional<Schema.Struct<{
|
|
10
|
+
readonly enabled: Schema.Boolean;
|
|
11
|
+
}>>;
|
|
12
|
+
readonly encryption: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
13
|
+
readonly retentionPolicy: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
14
|
+
readonly softDeletePolicy: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
15
|
+
readonly iamConfiguration: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
16
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
17
|
+
readonly logging: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
18
|
+
readonly website: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
19
|
+
readonly autoclass: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
20
|
+
}>;
|
|
21
|
+
export type GcsBucketConfiguration = typeof Configuration.Type;
|
|
22
|
+
declare const GcsAdministration_base: Context.ServiceClass<GcsAdministration, "@effect-kit/storage/gcs/GcsAdministration", {
|
|
23
|
+
head: (input: {
|
|
24
|
+
readonly bucket: string;
|
|
25
|
+
}) => Effect.Effect<{
|
|
26
|
+
readonly cors?: readonly {
|
|
27
|
+
readonly [x: string]: unknown;
|
|
28
|
+
}[] | undefined;
|
|
29
|
+
readonly lifecycle?: {
|
|
30
|
+
readonly [x: string]: unknown;
|
|
31
|
+
} | undefined;
|
|
32
|
+
readonly versioning?: {
|
|
33
|
+
readonly enabled: boolean;
|
|
34
|
+
} | undefined;
|
|
35
|
+
readonly encryption?: {
|
|
36
|
+
readonly [x: string]: unknown;
|
|
37
|
+
} | undefined;
|
|
38
|
+
readonly retentionPolicy?: {
|
|
39
|
+
readonly [x: string]: unknown;
|
|
40
|
+
} | undefined;
|
|
41
|
+
readonly softDeletePolicy?: {
|
|
42
|
+
readonly [x: string]: unknown;
|
|
43
|
+
} | undefined;
|
|
44
|
+
readonly iamConfiguration?: {
|
|
45
|
+
readonly [x: string]: unknown;
|
|
46
|
+
} | undefined;
|
|
47
|
+
readonly labels?: {
|
|
48
|
+
readonly [x: string]: string;
|
|
49
|
+
} | undefined;
|
|
50
|
+
readonly logging?: {
|
|
51
|
+
readonly [x: string]: unknown;
|
|
52
|
+
} | undefined;
|
|
53
|
+
readonly website?: {
|
|
54
|
+
readonly [x: string]: unknown;
|
|
55
|
+
} | undefined;
|
|
56
|
+
readonly autoclass?: {
|
|
57
|
+
readonly [x: string]: unknown;
|
|
58
|
+
} | undefined;
|
|
59
|
+
readonly name: string;
|
|
60
|
+
readonly metageneration: string;
|
|
61
|
+
}, StorageError, never>;
|
|
62
|
+
iam: {
|
|
63
|
+
get: (input: {
|
|
64
|
+
readonly bucket: string;
|
|
65
|
+
}) => Effect.Effect<{
|
|
66
|
+
readonly version: 1 | 3;
|
|
67
|
+
readonly etag: string;
|
|
68
|
+
readonly bindings: readonly {
|
|
69
|
+
readonly role: string;
|
|
70
|
+
readonly members: readonly string[];
|
|
71
|
+
readonly condition?: {
|
|
72
|
+
readonly title: string;
|
|
73
|
+
readonly expression: string;
|
|
74
|
+
readonly description?: string | undefined;
|
|
75
|
+
} | undefined;
|
|
76
|
+
}[];
|
|
77
|
+
}, StorageError, never>;
|
|
78
|
+
set: (input: {
|
|
79
|
+
readonly bucket: string;
|
|
80
|
+
readonly policy: {
|
|
81
|
+
readonly version: 1 | 3;
|
|
82
|
+
readonly etag: string;
|
|
83
|
+
readonly bindings: readonly {
|
|
84
|
+
readonly role: string;
|
|
85
|
+
readonly members: readonly string[];
|
|
86
|
+
readonly condition?: {
|
|
87
|
+
readonly title: string;
|
|
88
|
+
readonly expression: string;
|
|
89
|
+
readonly description?: string | undefined;
|
|
90
|
+
} | undefined;
|
|
91
|
+
}[];
|
|
92
|
+
};
|
|
93
|
+
readonly intent: "replace-bucket-iam-policy";
|
|
94
|
+
}) => Effect.Effect<{
|
|
95
|
+
readonly version: 1 | 3;
|
|
96
|
+
readonly etag: string;
|
|
97
|
+
readonly bindings: readonly {
|
|
98
|
+
readonly role: string;
|
|
99
|
+
readonly members: readonly string[];
|
|
100
|
+
readonly condition?: {
|
|
101
|
+
readonly title: string;
|
|
102
|
+
readonly expression: string;
|
|
103
|
+
readonly description?: string | undefined;
|
|
104
|
+
} | undefined;
|
|
105
|
+
}[];
|
|
106
|
+
}, StorageError, never>;
|
|
107
|
+
};
|
|
108
|
+
listPage: (input: {
|
|
109
|
+
readonly project: string;
|
|
110
|
+
readonly cursor?: string;
|
|
111
|
+
readonly limit?: number;
|
|
112
|
+
}) => Effect.Effect<{
|
|
113
|
+
readonly items?: readonly {
|
|
114
|
+
readonly [x: string]: unknown;
|
|
115
|
+
}[] | undefined;
|
|
116
|
+
readonly nextPageToken?: string | undefined;
|
|
117
|
+
}, StorageError, never>;
|
|
118
|
+
create: (input: {
|
|
119
|
+
readonly bucket: string;
|
|
120
|
+
readonly project: string;
|
|
121
|
+
readonly location: string;
|
|
122
|
+
}) => Effect.Effect<{
|
|
123
|
+
readonly [x: string]: unknown;
|
|
124
|
+
}, StorageError, never>;
|
|
125
|
+
deleteEmpty: (input: {
|
|
126
|
+
readonly bucket: string;
|
|
127
|
+
readonly ifMetagenerationMatch: string;
|
|
128
|
+
}) => Effect.Effect<void, StorageError, never>;
|
|
129
|
+
configuration: {
|
|
130
|
+
get: (input: {
|
|
131
|
+
readonly bucket: string;
|
|
132
|
+
}) => Effect.Effect<{
|
|
133
|
+
readonly cors?: readonly {
|
|
134
|
+
readonly [x: string]: unknown;
|
|
135
|
+
}[] | undefined;
|
|
136
|
+
readonly lifecycle?: {
|
|
137
|
+
readonly [x: string]: unknown;
|
|
138
|
+
} | undefined;
|
|
139
|
+
readonly versioning?: {
|
|
140
|
+
readonly enabled: boolean;
|
|
141
|
+
} | undefined;
|
|
142
|
+
readonly encryption?: {
|
|
143
|
+
readonly [x: string]: unknown;
|
|
144
|
+
} | undefined;
|
|
145
|
+
readonly retentionPolicy?: {
|
|
146
|
+
readonly [x: string]: unknown;
|
|
147
|
+
} | undefined;
|
|
148
|
+
readonly softDeletePolicy?: {
|
|
149
|
+
readonly [x: string]: unknown;
|
|
150
|
+
} | undefined;
|
|
151
|
+
readonly iamConfiguration?: {
|
|
152
|
+
readonly [x: string]: unknown;
|
|
153
|
+
} | undefined;
|
|
154
|
+
readonly labels?: {
|
|
155
|
+
readonly [x: string]: string;
|
|
156
|
+
} | undefined;
|
|
157
|
+
readonly logging?: {
|
|
158
|
+
readonly [x: string]: unknown;
|
|
159
|
+
} | undefined;
|
|
160
|
+
readonly website?: {
|
|
161
|
+
readonly [x: string]: unknown;
|
|
162
|
+
} | undefined;
|
|
163
|
+
readonly autoclass?: {
|
|
164
|
+
readonly [x: string]: unknown;
|
|
165
|
+
} | undefined;
|
|
166
|
+
readonly name: string;
|
|
167
|
+
readonly metageneration: string;
|
|
168
|
+
}, StorageError, never>;
|
|
169
|
+
plan: (input: {
|
|
170
|
+
readonly bucket: string;
|
|
171
|
+
readonly desired: GcsBucketConfiguration;
|
|
172
|
+
}) => Effect.Effect<{
|
|
173
|
+
bucket: string;
|
|
174
|
+
expectedMetageneration: string;
|
|
175
|
+
desired: {
|
|
176
|
+
readonly cors?: readonly {
|
|
177
|
+
readonly [x: string]: unknown;
|
|
178
|
+
}[] | undefined;
|
|
179
|
+
readonly lifecycle?: {
|
|
180
|
+
readonly [x: string]: unknown;
|
|
181
|
+
} | undefined;
|
|
182
|
+
readonly versioning?: {
|
|
183
|
+
readonly enabled: boolean;
|
|
184
|
+
} | undefined;
|
|
185
|
+
readonly encryption?: {
|
|
186
|
+
readonly [x: string]: unknown;
|
|
187
|
+
} | undefined;
|
|
188
|
+
readonly retentionPolicy?: {
|
|
189
|
+
readonly [x: string]: unknown;
|
|
190
|
+
} | undefined;
|
|
191
|
+
readonly softDeletePolicy?: {
|
|
192
|
+
readonly [x: string]: unknown;
|
|
193
|
+
} | undefined;
|
|
194
|
+
readonly iamConfiguration?: {
|
|
195
|
+
readonly [x: string]: unknown;
|
|
196
|
+
} | undefined;
|
|
197
|
+
readonly labels?: {
|
|
198
|
+
readonly [x: string]: string;
|
|
199
|
+
} | undefined;
|
|
200
|
+
readonly logging?: {
|
|
201
|
+
readonly [x: string]: unknown;
|
|
202
|
+
} | undefined;
|
|
203
|
+
readonly website?: {
|
|
204
|
+
readonly [x: string]: unknown;
|
|
205
|
+
} | undefined;
|
|
206
|
+
readonly autoclass?: {
|
|
207
|
+
readonly [x: string]: unknown;
|
|
208
|
+
} | undefined;
|
|
209
|
+
};
|
|
210
|
+
changes: string[];
|
|
211
|
+
}, StorageError, never>;
|
|
212
|
+
apply: (input: {
|
|
213
|
+
readonly plan: object;
|
|
214
|
+
readonly protectionChange?: {
|
|
215
|
+
readonly intent: "change-storage-protection";
|
|
216
|
+
readonly reason: string;
|
|
217
|
+
};
|
|
218
|
+
}) => Effect.Effect<{
|
|
219
|
+
readonly [x: string]: unknown;
|
|
220
|
+
}, StorageError, never>;
|
|
221
|
+
};
|
|
222
|
+
lockRetentionPolicy: (input: {
|
|
223
|
+
readonly bucket: string;
|
|
224
|
+
readonly ifMetagenerationMatch: string;
|
|
225
|
+
readonly intent: "irreversibly-lock-retention";
|
|
226
|
+
}) => Effect.Effect<{
|
|
227
|
+
readonly [x: string]: unknown;
|
|
228
|
+
}, StorageError, never>;
|
|
229
|
+
notifications: {
|
|
230
|
+
list: (input: {
|
|
231
|
+
readonly bucket: string;
|
|
232
|
+
}) => Effect.Effect<unknown, StorageError, never>;
|
|
233
|
+
create: (input: {
|
|
234
|
+
readonly bucket: string;
|
|
235
|
+
readonly topic: string;
|
|
236
|
+
readonly events?: ReadonlyArray<string>;
|
|
237
|
+
}) => Effect.Effect<unknown, StorageError, never>;
|
|
238
|
+
delete: (input: {
|
|
239
|
+
readonly bucket: string;
|
|
240
|
+
readonly id: string;
|
|
241
|
+
}) => Effect.Effect<void, StorageError, never>;
|
|
242
|
+
};
|
|
243
|
+
}>;
|
|
244
|
+
export declare class GcsAdministration extends GcsAdministration_base {
|
|
245
|
+
static readonly make: (config: Omit<GcsConfig, "bucket">) => Effect.Effect<{
|
|
246
|
+
head: (input: {
|
|
247
|
+
readonly bucket: string;
|
|
248
|
+
}) => Effect.Effect<{
|
|
249
|
+
readonly cors?: readonly {
|
|
250
|
+
readonly [x: string]: unknown;
|
|
251
|
+
}[] | undefined;
|
|
252
|
+
readonly lifecycle?: {
|
|
253
|
+
readonly [x: string]: unknown;
|
|
254
|
+
} | undefined;
|
|
255
|
+
readonly versioning?: {
|
|
256
|
+
readonly enabled: boolean;
|
|
257
|
+
} | undefined;
|
|
258
|
+
readonly encryption?: {
|
|
259
|
+
readonly [x: string]: unknown;
|
|
260
|
+
} | undefined;
|
|
261
|
+
readonly retentionPolicy?: {
|
|
262
|
+
readonly [x: string]: unknown;
|
|
263
|
+
} | undefined;
|
|
264
|
+
readonly softDeletePolicy?: {
|
|
265
|
+
readonly [x: string]: unknown;
|
|
266
|
+
} | undefined;
|
|
267
|
+
readonly iamConfiguration?: {
|
|
268
|
+
readonly [x: string]: unknown;
|
|
269
|
+
} | undefined;
|
|
270
|
+
readonly labels?: {
|
|
271
|
+
readonly [x: string]: string;
|
|
272
|
+
} | undefined;
|
|
273
|
+
readonly logging?: {
|
|
274
|
+
readonly [x: string]: unknown;
|
|
275
|
+
} | undefined;
|
|
276
|
+
readonly website?: {
|
|
277
|
+
readonly [x: string]: unknown;
|
|
278
|
+
} | undefined;
|
|
279
|
+
readonly autoclass?: {
|
|
280
|
+
readonly [x: string]: unknown;
|
|
281
|
+
} | undefined;
|
|
282
|
+
readonly name: string;
|
|
283
|
+
readonly metageneration: string;
|
|
284
|
+
}, StorageError, never>;
|
|
285
|
+
iam: {
|
|
286
|
+
get: (input: {
|
|
287
|
+
readonly bucket: string;
|
|
288
|
+
}) => Effect.Effect<{
|
|
289
|
+
readonly version: 1 | 3;
|
|
290
|
+
readonly etag: string;
|
|
291
|
+
readonly bindings: readonly {
|
|
292
|
+
readonly role: string;
|
|
293
|
+
readonly members: readonly string[];
|
|
294
|
+
readonly condition?: {
|
|
295
|
+
readonly title: string;
|
|
296
|
+
readonly expression: string;
|
|
297
|
+
readonly description?: string | undefined;
|
|
298
|
+
} | undefined;
|
|
299
|
+
}[];
|
|
300
|
+
}, StorageError, never>;
|
|
301
|
+
set: (input: {
|
|
302
|
+
readonly bucket: string;
|
|
303
|
+
readonly policy: {
|
|
304
|
+
readonly version: 1 | 3;
|
|
305
|
+
readonly etag: string;
|
|
306
|
+
readonly bindings: readonly {
|
|
307
|
+
readonly role: string;
|
|
308
|
+
readonly members: readonly string[];
|
|
309
|
+
readonly condition?: {
|
|
310
|
+
readonly title: string;
|
|
311
|
+
readonly expression: string;
|
|
312
|
+
readonly description?: string | undefined;
|
|
313
|
+
} | undefined;
|
|
314
|
+
}[];
|
|
315
|
+
};
|
|
316
|
+
readonly intent: "replace-bucket-iam-policy";
|
|
317
|
+
}) => Effect.Effect<{
|
|
318
|
+
readonly version: 1 | 3;
|
|
319
|
+
readonly etag: string;
|
|
320
|
+
readonly bindings: readonly {
|
|
321
|
+
readonly role: string;
|
|
322
|
+
readonly members: readonly string[];
|
|
323
|
+
readonly condition?: {
|
|
324
|
+
readonly title: string;
|
|
325
|
+
readonly expression: string;
|
|
326
|
+
readonly description?: string | undefined;
|
|
327
|
+
} | undefined;
|
|
328
|
+
}[];
|
|
329
|
+
}, StorageError, never>;
|
|
330
|
+
};
|
|
331
|
+
listPage: (input: {
|
|
332
|
+
readonly project: string;
|
|
333
|
+
readonly cursor?: string;
|
|
334
|
+
readonly limit?: number;
|
|
335
|
+
}) => Effect.Effect<{
|
|
336
|
+
readonly items?: readonly {
|
|
337
|
+
readonly [x: string]: unknown;
|
|
338
|
+
}[] | undefined;
|
|
339
|
+
readonly nextPageToken?: string | undefined;
|
|
340
|
+
}, StorageError, never>;
|
|
341
|
+
create: (input: {
|
|
342
|
+
readonly bucket: string;
|
|
343
|
+
readonly project: string;
|
|
344
|
+
readonly location: string;
|
|
345
|
+
}) => Effect.Effect<{
|
|
346
|
+
readonly [x: string]: unknown;
|
|
347
|
+
}, StorageError, never>;
|
|
348
|
+
deleteEmpty: (input: {
|
|
349
|
+
readonly bucket: string;
|
|
350
|
+
readonly ifMetagenerationMatch: string;
|
|
351
|
+
}) => Effect.Effect<void, StorageError, never>;
|
|
352
|
+
configuration: {
|
|
353
|
+
get: (input: {
|
|
354
|
+
readonly bucket: string;
|
|
355
|
+
}) => Effect.Effect<{
|
|
356
|
+
readonly cors?: readonly {
|
|
357
|
+
readonly [x: string]: unknown;
|
|
358
|
+
}[] | undefined;
|
|
359
|
+
readonly lifecycle?: {
|
|
360
|
+
readonly [x: string]: unknown;
|
|
361
|
+
} | undefined;
|
|
362
|
+
readonly versioning?: {
|
|
363
|
+
readonly enabled: boolean;
|
|
364
|
+
} | undefined;
|
|
365
|
+
readonly encryption?: {
|
|
366
|
+
readonly [x: string]: unknown;
|
|
367
|
+
} | undefined;
|
|
368
|
+
readonly retentionPolicy?: {
|
|
369
|
+
readonly [x: string]: unknown;
|
|
370
|
+
} | undefined;
|
|
371
|
+
readonly softDeletePolicy?: {
|
|
372
|
+
readonly [x: string]: unknown;
|
|
373
|
+
} | undefined;
|
|
374
|
+
readonly iamConfiguration?: {
|
|
375
|
+
readonly [x: string]: unknown;
|
|
376
|
+
} | undefined;
|
|
377
|
+
readonly labels?: {
|
|
378
|
+
readonly [x: string]: string;
|
|
379
|
+
} | undefined;
|
|
380
|
+
readonly logging?: {
|
|
381
|
+
readonly [x: string]: unknown;
|
|
382
|
+
} | undefined;
|
|
383
|
+
readonly website?: {
|
|
384
|
+
readonly [x: string]: unknown;
|
|
385
|
+
} | undefined;
|
|
386
|
+
readonly autoclass?: {
|
|
387
|
+
readonly [x: string]: unknown;
|
|
388
|
+
} | undefined;
|
|
389
|
+
readonly name: string;
|
|
390
|
+
readonly metageneration: string;
|
|
391
|
+
}, StorageError, never>;
|
|
392
|
+
plan: (input: {
|
|
393
|
+
readonly bucket: string;
|
|
394
|
+
readonly desired: GcsBucketConfiguration;
|
|
395
|
+
}) => Effect.Effect<{
|
|
396
|
+
bucket: string;
|
|
397
|
+
expectedMetageneration: string;
|
|
398
|
+
desired: {
|
|
399
|
+
readonly cors?: readonly {
|
|
400
|
+
readonly [x: string]: unknown;
|
|
401
|
+
}[] | undefined;
|
|
402
|
+
readonly lifecycle?: {
|
|
403
|
+
readonly [x: string]: unknown;
|
|
404
|
+
} | undefined;
|
|
405
|
+
readonly versioning?: {
|
|
406
|
+
readonly enabled: boolean;
|
|
407
|
+
} | undefined;
|
|
408
|
+
readonly encryption?: {
|
|
409
|
+
readonly [x: string]: unknown;
|
|
410
|
+
} | undefined;
|
|
411
|
+
readonly retentionPolicy?: {
|
|
412
|
+
readonly [x: string]: unknown;
|
|
413
|
+
} | undefined;
|
|
414
|
+
readonly softDeletePolicy?: {
|
|
415
|
+
readonly [x: string]: unknown;
|
|
416
|
+
} | undefined;
|
|
417
|
+
readonly iamConfiguration?: {
|
|
418
|
+
readonly [x: string]: unknown;
|
|
419
|
+
} | undefined;
|
|
420
|
+
readonly labels?: {
|
|
421
|
+
readonly [x: string]: string;
|
|
422
|
+
} | undefined;
|
|
423
|
+
readonly logging?: {
|
|
424
|
+
readonly [x: string]: unknown;
|
|
425
|
+
} | undefined;
|
|
426
|
+
readonly website?: {
|
|
427
|
+
readonly [x: string]: unknown;
|
|
428
|
+
} | undefined;
|
|
429
|
+
readonly autoclass?: {
|
|
430
|
+
readonly [x: string]: unknown;
|
|
431
|
+
} | undefined;
|
|
432
|
+
};
|
|
433
|
+
changes: string[];
|
|
434
|
+
}, StorageError, never>;
|
|
435
|
+
apply: (input: {
|
|
436
|
+
readonly plan: object;
|
|
437
|
+
readonly protectionChange?: {
|
|
438
|
+
readonly intent: "change-storage-protection";
|
|
439
|
+
readonly reason: string;
|
|
440
|
+
};
|
|
441
|
+
}) => Effect.Effect<{
|
|
442
|
+
readonly [x: string]: unknown;
|
|
443
|
+
}, StorageError, never>;
|
|
444
|
+
};
|
|
445
|
+
lockRetentionPolicy: (input: {
|
|
446
|
+
readonly bucket: string;
|
|
447
|
+
readonly ifMetagenerationMatch: string;
|
|
448
|
+
readonly intent: "irreversibly-lock-retention";
|
|
449
|
+
}) => Effect.Effect<{
|
|
450
|
+
readonly [x: string]: unknown;
|
|
451
|
+
}, StorageError, never>;
|
|
452
|
+
notifications: {
|
|
453
|
+
list: (input: {
|
|
454
|
+
readonly bucket: string;
|
|
455
|
+
}) => Effect.Effect<unknown, StorageError, never>;
|
|
456
|
+
create: (input: {
|
|
457
|
+
readonly bucket: string;
|
|
458
|
+
readonly topic: string;
|
|
459
|
+
readonly events?: ReadonlyArray<string>;
|
|
460
|
+
}) => Effect.Effect<unknown, StorageError, never>;
|
|
461
|
+
delete: (input: {
|
|
462
|
+
readonly bucket: string;
|
|
463
|
+
readonly id: string;
|
|
464
|
+
}) => Effect.Effect<void, StorageError, never>;
|
|
465
|
+
};
|
|
466
|
+
}, StorageError, never>;
|
|
467
|
+
static layer(config: Omit<GcsConfig, "bucket">): Layer.Layer<GcsAdministration, StorageError, never>;
|
|
468
|
+
}
|
|
469
|
+
export {};
|
|
470
|
+
//# sourceMappingURL=admin.d.ts.map
|