@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.
@@ -1,5 +1,5 @@
1
- import { $ as queryString, G as exchange, k as SparkVaultError, a as AuthorizationError, o as UsageCreditFundingReviewError, p as UsageCreditsExhaustedError, Q as QuotaExceededError, P as PlanRequiredError, n as UnauthorizedError, A as AuthenticationError, s as ValidationError, N as NetworkError, l as TimeoutError, a0 as readApiFailure, W as isResourceIdOf, u as apiPath, a1 as requireResourceId, i as SPARKVAULT_NOTIFY_SEND_DOMAIN, g as SPARKVAULT_HELP_DESK_DOMAIN, S as SPARKVAULT_FORGE_HOST, y as classifyTransferResponse, T as TRANSFER_VERDICT, Y as isSparkVaultOwnedHostname, C as createTransferBudget, a7 as transferJitterKey, a6 as retryDelayMs, V as VAULT_DELETION_SCHEDULED, a2 as requireVaultId, m as UPLOAD_REFUSAL_CODES, r as VAULT_DELETION_SCHEDULED_MESSAGE, j as SparkVaultApi, O as isResourceId, H as HEAD_AND_RECEIPT_TIMEOUT_MS, a5 as resumeOffsetProblem, f as RESUME_OFFSET_PROBLEM, U as UPLOAD_FINAL_REFUSAL_CODES, K as isAllowedTransferHost, t as apiFailureOf, R as RECEIVED_STILL_SAVING, J as givenUpUploadId, q as UserCancelledError, h as SPARKVAULT_HELP_DESK_SIGN_IN_HOST, e as PopupSeveredError, D as DS, a4 as resolveTarget, c as InlineShell, B as createSecuredByFooter, z as createLiveRegion, M as ModalShell, a9 as withAlpha, v as attachClickHandler, I as IdentityModule, _ as pickLogo, F as escapeHtml, w as base64EncodeUtf8, x as base64urlToBytes, L as isEntropyFormat, E as ENTROPY_FORMATS, Z as maxBytesFor, a8 as validateConfig, a3 as resolveConfig, X as isSignInRecoveryPending } from './chunks/index-CgR08uMG.mjs';
2
- export { b as IdentityProviderError, d as PopupBlockedError } from './chunks/index-CgR08uMG.mjs';
1
+ import { $ as queryString, G as exchange, k as SparkVaultError, a as AuthorizationError, o as UsageCreditFundingReviewError, p as UsageCreditsExhaustedError, Q as QuotaExceededError, P as PlanRequiredError, n as UnauthorizedError, A as AuthenticationError, s as ValidationError, N as NetworkError, l as TimeoutError, a0 as readApiFailure, W as isResourceIdOf, u as apiPath, a1 as requireResourceId, i as SPARKVAULT_NOTIFY_SEND_DOMAIN, g as SPARKVAULT_HELP_DESK_DOMAIN, S as SPARKVAULT_FORGE_HOST, y as classifyTransferResponse, T as TRANSFER_VERDICT, Y as isSparkVaultOwnedHostname, C as createTransferBudget, a7 as transferJitterKey, a6 as retryDelayMs, V as VAULT_DELETION_SCHEDULED, a2 as requireVaultId, m as UPLOAD_REFUSAL_CODES, r as VAULT_DELETION_SCHEDULED_MESSAGE, j as SparkVaultApi, O as isResourceId, H as HEAD_AND_RECEIPT_TIMEOUT_MS, a5 as resumeOffsetProblem, f as RESUME_OFFSET_PROBLEM, U as UPLOAD_FINAL_REFUSAL_CODES, K as isAllowedTransferHost, t as apiFailureOf, R as RECEIVED_STILL_SAVING, J as givenUpUploadId, q as UserCancelledError, h as SPARKVAULT_HELP_DESK_SIGN_IN_HOST, e as PopupSeveredError, D as DS, a4 as resolveTarget, c as InlineShell, B as createSecuredByFooter, z as createLiveRegion, M as ModalShell, a9 as withAlpha, v as attachClickHandler, I as IdentityModule, _ as pickLogo, F as escapeHtml, w as base64EncodeUtf8, x as base64urlToBytes, L as isEntropyFormat, E as ENTROPY_FORMATS, Z as maxBytesFor, a8 as validateConfig, a3 as resolveConfig, X as isSignInRecoveryPending } from './chunks/index-C97091lF.mjs';
2
+ export { b as IdentityProviderError, d as PopupBlockedError } from './chunks/index-C97091lF.mjs';
3
3
 
4
4
  /** Vault settings for resealing, and the server's timing of a held session. */
5
5
  const VAULT_RESEAL_LIMITS = Object.freeze({ minSeconds: 60, maxSeconds: 86400 });
@@ -7270,10 +7270,9 @@ function acceptedKindsCopy(kinds) {
7270
7270
  /**
7271
7271
  * The files a ticket accepts, in the one phrase every surface names them by,
7272
7272
  * built from the policy's own list (ACCEPTED_ATTACHMENT_KINDS): the help desk
7273
- * composer's refusal dialog reads it, and so do the API reference
7274
- * (apps/api/openapi/overlay.mjs) and the help desk's page on the site
7275
- * (apps/www/_data/helpDeskAttachments.js). A refused file's sentence names
7276
- * only that its type can't be attached.
7273
+ * composer's refusal dialog reads it, and so does the API reference
7274
+ * (apps/api/openapi/overlay.mjs). A refused file's sentence names only that
7275
+ * its type can't be attached.
7277
7276
  */
7278
7277
  const ACCEPTED_ATTACHMENTS_COPY = acceptedKindsCopy(ACCEPTED_ATTACHMENT_KINDS);
7279
7278
 
@@ -19144,7 +19143,8 @@ class VaultsModule {
19144
19143
  return mapSharingConfig(response.data);
19145
19144
  }
19146
19145
  /**
19147
- * Get a vault's access-log retention window.
19146
+ * Get the effective window for new ingot audit entries, including private
19147
+ * Structured Ingot reads. An unset window defaults to seven days.
19148
19148
  *
19149
19149
  * @example
19150
19150
  * const { retentionSeconds } = await sv.vaults.getAccessLogRetention('vlt_abc');
@@ -19158,10 +19158,11 @@ class VaultsModule {
19158
19158
  };
19159
19159
  }
19160
19160
  /**
19161
- * Update a vault's access-log retention window.
19161
+ * Set retention for new ingot audit entries to Off (0), 1, 7, 30, 60 or 90 days,
19162
+ * supplied in seconds. Existing entries keep their expiry, with a 90-day lookback.
19162
19163
  *
19163
19164
  * @example
19164
- * await sv.vaults.updateAccessLogRetention('vlt_abc', 7776000);
19165
+ * await sv.vaults.updateAccessLogRetention('vlt_abc', 7 * 86400);
19165
19166
  */
19166
19167
  async updateAccessLogRetention(vaultId, seconds) {
19167
19168
  const id = requireResourceId(vaultId, 'vaultId');
@@ -20070,7 +20071,7 @@ class SparkVault {
20070
20071
  }
20071
20072
  /** Get the SDK version */
20072
20073
  static get version() {
20073
- return '19.1.0';
20074
+ return '19.1.2';
20074
20075
  }
20075
20076
  }
20076
20077
  if (typeof window !== 'undefined') {