@sparkvault/sdk-js 15.11.5 → 15.11.7

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 CHANGED
@@ -10865,7 +10865,12 @@ class IdentityModule {
10865
10865
  *
10866
10866
  * @example
10867
10867
  * const result = await sv.products.identity.signIn();
10868
- * console.log(result.token, result.identity);
10868
+ * // Your backend verifies the token before it grants access; never log it.
10869
+ * await fetch('/api/auth/login', {
10870
+ * method: 'POST',
10871
+ * headers: { 'Content-Type': 'application/json' },
10872
+ * body: JSON.stringify({ token: result.token }),
10873
+ * });
10869
10874
  */
10870
10875
  async signIn(options = {}) {
10871
10876
  return this.runFlow(options);
@@ -24952,7 +24957,9 @@ class VaultsModule {
24952
24957
  *
24953
24958
  * @example
24954
24959
  * const vault = await sv.vaults.create({ name: 'My Vault' });
24955
- * console.log('Save this VMK:', vault.vmk);
24960
+ * // Returned once and never again: hand the VMK to the person who keeps it,
24961
+ * // or to your own secret store. Never log it.
24962
+ * await yourSecretStore.put(`vmk/${vault.id}`, vault.vmk);
24956
24963
  */
24957
24964
  async create(options) {
24958
24965
  this.validateCreateOptions(options);
@@ -24976,7 +24983,9 @@ class VaultsModule {
24976
24983
  * @example
24977
24984
  * const unsealed = await sv.vaults.unseal('vlt_abc', vmk);
24978
24985
  * const delegated = await sv.vaults.unseal('vlt_abc', 'dvak_...');
24979
- * console.log('Token:', unsealed.vatToken);
24986
+ * // The unsealed vault carries its VAT: hand it to the ingot and folder
24987
+ * // calls, never to a log.
24988
+ * const page = await sv.ingots.list(unsealed);
24980
24989
  */
24981
24990
  async unseal(vaultId, key, options = {}) {
24982
24991
  const id = requireResourceId(vaultId, 'vaultId');
@@ -26173,7 +26182,7 @@ class SparkVault {
26173
26182
  }
26174
26183
  /** Get the SDK version */
26175
26184
  static get version() {
26176
- return '15.11.5';
26185
+ return '15.11.7';
26177
26186
  }
26178
26187
  }
26179
26188
  if (typeof window !== 'undefined') {