@sparkvault/sdk-js 10.0.0 → 10.0.1
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/index.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/dist/ingots/types.d.ts +6 -0
- package/dist/sparkvault.js +1 -1
- package/dist/sparkvault.js.map +1 -1
- package/package.json +1 -1
package/dist/ingots/types.d.ts
CHANGED
|
@@ -29,6 +29,8 @@ export interface Ingot {
|
|
|
29
29
|
* or null when the uploader did not supply one.
|
|
30
30
|
*/
|
|
31
31
|
contentHmac: string | null;
|
|
32
|
+
/** Opaque published-content revision; null for legacy/unpublished content. */
|
|
33
|
+
contentVersion: string | null;
|
|
32
34
|
}
|
|
33
35
|
/** The discrete primitive returned by createUpload — a Forge TUS session. */
|
|
34
36
|
export interface IngotUpload {
|
|
@@ -58,6 +60,8 @@ export interface CreatedIngot {
|
|
|
58
60
|
}
|
|
59
61
|
/** The discrete primitive returned by createDownloadLink. */
|
|
60
62
|
export interface IngotDownloadLink {
|
|
63
|
+
/** Opaque published-content revision; null for legacy content. */
|
|
64
|
+
contentVersion: string | null;
|
|
61
65
|
/** Short-lived signed Forge download URL */
|
|
62
66
|
downloadUrl: string;
|
|
63
67
|
/** Ingot ID */
|
|
@@ -236,6 +240,7 @@ export interface IngotWire {
|
|
|
236
240
|
created_at?: number;
|
|
237
241
|
folder_id?: string | null;
|
|
238
242
|
content_hmac?: string | null;
|
|
243
|
+
content_version?: string | null;
|
|
239
244
|
}
|
|
240
245
|
/** One hash-check hit: this HMAC exists on an active ingot in the vault. */
|
|
241
246
|
export interface HashCheckMatch {
|
|
@@ -260,6 +265,7 @@ export interface ListIngotsResponse {
|
|
|
260
265
|
next_cursor?: string;
|
|
261
266
|
}
|
|
262
267
|
export interface DownloadIngotResponse {
|
|
268
|
+
content_version?: string | null;
|
|
263
269
|
download_url: string;
|
|
264
270
|
ingot_id: string;
|
|
265
271
|
name: string;
|