@sparkvault/sdk-js 11.2.2 → 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.d.ts CHANGED
@@ -748,7 +748,10 @@ interface Vault {
748
748
  id: string;
749
749
  /** Vault name */
750
750
  name: string;
751
- /** Vault Master Key (24 chars) - STORE SECURELY! */
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
@@ -11421,10 +11421,15 @@ class ProductsModule {
11421
11421
  /** The prefix that marks a DVAK token apart from a Vault Master Key. */
11422
11422
  const DVAK_TOKEN_PREFIX = 'dvak_';
11423
11423
 
11424
- /** The shortest and longest Vault Master Key, in characters. */
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
+ */
11425
11430
  const VAULT_MASTER_KEY_LENGTH = Object.freeze({ min: 12, max: 32 });
11426
11431
 
11427
- /** A Vault Master Key: 12 to 32 ASCII letters and digits. */
11432
+ /** What a presented Vault Master Key must be: 12 to 32 ASCII letters and digits. */
11428
11433
  new RegExp(
11429
11434
  `^[A-Za-z0-9]{${VAULT_MASTER_KEY_LENGTH.min},${VAULT_MASTER_KEY_LENGTH.max}}$`
11430
11435
  );
@@ -17427,7 +17432,7 @@ class SparkVault {
17427
17432
  }
17428
17433
  /** Get the SDK version */
17429
17434
  static get version() {
17430
- return '11.2.2';
17435
+ return '11.2.3';
17431
17436
  }
17432
17437
  }
17433
17438
  if (typeof window !== 'undefined') {