@visulima/storage 1.0.0-alpha.26 → 1.0.0-alpha.27

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 (194) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/LICENSE.md +0 -1104
  3. package/README.md +79 -466
  4. package/dist/adapter/nuxt/module.d.ts +4 -4
  5. package/dist/adapter/nuxt/node_modules/.bin/nuxi +22 -0
  6. package/dist/adapter/nuxt/node_modules/.bin/nuxt +22 -0
  7. package/dist/ai/ai-sdk/index.d.ts +113 -0
  8. package/dist/ai/ai-sdk/index.js +1 -0
  9. package/dist/ai/claude/index.d.ts +177 -0
  10. package/dist/ai/claude/index.js +1 -0
  11. package/dist/ai/openai/index.d.ts +205 -0
  12. package/dist/ai/openai/index.js +1 -0
  13. package/dist/ai/tanstack/index.d.ts +115 -0
  14. package/dist/ai/tanstack/index.js +1 -0
  15. package/dist/handler/http/fetch/index.d.ts +13 -7
  16. package/dist/handler/http/fetch/index.js +1 -1
  17. package/dist/handler/http/hono/index.d.ts +5 -1412
  18. package/dist/handler/http/hono/index.js +1 -1
  19. package/dist/handler/http/nextjs/index.d.ts +4 -4
  20. package/dist/handler/http/nextjs/index.js +1 -1
  21. package/dist/handler/http/node/index.d.ts +7 -7
  22. package/dist/handler/http/node/index.js +1 -1
  23. package/dist/handler/http/solid-start/index.d.ts +4 -4
  24. package/dist/handler/http/solid-start/index.js +1 -1
  25. package/dist/index.d.ts +6 -324
  26. package/dist/index.js +1 -1
  27. package/dist/packem_shared/{AwsLightFile-BTLiRxXj.js → AwsLightFile-BSqjc_rD.js} +1 -1
  28. package/dist/packem_shared/{AwsLightStorage-CA9cdfJ6.js → AwsLightStorage-SH7j-myh.js} +1 -1
  29. package/dist/packem_shared/{AzureFile-BKHru1zB.js → AzureFile-Dgj2Tef4.js} +1 -1
  30. package/dist/packem_shared/{AzureSMetaStorage-BqA4jUDJ.js → AzureSMetaStorage-DV2tNjKh.js} +1 -1
  31. package/dist/packem_shared/AzureStorage-BVYMFEBP.js +1 -0
  32. package/dist/packem_shared/BaseTransformer-Fpcuz4kj.js +1 -0
  33. package/dist/packem_shared/BoxFile-Be0S4N1L.js +1 -0
  34. package/dist/packem_shared/BoxMetaStorage-BUe5Qmqe.js +1 -0
  35. package/dist/packem_shared/BoxStorage-CgC81_So.js +1 -0
  36. package/dist/packem_shared/BunnyFile-Dotl-lO9.js +1 -0
  37. package/dist/packem_shared/BunnyMetaStorage-D0mT6veJ.js +1 -0
  38. package/dist/packem_shared/BunnyStorage-Bl4usdVT.js +1 -0
  39. package/dist/packem_shared/DiskStorage-B5uIDVXr.js +1 -0
  40. package/dist/packem_shared/DiskStorageWithChecksum-CbXWpSOr.js +1 -0
  41. package/dist/packem_shared/DropboxFile-BGVG2kXM.js +1 -0
  42. package/dist/packem_shared/DropboxMetaStorage-CICuUZ1n.js +1 -0
  43. package/dist/packem_shared/DropboxStorage-CPjhDN5B.js +1 -0
  44. package/dist/packem_shared/ERRORS-CyOuSMLY.js +1 -0
  45. package/dist/packem_shared/File-BhfUgJjs.js +1 -0
  46. package/dist/packem_shared/Files-B7hlJcB4.js +1 -0
  47. package/dist/packem_shared/{GCSFile-CHjX_fJk.js → GCSFile-CDQ6IWAz.js} +1 -1
  48. package/dist/packem_shared/{GCSMetaStorage-DV0MBO3W.js → GCSMetaStorage-CqP9ifYB.js} +1 -1
  49. package/dist/packem_shared/GCStorage-XSBKVx90.js +1 -0
  50. package/dist/packem_shared/GoogleDriveFile-D0aGfGbL.js +1 -0
  51. package/dist/packem_shared/GoogleDriveMetaStorage-rghGy3Fa.js +1 -0
  52. package/dist/packem_shared/GoogleDriveStorage-DuB6glUk.js +1 -0
  53. package/dist/packem_shared/LocalMetaStorage-B5uh1snG.js +1 -0
  54. package/dist/packem_shared/MediaTransformer-D-1c9Q_k.js +1 -0
  55. package/dist/packem_shared/Multipart-7FSSy2n1.js +1 -0
  56. package/dist/packem_shared/Multipart-DACQFsrn.js +1 -0
  57. package/dist/packem_shared/{NetlifyBlobFile-CpzkMKng.js → NetlifyBlobFile-PMZLJ8AC.js} +1 -1
  58. package/dist/packem_shared/NetlifyBlobMetaStorage-BcRFPky8.js +1 -0
  59. package/dist/packem_shared/NetlifyBlobStorage-C4qkJv1R.js +1 -0
  60. package/dist/packem_shared/OneDriveFile-XbVVKIJh.js +1 -0
  61. package/dist/packem_shared/OneDriveMetaStorage-B_BkGLzW.js +1 -0
  62. package/dist/packem_shared/OneDriveStorage-Cu0cGcrh.js +1 -0
  63. package/dist/packem_shared/Rest-5NwM1xYj.js +1 -0
  64. package/dist/packem_shared/{Rest-CYEBbtCD.js → Rest-y8Vz2Rt0.js} +1 -1
  65. package/dist/packem_shared/{S3File-Du6wP0Sz.js → S3File-BfmCOET4.js} +1 -1
  66. package/dist/packem_shared/S3Storage-D8dopWoO.js +1 -0
  67. package/dist/packem_shared/SupabaseFile-DZ1iv9gM.js +1 -0
  68. package/dist/packem_shared/SupabaseMetaStorage-BR1UGqnj.js +1 -0
  69. package/dist/packem_shared/SupabaseStorage-CCtMTiN5.js +1 -0
  70. package/dist/packem_shared/{Tus-CUBCkuPE.js → Tus-BCVAbJIi.js} +1 -1
  71. package/dist/packem_shared/Tus-CJMcygk7.js +1 -0
  72. package/dist/packem_shared/UploadThingFile-BpG9mE8K.js +1 -0
  73. package/dist/packem_shared/UploadThingMetaStorage-DyGNyaAq.js +1 -0
  74. package/dist/packem_shared/UploadThingStorage-B_fNzNFO.js +1 -0
  75. package/dist/packem_shared/{VercelBlobFile-CL9MjKcY.js → VercelBlobFile-Cni_1qwD.js} +1 -1
  76. package/dist/packem_shared/{VercelBlobMetaStorage-BsOTx-Su.js → VercelBlobMetaStorage-Do9ZoKrl.js} +1 -1
  77. package/dist/packem_shared/VercelBlobStorage-D5zy4PPQ.js +1 -0
  78. package/dist/packem_shared/agentsListFiles-R-CnGKc4.js +1 -0
  79. package/dist/packem_shared/akamai-BYS9pP8S.js +1 -0
  80. package/dist/packem_shared/approval-BBeX3o4E.js +1 -0
  81. package/dist/packem_shared/approval.d-CMAYH9GF.d.ts +75 -0
  82. package/dist/packem_shared/backblaze-CvdtCvJL.js +1 -0
  83. package/dist/packem_shared/base-handler-core-BfwZ1RS1.js +1 -0
  84. package/dist/packem_shared/base-handler-fetch-CLxqXTQf.js +1 -0
  85. package/dist/packem_shared/base-handler-node-DBZjcqsp.js +1 -0
  86. package/dist/packem_shared/claudeListFiles-DAezbKEi.js +1 -0
  87. package/dist/packem_shared/cloudflare-Bm_Pg6yx.js +1 -0
  88. package/dist/packem_shared/createResponsesFileTools-BCep-qdO.js +1 -0
  89. package/dist/packem_shared/defaultCloudStorageFileNameValidation-6URTv-Mp.js +1 -0
  90. package/dist/packem_shared/detect-file-type-5JhzC9RU.js +1 -0
  91. package/dist/packem_shared/digitalOcean-Lj1NfDzc.js +1 -0
  92. package/dist/packem_shared/disk-storage-CbSSPnOf.js +5 -0
  93. package/dist/packem_shared/{disk-storage-with-checksum.d-hEoe2ugb.d.ts → disk-storage-with-checksum.d-BQMXA4Wl.d.ts} +6 -4
  94. package/dist/packem_shared/executors-DG6hGtvm.js +1 -0
  95. package/dist/packem_shared/executors.d-UtkeCbk1.d.ts +65 -0
  96. package/dist/packem_shared/{gcs-meta-storage-BfJB-ejI.js → gcs-meta-storage-XB-UPJn6.js} +1 -1
  97. package/dist/packem_shared/hetzner-DDxE7Gy7.js +1 -0
  98. package/dist/packem_shared/index.d-DotjipuX.d.ts +89 -0
  99. package/dist/packem_shared/isRetryableError-B6ZS_-5I.js +1 -0
  100. package/dist/packem_shared/listFiles-B6VF05d-.js +1 -0
  101. package/dist/packem_shared/listFiles-BtP6VnUp.js +1 -0
  102. package/dist/packem_shared/{local-meta-storage-Bkwqi_gi.js → local-meta-storage-CT1audnK.js} +1 -1
  103. package/dist/packem_shared/{local-meta-storage.d-Dop9RP9k.d.ts → local-meta-storage.d-B5R1nswK.d.ts} +2 -1
  104. package/dist/packem_shared/{media-transformer.d-CY9CsEOe.d.ts → media-transformer.d-DK7NJncf.d.ts} +2 -2
  105. package/dist/packem_shared/minio-T_Z3iEy7.js +1 -0
  106. package/dist/packem_shared/multipart-base-BxckfvQf.js +1 -0
  107. package/dist/packem_shared/oauth-refresh-Dg2ybc6_.js +1 -0
  108. package/dist/packem_shared/part-match-B5fLLmFw.js +1 -0
  109. package/dist/packem_shared/rest-base-CCv78k7h.js +1 -0
  110. package/dist/packem_shared/s3-base-storage-f_EyFAAt.js +1 -0
  111. package/dist/packem_shared/{s3-base-storage.d-CczjSe98.d.ts → s3-base-storage.d-BROGYJ4F.d.ts} +1 -1
  112. package/dist/packem_shared/storage-CoyB2O-Y.js +1 -0
  113. package/dist/packem_shared/{storage.d-BOMUJD96.d.ts → storage.d-Cr6f2lac.d.ts} +179 -78
  114. package/dist/packem_shared/storj-CVA9mM-7.js +1 -0
  115. package/dist/packem_shared/tigris-wmhjfsH2.js +1 -0
  116. package/dist/packem_shared/{tus-base.d-DNZRXR9X.d.ts → tus-base.d-4-ZfDQwl.d.ts} +3 -3
  117. package/dist/packem_shared/{types.d-D4caL2Fp.d.ts → types.d-BgCmSE94.d.ts} +2 -2
  118. package/dist/packem_shared/{types.d-BCN94sB_.d.ts → types.d-C8eSxqX9.d.ts} +13 -1
  119. package/dist/packem_shared/wasabi-JQzxdrFy.js +1 -0
  120. package/dist/storage/aws/clients/index.d.ts +90 -15
  121. package/dist/storage/aws/clients/index.js +1 -1
  122. package/dist/storage/aws/index.d.ts +16 -15
  123. package/dist/storage/aws/index.js +1 -1
  124. package/dist/storage/aws-light/index.d.ts +5 -3
  125. package/dist/storage/aws-light/index.js +1 -1
  126. package/dist/storage/azure/index.d.ts +4 -10277
  127. package/dist/storage/azure/index.js +1 -1
  128. package/dist/storage/box/index.d.ts +186 -0
  129. package/dist/storage/box/index.js +1 -0
  130. package/dist/storage/bunny/index.d.ts +116 -0
  131. package/dist/storage/bunny/index.js +1 -0
  132. package/dist/storage/dropbox/index.d.ts +129 -0
  133. package/dist/storage/dropbox/index.js +1 -0
  134. package/dist/storage/gcs/index.d.ts +6 -3941
  135. package/dist/storage/gcs/index.js +1 -1
  136. package/dist/storage/google-drive/index.d.ts +145 -0
  137. package/dist/storage/google-drive/index.js +1 -0
  138. package/dist/storage/local/index.d.ts +3 -3
  139. package/dist/storage/local/index.js +1 -1
  140. package/dist/storage/netlify-blob/index.d.ts +4 -2
  141. package/dist/storage/netlify-blob/index.js +1 -1
  142. package/dist/storage/onedrive/index.d.ts +192 -0
  143. package/dist/storage/onedrive/index.js +1 -0
  144. package/dist/storage/supabase/index.d.ts +111 -0
  145. package/dist/storage/supabase/index.js +1 -0
  146. package/dist/storage/uploadthing/index.d.ts +91 -0
  147. package/dist/storage/uploadthing/index.js +1 -0
  148. package/dist/storage/vercel-blob/index.d.ts +17 -2
  149. package/dist/storage/vercel-blob/index.js +1 -1
  150. package/dist/transformer/audio-transformer.d.ts +2 -2
  151. package/dist/transformer/audio-transformer.js +1 -1
  152. package/dist/transformer/image-transformer.d.ts +6 -2
  153. package/dist/transformer/image-transformer.js +1 -1
  154. package/dist/transformer/index.d.ts +3 -3
  155. package/dist/transformer/index.js +1 -1
  156. package/dist/transformer/video-transformer.d.ts +2 -2
  157. package/dist/transformer/video-transformer.js +1 -1
  158. package/package.json +99 -3
  159. package/dist/packem_shared/AzureStorage-BKUjCymW.js +0 -1
  160. package/dist/packem_shared/BaseTransformer-D68eLyz1.js +0 -1
  161. package/dist/packem_shared/DiskStorage-DNjpDMX9.js +0 -1
  162. package/dist/packem_shared/DiskStorageWithChecksum-Bb6JX_tC.js +0 -1
  163. package/dist/packem_shared/ERRORS-B9jkvKwx.js +0 -1
  164. package/dist/packem_shared/File-alcSNpLq.js +0 -1
  165. package/dist/packem_shared/GCStorage-B8dl6TGK.js +0 -1
  166. package/dist/packem_shared/LocalMetaStorage-BWuFvWn4.js +0 -1
  167. package/dist/packem_shared/MediaTransformer-2C8MJeAg.js +0 -1
  168. package/dist/packem_shared/Multipart-Bd9YFFn0.js +0 -1
  169. package/dist/packem_shared/Multipart-D5bcEvga.js +0 -1
  170. package/dist/packem_shared/NetlifyBlobMetaStorage-dD0oBLom.js +0 -1
  171. package/dist/packem_shared/NetlifyBlobStorage-ByTwCN-h.js +0 -1
  172. package/dist/packem_shared/Rest-DoonVU7B.js +0 -1
  173. package/dist/packem_shared/S3Client.d-CZ62Jztg.d.ts +0 -20357
  174. package/dist/packem_shared/S3Storage-Fx6-OSc-.js +0 -1
  175. package/dist/packem_shared/Tus-Bd_2Ki2G.js +0 -1
  176. package/dist/packem_shared/VercelBlobStorage-kNkk5Cn4.js +0 -1
  177. package/dist/packem_shared/backblaze-DEflv87m.js +0 -1
  178. package/dist/packem_shared/base-handler-core-DaggCVsq.js +0 -1
  179. package/dist/packem_shared/base-handler-fetch-DnarP64X.js +0 -1
  180. package/dist/packem_shared/base-handler-node-BTes6sql.js +0 -1
  181. package/dist/packem_shared/cloudflare-DLAeQvgD.js +0 -1
  182. package/dist/packem_shared/defaultCloudStorageFileNameValidation-yiM9GxHr.js +0 -1
  183. package/dist/packem_shared/digitalOcean-nhZUds87.js +0 -1
  184. package/dist/packem_shared/disk-storage-BvdK4bqF.js +0 -5
  185. package/dist/packem_shared/isRetryableError-DQNSZiBc.js +0 -1
  186. package/dist/packem_shared/minio-BWwgGXeE.js +0 -1
  187. package/dist/packem_shared/multipart-base-C6OjBwMS.js +0 -1
  188. package/dist/packem_shared/part-match-DqD5U7An.js +0 -1
  189. package/dist/packem_shared/rest-base-B2Dv7esY.js +0 -1
  190. package/dist/packem_shared/s3-base-storage-xHZNtsGe.js +0 -1
  191. package/dist/packem_shared/storage-m_Cxgiih.js +0 -1
  192. package/dist/packem_shared/tigris-DZoyrMNd.js +0 -1
  193. package/dist/packem_shared/validator-DK41xp8N.js +0 -1
  194. package/dist/packem_shared/wasabi-Dmce4x9s.js +0 -1
@@ -1 +1 @@
1
- import{default as a}from"../../packem_shared/GCSConfig-BQ0OpVhe.js";import{default as t}from"../../packem_shared/GCSFile-CHjX_fJk.js";import{E as C}from"../../packem_shared/gcs-meta-storage-BfJB-ejI.js";import{default as l}from"../../packem_shared/GCStorage-B8dl6TGK.js";export{a as GCSConfig,t as GCSFile,C as GCSMetaStorage,l as GCStorage};
1
+ import{default as a}from"../../packem_shared/GCSConfig-BQ0OpVhe.js";import{default as t}from"../../packem_shared/GCSFile-CDQ6IWAz.js";import{E as C}from"../../packem_shared/gcs-meta-storage-XB-UPJn6.js";import{default as l}from"../../packem_shared/GCStorage-XSBKVx90.js";export{a as GCSConfig,t as GCSFile,C as GCSMetaStorage,l as GCStorage};
@@ -0,0 +1,145 @@
1
+ import { F as File, L as LocalMetaStorageOptions, l as BaseStorageOptions, M as MetaStorage, e as FileInit, f as FilePart, g as FileQuery, a as FileReturn, B as BaseStorage } from "../../packem_shared/storage.d-Cr6f2lac.js";
2
+ import 'node:stream';
3
+ import { L as LocalMetaStorage } from "../../packem_shared/local-meta-storage.d-B5R1nswK.js";
4
+ import { drive_v3 } from '@googleapis/drive';
5
+ import 'node:crypto';
6
+ import 'node:http';
7
+ import 'lru-cache';
8
+ declare class GoogleDriveFile extends File {
9
+ driveFileId?: string;
10
+ mimeType?: string;
11
+ publicUrl?: string;
12
+ }
13
+ declare class GoogleDriveMetaStorage extends LocalMetaStorage<GoogleDriveFile> {
14
+ constructor(config?: LocalMetaStorageOptions);
15
+ }
16
+ interface GoogleDriveStorageOptions extends BaseStorageOptions {
17
+ /**
18
+ * Pre-built `@googleapis/drive` v3 client. Escape hatch for callers that
19
+ * have already wired auth (workload identity, ADC, etc.). When set, the
20
+ * adapter uses it directly and `getUploadUrl()` will throw because there's
21
+ * no stable way to recover the underlying auth handle.
22
+ */
23
+ client?: drive_v3.Drive;
24
+ /**
25
+ * Inline service-account credentials. Mints a `JWT` auth client with
26
+ * `https://www.googleapis.com/auth/drive` scope. Mutually exclusive with
27
+ * the other auth shapes.
28
+ */
29
+ credentials?: {
30
+ client_email: string;
31
+ private_key: string;
32
+ };
33
+ /**
34
+ * Shared Drive id. **Strongly recommended for service-account auth** —
35
+ * service accounts have a 15 GB personal quota; production workloads
36
+ * should target a Shared Drive with the service account added as a member.
37
+ */
38
+ driveId?: string;
39
+ /**
40
+ * LRU capacity for the in-memory virtual-key → fileId cache. Drive has
41
+ * no native key field; every read after the first round-trips a
42
+ * `files.list` to resolve the id, which the cache amortizes. Defaults to
43
+ * 1024.
44
+ */
45
+ fileIdCacheSize?: number;
46
+ /**
47
+ * Path to a service-account JSON file. Mutually exclusive with the other
48
+ * auth shapes.
49
+ */
50
+ keyFilename?: string;
51
+ /**
52
+ * Configure metafiles storage. Defaults to local tmp directory.
53
+ */
54
+ metaStorageConfig?: LocalMetaStorageOptions;
55
+ /**
56
+ * OAuth refresh token (3-legged OAuth, end-user Drive). The adapter mints
57
+ * fresh access tokens against `clientId`/`clientSecret`. Mutually
58
+ * exclusive with the other auth shapes.
59
+ */
60
+ oauth?: {
61
+ clientId: string;
62
+ clientSecret: string;
63
+ refreshToken: string;
64
+ };
65
+ /**
66
+ * When `true`, `write()` also creates an "anyone with link, reader"
67
+ * permission and `getReadUrl()` returns the Drive public download URL.
68
+ * When `false` (default), `getReadUrl()` throws — Drive has no signed-URL
69
+ * primitive.
70
+ */
71
+ publicByDefault?: boolean;
72
+ /**
73
+ * Logical "bucket root" — virtual keys live under this folder. Defaults
74
+ * to `"root"` (My Drive root) or, when `driveId` is set, the Shared
75
+ * Drive root id should be used here.
76
+ */
77
+ rootFolderId?: string;
78
+ /**
79
+ * Domain-wide delegation subject (the user to impersonate). Only honored
80
+ * with `credentials` or `keyFilename`.
81
+ */
82
+ subject?: string;
83
+ }
84
+ /**
85
+ * Google Drive storage backend.
86
+ *
87
+ * Drive is **not** a key-value store — it organizes files by `fileId`, and a
88
+ * single virtual key (e.g. `"docs/report.pdf"`) can map to multiple Drive
89
+ * files. The adapter routes by `appProperties.fsdkKey`, which it sets on
90
+ * every upload and resolves via `files.list` on every read. An LRU cache
91
+ * amortizes the resolve cost.
92
+ *
93
+ * **Auth precedence**:
94
+ * 1. `client` (pre-built `drive_v3.Drive`)
95
+ * 2. `credentials` (inline service account)
96
+ * 3. `keyFilename` (service-account JSON path)
97
+ * 4. `oauth` (refresh token + clientId/clientSecret)
98
+ * 5. Env fallback: `GOOGLE_DRIVE_CLIENT_EMAIL` + `GOOGLE_DRIVE_PRIVATE_KEY`, or
99
+ * `GOOGLE_DRIVE_KEY_FILE` (optional: `GOOGLE_DRIVE_SUBJECT` for DWD).
100
+ *
101
+ * **Limitations**:
102
+ * - `getReadUrl()` only works with `publicByDefault: true` — Drive has no
103
+ * signed-URL primitive.
104
+ * - `responseContentDisposition` is not supported.
105
+ * - `getUploadUrl()` requires explicit `credentials`/`keyFilename`/`oauth`
106
+ * (not a pre-built `client`) so we can mint access tokens for the
107
+ * resumable session.
108
+ */
109
+ declare class GoogleDriveStorage extends BaseStorage<GoogleDriveFile> {
110
+ static override readonly name: string;
111
+ override checksumTypes: string[];
112
+ protected meta: MetaStorage<GoogleDriveFile>;
113
+ private readonly authForTokens;
114
+ private readonly driveClient;
115
+ private readonly fileIdCache;
116
+ private readonly publicByDefault;
117
+ private readonly rootFolderId;
118
+ private readonly sharedDriveParams;
119
+ constructor(config: GoogleDriveStorageOptions);
120
+ override get raw(): drive_v3.Drive;
121
+ create(config: FileInit): Promise<GoogleDriveFile>;
122
+ write(part: FilePart | FileQuery | GoogleDriveFile): Promise<GoogleDriveFile>;
123
+ delete({
124
+ id
125
+ }: FileQuery): Promise<GoogleDriveFile>;
126
+ get({
127
+ id
128
+ }: FileQuery): Promise<FileReturn>;
129
+ copy(name: string, destination: string): Promise<GoogleDriveFile>;
130
+ move(name: string, destination: string): Promise<GoogleDriveFile>;
131
+ override list(limit?: number): Promise<GoogleDriveFile[]>;
132
+ override getReadUrl(key: string, options?: {
133
+ expiresIn?: number;
134
+ responseContentDisposition?: string;
135
+ responseContentType?: string;
136
+ }): Promise<string>;
137
+ override getUploadUrl(key: string, options?: {
138
+ contentLength?: number;
139
+ contentType?: string;
140
+ expiresIn?: number;
141
+ }): Promise<string>;
142
+ private resolveFileId;
143
+ private internalOnComplete;
144
+ }
145
+ export { GoogleDriveFile, GoogleDriveMetaStorage, GoogleDriveStorage, type GoogleDriveStorageOptions };
@@ -0,0 +1 @@
1
+ import{default as r}from"../../packem_shared/GoogleDriveFile-D0aGfGbL.js";import{default as t}from"../../packem_shared/GoogleDriveMetaStorage-rghGy3Fa.js";import{default as f}from"../../packem_shared/GoogleDriveStorage-DuB6glUk.js";export{r as GoogleDriveFile,t as GoogleDriveMetaStorage,f as GoogleDriveStorage};
@@ -1,6 +1,6 @@
1
- export { D as DiskStorage, a as DiskStorageWithChecksum } from "../../packem_shared/disk-storage-with-checksum.d-hEoe2ugb.js";
2
- export { L as LocalMetaStorage } from "../../packem_shared/local-meta-storage.d-Dop9RP9k.js";
3
- export { type L as LocalMetaStorageOptions } from "../../packem_shared/storage.d-BOMUJD96.js";
1
+ export { D as DiskStorage, a as DiskStorageWithChecksum } from "../../packem_shared/disk-storage-with-checksum.d-BQMXA4Wl.js";
2
+ export { L as LocalMetaStorage } from "../../packem_shared/local-meta-storage.d-B5R1nswK.js";
3
+ export { type L as LocalMetaStorageOptions } from "../../packem_shared/storage.d-Cr6f2lac.js";
4
4
  import 'node:stream';
5
5
  import 'node:crypto';
6
6
  import 'node:http';
@@ -1 +1 @@
1
- import{q as e}from"../../packem_shared/disk-storage-BvdK4bqF.js";import{default as t}from"../../packem_shared/DiskStorageWithChecksum-Bb6JX_tC.js";import{O as f}from"../../packem_shared/local-meta-storage-Bkwqi_gi.js";export{e as DiskStorage,t as DiskStorageWithChecksum,f as LocalMetaStorage};
1
+ import{f as e}from"../../packem_shared/disk-storage-CbSSPnOf.js";import{default as t}from"../../packem_shared/DiskStorageWithChecksum-CbXWpSOr.js";import{v as f}from"../../packem_shared/local-meta-storage-CT1audnK.js";export{e as DiskStorage,t as DiskStorageWithChecksum,f as LocalMetaStorage};
@@ -1,6 +1,7 @@
1
- import { F as File, L as LocalMetaStorageOptions, k as BaseStorageOptions, M as MetaStorage, b as FileInit, d as FilePart, e as FileQuery, a as FileReturn, B as BaseStorage } from "../../packem_shared/storage.d-BOMUJD96.js";
1
+ import { F as File, L as LocalMetaStorageOptions, l as BaseStorageOptions, M as MetaStorage, e as FileInit, f as FilePart, g as FileQuery, a as FileReturn, B as BaseStorage } from "../../packem_shared/storage.d-Cr6f2lac.js";
2
2
  import 'node:stream';
3
- import { L as LocalMetaStorage } from "../../packem_shared/local-meta-storage.d-Dop9RP9k.js";
3
+ import { L as LocalMetaStorage } from "../../packem_shared/local-meta-storage.d-B5R1nswK.js";
4
+ import { getStore } from '@netlify/blobs';
4
5
  import 'node:crypto';
5
6
  import 'node:http';
6
7
  import 'lru-cache';
@@ -66,6 +67,7 @@ interface NetlifyBlobStorageOptions extends BaseStorageOptions {
66
67
  declare class NetlifyBlobStorage extends BaseStorage<NetlifyBlobFile> {
67
68
  static override readonly name: string;
68
69
  override checksumTypes: string[];
70
+ override get raw(): ReturnType<typeof getStore>;
69
71
  protected meta: MetaStorage;
70
72
  private readonly storeName;
71
73
  private readonly siteID?;
@@ -1 +1 @@
1
- import{default as o}from"../../packem_shared/NetlifyBlobFile-CpzkMKng.js";import{default as a}from"../../packem_shared/NetlifyBlobMetaStorage-dD0oBLom.js";import{default as r}from"../../packem_shared/NetlifyBlobStorage-ByTwCN-h.js";export{o as NetlifyBlobFile,a as NetlifyBlobMetaStorage,r as NetlifyBlobStorage};
1
+ import{default as o}from"../../packem_shared/NetlifyBlobFile-PMZLJ8AC.js";import{default as a}from"../../packem_shared/NetlifyBlobMetaStorage-BcRFPky8.js";import{default as r}from"../../packem_shared/NetlifyBlobStorage-C4qkJv1R.js";export{o as NetlifyBlobFile,a as NetlifyBlobMetaStorage,r as NetlifyBlobStorage};
@@ -0,0 +1,192 @@
1
+ import { F as File, L as LocalMetaStorageOptions, l as BaseStorageOptions, M as MetaStorage, e as FileInit, f as FilePart, g as FileQuery, a as FileReturn, B as BaseStorage } from "../../packem_shared/storage.d-Cr6f2lac.js";
2
+ import 'node:stream';
3
+ import { L as LocalMetaStorage } from "../../packem_shared/local-meta-storage.d-B5R1nswK.js";
4
+ import { Client } from '@microsoft/microsoft-graph-client';
5
+ import 'node:crypto';
6
+ import 'node:http';
7
+ import 'lru-cache';
8
+ declare class OneDriveFile extends File {
9
+ driveItemId?: string;
10
+ eTag?: string;
11
+ webUrl?: string;
12
+ }
13
+ declare class OneDriveMetaStorage extends LocalMetaStorage<OneDriveFile> {
14
+ constructor(config?: LocalMetaStorageOptions);
15
+ }
16
+ interface OneDriveClientCredentialsAuth {
17
+ /**
18
+ * Microsoft Entra (Azure AD) application (client) ID.
19
+ */
20
+ clientId: string;
21
+ /**
22
+ * Application (client) secret.
23
+ */
24
+ clientSecret: string;
25
+ /**
26
+ * Microsoft Entra tenant ID (GUID or domain name).
27
+ */
28
+ tenantId: string;
29
+ }
30
+ interface OneDriveOAuthRefreshAuth {
31
+ /**
32
+ * Microsoft Entra application (client) ID.
33
+ */
34
+ clientId: string;
35
+ /**
36
+ * Application client secret. Required for confidential clients (default).
37
+ * Public clients may omit it if the app registration allows.
38
+ */
39
+ clientSecret?: string;
40
+ /**
41
+ * OAuth2 refresh token obtained from an interactive sign-in flow.
42
+ */
43
+ refreshToken: string;
44
+ /**
45
+ * Tenant ID — `"common"`, `"consumers"`, `"organizations"`, or a tenant
46
+ * GUID/domain. Defaults to `"common"`.
47
+ */
48
+ tenantId?: string;
49
+ }
50
+ interface OneDriveStorageOptions extends BaseStorageOptions {
51
+ /**
52
+ * Static or dynamic access token. Pass a string for a one-shot token, or
53
+ * a function returning a fresh token on each call.
54
+ */
55
+ accessToken?: string | (() => string | Promise<string>);
56
+ /**
57
+ * Pre-built `@microsoft/microsoft-graph-client` `Client`. Escape hatch for
58
+ * callers that wire up their own `AuthenticationProvider` (e.g. with
59
+ * `@azure/identity` or `@azure/msal-node`).
60
+ */
61
+ client?: Client;
62
+ /**
63
+ * Client-credentials auth — for app-only / daemon scenarios.
64
+ * Cannot be used with `/me/drive`; you must target via `driveId`,
65
+ * `siteId`, or `userId`.
66
+ */
67
+ clientCredentials?: OneDriveClientCredentialsAuth;
68
+ /**
69
+ * Timeout, in milliseconds, for polling the async-copy monitor URL.
70
+ * Defaults to 60_000 (60s).
71
+ */
72
+ copyTimeoutMs?: number;
73
+ /**
74
+ * Target drive by ID. Mutually exclusive with `siteId` and `userId`.
75
+ */
76
+ driveId?: string;
77
+ /**
78
+ * Configure metafiles storage. Defaults to local tmp directory.
79
+ */
80
+ metaStorageConfig?: LocalMetaStorageOptions;
81
+ /**
82
+ * OAuth2 refresh-token auth — for delegated user scenarios. Exchanges
83
+ * the refresh token at the Microsoft identity platform and caches the
84
+ * resulting access token until ~60s before expiry.
85
+ */
86
+ oauth?: OneDriveOAuthRefreshAuth;
87
+ /**
88
+ * When `true`, `getReadUrl` creates an anonymous shared link with
89
+ * `view` permission. Otherwise it returns the short-lived pre-authenticated
90
+ * `@microsoft.graph.downloadUrl` from the item metadata.
91
+ */
92
+ publicByDefault?: boolean;
93
+ /**
94
+ * Logical "bucket root" — virtual keys live under this folder path within
95
+ * the target drive. Must already exist; the adapter does not create
96
+ * folders. Defaults to drive root.
97
+ */
98
+ rootFolderPath?: string;
99
+ /**
100
+ * Target a SharePoint site's default drive. Mutually exclusive with
101
+ * `driveId` and `userId`.
102
+ */
103
+ siteId?: string;
104
+ /**
105
+ * Target a specific user's drive. Mutually exclusive with `driveId` and
106
+ * `siteId`. Required when using `clientCredentials` auth (Graph does not
107
+ * accept `/me/drive` for app-only tokens).
108
+ */
109
+ userId?: string;
110
+ }
111
+ /**
112
+ * OneDrive / SharePoint storage backend (Microsoft Graph).
113
+ *
114
+ * Routes virtual keys onto items under `rootFolderPath` in the target drive.
115
+ * Uploads use a single `PUT :/content` request up to 250 MB and switch to
116
+ * Microsoft Graph upload sessions above that threshold.
117
+ *
118
+ * **Auth precedence**:
119
+ * 1. `client` (pre-built `@microsoft/microsoft-graph-client` `Client`)
120
+ * 2. `accessToken` (string or `() => string | Promise&lt;string>`)
121
+ * 3. `clientCredentials` (`tenantId` + `clientId` + `clientSecret`) — app-only
122
+ * 4. `oauth` (`refreshToken` + `clientId` [+ `clientSecret`, `tenantId`]) — delegated
123
+ * 5. Env fallback: `ONEDRIVE_ACCESS_TOKEN`; or `ONEDRIVE_REFRESH_TOKEN` +
124
+ * `ONEDRIVE_CLIENT_ID` (+ optional `ONEDRIVE_CLIENT_SECRET`, `ONEDRIVE_TENANT_ID`);
125
+ * or `ONEDRIVE_CLIENT_ID` + `ONEDRIVE_CLIENT_SECRET` + `ONEDRIVE_TENANT_ID`.
126
+ *
127
+ * **Targeting**: at most one of `driveId`, `siteId`, `userId`. With no
128
+ * targeting and delegated auth, defaults to `/me/drive`. App-only auth
129
+ * (`clientCredentials`) cannot use `/me/drive` — pick a target explicitly.
130
+ *
131
+ * **Limitations**:
132
+ * - `cacheControl` is not supported.
133
+ * - `metadata` is preserved via the local metafile only; Graph does not store
134
+ * arbitrary key/value metadata on `driveItem`.
135
+ * - `getUploadUrl` returns an upload-session URL — clients should `PUT` chunks
136
+ * directly to it with `Content-Range` headers (not a PUT-with-body URL).
137
+ * - `responseContentDisposition` and `responseContentType` are not supported
138
+ * on signed download URLs (Graph downloadUrls have no overrides).
139
+ * - `write()` buffers the full part body in memory before deciding between
140
+ * simple `PUT :/content` and upload-session paths. For multi-GB transfers
141
+ * prefer `getUploadUrl()` and stream chunks directly to the returned
142
+ * upload-session URL from the client.
143
+ */
144
+ declare class OneDriveStorage extends BaseStorage<OneDriveFile> {
145
+ static override readonly name: string;
146
+ override checksumTypes: string[];
147
+ protected meta: MetaStorage<OneDriveFile>;
148
+ private readonly basePath;
149
+ private readonly client;
150
+ private readonly copyTimeoutMs;
151
+ private readonly publicByDefault;
152
+ private readonly rootFolderPath;
153
+ constructor(config: OneDriveStorageOptions);
154
+ override get raw(): Client;
155
+ create(config: FileInit): Promise<OneDriveFile>;
156
+ write(part: FilePart | FileQuery | OneDriveFile): Promise<OneDriveFile>;
157
+ delete({
158
+ id
159
+ }: FileQuery): Promise<OneDriveFile>;
160
+ get({
161
+ id
162
+ }: FileQuery): Promise<FileReturn>;
163
+ copy(name: string, destination: string): Promise<OneDriveFile>;
164
+ move(name: string, destination: string): Promise<OneDriveFile>;
165
+ override list(limit?: number): Promise<OneDriveFile[]>;
166
+ override getReadUrl(key: string, options?: {
167
+ expiresIn?: number;
168
+ responseContentDisposition?: string;
169
+ responseContentType?: string;
170
+ }): Promise<string>;
171
+ override getUploadUrl(key: string, options?: {
172
+ contentLength?: number;
173
+ contentType?: string;
174
+ expiresIn?: number;
175
+ }): Promise<string>;
176
+ private keyParts;
177
+ private itemApiPath;
178
+ private itemActionPath;
179
+ private folderListChildrenPath;
180
+ /**
181
+ * Build a `parentReference.path` for move/copy. Microsoft Graph requires
182
+ * this path to be relative to the drive, prefixed with `/drive/root:` —
183
+ * **not** with the configured base path (`/me/drive`, `/drives/{id}`, …).
184
+ */
185
+ private parentReferencePath;
186
+ private itemPathToKey;
187
+ private uploadSimple;
188
+ private uploadSession;
189
+ private pollCopyMonitor;
190
+ private internalOnComplete;
191
+ }
192
+ export { type OneDriveClientCredentialsAuth, OneDriveFile, OneDriveMetaStorage, type OneDriveOAuthRefreshAuth, OneDriveStorage, type OneDriveStorageOptions };
@@ -0,0 +1 @@
1
+ import{default as a}from"../../packem_shared/OneDriveFile-XbVVKIJh.js";import{default as o}from"../../packem_shared/OneDriveMetaStorage-B_BkGLzW.js";import{default as i}from"../../packem_shared/OneDriveStorage-Cu0cGcrh.js";export{a as OneDriveFile,o as OneDriveMetaStorage,i as OneDriveStorage};
@@ -0,0 +1,111 @@
1
+ import { F as File, L as LocalMetaStorageOptions, l as BaseStorageOptions, M as MetaStorage, e as FileInit, f as FilePart, g as FileQuery, a as FileReturn, B as BaseStorage } from "../../packem_shared/storage.d-Cr6f2lac.js";
2
+ import 'node:stream';
3
+ import { L as LocalMetaStorage } from "../../packem_shared/local-meta-storage.d-B5R1nswK.js";
4
+ import { StorageClient } from '@supabase/storage-js';
5
+ import 'node:crypto';
6
+ import 'node:http';
7
+ import 'lru-cache';
8
+ declare class SupabaseFile extends File {
9
+ bucket?: string;
10
+ path?: string;
11
+ publicUrl?: string;
12
+ }
13
+ declare class SupabaseMetaStorage extends LocalMetaStorage<SupabaseFile> {
14
+ constructor(config?: LocalMetaStorageOptions);
15
+ }
16
+ interface SupabaseStorageOptions extends BaseStorageOptions {
17
+ /**
18
+ * Storage bucket name. Created in the Supabase dashboard. The adapter
19
+ * does not create or delete buckets.
20
+ */
21
+ bucket: string;
22
+ /**
23
+ * Pre-built `StorageClient` from `@supabase/storage-js`. Mutually
24
+ * exclusive with `serviceKey` + `url`. Use this when you want to share
25
+ * a `StorageClient` instance, customize `fetch`, or pass extra headers.
26
+ */
27
+ client?: StorageClient;
28
+ /**
29
+ * Default expiry, in seconds, for `getReadUrl`. Capped at 1 week (Supabase
30
+ * maximum). Defaults to 3600 (1 hour).
31
+ */
32
+ defaultUrlExpiresIn?: number;
33
+ /**
34
+ * Override the global `fetch` (e.g. for tests, custom timeouts, retries).
35
+ * Ignored when `client` is supplied.
36
+ */
37
+ fetch?: typeof globalThis.fetch;
38
+ /**
39
+ * Configure metafiles storage. Used for TUS-style resumable upload
40
+ * bookkeeping. Defaults to {@link LocalMetaStorage} under the OS tmp
41
+ * directory.
42
+ */
43
+ metaStorageConfig?: LocalMetaStorageOptions;
44
+ /**
45
+ * Supabase service-role key (or anon key with appropriate RLS).
46
+ * Ignored when `client` is supplied. Falls back to `SUPABASE_SERVICE_ROLE_KEY`
47
+ * or `SUPABASE_KEY`.
48
+ */
49
+ serviceKey?: string;
50
+ /**
51
+ * Supabase project URL (e.g. `https://abc.supabase.co`). The adapter
52
+ * appends `/storage/v1` automatically. Ignored when `client` is supplied.
53
+ * Falls back to `SUPABASE_URL`.
54
+ */
55
+ url?: string;
56
+ }
57
+ /**
58
+ * Supabase Storage backend.
59
+ *
60
+ * Single-shot uploads only — Supabase Storage exposes a TUS endpoint but
61
+ * the JS SDK's `upload()` is HTTP `POST` with the full body. This adapter
62
+ * buffers the part stream and uploads in one request. Use `signedUploadUrl`
63
+ * for direct-from-client large transfers.
64
+ * @example
65
+ * ```ts
66
+ * import { SupabaseStorage } from "@visulima/storage/provider/supabase";
67
+ *
68
+ * const storage = new SupabaseStorage({
69
+ * url: process.env.SUPABASE_URL,
70
+ * serviceKey: process.env.SUPABASE_SERVICE_ROLE_KEY,
71
+ * bucket: "avatars",
72
+ * });
73
+ * ```
74
+ */
75
+ declare class SupabaseStorage extends BaseStorage<SupabaseFile> {
76
+ static override readonly name: string;
77
+ override checksumTypes: string[];
78
+ protected meta: MetaStorage<SupabaseFile>;
79
+ private readonly bucket;
80
+ private readonly defaultUrlExpiresIn;
81
+ private readonly storageClient;
82
+ constructor(config: SupabaseStorageOptions);
83
+ override get raw(): StorageClient;
84
+ create(config: FileInit): Promise<SupabaseFile>;
85
+ write(part: FilePart | FileQuery | SupabaseFile): Promise<SupabaseFile>;
86
+ delete({
87
+ id
88
+ }: FileQuery): Promise<SupabaseFile>;
89
+ override exists({
90
+ id
91
+ }: FileQuery): Promise<boolean>;
92
+ get({
93
+ id
94
+ }: FileQuery): Promise<FileReturn>;
95
+ copy(name: string, destination: string): Promise<SupabaseFile>;
96
+ move(name: string, destination: string): Promise<SupabaseFile>;
97
+ override list(limit?: number): Promise<SupabaseFile[]>;
98
+ override getReadUrl(key: string, options?: {
99
+ expiresIn?: number;
100
+ responseContentDisposition?: string;
101
+ responseContentType?: string;
102
+ }): Promise<string>;
103
+ override getUploadUrl(key: string, _options?: {
104
+ contentLength?: number;
105
+ contentType?: string;
106
+ expiresIn?: number;
107
+ }): Promise<string>;
108
+ private getMetaSafe;
109
+ private internalOnComplete;
110
+ }
111
+ export { SupabaseFile, SupabaseMetaStorage, SupabaseStorage, type SupabaseStorageOptions };
@@ -0,0 +1 @@
1
+ import{default as t}from"../../packem_shared/SupabaseFile-DZ1iv9gM.js";import{default as r}from"../../packem_shared/SupabaseMetaStorage-BR1UGqnj.js";import{default as p}from"../../packem_shared/SupabaseStorage-CCtMTiN5.js";export{t as SupabaseFile,r as SupabaseMetaStorage,p as SupabaseStorage};
@@ -0,0 +1,91 @@
1
+ import { UTApi } from 'uploadthing/server';
2
+ import { L as LocalMetaStorageOptions, l as BaseStorageOptions, F as File, M as MetaStorage, e as FileInit, f as FilePart, g as FileQuery, a as FileReturn, B as BaseStorage } from "../../packem_shared/storage.d-Cr6f2lac.js";
3
+ import 'node:stream';
4
+ import { L as LocalMetaStorage } from "../../packem_shared/local-meta-storage.d-B5R1nswK.js";
5
+ import 'node:crypto';
6
+ import 'node:http';
7
+ import 'lru-cache';
8
+ interface UploadThingStorageOptions extends BaseStorageOptions {
9
+ /**
10
+ * ACL applied to uploads. Drives `getReadUrl` behavior — `"public-read"`
11
+ * returns the permanent CDN URL, `"private"` mints a short-lived signed
12
+ * URL via `generateSignedURL`. Defaults to `"public-read"`.
13
+ */
14
+ acl?: "private" | "public-read";
15
+ /**
16
+ * Pre-built `UTApi` instance. Use this to share an instance, customize
17
+ * `fetch`, or inject test stubs. Mutually exclusive with `token`.
18
+ */
19
+ client?: UTApi;
20
+ /**
21
+ * Default expiry (seconds) for `getReadUrl` when `acl` is `"private"`.
22
+ * Capped at 7 days (UploadThing maximum). Defaults to 3600 (1 hour).
23
+ */
24
+ defaultUrlExpiresIn?: number;
25
+ /**
26
+ * Configure metafiles storage for resumable-upload bookkeeping.
27
+ */
28
+ metaStorageConfig?: LocalMetaStorageOptions;
29
+ /**
30
+ * UploadThing token (base64-encoded JSON: `{ apiKey, appId, regions[] }`).
31
+ * Falls back to `UPLOADTHING_TOKEN`. Ignored when `client` is supplied.
32
+ */
33
+ token?: string;
34
+ }
35
+ declare class UploadThingFile extends File {
36
+ customId?: string;
37
+ fileHash?: string;
38
+ ufsKey?: string;
39
+ url?: string;
40
+ }
41
+ declare class UploadThingMetaStorage extends LocalMetaStorage<UploadThingFile> {
42
+ constructor(config?: LocalMetaStorageOptions);
43
+ }
44
+ /**
45
+ * UploadThing storage backend.
46
+ *
47
+ * Uses `UTApi` from `uploadthing/server`. Uploads via `uploadFiles(UTFile)`,
48
+ * keyed by user-supplied `customId` so subsequent operations (delete, signed
49
+ * URL, list) round-trip on the user's key, not UploadThing's internal fileKey.
50
+ *
51
+ * **Limitations** (mirroring files-sdk):
52
+ * - No native server-side `copy` — implemented as download + re-upload.
53
+ * - `list` has no server-side prefix filter; prefix filtering happens client-
54
+ * side within a page.
55
+ * - No `responseContentDisposition` override on signed URLs.
56
+ */
57
+ declare class UploadThingStorage extends BaseStorage<UploadThingFile> {
58
+ static override readonly name: string;
59
+ override checksumTypes: string[];
60
+ protected meta: MetaStorage<UploadThingFile>;
61
+ private readonly acl;
62
+ private readonly appId;
63
+ private readonly defaultUrlExpiresIn;
64
+ private readonly utapi;
65
+ constructor(config: UploadThingStorageOptions);
66
+ override get raw(): UTApi;
67
+ create(config: FileInit): Promise<UploadThingFile>;
68
+ write(part: FilePart | FileQuery | UploadThingFile): Promise<UploadThingFile>;
69
+ delete({
70
+ id
71
+ }: FileQuery): Promise<UploadThingFile>;
72
+ get({
73
+ id
74
+ }: FileQuery): Promise<FileReturn>;
75
+ copy(name: string, destination: string): Promise<UploadThingFile>;
76
+ move(name: string, destination: string): Promise<UploadThingFile>;
77
+ override list(limit?: number): Promise<UploadThingFile[]>;
78
+ override getReadUrl(key: string, options?: {
79
+ expiresIn?: number;
80
+ responseContentDisposition?: string;
81
+ responseContentType?: string;
82
+ }): Promise<string>;
83
+ override getUploadUrl(_key: string, _options?: {
84
+ contentLength?: number;
85
+ contentType?: string;
86
+ expiresIn?: number;
87
+ }): Promise<string>;
88
+ private resolveFetchUrl;
89
+ private internalOnComplete;
90
+ }
91
+ export { UploadThingFile, UploadThingMetaStorage, UploadThingStorage, type UploadThingStorageOptions };
@@ -0,0 +1 @@
1
+ import{default as e}from"../../packem_shared/UploadThingFile-BpG9mE8K.js";import{default as r}from"../../packem_shared/UploadThingMetaStorage-DyGNyaAq.js";import{default as d}from"../../packem_shared/UploadThingStorage-B_fNzNFO.js";export{e as UploadThingFile,r as UploadThingMetaStorage,d as UploadThingStorage};
@@ -1,10 +1,17 @@
1
- import { L as LocalMetaStorageOptions, k as BaseStorageOptions, F as File, M as MetaStorage, b as FileInit, d as FilePart, e as FileQuery, a as FileReturn, B as BaseStorage } from "../../packem_shared/storage.d-BOMUJD96.js";
1
+ import { L as LocalMetaStorageOptions, l as BaseStorageOptions, F as File, M as MetaStorage, e as FileInit, f as FilePart, g as FileQuery, a as FileReturn, B as BaseStorage } from "../../packem_shared/storage.d-Cr6f2lac.js";
2
2
  import 'node:stream';
3
- import { L as LocalMetaStorage } from "../../packem_shared/local-meta-storage.d-Dop9RP9k.js";
3
+ import { L as LocalMetaStorage } from "../../packem_shared/local-meta-storage.d-B5R1nswK.js";
4
+ import { copy, del, list, put } from '@vercel/blob';
4
5
  import 'node:crypto';
5
6
  import 'node:http';
6
7
  import 'lru-cache';
7
8
  interface VercelBlobStorageOptions extends BaseStorageOptions {
9
+ /**
10
+ * Visibility for uploaded blobs. Vercel Blob currently exposes only
11
+ * `"public"` in its SDK, but this option is here so callers can pass
12
+ * through any future value without forking. Defaults to `"public"`.
13
+ */
14
+ access?: "public";
8
15
  /**
9
16
  * Configure metafiles storage
10
17
  * @example
@@ -73,9 +80,17 @@ declare class VercelBlobMetaStorage extends LocalMetaStorage {
73
80
  declare class VercelBlobStorage extends BaseStorage<VercelBlobFile> {
74
81
  static override readonly name: string;
75
82
  override checksumTypes: string[];
83
+ override get raw(): {
84
+ copy: typeof copy;
85
+ del: typeof del;
86
+ list: typeof list;
87
+ put: typeof put;
88
+ token: string;
89
+ };
76
90
  protected meta: MetaStorage;
77
91
  private readonly token;
78
92
  private readonly multipart;
93
+ private readonly access;
79
94
  constructor(config: VercelBlobStorageOptions);
80
95
  create(config: FileInit): Promise<VercelBlobFile>;
81
96
  write(part: FilePart | FileQuery | VercelBlobFile): Promise<VercelBlobFile>;
@@ -1 +1 @@
1
- import{default as r}from"../../packem_shared/VercelBlobFile-CL9MjKcY.js";import{default as a}from"../../packem_shared/VercelBlobMetaStorage-BsOTx-Su.js";import{default as f}from"../../packem_shared/VercelBlobStorage-kNkk5Cn4.js";export{r as VercelBlobFile,a as VercelBlobMetaStorage,f as VercelBlobStorage};
1
+ import{default as r}from"../../packem_shared/VercelBlobFile-Cni_1qwD.js";import{default as a}from"../../packem_shared/VercelBlobMetaStorage-Do9ZoKrl.js";import{default as f}from"../../packem_shared/VercelBlobStorage-D5zy4PPQ.js";export{r as VercelBlobFile,a as VercelBlobMetaStorage,f as VercelBlobStorage};
@@ -1,5 +1,5 @@
1
- import { F as File, a as FileReturn, B as BaseStorage } from "../packem_shared/storage.d-BOMUJD96.js";
2
- import { A as AudioTransformerConfig, g as AudioTransformResult, h as AudioResampleOptions, i as AudioChannelMixOptions, j as AudioTransformOptions, k as AudioTransformationStep, B as BaseTransformer } from "../packem_shared/types.d-BCN94sB_.js";
1
+ import { F as File, a as FileReturn, B as BaseStorage } from "../packem_shared/storage.d-Cr6f2lac.js";
2
+ import { A as AudioTransformerConfig, g as AudioTransformResult, h as AudioResampleOptions, i as AudioChannelMixOptions, j as AudioTransformOptions, k as AudioTransformationStep, B as BaseTransformer } from "../packem_shared/types.d-C8eSxqX9.js";
3
3
  import 'node:stream';
4
4
  import 'node:crypto';
5
5
  import 'node:http';