@visulima/storage 1.0.0-alpha.8 → 1.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/CHANGELOG.md +578 -0
- package/LICENSE.md +237 -568
- package/README.md +82 -466
- package/dist/adapter/nuxt/module.d.ts +41 -34
- package/dist/adapter/nuxt/module.js +1 -93
- package/dist/adapter/nuxt/package.json +0 -6
- package/dist/ai/ai-sdk/index.d.ts +113 -0
- package/dist/ai/ai-sdk/index.js +1 -0
- package/dist/ai/claude/index.d.ts +177 -0
- package/dist/ai/claude/index.js +1 -0
- package/dist/ai/openai/index.d.ts +205 -0
- package/dist/ai/openai/index.js +1 -0
- package/dist/ai/tanstack/index.d.ts +115 -0
- package/dist/ai/tanstack/index.js +1 -0
- package/dist/handler/http/fetch/index.d.ts +303 -4
- package/dist/handler/http/fetch/index.js +1 -4
- package/dist/handler/http/hono/index.d.ts +73 -64
- package/dist/handler/http/hono/index.js +1 -65
- package/dist/handler/http/nextjs/index.d.ts +66 -58
- package/dist/handler/http/nextjs/index.js +1 -37
- package/dist/handler/http/node/index.d.ts +368 -4
- package/dist/handler/http/node/index.js +1 -8
- package/dist/handler/http/solid-start/index.d.ts +66 -57
- package/dist/handler/http/solid-start/index.js +1 -44
- package/dist/index.d.ts +106 -17
- package/dist/index.js +1 -13
- package/dist/openapi/index.d.ts +24 -5
- package/dist/openapi/index.js +1 -5
- package/dist/packem_shared/AbstractBaseStorage-Ba7cLu-t.js +1 -0
- package/dist/packem_shared/AwsLightFile-CpZrubaV.js +1 -0
- package/dist/packem_shared/AwsLightMetaStorage-DPqJ9LTr.js +1 -0
- package/dist/packem_shared/AwsLightStorage-DTBVxHXO.js +1 -0
- package/dist/packem_shared/AzureFile-DFSaVe25.js +1 -0
- package/dist/packem_shared/AzureSMetaStorage-ByzM6Aix.js +1 -0
- package/dist/packem_shared/AzureStorage-BFsD4qbF.js +1 -0
- package/dist/packem_shared/BaseTransformer-Buw5lX_3.js +1 -0
- package/dist/packem_shared/BoxFile-CseIoPW1.js +1 -0
- package/dist/packem_shared/BoxMetaStorage-DFwhEI9C.js +1 -0
- package/dist/packem_shared/BoxStorage-B_t-OVzf.js +1 -0
- package/dist/packem_shared/BunS3File-BcYmsz1n.js +1 -0
- package/dist/packem_shared/BunS3MetaStorage-DFwhEI9C.js +1 -0
- package/dist/packem_shared/BunS3Storage-CB_pZWlV.js +1 -0
- package/dist/packem_shared/BunnyFile-BgEOlcYI.js +1 -0
- package/dist/packem_shared/BunnyMetaStorage-DFwhEI9C.js +1 -0
- package/dist/packem_shared/BunnyStorage-CILSK4_Z.js +1 -0
- package/dist/packem_shared/CloudinaryFile-Bo5B-vM1.js +1 -0
- package/dist/packem_shared/CloudinaryMetaStorage-D_vNzewL.js +1 -0
- package/dist/packem_shared/CloudinaryStorage-DiCbdAi_.js +1 -0
- package/dist/packem_shared/DiskStorage-Kp5t3vnF.js +1 -0
- package/dist/packem_shared/DiskStorageWithChecksum-Bh6w-Iu8.js +1 -0
- package/dist/packem_shared/DropboxFile-BFb7eOzy.js +1 -0
- package/dist/packem_shared/DropboxMetaStorage-DFwhEI9C.js +1 -0
- package/dist/packem_shared/DropboxStorage-H8bd8hEz.js +1 -0
- package/dist/packem_shared/ERRORS-BIBxE2oR.js +1 -0
- package/dist/packem_shared/File-W8aOo15X.js +1 -0
- package/dist/packem_shared/Files-BA3mpDwz.js +1 -0
- package/dist/packem_shared/FirebaseFile-BLaBxa2A.js +1 -0
- package/dist/packem_shared/FirebaseMetaStorage-D_vNzewL.js +1 -0
- package/dist/packem_shared/FirebaseStorage-Dgk4XyMr.js +2 -0
- package/dist/packem_shared/FtpFile-ClWDYnt2.js +1 -0
- package/dist/packem_shared/FtpMetaStorage-DFwhEI9C.js +1 -0
- package/dist/packem_shared/FtpStorage-g_DjiR-C.js +1 -0
- package/dist/packem_shared/GCSConfig-BQ0OpVhe.js +1 -0
- package/dist/packem_shared/GCSFile-Cero7qZN.js +1 -0
- package/dist/packem_shared/GCSMetaStorage-3fLTlRd4.js +1 -0
- package/dist/packem_shared/GCStorage-DUfwVFd3.js +1 -0
- package/dist/packem_shared/GoogleDriveFile-DHpLhzg9.js +1 -0
- package/dist/packem_shared/GoogleDriveMetaStorage-DqkgoE46.js +1 -0
- package/dist/packem_shared/GoogleDriveStorage-D0-5egHE.js +1 -0
- package/dist/packem_shared/LocalMetaStorage-Bp5mVc76.js +1 -0
- package/dist/packem_shared/MediaTransformer-D2kUsklW.js +1 -0
- package/dist/packem_shared/MemoryMetaStorage-Ksgh9pe7.js +1 -0
- package/dist/packem_shared/MemoryStorage-DzSTdlAq.js +1 -0
- package/dist/packem_shared/MetaStorage-DPEUyWgN.js +1 -0
- package/dist/packem_shared/Metadata-B7CcBueg.js +1 -0
- package/dist/packem_shared/Multipart-Btj2mo9r.js +1 -0
- package/dist/packem_shared/Multipart-C4GpuHMU.js +1 -0
- package/dist/packem_shared/NetlifyBlobFile-DoFhkzaH.js +1 -0
- package/dist/packem_shared/NetlifyBlobMetaStorage-D_vNzewL.js +1 -0
- package/dist/packem_shared/NetlifyBlobStorage-DZdCmOVW.js +1 -0
- package/dist/packem_shared/NoOpMetrics-BLo6u4NY.js +1 -0
- package/dist/packem_shared/OneDriveFile-CNNJYI43.js +1 -0
- package/dist/packem_shared/OneDriveMetaStorage-DqkgoE46.js +1 -0
- package/dist/packem_shared/OneDriveStorage-CvJetV7_.js +1 -0
- package/dist/packem_shared/OpenTelemetryMetrics-DJDQsNKp.js +1 -0
- package/dist/packem_shared/PocketBaseFile-DpJpxl3e.js +1 -0
- package/dist/packem_shared/PocketBaseMetaStorage-CpvDRnSu.js +1 -0
- package/dist/packem_shared/PocketBaseStorage-BPil-koe.js +1 -0
- package/dist/packem_shared/Rest-BehVaxbl.js +1 -0
- package/dist/packem_shared/Rest-ymPCZkKR.js +1 -0
- package/dist/packem_shared/S3File-CpZrubaV.js +1 -0
- package/dist/packem_shared/S3MetaStorage-CMonflzp.js +1 -0
- package/dist/packem_shared/S3Storage-wslqssvr.js +1 -0
- package/dist/packem_shared/SftpFile-ClWDYnt2.js +1 -0
- package/dist/packem_shared/SftpMetaStorage-DFwhEI9C.js +1 -0
- package/dist/packem_shared/SftpStorage-BVbMtS2b.js +1 -0
- package/dist/packem_shared/SharePointFile-Blz9FS4h.js +1 -0
- package/dist/packem_shared/SharePointMetaStorage-DFwhEI9C.js +1 -0
- package/dist/packem_shared/SharePointStorage-DWjvR5oZ.js +1 -0
- package/dist/packem_shared/SupabaseFile-Bo5B-vM1.js +1 -0
- package/dist/packem_shared/SupabaseMetaStorage-DqkgoE46.js +1 -0
- package/dist/packem_shared/SupabaseStorage-BiKmYKb6.js +1 -0
- package/dist/packem_shared/TUS_RESUMABLE-CyTSRvPU.js +1 -0
- package/dist/packem_shared/Tus-BgbON_wQ.js +1 -0
- package/dist/packem_shared/Tus-v6jzkaIO.js +1 -0
- package/dist/packem_shared/UploadControl-DZJhI9Wh.js +1 -0
- package/dist/packem_shared/UploadThingFile-BTFMpcIA.js +1 -0
- package/dist/packem_shared/UploadThingMetaStorage-D_vNzewL.js +1 -0
- package/dist/packem_shared/UploadThingStorage-jrEnANC5.js +1 -0
- package/dist/packem_shared/ValidationError-3B06DFyE.js +1 -0
- package/dist/packem_shared/VercelBlobFile-CVQwKlZk.js +1 -0
- package/dist/packem_shared/VercelBlobMetaStorage-DFwhEI9C.js +1 -0
- package/dist/packem_shared/VercelBlobStorage-Y-cDgH30.js +1 -0
- package/dist/packem_shared/_commonjsHelpers-CWAkuNXM.js +1 -0
- package/dist/packem_shared/agentsCopyFile-Dl5iffdH.js +1 -0
- package/dist/packem_shared/akamai-DthkaFul.js +1 -0
- package/dist/packem_shared/alibaba-BEi25O1g.js +1 -0
- package/dist/packem_shared/approval-fVHwBp7u.js +1 -0
- package/dist/packem_shared/approval.d-CMAYH9GF.d.ts +75 -0
- package/dist/packem_shared/aws-light-meta-storage-DGrn72VJ.js +4 -0
- package/dist/packem_shared/azure-meta-storage-ClbEsfI4.js +1 -0
- package/dist/packem_shared/backblaze-m1N5NZ9q.js +1 -0
- package/dist/packem_shared/base-handler-core-EeV8gZck.js +1 -0
- package/dist/packem_shared/base-handler-fetch-CHzsgb7C.js +1 -0
- package/dist/packem_shared/base-handler-node-BjpW8pGi.js +1 -0
- package/dist/packem_shared/cache-Cw3QjoVN.js +1 -0
- package/dist/packem_shared/claudeCopyFile-BX9O4ORk.js +1 -0
- package/dist/packem_shared/cloudflare-CdUTErlo.js +1 -0
- package/dist/packem_shared/copyFile-49FtxXcm.js +1 -0
- package/dist/packem_shared/copyFile-BUPezT_c.js +1 -0
- package/dist/packem_shared/createResponsesFileTools-6Tvt2PNr.js +1 -0
- package/dist/packem_shared/createRetryWrapper-CxgiV_hH.js +1 -0
- package/dist/packem_shared/detect-file-type-BA7UBLKA.js +1 -0
- package/dist/packem_shared/digitalOcean-B2uB6pgz.js +1 -0
- package/dist/packem_shared/disk-storage-DIn-VnCh.js +1 -0
- package/dist/packem_shared/disk-storage-with-checksum.d-B-VGEsfl.d.ts +156 -0
- package/dist/packem_shared/executors-BDzMjc4y.js +1 -0
- package/dist/packem_shared/executors.d-BZP2rWo3.d.ts +69 -0
- package/dist/packem_shared/exoscale-BDa1Gjth.js +1 -0
- package/dist/packem_shared/filebase-CsFYJIwB.js +1 -0
- package/dist/packem_shared/files.d-CH0iLBNC.d.ts +655 -0
- package/dist/packem_shared/gcs-meta-storage-Dy37wCjI.js +1 -0
- package/dist/packem_shared/get-file-status-y3wTtDQs.js +1 -0
- package/dist/packem_shared/getFormatFromContentType-DCTTPQHm.js +1 -0
- package/dist/packem_shared/has-content-50BsqrWw.js +1 -0
- package/dist/packem_shared/headers-BAiAKekR.js +26 -0
- package/dist/packem_shared/hetzner-BGGFiRGD.js +1 -0
- package/dist/packem_shared/ibmCos-j-3TfJ5p.js +1 -0
- package/dist/packem_shared/idriveE2-C6pQ5pQ0.js +1 -0
- package/dist/packem_shared/index-nZWCQrSe.js +5 -0
- package/dist/packem_shared/internal-D_cZIFwI.js +1 -0
- package/dist/packem_shared/is-expired-CBEk6XBi.js +1 -0
- package/dist/packem_shared/local-meta-storage-C2T92TYb.js +11 -0
- package/dist/packem_shared/local-meta-storage.d-D9PBfkn6.d.ts +21 -0
- package/dist/packem_shared/media-transformer.d-Quf4ai47.d.ts +331 -0
- package/dist/packem_shared/memory-storage.d-4EU1cMt1.d.ts +101 -0
- package/dist/packem_shared/minio-NKquuBfS.js +1 -0
- package/dist/packem_shared/multipart-base-BOzY19lb.js +1 -0
- package/dist/packem_shared/oauth-refresh-EdGzlcOZ.js +1 -0
- package/dist/packem_shared/oracleCloud-DslqNpn6.js +1 -0
- package/dist/packem_shared/ovhCloud-CMHE6uLV.js +1 -0
- package/dist/packem_shared/part-match-D-9dGX42.js +1 -0
- package/dist/packem_shared/path-0oTTdkvl-BVg7lYf5.js +1 -0
- package/dist/packem_shared/posix-dirname-CfpH5wZi.js +1 -0
- package/dist/packem_shared/response-builder-CbSA8qPa.js +1 -0
- package/dist/packem_shared/rest-base-CynUg0mH.js +1 -0
- package/dist/packem_shared/restOpenApiSpec-Csv513qf.js +1 -0
- package/dist/packem_shared/s3-base-storage-DXZYN24h.js +1 -0
- package/dist/packem_shared/s3-base-storage.d-BQgP5B-t.d.ts +287 -0
- package/dist/packem_shared/scaleway-U1In3v70.js +1 -0
- package/dist/packem_shared/sharedErrorSchemaObject-YN65aAKj.js +1 -0
- package/dist/packem_shared/storage-Cyy73Y6r.js +1 -0
- package/dist/packem_shared/storage.d-CEM1upWM.d.ts +1176 -0
- package/dist/packem_shared/storj-Cb59q9kF.js +1 -0
- package/dist/packem_shared/sync-DhR3536K.js +1 -0
- package/dist/packem_shared/tencent-Q1y2GENc.js +1 -0
- package/dist/packem_shared/tigris-BELKoyyp.js +1 -0
- package/dist/packem_shared/transformOpenApiSpec-CIEAgpBD.js +1 -0
- package/dist/packem_shared/tus-base.d-DLzKE54M.d.ts +106 -0
- package/dist/packem_shared/tusOpenApiSpec-D96B03t5.js +1 -0
- package/dist/packem_shared/types.d-Bon9GVVe.d.ts +104 -0
- package/dist/packem_shared/types.d-CggTCgXr.d.ts +49 -0
- package/dist/packem_shared/types.d-CrUWY4On.d.ts +720 -0
- package/dist/packem_shared/update-size-DuNuLyxj.js +1 -0
- package/dist/packem_shared/vultr-B491cQ4e.js +1 -0
- package/dist/packem_shared/waitForStorage-ByQmG4xF.js +1 -0
- package/dist/packem_shared/wasabi-DFrwIoab.js +1 -0
- package/dist/packem_shared/xhrOpenApiSpec-DQR4h6M8.js +1 -0
- package/dist/packem_shared/yandex-CwzHuEKP.js +1 -0
- package/dist/storage/aws/clients/index.d.ts +612 -6
- package/dist/storage/aws/clients/index.js +1 -6
- package/dist/storage/aws/index.d.ts +332 -4
- package/dist/storage/aws/index.js +1 -3
- package/dist/storage/aws-light/index.d.ts +259 -4
- package/dist/storage/aws-light/index.js +1 -3
- package/dist/storage/azure/index.d.ts +236 -4
- package/dist/storage/azure/index.js +1 -3
- package/dist/storage/box/index.d.ts +189 -0
- package/dist/storage/box/index.js +1 -0
- package/dist/storage/bun-s3/index.d.ts +200 -0
- package/dist/storage/bun-s3/index.js +1 -0
- package/dist/storage/bunny/index.d.ts +119 -0
- package/dist/storage/bunny/index.js +1 -0
- package/dist/storage/cloudinary/index.d.ts +121 -0
- package/dist/storage/cloudinary/index.js +1 -0
- package/dist/storage/dropbox/index.d.ts +132 -0
- package/dist/storage/dropbox/index.js +1 -0
- package/dist/storage/firebase/index.d.ts +192 -0
- package/dist/storage/firebase/index.js +1 -0
- package/dist/storage/ftp/index.d.ts +91 -0
- package/dist/storage/ftp/index.js +1 -0
- package/dist/storage/gcs/index.d.ts +195 -5
- package/dist/storage/gcs/index.js +1 -4
- package/dist/storage/google-drive/index.d.ts +148 -0
- package/dist/storage/google-drive/index.js +1 -0
- package/dist/storage/local/index.d.ts +7 -4
- package/dist/storage/local/index.js +1 -3
- package/dist/storage/memory/index.d.ts +6 -0
- package/dist/storage/memory/index.js +1 -0
- package/dist/storage/netlify-blob/index.d.ts +147 -4
- package/dist/storage/netlify-blob/index.js +1 -3
- package/dist/storage/onedrive/index.d.ts +103 -0
- package/dist/storage/onedrive/index.js +1 -0
- package/dist/storage/pocketbase/index.d.ts +172 -0
- package/dist/storage/pocketbase/index.js +1 -0
- package/dist/storage/sftp/index.d.ts +92 -0
- package/dist/storage/sftp/index.js +1 -0
- package/dist/storage/sharepoint/index.d.ts +180 -0
- package/dist/storage/sharepoint/index.js +1 -0
- package/dist/storage/supabase/index.d.ts +115 -0
- package/dist/storage/supabase/index.js +1 -0
- package/dist/storage/uploadthing/index.d.ts +95 -0
- package/dist/storage/uploadthing/index.js +1 -0
- package/dist/storage/vercel-blob/index.d.ts +189 -4
- package/dist/storage/vercel-blob/index.js +1 -3
- package/dist/transformer/audio-transformer.d.ts +127 -125
- package/dist/transformer/audio-transformer.js +1 -278
- package/dist/transformer/image-transformer.d.ts +573 -568
- package/dist/transformer/image-transformer.js +1 -1100
- package/dist/transformer/index.d.ts +62 -5
- package/dist/transformer/index.js +1 -4
- package/dist/transformer/video-transformer.d.ts +144 -142
- package/dist/transformer/video-transformer.js +1 -310
- package/package.json +202 -50
- package/dist/handler/base/base-handler-core.d.ts +0 -91
- package/dist/handler/base/base-handler-fetch.d.ts +0 -76
- package/dist/handler/base/base-handler-node.d.ts +0 -137
- package/dist/handler/multipart/multipart-base.d.ts +0 -84
- package/dist/handler/multipart/multipart-fetch.d.ts +0 -64
- package/dist/handler/multipart/multipart.d.ts +0 -49
- package/dist/handler/rest/rest-base.d.ts +0 -106
- package/dist/handler/rest/rest-fetch.d.ts +0 -88
- package/dist/handler/rest/rest.d.ts +0 -93
- package/dist/handler/tus/tus-base.d.ts +0 -152
- package/dist/handler/tus/tus-fetch.d.ts +0 -72
- package/dist/handler/tus/tus.d.ts +0 -78
- package/dist/handler/types.d.ts +0 -53
- package/dist/handler/utils/request-parser.d.ts +0 -72
- package/dist/handler/utils/response-builder.d.ts +0 -83
- package/dist/handler/utils/storage-utils.d.ts +0 -10
- package/dist/handler/utils/stream-utils.d.ts +0 -29
- package/dist/handler/utils/upload-handlers.d.ts +0 -76
- package/dist/metrics/index.d.ts +0 -2
- package/dist/metrics/no-op-metrics.d.ts +0 -15
- package/dist/metrics/opentelemetry-metrics.d.ts +0 -55
- package/dist/openapi/rest.d.ts +0 -7
- package/dist/openapi/shared.d.ts +0 -13
- package/dist/openapi/transform.d.ts +0 -3
- package/dist/openapi/tus.d.ts +0 -7
- package/dist/openapi/xhr.d.ts +0 -7
- package/dist/packem_shared/AwsLightFile-tTneXZgG.js +0 -11
- package/dist/packem_shared/AwsLightMetaStorage-BWSOtVaN.js +0 -4
- package/dist/packem_shared/AwsLightStorage-Blv-GP4v.js +0 -133
- package/dist/packem_shared/AzureFile-CesgFzps.js +0 -8
- package/dist/packem_shared/AzureSMetaStorage-CFs-OYJT.js +0 -88
- package/dist/packem_shared/AzureStorage-B0v048hG.js +0 -357
- package/dist/packem_shared/BaseTransformer-C2gLib6v.js +0 -82
- package/dist/packem_shared/DiskStorage-BlltBst6.js +0 -12
- package/dist/packem_shared/DiskStorageWithChecksum-BJTmMklc.js +0 -238
- package/dist/packem_shared/ERRORS-D0apMqnc.js +0 -97
- package/dist/packem_shared/File-Bb3P23dr.js +0 -69
- package/dist/packem_shared/GCSConfig-vPP22kN6.js +0 -11
- package/dist/packem_shared/GCSFile-BIEunhAN.js +0 -8
- package/dist/packem_shared/GCSMetaStorage-BYhwecZl.js +0 -7
- package/dist/packem_shared/GCStorage-BmnoK7Rz.js +0 -406
- package/dist/packem_shared/LocalMetaStorage-CZHhKkMd.js +0 -7
- package/dist/packem_shared/MediaTransformer-D6658DL1.js +0 -1197
- package/dist/packem_shared/MetaStorage-pECeFOad.js +0 -46
- package/dist/packem_shared/Metadata-DRLXeJ0F.js +0 -89
- package/dist/packem_shared/Multipart-5Xpy7WhY.js +0 -163
- package/dist/packem_shared/Multipart-C-iU9LXj.js +0 -128
- package/dist/packem_shared/NetlifyBlobFile-CXzyjqrD.js +0 -14
- package/dist/packem_shared/NetlifyBlobMetaStorage-DxZ5aDvD.js +0 -9
- package/dist/packem_shared/NetlifyBlobStorage-CLPtjHqd.js +0 -376
- package/dist/packem_shared/NoOpMetrics-DhAk5rXc.js +0 -10
- package/dist/packem_shared/OpenTelemetryMetrics-BnxhqIaH.js +0 -67
- package/dist/packem_shared/Rest-DO7OslCs.js +0 -267
- package/dist/packem_shared/Rest-DTaszQ6n.js +0 -228
- package/dist/packem_shared/S3File-DZiyk9Qt.js +0 -11
- package/dist/packem_shared/S3MetaStorage-Dz9aDabA.js +0 -76
- package/dist/packem_shared/S3Storage-DHmTk-hU.js +0 -316
- package/dist/packem_shared/TUS_RESUMABLE-BfguFdM1.js +0 -434
- package/dist/packem_shared/Tus-BQItPVAC.js +0 -200
- package/dist/packem_shared/Tus-BibjweWH.js +0 -195
- package/dist/packem_shared/ValidationError-BfF1aE4h.js +0 -26
- package/dist/packem_shared/VercelBlobFile-BCg4aTEq.js +0 -18
- package/dist/packem_shared/VercelBlobMetaStorage-Bd9F-VFm.js +0 -9
- package/dist/packem_shared/VercelBlobStorage-DD9LMOS6.js +0 -261
- package/dist/packem_shared/_commonjsHelpers-B85MJLTf.js +0 -5
- package/dist/packem_shared/aws-light-meta-storage-DKJBgbR6.js +0 -446
- package/dist/packem_shared/backblaze-BlMnIcBC.js +0 -20
- package/dist/packem_shared/base-handler-core-DLEVHemv.js +0 -303
- package/dist/packem_shared/base-handler-fetch-A7V0N6AJ.js +0 -291
- package/dist/packem_shared/base-handler-node-Dx7ce3sU.js +0 -730
- package/dist/packem_shared/cache-B88MXQ_2.js +0 -18
- package/dist/packem_shared/cloudflare-Bi1q8wXE.js +0 -21
- package/dist/packem_shared/defaultCloudStorageFileNameValidation-DUuacjWv.js +0 -11
- package/dist/packem_shared/digitalOcean-CWQRJM3L.js +0 -21
- package/dist/packem_shared/disk-storage-Bh2wy3YW.js +0 -810
- package/dist/packem_shared/gcs-meta-storage-DqNjM7DP.js +0 -158
- package/dist/packem_shared/has-content-CY66ehMK.js +0 -3
- package/dist/packem_shared/headers-C9DasoT1.js +0 -1318
- package/dist/packem_shared/is-expired-CTThU1q5.js +0 -8
- package/dist/packem_shared/isRetryableError-Dycp7127.js +0 -82
- package/dist/packem_shared/isValidMediaType-BeDgiObq.js +0 -35
- package/dist/packem_shared/local-meta-storage-By-3SNBI.js +0 -649
- package/dist/packem_shared/minio-C2YBZQOw.js +0 -22
- package/dist/packem_shared/multipart-base-BY0rhkw5.js +0 -102
- package/dist/packem_shared/part-match-BMNqHDYD.js +0 -96
- package/dist/packem_shared/path-CR6YkPXX-7R1-9CMk.js +0 -161
- package/dist/packem_shared/response-builder-BtnRiBUI.js +0 -45
- package/dist/packem_shared/rest-base-Bt9Np3M8.js +0 -457
- package/dist/packem_shared/restOpenApiSpec-D1JC_Jto.js +0 -800
- package/dist/packem_shared/s3-base-storage-C1DIHTYY.js +0 -510
- package/dist/packem_shared/sharedGet-Cpo7QUyu.js +0 -1019
- package/dist/packem_shared/storage-C6NSXb8h.js +0 -1175
- package/dist/packem_shared/tigris-Hac8TKnX.js +0 -21
- package/dist/packem_shared/transformOpenApiSpec-DWM5WtnN.js +0 -975
- package/dist/packem_shared/tusOpenApiSpec-mBZkl7he.js +0 -740
- package/dist/packem_shared/update-size-CCGm6i1J.js +0 -8
- package/dist/packem_shared/validator-BeX_lJet.js +0 -78
- package/dist/packem_shared/waitForStorage-Cscw85sx.js +0 -18
- package/dist/packem_shared/wasabi-DIyflHSd.js +0 -21
- package/dist/packem_shared/xhrOpenApiSpec-B1V5Dxrj.js +0 -264
- package/dist/storage/aws/clients/backblaze.d.ts +0 -12
- package/dist/storage/aws/clients/cloudflare.d.ts +0 -13
- package/dist/storage/aws/clients/digital-ocean.d.ts +0 -12
- package/dist/storage/aws/clients/minio.d.ts +0 -13
- package/dist/storage/aws/clients/tigris.d.ts +0 -12
- package/dist/storage/aws/clients/types.d.ts +0 -95
- package/dist/storage/aws/clients/wasabi.d.ts +0 -12
- package/dist/storage/aws/s3-base-storage.d.ts +0 -248
- package/dist/storage/aws/s3-client-adapter.d.ts +0 -110
- package/dist/storage/aws/s3-file.d.ts +0 -10
- package/dist/storage/aws/s3-meta-storage.d.ts +0 -15
- package/dist/storage/aws/s3-storage.d.ts +0 -70
- package/dist/storage/aws/types.d.ts +0 -119
- package/dist/storage/aws-light/aws-light-api-adapter.d.ts +0 -130
- package/dist/storage/aws-light/aws-light-file.d.ts +0 -10
- package/dist/storage/aws-light/aws-light-meta-storage.d.ts +0 -19
- package/dist/storage/aws-light/aws-light-storage.d.ts +0 -65
- package/dist/storage/aws-light/types.d.ts +0 -37
- package/dist/storage/azure/azure-file.d.ts +0 -6
- package/dist/storage/azure/azure-meta-storage.d.ts +0 -15
- package/dist/storage/azure/azure-storage.d.ts +0 -69
- package/dist/storage/azure/types.d.ts +0 -62
- package/dist/storage/gcs/fetch-error.d.ts +0 -11
- package/dist/storage/gcs/gcs-config.d.ts +0 -2
- package/dist/storage/gcs/gcs-file.d.ts +0 -6
- package/dist/storage/gcs/gcs-meta-storage.d.ts +0 -27
- package/dist/storage/gcs/gcs-storage.d.ts +0 -91
- package/dist/storage/gcs/types.d.ts +0 -55
- package/dist/storage/gcs/utils.d.ts +0 -7
- package/dist/storage/local/disk-storage-with-checksum.d.ts +0 -15
- package/dist/storage/local/disk-storage.d.ts +0 -135
- package/dist/storage/local/local-meta-storage.d.ts +0 -32
- package/dist/storage/meta-storage.d.ts +0 -30
- package/dist/storage/netlify-blob/netlify-blob-file.d.ts +0 -12
- package/dist/storage/netlify-blob/netlify-blob-meta-storage.d.ts +0 -7
- package/dist/storage/netlify-blob/netlify-blob-storage.d.ts +0 -93
- package/dist/storage/netlify-blob/types.d.ts +0 -30
- package/dist/storage/storage.d.ts +0 -353
- package/dist/storage/types.d.ts +0 -221
- package/dist/storage/utils/file/file.d.ts +0 -25
- package/dist/storage/utils/file/get-file-status.d.ts +0 -9
- package/dist/storage/utils/file/has-content.d.ts +0 -9
- package/dist/storage/utils/file/index.d.ts +0 -10
- package/dist/storage/utils/file/is-expired.d.ts +0 -8
- package/dist/storage/utils/file/metadata.d.ts +0 -18
- package/dist/storage/utils/file/part-match.d.ts +0 -11
- package/dist/storage/utils/file/types.d.ts +0 -37
- package/dist/storage/utils/file/update-metadata.d.ts +0 -10
- package/dist/storage/utils/file/update-size.d.ts +0 -10
- package/dist/storage/vercel-blob/types.d.ts +0 -32
- package/dist/storage/vercel-blob/vercel-blob-file.d.ts +0 -16
- package/dist/storage/vercel-blob/vercel-blob-meta-storage.d.ts +0 -7
- package/dist/storage/vercel-blob/vercel-blob-storage.d.ts +0 -76
- package/dist/transformer/base-transformer.d.ts +0 -63
- package/dist/transformer/media-transformer.d.ts +0 -332
- package/dist/transformer/types.d.ts +0 -652
- package/dist/transformer/utils.d.ts +0 -33
- package/dist/transformer/validation-error.d.ts +0 -23
- package/dist/utils/cache.d.ts +0 -32
- package/dist/utils/chunked-upload.d.ts +0 -65
- package/dist/utils/detect-file-type.d.ts +0 -28
- package/dist/utils/errors.d.ts +0 -74
- package/dist/utils/file-path-url-matcher.d.ts +0 -18
- package/dist/utils/headers.d.ts +0 -111
- package/dist/utils/http.d.ts +0 -92
- package/dist/utils/locker.d.ts +0 -26
- package/dist/utils/pipes/stream-checksum.d.ts +0 -47
- package/dist/utils/pipes/stream-length.d.ts +0 -22
- package/dist/utils/primitives/get-last-one.d.ts +0 -3
- package/dist/utils/primitives/is-record.d.ts +0 -2
- package/dist/utils/primitives/map-values.d.ts +0 -9
- package/dist/utils/primitives/pick.d.ts +0 -2
- package/dist/utils/primitives/to-milliseconds.d.ts +0 -12
- package/dist/utils/primitives/to-seconds.d.ts +0 -12
- package/dist/utils/range-checksum.d.ts +0 -33
- package/dist/utils/range-hasher.d.ts +0 -46
- package/dist/utils/retry.d.ts +0 -64
- package/dist/utils/types.d.ts +0 -108
- package/dist/utils/validation-error.d.ts +0 -22
- package/dist/utils/validator.d.ts +0 -36
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const i=(s,t)=>(t<s.size&&(s.size=t),s);export{i as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const t=e=>{const r=e?.accessKeyId??process.env.AWS_ACCESS_KEY_ID??process.env.VULTR_ACCESS_KEY_ID??process.env.VULTR_ACCESS_KEY,s=e?.location??process.env.VULTR_LOCATION,c=e?.secretAccessKey??process.env.AWS_SECRET_ACCESS_KEY??process.env.VULTR_SECRET_ACCESS_KEY??process.env.VULTR_SECRET_KEY;if(!s||!r||!c)throw new Error("Missing required parameters for Vultr Object Storage client.");return{credentials:{accessKeyId:r,secretAccessKey:c},endpoint:`https://${s}.vultrobjects.com`,forcePathStyle:!1,region:s}};export{t as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const i=async(t,e=5e3)=>{if(t.isReady)return;const o=Date.now();for(;!t.isReady&&Date.now()-o<e;)await new Promise(a=>{setTimeout(()=>{a()},100)});if(!t.isReady)throw new Error("Storage initialization timeout")};export{i as waitForStorage};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const n=e=>{const r=e?.accessKeyId??process.env.AWS_ACCESS_KEY_ID??process.env.WASABI_ACCESS_KEY_ID??process.env.WASABI_ACCESS_KEY,s=e?.region??process.env.AWS_REGION??process.env.WASABI_REGION,c=e?.secretAccessKey??process.env.AWS_SECRET_ACCESS_KEY??process.env.WASABI_SECRET_ACCESS_KEY??process.env.WASABI_SECRET_KEY;if(!s||!r||!c)throw new Error("Missing required parameters for Wasabi client.");return{apiVersion:"2006-03-01",credentials:{accessKeyId:r,secretAccessKey:c},endpoint:`https://s3.${s}.wasabisys.com`,region:s}};export{n as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createHash as n}from"node:crypto";import{createPaginationMetaSchemaObject as p,createPaginationSchemaObject as d}from"@visulima/pagination";import{sharedFileMetaSchemaObject as c,sharedErrorSchemaObject as m,sharedFileMetaExampleObject as l,sharedGetList as h,sharedGet as f,sharedGetMeta as u}from"./sharedErrorSchemaObject-YN65aAKj.js";const x=(r,t,o)=>{const{supportedTransformerFormat:s,tags:e,transformer:i}={tags:["Multipart"],transformer:!1,...o},a=n("sha256").update(t).digest("base64");return{components:{examples:l,parameters:{UploadIDinPath:{description:"Upload ID",in:"path",name:"id",schema:{type:"string"}}},responses:{404:{content:{"application/json":{example:{error:{code:"FileNotFound",message:"Not found"}},schema:{$ref:"#/components/schemas/Error"}}},description:"Not Found"}},schemas:{...d("FileMetaPagination",{$ref:"#/components/schemas/PaginationMeta"},"#/components/schemas/PaginationMeta"),...p("PaginationMeta"),...m,...c}},paths:{[`${t.replace(/\/$/,"")}/{id}/metadata`]:{get:u(`${a}MultipartGetFileMeta`,e)},[`${t.replace(/\/$/,"")}/{id}`]:{delete:{description:"Cancel upload",operationId:`${a}MultipartCancel`,parameters:[{$ref:"#/components/parameters/UploadIDinPath"}],responses:{204:{description:"No Content"}},summary:"Cancel upload",tags:e},get:f(`${a}TusGetFile`,e,i,s)},[t.trimEnd()]:{get:h(`${a}MultipartGetList`,e),post:{description:"Create upload",operationId:`${a}MultipartCreate`,requestBody:{content:{"multipart/form-data":{schema:{properties:{file:{description:"File to upload",format:"binary",type:"string"},metadata:{description:"JSON stringifies metadata",example:'{ "name": "video.mp4", "mimeType": "video/mp4", "size": 741, "lastModified": 1631750105530 }',type:"string"}},type:"object"}}},description:"Upload Metadata",required:!1},responses:{200:{description:"The file already exists, send a resume request",headers:{ETag:{description:"Upload ETag",schema:{example:"d41d8cd98f00b204e9800998ecf8427e",type:"string"}},Location:{description:"Resumable URI",schema:{example:`${r}/files?uploadType=Upload&upload_id=2b62dbec20048158af963572fbdf89c6`,format:"uri",type:"string"}},"X-Upload-Expires":{description:"Upload expiration date",schema:{example:"2021-08-25T11:12:26.635Z",format:"date-time",type:"string"}}}},201:{description:"Upload accepted, send the file contents",headers:{ETag:{description:"Upload ETag",schema:{example:"d41d8cd98f00b204e9800998ecf8427e",type:"string"}},Location:{description:"Resumable URI",schema:{example:`${r}/files?uploadType=Upload&upload_id=2b62dbec20048158af963572fbdf89c6`,format:"uri",type:"string"}},"X-Upload-Expires":{description:"Upload expiration date",schema:{example:"2021-08-25T11:12:26.635Z",format:"date-time",type:"string"}}}},400:{content:{"application/json":{example:{error:{code:"InvalidFileName",message:"Invalid file name",name:"ValidationError"}},schema:{$ref:"#/components/schemas/Error"}}},description:"Bad Request"},413:{content:{"application/json":{example:{error:{code:"RequestEntityTooLarge",message:"Request entity too large",name:"ValidationError"}},schema:{$ref:"#/components/schemas/Error"}}},description:"Request Entity Too Large"},415:{content:{"application/json":{example:{error:{code:"UnsupportedMediaType",message:"Unsupported media type",name:"ValidationError"}},schema:{$ref:"#/components/schemas/Error"}}},description:"Unsupported Media Type"},423:{content:{"application/json":{example:{error:{code:"FileLocked",message:"File locked"}},schema:{$ref:"#/components/schemas/Error"}}},description:"File locked"},500:{content:{"application/json":{example:{error:{code:"GenericUploadError",message:"Generic Upload Error"}},schema:{$ref:"#/components/schemas/Error"}}},description:"Internal Server Error"},default:{content:{"application/json":{schema:{$ref:"#/components/schemas/Error"}}},description:"Error"}},summary:"Create upload",tags:e}}}}};export{x as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const t=e=>{const s=e?.accessKeyId??process.env.AWS_ACCESS_KEY_ID??process.env.YANDEX_ACCESS_KEY_ID,c=e?.endpoint??process.env.YANDEX_ENDPOINT,n=e?.region??process.env.AWS_REGION??process.env.YANDEX_REGION??"ru-central1",r=e?.secretAccessKey??process.env.AWS_SECRET_ACCESS_KEY??process.env.YANDEX_SECRET_ACCESS_KEY;if(!s||!r)throw new Error("Missing required parameters for Yandex Object Storage client.");return{credentials:{accessKeyId:s,secretAccessKey:r},endpoint:c??"https://storage.yandexcloud.net",forcePathStyle:!1,region:n}};export{t as default};
|
|
@@ -1,6 +1,612 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { S3ClientConfig } from '@aws-sdk/client-s3';
|
|
2
|
+
type CreateCloudflareClientParameters = {
|
|
3
|
+
/**
|
|
4
|
+
* Cloudflare R2 access key ID.
|
|
5
|
+
*/
|
|
6
|
+
accessKeyId: string;
|
|
7
|
+
/**
|
|
8
|
+
* Cloudflare account ID.
|
|
9
|
+
*/
|
|
10
|
+
accountId: string;
|
|
11
|
+
/**
|
|
12
|
+
* The jurisdiction where the data is stored.
|
|
13
|
+
*
|
|
14
|
+
* Only use this if you created your R2 bucket using a jurisdiction.
|
|
15
|
+
*/
|
|
16
|
+
jurisdiction?: "eu" | "fedramp";
|
|
17
|
+
/**
|
|
18
|
+
* Cloudflare R2 secret access key.
|
|
19
|
+
*/
|
|
20
|
+
secretAccessKey: string;
|
|
21
|
+
};
|
|
22
|
+
type CreateMinioClientParameters = {
|
|
23
|
+
/**
|
|
24
|
+
* Minio access key ID.
|
|
25
|
+
*/
|
|
26
|
+
accessKeyId: string;
|
|
27
|
+
/**
|
|
28
|
+
* Minio endpoint.
|
|
29
|
+
*/
|
|
30
|
+
endpoint: string;
|
|
31
|
+
/**
|
|
32
|
+
* Minio region.
|
|
33
|
+
*/
|
|
34
|
+
region: string;
|
|
35
|
+
/**
|
|
36
|
+
* Minio secret access key.
|
|
37
|
+
*/
|
|
38
|
+
secretAccessKey: string;
|
|
39
|
+
};
|
|
40
|
+
type CreateBackblazeClientParameters = {
|
|
41
|
+
/**
|
|
42
|
+
* Backblaze B2 application key.
|
|
43
|
+
*/
|
|
44
|
+
applicationKey: string;
|
|
45
|
+
/**
|
|
46
|
+
* Backblaze B2 application key ID.
|
|
47
|
+
*/
|
|
48
|
+
applicationKeyId: string;
|
|
49
|
+
/**
|
|
50
|
+
* Backblaze B2 region.
|
|
51
|
+
*/
|
|
52
|
+
region: string;
|
|
53
|
+
};
|
|
54
|
+
type CreateWasabiClientParameters = {
|
|
55
|
+
/**
|
|
56
|
+
* Wasabi access key ID.
|
|
57
|
+
*/
|
|
58
|
+
accessKeyId: string;
|
|
59
|
+
/**
|
|
60
|
+
* Wasabi region.
|
|
61
|
+
*/
|
|
62
|
+
region: string;
|
|
63
|
+
/**
|
|
64
|
+
* Wasabi secret access key.
|
|
65
|
+
*/
|
|
66
|
+
secretAccessKey: string;
|
|
67
|
+
};
|
|
68
|
+
type CreateDigitalOceanClientParameters = {
|
|
69
|
+
/**
|
|
70
|
+
* DigitalOcean Spaces key.
|
|
71
|
+
*/
|
|
72
|
+
key: string;
|
|
73
|
+
/**
|
|
74
|
+
* DigitalOcean Spaces region.
|
|
75
|
+
*/
|
|
76
|
+
region: string;
|
|
77
|
+
/**
|
|
78
|
+
* DigitalOcean Spaces secret.
|
|
79
|
+
*/
|
|
80
|
+
secret: string;
|
|
81
|
+
};
|
|
82
|
+
type CreateTigrisClientParameters = {
|
|
83
|
+
/**
|
|
84
|
+
* Tigris access key ID.
|
|
85
|
+
*/
|
|
86
|
+
accessKeyId: string;
|
|
87
|
+
/**
|
|
88
|
+
* Tigris endpoint.
|
|
89
|
+
* @default `https://t3.storage.dev`
|
|
90
|
+
*/
|
|
91
|
+
endpoint?: string;
|
|
92
|
+
/**
|
|
93
|
+
* Tigris secret access key.
|
|
94
|
+
*/
|
|
95
|
+
secretAccessKey: string;
|
|
96
|
+
};
|
|
97
|
+
type CreateHetznerClientParameters = {
|
|
98
|
+
/**
|
|
99
|
+
* Hetzner Object Storage access key ID.
|
|
100
|
+
*/
|
|
101
|
+
accessKeyId: string;
|
|
102
|
+
/**
|
|
103
|
+
* Hetzner Object Storage location. Used as both the region and the
|
|
104
|
+
* subdomain of the endpoint (`https://{location}.your-objectstorage.com`).
|
|
105
|
+
*/
|
|
106
|
+
location: "fsn1" | "hel1" | "nbg1";
|
|
107
|
+
/**
|
|
108
|
+
* Hetzner Object Storage secret access key.
|
|
109
|
+
*/
|
|
110
|
+
secretAccessKey: string;
|
|
111
|
+
};
|
|
112
|
+
type CreateAkamaiClientParameters = {
|
|
113
|
+
/**
|
|
114
|
+
* Akamai Cloud Object Storage access key ID.
|
|
115
|
+
*/
|
|
116
|
+
accessKeyId: string;
|
|
117
|
+
/**
|
|
118
|
+
* Override the endpoint. When unset, defaults to
|
|
119
|
+
* `https://${region}.linodeobjects.com`. The `linodeobjects.com` domain
|
|
120
|
+
* is unchanged from the Linode era — only the product branding moved
|
|
121
|
+
* to Akamai.
|
|
122
|
+
*/
|
|
123
|
+
endpoint?: string;
|
|
124
|
+
/**
|
|
125
|
+
* Akamai Cloud Object Storage region/cluster code (formerly Linode Object
|
|
126
|
+
* Storage). Examples: `"us-iad-1"`, `"us-mia-1"`, `"us-ord-1"`,
|
|
127
|
+
* `"nl-ams-1"`, `"fr-par-1"`, `"gb-lon-1"`, `"jp-osa-1"`, plus the older
|
|
128
|
+
* `"us-east-1"` / `"eu-central-1"` / `"ap-south-1"` clusters.
|
|
129
|
+
*/
|
|
130
|
+
region: string;
|
|
131
|
+
/**
|
|
132
|
+
* Akamai Cloud Object Storage secret access key.
|
|
133
|
+
*/
|
|
134
|
+
secretAccessKey: string;
|
|
135
|
+
};
|
|
136
|
+
type CreateStorjClientParameters = {
|
|
137
|
+
/**
|
|
138
|
+
* Storj S3 Gateway access key (derived from a Storj access grant).
|
|
139
|
+
*/
|
|
140
|
+
accessKeyId: string;
|
|
141
|
+
/**
|
|
142
|
+
* Override the Storj S3 Gateway endpoint.
|
|
143
|
+
* @default `https://gateway.storjshare.io`
|
|
144
|
+
*/
|
|
145
|
+
endpoint?: string;
|
|
146
|
+
/**
|
|
147
|
+
* Storj S3 Gateway secret key (derived from a Storj access grant).
|
|
148
|
+
*/
|
|
149
|
+
secretAccessKey: string;
|
|
150
|
+
};
|
|
151
|
+
type CreateScalewayClientParameters = {
|
|
152
|
+
/**
|
|
153
|
+
* Scaleway Object Storage access key ID.
|
|
154
|
+
*/
|
|
155
|
+
accessKeyId: string;
|
|
156
|
+
/**
|
|
157
|
+
* Override the endpoint. When unset, defaults to
|
|
158
|
+
* `https://s3.${region}.scw.cloud`.
|
|
159
|
+
*/
|
|
160
|
+
endpoint?: string;
|
|
161
|
+
/**
|
|
162
|
+
* Scaleway region. Used as both the S3 region and the endpoint subdomain.
|
|
163
|
+
*/
|
|
164
|
+
region: "fr-par" | "nl-ams" | "pl-waw";
|
|
165
|
+
/**
|
|
166
|
+
* Scaleway Object Storage secret access key.
|
|
167
|
+
*/
|
|
168
|
+
secretAccessKey: string;
|
|
169
|
+
};
|
|
170
|
+
type CreateVultrClientParameters = {
|
|
171
|
+
/**
|
|
172
|
+
* Vultr Object Storage access key.
|
|
173
|
+
*/
|
|
174
|
+
accessKeyId: string;
|
|
175
|
+
/**
|
|
176
|
+
* Vultr Object Storage cluster/location code. Used as both the S3 region
|
|
177
|
+
* and the endpoint subdomain (`https://{location}.vultrobjects.com`).
|
|
178
|
+
* Examples: `"ewr1"`, `"sjc1"`, `"ams1"`, `"sgp1"`, `"del1"`, `"blr1"`.
|
|
179
|
+
*/
|
|
180
|
+
location: string;
|
|
181
|
+
/**
|
|
182
|
+
* Vultr Object Storage secret key.
|
|
183
|
+
*/
|
|
184
|
+
secretAccessKey: string;
|
|
185
|
+
};
|
|
186
|
+
type CreateExoscaleClientParameters = {
|
|
187
|
+
/**
|
|
188
|
+
* Exoscale SOS API key.
|
|
189
|
+
*/
|
|
190
|
+
accessKeyId: string;
|
|
191
|
+
/**
|
|
192
|
+
* Exoscale SOS API secret.
|
|
193
|
+
*/
|
|
194
|
+
secretAccessKey: string;
|
|
195
|
+
/**
|
|
196
|
+
* Exoscale zone. Used as both the S3 region and the endpoint subdomain
|
|
197
|
+
* (`https://sos-{zone}.exo.io`). Examples: `"ch-gva-2"`, `"ch-dk-2"`,
|
|
198
|
+
* `"de-fra-1"`, `"de-muc-1"`, `"at-vie-1"`, `"at-vie-2"`, `"bg-sof-1"`.
|
|
199
|
+
*/
|
|
200
|
+
zone: string;
|
|
201
|
+
};
|
|
202
|
+
type CreateFilebaseClientParameters = {
|
|
203
|
+
/**
|
|
204
|
+
* Filebase access key.
|
|
205
|
+
*/
|
|
206
|
+
accessKeyId: string;
|
|
207
|
+
/**
|
|
208
|
+
* Override the Filebase endpoint.
|
|
209
|
+
* @default `https://s3.filebase.com`
|
|
210
|
+
*/
|
|
211
|
+
endpoint?: string;
|
|
212
|
+
/**
|
|
213
|
+
* Filebase secret key.
|
|
214
|
+
*/
|
|
215
|
+
secretAccessKey: string;
|
|
216
|
+
};
|
|
217
|
+
type CreateIDriveE2ClientParameters = {
|
|
218
|
+
/**
|
|
219
|
+
* iDrive e2 access key ID.
|
|
220
|
+
*/
|
|
221
|
+
accessKeyId: string;
|
|
222
|
+
/**
|
|
223
|
+
* iDrive e2 endpoint. Account/region specific (assigned by iDrive), e.g.
|
|
224
|
+
* `https://x9y8.va.idrivee2-12.com` — there is no deterministic default,
|
|
225
|
+
* so the endpoint must be supplied.
|
|
226
|
+
*/
|
|
227
|
+
endpoint: string;
|
|
228
|
+
/**
|
|
229
|
+
* iDrive e2 region.
|
|
230
|
+
* @default `us-east-1`
|
|
231
|
+
*/
|
|
232
|
+
region?: string;
|
|
233
|
+
/**
|
|
234
|
+
* iDrive e2 secret access key.
|
|
235
|
+
*/
|
|
236
|
+
secretAccessKey: string;
|
|
237
|
+
};
|
|
238
|
+
type CreateIbmCosClientParameters = {
|
|
239
|
+
/**
|
|
240
|
+
* IBM Cloud Object Storage HMAC access key ID.
|
|
241
|
+
*/
|
|
242
|
+
accessKeyId: string;
|
|
243
|
+
/**
|
|
244
|
+
* Override the endpoint. When unset, defaults to
|
|
245
|
+
* `https://s3.${region}.cloud-object-storage.appdomain.cloud`.
|
|
246
|
+
*/
|
|
247
|
+
endpoint?: string;
|
|
248
|
+
/**
|
|
249
|
+
* IBM COS region. Used as both the S3 region and the endpoint subdomain.
|
|
250
|
+
* Examples: `"us-south"`, `"us-east"`, `"eu-gb"`, `"eu-de"`, `"jp-tok"`,
|
|
251
|
+
* `"au-syd"`, `"ca-tor"`, `"br-sao"`.
|
|
252
|
+
*/
|
|
253
|
+
region: string;
|
|
254
|
+
/**
|
|
255
|
+
* IBM Cloud Object Storage HMAC secret access key.
|
|
256
|
+
*/
|
|
257
|
+
secretAccessKey: string;
|
|
258
|
+
};
|
|
259
|
+
type CreateOracleCloudClientParameters = {
|
|
260
|
+
/**
|
|
261
|
+
* OCI Object Storage Customer Secret Key access key ID.
|
|
262
|
+
*/
|
|
263
|
+
accessKeyId: string;
|
|
264
|
+
/**
|
|
265
|
+
* Object Storage namespace (tenancy-specific). Forms part of the endpoint
|
|
266
|
+
* host: `https://{namespace}.compat.objectstorage.{region}.oraclecloud.com`.
|
|
267
|
+
*/
|
|
268
|
+
namespace: string;
|
|
269
|
+
/**
|
|
270
|
+
* OCI region. Examples: `"us-ashburn-1"`, `"us-phoenix-1"`,
|
|
271
|
+
* `"eu-frankfurt-1"`, `"uk-london-1"`, `"ap-tokyo-1"`.
|
|
272
|
+
*/
|
|
273
|
+
region: string;
|
|
274
|
+
/**
|
|
275
|
+
* OCI Object Storage Customer Secret Key.
|
|
276
|
+
*/
|
|
277
|
+
secretAccessKey: string;
|
|
278
|
+
};
|
|
279
|
+
type CreateOvhCloudClientParameters = {
|
|
280
|
+
/**
|
|
281
|
+
* OVHcloud Object Storage access key.
|
|
282
|
+
*/
|
|
283
|
+
accessKeyId: string;
|
|
284
|
+
/**
|
|
285
|
+
* Override the endpoint. When unset, defaults to the High Performance
|
|
286
|
+
* (S3) endpoint `https://s3.${region}.io.cloud.ovh.net`. For the
|
|
287
|
+
* Standard (Swift) offering pass `https://s3.${region}.cloud.ovh.net`.
|
|
288
|
+
*/
|
|
289
|
+
endpoint?: string;
|
|
290
|
+
/**
|
|
291
|
+
* OVHcloud region. Used as both the S3 region and the endpoint subdomain.
|
|
292
|
+
* Examples: `"gra"`, `"sbg"`, `"de"`, `"uk"`, `"waw"`, `"bhs"`, `"rbx"`.
|
|
293
|
+
*/
|
|
294
|
+
region: string;
|
|
295
|
+
/**
|
|
296
|
+
* OVHcloud Object Storage secret key.
|
|
297
|
+
*/
|
|
298
|
+
secretAccessKey: string;
|
|
299
|
+
};
|
|
300
|
+
type CreateAlibabaClientParameters = {
|
|
301
|
+
/**
|
|
302
|
+
* Alibaba Cloud OSS access key ID.
|
|
303
|
+
*/
|
|
304
|
+
accessKeyId: string;
|
|
305
|
+
/**
|
|
306
|
+
* Override the endpoint. When unset, defaults to
|
|
307
|
+
* `https://oss-${region}.aliyuncs.com`.
|
|
308
|
+
*/
|
|
309
|
+
endpoint?: string;
|
|
310
|
+
/**
|
|
311
|
+
* Alibaba Cloud OSS region. Used as both the S3 region and the endpoint
|
|
312
|
+
* subdomain. Examples: `"cn-hangzhou"`, `"cn-shanghai"`, `"cn-beijing"`,
|
|
313
|
+
* `"ap-southeast-1"`, `"us-east-1"`, `"eu-central-1"`.
|
|
314
|
+
*/
|
|
315
|
+
region: string;
|
|
316
|
+
/**
|
|
317
|
+
* Alibaba Cloud OSS access key secret.
|
|
318
|
+
*/
|
|
319
|
+
secretAccessKey: string;
|
|
320
|
+
};
|
|
321
|
+
type CreateTencentClientParameters = {
|
|
322
|
+
/**
|
|
323
|
+
* Tencent COS secret ID.
|
|
324
|
+
*/
|
|
325
|
+
accessKeyId: string;
|
|
326
|
+
/**
|
|
327
|
+
* Override the endpoint. When unset, defaults to
|
|
328
|
+
* `https://cos.${region}.myqcloud.com`.
|
|
329
|
+
*/
|
|
330
|
+
endpoint?: string;
|
|
331
|
+
/**
|
|
332
|
+
* Tencent COS region. Used as both the S3 region and the endpoint
|
|
333
|
+
* subdomain. Examples: `"ap-guangzhou"`, `"ap-shanghai"`, `"ap-beijing"`,
|
|
334
|
+
* `"ap-singapore"`, `"na-siliconvalley"`, `"eu-frankfurt"`.
|
|
335
|
+
*/
|
|
336
|
+
region: string;
|
|
337
|
+
/**
|
|
338
|
+
* Tencent COS secret key.
|
|
339
|
+
*/
|
|
340
|
+
secretAccessKey: string;
|
|
341
|
+
};
|
|
342
|
+
type CreateYandexClientParameters = {
|
|
343
|
+
/**
|
|
344
|
+
* Yandex Object Storage access key ID.
|
|
345
|
+
*/
|
|
346
|
+
accessKeyId: string;
|
|
347
|
+
/**
|
|
348
|
+
* Override the Yandex Object Storage endpoint.
|
|
349
|
+
* @default `https://storage.yandexcloud.net`
|
|
350
|
+
*/
|
|
351
|
+
endpoint?: string;
|
|
352
|
+
/**
|
|
353
|
+
* SigV4 signing region. Yandex serves a single global endpoint, so this
|
|
354
|
+
* does not drive routing.
|
|
355
|
+
* @default `ru-central1`
|
|
356
|
+
*/
|
|
357
|
+
region?: string;
|
|
358
|
+
/**
|
|
359
|
+
* Yandex Object Storage secret access key.
|
|
360
|
+
*/
|
|
361
|
+
secretAccessKey: string;
|
|
362
|
+
};
|
|
363
|
+
/**
|
|
364
|
+
* Create an Akamai Cloud Object Storage client, compatible with the S3 API.
|
|
365
|
+
*
|
|
366
|
+
* Akamai Cloud Object Storage is the rebranded Linode Object Storage; the
|
|
367
|
+
* underlying `linodeobjects.com` domain is unchanged.
|
|
368
|
+
*
|
|
369
|
+
* Optionally, you can omit the parameters and use the following environment variables:
|
|
370
|
+
* - `AWS_ACCESS_KEY_ID` / `AKAMAI_ACCESS_KEY_ID`
|
|
371
|
+
* - `AWS_SECRET_ACCESS_KEY` / `AKAMAI_SECRET_ACCESS_KEY`
|
|
372
|
+
* - `AKAMAI_REGION` (e.g. `us-iad-1`)
|
|
373
|
+
*/
|
|
374
|
+
declare const akamai: (parameters?: Partial<CreateAkamaiClientParameters>) => S3ClientConfig;
|
|
375
|
+
/**
|
|
376
|
+
* Create an Alibaba Cloud OSS client, compatible with the S3 API.
|
|
377
|
+
*
|
|
378
|
+
* The region is part of the default endpoint hostname, so it is not read
|
|
379
|
+
* from `AWS_REGION` (which is commonly set to an AWS region in dev/CI and
|
|
380
|
+
* would silently produce a broken endpoint).
|
|
381
|
+
*
|
|
382
|
+
* Optionally, you can omit the parameters and use the following environment variables:
|
|
383
|
+
* - `AWS_ACCESS_KEY_ID` / `ALIBABA_ACCESS_KEY_ID`
|
|
384
|
+
* - `AWS_SECRET_ACCESS_KEY` / `ALIBABA_ACCESS_KEY_SECRET`
|
|
385
|
+
* - `ALIBABA_REGION` (e.g. `cn-hangzhou`, `ap-southeast-1`, `eu-central-1`)
|
|
386
|
+
* - `ALIBABA_ENDPOINT`
|
|
387
|
+
*/
|
|
388
|
+
declare const alibaba: (parameters?: CreateAlibabaClientParameters) => S3ClientConfig;
|
|
389
|
+
/**
|
|
390
|
+
* Create a Backblaze B2 client, compatible with the S3 API.
|
|
391
|
+
*
|
|
392
|
+
* Optionally, you can omit the parameters and use the following environment variables:
|
|
393
|
+
* - `B2_REGION`
|
|
394
|
+
* - `B2_APP_KEY_ID`
|
|
395
|
+
* - `B2_APP_KEY`
|
|
396
|
+
*/
|
|
397
|
+
declare const backblaze: (parameters?: CreateBackblazeClientParameters) => S3ClientConfig;
|
|
398
|
+
/**
|
|
399
|
+
* Create a Cloudflare R2 client, compatible with the S3 API.
|
|
400
|
+
*
|
|
401
|
+
* Optionally, you can omit the parameters and use the following environment variables:
|
|
402
|
+
* - `CLOUDFLARE_ACCOUNT_ID`
|
|
403
|
+
* - `AWS_ACCESS_KEY_ID`
|
|
404
|
+
* - `AWS_SECRET_ACCESS_KEY`
|
|
405
|
+
* - `CLOUDFLARE_JURISDICTION`
|
|
406
|
+
*/
|
|
407
|
+
declare const cloudflare: (parameters?: CreateCloudflareClientParameters) => S3ClientConfig;
|
|
408
|
+
/**
|
|
409
|
+
* Create a DigitalOcean Spaces client, compatible with the S3 API.
|
|
410
|
+
*
|
|
411
|
+
* Optionally, you can omit the parameters and use the following environment variables:
|
|
412
|
+
* - `SPACES_REGION`
|
|
413
|
+
* - `SPACES_KEY`
|
|
414
|
+
* - `SPACES_SECRET`
|
|
415
|
+
*/
|
|
416
|
+
declare const digitalOcean: (parameters?: CreateDigitalOceanClientParameters) => S3ClientConfig;
|
|
417
|
+
/**
|
|
418
|
+
* Create an Exoscale SOS client, compatible with the S3 API.
|
|
419
|
+
*
|
|
420
|
+
* The zone is part of the endpoint hostname, so it is not read from
|
|
421
|
+
* `AWS_REGION` (which is commonly set to an AWS region in dev/CI and would
|
|
422
|
+
* silently produce a broken endpoint).
|
|
423
|
+
*
|
|
424
|
+
* Optionally, you can omit the parameters and use the following environment variables:
|
|
425
|
+
* - `AWS_ACCESS_KEY_ID` / `EXOSCALE_ACCESS_KEY_ID`
|
|
426
|
+
* - `AWS_SECRET_ACCESS_KEY` / `EXOSCALE_SECRET_ACCESS_KEY`
|
|
427
|
+
* - `EXOSCALE_ZONE` (e.g. `ch-gva-2`, `de-fra-1`, `at-vie-1`)
|
|
428
|
+
*/
|
|
429
|
+
declare const exoscale: (parameters?: CreateExoscaleClientParameters) => S3ClientConfig;
|
|
430
|
+
/**
|
|
431
|
+
* Create a Filebase client, compatible with the S3 API.
|
|
432
|
+
*
|
|
433
|
+
* Filebase exposes a single global endpoint and ignores the region, so only
|
|
434
|
+
* credentials are required.
|
|
435
|
+
*
|
|
436
|
+
* Optionally, you can omit the parameters and use the following environment variables:
|
|
437
|
+
* - `AWS_ACCESS_KEY_ID` / `FILEBASE_ACCESS_KEY_ID`
|
|
438
|
+
* - `AWS_SECRET_ACCESS_KEY` / `FILEBASE_SECRET_ACCESS_KEY`
|
|
439
|
+
* - `FILEBASE_ENDPOINT` (defaults to `https://s3.filebase.com`)
|
|
440
|
+
*/
|
|
441
|
+
declare const filebase: (parameters?: CreateFilebaseClientParameters) => S3ClientConfig;
|
|
442
|
+
/**
|
|
443
|
+
* Create a Hetzner Object Storage client, compatible with the S3 API.
|
|
444
|
+
*
|
|
445
|
+
* Optionally, you can omit the parameters and use the following environment variables:
|
|
446
|
+
* - `AWS_ACCESS_KEY_ID` / `HETZNER_ACCESS_KEY_ID`
|
|
447
|
+
* - `AWS_SECRET_ACCESS_KEY` / `HETZNER_SECRET_ACCESS_KEY`
|
|
448
|
+
* - `HETZNER_LOCATION` (one of `fsn1`, `nbg1`, `hel1`)
|
|
449
|
+
*/
|
|
450
|
+
declare const hetzner: (parameters?: CreateHetznerClientParameters) => S3ClientConfig;
|
|
451
|
+
/**
|
|
452
|
+
* Create an IBM Cloud Object Storage client, compatible with the S3 API.
|
|
453
|
+
*
|
|
454
|
+
* Requires HMAC credentials (a Customer Secret Key, not an IAM API key).
|
|
455
|
+
*
|
|
456
|
+
* The region is part of the default endpoint hostname, so it is not read
|
|
457
|
+
* from `AWS_REGION` (which is commonly set to an AWS region in dev/CI and
|
|
458
|
+
* would silently produce a broken endpoint).
|
|
459
|
+
*
|
|
460
|
+
* Optionally, you can omit the parameters and use the following environment variables:
|
|
461
|
+
* - `AWS_ACCESS_KEY_ID` / `IBM_COS_ACCESS_KEY_ID`
|
|
462
|
+
* - `AWS_SECRET_ACCESS_KEY` / `IBM_COS_SECRET_ACCESS_KEY`
|
|
463
|
+
* - `IBM_COS_REGION` (e.g. `us-south`, `eu-de`, `jp-tok`)
|
|
464
|
+
* - `IBM_COS_ENDPOINT`
|
|
465
|
+
*/
|
|
466
|
+
declare const ibmCos: (parameters?: CreateIbmCosClientParameters) => S3ClientConfig;
|
|
467
|
+
/**
|
|
468
|
+
* Create an iDrive e2 client, compatible with the S3 API.
|
|
469
|
+
*
|
|
470
|
+
* iDrive e2 endpoints are account/region specific and assigned by iDrive
|
|
471
|
+
* (e.g. `https://x9y8.va.idrivee2-12.com`), so the endpoint must be supplied.
|
|
472
|
+
*
|
|
473
|
+
* Optionally, you can omit the parameters and use the following environment variables:
|
|
474
|
+
* - `AWS_ACCESS_KEY_ID` / `IDRIVE_E2_ACCESS_KEY_ID`
|
|
475
|
+
* - `AWS_SECRET_ACCESS_KEY` / `IDRIVE_E2_SECRET_ACCESS_KEY`
|
|
476
|
+
* - `IDRIVE_E2_ENDPOINT`
|
|
477
|
+
* - `IDRIVE_E2_REGION` (defaults to `us-east-1`)
|
|
478
|
+
*/
|
|
479
|
+
declare const idriveE2: (parameters?: CreateIDriveE2ClientParameters) => S3ClientConfig;
|
|
480
|
+
/**
|
|
481
|
+
* Create a Minio client, compatible with the S3 API.
|
|
482
|
+
*
|
|
483
|
+
* Optionally, you can omit the parameters and use the following environment variables:
|
|
484
|
+
* - `AWS_REGION`
|
|
485
|
+
* - `AWS_ACCESS_KEY_ID`
|
|
486
|
+
* - `AWS_SECRET_ACCESS_KEY`
|
|
487
|
+
* - `MINIO_ENDPOINT`
|
|
488
|
+
*/
|
|
489
|
+
declare const minio: (parameters?: CreateMinioClientParameters) => S3ClientConfig;
|
|
490
|
+
/**
|
|
491
|
+
* Create an Oracle Cloud Infrastructure (OCI) Object Storage client, using
|
|
492
|
+
* the S3 Compatibility API.
|
|
493
|
+
*
|
|
494
|
+
* Requires a Customer Secret Key (generated under the user's API keys) and
|
|
495
|
+
* the tenancy's Object Storage namespace.
|
|
496
|
+
*
|
|
497
|
+
* The region is part of the endpoint hostname, so it is not read from
|
|
498
|
+
* `AWS_REGION` (commonly set to an AWS region in dev/CI, which would
|
|
499
|
+
* silently produce a broken endpoint).
|
|
500
|
+
*
|
|
501
|
+
* Optionally, you can omit the parameters and use the following environment variables:
|
|
502
|
+
* - `AWS_ACCESS_KEY_ID` / `ORACLE_CLOUD_ACCESS_KEY_ID`
|
|
503
|
+
* - `AWS_SECRET_ACCESS_KEY` / `ORACLE_CLOUD_SECRET_ACCESS_KEY`
|
|
504
|
+
* - `ORACLE_CLOUD_NAMESPACE`
|
|
505
|
+
* - `ORACLE_CLOUD_REGION` (e.g. `us-ashburn-1`, `eu-frankfurt-1`)
|
|
506
|
+
*/
|
|
507
|
+
declare const oracleCloud: (parameters?: CreateOracleCloudClientParameters) => S3ClientConfig;
|
|
508
|
+
/**
|
|
509
|
+
* Create an OVHcloud Object Storage client, compatible with the S3 API.
|
|
510
|
+
*
|
|
511
|
+
* Defaults to the High Performance (S3) endpoint. For the Standard (Swift)
|
|
512
|
+
* offering pass `endpoint: https://s3.{region}.cloud.ovh.net`.
|
|
513
|
+
*
|
|
514
|
+
* The region is part of the default endpoint hostname and the SigV4 signing
|
|
515
|
+
* scope, both of which require lowercase, so the region is lowercased (the
|
|
516
|
+
* OVH console displays it uppercase, e.g. `GRA`). It is not read from
|
|
517
|
+
* `AWS_REGION` (commonly set to an AWS region in dev/CI, which would
|
|
518
|
+
* silently produce a broken endpoint).
|
|
519
|
+
*
|
|
520
|
+
* Optionally, you can omit the parameters and use the following environment variables:
|
|
521
|
+
* - `AWS_ACCESS_KEY_ID` / `OVHCLOUD_ACCESS_KEY_ID`
|
|
522
|
+
* - `AWS_SECRET_ACCESS_KEY` / `OVHCLOUD_SECRET_ACCESS_KEY`
|
|
523
|
+
* - `OVHCLOUD_REGION` (e.g. `gra`, `sbg`, `de`, `uk`, `waw`, `bhs`)
|
|
524
|
+
* - `OVHCLOUD_ENDPOINT`
|
|
525
|
+
*/
|
|
526
|
+
declare const ovhCloud: (parameters?: CreateOvhCloudClientParameters) => S3ClientConfig;
|
|
527
|
+
/**
|
|
528
|
+
* Create a Scaleway Object Storage client, compatible with the S3 API.
|
|
529
|
+
*
|
|
530
|
+
* The region is part of the endpoint hostname, so it is not read from
|
|
531
|
+
* `AWS_REGION` (which is commonly set to an AWS region in dev/CI and would
|
|
532
|
+
* silently produce a broken endpoint).
|
|
533
|
+
*
|
|
534
|
+
* Optionally, you can omit the parameters and use the following environment variables:
|
|
535
|
+
* - `AWS_ACCESS_KEY_ID` / `SCALEWAY_ACCESS_KEY_ID`
|
|
536
|
+
* - `AWS_SECRET_ACCESS_KEY` / `SCALEWAY_SECRET_ACCESS_KEY`
|
|
537
|
+
* - `SCALEWAY_REGION` (one of `fr-par`, `nl-ams`, `pl-waw`)
|
|
538
|
+
*/
|
|
539
|
+
declare const scaleway: (parameters?: CreateScalewayClientParameters) => S3ClientConfig;
|
|
540
|
+
/**
|
|
541
|
+
* Create a Storj S3 Gateway client, compatible with the S3 API.
|
|
542
|
+
*
|
|
543
|
+
* Credentials are derived from a Storj access grant via the
|
|
544
|
+
* `storj.io/uplink` CLI or web console. The default endpoint targets the
|
|
545
|
+
* global Storj S3 Gateway; self-hosted gateways can override via `endpoint`.
|
|
546
|
+
*
|
|
547
|
+
* Optionally, you can omit the parameters and use the following environment variables:
|
|
548
|
+
* - `AWS_ACCESS_KEY_ID` / `STORJ_ACCESS_KEY_ID`
|
|
549
|
+
* - `AWS_SECRET_ACCESS_KEY` / `STORJ_SECRET_ACCESS_KEY`
|
|
550
|
+
* - `STORJ_ENDPOINT` (defaults to `https://gateway.storjshare.io`)
|
|
551
|
+
*/
|
|
552
|
+
declare const storj: (parameters?: CreateStorjClientParameters) => S3ClientConfig;
|
|
553
|
+
/**
|
|
554
|
+
* Create a Tencent Cloud COS client, compatible with the S3 API.
|
|
555
|
+
*
|
|
556
|
+
* The bucket name must include the APPID suffix (e.g.
|
|
557
|
+
* `uploads-1250000000`); the S3-compatible API expects the full form.
|
|
558
|
+
*
|
|
559
|
+
* The region is part of the default endpoint hostname, so it is not read
|
|
560
|
+
* from `AWS_REGION` (which is commonly set to an AWS region in dev/CI and
|
|
561
|
+
* would silently produce a broken endpoint).
|
|
562
|
+
*
|
|
563
|
+
* Optionally, you can omit the parameters and use the following environment variables:
|
|
564
|
+
* - `AWS_ACCESS_KEY_ID` / `TENCENT_SECRET_ID`
|
|
565
|
+
* - `AWS_SECRET_ACCESS_KEY` / `TENCENT_SECRET_KEY`
|
|
566
|
+
* - `TENCENT_REGION` (e.g. `ap-guangzhou`, `ap-singapore`, `eu-frankfurt`)
|
|
567
|
+
* - `TENCENT_ENDPOINT`
|
|
568
|
+
*/
|
|
569
|
+
declare const tencent: (parameters?: CreateTencentClientParameters) => S3ClientConfig;
|
|
570
|
+
/**
|
|
571
|
+
* Create a Tigris client, compatible with the S3 API.
|
|
572
|
+
*
|
|
573
|
+
* Optionally, you can omit the parameters and use the following environment variables:
|
|
574
|
+
* - `AWS_ACCESS_KEY_ID`
|
|
575
|
+
* - `AWS_SECRET_ACCESS_KEY`
|
|
576
|
+
* - `TIGRIS_ENDPOINT`
|
|
577
|
+
*/
|
|
578
|
+
declare const tigris: (parameters?: CreateTigrisClientParameters) => S3ClientConfig;
|
|
579
|
+
/**
|
|
580
|
+
* Create a Vultr Object Storage client, compatible with the S3 API.
|
|
581
|
+
*
|
|
582
|
+
* Optionally, you can omit the parameters and use the following environment variables:
|
|
583
|
+
* - `AWS_ACCESS_KEY_ID` / `VULTR_ACCESS_KEY_ID`
|
|
584
|
+
* - `AWS_SECRET_ACCESS_KEY` / `VULTR_SECRET_ACCESS_KEY`
|
|
585
|
+
* - `VULTR_LOCATION` (cluster code, e.g. `ewr1`, `sjc1`, `ams1`, `sgp1`)
|
|
586
|
+
*/
|
|
587
|
+
declare const vultr: (parameters?: CreateVultrClientParameters) => S3ClientConfig;
|
|
588
|
+
/**
|
|
589
|
+
* Create a Wasabi client, compatible with the S3 API.
|
|
590
|
+
*
|
|
591
|
+
* Optionally, you can omit the parameters and use the following environment variables:
|
|
592
|
+
* - `WASABI_REGION`
|
|
593
|
+
* - `AWS_ACCESS_KEY_ID`
|
|
594
|
+
* - `AWS_SECRET_ACCESS_KEY`
|
|
595
|
+
*/
|
|
596
|
+
declare const wasabi: (parameters?: CreateWasabiClientParameters) => S3ClientConfig;
|
|
597
|
+
/**
|
|
598
|
+
* Create a Yandex Object Storage client, compatible with the S3 API.
|
|
599
|
+
*
|
|
600
|
+
* Yandex serves a single global endpoint (`https://storage.yandexcloud.net`)
|
|
601
|
+
* and routes internally, so the region is only the SigV4 signing scope and
|
|
602
|
+
* defaults to `ru-central1`. It does not drive the endpoint, so falling back
|
|
603
|
+
* to `AWS_REGION` is safe here.
|
|
604
|
+
*
|
|
605
|
+
* Optionally, you can omit the parameters and use the following environment variables:
|
|
606
|
+
* - `AWS_ACCESS_KEY_ID` / `YANDEX_ACCESS_KEY_ID`
|
|
607
|
+
* - `AWS_SECRET_ACCESS_KEY` / `YANDEX_SECRET_ACCESS_KEY`
|
|
608
|
+
* - `AWS_REGION` / `YANDEX_REGION` (defaults to `ru-central1`)
|
|
609
|
+
* - `YANDEX_ENDPOINT`
|
|
610
|
+
*/
|
|
611
|
+
declare const yandex: (parameters?: CreateYandexClientParameters) => S3ClientConfig;
|
|
612
|
+
export { akamai, alibaba, backblaze, cloudflare, digitalOcean, exoscale, filebase, hetzner, ibmCos, idriveE2, minio, oracleCloud, ovhCloud, scaleway, storj, tencent, tigris, vultr, wasabi, yandex };
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { cloudflare } from '../../../packem_shared/cloudflare-Bi1q8wXE.js';
|
|
3
|
-
export { default as digitalOcean } from '../../../packem_shared/digitalOcean-CWQRJM3L.js';
|
|
4
|
-
export { default as minio } from '../../../packem_shared/minio-C2YBZQOw.js';
|
|
5
|
-
export { default as tigris } from '../../../packem_shared/tigris-Hac8TKnX.js';
|
|
6
|
-
export { default as wasabi } from '../../../packem_shared/wasabi-DIyflHSd.js';
|
|
1
|
+
import{default as o}from"../../../packem_shared/akamai-DthkaFul.js";import{default as t}from"../../../packem_shared/alibaba-BEi25O1g.js";import{default as l}from"../../../packem_shared/backblaze-m1N5NZ9q.js";import{default as d}from"../../../packem_shared/cloudflare-CdUTErlo.js";import{default as m}from"../../../packem_shared/digitalOcean-B2uB6pgz.js";import{default as p}from"../../../packem_shared/exoscale-BDa1Gjth.js";import{default as b}from"../../../packem_shared/filebase-CsFYJIwB.js";import{default as n}from"../../../packem_shared/hetzner-BGGFiRGD.js";import{default as C}from"../../../packem_shared/ibmCos-j-3TfJ5p.js";import{default as h}from"../../../packem_shared/idriveE2-C6pQ5pQ0.js";import{default as w}from"../../../packem_shared/minio-NKquuBfS.js";import{default as z}from"../../../packem_shared/oracleCloud-DslqNpn6.js";import{default as E}from"../../../packem_shared/ovhCloud-CMHE6uLV.js";import{default as q}from"../../../packem_shared/scaleway-U1In3v70.js";import{default as B}from"../../../packem_shared/storj-Cb59q9kF.js";import{default as F}from"../../../packem_shared/tencent-Q1y2GENc.js";import{default as H}from"../../../packem_shared/tigris-BELKoyyp.js";import{default as J}from"../../../packem_shared/vultr-B491cQ4e.js";import{default as L}from"../../../packem_shared/wasabi-DFrwIoab.js";import{default as N}from"../../../packem_shared/yandex-CwzHuEKP.js";export{o as akamai,t as alibaba,l as backblaze,d as cloudflare,m as digitalOcean,p as exoscale,b as filebase,n as hetzner,C as ibmCos,h as idriveE2,w as minio,z as oracleCloud,E as ovhCloud,q as scaleway,B as storj,F as tencent,H as tigris,J as vultr,L as wasabi,N as yandex};
|