@sparkvault/sdk-js 8.11.1 → 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
  }