@sparkvault/sdk-js 19.1.0 → 19.1.2

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.
@@ -598,7 +598,7 @@ interface VaultSharingOptions {
598
598
  interface AccessLogRetention {
599
599
  /** Vault ID */
600
600
  vaultId: string;
601
- /** Retention window in seconds */
601
+ /** Seconds for new ingot audit entries. Zero turns logging off. The default is seven days. */
602
602
  retentionSeconds: number;
603
603
  }
604
604
  /** Vault upload-channel configuration. */
@@ -4553,17 +4553,19 @@ declare class VaultsModule {
4553
4553
  */
4554
4554
  updateSharingConfig(vaultId: string, config: VaultSharingOptions, vault?: UnsealedVault): Promise<VaultSharingConfig>;
4555
4555
  /**
4556
- * Get a vault's access-log retention window.
4556
+ * Get the effective window for new ingot audit entries, including private
4557
+ * Structured Ingot reads. An unset window defaults to seven days.
4557
4558
  *
4558
4559
  * @example
4559
4560
  * const { retentionSeconds } = await sv.vaults.getAccessLogRetention('vlt_abc');
4560
4561
  */
4561
4562
  getAccessLogRetention(vaultId: string): Promise<AccessLogRetention>;
4562
4563
  /**
4563
- * Update a vault's access-log retention window.
4564
+ * Set retention for new ingot audit entries to Off (0), 1, 7, 30, 60 or 90 days,
4565
+ * supplied in seconds. Existing entries keep their expiry, with a 90-day lookback.
4564
4566
  *
4565
4567
  * @example
4566
- * await sv.vaults.updateAccessLogRetention('vlt_abc', 7776000);
4568
+ * await sv.vaults.updateAccessLogRetention('vlt_abc', 7 * 86400);
4567
4569
  */
4568
4570
  updateAccessLogRetention(vaultId: string, seconds: number): Promise<AccessLogRetention>;
4569
4571
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sparkvault/sdk-js",
3
- "version": "19.1.0",
3
+ "version": "19.1.2",
4
4
  "description": "SparkVault JavaScript SDK - Identity, Secure Help Desk, Notifications and Encrypted Vaults",
5
5
  "type": "module",
6
6
  "exports": {