@sparkvault/sdk-js 15.9.1 → 15.10.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/README.md +14 -2
- package/dist/index.cjs +163 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +51 -16
- package/dist/index.mjs +163 -22
- package/dist/index.mjs.map +1 -1
- package/dist/ingots/history.d.ts +4 -0
- package/dist/ingots/index.d.ts +8 -2
- package/dist/ingots/types.d.ts +46 -0
- package/dist/products/structured-ingots/types.d.ts +3 -10
- package/dist/sparkvault.js +1 -1
- package/dist/sparkvault.js.map +1 -1
- package/dist/vaults/index.d.ts +10 -3
- package/dist/vaults/types.d.ts +8 -2
- package/package.json +1 -1
package/dist/vaults/index.d.ts
CHANGED
|
@@ -97,10 +97,17 @@ export declare class VaultsModule {
|
|
|
97
97
|
*/
|
|
98
98
|
updateResealSettings(vaultId: string, settings: VaultResealSettings): Promise<VaultResealSettingsResult>;
|
|
99
99
|
/**
|
|
100
|
-
* Retain this many previous versions of each structured object (0–50
|
|
101
|
-
* Interactive company administrators only. Applies on each
|
|
102
|
-
* successful change; retained versions count toward storage usage.
|
|
100
|
+
* Retain this many previous versions of each file or structured object (0–50,
|
|
101
|
+
* default 0). Interactive company administrators only. Applies on each ingot's
|
|
102
|
+
* next successful content change; retained versions count toward storage usage.
|
|
103
103
|
*/
|
|
104
|
+
updateVersionHistory(vaultId: string, settings: {
|
|
105
|
+
versionLimit: number;
|
|
106
|
+
}): Promise<{
|
|
107
|
+
vaultId: string;
|
|
108
|
+
versionLimit: number;
|
|
109
|
+
}>;
|
|
110
|
+
/** @deprecated Use updateVersionHistory; retention applies to files and structured objects. */
|
|
104
111
|
updateStructuredIngotSettings(vaultId: string, settings: {
|
|
105
112
|
versionLimit: number;
|
|
106
113
|
}): Promise<{
|
package/dist/vaults/types.d.ts
CHANGED
|
@@ -122,7 +122,9 @@ export interface VaultSummary extends VaultLifecycle {
|
|
|
122
122
|
ingotCount: number;
|
|
123
123
|
/** Total storage used in bytes */
|
|
124
124
|
storageBytes: number;
|
|
125
|
-
/** Previous versions retained per structured object; absent on older servers. */
|
|
125
|
+
/** Previous versions retained per file or structured object (0–50); absent on older servers. */
|
|
126
|
+
ingotVersionLimit?: number;
|
|
127
|
+
/** @deprecated Use ingotVersionLimit. */
|
|
126
128
|
structuredIngotVersionLimit?: number;
|
|
127
129
|
/** Whether this vault uses the Structured Ingots browser, including when empty. */
|
|
128
130
|
structuredIngotsEnabled?: boolean;
|
|
@@ -153,7 +155,9 @@ export interface VaultDetail extends VaultLifecycle {
|
|
|
153
155
|
ingotCount: number;
|
|
154
156
|
/** Total storage used in bytes */
|
|
155
157
|
storageBytes: number;
|
|
156
|
-
/** Previous versions retained per structured object, in addition to current content. */
|
|
158
|
+
/** Previous versions retained per file or structured object, in addition to current content (default 0). */
|
|
159
|
+
ingotVersionLimit?: number;
|
|
160
|
+
/** @deprecated Use ingotVersionLimit. */
|
|
157
161
|
structuredIngotVersionLimit?: number;
|
|
158
162
|
/** Whether this vault is enabled for Structured Ingots, independent of record count. */
|
|
159
163
|
structuredIngotsEnabled?: boolean;
|
|
@@ -297,6 +301,7 @@ export interface ListVaultsResponse {
|
|
|
297
301
|
created_at: number;
|
|
298
302
|
ingot_count: number;
|
|
299
303
|
storage_bytes: number;
|
|
304
|
+
ingot_version_limit?: number;
|
|
300
305
|
structured_ingot_version_limit?: number;
|
|
301
306
|
structured_ingots_enabled?: boolean;
|
|
302
307
|
})[];
|
|
@@ -308,6 +313,7 @@ export interface VaultDetailResponse extends VaultLifecycleResponse {
|
|
|
308
313
|
description?: string | null;
|
|
309
314
|
ingot_count?: number;
|
|
310
315
|
storage_bytes?: number;
|
|
316
|
+
ingot_version_limit?: number;
|
|
311
317
|
structured_ingot_version_limit?: number;
|
|
312
318
|
structured_ingots_enabled?: boolean;
|
|
313
319
|
created_at: number;
|