@sparkvault/sdk-js 15.11.5 → 15.11.6

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
@@ -453,7 +453,12 @@ declare class IdentityModule {
453
453
  *
454
454
  * @example
455
455
  * const result = await sv.products.identity.signIn();
456
- * console.log(result.token, result.identity);
456
+ * // Your backend verifies the token before it grants access; never log it.
457
+ * await fetch('/api/auth/login', {
458
+ * method: 'POST',
459
+ * headers: { 'Content-Type': 'application/json' },
460
+ * body: JSON.stringify({ token: result.token }),
461
+ * });
457
462
  */
458
463
  signIn(options?: SignInOptions): Promise<SignInResult>;
459
464
  /**
@@ -4674,7 +4679,9 @@ declare class VaultsModule {
4674
4679
  *
4675
4680
  * @example
4676
4681
  * const vault = await sv.vaults.create({ name: 'My Vault' });
4677
- * console.log('Save this VMK:', vault.vmk);
4682
+ * // Returned once and never again: hand the VMK to the person who keeps it,
4683
+ * // or to your own secret store. Never log it.
4684
+ * await yourSecretStore.put(`vmk/${vault.id}`, vault.vmk);
4678
4685
  */
4679
4686
  create(options: CreateVaultOptions): Promise<Vault>;
4680
4687
  /**
@@ -4687,7 +4694,9 @@ declare class VaultsModule {
4687
4694
  * @example
4688
4695
  * const unsealed = await sv.vaults.unseal('vlt_abc', vmk);
4689
4696
  * const delegated = await sv.vaults.unseal('vlt_abc', 'dvak_...');
4690
- * console.log('Token:', unsealed.vatToken);
4697
+ * // The unsealed vault carries its VAT: hand it to the ingot and folder
4698
+ * // calls, never to a log.
4699
+ * const page = await sv.ingots.list(unsealed);
4691
4700
  */
4692
4701
  unseal(vaultId: string, key: string, options?: UnsealVaultOptions): Promise<UnsealedVault>;
4693
4702
  /**
package/dist/index.mjs CHANGED
@@ -10861,7 +10861,12 @@ class IdentityModule {
10861
10861
  *
10862
10862
  * @example
10863
10863
  * const result = await sv.products.identity.signIn();
10864
- * console.log(result.token, result.identity);
10864
+ * // Your backend verifies the token before it grants access; never log it.
10865
+ * await fetch('/api/auth/login', {
10866
+ * method: 'POST',
10867
+ * headers: { 'Content-Type': 'application/json' },
10868
+ * body: JSON.stringify({ token: result.token }),
10869
+ * });
10865
10870
  */
10866
10871
  async signIn(options = {}) {
10867
10872
  return this.runFlow(options);
@@ -24948,7 +24953,9 @@ class VaultsModule {
24948
24953
  *
24949
24954
  * @example
24950
24955
  * const vault = await sv.vaults.create({ name: 'My Vault' });
24951
- * console.log('Save this VMK:', vault.vmk);
24956
+ * // Returned once and never again: hand the VMK to the person who keeps it,
24957
+ * // or to your own secret store. Never log it.
24958
+ * await yourSecretStore.put(`vmk/${vault.id}`, vault.vmk);
24952
24959
  */
24953
24960
  async create(options) {
24954
24961
  this.validateCreateOptions(options);
@@ -24972,7 +24979,9 @@ class VaultsModule {
24972
24979
  * @example
24973
24980
  * const unsealed = await sv.vaults.unseal('vlt_abc', vmk);
24974
24981
  * const delegated = await sv.vaults.unseal('vlt_abc', 'dvak_...');
24975
- * console.log('Token:', unsealed.vatToken);
24982
+ * // The unsealed vault carries its VAT: hand it to the ingot and folder
24983
+ * // calls, never to a log.
24984
+ * const page = await sv.ingots.list(unsealed);
24976
24985
  */
24977
24986
  async unseal(vaultId, key, options = {}) {
24978
24987
  const id = requireResourceId(vaultId, 'vaultId');
@@ -26169,7 +26178,7 @@ class SparkVault {
26169
26178
  }
26170
26179
  /** Get the SDK version */
26171
26180
  static get version() {
26172
- return '15.11.5';
26181
+ return '15.11.6';
26173
26182
  }
26174
26183
  }
26175
26184
  if (typeof window !== 'undefined') {