@anuma/sdk 10.2.1 → 10.2.3

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.
@@ -11837,10 +11837,7 @@ type GetOauthConsentResponses = {
11837
11837
  };
11838
11838
  type GetOauthConsentResponse = GetOauthConsentResponses[keyof GetOauthConsentResponses];
11839
11839
  type PostOauthConsentData = {
11840
- /**
11841
- * Daily spending cap in USD
11842
- */
11843
- body?: number;
11840
+ body?: string;
11844
11841
  path?: never;
11845
11842
  query?: never;
11846
11843
  url: '/oauth/consent';
@@ -11837,10 +11837,7 @@ type GetOauthConsentResponses = {
11837
11837
  };
11838
11838
  type GetOauthConsentResponse = GetOauthConsentResponses[keyof GetOauthConsentResponses];
11839
11839
  type PostOauthConsentData = {
11840
- /**
11841
- * Daily spending cap in USD
11842
- */
11843
- body?: number;
11840
+ body?: string;
11844
11841
  path?: never;
11845
11842
  query?: never;
11846
11843
  url: '/oauth/consent';
@@ -150,6 +150,7 @@ function isWordChar(ch) {
150
150
  }
151
151
  var PiiRedactor = class {
152
152
  constructor(options = {}) {
153
+ this.disposed = false;
153
154
  /** Maps original PII value → placeholder tag. */
154
155
  this.valueToPlaceholder = /* @__PURE__ */ new Map();
155
156
  /** Maps placeholder tag → original PII value (reverse lookup for de-anonymization). */
@@ -224,6 +225,7 @@ var PiiRedactor = class {
224
225
  * The same value always gets the same placeholder within a redactor instance.
225
226
  */
226
227
  getPlaceholder(category, value) {
228
+ if (this.disposed) throw new Error("PII redactor session ended");
227
229
  const normalizedValue = value.trim();
228
230
  const existing = this.valueToPlaceholder.get(normalizedValue);
229
231
  if (existing) return existing;
@@ -599,6 +601,11 @@ var PiiRedactor = class {
599
601
  this.warnedNonText = false;
600
602
  this.warnedNerFailure = false;
601
603
  }
604
+ /** Clear the mappings and prevent new reversible mappings. */
605
+ dispose() {
606
+ this.disposed = true;
607
+ this.clear();
608
+ }
602
609
  };
603
610
  function isPiiRedactor(value) {
604
611
  return typeof value === "object" && value !== null && typeof value.redactMessages === "function" && typeof value.deAnonymize === "function";
@@ -4,7 +4,7 @@ import {
4
4
  notifyConsolidationFallback,
5
5
  requiresResponsesTransport,
6
6
  resolvePiiRedactor
7
- } from "./chunk-WRZTH4OS.mjs";
7
+ } from "./chunk-ZIN4E7MR.mjs";
8
8
  import "./chunk-GYKJOWEO.mjs";
9
9
 
10
10
  // src/lib/memory/consolidate.ts