@sparkvault/sdk-js 8.11.0 → 8.11.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.
@@ -45,9 +45,9 @@ class PlanRequiredError extends SparkVaultError {
45
45
  }
46
46
  }
47
47
  /**
48
- * Quota exceeded gate (402 QUOTA_EXCEEDED) — a pooled-capacity or seat limit is
49
- * exhausted. `resource` identifies which pool so callers can branch on the CTA
50
- * (add a capacity block for storage/bandwidth, free a seat for seats).
48
+ * Quota exceeded gate (402 QUOTA_EXCEEDED) — a pooled-capacity limit is
49
+ * exhausted. `resource` identifies which pool so callers can point the CTA at
50
+ * the right capacity block.
51
51
  */
52
52
  class QuotaExceededError extends SparkVaultError {
53
53
  constructor(message, details) {
@@ -55,12 +55,7 @@ class QuotaExceededError extends SparkVaultError {
55
55
  this.name = 'QuotaExceededError';
56
56
  const resource = details?.resource;
57
57
  this.resource =
58
- resource === 'storage' ||
59
- resource === 'bandwidth' ||
60
- resource === 'seats' ||
61
- resource === 'identity'
62
- ? resource
63
- : undefined;
58
+ resource === 'storage' || resource === 'bandwidth' ? resource : undefined;
64
59
  Object.setPrototypeOf(this, QuotaExceededError.prototype);
65
60
  }
66
61
  }
@@ -691,7 +686,7 @@ class ExpirationTimer {
691
686
  /**
692
687
  * Base64URL Encoding/Decoding Utilities
693
688
  *
694
- * Centralized implementation per CLAUDE.md DRY enforcement.
689
+ * Centralized implementation (DRY).
695
690
  * Used by Identity (WebAuthn) and Vaults modules.
696
691
  */
697
692
  /**
@@ -9355,7 +9350,7 @@ class UploadApi extends SparkVaultApi {
9355
9350
  * Upload a file to Forge over the TUS resumable protocol (v1.0.0).
9356
9351
  *
9357
9352
  * The single canonical browser transfer path — the upload widget and the
9358
- * authenticated `ingots.upload` flow both go through here (CLAUDE.md: one
9353
+ * authenticated `ingots.upload` flow both go through here (one canonical
9359
9354
  * transfer path). Creates the session, PATCHes chunks sized by the server's
9360
9355
  * `X-Chunk-Size` (50MB default, which keeps every request under CDN body
9361
9356
  * caps such as Cloudflare's 100MB), validates every server-reported offset,