@voltro/plugin-storage 0.46.0 → 0.47.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/types.d.ts CHANGED
@@ -194,6 +194,17 @@ export declare type StorageGuard = (ctx: {
194
194
  * access policy.
195
195
  */
196
196
  export declare interface StorageProvider {
197
+ /**
198
+ * Where a FILESYSTEM provider writes. Absent for every other provider.
199
+ *
200
+ * It exists so a caller can ask a question this interface otherwise cannot
201
+ * answer: does what I write here survive the process? A rollback capture
202
+ * written for a pod that then dies is worthless, and `filesystem` is the one
203
+ * provider that can be either — a mounted volume or an ephemeral container
204
+ * directory. A deployment pointed this out: their check for "storage is
205
+ * configured" passed on a `/tmp` path with no volume behind it.
206
+ */
207
+ readonly root?: string;
197
208
  readonly name: string;
198
209
  /** True when `getUrl` returns a real presigned URL (s3/minio). When
199
210
  * false the service serves bytes via the `/_voltro/storage/:id`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voltro/plugin-storage",
3
- "version": "0.46.0",
3
+ "version": "0.47.0",
4
4
  "description": "File-storage plugin — one StorageProvider contract, switchable backends (S3 / MinIO / Azure / filesystem / memory / database). Public (CDN-direct) + private (access policy + per-object grants) objects, upload constraints, virus-scan hook, on-the-fly image transforms.",
5
5
  "keywords": [
6
6
  "voltro",
@@ -43,9 +43,9 @@
43
43
  "node": ">=24.0.0"
44
44
  },
45
45
  "dependencies": {
46
- "@voltro/database": "0.46.0",
47
- "@voltro/env": "0.46.0",
48
- "@voltro/protocol": "0.46.0"
46
+ "@voltro/database": "0.47.0",
47
+ "@voltro/env": "0.47.0",
48
+ "@voltro/protocol": "0.47.0"
49
49
  },
50
50
  "optionalDependencies": {
51
51
  "@aws-sdk/client-s3": "^3.1107.0",