@visulima/storage 1.0.9 → 1.0.11

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 (174) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/adapter/nuxt/module.d.ts +9 -8
  3. package/dist/ai/ai-sdk/index.d.ts +52 -59
  4. package/dist/ai/claude/index.d.ts +105 -119
  5. package/dist/ai/openai/index.d.ts +87 -99
  6. package/dist/ai/tanstack/index.d.ts +54 -61
  7. package/dist/handler/http/fetch/index.d.ts +202 -201
  8. package/dist/handler/http/fetch/index.js +1 -1
  9. package/dist/handler/http/hono/index.d.ts +60 -59
  10. package/dist/handler/http/hono/index.js +1 -1
  11. package/dist/handler/http/nextjs/index.d.ts +55 -54
  12. package/dist/handler/http/nextjs/index.js +1 -1
  13. package/dist/handler/http/node/index.d.ts +234 -246
  14. package/dist/handler/http/node/index.js +1 -1
  15. package/dist/handler/http/solid-start/index.d.ts +55 -54
  16. package/dist/handler/http/solid-start/index.js +1 -1
  17. package/dist/index.d.ts +71 -70
  18. package/dist/index.js +1 -1
  19. package/dist/packem_shared/{AbstractBaseStorage-CiPEMcuo.js → AbstractBaseStorage-CLsYmMZg.js} +1 -1
  20. package/dist/packem_shared/AwsLightStorage-DGSPFUqr.js +1 -0
  21. package/dist/packem_shared/AzureStorage-DvKk_hhz.js +1 -0
  22. package/dist/packem_shared/BoxMetaStorage-CJsyeQ63.js +1 -0
  23. package/dist/packem_shared/{BoxStorage-DbGqBLux.js → BoxStorage-CmM95wi2.js} +1 -1
  24. package/dist/packem_shared/BunS3MetaStorage-CJsyeQ63.js +1 -0
  25. package/dist/packem_shared/{BunS3Storage-DNvimm9e.js → BunS3Storage-B_roVJ29.js} +1 -1
  26. package/dist/packem_shared/BunnyMetaStorage-CJsyeQ63.js +1 -0
  27. package/dist/packem_shared/{BunnyStorage-C7d0opLL.js → BunnyStorage-eZ1QDVaY.js} +1 -1
  28. package/dist/packem_shared/CloudinaryMetaStorage-Bv_YCZ0Q.js +1 -0
  29. package/dist/packem_shared/{CloudinaryStorage-Dc3XA2lP.js → CloudinaryStorage-CpH2f0Fv.js} +1 -1
  30. package/dist/packem_shared/DiskStorage-DzjjqCzo.js +1 -0
  31. package/dist/packem_shared/{DiskStorageWithChecksum-vFCubS6K.js → DiskStorageWithChecksum-MZkDEyts.js} +1 -1
  32. package/dist/packem_shared/DropboxMetaStorage-CJsyeQ63.js +1 -0
  33. package/dist/packem_shared/{DropboxStorage-CY9Ggu3m.js → DropboxStorage-BB9NoWK2.js} +1 -1
  34. package/dist/packem_shared/{Files-CpIcMjP0.js → Files-DyMJ9FPN.js} +1 -1
  35. package/dist/packem_shared/FirebaseMetaStorage-Bv_YCZ0Q.js +1 -0
  36. package/dist/packem_shared/{FirebaseStorage-D6O9CJXN.js → FirebaseStorage-BgbxzYNC.js} +1 -1
  37. package/dist/packem_shared/FtpMetaStorage-CJsyeQ63.js +1 -0
  38. package/dist/packem_shared/{FtpStorage-DbEjbq8z.js → FtpStorage-CNqXDz7P.js} +1 -1
  39. package/dist/packem_shared/{GCSMetaStorage-DT8K6zdm.js → GCSMetaStorage-gEhWlpfS.js} +1 -1
  40. package/dist/packem_shared/{GCStorage-6BHkFlEs.js → GCStorage-CRd5vjok.js} +1 -1
  41. package/dist/packem_shared/GoogleDriveMetaStorage-B0gLF7Io.js +1 -0
  42. package/dist/packem_shared/{GoogleDriveStorage-Bklsz7Bh.js → GoogleDriveStorage-Du7uBhSm.js} +1 -1
  43. package/dist/packem_shared/{LocalMetaStorage-BhicZnNl.js → LocalMetaStorage-CcGfFG39.js} +1 -1
  44. package/dist/packem_shared/{MemoryStorage-9gbWd09l.js → MemoryStorage-ChKyI6OY.js} +1 -1
  45. package/dist/packem_shared/{Multipart-D0ok6BBy.js → Multipart-C35TR2qL.js} +1 -1
  46. package/dist/packem_shared/{Multipart-CQjYqU--.js → Multipart-V64Bg5dt.js} +1 -1
  47. package/dist/packem_shared/NetlifyBlobMetaStorage-Bv_YCZ0Q.js +1 -0
  48. package/dist/packem_shared/NetlifyBlobStorage-CZsr_0DF.js +1 -0
  49. package/dist/packem_shared/OneDriveMetaStorage-B0gLF7Io.js +1 -0
  50. package/dist/packem_shared/{OneDriveStorage-CP6MvGAa.js → OneDriveStorage-B8qFgMq1.js} +1 -1
  51. package/dist/packem_shared/PocketBaseMetaStorage-Cm3v8g1-.js +1 -0
  52. package/dist/packem_shared/{PocketBaseStorage-2qhbI2PW.js → PocketBaseStorage-D2vMN-oY.js} +1 -1
  53. package/dist/packem_shared/{Rest-CI_BiZPv.js → Rest-B7g1sgkq.js} +1 -1
  54. package/dist/packem_shared/{Rest-DvfN4-kf.js → Rest-BrEMYgxZ.js} +1 -1
  55. package/dist/packem_shared/{S3Storage-YGeNk3Tt.js → S3Storage-CTe_BMDl.js} +1 -1
  56. package/dist/packem_shared/SftpMetaStorage-CJsyeQ63.js +1 -0
  57. package/dist/packem_shared/{SftpStorage-2Hz396Xr.js → SftpStorage-BKeAzuej.js} +1 -1
  58. package/dist/packem_shared/SharePointMetaStorage-CJsyeQ63.js +1 -0
  59. package/dist/packem_shared/{SharePointStorage-CrX2Pk6C.js → SharePointStorage-Dtnt5-wk.js} +1 -1
  60. package/dist/packem_shared/SupabaseMetaStorage-B0gLF7Io.js +1 -0
  61. package/dist/packem_shared/{SupabaseStorage-Dc_DBX29.js → SupabaseStorage-CmGQjqXf.js} +1 -1
  62. package/dist/packem_shared/{Tus-BlBZykIL.js → Tus-CJBgnJrn.js} +1 -1
  63. package/dist/packem_shared/{Tus-BBVt2ky3.js → Tus-D9c7KDnl.js} +1 -1
  64. package/dist/packem_shared/UploadThingMetaStorage-Bv_YCZ0Q.js +1 -0
  65. package/dist/packem_shared/{UploadThingStorage-BChykYSe.js → UploadThingStorage-DZ4zNvDH.js} +1 -1
  66. package/dist/packem_shared/VercelBlobMetaStorage-CJsyeQ63.js +1 -0
  67. package/dist/packem_shared/{VercelBlobStorage-CsRyPfw3.js → VercelBlobStorage-DDNEofR3.js} +1 -1
  68. package/dist/packem_shared/{approval.d-CMAYH9GF.d.ts → approval.d-C-d-t94D.d.ts} +6 -6
  69. package/dist/packem_shared/{base-handler-core-D-9Ku1h-.js → base-handler-core-BJP9jHCE.js} +1 -1
  70. package/dist/packem_shared/{base-handler-fetch-CfkNakv8.js → base-handler-fetch-yrYrukwL.js} +1 -1
  71. package/dist/packem_shared/base-handler-node-C8P9rkaH.js +1 -0
  72. package/dist/packem_shared/{createRetryWrapper-CxgiV_hH.js → createRetryWrapper-DgmeHPNF.js} +1 -1
  73. package/dist/packem_shared/disk-storage-DqnnFQAQ.js +1 -0
  74. package/dist/packem_shared/disk-storage-with-checksum.d-Dgwyza8a.d.ts +146 -0
  75. package/dist/packem_shared/{executors.d-BZP2rWo3.d.ts → executors.d-B9dIy3NT.d.ts} +3 -2
  76. package/dist/packem_shared/files.d-CmSZi3M0.d.ts +655 -0
  77. package/dist/packem_shared/gcs-meta-storage-C9F78Sqq.js +1 -0
  78. package/dist/packem_shared/local-meta-storage-BELb1YwO.js +11 -0
  79. package/dist/packem_shared/{local-meta-storage.d-D9PBfkn6.d.ts → local-meta-storage.d-cRTXr1kb.d.ts} +7 -7
  80. package/dist/packem_shared/media-transformer.d-C8tn4J2Z.d.ts +331 -0
  81. package/dist/packem_shared/{memory-storage.d-4EU1cMt1.d.ts → memory-storage.d-BNZvDG1b.d.ts} +32 -40
  82. package/dist/packem_shared/path-C-OWflAo-_mqb5p5d.js +1 -0
  83. package/dist/packem_shared/{rest-base-e0reNDE_.js → rest-base-BQ_dhWyV.js} +1 -1
  84. package/dist/packem_shared/s3-base-storage-CX94H-Za.js +1 -0
  85. package/dist/packem_shared/{s3-base-storage.d-BQgP5B-t.d.ts → s3-base-storage.d-ks99NSs-.d.ts} +64 -70
  86. package/dist/packem_shared/storage-DR7qdwBN.js +1 -0
  87. package/dist/packem_shared/storage.d-DwdJrArF.d.ts +1186 -0
  88. package/dist/packem_shared/tus-base.d-BKBoJVy0.d.ts +103 -0
  89. package/dist/packem_shared/types.d-B1_xZIhu.d.ts +104 -0
  90. package/dist/packem_shared/{types.d-CrUWY4On.d.ts → types.d-BEUv414z.d.ts} +134 -134
  91. package/dist/packem_shared/{types.d-CggTCgXr.d.ts → types.d-D7Zlz5RE.d.ts} +3 -3
  92. package/dist/storage/aws/clients/index.d.ts +388 -388
  93. package/dist/storage/aws/index.d.ts +110 -113
  94. package/dist/storage/aws/index.js +1 -1
  95. package/dist/storage/aws-light/index.d.ts +64 -67
  96. package/dist/storage/aws-light/index.js +1 -1
  97. package/dist/storage/azure/index.d.ts +134 -139
  98. package/dist/storage/azure/index.js +1 -1
  99. package/dist/storage/box/index.d.ts +89 -92
  100. package/dist/storage/box/index.js +1 -1
  101. package/dist/storage/bun-s3/index.d.ts +71 -76
  102. package/dist/storage/bun-s3/index.js +1 -1
  103. package/dist/storage/bunny/index.d.ts +52 -55
  104. package/dist/storage/bunny/index.js +1 -1
  105. package/dist/storage/cloudinary/index.d.ts +54 -59
  106. package/dist/storage/cloudinary/index.js +1 -1
  107. package/dist/storage/dropbox/index.d.ts +59 -62
  108. package/dist/storage/dropbox/index.js +1 -1
  109. package/dist/storage/firebase/index.d.ts +74 -79
  110. package/dist/storage/firebase/index.js +1 -1
  111. package/dist/storage/ftp/index.d.ts +38 -43
  112. package/dist/storage/ftp/index.js +1 -1
  113. package/dist/storage/gcs/index.d.ts +90 -95
  114. package/dist/storage/gcs/index.js +1 -1
  115. package/dist/storage/google-drive/index.d.ts +69 -72
  116. package/dist/storage/google-drive/index.js +1 -1
  117. package/dist/storage/local/index.d.ts +4 -3
  118. package/dist/storage/local/index.js +1 -1
  119. package/dist/storage/memory/index.d.ts +3 -2
  120. package/dist/storage/memory/index.js +1 -1
  121. package/dist/storage/netlify-blob/index.d.ts +86 -93
  122. package/dist/storage/netlify-blob/index.js +1 -1
  123. package/dist/storage/onedrive/index.d.ts +44 -53
  124. package/dist/storage/onedrive/index.js +1 -1
  125. package/dist/storage/pocketbase/index.d.ts +67 -72
  126. package/dist/storage/pocketbase/index.js +1 -1
  127. package/dist/storage/sftp/index.d.ts +40 -45
  128. package/dist/storage/sftp/index.js +1 -1
  129. package/dist/storage/sharepoint/index.d.ts +96 -95
  130. package/dist/storage/sharepoint/index.js +1 -1
  131. package/dist/storage/supabase/index.d.ts +50 -55
  132. package/dist/storage/supabase/index.js +1 -1
  133. package/dist/storage/uploadthing/index.d.ts +34 -37
  134. package/dist/storage/uploadthing/index.js +1 -1
  135. package/dist/storage/vercel-blob/index.d.ts +110 -115
  136. package/dist/storage/vercel-blob/index.js +1 -1
  137. package/dist/transformer/audio-transformer.d.ts +97 -96
  138. package/dist/transformer/image-transformer.d.ts +423 -422
  139. package/dist/transformer/index.d.ts +35 -34
  140. package/dist/transformer/video-transformer.d.ts +112 -111
  141. package/package.json +2 -2
  142. package/dist/packem_shared/AwsLightStorage-BK-WPL0h.js +0 -1
  143. package/dist/packem_shared/AzureStorage-1UvDIQZd.js +0 -1
  144. package/dist/packem_shared/BoxMetaStorage-BSn6Qfnf.js +0 -1
  145. package/dist/packem_shared/BunS3MetaStorage-BSn6Qfnf.js +0 -1
  146. package/dist/packem_shared/BunnyMetaStorage-BSn6Qfnf.js +0 -1
  147. package/dist/packem_shared/CloudinaryMetaStorage-DPVnmNe5.js +0 -1
  148. package/dist/packem_shared/DiskStorage-CI07TVNu.js +0 -1
  149. package/dist/packem_shared/DropboxMetaStorage-BSn6Qfnf.js +0 -1
  150. package/dist/packem_shared/FirebaseMetaStorage-DPVnmNe5.js +0 -1
  151. package/dist/packem_shared/FtpMetaStorage-BSn6Qfnf.js +0 -1
  152. package/dist/packem_shared/GoogleDriveMetaStorage-Cbwa1CHV.js +0 -1
  153. package/dist/packem_shared/NetlifyBlobMetaStorage-DPVnmNe5.js +0 -1
  154. package/dist/packem_shared/NetlifyBlobStorage-CkpCCoN1.js +0 -1
  155. package/dist/packem_shared/OneDriveMetaStorage-Cbwa1CHV.js +0 -1
  156. package/dist/packem_shared/PocketBaseMetaStorage-DOTLwVE7.js +0 -1
  157. package/dist/packem_shared/SftpMetaStorage-BSn6Qfnf.js +0 -1
  158. package/dist/packem_shared/SharePointMetaStorage-BSn6Qfnf.js +0 -1
  159. package/dist/packem_shared/SupabaseMetaStorage-Cbwa1CHV.js +0 -1
  160. package/dist/packem_shared/UploadThingMetaStorage-DPVnmNe5.js +0 -1
  161. package/dist/packem_shared/VercelBlobMetaStorage-BSn6Qfnf.js +0 -1
  162. package/dist/packem_shared/base-handler-node-BF1v1qDa.js +0 -1
  163. package/dist/packem_shared/disk-storage-CsQcYW3s.js +0 -1
  164. package/dist/packem_shared/disk-storage-with-checksum.d-B-VGEsfl.d.ts +0 -156
  165. package/dist/packem_shared/files.d-CH0iLBNC.d.ts +0 -655
  166. package/dist/packem_shared/gcs-meta-storage-B7BnctnV.js +0 -1
  167. package/dist/packem_shared/local-meta-storage-iuJnu90B.js +0 -11
  168. package/dist/packem_shared/media-transformer.d-Quf4ai47.d.ts +0 -331
  169. package/dist/packem_shared/path-0oTTdkvl-DvWvbDbh.js +0 -1
  170. package/dist/packem_shared/s3-base-storage-BoTyhuzO.js +0 -1
  171. package/dist/packem_shared/storage-0j5nCAUp.js +0 -1
  172. package/dist/packem_shared/storage.d-CEM1upWM.d.ts +0 -1176
  173. package/dist/packem_shared/tus-base.d-DLzKE54M.d.ts +0 -106
  174. package/dist/packem_shared/types.d-Bon9GVVe.d.ts +0 -104
@@ -1,26 +1,27 @@
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-DwdJrArF.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-cRTXr1kb.js";
4
+ import 'node:timers';
4
5
  import 'node:crypto';
5
6
  import 'node:http';
6
7
  import 'lru-cache';
7
8
  declare class BunS3File extends File {
8
9
  /**
9
- * ETag reported by the S3-compatible backend (when present on the
10
- * stored object).
11
- */
10
+ * ETag reported by the S3-compatible backend (when present on the
11
+ * stored object).
12
+ */
12
13
  bunS3ETag?: string;
13
14
  /**
14
- * Object key within the bucket.
15
- */
15
+ * Object key within the bucket.
16
+ */
16
17
  bunS3Key?: string;
17
18
  }
18
19
  declare class BunS3MetaStorage extends LocalMetaStorage<BunS3File> {
19
20
  constructor(config?: LocalMetaStorageOptions);
20
21
  }
21
22
  /**
22
- * Object metadata returned by `Bun.S3Client.stat` / `S3File.stat`.
23
- */
23
+ * Object metadata returned by `Bun.S3Client.stat` / `S3File.stat`.
24
+ */
24
25
  interface BunS3Stat {
25
26
  etag?: string;
26
27
  lastModified?: Date;
@@ -28,8 +29,8 @@ interface BunS3Stat {
28
29
  type?: string;
29
30
  }
30
31
  /**
31
- * Options accepted by `S3File.presign` / `S3Client.presign`.
32
- */
32
+ * Options accepted by `S3File.presign` / `S3Client.presign`.
33
+ */
33
34
  interface BunS3PresignOptions {
34
35
  acl?: string;
35
36
  contentDisposition?: string;
@@ -38,14 +39,14 @@ interface BunS3PresignOptions {
38
39
  type?: string;
39
40
  }
40
41
  /**
41
- * Acceptable upload bodies for `Bun.S3Client.write` / `S3File.write`.
42
- */
42
+ * Acceptable upload bodies for `Bun.S3Client.write` / `S3File.write`.
43
+ */
43
44
  type BunS3WriteData = ArrayBuffer | Blob | ReadableStream | Response | string | Uint8Array;
44
45
  /**
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
- */
46
+ * Structural view of a Bun `S3File` reference. Declared locally so the
47
+ * adapter type-checks under Node (where the `Bun` global is absent) while
48
+ * still binding to the real runtime object.
49
+ */
49
50
  interface BunS3FileRef {
50
51
  arrayBuffer: () => Promise<ArrayBuffer>;
51
52
  delete: () => Promise<void>;
@@ -59,8 +60,8 @@ interface BunS3FileRef {
59
60
  }) => Promise<number>;
60
61
  }
61
62
  /**
62
- * One entry of a `Bun.S3Client.list` response.
63
- */
63
+ * One entry of a `Bun.S3Client.list` response.
64
+ */
64
65
  interface BunS3ListEntry {
65
66
  eTag?: string;
66
67
  key?: string;
@@ -68,9 +69,9 @@ interface BunS3ListEntry {
68
69
  size?: number;
69
70
  }
70
71
  /**
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
- */
72
+ * Structural view of `Bun.S3Client`. Either pass a real instance via
73
+ * `client`, or run under Bun and let the adapter construct one.
74
+ */
74
75
  interface BunS3ClientLike {
75
76
  delete: (key: string) => Promise<void>;
76
77
  exists: (key: string) => Promise<boolean>;
@@ -93,72 +94,72 @@ interface BunS3ClientLike {
93
94
  }
94
95
  interface BunS3StorageOptions extends BaseStorageOptions {
95
96
  /**
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
- */
97
+ * S3 access key ID. Falls back to Bun's own env resolution
98
+ * (`S3_ACCESS_KEY_ID`, then `AWS_ACCESS_KEY_ID`). Ignored when `client`
99
+ * is supplied.
100
+ */
100
101
  accessKeyId?: string;
101
102
  /**
102
- * Canned ACL applied to uploads (e.g. `"public-read"`). Passed through
103
- * to Bun's S3 client.
104
- */
103
+ * Canned ACL applied to uploads (e.g. `"public-read"`). Passed through
104
+ * to Bun's S3 client.
105
+ */
105
106
  acl?: string;
106
107
  /**
107
- * S3 bucket name. Falls back to Bun's env resolution (`S3_BUCKET`, then
108
- * `AWS_BUCKET`). Ignored when `client` is supplied.
109
- */
108
+ * S3 bucket name. Falls back to Bun's env resolution (`S3_BUCKET`, then
109
+ * `AWS_BUCKET`). Ignored when `client` is supplied.
110
+ */
110
111
  bucket?: string;
111
112
  /**
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
- */
113
+ * Pre-built `Bun.S3Client` (or `Bun.s3` singleton). Use this to share an
114
+ * instance or inject a test stub. Mutually exclusive with the inline
115
+ * credential options.
116
+ */
116
117
  client?: BunS3ClientLike;
117
118
  /**
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
- */
119
+ * Custom S3-compatible endpoint. Falls back to Bun's env resolution
120
+ * (`S3_ENDPOINT`, then `AWS_ENDPOINT`). Ignored when `client` is
121
+ * supplied.
122
+ */
122
123
  endpoint?: string;
123
124
  /**
124
- * Configure metafiles storage for resumable-upload bookkeeping.
125
- */
125
+ * Configure metafiles storage for resumable-upload bookkeeping.
126
+ */
126
127
  metaStorageConfig?: LocalMetaStorageOptions;
127
128
  /**
128
- * S3 region. Falls back to Bun's env resolution (`S3_REGION`, then
129
- * `AWS_REGION`). Ignored when `client` is supplied.
130
- */
129
+ * S3 region. Falls back to Bun's env resolution (`S3_REGION`, then
130
+ * `AWS_REGION`). Ignored when `client` is supplied.
131
+ */
131
132
  region?: string;
132
133
  /**
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
- */
134
+ * S3 secret access key. Falls back to Bun's env resolution
135
+ * (`S3_SECRET_ACCESS_KEY`, then `AWS_SECRET_ACCESS_KEY`). Ignored when
136
+ * `client` is supplied.
137
+ */
137
138
  secretAccessKey?: string;
138
139
  /**
139
- * Temporary session token for STS credentials. Ignored when `client` is
140
- * supplied.
141
- */
140
+ * Temporary session token for STS credentials. Ignored when `client` is
141
+ * supplied.
142
+ */
142
143
  sessionToken?: string;
143
144
  /**
144
- * Use virtual-hosted-style addressing (`https://&lt;bucket>.&lt;host>/...`).
145
- * Ignored when `client` is supplied.
146
- */
145
+ * Use virtual-hosted-style addressing (`https://&lt;bucket>.&lt;host>/...`).
146
+ * Ignored when `client` is supplied.
147
+ */
147
148
  virtualHostedStyle?: boolean;
148
149
  }
149
150
  /**
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
- */
151
+ * Bun-native S3 storage backend, backed by `Bun.S3Client` instead of the AWS
152
+ * SDK. Use this when you are already running on Bun and want to skip the AWS
153
+ * SDK dependency.
154
+ *
155
+ * Limitations (inherent to `Bun.S3Client`, which exposes no low-level
156
+ * multipart or server-side copy primitives):
157
+ *
158
+ * - 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.
159
+ * - `copy` / `move` are client-side read-then-write — Bun has no server-side `CopyObject`.
160
+ * - `getUploadUrl` returns a presigned `PUT`; a `contentLength` cap cannot be enforced (Bun presign has no max-size policy) and is ignored.
161
+ * - ⚠️ 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.
162
+ */
162
163
  declare class BunS3Storage extends BaseStorage<BunS3File> {
163
164
  static override readonly name: string;
164
165
  protected meta: MetaStorage<BunS3File>;
@@ -167,15 +168,9 @@ declare class BunS3Storage extends BaseStorage<BunS3File> {
167
168
  override get raw(): BunS3ClientLike;
168
169
  create(config: FileInit, _options?: OperationOptions): Promise<BunS3File>;
169
170
  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<{
171
+ delete({ id }: FileQuery, options?: OperationOptions): Promise<BunS3File>;
172
+ get({ id }: FileQuery, options?: OperationOptions): Promise<FileReturn>;
173
+ override getStream({ id }: FileQuery, options?: OperationOptions): Promise<{
179
174
  headers?: Record<string, string>;
180
175
  size?: number;
181
176
  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-CJsyeQ63.js";import{default as u}from"../../packem_shared/BunS3Storage-B_roVJ29.js";export{t as BunS3File,r as BunS3MetaStorage,u as BunS3Storage};
@@ -1,85 +1,86 @@
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-DwdJrArF.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-cRTXr1kb.js";
4
4
  import * as BunnyStorageSDK from '@bunny.net/storage-sdk';
5
+ import 'node:timers';
5
6
  import 'node:crypto';
6
7
  import 'node:http';
7
8
  import 'lru-cache';
8
9
  declare class BunnyFile extends File {
9
10
  /**
10
- * SHA-256 checksum reported by Bunny Storage (when present on the
11
- * stored object).
12
- */
11
+ * SHA-256 checksum reported by Bunny Storage (when present on the
12
+ * stored object).
13
+ */
13
14
  bunnyChecksum?: string;
14
15
  /**
15
- * Server-side path within the Storage Zone (always prefixed with `/`).
16
- */
16
+ * Server-side path within the Storage Zone (always prefixed with `/`).
17
+ */
17
18
  bunnyPath?: string;
18
19
  }
19
20
  declare class BunnyMetaStorage extends LocalMetaStorage<BunnyFile> {
20
21
  constructor(config?: LocalMetaStorageOptions);
21
22
  }
22
23
  /**
23
- * Bunny Storage region code. Mirrors the SDK's `StorageRegion` enum values
24
- * (e.g. `"de"`, `"ny"`, `"syd"`).
25
- */
24
+ * Bunny Storage region code. Mirrors the SDK's `StorageRegion` enum values
25
+ * (e.g. `"de"`, `"ny"`, `"syd"`).
26
+ */
26
27
  type BunnyStorageRegion = `${BunnyStorageSDK.regions.StorageRegion}`;
27
28
  /**
28
- * A connected Bunny Storage zone produced by
29
- * `BunnyStorageSDK.zone.connect_with_accesskey(...)`.
30
- */
29
+ * A connected Bunny Storage zone produced by
30
+ * `BunnyStorageSDK.zone.connect_with_accesskey(...)`.
31
+ */
31
32
  type BunnyStorageClient = ReturnType<typeof BunnyStorageSDK.zone.connect_with_accesskey>;
32
33
  interface BunnyStorageOptions extends BaseStorageOptions {
33
34
  /**
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
- */
35
+ * Bunny Storage zone password / API access key. Falls back to
36
+ * `BUNNY_STORAGE_ACCESS_KEY`, then `BUNNY_ACCESS_KEY`, then the
37
+ * SDK-documented `STORAGE_ACCESS_KEY`. Ignored when `client` is supplied.
38
+ */
38
39
  accessKey?: string;
39
40
  /**
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
- */
41
+ * Pre-built `StorageZone` instance. Use this to share an instance across
42
+ * adapters or inject test stubs. Mutually exclusive with `zone` /
43
+ * `accessKey` / `region`.
44
+ */
44
45
  client?: BunnyStorageClient;
45
46
  /**
46
- * Configure metafiles storage for resumable-upload bookkeeping.
47
- */
47
+ * Configure metafiles storage for resumable-upload bookkeeping.
48
+ */
48
49
  metaStorageConfig?: LocalMetaStorageOptions;
49
50
  /**
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
- */
51
+ * Origin used to build URLs from `getReadUrl`, typically a Bunny Pull
52
+ * Zone or custom CDN hostname in front of the Storage Zone. When unset,
53
+ * `getReadUrl` throws because the Storage API requires an `AccessKey`
54
+ * header and has no signed-read URL primitive.
55
+ */
55
56
  publicBaseUrl?: string;
56
57
  /**
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
- */
58
+ * Primary Bunny Storage region. Pass one of
59
+ * `BunnyStorageSDK.regions.StorageRegion.*`, e.g. `"de"`, `"ny"`, `"syd"`.
60
+ * Falls back to `BUNNY_STORAGE_REGION`, then `STORAGE_REGION`. Ignored
61
+ * when `client` is supplied.
62
+ */
62
63
  region?: BunnyStorageRegion;
63
64
  /**
64
- * Bunny Storage zone name. Falls back to `BUNNY_STORAGE_ZONE`, then the
65
- * SDK-documented `STORAGE_ZONE`. Ignored when `client` is supplied.
66
- */
65
+ * Bunny Storage zone name. Falls back to `BUNNY_STORAGE_ZONE`, then the
66
+ * SDK-documented `STORAGE_ZONE`. Ignored when `client` is supplied.
67
+ */
67
68
  zone?: string;
68
69
  }
69
70
  /**
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
- */
71
+ * Bunny Storage backend.
72
+ *
73
+ * 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`.
74
+ *
75
+ * **Limitations**:
76
+ *
77
+ * - No native server-side `copy` — implemented as download + re-upload.
78
+ * - No `signedUploadUrl` / presigned PUT — Bunny has no such primitive.
79
+ * - `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.
80
+ * - `getReadUrl` rejects `responseContentDisposition` — no override exists on Bunny Storage / Pull Zone URLs.
81
+ * - `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.
82
+ * - ⚠️ 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.
83
+ */
83
84
  declare class BunnyStorage extends BaseStorage<BunnyFile> {
84
85
  static override readonly name: string;
85
86
  override checksumTypes: string[];
@@ -93,12 +94,8 @@ declare class BunnyStorage extends BaseStorage<BunnyFile> {
93
94
  get zone(): string;
94
95
  create(config: FileInit, _options?: OperationOptions): Promise<BunnyFile>;
95
96
  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>;
97
+ delete({ id }: FileQuery, options?: OperationOptions): Promise<BunnyFile>;
98
+ get({ id }: FileQuery, options?: OperationOptions): Promise<FileReturn>;
102
99
  copy(name: string, destination: string, options?: OperationOptions & {
103
100
  storageClass?: string;
104
101
  }): 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-CJsyeQ63.js";import{default as n}from"../../packem_shared/BunnyStorage-eZ1QDVaY.js";export{t as BunnyFile,r as BunnyMetaStorage,n as BunnyStorage};
@@ -1,7 +1,8 @@
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-DwdJrArF.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-cRTXr1kb.js";
4
4
  import { v2 } from 'cloudinary';
5
+ import 'node:timers';
5
6
  import 'node:crypto';
6
7
  import 'node:http';
7
8
  import 'lru-cache';
@@ -15,73 +16,73 @@ declare class CloudinaryMetaStorage extends LocalMetaStorage<CloudinaryFile> {
15
16
  }
16
17
  interface CloudinaryStorageOptions extends BaseStorageOptions {
17
18
  /**
18
- * Cloudinary API key. Ignored when `client` is supplied. Falls back to
19
- * `CLOUDINARY_API_KEY`, or the credentials encoded in `CLOUDINARY_URL`.
20
- */
19
+ * Cloudinary API key. Ignored when `client` is supplied. Falls back to
20
+ * `CLOUDINARY_API_KEY`, or the credentials encoded in `CLOUDINARY_URL`.
21
+ */
21
22
  apiKey?: string;
22
23
  /**
23
- * Cloudinary API secret. Ignored when `client` is supplied. Falls back to
24
- * `CLOUDINARY_API_SECRET`, or the credentials encoded in `CLOUDINARY_URL`.
25
- */
24
+ * Cloudinary API secret. Ignored when `client` is supplied. Falls back to
25
+ * `CLOUDINARY_API_SECRET`, or the credentials encoded in `CLOUDINARY_URL`.
26
+ */
26
27
  apiSecret?: string;
27
28
  /**
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
- */
29
+ * Pre-configured `cloudinary` namespace (the `v2` export). Mutually
30
+ * exclusive with `cloudName` + `apiKey` + `apiSecret`. When supplied the
31
+ * adapter skips `cloudinary.config()` and uses the instance as-is.
32
+ */
32
33
  client?: typeof v2;
33
34
  /**
34
- * Cloudinary cloud name. Ignored when `client` is supplied. Falls back to
35
- * `CLOUDINARY_CLOUD_NAME`, or the host segment of `CLOUDINARY_URL`.
36
- */
35
+ * Cloudinary cloud name. Ignored when `client` is supplied. Falls back to
36
+ * `CLOUDINARY_CLOUD_NAME`, or the host segment of `CLOUDINARY_URL`.
37
+ */
37
38
  cloudName?: string;
38
39
  /**
39
- * Default expiry, in seconds, for `getReadUrl` signed URLs on private or
40
- * authenticated assets. Defaults to 3600 (1 hour).
41
- */
40
+ * Default expiry, in seconds, for `getReadUrl` signed URLs on private or
41
+ * authenticated assets. Defaults to 3600 (1 hour).
42
+ */
42
43
  defaultUrlExpiresIn?: number;
43
44
  /**
44
- * Configure metafiles storage. Used for TUS-style resumable upload
45
- * bookkeeping. Defaults to {@link LocalMetaStorage} under the OS tmp
46
- * directory.
47
- */
45
+ * Configure metafiles storage. Used for TUS-style resumable upload
46
+ * bookkeeping. Defaults to {@link LocalMetaStorage} under the OS tmp
47
+ * directory.
48
+ */
48
49
  metaStorageConfig?: LocalMetaStorageOptions;
49
50
  /**
50
- * Cloudinary resource type. Use `"raw"` for arbitrary files, `"image"` or
51
- * `"video"` for media that benefits from transformations. Defaults to
52
- * `"raw"`.
53
- */
51
+ * Cloudinary resource type. Use `"raw"` for arbitrary files, `"image"` or
52
+ * `"video"` for media that benefits from transformations. Defaults to
53
+ * `"raw"`.
54
+ */
54
55
  resourceType?: "image" | "raw" | "video";
55
56
  /**
56
- * Generate `https://` delivery URLs. Defaults to `true`.
57
- */
57
+ * Generate `https://` delivery URLs. Defaults to `true`.
58
+ */
58
59
  secure?: boolean;
59
60
  /**
60
- * Cloudinary delivery type. `"private"` and `"authenticated"` require a
61
- * signed URL for delivery. Defaults to `"upload"`.
62
- */
61
+ * Cloudinary delivery type. `"private"` and `"authenticated"` require a
62
+ * signed URL for delivery. Defaults to `"upload"`.
63
+ */
63
64
  type?: "authenticated" | "private" | "upload";
64
65
  }
65
66
  /**
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
- */
67
+ * Cloudinary Storage backend.
68
+ *
69
+ * Single-shot uploads only — the adapter buffers the part stream and uploads
70
+ * it in one request via `upload_stream`. Cloudinary has no simple presigned
71
+ * `PUT` endpoint, so `getUploadUrl` is not implemented (the base default
72
+ * throws `METHOD_NOT_ALLOWED`).
73
+ * @example
74
+ * ```ts
75
+ * import { CloudinaryStorage } from "@visulima/storage/provider/cloudinary";
76
+ *
77
+ * const storage = new CloudinaryStorage({
78
+ * cloudName: process.env.CLOUDINARY_CLOUD_NAME,
79
+ * apiKey: process.env.CLOUDINARY_API_KEY,
80
+ * apiSecret: process.env.CLOUDINARY_API_SECRET,
81
+ * });
82
+ * ```
83
+ * @remarks
84
+ * - ⚠️ 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.
85
+ */
85
86
  declare class CloudinaryStorage extends BaseStorage<CloudinaryFile> {
86
87
  static override readonly name: string;
87
88
  override checksumTypes: string[];
@@ -95,15 +96,9 @@ declare class CloudinaryStorage extends BaseStorage<CloudinaryFile> {
95
96
  override get raw(): typeof v2;
96
97
  create(config: FileInit, _options?: OperationOptions): Promise<CloudinaryFile>;
97
98
  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>;
99
+ delete({ id }: FileQuery, options?: OperationOptions): Promise<CloudinaryFile>;
100
+ override exists({ id }: FileQuery, options?: OperationOptions): Promise<boolean>;
101
+ get({ id }: FileQuery, options?: OperationOptions): Promise<FileReturn>;
107
102
  copy(name: string, destination: string, options?: OperationOptions & {
108
103
  storageClass?: string;
109
104
  }): 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-Bv_YCZ0Q.js";import{default as d}from"../../packem_shared/CloudinaryStorage-CpH2f0Fv.js";export{r as CloudinaryFile,t as CloudinaryMetaStorage,d as CloudinaryStorage};