@visulima/storage 1.0.0-alpha.27 → 1.0.0-alpha.29
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 +29 -0
- package/README.md +2 -2
- package/dist/adapter/nuxt/module.d.ts +4 -4
- package/dist/adapter/nuxt/node_modules/.bin/nuxi +2 -2
- package/dist/adapter/nuxt/node_modules/.bin/nuxt +2 -2
- package/dist/ai/ai-sdk/index.d.ts +3 -3
- package/dist/ai/claude/index.d.ts +2 -2
- package/dist/ai/openai/index.d.ts +3 -3
- package/dist/ai/tanstack/index.d.ts +2 -2
- package/dist/handler/http/fetch/index.d.ts +7 -7
- package/dist/handler/http/fetch/index.js +1 -1
- package/dist/handler/http/hono/index.d.ts +4 -4
- package/dist/handler/http/hono/index.js +1 -1
- package/dist/handler/http/nextjs/index.d.ts +4 -4
- package/dist/handler/http/nextjs/index.js +1 -1
- package/dist/handler/http/node/index.d.ts +7 -7
- package/dist/handler/http/node/index.js +1 -1
- package/dist/handler/http/solid-start/index.d.ts +4 -4
- package/dist/handler/http/solid-start/index.js +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +1 -1
- package/dist/packem_shared/{AwsLightMetaStorage-DHz1nf_H.js → AwsLightMetaStorage-B-iQbToR.js} +1 -1
- package/dist/packem_shared/AwsLightStorage-w21RxjUm.js +1 -0
- package/dist/packem_shared/AzureSMetaStorage-CR-lfQNQ.js +1 -0
- package/dist/packem_shared/AzureStorage-2kl7JDXs.js +1 -0
- package/dist/packem_shared/BoxMetaStorage-DLdXbZaV.js +1 -0
- package/dist/packem_shared/BoxStorage-BUeEJoGL.js +1 -0
- package/dist/packem_shared/BunS3File-D-SRiyrm.js +1 -0
- package/dist/packem_shared/BunS3MetaStorage-Bv_CTTMz.js +1 -0
- package/dist/packem_shared/BunS3Storage-WM3rF6Fw.js +1 -0
- package/dist/packem_shared/BunnyMetaStorage-DNMTSeoN.js +1 -0
- package/dist/packem_shared/BunnyStorage-D3s2fRB3.js +1 -0
- package/dist/packem_shared/CloudinaryFile-B5-m33eS.js +1 -0
- package/dist/packem_shared/CloudinaryMetaStorage-DEBk5eQy.js +1 -0
- package/dist/packem_shared/CloudinaryStorage-BBE2-aVz.js +1 -0
- package/dist/packem_shared/DiskStorage-DL0GiG6k.js +1 -0
- package/dist/packem_shared/{DiskStorageWithChecksum-CbXWpSOr.js → DiskStorageWithChecksum-BvUTn7O-.js} +1 -1
- package/dist/packem_shared/{DropboxMetaStorage-CICuUZ1n.js → DropboxMetaStorage-C6vj1QDA.js} +1 -1
- package/dist/packem_shared/DropboxStorage-BL3OIdE_.js +1 -0
- package/dist/packem_shared/{Files-B7hlJcB4.js → Files-CJh9_N-9.js} +1 -1
- package/dist/packem_shared/FirebaseFile-JEu3plMP.js +1 -0
- package/dist/packem_shared/FirebaseMetaStorage-CzyOim-J.js +1 -0
- package/dist/packem_shared/FirebaseStorage-lXMXy3Pm.js +2 -0
- package/dist/packem_shared/FtpFile-B8jaICTB.js +1 -0
- package/dist/packem_shared/FtpMetaStorage-1Njy0DpU.js +1 -0
- package/dist/packem_shared/FtpStorage-Dw94efNW.js +1 -0
- package/dist/packem_shared/{GCSMetaStorage-CqP9ifYB.js → GCSMetaStorage-DvRxZhmq.js} +1 -1
- package/dist/packem_shared/GCStorage-U4f4WsWC.js +1 -0
- package/dist/packem_shared/{GoogleDriveMetaStorage-rghGy3Fa.js → GoogleDriveMetaStorage-WGuUZPyx.js} +1 -1
- package/dist/packem_shared/GoogleDriveStorage-C0NhBBWH.js +1 -0
- package/dist/packem_shared/{LocalMetaStorage-B5uh1snG.js → LocalMetaStorage-QMKL7McF.js} +1 -1
- package/dist/packem_shared/{Multipart-7FSSy2n1.js → Multipart-CIFfQksD.js} +1 -1
- package/dist/packem_shared/{Multipart-DACQFsrn.js → Multipart-D9WIud9R.js} +1 -1
- package/dist/packem_shared/NetlifyBlobMetaStorage-ClIFdTkT.js +1 -0
- package/dist/packem_shared/NetlifyBlobStorage-CO89TGvF.js +1 -0
- package/dist/packem_shared/OneDriveMetaStorage-DS4f83X2.js +1 -0
- package/dist/packem_shared/OneDriveStorage-jAN46vRm.js +1 -0
- package/dist/packem_shared/PocketBaseFile-CkAiSBb0.js +1 -0
- package/dist/packem_shared/PocketBaseMetaStorage-B6utPncj.js +1 -0
- package/dist/packem_shared/PocketBaseStorage-DpOjOKAt.js +1 -0
- package/dist/packem_shared/{Rest-5NwM1xYj.js → Rest-BuD3ySAg.js} +1 -1
- package/dist/packem_shared/{Rest-y8Vz2Rt0.js → Rest-URrQ5FYM.js} +1 -1
- package/dist/packem_shared/S3Storage-n1ohEZj4.js +1 -0
- package/dist/packem_shared/SftpFile-CQCxZNVq.js +1 -0
- package/dist/packem_shared/SftpMetaStorage-DYqXwCdM.js +1 -0
- package/dist/packem_shared/SftpStorage-Ban-WN8v.js +1 -0
- package/dist/packem_shared/SharePointFile-BA6X9Sxr.js +1 -0
- package/dist/packem_shared/SharePointMetaStorage-DVM5-X6g.js +1 -0
- package/dist/packem_shared/SharePointStorage-BY90zh1c.js +1 -0
- package/dist/packem_shared/SupabaseMetaStorage-ivXoYVUu.js +1 -0
- package/dist/packem_shared/SupabaseStorage-pNbHAE1Y.js +1 -0
- package/dist/packem_shared/{Tus-CJMcygk7.js → Tus-Fp_hx5ug.js} +1 -1
- package/dist/packem_shared/{Tus-BCVAbJIi.js → Tus-TNG9HAY8.js} +1 -1
- package/dist/packem_shared/UploadThingMetaStorage-BvKNzgm7.js +1 -0
- package/dist/packem_shared/UploadThingStorage-BcmIE2dI.js +1 -0
- package/dist/packem_shared/{VercelBlobMetaStorage-Do9ZoKrl.js → VercelBlobMetaStorage-CwaqWucZ.js} +1 -1
- package/dist/packem_shared/VercelBlobStorage-C89IUiQ1.js +1 -0
- package/dist/packem_shared/alibaba-BJQ6ijoK.js +1 -0
- package/dist/packem_shared/aws-light-meta-storage-CstQBYXG.js +4 -0
- package/dist/packem_shared/azure-meta-storage-C4SrMtT2.js +1 -0
- package/dist/packem_shared/{base-handler-core-BfwZ1RS1.js → base-handler-core-BYDQditz.js} +1 -1
- package/dist/packem_shared/{base-handler-fetch-CLxqXTQf.js → base-handler-fetch-DWzsPkmV.js} +1 -1
- package/dist/packem_shared/{base-handler-node-DBZjcqsp.js → base-handler-node-Dety2rQB.js} +1 -1
- package/dist/packem_shared/defaultCloudStorageFileNameValidation-shIZX_7L.js +1 -0
- package/dist/packem_shared/disk-storage-CKAJvhcj.js +1 -0
- package/dist/packem_shared/{disk-storage-with-checksum.d-BQMXA4Wl.d.ts → disk-storage-with-checksum.d-mHcg2uLw.d.ts} +1 -1
- package/dist/packem_shared/{executors.d-UtkeCbk1.d.ts → executors.d-X4hz3zfu.d.ts} +1 -1
- package/dist/packem_shared/exoscale-O0HzxoDz.js +1 -0
- package/dist/packem_shared/filebase-D-urO4Ob.js +1 -0
- package/dist/packem_shared/{gcs-meta-storage-XB-UPJn6.js → gcs-meta-storage-Br_I-m9X.js} +1 -1
- package/dist/packem_shared/ibmCos-Rx_yku4H.js +1 -0
- package/dist/packem_shared/idriveE2-BFhw0Vwy.js +1 -0
- package/dist/packem_shared/index-B4ETk0Lu.js +5 -0
- package/dist/packem_shared/{index.d-DotjipuX.d.ts → index.d-C4Fivh4I.d.ts} +7 -2
- package/dist/packem_shared/isRetryableError-BhizNeAz.js +1 -0
- package/dist/packem_shared/{local-meta-storage-CT1audnK.js → local-meta-storage-Bi0mK6gD.js} +1 -1
- package/dist/packem_shared/{local-meta-storage.d-B5R1nswK.d.ts → local-meta-storage.d-B11vHYNm.d.ts} +1 -1
- package/dist/packem_shared/{media-transformer.d-DK7NJncf.d.ts → media-transformer.d-j1W9HAXw.d.ts} +2 -2
- package/dist/packem_shared/oracleCloud-D5T9s4JV.js +1 -0
- package/dist/packem_shared/ovhCloud-DCwef2fe.js +1 -0
- package/dist/packem_shared/posix-dirname-CiHXPPnw.js +1 -0
- package/dist/packem_shared/{rest-base-CCv78k7h.js → rest-base-DI7xFXr5.js} +1 -1
- package/dist/packem_shared/s3-base-storage-Dbexfg7p.js +1 -0
- package/dist/packem_shared/{s3-base-storage.d-BROGYJ4F.d.ts → s3-base-storage.d-V3N2nKCt.d.ts} +31 -22
- package/dist/packem_shared/scaleway-ygRXOss9.js +1 -0
- package/dist/packem_shared/storage-Dh0tJh7j.js +1 -0
- package/dist/packem_shared/{storage.d-Cr6f2lac.d.ts → storage.d-RteRC-cG.d.ts} +131 -65
- package/dist/packem_shared/tencent-CAcAGaIW.js +1 -0
- package/dist/packem_shared/{tus-base.d-4-ZfDQwl.d.ts → tus-base.d-wZsb3umJ.d.ts} +3 -3
- package/dist/packem_shared/{types.d-C8eSxqX9.d.ts → types.d-B5qPfCr5.d.ts} +2 -2
- package/dist/packem_shared/types.d-ChNXbbHG.d.ts +104 -0
- package/dist/packem_shared/{types.d-BgCmSE94.d.ts → types.d-DzPvh74p.d.ts} +2 -2
- package/dist/packem_shared/vultr-lK9L-sFk.js +1 -0
- package/dist/packem_shared/yandex-ZwvE77v4.js +1 -0
- package/dist/storage/aws/clients/index.d.ts +372 -1
- package/dist/storage/aws/clients/index.js +1 -1
- package/dist/storage/aws/index.d.ts +13 -13
- package/dist/storage/aws/index.js +1 -1
- package/dist/storage/aws-light/index.d.ts +13 -13
- package/dist/storage/aws-light/index.js +1 -1
- package/dist/storage/azure/index.d.ts +82 -14
- package/dist/storage/azure/index.js +1 -1
- package/dist/storage/box/index.d.ts +12 -9
- package/dist/storage/box/index.js +1 -1
- 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 +13 -10
- package/dist/storage/bunny/index.js +1 -1
- package/dist/storage/cloudinary/index.d.ts +121 -0
- package/dist/storage/cloudinary/index.js +1 -0
- package/dist/storage/dropbox/index.d.ts +13 -10
- package/dist/storage/dropbox/index.js +1 -1
- package/dist/storage/firebase/index.d.ts +192 -0
- package/dist/storage/firebase/index.js +1 -0
- package/dist/storage/ftp/index.d.ts +85 -0
- package/dist/storage/ftp/index.js +1 -0
- package/dist/storage/gcs/index.d.ts +19 -10
- package/dist/storage/gcs/index.js +1 -1
- package/dist/storage/google-drive/index.d.ts +12 -9
- package/dist/storage/google-drive/index.js +1 -1
- package/dist/storage/local/index.d.ts +3 -3
- package/dist/storage/local/index.js +1 -1
- package/dist/storage/netlify-blob/index.d.ts +15 -12
- package/dist/storage/netlify-blob/index.js +1 -1
- package/dist/storage/onedrive/index.d.ts +22 -111
- package/dist/storage/onedrive/index.js +1 -1
- package/dist/storage/pocketbase/index.d.ts +172 -0
- package/dist/storage/pocketbase/index.js +1 -0
- package/dist/storage/sftp/index.d.ts +86 -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 +14 -10
- package/dist/storage/supabase/index.js +1 -1
- package/dist/storage/uploadthing/index.d.ts +14 -10
- package/dist/storage/uploadthing/index.js +1 -1
- package/dist/storage/vercel-blob/index.d.ts +13 -10
- package/dist/storage/vercel-blob/index.js +1 -1
- package/dist/transformer/audio-transformer.d.ts +2 -2
- package/dist/transformer/image-transformer.d.ts +2 -2
- package/dist/transformer/index.d.ts +3 -3
- package/dist/transformer/video-transformer.d.ts +2 -2
- package/package.json +55 -3
- package/dist/packem_shared/AwsLightStorage-SH7j-myh.js +0 -1
- package/dist/packem_shared/AzureSMetaStorage-DV2tNjKh.js +0 -1
- package/dist/packem_shared/AzureStorage-BVYMFEBP.js +0 -1
- package/dist/packem_shared/BoxMetaStorage-BUe5Qmqe.js +0 -1
- package/dist/packem_shared/BoxStorage-CgC81_So.js +0 -1
- package/dist/packem_shared/BunnyMetaStorage-D0mT6veJ.js +0 -1
- package/dist/packem_shared/BunnyStorage-Bl4usdVT.js +0 -1
- package/dist/packem_shared/DiskStorage-B5uIDVXr.js +0 -1
- package/dist/packem_shared/DropboxStorage-CPjhDN5B.js +0 -1
- package/dist/packem_shared/GCStorage-XSBKVx90.js +0 -1
- package/dist/packem_shared/GoogleDriveStorage-DuB6glUk.js +0 -1
- package/dist/packem_shared/NetlifyBlobMetaStorage-BcRFPky8.js +0 -1
- package/dist/packem_shared/NetlifyBlobStorage-C4qkJv1R.js +0 -1
- package/dist/packem_shared/OneDriveMetaStorage-B_BkGLzW.js +0 -1
- package/dist/packem_shared/OneDriveStorage-Cu0cGcrh.js +0 -1
- package/dist/packem_shared/S3Storage-D8dopWoO.js +0 -1
- package/dist/packem_shared/SupabaseMetaStorage-BR1UGqnj.js +0 -1
- package/dist/packem_shared/SupabaseStorage-CCtMTiN5.js +0 -1
- package/dist/packem_shared/UploadThingMetaStorage-DyGNyaAq.js +0 -1
- package/dist/packem_shared/UploadThingStorage-B_fNzNFO.js +0 -1
- package/dist/packem_shared/VercelBlobStorage-D5zy4PPQ.js +0 -1
- package/dist/packem_shared/aws-light-meta-storage-TPyQwLvk.js +0 -4
- package/dist/packem_shared/defaultCloudStorageFileNameValidation-6URTv-Mp.js +0 -1
- package/dist/packem_shared/disk-storage-CbSSPnOf.js +0 -5
- package/dist/packem_shared/isRetryableError-B6ZS_-5I.js +0 -1
- package/dist/packem_shared/s3-base-storage-f_EyFAAt.js +0 -1
- package/dist/packem_shared/storage-CoyB2O-Y.js +0 -1
|
@@ -148,6 +148,218 @@ type CreateStorjClientParameters = {
|
|
|
148
148
|
*/
|
|
149
149
|
secretAccessKey: string;
|
|
150
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
|
+
};
|
|
151
363
|
/**
|
|
152
364
|
* Create an Akamai Cloud Object Storage client, compatible with the S3 API.
|
|
153
365
|
*
|
|
@@ -161,6 +373,20 @@ type CreateStorjClientParameters = {
|
|
|
161
373
|
*/
|
|
162
374
|
declare const akamai: (parameters?: Partial<CreateAkamaiClientParameters>) => S3ClientConfig;
|
|
163
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
|
+
/**
|
|
164
390
|
* Create a Backblaze B2 client, compatible with the S3 API.
|
|
165
391
|
*
|
|
166
392
|
* Optionally, you can omit the parameters and use the following environment variables:
|
|
@@ -189,6 +415,31 @@ declare const cloudflare: (parameters?: CreateCloudflareClientParameters) => S3C
|
|
|
189
415
|
*/
|
|
190
416
|
declare const digitalOcean: (parameters?: CreateDigitalOceanClientParameters) => S3ClientConfig;
|
|
191
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
|
+
/**
|
|
192
443
|
* Create a Hetzner Object Storage client, compatible with the S3 API.
|
|
193
444
|
*
|
|
194
445
|
* Optionally, you can omit the parameters and use the following environment variables:
|
|
@@ -198,6 +449,35 @@ declare const digitalOcean: (parameters?: CreateDigitalOceanClientParameters) =>
|
|
|
198
449
|
*/
|
|
199
450
|
declare const hetzner: (parameters?: CreateHetznerClientParameters) => S3ClientConfig;
|
|
200
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
|
+
/**
|
|
201
481
|
* Create a Minio client, compatible with the S3 API.
|
|
202
482
|
*
|
|
203
483
|
* Optionally, you can omit the parameters and use the following environment variables:
|
|
@@ -208,6 +488,56 @@ declare const hetzner: (parameters?: CreateHetznerClientParameters) => S3ClientC
|
|
|
208
488
|
*/
|
|
209
489
|
declare const minio: (parameters?: CreateMinioClientParameters) => S3ClientConfig;
|
|
210
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
|
+
/**
|
|
211
541
|
* Create a Storj S3 Gateway client, compatible with the S3 API.
|
|
212
542
|
*
|
|
213
543
|
* Credentials are derived from a Storj access grant via the
|
|
@@ -221,6 +551,23 @@ declare const minio: (parameters?: CreateMinioClientParameters) => S3ClientConfi
|
|
|
221
551
|
*/
|
|
222
552
|
declare const storj: (parameters?: CreateStorjClientParameters) => S3ClientConfig;
|
|
223
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
|
+
/**
|
|
224
571
|
* Create a Tigris client, compatible with the S3 API.
|
|
225
572
|
*
|
|
226
573
|
* Optionally, you can omit the parameters and use the following environment variables:
|
|
@@ -230,6 +577,15 @@ declare const storj: (parameters?: CreateStorjClientParameters) => S3ClientConfi
|
|
|
230
577
|
*/
|
|
231
578
|
declare const tigris: (parameters?: CreateTigrisClientParameters) => S3ClientConfig;
|
|
232
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
|
+
/**
|
|
233
589
|
* Create a Wasabi client, compatible with the S3 API.
|
|
234
590
|
*
|
|
235
591
|
* Optionally, you can omit the parameters and use the following environment variables:
|
|
@@ -238,4 +594,19 @@ declare const tigris: (parameters?: CreateTigrisClientParameters) => S3ClientCon
|
|
|
238
594
|
* - `AWS_SECRET_ACCESS_KEY`
|
|
239
595
|
*/
|
|
240
596
|
declare const wasabi: (parameters?: CreateWasabiClientParameters) => S3ClientConfig;
|
|
241
|
-
|
|
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 +1 @@
|
|
|
1
|
-
import{default as
|
|
1
|
+
import{default as o}from"../../../packem_shared/akamai-BYS9pP8S.js";import{default as t}from"../../../packem_shared/alibaba-BJQ6ijoK.js";import{backblaze as l}from"../../../packem_shared/backblaze-CvdtCvJL.js";import{cloudflare as d}from"../../../packem_shared/cloudflare-Bm_Pg6yx.js";import{default as u}from"../../../packem_shared/digitalOcean-Lj1NfDzc.js";import{default as p}from"../../../packem_shared/exoscale-O0HzxoDz.js";import{default as b}from"../../../packem_shared/filebase-D-urO4Ob.js";import{default as n}from"../../../packem_shared/hetzner-DDxE7Gy7.js";import{default as C}from"../../../packem_shared/ibmCos-Rx_yku4H.js";import{default as h}from"../../../packem_shared/idriveE2-BFhw0Vwy.js";import{default as w}from"../../../packem_shared/minio-T_Z3iEy7.js";import{default as z}from"../../../packem_shared/oracleCloud-D5T9s4JV.js";import{default as E}from"../../../packem_shared/ovhCloud-DCwef2fe.js";import{default as q}from"../../../packem_shared/scaleway-ygRXOss9.js";import{default as B}from"../../../packem_shared/storj-CVA9mM-7.js";import{default as F}from"../../../packem_shared/tencent-CAcAGaIW.js";import{default as H}from"../../../packem_shared/tigris-wmhjfsH2.js";import{default as J}from"../../../packem_shared/vultr-lK9L-sFk.js";import{default as L}from"../../../packem_shared/wasabi-JQzxdrFy.js";import{default as N}from"../../../packem_shared/yandex-ZwvE77v4.js";export{o as akamai,t as alibaba,l as backblaze,d as cloudflare,u 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};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { F as File, t as MetaStorageOptions,
|
|
1
|
+
import { F as File, t as MetaStorageOptions, i as BaseStorageOptions, L as LocalMetaStorageOptions, M as MetaStorage, H as HttpError, g as FileQuery, O as OperationOptions, e as FileInit } from "../../packem_shared/storage.d-RteRC-cG.js";
|
|
2
2
|
import { Readable } from 'node:stream';
|
|
3
|
-
import { P as Part, S as
|
|
3
|
+
import { P as Part, S as S3CallOptions, a as S3ApiOperations, b as S3BaseStorage } from "../../packem_shared/s3-base-storage.d-V3N2nKCt.js";
|
|
4
4
|
import { S3ClientConfig, ObjectCannedACL, S3Client } from '@aws-sdk/client-s3';
|
|
5
5
|
import { ResponseMetadata } from '@aws-sdk/types';
|
|
6
6
|
import 'node:crypto';
|
|
@@ -147,7 +147,7 @@ declare class S3ClientAdapter implements S3ApiOperations {
|
|
|
147
147
|
ContentType?: string;
|
|
148
148
|
Key: string;
|
|
149
149
|
Metadata?: Record<string, string>;
|
|
150
|
-
}): Promise<{
|
|
150
|
+
}, options?: S3CallOptions): Promise<{
|
|
151
151
|
UploadId: string;
|
|
152
152
|
}>;
|
|
153
153
|
uploadPart(params: {
|
|
@@ -158,7 +158,7 @@ declare class S3ClientAdapter implements S3ApiOperations {
|
|
|
158
158
|
Key: string;
|
|
159
159
|
PartNumber: number;
|
|
160
160
|
UploadId: string;
|
|
161
|
-
}): Promise<{
|
|
161
|
+
}, options?: S3CallOptions): Promise<{
|
|
162
162
|
ETag: string;
|
|
163
163
|
}>;
|
|
164
164
|
completeMultipartUpload(params: {
|
|
@@ -169,7 +169,7 @@ declare class S3ClientAdapter implements S3ApiOperations {
|
|
|
169
169
|
PartNumber: number;
|
|
170
170
|
}[];
|
|
171
171
|
UploadId: string;
|
|
172
|
-
}): Promise<{
|
|
172
|
+
}, options?: S3CallOptions): Promise<{
|
|
173
173
|
ETag?: string;
|
|
174
174
|
Location: string;
|
|
175
175
|
}>;
|
|
@@ -177,18 +177,18 @@ declare class S3ClientAdapter implements S3ApiOperations {
|
|
|
177
177
|
Bucket: string;
|
|
178
178
|
Key: string;
|
|
179
179
|
UploadId: string;
|
|
180
|
-
}): Promise<void>;
|
|
180
|
+
}, options?: S3CallOptions): Promise<void>;
|
|
181
181
|
listParts(params: {
|
|
182
182
|
Bucket: string;
|
|
183
183
|
Key: string;
|
|
184
184
|
UploadId: string;
|
|
185
|
-
}): Promise<{
|
|
185
|
+
}, options?: S3CallOptions): Promise<{
|
|
186
186
|
Parts?: Part[];
|
|
187
187
|
}>;
|
|
188
188
|
getObject(params: {
|
|
189
189
|
Bucket: string;
|
|
190
190
|
Key: string;
|
|
191
|
-
}): Promise<{
|
|
191
|
+
}, options?: S3CallOptions): Promise<{
|
|
192
192
|
Body?: ReadableStream | Readable;
|
|
193
193
|
ContentLength?: number;
|
|
194
194
|
ContentType?: string;
|
|
@@ -200,7 +200,7 @@ declare class S3ClientAdapter implements S3ApiOperations {
|
|
|
200
200
|
headObject(params: {
|
|
201
201
|
Bucket: string;
|
|
202
202
|
Key: string;
|
|
203
|
-
}): Promise<{
|
|
203
|
+
}, options?: S3CallOptions): Promise<{
|
|
204
204
|
ContentLength?: number;
|
|
205
205
|
ContentType?: string;
|
|
206
206
|
ETag?: string;
|
|
@@ -210,18 +210,18 @@ declare class S3ClientAdapter implements S3ApiOperations {
|
|
|
210
210
|
deleteObject(params: {
|
|
211
211
|
Bucket: string;
|
|
212
212
|
Key: string;
|
|
213
|
-
}): Promise<void>;
|
|
213
|
+
}, options?: S3CallOptions): Promise<void>;
|
|
214
214
|
copyObject(params: {
|
|
215
215
|
Bucket: string;
|
|
216
216
|
CopySource: string;
|
|
217
217
|
Key: string;
|
|
218
218
|
StorageClass?: string;
|
|
219
|
-
}): Promise<void>;
|
|
219
|
+
}, options?: S3CallOptions): Promise<void>;
|
|
220
220
|
listObjectsV2(params: {
|
|
221
221
|
Bucket: string;
|
|
222
222
|
ContinuationToken?: string;
|
|
223
223
|
MaxKeys?: number;
|
|
224
|
-
}): Promise<{
|
|
224
|
+
}, options?: S3CallOptions): Promise<{
|
|
225
225
|
Contents?: {
|
|
226
226
|
Key?: string;
|
|
227
227
|
LastModified?: Date;
|
|
@@ -297,7 +297,7 @@ declare class S3Storage extends S3BaseStorage {
|
|
|
297
297
|
}: FileQuery, metadata: Partial<S3File>): Promise<S3File>;
|
|
298
298
|
override getStream({
|
|
299
299
|
id
|
|
300
|
-
}: FileQuery): Promise<{
|
|
300
|
+
}: FileQuery, options?: OperationOptions): Promise<{
|
|
301
301
|
headers?: Record<string, string>;
|
|
302
302
|
size?: number;
|
|
303
303
|
stream: Readable;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{default as t}from"../../packem_shared/S3File-BfmCOET4.js";import{default as r}from"../../packem_shared/S3MetaStorage-vcriiosn.js";import{default as S}from"../../packem_shared/S3Storage-
|
|
1
|
+
import{default as t}from"../../packem_shared/S3File-BfmCOET4.js";import{default as r}from"../../packem_shared/S3MetaStorage-vcriiosn.js";import{default as S}from"../../packem_shared/S3Storage-n1ohEZj4.js";export{t as S3File,r as S3MetaStorage,S as S3Storage};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as Part, S as
|
|
2
|
-
import { F as File, t as MetaStorageOptions,
|
|
1
|
+
import { P as Part, S as S3CallOptions, a as S3ApiOperations, b as S3BaseStorage } from "../../packem_shared/s3-base-storage.d-V3N2nKCt.js";
|
|
2
|
+
import { F as File, t as MetaStorageOptions, i as BaseStorageOptions, M as MetaStorage, H as HttpError, g as FileQuery, O as OperationOptions, e as FileInit } from "../../packem_shared/storage.d-RteRC-cG.js";
|
|
3
3
|
import { Readable } from 'node:stream';
|
|
4
4
|
import { AwsClient } from 'aws4fetch';
|
|
5
5
|
import 'node:crypto';
|
|
@@ -78,7 +78,7 @@ declare class AwsLightApiAdapter implements S3ApiOperations {
|
|
|
78
78
|
ContentType?: string;
|
|
79
79
|
Key: string;
|
|
80
80
|
Metadata?: Record<string, string>;
|
|
81
|
-
}): Promise<{
|
|
81
|
+
}, options?: S3CallOptions): Promise<{
|
|
82
82
|
UploadId: string;
|
|
83
83
|
}>;
|
|
84
84
|
uploadPart(params: {
|
|
@@ -89,7 +89,7 @@ declare class AwsLightApiAdapter implements S3ApiOperations {
|
|
|
89
89
|
Key: string;
|
|
90
90
|
PartNumber: number;
|
|
91
91
|
UploadId: string;
|
|
92
|
-
}): Promise<{
|
|
92
|
+
}, options?: S3CallOptions): Promise<{
|
|
93
93
|
ETag: string;
|
|
94
94
|
}>;
|
|
95
95
|
completeMultipartUpload(params: {
|
|
@@ -100,7 +100,7 @@ declare class AwsLightApiAdapter implements S3ApiOperations {
|
|
|
100
100
|
PartNumber: number;
|
|
101
101
|
}[];
|
|
102
102
|
UploadId: string;
|
|
103
|
-
}): Promise<{
|
|
103
|
+
}, options?: S3CallOptions): Promise<{
|
|
104
104
|
ETag?: string;
|
|
105
105
|
Location: string;
|
|
106
106
|
}>;
|
|
@@ -108,18 +108,18 @@ declare class AwsLightApiAdapter implements S3ApiOperations {
|
|
|
108
108
|
Bucket: string;
|
|
109
109
|
Key: string;
|
|
110
110
|
UploadId: string;
|
|
111
|
-
}): Promise<void>;
|
|
111
|
+
}, options?: S3CallOptions): Promise<void>;
|
|
112
112
|
listParts(params: {
|
|
113
113
|
Bucket: string;
|
|
114
114
|
Key: string;
|
|
115
115
|
UploadId: string;
|
|
116
|
-
}): Promise<{
|
|
116
|
+
}, options?: S3CallOptions): Promise<{
|
|
117
117
|
Parts?: Part[];
|
|
118
118
|
}>;
|
|
119
119
|
getObject(params: {
|
|
120
120
|
Bucket: string;
|
|
121
121
|
Key: string;
|
|
122
|
-
}): Promise<{
|
|
122
|
+
}, options?: S3CallOptions): Promise<{
|
|
123
123
|
Body?: ReadableStream | Readable;
|
|
124
124
|
ContentLength?: number;
|
|
125
125
|
ContentType?: string;
|
|
@@ -131,7 +131,7 @@ declare class AwsLightApiAdapter implements S3ApiOperations {
|
|
|
131
131
|
headObject(params: {
|
|
132
132
|
Bucket: string;
|
|
133
133
|
Key: string;
|
|
134
|
-
}): Promise<{
|
|
134
|
+
}, options?: S3CallOptions): Promise<{
|
|
135
135
|
ContentLength?: number;
|
|
136
136
|
ContentType?: string;
|
|
137
137
|
ETag?: string;
|
|
@@ -142,18 +142,18 @@ declare class AwsLightApiAdapter implements S3ApiOperations {
|
|
|
142
142
|
deleteObject(params: {
|
|
143
143
|
Bucket: string;
|
|
144
144
|
Key: string;
|
|
145
|
-
}): Promise<void>;
|
|
145
|
+
}, options?: S3CallOptions): Promise<void>;
|
|
146
146
|
copyObject(params: {
|
|
147
147
|
Bucket: string;
|
|
148
148
|
CopySource: string;
|
|
149
149
|
Key: string;
|
|
150
150
|
StorageClass?: string;
|
|
151
|
-
}): Promise<void>;
|
|
151
|
+
}, options?: S3CallOptions): Promise<void>;
|
|
152
152
|
listObjectsV2(params: {
|
|
153
153
|
Bucket: string;
|
|
154
154
|
ContinuationToken?: string;
|
|
155
155
|
MaxKeys?: number;
|
|
156
|
-
}): Promise<{
|
|
156
|
+
}, options?: S3CallOptions): Promise<{
|
|
157
157
|
Contents?: {
|
|
158
158
|
Key?: string;
|
|
159
159
|
LastModified?: Date;
|
|
@@ -240,7 +240,7 @@ declare class AwsLightStorage extends S3BaseStorage {
|
|
|
240
240
|
}: FileQuery, metadata: Partial<AwsLightFile>): Promise<AwsLightFile>;
|
|
241
241
|
override getStream({
|
|
242
242
|
id
|
|
243
|
-
}: FileQuery): Promise<{
|
|
243
|
+
}: FileQuery, options?: OperationOptions): Promise<{
|
|
244
244
|
headers?: Record<string, string>;
|
|
245
245
|
size?: number;
|
|
246
246
|
stream: Readable;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{default as a}from"../../packem_shared/AwsLightFile-BSqjc_rD.js";import{l as r}from"../../packem_shared/aws-light-meta-storage-
|
|
1
|
+
import{default as a}from"../../packem_shared/AwsLightFile-BSqjc_rD.js";import{l as r}from"../../packem_shared/aws-light-meta-storage-CstQBYXG.js";import{default as f}from"../../packem_shared/AwsLightStorage-w21RxjUm.js";export{a as AwsLightFile,r as AwsLightMetaStorage,f as AwsLightStorage};
|