@sparkvault/sdk-js 11.2.1 → 11.2.3
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 +11 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.mjs +11 -5
- package/dist/index.mjs.map +1 -1
- package/dist/sparkvault.js +1 -1
- package/dist/sparkvault.js.map +1 -1
- package/dist/vaults/types.d.ts +4 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -748,7 +748,10 @@ interface Vault {
|
|
|
748
748
|
id: string;
|
|
749
749
|
/** Vault name */
|
|
750
750
|
name: string;
|
|
751
|
-
/**
|
|
751
|
+
/**
|
|
752
|
+
* Vault Master Key, minted by Core and returned only here, by create: 144
|
|
753
|
+
* random bits in Base62, at most 25 characters. STORE SECURELY!
|
|
754
|
+
*/
|
|
752
755
|
vmk: string;
|
|
753
756
|
/** Creation timestamp (Unix seconds) */
|
|
754
757
|
createdAt: number;
|
package/dist/index.mjs
CHANGED
|
@@ -27,8 +27,9 @@ function isTransientHttpStatus(status) {
|
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
29
|
* The upload publication contract between Forge and Core's activation, and
|
|
30
|
-
* the facts of a transfer token both services spell: its shape,
|
|
31
|
-
*
|
|
30
|
+
* the facts of a transfer token both services spell: its shape, the
|
|
31
|
+
* publication it is bound to (a content version, and the one an ingot row
|
|
32
|
+
* names), and Core's revocation of an upload's token.
|
|
32
33
|
*
|
|
33
34
|
* Forge stamps UPLOAD_PUBLICATION_PROTOCOL on every upload session it creates
|
|
34
35
|
* and on the final state it hands Core's activation (POST
|
|
@@ -11420,10 +11421,15 @@ class ProductsModule {
|
|
|
11420
11421
|
/** The prefix that marks a DVAK token apart from a Vault Master Key. */
|
|
11421
11422
|
const DVAK_TOKEN_PREFIX = 'dvak_';
|
|
11422
11423
|
|
|
11423
|
-
/**
|
|
11424
|
+
/**
|
|
11425
|
+
* The shortest and longest string, in characters, accepted as a Vault Master
|
|
11426
|
+
* Key. Every VMK is one Core minted, the Base62 of 18 random bytes (Core's
|
|
11427
|
+
* vault create, apps/api/src/vaults/create.js): 144 bits in at most 25
|
|
11428
|
+
* characters.
|
|
11429
|
+
*/
|
|
11424
11430
|
const VAULT_MASTER_KEY_LENGTH = Object.freeze({ min: 12, max: 32 });
|
|
11425
11431
|
|
|
11426
|
-
/**
|
|
11432
|
+
/** What a presented Vault Master Key must be: 12 to 32 ASCII letters and digits. */
|
|
11427
11433
|
new RegExp(
|
|
11428
11434
|
`^[A-Za-z0-9]{${VAULT_MASTER_KEY_LENGTH.min},${VAULT_MASTER_KEY_LENGTH.max}}$`
|
|
11429
11435
|
);
|
|
@@ -17426,7 +17432,7 @@ class SparkVault {
|
|
|
17426
17432
|
}
|
|
17427
17433
|
/** Get the SDK version */
|
|
17428
17434
|
static get version() {
|
|
17429
|
-
return '11.2.
|
|
17435
|
+
return '11.2.3';
|
|
17430
17436
|
}
|
|
17431
17437
|
}
|
|
17432
17438
|
if (typeof window !== 'undefined') {
|