@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 +13 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +12 -3
- package/dist/index.mjs +13 -4
- package/dist/index.mjs.map +1 -1
- package/dist/products/identity/index.d.ts +6 -1
- package/dist/sparkvault.js +1 -1
- package/dist/sparkvault.js.map +1 -1
- package/dist/vaults/index.d.ts +6 -2
- package/package.json +1 -1
package/dist/vaults/index.d.ts
CHANGED
|
@@ -46,7 +46,9 @@ export declare class VaultsModule {
|
|
|
46
46
|
*
|
|
47
47
|
* @example
|
|
48
48
|
* const vault = await sv.vaults.create({ name: 'My Vault' });
|
|
49
|
-
*
|
|
49
|
+
* // Returned once and never again: hand the VMK to the person who keeps it,
|
|
50
|
+
* // or to your own secret store. Never log it.
|
|
51
|
+
* await yourSecretStore.put(`vmk/${vault.id}`, vault.vmk);
|
|
50
52
|
*/
|
|
51
53
|
create(options: CreateVaultOptions): Promise<Vault>;
|
|
52
54
|
/**
|
|
@@ -59,7 +61,9 @@ export declare class VaultsModule {
|
|
|
59
61
|
* @example
|
|
60
62
|
* const unsealed = await sv.vaults.unseal('vlt_abc', vmk);
|
|
61
63
|
* const delegated = await sv.vaults.unseal('vlt_abc', 'dvak_...');
|
|
62
|
-
*
|
|
64
|
+
* // The unsealed vault carries its VAT: hand it to the ingot and folder
|
|
65
|
+
* // calls, never to a log.
|
|
66
|
+
* const page = await sv.ingots.list(unsealed);
|
|
63
67
|
*/
|
|
64
68
|
unseal(vaultId: string, key: string, options?: UnsealVaultOptions): Promise<UnsealedVault>;
|
|
65
69
|
/**
|