@declaw/sdk 1.0.3 → 1.0.4

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.
package/dist/index.d.cts CHANGED
@@ -153,7 +153,6 @@ declare enum InjectionSensitivity {
153
153
  /** Actions to take when injection is detected. */
154
154
  declare enum InjectionAction {
155
155
  Block = "block",
156
- Sanitize = "sanitize",
157
156
  LogOnly = "log_only"
158
157
  }
159
158
  /** Configuration for injection defense. */
package/dist/index.d.ts CHANGED
@@ -153,7 +153,6 @@ declare enum InjectionSensitivity {
153
153
  /** Actions to take when injection is detected. */
154
154
  declare enum InjectionAction {
155
155
  Block = "block",
156
- Sanitize = "sanitize",
157
156
  LogOnly = "log_only"
158
157
  }
159
158
  /** Configuration for injection defense. */
package/dist/index.js CHANGED
@@ -404,7 +404,6 @@ var InjectionSensitivity = /* @__PURE__ */ ((InjectionSensitivity2) => {
404
404
  })(InjectionSensitivity || {});
405
405
  var InjectionAction = /* @__PURE__ */ ((InjectionAction2) => {
406
406
  InjectionAction2["Block"] = "block";
407
- InjectionAction2["Sanitize"] = "sanitize";
408
407
  InjectionAction2["LogOnly"] = "log_only";
409
408
  return InjectionAction2;
410
409
  })(InjectionAction || {});
@@ -414,7 +413,7 @@ function createInjectionDefenseConfig(opts) {
414
413
  const config = {
415
414
  enabled: opts?.enabled ?? false,
416
415
  sensitivity: opts?.sensitivity ?? "medium" /* Medium */,
417
- action: opts?.action ?? "sanitize" /* Sanitize */,
416
+ action: opts?.action ?? "log_only" /* LogOnly */,
418
417
  threshold: opts?.threshold ?? 0.8,
419
418
  domains: opts?.domains
420
419
  };
@@ -439,7 +438,7 @@ function parseInjectionDefenseConfig(data) {
439
438
  return {
440
439
  enabled: data.enabled ?? false,
441
440
  sensitivity: data.sensitivity ?? "medium" /* Medium */,
442
- action: data.action ?? "sanitize" /* Sanitize */,
441
+ action: data.action ?? "log_only" /* LogOnly */,
443
442
  threshold: data.threshold ?? 0.8,
444
443
  domains: data.domains
445
444
  };