@visulima/storage 1.0.9 → 1.0.10

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.
Files changed (143) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/adapter/nuxt/module.d.ts +8 -8
  3. package/dist/ai/ai-sdk/index.d.ts +51 -59
  4. package/dist/ai/claude/index.d.ts +104 -119
  5. package/dist/ai/openai/index.d.ts +86 -99
  6. package/dist/ai/tanstack/index.d.ts +53 -61
  7. package/dist/handler/http/fetch/index.d.ts +201 -201
  8. package/dist/handler/http/hono/index.d.ts +59 -59
  9. package/dist/handler/http/nextjs/index.d.ts +54 -54
  10. package/dist/handler/http/node/index.d.ts +233 -246
  11. package/dist/handler/http/solid-start/index.d.ts +54 -54
  12. package/dist/index.d.ts +70 -70
  13. package/dist/index.js +1 -1
  14. package/dist/packem_shared/{AwsLightStorage-BK-WPL0h.js → AwsLightStorage-EsqkAtU5.js} +1 -1
  15. package/dist/packem_shared/{AzureStorage-1UvDIQZd.js → AzureStorage-DL-U7qFG.js} +1 -1
  16. package/dist/packem_shared/BoxMetaStorage-CHWrhgg2.js +1 -0
  17. package/dist/packem_shared/{BoxStorage-DbGqBLux.js → BoxStorage-B8_oCz27.js} +1 -1
  18. package/dist/packem_shared/BunS3MetaStorage-CHWrhgg2.js +1 -0
  19. package/dist/packem_shared/{BunS3Storage-DNvimm9e.js → BunS3Storage-_PVXu_na.js} +1 -1
  20. package/dist/packem_shared/BunnyMetaStorage-CHWrhgg2.js +1 -0
  21. package/dist/packem_shared/{BunnyStorage-C7d0opLL.js → BunnyStorage-BsoWjScH.js} +1 -1
  22. package/dist/packem_shared/CloudinaryMetaStorage-BI9YXcwU.js +1 -0
  23. package/dist/packem_shared/{CloudinaryStorage-Dc3XA2lP.js → CloudinaryStorage-BNwiLF9V.js} +1 -1
  24. package/dist/packem_shared/{DiskStorage-CI07TVNu.js → DiskStorage-D-NtQDms.js} +1 -1
  25. package/dist/packem_shared/{DiskStorageWithChecksum-vFCubS6K.js → DiskStorageWithChecksum-UnCtyEvs.js} +1 -1
  26. package/dist/packem_shared/DropboxMetaStorage-CHWrhgg2.js +1 -0
  27. package/dist/packem_shared/{DropboxStorage-CY9Ggu3m.js → DropboxStorage-BS9kj0nH.js} +1 -1
  28. package/dist/packem_shared/FirebaseMetaStorage-BI9YXcwU.js +1 -0
  29. package/dist/packem_shared/{FirebaseStorage-D6O9CJXN.js → FirebaseStorage-DNquii2p.js} +1 -1
  30. package/dist/packem_shared/FtpMetaStorage-CHWrhgg2.js +1 -0
  31. package/dist/packem_shared/{FtpStorage-DbEjbq8z.js → FtpStorage-Bd004--s.js} +1 -1
  32. package/dist/packem_shared/{GCSMetaStorage-DT8K6zdm.js → GCSMetaStorage-Bf4qDFB1.js} +1 -1
  33. package/dist/packem_shared/{GCStorage-6BHkFlEs.js → GCStorage-ChqEpgqR.js} +1 -1
  34. package/dist/packem_shared/GoogleDriveMetaStorage-xlHfKwmR.js +1 -0
  35. package/dist/packem_shared/{GoogleDriveStorage-Bklsz7Bh.js → GoogleDriveStorage-v1glykjd.js} +1 -1
  36. package/dist/packem_shared/{LocalMetaStorage-BhicZnNl.js → LocalMetaStorage-YWPBYEe7.js} +1 -1
  37. package/dist/packem_shared/NetlifyBlobMetaStorage-BI9YXcwU.js +1 -0
  38. package/dist/packem_shared/{NetlifyBlobStorage-CkpCCoN1.js → NetlifyBlobStorage-BPyEWSnx.js} +1 -1
  39. package/dist/packem_shared/OneDriveMetaStorage-xlHfKwmR.js +1 -0
  40. package/dist/packem_shared/{OneDriveStorage-CP6MvGAa.js → OneDriveStorage-BJ3Kzxc5.js} +1 -1
  41. package/dist/packem_shared/PocketBaseMetaStorage-DnrxOQhO.js +1 -0
  42. package/dist/packem_shared/{PocketBaseStorage-2qhbI2PW.js → PocketBaseStorage-DqKHbbvn.js} +1 -1
  43. package/dist/packem_shared/{S3Storage-YGeNk3Tt.js → S3Storage-BiI2k6d1.js} +1 -1
  44. package/dist/packem_shared/SftpMetaStorage-CHWrhgg2.js +1 -0
  45. package/dist/packem_shared/{SftpStorage-2Hz396Xr.js → SftpStorage-w8XdtZtw.js} +1 -1
  46. package/dist/packem_shared/SharePointMetaStorage-CHWrhgg2.js +1 -0
  47. package/dist/packem_shared/{SharePointStorage-CrX2Pk6C.js → SharePointStorage-DpDpI7Ln.js} +1 -1
  48. package/dist/packem_shared/SupabaseMetaStorage-xlHfKwmR.js +1 -0
  49. package/dist/packem_shared/{SupabaseStorage-Dc_DBX29.js → SupabaseStorage-B_ugUCs7.js} +1 -1
  50. package/dist/packem_shared/UploadThingMetaStorage-BI9YXcwU.js +1 -0
  51. package/dist/packem_shared/{UploadThingStorage-BChykYSe.js → UploadThingStorage-_H45IVqX.js} +1 -1
  52. package/dist/packem_shared/VercelBlobMetaStorage-CHWrhgg2.js +1 -0
  53. package/dist/packem_shared/{VercelBlobStorage-CsRyPfw3.js → VercelBlobStorage-U1YMKeHs.js} +1 -1
  54. package/dist/packem_shared/{approval.d-CMAYH9GF.d.ts → approval.d-C-d-t94D.d.ts} +6 -6
  55. package/dist/packem_shared/disk-storage-BwPk2IRa.js +1 -0
  56. package/dist/packem_shared/disk-storage-with-checksum.d-CQucFacO.d.ts +146 -0
  57. package/dist/packem_shared/{executors.d-BZP2rWo3.d.ts → executors.d-DeDH3Ilt.d.ts} +2 -2
  58. package/dist/packem_shared/files.d-D8H_ge9Y.d.ts +655 -0
  59. package/dist/packem_shared/{gcs-meta-storage-B7BnctnV.js → gcs-meta-storage-DQGu_cHq.js} +1 -1
  60. package/dist/packem_shared/local-meta-storage-DJDcuxf1.js +11 -0
  61. package/dist/packem_shared/{local-meta-storage.d-D9PBfkn6.d.ts → local-meta-storage.d-DuTEzyii.d.ts} +7 -7
  62. package/dist/packem_shared/media-transformer.d-CvMFjINm.d.ts +331 -0
  63. package/dist/packem_shared/{memory-storage.d-4EU1cMt1.d.ts → memory-storage.d-BRdTiY8y.d.ts} +32 -40
  64. package/dist/packem_shared/{s3-base-storage-BoTyhuzO.js → s3-base-storage-CMUui93V.js} +1 -1
  65. package/dist/packem_shared/{s3-base-storage.d-BQgP5B-t.d.ts → s3-base-storage.d-Cg7m4FuH.d.ts} +64 -70
  66. package/dist/packem_shared/storage.d-DIav_lF1.d.ts +1163 -0
  67. package/dist/packem_shared/tus-base.d-BiEg5t4t.d.ts +102 -0
  68. package/dist/packem_shared/{types.d-CrUWY4On.d.ts → types.d-CAAzKiI6.d.ts} +134 -134
  69. package/dist/packem_shared/types.d-DgHhkCAl.d.ts +104 -0
  70. package/dist/packem_shared/{types.d-CggTCgXr.d.ts → types.d-jAs_Rp_v.d.ts} +3 -3
  71. package/dist/storage/aws/clients/index.d.ts +388 -388
  72. package/dist/storage/aws/index.d.ts +109 -113
  73. package/dist/storage/aws/index.js +1 -1
  74. package/dist/storage/aws-light/index.d.ts +63 -67
  75. package/dist/storage/aws-light/index.js +1 -1
  76. package/dist/storage/azure/index.d.ts +133 -139
  77. package/dist/storage/azure/index.js +1 -1
  78. package/dist/storage/box/index.d.ts +88 -92
  79. package/dist/storage/box/index.js +1 -1
  80. package/dist/storage/bun-s3/index.d.ts +70 -76
  81. package/dist/storage/bun-s3/index.js +1 -1
  82. package/dist/storage/bunny/index.d.ts +51 -55
  83. package/dist/storage/bunny/index.js +1 -1
  84. package/dist/storage/cloudinary/index.d.ts +53 -59
  85. package/dist/storage/cloudinary/index.js +1 -1
  86. package/dist/storage/dropbox/index.d.ts +58 -62
  87. package/dist/storage/dropbox/index.js +1 -1
  88. package/dist/storage/firebase/index.d.ts +73 -79
  89. package/dist/storage/firebase/index.js +1 -1
  90. package/dist/storage/ftp/index.d.ts +37 -43
  91. package/dist/storage/ftp/index.js +1 -1
  92. package/dist/storage/gcs/index.d.ts +89 -95
  93. package/dist/storage/gcs/index.js +1 -1
  94. package/dist/storage/google-drive/index.d.ts +68 -72
  95. package/dist/storage/google-drive/index.js +1 -1
  96. package/dist/storage/local/index.d.ts +3 -3
  97. package/dist/storage/local/index.js +1 -1
  98. package/dist/storage/memory/index.d.ts +2 -2
  99. package/dist/storage/netlify-blob/index.d.ts +85 -93
  100. package/dist/storage/netlify-blob/index.js +1 -1
  101. package/dist/storage/onedrive/index.d.ts +43 -53
  102. package/dist/storage/onedrive/index.js +1 -1
  103. package/dist/storage/pocketbase/index.d.ts +66 -72
  104. package/dist/storage/pocketbase/index.js +1 -1
  105. package/dist/storage/sftp/index.d.ts +39 -45
  106. package/dist/storage/sftp/index.js +1 -1
  107. package/dist/storage/sharepoint/index.d.ts +95 -95
  108. package/dist/storage/sharepoint/index.js +1 -1
  109. package/dist/storage/supabase/index.d.ts +49 -55
  110. package/dist/storage/supabase/index.js +1 -1
  111. package/dist/storage/uploadthing/index.d.ts +33 -37
  112. package/dist/storage/uploadthing/index.js +1 -1
  113. package/dist/storage/vercel-blob/index.d.ts +109 -115
  114. package/dist/storage/vercel-blob/index.js +1 -1
  115. package/dist/transformer/audio-transformer.d.ts +96 -96
  116. package/dist/transformer/image-transformer.d.ts +422 -422
  117. package/dist/transformer/index.d.ts +34 -34
  118. package/dist/transformer/video-transformer.d.ts +111 -111
  119. package/package.json +1 -1
  120. package/dist/packem_shared/BoxMetaStorage-BSn6Qfnf.js +0 -1
  121. package/dist/packem_shared/BunS3MetaStorage-BSn6Qfnf.js +0 -1
  122. package/dist/packem_shared/BunnyMetaStorage-BSn6Qfnf.js +0 -1
  123. package/dist/packem_shared/CloudinaryMetaStorage-DPVnmNe5.js +0 -1
  124. package/dist/packem_shared/DropboxMetaStorage-BSn6Qfnf.js +0 -1
  125. package/dist/packem_shared/FirebaseMetaStorage-DPVnmNe5.js +0 -1
  126. package/dist/packem_shared/FtpMetaStorage-BSn6Qfnf.js +0 -1
  127. package/dist/packem_shared/GoogleDriveMetaStorage-Cbwa1CHV.js +0 -1
  128. package/dist/packem_shared/NetlifyBlobMetaStorage-DPVnmNe5.js +0 -1
  129. package/dist/packem_shared/OneDriveMetaStorage-Cbwa1CHV.js +0 -1
  130. package/dist/packem_shared/PocketBaseMetaStorage-DOTLwVE7.js +0 -1
  131. package/dist/packem_shared/SftpMetaStorage-BSn6Qfnf.js +0 -1
  132. package/dist/packem_shared/SharePointMetaStorage-BSn6Qfnf.js +0 -1
  133. package/dist/packem_shared/SupabaseMetaStorage-Cbwa1CHV.js +0 -1
  134. package/dist/packem_shared/UploadThingMetaStorage-DPVnmNe5.js +0 -1
  135. package/dist/packem_shared/VercelBlobMetaStorage-BSn6Qfnf.js +0 -1
  136. package/dist/packem_shared/disk-storage-CsQcYW3s.js +0 -1
  137. package/dist/packem_shared/disk-storage-with-checksum.d-B-VGEsfl.d.ts +0 -156
  138. package/dist/packem_shared/files.d-CH0iLBNC.d.ts +0 -655
  139. package/dist/packem_shared/local-meta-storage-iuJnu90B.js +0 -11
  140. package/dist/packem_shared/media-transformer.d-Quf4ai47.d.ts +0 -331
  141. package/dist/packem_shared/storage.d-CEM1upWM.d.ts +0 -1176
  142. package/dist/packem_shared/tus-base.d-DLzKE54M.d.ts +0 -106
  143. package/dist/packem_shared/types.d-Bon9GVVe.d.ts +0 -104
@@ -1,26 +1,26 @@
1
- import { F as File, L as LocalMetaStorageOptions, l as BaseStorageOptions, M as MetaStorage, d as FileInit, O as OperationOptions, e as FilePart, f as FileQuery, g as FileReturn, B as BaseStorage } from "../../packem_shared/storage.d-CEM1upWM.js";
1
+ import { F as File, L as LocalMetaStorageOptions, l as BaseStorageOptions, M as MetaStorage, d as FileInit, O as OperationOptions, e as FilePart, f as FileQuery, g as FileReturn, B as BaseStorage } from "../../packem_shared/storage.d-DIav_lF1.js";
2
2
  import { Readable } from 'node:stream';
3
- import { L as LocalMetaStorage } from "../../packem_shared/local-meta-storage.d-D9PBfkn6.js";
3
+ import { L as LocalMetaStorage } from "../../packem_shared/local-meta-storage.d-DuTEzyii.js";
4
4
  import 'node:crypto';
5
5
  import 'node:http';
6
6
  import 'lru-cache';
7
7
  declare class BunS3File extends File {
8
8
  /**
9
- * ETag reported by the S3-compatible backend (when present on the
10
- * stored object).
11
- */
9
+ * ETag reported by the S3-compatible backend (when present on the
10
+ * stored object).
11
+ */
12
12
  bunS3ETag?: string;
13
13
  /**
14
- * Object key within the bucket.
15
- */
14
+ * Object key within the bucket.
15
+ */
16
16
  bunS3Key?: string;
17
17
  }
18
18
  declare class BunS3MetaStorage extends LocalMetaStorage<BunS3File> {
19
19
  constructor(config?: LocalMetaStorageOptions);
20
20
  }
21
21
  /**
22
- * Object metadata returned by `Bun.S3Client.stat` / `S3File.stat`.
23
- */
22
+ * Object metadata returned by `Bun.S3Client.stat` / `S3File.stat`.
23
+ */
24
24
  interface BunS3Stat {
25
25
  etag?: string;
26
26
  lastModified?: Date;
@@ -28,8 +28,8 @@ interface BunS3Stat {
28
28
  type?: string;
29
29
  }
30
30
  /**
31
- * Options accepted by `S3File.presign` / `S3Client.presign`.
32
- */
31
+ * Options accepted by `S3File.presign` / `S3Client.presign`.
32
+ */
33
33
  interface BunS3PresignOptions {
34
34
  acl?: string;
35
35
  contentDisposition?: string;
@@ -38,14 +38,14 @@ interface BunS3PresignOptions {
38
38
  type?: string;
39
39
  }
40
40
  /**
41
- * Acceptable upload bodies for `Bun.S3Client.write` / `S3File.write`.
42
- */
41
+ * Acceptable upload bodies for `Bun.S3Client.write` / `S3File.write`.
42
+ */
43
43
  type BunS3WriteData = ArrayBuffer | Blob | ReadableStream | Response | string | Uint8Array;
44
44
  /**
45
- * Structural view of a Bun `S3File` reference. Declared locally so the
46
- * adapter type-checks under Node (where the `Bun` global is absent) while
47
- * still binding to the real runtime object.
48
- */
45
+ * Structural view of a Bun `S3File` reference. Declared locally so the
46
+ * adapter type-checks under Node (where the `Bun` global is absent) while
47
+ * still binding to the real runtime object.
48
+ */
49
49
  interface BunS3FileRef {
50
50
  arrayBuffer: () => Promise<ArrayBuffer>;
51
51
  delete: () => Promise<void>;
@@ -59,8 +59,8 @@ interface BunS3FileRef {
59
59
  }) => Promise<number>;
60
60
  }
61
61
  /**
62
- * One entry of a `Bun.S3Client.list` response.
63
- */
62
+ * One entry of a `Bun.S3Client.list` response.
63
+ */
64
64
  interface BunS3ListEntry {
65
65
  eTag?: string;
66
66
  key?: string;
@@ -68,9 +68,9 @@ interface BunS3ListEntry {
68
68
  size?: number;
69
69
  }
70
70
  /**
71
- * Structural view of `Bun.S3Client`. Either pass a real instance via
72
- * `client`, or run under Bun and let the adapter construct one.
73
- */
71
+ * Structural view of `Bun.S3Client`. Either pass a real instance via
72
+ * `client`, or run under Bun and let the adapter construct one.
73
+ */
74
74
  interface BunS3ClientLike {
75
75
  delete: (key: string) => Promise<void>;
76
76
  exists: (key: string) => Promise<boolean>;
@@ -93,72 +93,72 @@ interface BunS3ClientLike {
93
93
  }
94
94
  interface BunS3StorageOptions extends BaseStorageOptions {
95
95
  /**
96
- * S3 access key ID. Falls back to Bun's own env resolution
97
- * (`S3_ACCESS_KEY_ID`, then `AWS_ACCESS_KEY_ID`). Ignored when `client`
98
- * is supplied.
99
- */
96
+ * S3 access key ID. Falls back to Bun's own env resolution
97
+ * (`S3_ACCESS_KEY_ID`, then `AWS_ACCESS_KEY_ID`). Ignored when `client`
98
+ * is supplied.
99
+ */
100
100
  accessKeyId?: string;
101
101
  /**
102
- * Canned ACL applied to uploads (e.g. `"public-read"`). Passed through
103
- * to Bun's S3 client.
104
- */
102
+ * Canned ACL applied to uploads (e.g. `"public-read"`). Passed through
103
+ * to Bun's S3 client.
104
+ */
105
105
  acl?: string;
106
106
  /**
107
- * S3 bucket name. Falls back to Bun's env resolution (`S3_BUCKET`, then
108
- * `AWS_BUCKET`). Ignored when `client` is supplied.
109
- */
107
+ * S3 bucket name. Falls back to Bun's env resolution (`S3_BUCKET`, then
108
+ * `AWS_BUCKET`). Ignored when `client` is supplied.
109
+ */
110
110
  bucket?: string;
111
111
  /**
112
- * Pre-built `Bun.S3Client` (or `Bun.s3` singleton). Use this to share an
113
- * instance or inject a test stub. Mutually exclusive with the inline
114
- * credential options.
115
- */
112
+ * Pre-built `Bun.S3Client` (or `Bun.s3` singleton). Use this to share an
113
+ * instance or inject a test stub. Mutually exclusive with the inline
114
+ * credential options.
115
+ */
116
116
  client?: BunS3ClientLike;
117
117
  /**
118
- * Custom S3-compatible endpoint. Falls back to Bun's env resolution
119
- * (`S3_ENDPOINT`, then `AWS_ENDPOINT`). Ignored when `client` is
120
- * supplied.
121
- */
118
+ * Custom S3-compatible endpoint. Falls back to Bun's env resolution
119
+ * (`S3_ENDPOINT`, then `AWS_ENDPOINT`). Ignored when `client` is
120
+ * supplied.
121
+ */
122
122
  endpoint?: string;
123
123
  /**
124
- * Configure metafiles storage for resumable-upload bookkeeping.
125
- */
124
+ * Configure metafiles storage for resumable-upload bookkeeping.
125
+ */
126
126
  metaStorageConfig?: LocalMetaStorageOptions;
127
127
  /**
128
- * S3 region. Falls back to Bun's env resolution (`S3_REGION`, then
129
- * `AWS_REGION`). Ignored when `client` is supplied.
130
- */
128
+ * S3 region. Falls back to Bun's env resolution (`S3_REGION`, then
129
+ * `AWS_REGION`). Ignored when `client` is supplied.
130
+ */
131
131
  region?: string;
132
132
  /**
133
- * S3 secret access key. Falls back to Bun's env resolution
134
- * (`S3_SECRET_ACCESS_KEY`, then `AWS_SECRET_ACCESS_KEY`). Ignored when
135
- * `client` is supplied.
136
- */
133
+ * S3 secret access key. Falls back to Bun's env resolution
134
+ * (`S3_SECRET_ACCESS_KEY`, then `AWS_SECRET_ACCESS_KEY`). Ignored when
135
+ * `client` is supplied.
136
+ */
137
137
  secretAccessKey?: string;
138
138
  /**
139
- * Temporary session token for STS credentials. Ignored when `client` is
140
- * supplied.
141
- */
139
+ * Temporary session token for STS credentials. Ignored when `client` is
140
+ * supplied.
141
+ */
142
142
  sessionToken?: string;
143
143
  /**
144
- * Use virtual-hosted-style addressing (`https://&lt;bucket>.&lt;host>/...`).
145
- * Ignored when `client` is supplied.
146
- */
144
+ * Use virtual-hosted-style addressing (`https://&lt;bucket>.&lt;host>/...`).
145
+ * Ignored when `client` is supplied.
146
+ */
147
147
  virtualHostedStyle?: boolean;
148
148
  }
149
149
  /**
150
- * Bun-native S3 storage backend, backed by `Bun.S3Client` instead of the AWS
151
- * SDK. Use this when you are already running on Bun and want to skip the AWS
152
- * SDK dependency.
153
- *
154
- * Limitations (inherent to `Bun.S3Client`, which exposes no low-level
155
- * multipart or server-side copy primitives):
156
- *
157
- * - No resumable / TUS multipart protocol. Each `write` uploads the supplied body in one shot (Bun handles large-object chunking internally). For resumable uploads use the `aws` or `aws-light` provider.
158
- * - `copy` / `move` are client-side read-then-write — Bun has no server-side `CopyObject`.
159
- * - `getUploadUrl` returns a presigned `PUT`; a `contentLength` cap cannot be enforced (Bun presign has no max-size policy) and is ignored.
160
- * - ⚠️ Per-operation `signal`/`timeout` are best-effort: the underlying SDK does not support request cancellation, so an in-flight call may complete server-side even after abort. `retries` is honored.
161
- */
150
+ * Bun-native S3 storage backend, backed by `Bun.S3Client` instead of the AWS
151
+ * SDK. Use this when you are already running on Bun and want to skip the AWS
152
+ * SDK dependency.
153
+ *
154
+ * Limitations (inherent to `Bun.S3Client`, which exposes no low-level
155
+ * multipart or server-side copy primitives):
156
+ *
157
+ * - No resumable / TUS multipart protocol. Each `write` uploads the supplied body in one shot (Bun handles large-object chunking internally). For resumable uploads use the `aws` or `aws-light` provider.
158
+ * - `copy` / `move` are client-side read-then-write — Bun has no server-side `CopyObject`.
159
+ * - `getUploadUrl` returns a presigned `PUT`; a `contentLength` cap cannot be enforced (Bun presign has no max-size policy) and is ignored.
160
+ * - ⚠️ Per-operation `signal`/`timeout` are best-effort: the underlying SDK does not support request cancellation, so an in-flight call may complete server-side even after abort. `retries` is honored.
161
+ */
162
162
  declare class BunS3Storage extends BaseStorage<BunS3File> {
163
163
  static override readonly name: string;
164
164
  protected meta: MetaStorage<BunS3File>;
@@ -167,15 +167,9 @@ declare class BunS3Storage extends BaseStorage<BunS3File> {
167
167
  override get raw(): BunS3ClientLike;
168
168
  create(config: FileInit, _options?: OperationOptions): Promise<BunS3File>;
169
169
  write(part: BunS3File | FilePart | FileQuery, options?: OperationOptions): Promise<BunS3File>;
170
- delete({
171
- id
172
- }: FileQuery, options?: OperationOptions): Promise<BunS3File>;
173
- get({
174
- id
175
- }: FileQuery, options?: OperationOptions): Promise<FileReturn>;
176
- override getStream({
177
- id
178
- }: FileQuery, options?: OperationOptions): Promise<{
170
+ delete({ id }: FileQuery, options?: OperationOptions): Promise<BunS3File>;
171
+ get({ id }: FileQuery, options?: OperationOptions): Promise<FileReturn>;
172
+ override getStream({ id }: FileQuery, options?: OperationOptions): Promise<{
179
173
  headers?: Record<string, string>;
180
174
  size?: number;
181
175
  stream: Readable;
@@ -1 +1 @@
1
- import{default as t}from"../../packem_shared/BunS3File-BcYmsz1n.js";import{default as r}from"../../packem_shared/BunS3MetaStorage-BSn6Qfnf.js";import{default as u}from"../../packem_shared/BunS3Storage-DNvimm9e.js";export{t as BunS3File,r as BunS3MetaStorage,u as BunS3Storage};
1
+ import{default as t}from"../../packem_shared/BunS3File-BcYmsz1n.js";import{default as r}from"../../packem_shared/BunS3MetaStorage-CHWrhgg2.js";import{default as u}from"../../packem_shared/BunS3Storage-_PVXu_na.js";export{t as BunS3File,r as BunS3MetaStorage,u as BunS3Storage};
@@ -1,85 +1,85 @@
1
- import { F as File, L as LocalMetaStorageOptions, l as BaseStorageOptions, M as MetaStorage, d as FileInit, O as OperationOptions, e as FilePart, f as FileQuery, g as FileReturn, B as BaseStorage } from "../../packem_shared/storage.d-CEM1upWM.js";
1
+ import { F as File, L as LocalMetaStorageOptions, l as BaseStorageOptions, M as MetaStorage, d as FileInit, O as OperationOptions, e as FilePart, f as FileQuery, g as FileReturn, B as BaseStorage } from "../../packem_shared/storage.d-DIav_lF1.js";
2
2
  import 'node:stream';
3
- import { L as LocalMetaStorage } from "../../packem_shared/local-meta-storage.d-D9PBfkn6.js";
3
+ import { L as LocalMetaStorage } from "../../packem_shared/local-meta-storage.d-DuTEzyii.js";
4
4
  import * as BunnyStorageSDK from '@bunny.net/storage-sdk';
5
5
  import 'node:crypto';
6
6
  import 'node:http';
7
7
  import 'lru-cache';
8
8
  declare class BunnyFile extends File {
9
9
  /**
10
- * SHA-256 checksum reported by Bunny Storage (when present on the
11
- * stored object).
12
- */
10
+ * SHA-256 checksum reported by Bunny Storage (when present on the
11
+ * stored object).
12
+ */
13
13
  bunnyChecksum?: string;
14
14
  /**
15
- * Server-side path within the Storage Zone (always prefixed with `/`).
16
- */
15
+ * Server-side path within the Storage Zone (always prefixed with `/`).
16
+ */
17
17
  bunnyPath?: string;
18
18
  }
19
19
  declare class BunnyMetaStorage extends LocalMetaStorage<BunnyFile> {
20
20
  constructor(config?: LocalMetaStorageOptions);
21
21
  }
22
22
  /**
23
- * Bunny Storage region code. Mirrors the SDK's `StorageRegion` enum values
24
- * (e.g. `"de"`, `"ny"`, `"syd"`).
25
- */
23
+ * Bunny Storage region code. Mirrors the SDK's `StorageRegion` enum values
24
+ * (e.g. `"de"`, `"ny"`, `"syd"`).
25
+ */
26
26
  type BunnyStorageRegion = `${BunnyStorageSDK.regions.StorageRegion}`;
27
27
  /**
28
- * A connected Bunny Storage zone produced by
29
- * `BunnyStorageSDK.zone.connect_with_accesskey(...)`.
30
- */
28
+ * A connected Bunny Storage zone produced by
29
+ * `BunnyStorageSDK.zone.connect_with_accesskey(...)`.
30
+ */
31
31
  type BunnyStorageClient = ReturnType<typeof BunnyStorageSDK.zone.connect_with_accesskey>;
32
32
  interface BunnyStorageOptions extends BaseStorageOptions {
33
33
  /**
34
- * Bunny Storage zone password / API access key. Falls back to
35
- * `BUNNY_STORAGE_ACCESS_KEY`, then `BUNNY_ACCESS_KEY`, then the
36
- * SDK-documented `STORAGE_ACCESS_KEY`. Ignored when `client` is supplied.
37
- */
34
+ * Bunny Storage zone password / API access key. Falls back to
35
+ * `BUNNY_STORAGE_ACCESS_KEY`, then `BUNNY_ACCESS_KEY`, then the
36
+ * SDK-documented `STORAGE_ACCESS_KEY`. Ignored when `client` is supplied.
37
+ */
38
38
  accessKey?: string;
39
39
  /**
40
- * Pre-built `StorageZone` instance. Use this to share an instance across
41
- * adapters or inject test stubs. Mutually exclusive with `zone` /
42
- * `accessKey` / `region`.
43
- */
40
+ * Pre-built `StorageZone` instance. Use this to share an instance across
41
+ * adapters or inject test stubs. Mutually exclusive with `zone` /
42
+ * `accessKey` / `region`.
43
+ */
44
44
  client?: BunnyStorageClient;
45
45
  /**
46
- * Configure metafiles storage for resumable-upload bookkeeping.
47
- */
46
+ * Configure metafiles storage for resumable-upload bookkeeping.
47
+ */
48
48
  metaStorageConfig?: LocalMetaStorageOptions;
49
49
  /**
50
- * Origin used to build URLs from `getReadUrl`, typically a Bunny Pull
51
- * Zone or custom CDN hostname in front of the Storage Zone. When unset,
52
- * `getReadUrl` throws because the Storage API requires an `AccessKey`
53
- * header and has no signed-read URL primitive.
54
- */
50
+ * Origin used to build URLs from `getReadUrl`, typically a Bunny Pull
51
+ * Zone or custom CDN hostname in front of the Storage Zone. When unset,
52
+ * `getReadUrl` throws because the Storage API requires an `AccessKey`
53
+ * header and has no signed-read URL primitive.
54
+ */
55
55
  publicBaseUrl?: string;
56
56
  /**
57
- * Primary Bunny Storage region. Pass one of
58
- * `BunnyStorageSDK.regions.StorageRegion.*`, e.g. `"de"`, `"ny"`, `"syd"`.
59
- * Falls back to `BUNNY_STORAGE_REGION`, then `STORAGE_REGION`. Ignored
60
- * when `client` is supplied.
61
- */
57
+ * Primary Bunny Storage region. Pass one of
58
+ * `BunnyStorageSDK.regions.StorageRegion.*`, e.g. `"de"`, `"ny"`, `"syd"`.
59
+ * Falls back to `BUNNY_STORAGE_REGION`, then `STORAGE_REGION`. Ignored
60
+ * when `client` is supplied.
61
+ */
62
62
  region?: BunnyStorageRegion;
63
63
  /**
64
- * Bunny Storage zone name. Falls back to `BUNNY_STORAGE_ZONE`, then the
65
- * SDK-documented `STORAGE_ZONE`. Ignored when `client` is supplied.
66
- */
64
+ * Bunny Storage zone name. Falls back to `BUNNY_STORAGE_ZONE`, then the
65
+ * SDK-documented `STORAGE_ZONE`. Ignored when `client` is supplied.
66
+ */
67
67
  zone?: string;
68
68
  }
69
69
  /**
70
- * Bunny Storage backend.
71
- *
72
- * Uses `@bunny.net/storage-sdk`. Writes go through the Storage API with an `AccessKey` header; reads either go through `data()` (server-side fetch) or, when a public Pull Zone is configured, through `publicBaseUrl`.
73
- *
74
- * **Limitations**:
75
- *
76
- * - No native server-side `copy` — implemented as download + re-upload.
77
- * - No `signedUploadUrl` / presigned PUT — Bunny has no such primitive.
78
- * - `getReadUrl` requires `publicBaseUrl` (Pull Zone / CDN hostname) and returns an unsigned URL — Bunny has no signed-read URL primitive, so `expiresIn` is accepted for parity with other adapters but ignored.
79
- * - `getReadUrl` rejects `responseContentDisposition` — no override exists on Bunny Storage / Pull Zone URLs.
80
- * - `list` is non-recursive: `BunnyStorageSDK.file.list(client, "/")` returns only the immediate children of the zone root. Directory entries are filtered out client-side; the adapter does not descend.
81
- * - ⚠️ Per-operation `signal`/`timeout` are best-effort: the underlying SDK does not support request cancellation, so an in-flight call may complete server-side even after abort. `retries` is honored.
82
- */
70
+ * Bunny Storage backend.
71
+ *
72
+ * Uses `@bunny.net/storage-sdk`. Writes go through the Storage API with an `AccessKey` header; reads either go through `data()` (server-side fetch) or, when a public Pull Zone is configured, through `publicBaseUrl`.
73
+ *
74
+ * **Limitations**:
75
+ *
76
+ * - No native server-side `copy` — implemented as download + re-upload.
77
+ * - No `signedUploadUrl` / presigned PUT — Bunny has no such primitive.
78
+ * - `getReadUrl` requires `publicBaseUrl` (Pull Zone / CDN hostname) and returns an unsigned URL — Bunny has no signed-read URL primitive, so `expiresIn` is accepted for parity with other adapters but ignored.
79
+ * - `getReadUrl` rejects `responseContentDisposition` — no override exists on Bunny Storage / Pull Zone URLs.
80
+ * - `list` is non-recursive: `BunnyStorageSDK.file.list(client, "/")` returns only the immediate children of the zone root. Directory entries are filtered out client-side; the adapter does not descend.
81
+ * - ⚠️ Per-operation `signal`/`timeout` are best-effort: the underlying SDK does not support request cancellation, so an in-flight call may complete server-side even after abort. `retries` is honored.
82
+ */
83
83
  declare class BunnyStorage extends BaseStorage<BunnyFile> {
84
84
  static override readonly name: string;
85
85
  override checksumTypes: string[];
@@ -93,12 +93,8 @@ declare class BunnyStorage extends BaseStorage<BunnyFile> {
93
93
  get zone(): string;
94
94
  create(config: FileInit, _options?: OperationOptions): Promise<BunnyFile>;
95
95
  write(part: FilePart | FileQuery | BunnyFile, options?: OperationOptions): Promise<BunnyFile>;
96
- delete({
97
- id
98
- }: FileQuery, options?: OperationOptions): Promise<BunnyFile>;
99
- get({
100
- id
101
- }: FileQuery, options?: OperationOptions): Promise<FileReturn>;
96
+ delete({ id }: FileQuery, options?: OperationOptions): Promise<BunnyFile>;
97
+ get({ id }: FileQuery, options?: OperationOptions): Promise<FileReturn>;
102
98
  copy(name: string, destination: string, options?: OperationOptions & {
103
99
  storageClass?: string;
104
100
  }): Promise<BunnyFile>;
@@ -1 +1 @@
1
- import{default as t}from"../../packem_shared/BunnyFile-BgEOlcYI.js";import{default as r}from"../../packem_shared/BunnyMetaStorage-BSn6Qfnf.js";import{default as n}from"../../packem_shared/BunnyStorage-C7d0opLL.js";export{t as BunnyFile,r as BunnyMetaStorage,n as BunnyStorage};
1
+ import{default as t}from"../../packem_shared/BunnyFile-BgEOlcYI.js";import{default as r}from"../../packem_shared/BunnyMetaStorage-CHWrhgg2.js";import{default as n}from"../../packem_shared/BunnyStorage-BsoWjScH.js";export{t as BunnyFile,r as BunnyMetaStorage,n as BunnyStorage};
@@ -1,6 +1,6 @@
1
- import { F as File, L as LocalMetaStorageOptions, l as BaseStorageOptions, M as MetaStorage, d as FileInit, O as OperationOptions, e as FilePart, f as FileQuery, g as FileReturn, B as BaseStorage } from "../../packem_shared/storage.d-CEM1upWM.js";
1
+ import { F as File, L as LocalMetaStorageOptions, l as BaseStorageOptions, M as MetaStorage, d as FileInit, O as OperationOptions, e as FilePart, f as FileQuery, g as FileReturn, B as BaseStorage } from "../../packem_shared/storage.d-DIav_lF1.js";
2
2
  import 'node:stream';
3
- import { L as LocalMetaStorage } from "../../packem_shared/local-meta-storage.d-D9PBfkn6.js";
3
+ import { L as LocalMetaStorage } from "../../packem_shared/local-meta-storage.d-DuTEzyii.js";
4
4
  import { v2 } from 'cloudinary';
5
5
  import 'node:crypto';
6
6
  import 'node:http';
@@ -15,73 +15,73 @@ declare class CloudinaryMetaStorage extends LocalMetaStorage<CloudinaryFile> {
15
15
  }
16
16
  interface CloudinaryStorageOptions extends BaseStorageOptions {
17
17
  /**
18
- * Cloudinary API key. Ignored when `client` is supplied. Falls back to
19
- * `CLOUDINARY_API_KEY`, or the credentials encoded in `CLOUDINARY_URL`.
20
- */
18
+ * Cloudinary API key. Ignored when `client` is supplied. Falls back to
19
+ * `CLOUDINARY_API_KEY`, or the credentials encoded in `CLOUDINARY_URL`.
20
+ */
21
21
  apiKey?: string;
22
22
  /**
23
- * Cloudinary API secret. Ignored when `client` is supplied. Falls back to
24
- * `CLOUDINARY_API_SECRET`, or the credentials encoded in `CLOUDINARY_URL`.
25
- */
23
+ * Cloudinary API secret. Ignored when `client` is supplied. Falls back to
24
+ * `CLOUDINARY_API_SECRET`, or the credentials encoded in `CLOUDINARY_URL`.
25
+ */
26
26
  apiSecret?: string;
27
27
  /**
28
- * Pre-configured `cloudinary` namespace (the `v2` export). Mutually
29
- * exclusive with `cloudName` + `apiKey` + `apiSecret`. When supplied the
30
- * adapter skips `cloudinary.config()` and uses the instance as-is.
31
- */
28
+ * Pre-configured `cloudinary` namespace (the `v2` export). Mutually
29
+ * exclusive with `cloudName` + `apiKey` + `apiSecret`. When supplied the
30
+ * adapter skips `cloudinary.config()` and uses the instance as-is.
31
+ */
32
32
  client?: typeof v2;
33
33
  /**
34
- * Cloudinary cloud name. Ignored when `client` is supplied. Falls back to
35
- * `CLOUDINARY_CLOUD_NAME`, or the host segment of `CLOUDINARY_URL`.
36
- */
34
+ * Cloudinary cloud name. Ignored when `client` is supplied. Falls back to
35
+ * `CLOUDINARY_CLOUD_NAME`, or the host segment of `CLOUDINARY_URL`.
36
+ */
37
37
  cloudName?: string;
38
38
  /**
39
- * Default expiry, in seconds, for `getReadUrl` signed URLs on private or
40
- * authenticated assets. Defaults to 3600 (1 hour).
41
- */
39
+ * Default expiry, in seconds, for `getReadUrl` signed URLs on private or
40
+ * authenticated assets. Defaults to 3600 (1 hour).
41
+ */
42
42
  defaultUrlExpiresIn?: number;
43
43
  /**
44
- * Configure metafiles storage. Used for TUS-style resumable upload
45
- * bookkeeping. Defaults to {@link LocalMetaStorage} under the OS tmp
46
- * directory.
47
- */
44
+ * Configure metafiles storage. Used for TUS-style resumable upload
45
+ * bookkeeping. Defaults to {@link LocalMetaStorage} under the OS tmp
46
+ * directory.
47
+ */
48
48
  metaStorageConfig?: LocalMetaStorageOptions;
49
49
  /**
50
- * Cloudinary resource type. Use `"raw"` for arbitrary files, `"image"` or
51
- * `"video"` for media that benefits from transformations. Defaults to
52
- * `"raw"`.
53
- */
50
+ * Cloudinary resource type. Use `"raw"` for arbitrary files, `"image"` or
51
+ * `"video"` for media that benefits from transformations. Defaults to
52
+ * `"raw"`.
53
+ */
54
54
  resourceType?: "image" | "raw" | "video";
55
55
  /**
56
- * Generate `https://` delivery URLs. Defaults to `true`.
57
- */
56
+ * Generate `https://` delivery URLs. Defaults to `true`.
57
+ */
58
58
  secure?: boolean;
59
59
  /**
60
- * Cloudinary delivery type. `"private"` and `"authenticated"` require a
61
- * signed URL for delivery. Defaults to `"upload"`.
62
- */
60
+ * Cloudinary delivery type. `"private"` and `"authenticated"` require a
61
+ * signed URL for delivery. Defaults to `"upload"`.
62
+ */
63
63
  type?: "authenticated" | "private" | "upload";
64
64
  }
65
65
  /**
66
- * Cloudinary Storage backend.
67
- *
68
- * Single-shot uploads only — the adapter buffers the part stream and uploads
69
- * it in one request via `upload_stream`. Cloudinary has no simple presigned
70
- * `PUT` endpoint, so `getUploadUrl` is not implemented (the base default
71
- * throws `METHOD_NOT_ALLOWED`).
72
- * @example
73
- * ```ts
74
- * import { CloudinaryStorage } from "@visulima/storage/provider/cloudinary";
75
- *
76
- * const storage = new CloudinaryStorage({
77
- * cloudName: process.env.CLOUDINARY_CLOUD_NAME,
78
- * apiKey: process.env.CLOUDINARY_API_KEY,
79
- * apiSecret: process.env.CLOUDINARY_API_SECRET,
80
- * });
81
- * ```
82
- * @remarks
83
- * - ⚠️ Per-operation `signal`/`timeout` are best-effort: the underlying SDK does not support request cancellation, so an in-flight call may complete server-side even after abort. `retries` is honored.
84
- */
66
+ * Cloudinary Storage backend.
67
+ *
68
+ * Single-shot uploads only — the adapter buffers the part stream and uploads
69
+ * it in one request via `upload_stream`. Cloudinary has no simple presigned
70
+ * `PUT` endpoint, so `getUploadUrl` is not implemented (the base default
71
+ * throws `METHOD_NOT_ALLOWED`).
72
+ * @example
73
+ * ```ts
74
+ * import { CloudinaryStorage } from "@visulima/storage/provider/cloudinary";
75
+ *
76
+ * const storage = new CloudinaryStorage({
77
+ * cloudName: process.env.CLOUDINARY_CLOUD_NAME,
78
+ * apiKey: process.env.CLOUDINARY_API_KEY,
79
+ * apiSecret: process.env.CLOUDINARY_API_SECRET,
80
+ * });
81
+ * ```
82
+ * @remarks
83
+ * - ⚠️ Per-operation `signal`/`timeout` are best-effort: the underlying SDK does not support request cancellation, so an in-flight call may complete server-side even after abort. `retries` is honored.
84
+ */
85
85
  declare class CloudinaryStorage extends BaseStorage<CloudinaryFile> {
86
86
  static override readonly name: string;
87
87
  override checksumTypes: string[];
@@ -95,15 +95,9 @@ declare class CloudinaryStorage extends BaseStorage<CloudinaryFile> {
95
95
  override get raw(): typeof v2;
96
96
  create(config: FileInit, _options?: OperationOptions): Promise<CloudinaryFile>;
97
97
  write(part: CloudinaryFile | FilePart | FileQuery, options?: OperationOptions): Promise<CloudinaryFile>;
98
- delete({
99
- id
100
- }: FileQuery, options?: OperationOptions): Promise<CloudinaryFile>;
101
- override exists({
102
- id
103
- }: FileQuery, options?: OperationOptions): Promise<boolean>;
104
- get({
105
- id
106
- }: FileQuery, options?: OperationOptions): Promise<FileReturn>;
98
+ delete({ id }: FileQuery, options?: OperationOptions): Promise<CloudinaryFile>;
99
+ override exists({ id }: FileQuery, options?: OperationOptions): Promise<boolean>;
100
+ get({ id }: FileQuery, options?: OperationOptions): Promise<FileReturn>;
107
101
  copy(name: string, destination: string, options?: OperationOptions & {
108
102
  storageClass?: string;
109
103
  }): Promise<CloudinaryFile>;
@@ -1 +1 @@
1
- import{default as r}from"../../packem_shared/CloudinaryFile-Bo5B-vM1.js";import{default as t}from"../../packem_shared/CloudinaryMetaStorage-DPVnmNe5.js";import{default as d}from"../../packem_shared/CloudinaryStorage-Dc3XA2lP.js";export{r as CloudinaryFile,t as CloudinaryMetaStorage,d as CloudinaryStorage};
1
+ import{default as r}from"../../packem_shared/CloudinaryFile-Bo5B-vM1.js";import{default as t}from"../../packem_shared/CloudinaryMetaStorage-BI9YXcwU.js";import{default as d}from"../../packem_shared/CloudinaryStorage-BNwiLF9V.js";export{r as CloudinaryFile,t as CloudinaryMetaStorage,d as CloudinaryStorage};