@voltro/plugin-storage 0.71.1 → 0.72.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
@@ -125,6 +125,17 @@ export declare interface PutInput {
125
125
  readonly derivedFrom?: string;
126
126
  /** Derivative label — `'rendition'` / `'poster'` (internal). */
127
127
  readonly kind?: string;
128
+ /**
129
+ * The RESUMABLE identity of this put. Two calls with the same `operationId`
130
+ * (a retry after a network failure, two replicas completing the same job)
131
+ * resolve to ONE reference: the second finds the first's reservation and
132
+ * returns its ref, or finishes what the first left half-done. Without it a
133
+ * put is a fresh object every time — and a retried put beside its winner
134
+ * left a second reference on the same key whose bytes outlived the winner's
135
+ * delete. Any stable string the caller owns (a job id, a message id).
136
+ * Needs a bound data store; the in-memory ref store cannot hold intents.
137
+ */
138
+ readonly operationId?: string;
128
139
  }
129
140
 
130
141
  /** One derived output a `Transcoder` produces from a source asset. Each becomes
@@ -479,6 +490,8 @@ export declare interface StorageServiceShape {
479
490
  readonly abortSignal?: AbortSignal;
480
491
  readonly contentType?: string;
481
492
  readonly tenantId?: string | null;
493
+ /** The resumable identity of this ingest — see `PutInput.operationId`. */
494
+ readonly operationId?: string;
482
495
  readonly ownerId?: string | null;
483
496
  readonly visibility?: StorageVisibility;
484
497
  readonly key?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voltro/plugin-storage",
3
- "version": "0.71.1",
3
+ "version": "0.72.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.71.1",
47
- "@voltro/env": "0.71.1",
48
- "@voltro/protocol": "0.71.1"
46
+ "@voltro/database": "0.72.0",
47
+ "@voltro/env": "0.72.0",
48
+ "@voltro/protocol": "0.72.0"
49
49
  },
50
50
  "optionalDependencies": {
51
51
  "@aws-sdk/client-s3": "^3.1126.0",