scordi-extension 1.15.15 → 1.15.17

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/sdk/index.js CHANGED
@@ -2829,7 +2829,7 @@ const aa = (r, e = {
2829
2829
  })),
2830
2830
  bigint: ((r) => Pt.create({ ...r, coerce: !0 })),
2831
2831
  date: ((r) => Ut.create({ ...r, coerce: !0 }))
2832
- }, Ia = te, T = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2832
+ }, Ia = te, E = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2833
2833
  __proto__: null,
2834
2834
  BRAND: ra,
2835
2835
  DIRTY: qt,
@@ -2953,24 +2953,24 @@ const aa = (r, e = {
2953
2953
  waitSelectorTimeout: Lt().optional(),
2954
2954
  multiple: Tt().optional()
2955
2955
  })
2956
- }), ja = T.object({
2957
- type: T.literal("object"),
2958
- shape: T.record(T.string(), T.any())
2959
- }), Fa = T.object({
2960
- type: T.literal("array"),
2961
- items: T.any()
2962
- }), Ua = T.discriminatedUnion("type", [
2956
+ }), ja = E.object({
2957
+ type: E.literal("object"),
2958
+ shape: E.record(E.string(), E.any())
2959
+ }), Fa = E.object({
2960
+ type: E.literal("array"),
2961
+ items: E.any()
2962
+ }), Ua = E.discriminatedUnion("type", [
2963
2963
  ja,
2964
2964
  Fa
2965
- ]), an = T.object({
2966
- name: T.literal("ai-parse-data"),
2967
- sourceData: T.any().optional(),
2965
+ ]), an = E.object({
2966
+ name: E.literal("ai-parse-data"),
2967
+ sourceData: E.any().optional(),
2968
2968
  schemaDefinition: Ua,
2969
- prompt: T.string().optional(),
2970
- model: T.string().optional(),
2971
- apiKey: T.string().min(1, "AI API key is required"),
2969
+ prompt: E.string().optional(),
2970
+ model: E.string().optional(),
2971
+ apiKey: E.string().min(1, "AI API key is required"),
2972
2972
  // 필수
2973
- provider: T.enum(["openai", "anthropic"])
2973
+ provider: E.enum(["openai", "anthropic"])
2974
2974
  // 필수
2975
2975
  });
2976
2976
  function $a(r) {
@@ -3256,17 +3256,17 @@ function qa(r, e) {
3256
3256
  return e === "xpath" ? new Wa() : r.includes(">>") ? new za() : r.includes("|>") ? new Za() : new Ba();
3257
3257
  }
3258
3258
  const sn = wt.extend({
3259
- name: T.literal("get-text"),
3260
- includeTags: T.boolean().optional(),
3261
- useTextContent: T.boolean().optional(),
3262
- regex: T.string().optional(),
3263
- prefixText: T.string().optional(),
3264
- suffixText: T.string().optional(),
3265
- filterEmpty: T.boolean().optional(),
3266
- scrollToCollect: T.boolean().optional(),
3267
- scrollDistance: T.number().optional(),
3268
- scrollWaitMs: T.number().optional(),
3269
- maxScrollAttempts: T.number().optional()
3259
+ name: E.literal("get-text"),
3260
+ includeTags: E.boolean().optional(),
3261
+ useTextContent: E.boolean().optional(),
3262
+ regex: E.string().optional(),
3263
+ prefixText: E.string().optional(),
3264
+ suffixText: E.string().optional(),
3265
+ filterEmpty: E.boolean().optional(),
3266
+ scrollToCollect: E.boolean().optional(),
3267
+ scrollDistance: E.number().optional(),
3268
+ scrollWaitMs: E.number().optional(),
3269
+ maxScrollAttempts: E.number().optional()
3270
3270
  });
3271
3271
  function Ha(r) {
3272
3272
  return sn.parse(r);
@@ -3376,8 +3376,8 @@ function on(r, e, t, a = "", s = "") {
3376
3376
  };
3377
3377
  }
3378
3378
  const cn = wt.extend({
3379
- name: T.literal("attribute-value"),
3380
- attributeName: T.string()
3379
+ name: E.literal("attribute-value"),
3380
+ attributeName: E.string()
3381
3381
  });
3382
3382
  function Ka(r) {
3383
3383
  return cn.parse(r);
@@ -3400,8 +3400,8 @@ async function Ja(r) {
3400
3400
  }
3401
3401
  }
3402
3402
  const un = wt.extend({
3403
- name: T.literal("get-value-form"),
3404
- type: T.enum(["text-field", "select", "checkbox"]).optional()
3403
+ name: E.literal("get-value-form"),
3404
+ type: E.enum(["text-field", "select", "checkbox"]).optional()
3405
3405
  });
3406
3406
  function Xa(r) {
3407
3407
  return un.parse(r);
@@ -3443,9 +3443,9 @@ function es(r, e) {
3443
3443
  throw new Error(`Invalid element type for ${e}`);
3444
3444
  }
3445
3445
  const ln = wt.extend({
3446
- name: T.literal("set-value-form"),
3447
- setValue: T.string(),
3448
- type: T.enum(["text-field", "select", "checkbox"]).optional()
3446
+ name: E.literal("set-value-form"),
3447
+ setValue: E.string(),
3448
+ type: E.enum(["text-field", "select", "checkbox"]).optional()
3449
3449
  });
3450
3450
  function ts(r) {
3451
3451
  return ln.parse(r);
@@ -3483,8 +3483,8 @@ function ns(r, e, t) {
3483
3483
  }
3484
3484
  }
3485
3485
  const fn = wt.extend({
3486
- name: T.literal("clear-value-form"),
3487
- type: T.enum(["text-field", "select", "checkbox"]).optional()
3486
+ name: E.literal("clear-value-form"),
3487
+ type: E.enum(["text-field", "select", "checkbox"]).optional()
3488
3488
  });
3489
3489
  function as(r) {
3490
3490
  return fn.parse(r);
@@ -3522,7 +3522,7 @@ function is(r, e) {
3522
3522
  }
3523
3523
  }
3524
3524
  const dn = wt.extend({
3525
- name: T.literal("element-exists")
3525
+ name: E.literal("element-exists")
3526
3526
  });
3527
3527
  function os(r) {
3528
3528
  return dn.parse(r);
@@ -3542,10 +3542,10 @@ async function cs(r) {
3542
3542
  }
3543
3543
  }
3544
3544
  const hn = wt.extend({
3545
- name: T.literal("event-click"),
3546
- textFilter: T.object({
3547
- text: T.union([T.string(), T.array(T.string())]),
3548
- mode: T.enum(["exact", "contains", "startsWith", "endsWith", "regex"])
3545
+ name: E.literal("event-click"),
3546
+ textFilter: E.object({
3547
+ text: E.union([E.string(), E.array(E.string())]),
3548
+ mode: E.enum(["exact", "contains", "startsWith", "endsWith", "regex"])
3549
3549
  }).optional()
3550
3550
  });
3551
3551
  function us(r) {
@@ -3654,12 +3654,12 @@ async function hs(r) {
3654
3654
  }
3655
3655
  await new Promise((s) => setTimeout(s, 50));
3656
3656
  }
3657
- const pn = T.object({
3658
- name: T.literal("keypress"),
3659
- key: T.string(),
3660
- code: T.string().optional(),
3661
- keyCode: T.number().optional(),
3662
- modifiers: T.array(T.enum(["Alt", "Control", "Meta", "Shift"])).optional()
3657
+ const pn = E.object({
3658
+ name: E.literal("keypress"),
3659
+ key: E.string(),
3660
+ code: E.string().optional(),
3661
+ keyCode: E.number().optional(),
3662
+ modifiers: E.array(E.enum(["Alt", "Control", "Meta", "Shift"])).optional()
3663
3663
  });
3664
3664
  function ps(r) {
3665
3665
  return pn.parse(r);
@@ -3735,9 +3735,9 @@ function Yr(r) {
3735
3735
  shiftKey: r.includes("Shift")
3736
3736
  };
3737
3737
  }
3738
- const mn = T.object({
3739
- name: T.literal("wait"),
3740
- duration: T.number().min(0)
3738
+ const mn = E.object({
3739
+ name: E.literal("wait"),
3740
+ duration: E.number().min(0)
3741
3741
  });
3742
3742
  function gs(r) {
3743
3743
  return mn.parse(r);
@@ -3754,32 +3754,32 @@ async function vs(r) {
3754
3754
  };
3755
3755
  }
3756
3756
  }
3757
- const yn = T.object({
3758
- name: T.literal("wait-for-condition"),
3759
- conditions: T.object({
3760
- urlPattern: T.string().optional(),
3761
- elementExists: T.object({
3762
- selector: T.string(),
3763
- findBy: T.enum(["cssSelector", "xpath"])
3757
+ const yn = E.object({
3758
+ name: E.literal("wait-for-condition"),
3759
+ conditions: E.object({
3760
+ urlPattern: E.string().optional(),
3761
+ elementExists: E.object({
3762
+ selector: E.string(),
3763
+ findBy: E.enum(["cssSelector", "xpath"])
3764
3764
  }).optional(),
3765
- cookieExists: T.string().optional(),
3766
- storageKey: T.object({
3767
- type: T.enum(["localStorage", "sessionStorage"]),
3768
- key: T.string()
3765
+ cookieExists: E.string().optional(),
3766
+ storageKey: E.object({
3767
+ type: E.enum(["localStorage", "sessionStorage"]),
3768
+ key: E.string()
3769
3769
  }).optional(),
3770
- userConfirmation: T.boolean().optional(),
3771
- message: T.string().optional(),
3772
- buttonText: T.string().optional()
3770
+ userConfirmation: E.boolean().optional(),
3771
+ message: E.string().optional(),
3772
+ buttonText: E.string().optional()
3773
3773
  }).refine(
3774
3774
  (r) => r.urlPattern !== void 0 || r.elementExists !== void 0 || r.cookieExists !== void 0 || r.storageKey !== void 0 || r.userConfirmation === !0,
3775
3775
  {
3776
3776
  message: "At least one condition must be specified"
3777
3777
  }
3778
3778
  ),
3779
- mode: T.enum(["auto", "manual", "auto-or-manual"]).optional(),
3780
- pollingIntervalMs: T.number().min(100).optional(),
3781
- timeoutMs: T.number().min(1e3).optional(),
3782
- position: T.enum(["top-left", "top-right", "bottom-left", "bottom-right"]).optional()
3779
+ mode: E.enum(["auto", "manual", "auto-or-manual"]).optional(),
3780
+ pollingIntervalMs: E.number().min(100).optional(),
3781
+ timeoutMs: E.number().min(1e3).optional(),
3782
+ position: E.enum(["top-left", "top-right", "bottom-left", "bottom-right"]).optional()
3783
3783
  });
3784
3784
  function ws(r) {
3785
3785
  return yn.parse(r);
@@ -3891,11 +3891,11 @@ async function bs(r) {
3891
3891
  };
3892
3892
  }
3893
3893
  }
3894
- const gn = T.object({
3895
- name: T.literal("navigate"),
3896
- url: T.string().url("Valid URL is required"),
3897
- waitForLoad: T.boolean().optional(),
3898
- timeout: T.number().min(0).optional()
3894
+ const gn = E.object({
3895
+ name: E.literal("navigate"),
3896
+ url: E.string().url("Valid URL is required"),
3897
+ waitForLoad: E.boolean().optional(),
3898
+ timeout: E.number().min(0).optional()
3899
3899
  });
3900
3900
  function ks(r) {
3901
3901
  return gn.parse(r);
@@ -3920,7 +3920,7 @@ async function xs(r) {
3920
3920
  }
3921
3921
  }
3922
3922
  const vn = wt.extend({
3923
- name: T.literal("save-assets")
3923
+ name: E.literal("save-assets")
3924
3924
  });
3925
3925
  function _s(r) {
3926
3926
  return vn.parse(r);
@@ -3999,16 +3999,16 @@ class Ts {
3999
3999
  }
4000
4000
  }
4001
4001
  const wn = wt.extend({
4002
- name: T.literal("get-element-data"),
4003
- includeText: T.boolean().optional(),
4004
- includeTags: T.boolean().optional(),
4005
- useTextContent: T.boolean().optional(),
4006
- regex: T.string().optional(),
4007
- prefixText: T.string().optional(),
4008
- suffixText: T.string().optional(),
4009
- attributes: T.array(T.string()).optional(),
4010
- includeSelector: T.boolean().optional(),
4011
- includeXPath: T.boolean().optional()
4002
+ name: E.literal("get-element-data"),
4003
+ includeText: E.boolean().optional(),
4004
+ includeTags: E.boolean().optional(),
4005
+ useTextContent: E.boolean().optional(),
4006
+ regex: E.string().optional(),
4007
+ prefixText: E.string().optional(),
4008
+ suffixText: E.string().optional(),
4009
+ attributes: E.array(E.string()).optional(),
4010
+ includeSelector: E.boolean().optional(),
4011
+ includeXPath: E.boolean().optional()
4012
4012
  });
4013
4013
  function As(r) {
4014
4014
  return wn.parse(r);
@@ -4078,12 +4078,12 @@ function Ds(r, e, t, a, s = "", i = "", c = [], f = !1, w = !1) {
4078
4078
  };
4079
4079
  }
4080
4080
  const bn = wt.extend({
4081
- name: T.literal("scroll"),
4082
- scrollType: T.enum(["toElement", "toBottom", "byDistance", "untilLoaded"]).optional(),
4083
- distance: T.number().optional(),
4084
- behavior: T.enum(["auto", "smooth"]).optional(),
4085
- maxScrolls: T.number().optional(),
4086
- waitAfterScroll: T.number().optional()
4081
+ name: E.literal("scroll"),
4082
+ scrollType: E.enum(["toElement", "toBottom", "byDistance", "untilLoaded"]).optional(),
4083
+ distance: E.number().optional(),
4084
+ behavior: E.enum(["auto", "smooth"]).optional(),
4085
+ maxScrolls: E.number().optional(),
4086
+ waitAfterScroll: E.number().optional()
4087
4087
  });
4088
4088
  function Os(r) {
4089
4089
  return bn.parse(r);
@@ -4166,15 +4166,15 @@ async function Ms(r, e, t, a) {
4166
4166
  }
4167
4167
  return { data: !0 };
4168
4168
  }
4169
- const kn = T.object({
4170
- name: T.literal("fetch-api"),
4171
- url: T.string(),
4172
- method: T.enum(["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"]).optional(),
4173
- headers: T.record(T.string(), T.string()).optional(),
4174
- body: T.record(T.string(), T.any()).optional(),
4175
- timeout: T.number().min(0).optional(),
4176
- parseJson: T.boolean().optional(),
4177
- returnHeaders: T.boolean().optional()
4169
+ const kn = E.object({
4170
+ name: E.literal("fetch-api"),
4171
+ url: E.string(),
4172
+ method: E.enum(["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"]).optional(),
4173
+ headers: E.record(E.string(), E.string()).optional(),
4174
+ body: E.record(E.string(), E.any()).optional(),
4175
+ timeout: E.number().min(0).optional(),
4176
+ parseJson: E.boolean().optional(),
4177
+ returnHeaders: E.boolean().optional()
4178
4178
  });
4179
4179
  function Is(r) {
4180
4180
  return kn.parse(r);
@@ -4382,7 +4382,7 @@ function Us() {
4382
4382
  const b = xe(A);
4383
4383
  return W(v, b);
4384
4384
  }
4385
- const E = {
4385
+ const T = {
4386
4386
  DECIMAL: "decimal",
4387
4387
  LETTERS: "letters",
4388
4388
  ROMAN: "roman",
@@ -4397,16 +4397,16 @@ function Us() {
4397
4397
  let b;
4398
4398
  const N = v < 0;
4399
4399
  switch (v = Math.abs(v), A.primary) {
4400
- case E.LETTERS:
4400
+ case T.LETTERS:
4401
4401
  b = C(v, A.case === L.UPPER ? "A" : "a");
4402
4402
  break;
4403
- case E.ROMAN:
4403
+ case T.ROMAN:
4404
4404
  b = pe(v), A.case === L.UPPER && (b = b.toUpperCase());
4405
4405
  break;
4406
- case E.WORDS:
4406
+ case T.WORDS:
4407
4407
  b = x(v, A.ordinal), A.case === L.UPPER ? b = b.toUpperCase() : A.case === L.LOWER && (b = b.toLowerCase());
4408
4408
  break;
4409
- case E.DECIMAL:
4409
+ case T.DECIMAL:
4410
4410
  b = "" + v;
4411
4411
  var U = A.mandatoryDigits - b.length;
4412
4412
  if (U > 0) {
@@ -4429,7 +4429,7 @@ function Us() {
4429
4429
  (!J || b.length > 1 && b[b.length - 2] === "1") && (J = "th"), b = b + J;
4430
4430
  }
4431
4431
  break;
4432
- case E.SEQUENCE:
4432
+ case T.SEQUENCE:
4433
4433
  throw {
4434
4434
  code: "D3130",
4435
4435
  value: A.token
@@ -4441,7 +4441,7 @@ function Us() {
4441
4441
  function xe(v) {
4442
4442
  const A = {
4443
4443
  type: "integer",
4444
- primary: E.DECIMAL,
4444
+ primary: T.DECIMAL,
4445
4445
  case: L.LOWER,
4446
4446
  ordinal: !1
4447
4447
  };
@@ -4452,22 +4452,22 @@ function Us() {
4452
4452
  A.case = L.UPPER;
4453
4453
  /* eslnt-disable-next-line no-fallthrough */
4454
4454
  case "a":
4455
- A.primary = E.LETTERS;
4455
+ A.primary = T.LETTERS;
4456
4456
  break;
4457
4457
  case "I":
4458
4458
  A.case = L.UPPER;
4459
4459
  /* eslnt-disable-next-line no-fallthrough */
4460
4460
  case "i":
4461
- A.primary = E.ROMAN;
4461
+ A.primary = T.ROMAN;
4462
4462
  break;
4463
4463
  case "W":
4464
- A.case = L.UPPER, A.primary = E.WORDS;
4464
+ A.case = L.UPPER, A.primary = T.WORDS;
4465
4465
  break;
4466
4466
  case "Ww":
4467
- A.case = L.TITLE, A.primary = E.WORDS;
4467
+ A.case = L.TITLE, A.primary = T.WORDS;
4468
4468
  break;
4469
4469
  case "w":
4470
- A.primary = E.WORDS;
4470
+ A.primary = T.WORDS;
4471
4471
  break;
4472
4472
  default: {
4473
4473
  let j = null, O = 0, F = 0, J = [], ge = 0;
@@ -4490,7 +4490,7 @@ function Us() {
4490
4490
  character: String.fromCodePoint(K)
4491
4491
  }));
4492
4492
  }), O > 0) {
4493
- A.primary = E.DECIMAL, A.zeroCode = j, A.mandatoryDigits = O, A.optionalDigits = F;
4493
+ A.primary = T.DECIMAL, A.zeroCode = j, A.mandatoryDigits = O, A.optionalDigits = F;
4494
4494
  const ee = function(me) {
4495
4495
  if (me.length === 0)
4496
4496
  return 0;
@@ -4511,7 +4511,7 @@ function Us() {
4511
4511
  character: J[0].character
4512
4512
  }) : (A.regular = !1, A.groupingSeparators = J);
4513
4513
  } else
4514
- A.primary = E.SEQUENCE, A.token = b;
4514
+ A.primary = T.SEQUENCE, A.token = b;
4515
4515
  }
4516
4516
  }
4517
4517
  return A;
@@ -4821,22 +4821,22 @@ function Us() {
4821
4821
  A.type = "integer";
4822
4822
  const b = v.case === L.UPPER;
4823
4823
  switch (v.primary) {
4824
- case E.LETTERS:
4824
+ case T.LETTERS:
4825
4825
  A.regex = b ? "[A-Z]+" : "[a-z]+", A.parse = function(N) {
4826
4826
  return se(N, b ? "A" : "a");
4827
4827
  };
4828
4828
  break;
4829
- case E.ROMAN:
4829
+ case T.ROMAN:
4830
4830
  A.regex = b ? "[MDCLXVI]+" : "[mdclxvi]+", A.parse = function(N) {
4831
4831
  return H(b ? N : N.toUpperCase());
4832
4832
  };
4833
4833
  break;
4834
- case E.WORDS:
4834
+ case T.WORDS:
4835
4835
  A.regex = "(?:" + Object.keys(S).concat("and", "[\\-, ]").join("|") + ")+", A.parse = function(N) {
4836
4836
  return I(N.toLowerCase());
4837
4837
  };
4838
4838
  break;
4839
- case E.DECIMAL:
4839
+ case T.DECIMAL:
4840
4840
  A.regex = "[0-9]", v.parseWidth ? A.regex += `{${v.parseWidth}}` : A.regex += "+", v.ordinal && (A.regex += "(?:th|st|nd|rd)"), A.parse = function(N) {
4841
4841
  let U = N;
4842
4842
  return v.ordinal && (U = N.substring(0, N.length - 2)), v.regular ? U = U.split(",").join("") : v.groupingSeparators.forEach((j) => {
@@ -4844,7 +4844,7 @@ function Us() {
4844
4844
  }), v.zeroCode !== 48 && (U = U.split("").map((j) => String.fromCodePoint(j.codePointAt(0) - v.zeroCode + 48)).join("")), parseInt(U);
4845
4845
  };
4846
4846
  break;
4847
- case E.SEQUENCE:
4847
+ case T.SEQUENCE:
4848
4848
  throw {
4849
4849
  code: "D3130",
4850
4850
  value: v.token
@@ -4950,7 +4950,7 @@ function Us() {
4950
4950
  if (!(typeof n > "u" || n.length === 0))
4951
4951
  return Math.max.apply(Math, n);
4952
4952
  }
4953
- function E(n) {
4953
+ function T(n) {
4954
4954
  if (!(typeof n > "u" || n.length === 0))
4955
4955
  return Math.min.apply(Math, n);
4956
4956
  }
@@ -5784,7 +5784,7 @@ function Us() {
5784
5784
  sum: C,
5785
5785
  count: se,
5786
5786
  max: B,
5787
- min: E,
5787
+ min: T,
5788
5788
  average: L,
5789
5789
  string: W,
5790
5790
  substring: he,
@@ -5845,7 +5845,7 @@ function Us() {
5845
5845
  }).call(this, typeof Kr < "u" ? Kr : typeof self < "u" ? self : typeof window < "u" ? window : {});
5846
5846
  }, { "./utils": 6 }], 3: [function(t, a, s) {
5847
5847
  var i = t("./datetime"), c = t("./functions"), f = t("./utils"), w = t("./parser"), k = t("./signature"), M = (function() {
5848
- var D = f.isNumeric, x = f.isArrayOfStrings, S = f.isArrayOfNumbers, I = f.createSequence, ae = f.isSequence, Q = f.isFunction, pe = f.isLambda, H = f.isIterable, C = f.isPromise, se = f.getFunctionArity, B = f.isDeepEqual, E = ct(null);
5848
+ var D = f.isNumeric, x = f.isArrayOfStrings, S = f.isArrayOfNumbers, I = f.createSequence, ae = f.isSequence, Q = f.isFunction, pe = f.isLambda, H = f.isIterable, C = f.isPromise, se = f.getFunctionArity, B = f.isDeepEqual, T = ct(null);
5849
5849
  async function L(u, h, y) {
5850
5850
  var n, o = y.lookup(Symbol.for("jsonata.__evaluate_entry"));
5851
5851
  switch (o && await o(u, h, y), u.type) {
@@ -6702,7 +6702,7 @@ function Us() {
6702
6702
  }
6703
6703
  return y;
6704
6704
  }
6705
- E.bind("sum", Z(c.sum, "<a<n>:n>")), E.bind("count", Z(c.count, "<a:n>")), E.bind("max", Z(c.max, "<a<n>:n>")), E.bind("min", Z(c.min, "<a<n>:n>")), E.bind("average", Z(c.average, "<a<n>:n>")), E.bind("string", Z(c.string, "<x-b?:s>")), E.bind("substring", Z(c.substring, "<s-nn?:s>")), E.bind("substringBefore", Z(c.substringBefore, "<s-s:s>")), E.bind("substringAfter", Z(c.substringAfter, "<s-s:s>")), E.bind("lowercase", Z(c.lowercase, "<s-:s>")), E.bind("uppercase", Z(c.uppercase, "<s-:s>")), E.bind("length", Z(c.length, "<s-:n>")), E.bind("trim", Z(c.trim, "<s-:s>")), E.bind("pad", Z(c.pad, "<s-ns?:s>")), E.bind("match", Z(c.match, "<s-f<s:o>n?:a<o>>")), E.bind("contains", Z(c.contains, "<s-(sf):b>")), E.bind("replace", Z(c.replace, "<s-(sf)(sf)n?:s>")), E.bind("split", Z(c.split, "<s-(sf)n?:a<s>>")), E.bind("join", Z(c.join, "<a<s>s?:s>")), E.bind("formatNumber", Z(c.formatNumber, "<n-so?:s>")), E.bind("formatBase", Z(c.formatBase, "<n-n?:s>")), E.bind("formatInteger", Z(i.formatInteger, "<n-s:s>")), E.bind("parseInteger", Z(i.parseInteger, "<s-s:n>")), E.bind("number", Z(c.number, "<(nsb)-:n>")), E.bind("floor", Z(c.floor, "<n-:n>")), E.bind("ceil", Z(c.ceil, "<n-:n>")), E.bind("round", Z(c.round, "<n-n?:n>")), E.bind("abs", Z(c.abs, "<n-:n>")), E.bind("sqrt", Z(c.sqrt, "<n-:n>")), E.bind("power", Z(c.power, "<n-n:n>")), E.bind("random", Z(c.random, "<:n>")), E.bind("boolean", Z(c.boolean, "<x-:b>")), E.bind("not", Z(c.not, "<x-:b>")), E.bind("map", Z(c.map, "<af>")), E.bind("zip", Z(c.zip, "<a+>")), E.bind("filter", Z(c.filter, "<af>")), E.bind("single", Z(c.single, "<af?>")), E.bind("reduce", Z(c.foldLeft, "<afj?:j>")), E.bind("sift", Z(c.sift, "<o-f?:o>")), E.bind("keys", Z(c.keys, "<x-:a<s>>")), E.bind("lookup", Z(c.lookup, "<x-s:x>")), E.bind("append", Z(c.append, "<xx:a>")), E.bind("exists", Z(c.exists, "<x:b>")), E.bind("spread", Z(c.spread, "<x-:a<o>>")), E.bind("merge", Z(c.merge, "<a<o>:o>")), E.bind("reverse", Z(c.reverse, "<a:a>")), E.bind("each", Z(c.each, "<o-f:a>")), E.bind("error", Z(c.error, "<s?:x>")), E.bind("assert", Z(c.assert, "<bs?:x>")), E.bind("type", Z(c.type, "<x:s>")), E.bind("sort", Z(c.sort, "<af?:a>")), E.bind("shuffle", Z(c.shuffle, "<a:a>")), E.bind("distinct", Z(c.distinct, "<x:x>")), E.bind("base64encode", Z(c.base64encode, "<s-:s>")), E.bind("base64decode", Z(c.base64decode, "<s-:s>")), E.bind("encodeUrlComponent", Z(c.encodeUrlComponent, "<s-:s>")), E.bind("encodeUrl", Z(c.encodeUrl, "<s-:s>")), E.bind("decodeUrlComponent", Z(c.decodeUrlComponent, "<s-:s>")), E.bind("decodeUrl", Z(c.decodeUrl, "<s-:s>")), E.bind("eval", Z(yr, "<sx?:x>")), E.bind("toMillis", Z(i.toMillis, "<s-s?:n>")), E.bind("fromMillis", Z(i.fromMillis, "<n-s?s?:s>")), E.bind("clone", Z(Jt, "<(oa)-:o>"));
6705
+ T.bind("sum", Z(c.sum, "<a<n>:n>")), T.bind("count", Z(c.count, "<a:n>")), T.bind("max", Z(c.max, "<a<n>:n>")), T.bind("min", Z(c.min, "<a<n>:n>")), T.bind("average", Z(c.average, "<a<n>:n>")), T.bind("string", Z(c.string, "<x-b?:s>")), T.bind("substring", Z(c.substring, "<s-nn?:s>")), T.bind("substringBefore", Z(c.substringBefore, "<s-s:s>")), T.bind("substringAfter", Z(c.substringAfter, "<s-s:s>")), T.bind("lowercase", Z(c.lowercase, "<s-:s>")), T.bind("uppercase", Z(c.uppercase, "<s-:s>")), T.bind("length", Z(c.length, "<s-:n>")), T.bind("trim", Z(c.trim, "<s-:s>")), T.bind("pad", Z(c.pad, "<s-ns?:s>")), T.bind("match", Z(c.match, "<s-f<s:o>n?:a<o>>")), T.bind("contains", Z(c.contains, "<s-(sf):b>")), T.bind("replace", Z(c.replace, "<s-(sf)(sf)n?:s>")), T.bind("split", Z(c.split, "<s-(sf)n?:a<s>>")), T.bind("join", Z(c.join, "<a<s>s?:s>")), T.bind("formatNumber", Z(c.formatNumber, "<n-so?:s>")), T.bind("formatBase", Z(c.formatBase, "<n-n?:s>")), T.bind("formatInteger", Z(i.formatInteger, "<n-s:s>")), T.bind("parseInteger", Z(i.parseInteger, "<s-s:n>")), T.bind("number", Z(c.number, "<(nsb)-:n>")), T.bind("floor", Z(c.floor, "<n-:n>")), T.bind("ceil", Z(c.ceil, "<n-:n>")), T.bind("round", Z(c.round, "<n-n?:n>")), T.bind("abs", Z(c.abs, "<n-:n>")), T.bind("sqrt", Z(c.sqrt, "<n-:n>")), T.bind("power", Z(c.power, "<n-n:n>")), T.bind("random", Z(c.random, "<:n>")), T.bind("boolean", Z(c.boolean, "<x-:b>")), T.bind("not", Z(c.not, "<x-:b>")), T.bind("map", Z(c.map, "<af>")), T.bind("zip", Z(c.zip, "<a+>")), T.bind("filter", Z(c.filter, "<af>")), T.bind("single", Z(c.single, "<af?>")), T.bind("reduce", Z(c.foldLeft, "<afj?:j>")), T.bind("sift", Z(c.sift, "<o-f?:o>")), T.bind("keys", Z(c.keys, "<x-:a<s>>")), T.bind("lookup", Z(c.lookup, "<x-s:x>")), T.bind("append", Z(c.append, "<xx:a>")), T.bind("exists", Z(c.exists, "<x:b>")), T.bind("spread", Z(c.spread, "<x-:a<o>>")), T.bind("merge", Z(c.merge, "<a<o>:o>")), T.bind("reverse", Z(c.reverse, "<a:a>")), T.bind("each", Z(c.each, "<o-f:a>")), T.bind("error", Z(c.error, "<s?:x>")), T.bind("assert", Z(c.assert, "<bs?:x>")), T.bind("type", Z(c.type, "<x:s>")), T.bind("sort", Z(c.sort, "<af?:a>")), T.bind("shuffle", Z(c.shuffle, "<a:a>")), T.bind("distinct", Z(c.distinct, "<x:x>")), T.bind("base64encode", Z(c.base64encode, "<s-:s>")), T.bind("base64decode", Z(c.base64decode, "<s-:s>")), T.bind("encodeUrlComponent", Z(c.encodeUrlComponent, "<s-:s>")), T.bind("encodeUrl", Z(c.encodeUrl, "<s-:s>")), T.bind("decodeUrlComponent", Z(c.decodeUrlComponent, "<s-:s>")), T.bind("decodeUrl", Z(c.decodeUrl, "<s-:s>")), T.bind("eval", Z(yr, "<sx?:x>")), T.bind("toMillis", Z(i.toMillis, "<s-s?:n>")), T.bind("fromMillis", Z(i.fromMillis, "<n-s?s?:s>")), T.bind("clone", Z(Jt, "<(oa)-:o>"));
6706
6706
  var Bt = {
6707
6707
  S0101: "String literal must be terminated by a matching quote",
6708
6708
  S0102: "Number out of range: {{token}}",
@@ -6822,7 +6822,7 @@ function Us() {
6822
6822
  } catch (g) {
6823
6823
  throw mt(g), g;
6824
6824
  }
6825
- var o = ct(E), l = /* @__PURE__ */ new Date();
6825
+ var o = ct(T), l = /* @__PURE__ */ new Date();
6826
6826
  return o.bind("now", Z(function(g, p) {
6827
6827
  return i.fromMillis(l.getTime(), g, p);
6828
6828
  }, "<s?s?:s>")), o.bind("millis", Z(function() {
@@ -6938,7 +6938,7 @@ function Us() {
6938
6938
  }
6939
6939
  return !1;
6940
6940
  }; x < S; ) {
6941
- var E = D.charAt(x);
6941
+ var T = D.charAt(x);
6942
6942
  if (B(x)) {
6943
6943
  if (C = D.substring(pe, x), C === "")
6944
6944
  throw {
@@ -6946,11 +6946,11 @@ function Us() {
6946
6946
  stack: new Error().stack,
6947
6947
  position: x
6948
6948
  };
6949
- for (x++, E = D.charAt(x), pe = x; E === "i" || E === "m"; )
6950
- x++, E = D.charAt(x);
6949
+ for (x++, T = D.charAt(x), pe = x; T === "i" || T === "m"; )
6950
+ x++, T = D.charAt(x);
6951
6951
  return se = D.substring(pe, x) + "g", new RegExp(C, se);
6952
6952
  }
6953
- (E === "(" || E === "[" || E === "{") && D.charAt(x - 1) !== "\\" && H++, (E === ")" || E === "]" || E === "}") && D.charAt(x - 1) !== "\\" && H--, x++;
6953
+ (T === "(" || T === "[" || T === "{") && D.charAt(x - 1) !== "\\" && H++, (T === ")" || T === "]" || T === "}") && D.charAt(x - 1) !== "\\" && H--, x++;
6954
6954
  }
6955
6955
  throw {
6956
6956
  code: "S0302",
@@ -7003,9 +7003,9 @@ function Us() {
7003
7003
  if (x++, H = D.charAt(x), Object.prototype.hasOwnProperty.call(w, H))
7004
7004
  B += w[H];
7005
7005
  else if (H === "u") {
7006
- var E = D.substr(x + 1, 4);
7007
- if (/^[0-9a-fA-F]+$/.test(E)) {
7008
- var L = parseInt(E, 16);
7006
+ var T = D.substr(x + 1, 4);
7007
+ if (/^[0-9a-fA-F]+$/.test(T)) {
7008
+ var L = parseInt(T, 16);
7009
7009
  B += String.fromCharCode(L), x += 4;
7010
7010
  } else
7011
7011
  throw {
@@ -7156,7 +7156,7 @@ function Us() {
7156
7156
  });
7157
7157
  }
7158
7158
  return S = Object.create(A), S.value = Ee, S.type = v, S.position = Pe.position, S;
7159
- }, E = function(d) {
7159
+ }, T = function(d) {
7160
7160
  var m, V = S;
7161
7161
  for (B(null, !0), m = V.nud(); d < S.lbp; )
7162
7162
  V = S, B(), m = V.led(m);
@@ -7169,7 +7169,7 @@ function Us() {
7169
7169
  }, W = function(d, m, V) {
7170
7170
  var de = m || f[d], Pe = C(d, de);
7171
7171
  return Pe.led = V || function(Ee) {
7172
- return this.lhs = Ee, this.rhs = E(de), this.type = "binary", this;
7172
+ return this.lhs = Ee, this.rhs = T(de), this.type = "binary", this;
7173
7173
  }, Pe;
7174
7174
  }, he = function(d, m, V) {
7175
7175
  var de = C(d, m);
@@ -7177,7 +7177,7 @@ function Us() {
7177
7177
  }, xe = function(d, m) {
7178
7178
  var V = C(d);
7179
7179
  return V.nud = m || function() {
7180
- return this.expression = E(70), this.type = "unary", this;
7180
+ return this.expression = T(70), this.type = "unary", this;
7181
7181
  }, V;
7182
7182
  };
7183
7183
  L("(end)"), L("(name)"), L("(literal)"), L("(regex)"), C(":"), C(";"), C(","), C(")"), C("]"), C("}"), C(".."), W("."), W("+"), W("-"), W("*"), W("/"), W("%"), W("="), W("<"), W(">"), W("!="), W("<="), W(">="), W("&"), W("and"), W("or"), W("in"), L("and"), L("or"), L("in"), xe("-"), W("~>"), W("??", f["??"], function(d) {
@@ -7186,7 +7186,7 @@ function Us() {
7186
7186
  value: "(",
7187
7187
  procedure: { type: "variable", value: "exists" },
7188
7188
  arguments: [d]
7189
- }, this.then = d, this.else = E(0), this;
7189
+ }, this.then = d, this.else = T(0), this;
7190
7190
  }), he("(error)", 10, function(d) {
7191
7191
  return this.lhs = d, this.error = S.error, this.remaining = pe(), this.type = "error", this;
7192
7192
  }), xe("*", function() {
@@ -7197,7 +7197,7 @@ function Us() {
7197
7197
  return this.type = "parent", this;
7198
7198
  }), W("(", f["("], function(d) {
7199
7199
  if (this.procedure = d, this.type = "function", this.arguments = [], S.id !== ")")
7200
- for (; S.type === "operator" && S.id === "?" ? (this.type = "partial", this.arguments.push(S), B("?")) : this.arguments.push(E(0)), S.id === ","; )
7200
+ for (; S.type === "operator" && S.id === "?" ? (this.type = "partial", this.arguments.push(S), B("?")) : this.arguments.push(T(0)), S.id === ","; )
7201
7201
  B(",");
7202
7202
  if (B(")", !0), d.type === "name" && (d.value === "function" || d.value === "λ")) {
7203
7203
  if (this.arguments.forEach(function(Ee, v) {
@@ -7221,21 +7221,21 @@ function Us() {
7221
7221
  return Ee.position = m + Ee.offset, se(Ee);
7222
7222
  }
7223
7223
  }
7224
- B("{"), this.body = E(0), B("}");
7224
+ B("{"), this.body = T(0), B("}");
7225
7225
  }
7226
7226
  return this;
7227
7227
  }), xe("(", function() {
7228
- for (var d = []; S.id !== ")" && (d.push(E(0)), S.id === ";"); )
7228
+ for (var d = []; S.id !== ")" && (d.push(T(0)), S.id === ";"); )
7229
7229
  B(";");
7230
7230
  return B(")", !0), this.type = "block", this.expressions = d, this;
7231
7231
  }), xe("[", function() {
7232
7232
  var d = [];
7233
7233
  if (S.id !== "]")
7234
7234
  for (; ; ) {
7235
- var m = E(0);
7235
+ var m = T(0);
7236
7236
  if (S.id === "..") {
7237
7237
  var V = { type: "binary", value: "..", position: S.position, lhs: m };
7238
- B(".."), V.rhs = E(0), m = V;
7238
+ B(".."), V.rhs = T(0), m = V;
7239
7239
  }
7240
7240
  if (d.push(m), S.id !== ",")
7241
7241
  break;
@@ -7248,14 +7248,14 @@ function Us() {
7248
7248
  m = m.lhs;
7249
7249
  return m.keepArray = !0, B("]"), d;
7250
7250
  } else
7251
- return this.lhs = d, this.rhs = E(f["]"]), this.type = "binary", B("]", !0), this;
7251
+ return this.lhs = d, this.rhs = T(f["]"]), this.type = "binary", B("]", !0), this;
7252
7252
  }), W("^", f["^"], function(d) {
7253
7253
  B("(");
7254
7254
  for (var m = []; ; ) {
7255
7255
  var V = {
7256
7256
  descending: !1
7257
7257
  };
7258
- if (S.id === "<" ? B("<") : S.id === ">" && (V.descending = !0, B(">")), V.expression = E(0), m.push(V), S.id !== ",")
7258
+ if (S.id === "<" ? B("<") : S.id === ">" && (V.descending = !0, B(">")), V.expression = T(0), m.push(V), S.id !== ",")
7259
7259
  break;
7260
7260
  B(",");
7261
7261
  }
@@ -7265,9 +7265,9 @@ function Us() {
7265
7265
  var m = [];
7266
7266
  if (S.id !== "}")
7267
7267
  for (; ; ) {
7268
- var V = E(0);
7268
+ var V = T(0);
7269
7269
  B(":");
7270
- var de = E(0);
7270
+ var de = T(0);
7271
7271
  if (m.push([V, de]), S.id !== ",")
7272
7272
  break;
7273
7273
  B(",");
@@ -7280,27 +7280,27 @@ function Us() {
7280
7280
  stack: new Error().stack,
7281
7281
  position: d.position,
7282
7282
  token: d.value
7283
- }) : (this.lhs = d, this.rhs = E(f[":="] - 1), this.type = "binary", this);
7283
+ }) : (this.lhs = d, this.rhs = T(f[":="] - 1), this.type = "binary", this);
7284
7284
  }), W("@", f["@"], function(d) {
7285
- return this.lhs = d, this.rhs = E(f["@"]), this.rhs.type !== "variable" ? se({
7285
+ return this.lhs = d, this.rhs = T(f["@"]), this.rhs.type !== "variable" ? se({
7286
7286
  code: "S0214",
7287
7287
  stack: new Error().stack,
7288
7288
  position: this.rhs.position,
7289
7289
  token: "@"
7290
7290
  }) : (this.type = "binary", this);
7291
7291
  }), W("#", f["#"], function(d) {
7292
- return this.lhs = d, this.rhs = E(f["#"]), this.rhs.type !== "variable" ? se({
7292
+ return this.lhs = d, this.rhs = T(f["#"]), this.rhs.type !== "variable" ? se({
7293
7293
  code: "S0214",
7294
7294
  stack: new Error().stack,
7295
7295
  position: this.rhs.position,
7296
7296
  token: "#"
7297
7297
  }) : (this.type = "binary", this);
7298
7298
  }), W("?", f["?"], function(d) {
7299
- return this.type = "condition", this.condition = d, this.then = E(0), S.id === ":" && (B(":"), this.else = E(0)), this;
7299
+ return this.type = "condition", this.condition = d, this.then = T(0), S.id === ":" && (B(":"), this.else = T(0)), this;
7300
7300
  }), W("?:", f["?:"], function(d) {
7301
- return this.type = "condition", this.condition = d, this.then = d, this.else = E(0), this;
7301
+ return this.type = "condition", this.condition = d, this.then = d, this.else = T(0), this;
7302
7302
  }), xe("|", function() {
7303
- return this.type = "transform", this.pattern = E(0), B("|"), this.update = E(0), S.id === "," && (B(","), this.delete = E(0)), B("|"), this;
7303
+ return this.type = "transform", this.pattern = T(0), B("|"), this.update = T(0), S.id === "," && (B(","), this.delete = T(0)), B("|"), this;
7304
7304
  });
7305
7305
  var Ae = function(d) {
7306
7306
  var m;
@@ -7543,7 +7543,7 @@ function Us() {
7543
7543
  return d.keepArray && (m.keepArray = !0), m;
7544
7544
  };
7545
7545
  I = k(D), B();
7546
- var Fe = E(0);
7546
+ var Fe = T(0);
7547
7547
  if (S.id !== "(end)") {
7548
7548
  var st = {
7549
7549
  code: "S0201",
@@ -7651,7 +7651,7 @@ function Us() {
7651
7651
  }
7652
7652
  var se = "^" + D.map(function(W) {
7653
7653
  return "(" + W.regex + ")";
7654
- }).join("") + "$", B = new RegExp(se), E = function(W) {
7654
+ }).join("") + "$", B = new RegExp(se), T = function(W) {
7655
7655
  var he;
7656
7656
  if (i.isFunction(W))
7657
7657
  he = "f";
@@ -7701,7 +7701,7 @@ function Us() {
7701
7701
  validate: function(W, he) {
7702
7702
  var xe = "";
7703
7703
  W.forEach(function(Re) {
7704
- xe += E(Re);
7704
+ xe += T(Re);
7705
7705
  });
7706
7706
  var Te = B.exec(xe);
7707
7707
  if (Te) {
@@ -7710,7 +7710,7 @@ function Us() {
7710
7710
  var _e = W[ve], fe = Te[et + 1];
7711
7711
  if (fe === "")
7712
7712
  if (Re.context && Re.contextRegex) {
7713
- var tt = E(he);
7713
+ var tt = T(he);
7714
7714
  if (Re.contextRegex.test(tt))
7715
7715
  Ae.push(he);
7716
7716
  else
@@ -7734,12 +7734,12 @@ function Us() {
7734
7734
  if (ie !== "a" && fe !== Re.subtype)
7735
7735
  Fe = !1;
7736
7736
  else if (ie === "a" && _e.length > 0) {
7737
- var st = E(_e[0]);
7737
+ var st = T(_e[0]);
7738
7738
  if (st !== Re.subtype.charAt(0))
7739
7739
  Fe = !1;
7740
7740
  else {
7741
7741
  var d = _e.filter(function(m) {
7742
- return E(m) !== st;
7742
+ return T(m) !== st;
7743
7743
  });
7744
7744
  Fe = d.length === 0;
7745
7745
  }
@@ -7825,14 +7825,14 @@ function Us() {
7825
7825
  return !1;
7826
7826
  return !0;
7827
7827
  }
7828
- var E = Object.getOwnPropertyNames(C), L = Object.getOwnPropertyNames(se);
7829
- if (E.length !== L.length)
7828
+ var T = Object.getOwnPropertyNames(C), L = Object.getOwnPropertyNames(se);
7829
+ if (T.length !== L.length)
7830
7830
  return !1;
7831
- for (E = E.sort(), L = L.sort(), B = 0; B < E.length; B++)
7832
- if (E[B] !== L[B])
7831
+ for (T = T.sort(), L = L.sort(), B = 0; B < T.length; B++)
7832
+ if (T[B] !== L[B])
7833
7833
  return !1;
7834
- for (B = 0; B < E.length; B++) {
7835
- var W = E[B];
7834
+ for (B = 0; B < T.length; B++) {
7835
+ var W = T[B];
7836
7836
  if (!Q(C[W], se[W]))
7837
7837
  return !1;
7838
7838
  }
@@ -7870,10 +7870,10 @@ function Us() {
7870
7870
  })(Cr)), Cr.exports;
7871
7871
  }
7872
7872
  var $s = Us();
7873
- const Ls = /* @__PURE__ */ Fs($s), xn = T.object({
7874
- name: T.literal("transform-data"),
7875
- sourceData: T.any().optional(),
7876
- expression: T.string().min(1, "JSONata expression is required")
7873
+ const Ls = /* @__PURE__ */ Fs($s), xn = E.object({
7874
+ name: E.literal("transform-data"),
7875
+ sourceData: E.any().optional(),
7876
+ expression: E.string().min(1, "JSONata expression is required")
7877
7877
  });
7878
7878
  function Bs(r) {
7879
7879
  return xn.parse(r);
@@ -7908,14 +7908,14 @@ async function Zs(r) {
7908
7908
  };
7909
7909
  }
7910
7910
  }
7911
- const _n = T.object({
7912
- name: T.literal("export-data"),
7913
- data: T.any(),
7914
- format: T.enum(["json", "csv", "xlsx"]),
7915
- filename: T.string().optional(),
7916
- csvOptions: T.object({
7917
- delimiter: T.string().optional(),
7918
- includeHeaders: T.boolean().optional()
7911
+ const _n = E.object({
7912
+ name: E.literal("export-data"),
7913
+ data: E.any(),
7914
+ format: E.enum(["json", "csv", "xlsx"]),
7915
+ filename: E.string().optional(),
7916
+ csvOptions: E.object({
7917
+ delimiter: E.string().optional(),
7918
+ includeHeaders: E.boolean().optional()
7919
7919
  }).optional()
7920
7920
  });
7921
7921
  function zs(r) {
@@ -7949,22 +7949,26 @@ async function Ws(r) {
7949
7949
  };
7950
7950
  }
7951
7951
  }
7952
- const En = T.object({
7953
- name: T.literal("network-catch"),
7954
- urlPattern: T.string().optional(),
7955
- method: T.enum(["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"]).optional(),
7956
- status: T.union([
7957
- T.number(),
7958
- T.object({
7959
- min: T.number().optional(),
7960
- max: T.number().optional()
7952
+ const En = E.object({
7953
+ name: E.literal("network-catch"),
7954
+ urlPattern: E.string().optional(),
7955
+ method: E.enum(["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"]).optional(),
7956
+ status: E.union([
7957
+ E.number(),
7958
+ E.object({
7959
+ min: E.number().optional(),
7960
+ max: E.number().optional()
7961
7961
  })
7962
7962
  ]).optional(),
7963
- mimeType: T.string().optional(),
7964
- waitForRequest: T.boolean().optional(),
7965
- waitTimeout: T.number().min(0).optional(),
7966
- returnAll: T.boolean().optional(),
7967
- includeHeaders: T.boolean().optional()
7963
+ mimeType: E.string().optional(),
7964
+ requestBodyPattern: E.union([
7965
+ E.string(),
7966
+ E.record(E.any())
7967
+ ]).optional(),
7968
+ waitForRequest: E.boolean().optional(),
7969
+ waitTimeout: E.number().min(0).optional(),
7970
+ returnAll: E.boolean().optional(),
7971
+ includeHeaders: E.boolean().optional()
7968
7972
  });
7969
7973
  function Vs(r) {
7970
7974
  return En.parse(r);
@@ -7979,6 +7983,7 @@ async function qs(r) {
7979
7983
  method: r.method,
7980
7984
  status: r.status,
7981
7985
  mimeType: r.mimeType,
7986
+ requestBodyPattern: r.requestBodyPattern,
7982
7987
  waitForRequest: r.waitForRequest || !1,
7983
7988
  waitTimeout: r.waitTimeout || 5e3,
7984
7989
  returnAll: r.returnAll || !1,
@@ -8443,9 +8448,9 @@ class fi {
8443
8448
  const i = Ks.safeParse(s);
8444
8449
  if (i.success) {
8445
8450
  const w = i.data;
8446
- return { ...a, ...w };
8451
+ return { ...a, data: w };
8447
8452
  } else
8448
- return console.warn("Invalid workspace billing data:", s, i.error), { ...a };
8453
+ return console.warn("Invalid workspace billing data:", s, i.error), { ...a, data: void 0 };
8449
8454
  }
8450
8455
  // 결제내역
8451
8456
  async getWorkspaceBillingHistories(e, t) {