@authhero/saml 0.5.17 → 0.6.0

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/core.mjs CHANGED
@@ -14,7 +14,14 @@ var t = e.object({ "#text": e.string() }), n = e.object({
14
14
  "@_AssertionConsumerServiceURL": e.string().url().optional(),
15
15
  "@_ProtocolBinding": e.string().optional(),
16
16
  "@_Version": e.string()
17
- }) }), i = e.array(e.object({
17
+ }) }), i = e.object({ "samlp:LogoutRequest": e.object({
18
+ "saml:Issuer": n,
19
+ "saml:NameID": e.object({ "#text": e.string() }).optional(),
20
+ "samlp:SessionIndex": e.object({ "#text": e.string() }).optional(),
21
+ "@_ID": e.string(),
22
+ "@_Version": e.string().optional(),
23
+ "@_Destination": e.string().optional()
24
+ }) }), a = e.array(e.object({
18
25
  ":@": e.object({
19
26
  "@_xmlns": e.string(),
20
27
  "@_entityID": e.string()
@@ -55,7 +62,7 @@ var t = e.object({ "#text": e.string() }), n = e.object({
55
62
  })
56
63
  ]))
57
64
  }))
58
- })), a = e.object({
65
+ })), o = e.object({
59
66
  "saml:Attribute": e.array(e.object({
60
67
  "saml:AttributeValue": e.array(e.object({ "#text": e.string() })),
61
68
  ":@": e.object({
@@ -69,17 +76,17 @@ var t = e.object({ "#text": e.string() }), n = e.object({
69
76
  "@_NameFormat": e.string(),
70
77
  "@_FriendlyName": e.string().optional()
71
78
  })
72
- }), o = e.object({
79
+ }), s = e.object({
73
80
  "ds:Transform": e.array(e.any()),
74
81
  ":@": e.object({ "@_Algorithm": e.string() })
75
- }), s = e.object({
82
+ }), c = e.object({
76
83
  "ds:Signature": e.array(e.union([
77
84
  e.object({ "ds:SignedInfo": e.array(e.union([
78
85
  e.object({ "ds:CanonicalizationMethod": e.array(e.object({ ":@": e.object({ "@_Algorithm": e.string() }) })) }),
79
86
  e.object({ "ds:SignatureMethod": e.array(e.object({ ":@": e.object({ "@_Algorithm": e.string() }) })) }),
80
87
  e.object({
81
88
  "ds:Reference": e.array(e.union([
82
- e.object({ "ds:Transforms": e.array(o) }),
89
+ e.object({ "ds:Transforms": e.array(s) }),
83
90
  e.object({ "ds:DigestMethod": e.array(e.object({ ":@": e.object({ "@_Algorithm": e.string() }) })) }),
84
91
  e.object({ "ds:DigestValue": e.array(t) })
85
92
  ])),
@@ -97,10 +104,10 @@ var t = e.object({ "#text": e.string() }), n = e.object({
97
104
  ])) })
98
105
  ])),
99
106
  ":@": e.object({ "@_xmlns:ds": e.string().optional() }).optional()
100
- }), c = e.array(e.object({
107
+ }), l = e.array(e.object({
101
108
  "samlp:Response": e.array(e.union([
102
109
  e.object({ "saml:Issuer": e.array(t) }),
103
- s,
110
+ c,
104
111
  e.object({ "samlp:Status": e.array(e.object({
105
112
  "samlp:StatusCode": e.array(t),
106
113
  ":@": e.object({ "@_Value": e.string() })
@@ -108,7 +115,7 @@ var t = e.object({ "#text": e.string() }), n = e.object({
108
115
  e.object({
109
116
  "saml:Assertion": e.array(e.union([
110
117
  e.object({ "saml:Issuer": e.array(t) }),
111
- s,
118
+ c,
112
119
  e.object({ "saml:Subject": e.array(e.union([e.object({
113
120
  "saml:NameID": e.array(t),
114
121
  ":@": e.object({ "@_Format": e.string() })
@@ -138,7 +145,7 @@ var t = e.object({ "#text": e.string() }), n = e.object({
138
145
  "@_SessionNotOnOrAfter": e.string()
139
146
  })
140
147
  }),
141
- e.object({ "saml:AttributeStatement": e.array(a) })
148
+ e.object({ "saml:AttributeStatement": e.array(o) })
142
149
  ])),
143
150
  ":@": e.object({
144
151
  "@_xmlns": e.string(),
@@ -157,8 +164,8 @@ var t = e.object({ "#text": e.string() }), n = e.object({
157
164
  "@_IssueInstant": e.string(),
158
165
  "@_Version": e.string()
159
166
  })
160
- })), l = /* @__PURE__ */ RegExp("^[:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");
161
- function u(e, t) {
167
+ })), u = /* @__PURE__ */ RegExp("^[:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");
168
+ function d(e, t) {
162
169
  let n = [], r = t.exec(e);
163
170
  for (; r;) {
164
171
  let i = [];
@@ -169,13 +176,13 @@ function u(e, t) {
169
176
  }
170
177
  return n;
171
178
  }
172
- var d = function(e) {
173
- return l.exec(e) != null;
179
+ var f = function(e) {
180
+ return u.exec(e) != null;
174
181
  };
175
- function f(e) {
182
+ function p(e) {
176
183
  return e !== void 0;
177
184
  }
178
- var p = [
185
+ var m = [
179
186
  "hasOwnProperty",
180
187
  "toString",
181
188
  "valueOf",
@@ -183,41 +190,41 @@ var p = [
183
190
  "__defineSetter__",
184
191
  "__lookupGetter__",
185
192
  "__lookupSetter__"
186
- ], m = [
193
+ ], h = [
187
194
  "__proto__",
188
195
  "constructor",
189
196
  "prototype"
190
- ], h = {
197
+ ], g = {
191
198
  allowBooleanAttributes: !1,
192
199
  unpairedTags: []
193
200
  };
194
- function g(e, t) {
195
- t = Object.assign({}, h, t);
201
+ function _(e, t) {
202
+ t = Object.assign({}, g, t);
196
203
  let n = [], r = !1, i = !1;
197
204
  e[0] === "" && (e = e.substr(1));
198
205
  for (let a = 0; a < e.length; a++) if (e[a] === "<" && e[a + 1] === "?") {
199
- if (a += 2, a = ee(e, a), a.err) return a;
206
+ if (a += 2, a = te(e, a), a.err) return a;
200
207
  } else if (e[a] === "<") {
201
208
  let o = a;
202
209
  if (a++, e[a] === "!") {
203
- a = te(e, a);
210
+ a = ne(e, a);
204
211
  continue;
205
212
  } else {
206
213
  let s = !1;
207
214
  e[a] === "/" && (s = !0, a++);
208
215
  let c = "";
209
216
  for (; a < e.length && e[a] !== ">" && e[a] !== " " && e[a] !== " " && e[a] !== "\n" && e[a] !== "\r"; a++) c += e[a];
210
- if (c = c.trim(), c[c.length - 1] === "/" && (c = c.substring(0, c.length - 1), a--), !ue(c)) {
217
+ if (c = c.trim(), c[c.length - 1] === "/" && (c = c.substring(0, c.length - 1), a--), !de(c)) {
211
218
  let t;
212
219
  return t = c.trim().length === 0 ? "Invalid space after '<'." : "Tag '" + c + "' is an invalid name.", v("InvalidTag", t, y(e, a));
213
220
  }
214
- let l = ie(e, a);
221
+ let l = ae(e, a);
215
222
  if (l === !1) return v("InvalidAttr", "Attributes for '" + c + "' have open quote.", y(e, a));
216
223
  let u = l.value;
217
224
  if (a = l.index, u[u.length - 1] === "/") {
218
225
  let n = a - u.length;
219
226
  u = u.substring(0, u.length - 1);
220
- let i = oe(u, t);
227
+ let i = se(u, t);
221
228
  if (i === !0) r = !0;
222
229
  else return v(i.err.code, i.err.msg, y(e, n + i.err.line));
223
230
  } else if (s) {
@@ -233,7 +240,7 @@ function g(e, t) {
233
240
  n.length == 0 && (i = !0);
234
241
  }
235
242
  } else {
236
- let s = oe(u, t);
243
+ let s = se(u, t);
237
244
  if (s !== !0) return v(s.err.code, s.err.msg, y(e, a - u.length + s.err.line));
238
245
  if (i === !0) return v("InvalidXml", "Multiple possible root nodes found.", y(e, a));
239
246
  t.unpairedTags.indexOf(c) !== -1 || n.push({
@@ -242,20 +249,20 @@ function g(e, t) {
242
249
  }), r = !0;
243
250
  }
244
251
  for (a++; a < e.length; a++) if (e[a] === "<") if (e[a + 1] === "!") {
245
- a++, a = te(e, a);
252
+ a++, a = ne(e, a);
246
253
  continue;
247
254
  } else if (e[a + 1] === "?") {
248
- if (a = ee(e, ++a), a.err) return a;
255
+ if (a = te(e, ++a), a.err) return a;
249
256
  } else break;
250
257
  else if (e[a] === "&") {
251
- let t = ce(e, a);
258
+ let t = le(e, a);
252
259
  if (t == -1) return v("InvalidChar", "char '&' is not expected.", y(e, a));
253
260
  a = t;
254
- } else if (i === !0 && !_(e[a])) return v("InvalidXml", "Extra text at the end", y(e, a));
261
+ } else if (i === !0 && !ee(e[a])) return v("InvalidXml", "Extra text at the end", y(e, a));
255
262
  e[a] === "<" && a--;
256
263
  }
257
264
  } else {
258
- if (_(e[a])) continue;
265
+ if (ee(e[a])) continue;
259
266
  return v("InvalidChar", "char '" + e[a] + "' is not expected.", y(e, a));
260
267
  }
261
268
  return r ? n.length == 1 ? v("InvalidTag", "Unclosed tag '" + n[0].tagName + "'.", y(e, n[0].tagStartPos)) : n.length > 0 ? v("InvalidXml", "Invalid '" + JSON.stringify(n.map((e) => e.tagName), null, 4).replace(/\r?\n/g, "") + "' found.", {
@@ -263,10 +270,10 @@ function g(e, t) {
263
270
  col: 1
264
271
  }) : !0 : v("InvalidXml", "Start tag expected.", 1);
265
272
  }
266
- function _(e) {
273
+ function ee(e) {
267
274
  return e === " " || e === " " || e === "\n" || e === "\r";
268
275
  }
269
- function ee(e, t) {
276
+ function te(e, t) {
270
277
  let n = t;
271
278
  for (; t < e.length; t++) if (e[t] == "?" || e[t] == " ") {
272
279
  let r = e.substr(n, t - n);
@@ -278,7 +285,7 @@ function ee(e, t) {
278
285
  }
279
286
  return t;
280
287
  }
281
- function te(e, t) {
288
+ function ne(e, t) {
282
289
  if (e.length > t + 5 && e[t + 1] === "-" && e[t + 2] === "-") {
283
290
  for (t += 3; t < e.length; t++) if (e[t] === "-" && e[t + 1] === "-" && e[t + 2] === ">") {
284
291
  t += 2;
@@ -296,11 +303,11 @@ function te(e, t) {
296
303
  }
297
304
  return t;
298
305
  }
299
- var ne = "\"", re = "'";
300
- function ie(e, t) {
306
+ var re = "\"", ie = "'";
307
+ function ae(e, t) {
301
308
  let n = "", r = "", i = !1;
302
309
  for (; t < e.length; t++) {
303
- if (e[t] === ne || e[t] === re) r === "" ? r = e[t] : r !== e[t] || (r = "");
310
+ if (e[t] === re || e[t] === ie) r === "" ? r = e[t] : r !== e[t] || (r = "");
304
311
  else if (e[t] === ">" && r === "") {
305
312
  i = !0;
306
313
  break;
@@ -313,21 +320,21 @@ function ie(e, t) {
313
320
  tagClosed: i
314
321
  } : !1;
315
322
  }
316
- var ae = /* @__PURE__ */ RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?", "g");
317
- function oe(e, t) {
318
- let n = u(e, ae), r = {};
323
+ var oe = /* @__PURE__ */ RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?", "g");
324
+ function se(e, t) {
325
+ let n = d(e, oe), r = {};
319
326
  for (let e = 0; e < n.length; e++) {
320
327
  if (n[e][1].length === 0) return v("InvalidAttr", "Attribute '" + n[e][2] + "' has no space in starting.", b(n[e]));
321
328
  if (n[e][3] !== void 0 && n[e][4] === void 0) return v("InvalidAttr", "Attribute '" + n[e][2] + "' is without value.", b(n[e]));
322
329
  if (n[e][3] === void 0 && !t.allowBooleanAttributes) return v("InvalidAttr", "boolean attribute '" + n[e][2] + "' is not allowed.", b(n[e]));
323
330
  let i = n[e][2];
324
- if (!le(i)) return v("InvalidAttr", "Attribute '" + i + "' is an invalid name.", b(n[e]));
331
+ if (!ue(i)) return v("InvalidAttr", "Attribute '" + i + "' is an invalid name.", b(n[e]));
325
332
  if (!Object.prototype.hasOwnProperty.call(r, i)) r[i] = 1;
326
333
  else return v("InvalidAttr", "Attribute '" + i + "' is repeated.", b(n[e]));
327
334
  }
328
335
  return !0;
329
336
  }
330
- function se(e, t) {
337
+ function ce(e, t) {
331
338
  let n = /\d/;
332
339
  for (e[t] === "x" && (t++, n = /[\da-fA-F]/); t < e.length; t++) {
333
340
  if (e[t] === ";") return t;
@@ -335,9 +342,9 @@ function se(e, t) {
335
342
  }
336
343
  return -1;
337
344
  }
338
- function ce(e, t) {
345
+ function le(e, t) {
339
346
  if (t++, e[t] === ";") return -1;
340
- if (e[t] === "#") return t++, se(e, t);
347
+ if (e[t] === "#") return t++, ce(e, t);
341
348
  let n = 0;
342
349
  for (; t < e.length; t++, n++) if (!(e[t].match(/\w/) && n < 20)) {
343
350
  if (e[t] === ";") break;
@@ -353,11 +360,11 @@ function v(e, t, n) {
353
360
  col: n.col
354
361
  } };
355
362
  }
356
- function le(e) {
357
- return d(e);
358
- }
359
363
  function ue(e) {
360
- return d(e);
364
+ return f(e);
365
+ }
366
+ function de(e) {
367
+ return f(e);
361
368
  }
362
369
  function y(e, t) {
363
370
  let n = e.substring(0, t).split(/\r?\n/);
@@ -371,7 +378,7 @@ function b(e) {
371
378
  }
372
379
  //#endregion
373
380
  //#region ../../node_modules/.pnpm/@nodable+entities@2.2.0/node_modules/@nodable/entities/src/entities.js
374
- var de = {
381
+ var fe = {
375
382
  amp: "&",
376
383
  AMP: "&",
377
384
  lt: "<",
@@ -449,7 +456,7 @@ var de = {
449
456
  times: "×",
450
457
  div: "÷",
451
458
  divide: "÷"
452
- }, fe = {
459
+ }, pe = {
453
460
  Agrave: "À",
454
461
  agrave: "à",
455
462
  Aacute: "Á",
@@ -513,7 +520,7 @@ var de = {
513
520
  szlig: "ß",
514
521
  yuml: "ÿ",
515
522
  Yuml: "Ÿ"
516
- }, pe = {
523
+ }, me = {
517
524
  Amacr: "Ā",
518
525
  amacr: "ā",
519
526
  Abreve: "Ă",
@@ -631,7 +638,7 @@ var de = {
631
638
  zdot: "ż",
632
639
  Zcaron: "Ž",
633
640
  zcaron: "ž"
634
- }, me = {
641
+ }, he = {
635
642
  Alpha: "Α",
636
643
  alpha: "α",
637
644
  Beta: "Β",
@@ -702,7 +709,7 @@ var de = {
702
709
  Gammad: "Ϝ",
703
710
  gammad: "ϝ",
704
711
  digamma: "ϝ"
705
- }, he = {
712
+ }, ge = {
706
713
  Afr: "𝔄",
707
714
  afr: "𝔞",
708
715
  Acy: "А",
@@ -797,7 +804,7 @@ var de = {
797
804
  ubrcy: "ў",
798
805
  DZcy: "Џ",
799
806
  dzcy: "џ"
800
- }, ge = {
807
+ }, _e = {
801
808
  plus: "+",
802
809
  pm: "±",
803
810
  times: "×",
@@ -879,7 +886,7 @@ var de = {
879
886
  lesseqqgtr: "⪋",
880
887
  greater: ">",
881
888
  less: "<"
882
- }, _e = {
889
+ }, ve = {
883
890
  alefsym: "ℵ",
884
891
  aleph: "ℵ",
885
892
  beth: "ℶ",
@@ -1000,7 +1007,7 @@ var de = {
1000
1007
  npr: "⊀",
1001
1008
  nsucc: "⊁",
1002
1009
  nsc: "⊁"
1003
- }, ve = {
1010
+ }, ye = {
1004
1011
  larr: "←",
1005
1012
  leftarrow: "←",
1006
1013
  LeftArrow: "←",
@@ -1151,7 +1158,7 @@ var de = {
1151
1158
  LeftArrowBar: "⇤",
1152
1159
  rarrb: "⇥",
1153
1160
  RightArrowBar: "⇥"
1154
- }, ye = {
1161
+ }, be = {
1155
1162
  square: "□",
1156
1163
  Square: "□",
1157
1164
  squ: "□",
@@ -1244,7 +1251,7 @@ var de = {
1244
1251
  boxvH: "╪",
1245
1252
  boxVh: "╫",
1246
1253
  boxVH: "╬"
1247
- }, be = {
1254
+ }, xe = {
1248
1255
  excl: "!",
1249
1256
  iexcl: "¡",
1250
1257
  brvbar: "¦",
@@ -1295,7 +1302,7 @@ var de = {
1295
1302
  DiacriticalDot: "˙",
1296
1303
  DiacriticalDoubleAcute: "˝",
1297
1304
  grave: "`"
1298
- }, xe = {
1305
+ }, Se = {
1299
1306
  cent: "¢",
1300
1307
  pound: "£",
1301
1308
  curren: "¤",
@@ -1311,7 +1318,7 @@ var de = {
1311
1318
  won: "₩",
1312
1319
  yuan: "¥",
1313
1320
  cedil: "¸"
1314
- }, Se = {
1321
+ }, Ce = {
1315
1322
  frac12: "½",
1316
1323
  half: "½",
1317
1324
  frac13: "⅓",
@@ -1329,7 +1336,7 @@ var de = {
1329
1336
  frac58: "⅝",
1330
1337
  frac78: "⅞",
1331
1338
  frasl: "⁄"
1332
- }, Ce = {
1339
+ }, we = {
1333
1340
  trade: "™",
1334
1341
  TRADE: "™",
1335
1342
  telrec: "⌕",
@@ -1396,7 +1403,6 @@ var de = {
1396
1403
  nVDash: "⊯"
1397
1404
  };
1398
1405
  ({
1399
- ...de,
1400
1406
  ...fe,
1401
1407
  ...pe,
1402
1408
  ...me,
@@ -1408,15 +1414,16 @@ var de = {
1408
1414
  ...be,
1409
1415
  ...xe,
1410
1416
  ...Se,
1411
- ...Ce
1417
+ ...Ce,
1418
+ ...we
1412
1419
  });
1413
- var we = {
1420
+ var Te = {
1414
1421
  amp: "&",
1415
1422
  apos: "'",
1416
1423
  gt: ">",
1417
1424
  lt: "<",
1418
1425
  quot: "\""
1419
- }, Te = {
1426
+ }, Ee = {
1420
1427
  nbsp: "\xA0",
1421
1428
  copy: "©",
1422
1429
  reg: "®",
@@ -1441,10 +1448,10 @@ var we = {
1441
1448
  ALLOW: "allow",
1442
1449
  BLOCK: "block",
1443
1450
  THROW: "throw"
1444
- }), Ee = /* @__PURE__ */ new Set("!?\\\\/[]$%{}^&*()<>|+");
1445
- function De(e) {
1451
+ }), De = /* @__PURE__ */ new Set("!?\\\\/[]$%{}^&*()<>|+");
1452
+ function Oe(e) {
1446
1453
  if (e[0] === "#") throw Error(`[EntityReplacer] Invalid character '#' in entity name: "${e}"`);
1447
- for (let t of e) if (Ee.has(t)) throw Error(`[EntityReplacer] Invalid character '${t}' in entity name: "${e}"`);
1454
+ for (let t of e) if (De.has(t)) throw Error(`[EntityReplacer] Invalid character '${t}' in entity name: "${e}"`);
1448
1455
  return e;
1449
1456
  }
1450
1457
  function S(...e) {
@@ -1459,11 +1466,11 @@ function S(...e) {
1459
1466
  }
1460
1467
  return t;
1461
1468
  }
1462
- var C = "external", w = "base", Oe = "all";
1469
+ var C = "external", w = "base", T = "all";
1463
1470
  function ke(e) {
1464
- return !e || e === C ? new Set([C]) : e === Oe ? new Set([Oe]) : e === w ? new Set([w]) : Array.isArray(e) ? new Set(e) : new Set([C]);
1471
+ return !e || e === C ? new Set([C]) : e === T ? new Set([T]) : e === w ? new Set([w]) : Array.isArray(e) ? new Set(e) : new Set([C]);
1465
1472
  }
1466
- var T = Object.freeze({
1473
+ var E = Object.freeze({
1467
1474
  allow: 0,
1468
1475
  leave: 1,
1469
1476
  remove: 2,
@@ -1476,19 +1483,19 @@ var T = Object.freeze({
1476
1483
  function je(e) {
1477
1484
  if (!e) return {
1478
1485
  xmlVersion: 1,
1479
- onLevel: T.allow,
1480
- nullLevel: T.remove
1486
+ onLevel: E.allow,
1487
+ nullLevel: E.remove
1481
1488
  };
1482
- let t = e.xmlVersion === 1.1 ? 1.1 : 1, n = T[e.onNCR] ?? T.allow, r = T[e.nullNCR] ?? T.remove;
1489
+ let t = e.xmlVersion === 1.1 ? 1.1 : 1, n = E[e.onNCR] ?? E.allow, r = E[e.nullNCR] ?? E.remove;
1483
1490
  return {
1484
1491
  xmlVersion: t,
1485
1492
  onLevel: n,
1486
- nullLevel: Math.max(r, T.remove)
1493
+ nullLevel: Math.max(r, E.remove)
1487
1494
  };
1488
1495
  }
1489
1496
  var Me = class {
1490
1497
  constructor(e = {}) {
1491
- this._limit = e.limit || {}, this._maxTotalExpansions = this._limit.maxTotalExpansions || 0, this._maxExpandedLength = this._limit.maxExpandedLength || 0, this._postCheck = typeof e.postCheck == "function" ? e.postCheck : (e) => e, this._limitTiers = ke(this._limit.applyLimitsTo ?? C), this._numericAllowed = e.numericAllowed ?? !0, this._baseMap = S(we, e.namedEntities || null), this._externalMap = Object.create(null), this._inputMap = Object.create(null), this._totalExpansions = 0, this._expandedLength = 0, this._removeSet = new Set(e.remove && Array.isArray(e.remove) ? e.remove : []), this._leaveSet = new Set(e.leave && Array.isArray(e.leave) ? e.leave : []);
1498
+ this._limit = e.limit || {}, this._maxTotalExpansions = this._limit.maxTotalExpansions || 0, this._maxExpandedLength = this._limit.maxExpandedLength || 0, this._postCheck = typeof e.postCheck == "function" ? e.postCheck : (e) => e, this._limitTiers = ke(this._limit.applyLimitsTo ?? C), this._numericAllowed = e.numericAllowed ?? !0, this._baseMap = S(Te, e.namedEntities || null), this._externalMap = Object.create(null), this._inputMap = Object.create(null), this._totalExpansions = 0, this._expandedLength = 0, this._removeSet = new Set(e.remove && Array.isArray(e.remove) ? e.remove : []), this._leaveSet = new Set(e.leave && Array.isArray(e.leave) ? e.leave : []);
1492
1499
  let t = je(e.ncr);
1493
1500
  this._ncrXmlVersion = t.xmlVersion, this._ncrOnLevel = t.onLevel, this._ncrNullLevel = t.nullLevel, this._onExternalEntity = typeof e.onExternalEntity == "function" ? e.onExternalEntity : null, this._onInputEntity = typeof e.onInputEntity == "function" ? e.onInputEntity : null;
1494
1501
  }
@@ -1500,7 +1507,7 @@ var Me = class {
1500
1507
  return !0;
1501
1508
  }
1502
1509
  setExternalEntities(e) {
1503
- if (e) for (let t of Object.keys(e)) De(t);
1510
+ if (e) for (let t of Object.keys(e)) Oe(t);
1504
1511
  if (!this._onExternalEntity) {
1505
1512
  this._externalMap = S(e);
1506
1513
  return;
@@ -1510,7 +1517,7 @@ var Me = class {
1510
1517
  this._externalMap = n;
1511
1518
  }
1512
1519
  addExternalEntity(e, t) {
1513
- De(e), typeof t == "string" && t.indexOf("&") === -1 && this._applyRegistrationHook(this._onExternalEntity, e, t, "external") && (this._externalMap[e] = t);
1520
+ Oe(e), typeof t == "string" && t.indexOf("&") === -1 && this._applyRegistrationHook(this._onExternalEntity, e, t, "external") && (this._externalMap[e] = t);
1514
1521
  }
1515
1522
  addInputEntities(e) {
1516
1523
  if (this._totalExpansions = 0, this._expandedLength = 0, !this._onInputEntity) {
@@ -1579,7 +1586,7 @@ var Me = class {
1579
1586
  return this._postCheck(l, t);
1580
1587
  }
1581
1588
  _tierCounts(e) {
1582
- return this._limitTiers.has(Oe) ? !0 : this._limitTiers.has(e);
1589
+ return this._limitTiers.has(T) ? !0 : this._limitTiers.has(e);
1583
1590
  }
1584
1591
  _resolveName(e) {
1585
1592
  if (e in this._inputMap) return {
@@ -1596,14 +1603,14 @@ var Me = class {
1596
1603
  };
1597
1604
  }
1598
1605
  _classifyNCR(e) {
1599
- return e === 0 ? this._ncrNullLevel : e >= 55296 && e <= 57343 || this._ncrXmlVersion === 1 && e >= 1 && e <= 31 && !Ae.has(e) ? T.remove : -1;
1606
+ return e === 0 ? this._ncrNullLevel : e >= 55296 && e <= 57343 || this._ncrXmlVersion === 1 && e >= 1 && e <= 31 && !Ae.has(e) ? E.remove : -1;
1600
1607
  }
1601
1608
  _applyNCRAction(e, t, n) {
1602
1609
  switch (e) {
1603
- case T.allow: return String.fromCodePoint(n);
1604
- case T.remove: return "";
1605
- case T.leave: return;
1606
- case T.throw: throw Error(`[EntityDecoder] Prohibited numeric character reference &${t}; (U+${n.toString(16).toUpperCase().padStart(4, "0")})`);
1610
+ case E.allow: return String.fromCodePoint(n);
1611
+ case E.remove: return "";
1612
+ case E.leave: return;
1613
+ case E.throw: throw Error(`[EntityDecoder] Prohibited numeric character reference &${t}; (U+${n.toString(16).toUpperCase().padStart(4, "0")})`);
1607
1614
  default: return String.fromCodePoint(n);
1608
1615
  }
1609
1616
  }
@@ -1611,11 +1618,11 @@ var Me = class {
1611
1618
  let t = e.charCodeAt(1), n;
1612
1619
  if (n = t === 120 || t === 88 ? parseInt(e.slice(2), 16) : parseInt(e.slice(1), 10), Number.isNaN(n) || n < 0 || n > 1114111) return;
1613
1620
  let r = this._classifyNCR(n);
1614
- if (!this._numericAllowed && r < T.remove) return;
1621
+ if (!this._numericAllowed && r < E.remove) return;
1615
1622
  let i = r === -1 ? this._ncrOnLevel : Math.max(this._ncrOnLevel, r);
1616
1623
  return this._applyNCRAction(i, e, n);
1617
1624
  }
1618
- }, Ne = (e) => p.includes(e) ? "__" + e : e, Pe = {
1625
+ }, Ne = (e) => m.includes(e) ? "__" + e : e, Pe = {
1619
1626
  preserveOrder: !1,
1620
1627
  attributeNamePrefix: "@_",
1621
1628
  attributesGroupName: !1,
@@ -1663,7 +1670,7 @@ var Me = class {
1663
1670
  function Fe(e, t) {
1664
1671
  if (typeof e != "string") return;
1665
1672
  let n = e.toLowerCase();
1666
- if (p.some((e) => n === e.toLowerCase()) || m.some((e) => n === e.toLowerCase())) throw Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);
1673
+ if (m.some((e) => n === e.toLowerCase()) || h.some((e) => n === e.toLowerCase())) throw Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);
1667
1674
  }
1668
1675
  function Ie(e, t) {
1669
1676
  return typeof e == "boolean" ? {
@@ -1713,7 +1720,7 @@ var Le = function(e) {
1713
1720
  ];
1714
1721
  for (let { value: e, name: t } of n) e && Fe(e, t);
1715
1722
  return t.onDangerousProperty === null && (t.onDangerousProperty = Ne), t.processEntities = Ie(t.processEntities, t.htmlEntities), t.unpairedTagsSet = new Set(t.unpairedTags), t.stopNodes && Array.isArray(t.stopNodes) && (t.stopNodes = t.stopNodes.map((e) => typeof e == "string" && e.startsWith("*.") ? ".." + e.substring(2) : e)), t;
1716
- }, Re = typeof Symbol == "function" ? Symbol("XML Node Metadata") : "@@xmlMetadata", E = class {
1723
+ }, Re = typeof Symbol == "function" ? Symbol("XML Node Metadata") : "@@xmlMetadata", D = class {
1717
1724
  constructor(e) {
1718
1725
  this.tagname = e, this.child = [], this[":@"] = Object.create(null);
1719
1726
  }
@@ -1729,7 +1736,7 @@ var Le = function(e) {
1729
1736
  static getMetaDataSymbol() {
1730
1737
  return Re;
1731
1738
  }
1732
- }, ze = ":A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�", Be = ":A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�\\-\\.\\d·̀-ͯ‿-⁀", Ve = ":A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", He = ":A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿\\-\\.\\d·̀-ͯ҇‿-⁀", D = (e, t, n = "") => {
1739
+ }, ze = ":A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�", Be = ":A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�\\-\\.\\d·̀-ͯ‿-⁀", Ve = ":A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", He = ":A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿\\-\\.\\d·̀-ͯ҇‿-⁀", Ue = (e, t, n = "") => {
1733
1740
  let r = `[${e.replace(":", "")}][${t.replace(":", "")}]*`;
1734
1741
  return {
1735
1742
  name: RegExp(`^[${e}][${t}]*$`, n),
@@ -1738,15 +1745,15 @@ var Le = function(e) {
1738
1745
  nmToken: RegExp(`^[${t}]+$`, n),
1739
1746
  nmTokens: RegExp(`^[${t}]+(?:\\s+[${t}]+)*$`, n)
1740
1747
  };
1741
- }, Ue = D(ze, Be), We = D(Ve, He, "u"), Ge = D(":A-Za-z_", ":A-Za-z_\\-\\.\\d"), Ke = (e = "1.0", t = !1) => t ? Ge : e === "1.1" ? We : Ue, qe = (e, { xmlVersion: t = "1.0", asciiOnly: n = !1 } = {}) => Ke(t, n).qName.test(e), Je = [
1748
+ }, We = Ue(ze, Be), Ge = Ue(Ve, He, "u"), Ke = Ue(":A-Za-z_", ":A-Za-z_\\-\\.\\d"), qe = (e = "1.0", t = !1) => t ? Ke : e === "1.1" ? Ge : We, Je = (e, { xmlVersion: t = "1.0", asciiOnly: n = !1 } = {}) => qe(t, n).qName.test(e), Ye = [
1742
1749
  "name",
1743
1750
  "ncName",
1744
1751
  "qName",
1745
1752
  "nmToken",
1746
1753
  "nmTokens"
1747
- ], Ye = (e, { xmlVersion: t = "1.0", asciiOnly: n = !1, maxCacheSize: r = 2048 } = {}) => {
1748
- if (!Je.includes(e)) throw TypeError(`Unknown production "${e}". Must be one of: ${Je.join(", ")}`);
1749
- let i = Ke(t, n)[e], a = /* @__PURE__ */ new Map(), o = (e) => {
1754
+ ], Xe = (e, { xmlVersion: t = "1.0", asciiOnly: n = !1, maxCacheSize: r = 2048 } = {}) => {
1755
+ if (!Ye.includes(e)) throw TypeError(`Unknown production "${e}". Must be one of: ${Ye.join(", ")}`);
1756
+ let i = qe(t, n)[e], a = /* @__PURE__ */ new Map(), o = (e) => {
1750
1757
  let t = a.get(e);
1751
1758
  if (t !== void 0) return t;
1752
1759
  let n = i.test(e);
@@ -1755,7 +1762,7 @@ var Le = function(e) {
1755
1762
  return o.reset = () => {
1756
1763
  a = /* @__PURE__ */ new Map();
1757
1764
  }, o;
1758
- }, Xe = class {
1765
+ }, Ze = class {
1759
1766
  constructor(e, t) {
1760
1767
  this.suppressValidationErr = !e, this.options = e, this.xmlVersion = t || 1;
1761
1768
  }
@@ -1847,7 +1854,7 @@ var Le = function(e) {
1847
1854
  let n = t;
1848
1855
  for (; t < e.length && !/\s/.test(e[t]);) t++;
1849
1856
  let r = e.substring(n, t);
1850
- if (!this.suppressValidationErr && !qe(r, { xmlVersion: this.xmlVersion })) throw Error(`Invalid element name: "${r}"`);
1857
+ if (!this.suppressValidationErr && !Je(r, { xmlVersion: this.xmlVersion })) throw Error(`Invalid element name: "${r}"`);
1851
1858
  t = O(e, t);
1852
1859
  let i = "";
1853
1860
  if (e[t] === "E" && k(e, "MPTY", t)) t += 4;
@@ -1920,12 +1927,12 @@ function k(e, t, n) {
1920
1927
  return !0;
1921
1928
  }
1922
1929
  function A(e, t) {
1923
- if (qe(e, { xmlVersion: t })) return e;
1930
+ if (Je(e, { xmlVersion: t })) return e;
1924
1931
  throw Error(`Invalid entity name ${e}`);
1925
1932
  }
1926
1933
  //#endregion
1927
1934
  //#region ../../node_modules/.pnpm/anynum@1.0.1/node_modules/anynum/digitTable.js
1928
- var Ze = [
1935
+ var Qe = [
1929
1936
  48,
1930
1937
  1632,
1931
1938
  1776,
@@ -1987,14 +1994,14 @@ var Ze = [
1987
1994
  124144,
1988
1995
  125264,
1989
1996
  130032
1990
- ], Qe = /* @__PURE__ */ new Map(), $e = 65535, et = 1632, tt = new Uint8Array(63904).fill(255);
1991
- for (let e of Ze) for (let t = 0; t < 10; t++) {
1997
+ ], $e = /* @__PURE__ */ new Map(), et = 65535, tt = 1632, j = new Uint8Array(63904).fill(255);
1998
+ for (let e of Qe) for (let t = 0; t < 10; t++) {
1992
1999
  let n = e + t;
1993
- n <= $e ? tt[n - et] = t : Qe.set(n, t);
2000
+ n <= et ? j[n - tt] = t : $e.set(n, t);
1994
2001
  }
1995
2002
  //#endregion
1996
2003
  //#region ../../node_modules/.pnpm/anynum@1.0.1/node_modules/anynum/anynum.js
1997
- var nt = 48, rt = 57, it = 45, j = new Set([
2004
+ var nt = 48, rt = 57, it = 45, M = new Set([
1998
2005
  8722,
1999
2006
  65293,
2000
2007
  65123
@@ -2008,7 +2015,7 @@ function at(e) {
2008
2015
  let i = e.charCodeAt(r);
2009
2016
  if (!(i >= nt && i <= rt || i === it)) {
2010
2017
  if (i < 1632) {
2011
- if (j.has(i)) {
2018
+ if (M.has(i)) {
2012
2019
  n = r;
2013
2020
  break;
2014
2021
  }
@@ -2019,7 +2026,7 @@ function at(e) {
2019
2026
  let t = e.charCodeAt(r + 1);
2020
2027
  if (t >= 56320 && t <= 57343) {
2021
2028
  let e = 65536 + (i - 55296 << 10) + (t - 56320);
2022
- if (Qe.has(e)) {
2029
+ if ($e.has(e)) {
2023
2030
  n = r;
2024
2031
  break;
2025
2032
  }
@@ -2027,7 +2034,7 @@ function at(e) {
2027
2034
  }
2028
2035
  continue;
2029
2036
  }
2030
- if (tt[i - 1632] !== 255 || j.has(i)) {
2037
+ if (j[i - 1632] !== 255 || M.has(i)) {
2031
2038
  n = r;
2032
2039
  break;
2033
2040
  }
@@ -2043,14 +2050,14 @@ function at(e) {
2043
2050
  continue;
2044
2051
  }
2045
2052
  if (n < 1632) {
2046
- r.push(j.has(n) ? "-" : e[i]);
2053
+ r.push(M.has(n) ? "-" : e[i]);
2047
2054
  continue;
2048
2055
  }
2049
2056
  if (n >= 55296 && n <= 56319) {
2050
2057
  if (i + 1 < t) {
2051
2058
  let t = e.charCodeAt(i + 1);
2052
2059
  if (t >= 56320 && t <= 57343) {
2053
- let e = 65536 + (n - 55296 << 10) + (t - 56320), a = Qe.get(e);
2060
+ let e = 65536 + (n - 55296 << 10) + (t - 56320), a = $e.get(e);
2054
2061
  if (a !== void 0) {
2055
2062
  r.push(String.fromCharCode(a + 48)), i++;
2056
2063
  continue;
@@ -2060,11 +2067,11 @@ function at(e) {
2060
2067
  r.push(e[i]);
2061
2068
  continue;
2062
2069
  }
2063
- if (j.has(n)) {
2070
+ if (M.has(n)) {
2064
2071
  r.push("-");
2065
2072
  continue;
2066
2073
  }
2067
- let a = tt[n - et];
2074
+ let a = j[n - tt];
2068
2075
  r.push(a === 255 ? e[i] : String.fromCharCode(a + 48));
2069
2076
  }
2070
2077
  return r.join("");
@@ -2086,10 +2093,10 @@ function dt(e, t = {}) {
2086
2093
  let n = e.trim();
2087
2094
  if (n.length === 0 || t.skipLike !== void 0 && t.skipLike.test(n)) return e;
2088
2095
  if (n === "0" || t.unicode && (n = at(n), n === "0")) return 0;
2089
- if (t.hex && ot.test(n)) return ht(n, 16);
2090
- if (t.binary && st.test(n)) return ht(n, 2);
2091
- if (t.octal && ct.test(n)) return ht(n, 8);
2092
- if (!isFinite(n)) return gt(e, Number(n), t);
2096
+ if (t.hex && ot.test(n)) return N(n, 16);
2097
+ if (t.binary && st.test(n)) return N(n, 2);
2098
+ if (t.octal && ct.test(n)) return N(n, 8);
2099
+ if (!isFinite(n)) return ht(e, Number(n), t);
2093
2100
  if (n.includes("e") || n.includes("E")) return pt(e, n, t);
2094
2101
  {
2095
2102
  let r = lt.exec(n);
@@ -2119,14 +2126,14 @@ function pt(e, t, n) {
2119
2126
  function mt(e) {
2120
2127
  return e && e.indexOf(".") !== -1 ? (e = e.replace(/0+$/, ""), e === "." ? e = "0" : e[0] === "." ? e = "0" + e : e[e.length - 1] === "." && (e = e.substring(0, e.length - 1)), e) : e;
2121
2128
  }
2122
- function ht(e, t) {
2129
+ function N(e, t) {
2123
2130
  let n = e.trim();
2124
2131
  if ((t === 2 || t === 8) && (e = n.substring(2)), parseInt) return parseInt(e, t);
2125
2132
  if (Number.parseInt) return Number.parseInt(e, t);
2126
2133
  if (window && window.parseInt) return window.parseInt(e, t);
2127
2134
  throw Error("parseInt, Number.parseInt, window.parseInt are not supported");
2128
2135
  }
2129
- function gt(e, t, n) {
2136
+ function ht(e, t, n) {
2130
2137
  let r = t === Infinity;
2131
2138
  switch (n.infinity.toLowerCase()) {
2132
2139
  case "null": return null;
@@ -2137,14 +2144,14 @@ function gt(e, t, n) {
2137
2144
  }
2138
2145
  //#endregion
2139
2146
  //#region ../../node_modules/.pnpm/fast-xml-parser@5.10.0/node_modules/fast-xml-parser/src/ignoreAttributes.js
2140
- function _t(e) {
2147
+ function gt(e) {
2141
2148
  return typeof e == "function" ? e : Array.isArray(e) ? (t) => {
2142
2149
  for (let n of e) if (typeof n == "string" && t === n || n instanceof RegExp && n.test(t)) return !0;
2143
2150
  } : () => !1;
2144
2151
  }
2145
2152
  //#endregion
2146
2153
  //#region ../../node_modules/.pnpm/path-expression-matcher@1.6.2/node_modules/path-expression-matcher/src/Expression.js
2147
- var M = class {
2154
+ var P = class {
2148
2155
  constructor(e, t = {}, n) {
2149
2156
  this.pattern = e, this.separator = t.separator || ".", this.segments = this._parse(e), this.data = n, this._hasDeepWildcard = this.segments.some((e) => e.type === "deep-wildcard"), this._hasAttributeCondition = this.segments.some((e) => e.attrName !== void 0), this._hasPositionSelector = this.segments.some((e) => e.position !== void 0);
2150
2157
  }
@@ -2200,7 +2207,7 @@ var M = class {
2200
2207
  toString() {
2201
2208
  return this.pattern;
2202
2209
  }
2203
- }, vt = class {
2210
+ }, _t = class {
2204
2211
  constructor() {
2205
2212
  this._byDepthAndTag = /* @__PURE__ */ new Map(), this._wildcardByDepth = /* @__PURE__ */ new Map(), this._deepWildcards = [], this._deepByTerminalTag = /* @__PURE__ */ new Map(), this._patterns = /* @__PURE__ */ new Set(), this._sealed = !1;
2206
2213
  }
@@ -2258,7 +2265,7 @@ var M = class {
2258
2265
  for (let t = 0; t < this._deepWildcards.length; t++) if (e.matches(this._deepWildcards[t])) return this._deepWildcards[t];
2259
2266
  return null;
2260
2267
  }
2261
- }, yt = class {
2268
+ }, vt = class {
2262
2269
  constructor(e) {
2263
2270
  this._matcher = e;
2264
2271
  }
@@ -2315,9 +2322,9 @@ var M = class {
2315
2322
  matchesAny(e) {
2316
2323
  return e.matchesAny(this._matcher);
2317
2324
  }
2318
- }, N = class {
2325
+ }, F = class {
2319
2326
  constructor(e = {}) {
2320
- this.separator = e.separator || ".", this.path = [], this.siblingStacks = [], this._pathStringCache = null, this._view = new yt(this), this._keptAttrs = [];
2327
+ this.separator = e.separator || ".", this.path = [], this.siblingStacks = [], this._pathStringCache = null, this._view = new vt(this), this._keptAttrs = [];
2321
2328
  }
2322
2329
  push(e, t = null, n = null, r = null) {
2323
2330
  this._pathStringCache = null, this.path.length > 0 && (this.path[this.path.length - 1].values = void 0);
@@ -2468,7 +2475,7 @@ var M = class {
2468
2475
  readOnly() {
2469
2476
  return this._view;
2470
2477
  }
2471
- }, P = [
2478
+ }, I = [
2472
2479
  {
2473
2480
  id: "html-script-open",
2474
2481
  description: "<script opening tag",
@@ -2554,7 +2561,7 @@ var M = class {
2554
2561
  description: "<form tag — can be used for phishing / credential harvesting injection",
2555
2562
  pattern: /<form[\s>/]/i
2556
2563
  }
2557
- ], F = [
2564
+ ], L = [
2558
2565
  {
2559
2566
  id: "xml-cdata-injection",
2560
2567
  description: "CDATA section injection: <![CDATA[ breaks out of text node context",
@@ -2615,7 +2622,7 @@ var M = class {
2615
2622
  description: "?> closes an enclosing processing instruction",
2616
2623
  pattern: /\?>/
2617
2624
  }
2618
- ], bt = [
2625
+ ], yt = [
2619
2626
  {
2620
2627
  id: "svg-script-element",
2621
2628
  description: "<script element inside SVG executes JavaScript",
@@ -2681,7 +2688,7 @@ var M = class {
2681
2688
  description: "style= attribute containing javascript: (e.g. background:url(javascript:...))",
2682
2689
  pattern: /style\s*=[\s\S]{0,60}javascript\s*:/i
2683
2690
  }
2684
- ], I = [
2691
+ ], R = [
2685
2692
  {
2686
2693
  id: "sql-block-comment-open",
2687
2694
  description: "SQL block comment open: /* ... */ — unusual in legitimate user text",
@@ -2757,7 +2764,7 @@ var M = class {
2757
2764
  description: "INFORMATION_SCHEMA — reconnaissance query for table/column enumeration",
2758
2765
  pattern: /\bINFORMATION_SCHEMA\b/i
2759
2766
  }
2760
- ], xt = [
2767
+ ], bt = [
2761
2768
  {
2762
2769
  id: "shell-path-traversal-unix",
2763
2770
  description: "Unix path traversal: ../ — climbing the directory tree",
@@ -2848,7 +2855,7 @@ var M = class {
2848
2855
  description: "curl/wget with URL or flags — can exfiltrate data or download payloads",
2849
2856
  pattern: /\b(?:curl|wget)\s+(?:https?:\/\/|ftp:\/\/|-)/i
2850
2857
  }
2851
- ], St = [
2858
+ ], xt = [
2852
2859
  {
2853
2860
  id: "redos-nested-quantifier-plus",
2854
2861
  description: "Nested + quantifier inside a group with outer quantifier: (a+)+, (.+b)*, etc.",
@@ -2889,71 +2896,71 @@ var M = class {
2889
2896
  description: "Long alternation with many similar branches — polynomial backtracking risk",
2890
2897
  pattern: /\([^)]{0,200}(?:\|[^|)]{0,50}){9,}\)/
2891
2898
  }
2892
- ], L = "[\"'\\s]*:", Ct = [
2899
+ ], z = "[\"'\\s]*:", St = [
2893
2900
  {
2894
2901
  id: "nosql-where-operator",
2895
2902
  description: "$where — executes arbitrary JavaScript server-side in MongoDB",
2896
- pattern: RegExp(`\\$where${L}`, "i")
2903
+ pattern: RegExp(`\\$where${z}`, "i")
2897
2904
  },
2898
2905
  {
2899
2906
  id: "nosql-ne-operator",
2900
2907
  description: "$ne — \"not equal\" operator used to bypass equality checks",
2901
- pattern: RegExp(`\\$ne${L}`, "i")
2908
+ pattern: RegExp(`\\$ne${z}`, "i")
2902
2909
  },
2903
2910
  {
2904
2911
  id: "nosql-gt-operator",
2905
2912
  description: "$gt — \"greater than\" used to bypass password/value checks",
2906
- pattern: RegExp(`\\$gte?${L}`, "i")
2913
+ pattern: RegExp(`\\$gte?${z}`, "i")
2907
2914
  },
2908
2915
  {
2909
2916
  id: "nosql-lt-operator",
2910
2917
  description: "$lt / $lte — \"less than\" bypass variants",
2911
- pattern: RegExp(`\\$lte?${L}`, "i")
2918
+ pattern: RegExp(`\\$lte?${z}`, "i")
2912
2919
  },
2913
2920
  {
2914
2921
  id: "nosql-regex-operator",
2915
2922
  description: "$regex — can be used to extract data character by character (blind injection)",
2916
- pattern: RegExp(`\\$regex${L}`, "i")
2923
+ pattern: RegExp(`\\$regex${z}`, "i")
2917
2924
  },
2918
2925
  {
2919
2926
  id: "nosql-or-operator",
2920
2927
  description: "$or — logical OR; used to create always-true conditions",
2921
- pattern: RegExp(`\\$or${L}\\s*\\[`, "i")
2928
+ pattern: RegExp(`\\$or${z}\\s*\\[`, "i")
2922
2929
  },
2923
2930
  {
2924
2931
  id: "nosql-and-operator",
2925
2932
  description: "$and — logical AND operator injection",
2926
- pattern: RegExp(`\\$and${L}\\s*\\[`, "i")
2933
+ pattern: RegExp(`\\$and${z}\\s*\\[`, "i")
2927
2934
  },
2928
2935
  {
2929
2936
  id: "nosql-nor-operator",
2930
2937
  description: "$nor — logical NOR operator injection",
2931
- pattern: RegExp(`\\$nor${L}\\s*\\[`, "i")
2938
+ pattern: RegExp(`\\$nor${z}\\s*\\[`, "i")
2932
2939
  },
2933
2940
  {
2934
2941
  id: "nosql-exists-operator",
2935
2942
  description: "$exists — can enumerate fields to determine schema",
2936
- pattern: RegExp(`\\$exists${L}`, "i")
2943
+ pattern: RegExp(`\\$exists${z}`, "i")
2937
2944
  },
2938
2945
  {
2939
2946
  id: "nosql-in-operator",
2940
2947
  description: "$in — matches any value in a list; can enumerate values",
2941
- pattern: RegExp(`\\$in${L}\\s*\\[`, "i")
2948
+ pattern: RegExp(`\\$in${z}\\s*\\[`, "i")
2942
2949
  },
2943
2950
  {
2944
2951
  id: "nosql-expr-operator",
2945
2952
  description: "$expr — allows aggregation expressions in queries (MongoDB 3.6+)",
2946
- pattern: RegExp(`\\$expr${L}`, "i")
2953
+ pattern: RegExp(`\\$expr${z}`, "i")
2947
2954
  },
2948
2955
  {
2949
2956
  id: "nosql-function-operator",
2950
2957
  description: "$function — executes arbitrary JavaScript in MongoDB 4.4+",
2951
- pattern: RegExp(`\\$function${L}`, "i")
2958
+ pattern: RegExp(`\\$function${z}`, "i")
2952
2959
  },
2953
2960
  {
2954
2961
  id: "nosql-accumulator-operator",
2955
2962
  description: "$accumulator — custom aggregation with arbitrary JS execution",
2956
- pattern: RegExp(`\\$accumulator${L}`, "i")
2963
+ pattern: RegExp(`\\$accumulator${z}`, "i")
2957
2964
  },
2958
2965
  {
2959
2966
  id: "nosql-proto-pollution",
@@ -2970,7 +2977,7 @@ var M = class {
2970
2977
  description: "[\"__proto__\"] — bracket-notation prototype pollution",
2971
2978
  pattern: /\[["']__proto__["']\]/
2972
2979
  }
2973
- ], wt = [
2980
+ ], Ct = [
2974
2981
  {
2975
2982
  id: "log-crlf-injection",
2976
2983
  description: "CRLF injection: literal \\r or \\n embeds fake log lines",
@@ -3031,7 +3038,7 @@ var M = class {
3031
3038
  description: "ANSI escape sequence: ESC[ — can manipulate terminal output when logs are tailed",
3032
3039
  pattern: /\x1b\[/
3033
3040
  }
3034
- ], Tt = [
3041
+ ], wt = [
3035
3042
  {
3036
3043
  id: "sql-line-comment",
3037
3044
  description: "SQL line comment: -- followed by whitespace or end of string",
@@ -3047,22 +3054,22 @@ var M = class {
3047
3054
  description: "Hex-encoded string injection: 0x41414141 style (MySQL)",
3048
3055
  pattern: /\b0x[0-9a-f]{4,}/i
3049
3056
  }
3050
- ], Et = [...I, ...Tt];
3051
- P.label = "HTML", F.label = "XML", bt.label = "SVG", I.label = "SQL", Et.label = "SQL-STRICT", xt.label = "SHELL", St.label = "REDOS", Ct.label = "NOSQL", wt.label = "LOG", Object.freeze({
3052
- HTML: P,
3053
- XML: F,
3054
- SVG: bt,
3055
- SQL: I,
3056
- "SQL-STRICT": Et,
3057
- SHELL: xt,
3058
- REDOS: St,
3059
- NOSQL: Ct,
3060
- LOG: wt
3057
+ ], Tt = [...R, ...wt];
3058
+ I.label = "HTML", L.label = "XML", yt.label = "SVG", R.label = "SQL", Tt.label = "SQL-STRICT", bt.label = "SHELL", xt.label = "REDOS", St.label = "NOSQL", Ct.label = "LOG", Object.freeze({
3059
+ HTML: I,
3060
+ XML: L,
3061
+ SVG: yt,
3062
+ SQL: R,
3063
+ "SQL-STRICT": Tt,
3064
+ SHELL: bt,
3065
+ REDOS: xt,
3066
+ NOSQL: St,
3067
+ LOG: Ct
3061
3068
  });
3062
- function Dt(e) {
3069
+ function Et(e) {
3063
3070
  if (typeof e != "string") throw TypeError(`is-unsafe: first argument must be a string, got ${typeof e}`);
3064
3071
  }
3065
- function Ot(e) {
3072
+ function Dt(e) {
3066
3073
  if (!(e instanceof RegExp)) {
3067
3074
  if (Array.isArray(e)) {
3068
3075
  if (e.length === 0) throw TypeError("is-unsafe: context must not be an empty array");
@@ -3074,7 +3081,7 @@ function Ot(e) {
3074
3081
  throw TypeError(`is-unsafe: second argument must be a PatternList (e.g. HTML), an array of PatternLists (e.g. [HTML, XML]), or a RegExp. Got: ${typeof e}`);
3075
3082
  }
3076
3083
  }
3077
- function kt(e) {
3084
+ function Ot(e) {
3078
3085
  return e instanceof RegExp ? {
3079
3086
  lists: null,
3080
3087
  regex: e
@@ -3086,7 +3093,7 @@ function kt(e) {
3086
3093
  regex: null
3087
3094
  };
3088
3095
  }
3089
- function At(e, t) {
3096
+ function kt(e, t) {
3090
3097
  let n = t.label ?? "CUSTOM";
3091
3098
  for (let r of t) if (r.pattern.test(e)) return {
3092
3099
  context: n,
@@ -3096,16 +3103,16 @@ function At(e, t) {
3096
3103
  };
3097
3104
  return null;
3098
3105
  }
3099
- function jt(e, t) {
3100
- Dt(e), Ot(t);
3101
- let { lists: n, regex: r } = kt(t);
3106
+ function At(e, t) {
3107
+ Et(e), Dt(t);
3108
+ let { lists: n, regex: r } = Ot(t);
3102
3109
  if (r) return r.test(e);
3103
- for (let t of n) if (At(e, t) !== null) return !0;
3110
+ for (let t of n) if (kt(e, t) !== null) return !0;
3104
3111
  return !1;
3105
3112
  }
3106
3113
  //#endregion
3107
3114
  //#region ../../node_modules/.pnpm/fast-xml-parser@5.10.0/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js
3108
- function Mt(e, t) {
3115
+ function jt(e, t) {
3109
3116
  if (!e) return {};
3110
3117
  let n = t.attributesGroupName ? e[t.attributesGroupName] : e;
3111
3118
  if (!n) return {};
@@ -3116,7 +3123,7 @@ function Mt(e, t) {
3116
3123
  } else r[e] = n[e];
3117
3124
  return r;
3118
3125
  }
3119
- function Nt(e) {
3126
+ function Mt(e) {
3120
3127
  if (!e || typeof e != "string") return;
3121
3128
  let t = e.indexOf(":");
3122
3129
  if (t !== -1 && t > 0) {
@@ -3124,13 +3131,13 @@ function Nt(e) {
3124
3131
  if (n !== "xmlns") return n;
3125
3132
  }
3126
3133
  }
3127
- var Pt = class {
3134
+ var Nt = class {
3128
3135
  constructor(e, t) {
3129
- this.options = e, this.currentNode = null, this.tagsNodeStack = [], this.parseXml = zt, this.parseTextData = Ft, this.resolveNameSpace = It, this.buildAttributesMap = Rt, this.isItStopNode = Ut, this.replaceEntitiesValue = Vt, this.readStopNodeData = Kt, this.saveTextToParentTag = Ht, this.addChild = Bt, this.ignoreAttributesFn = _t(this.options.ignoreAttributes), this.entityExpansionCount = 0, this.currentExpandedLength = 0;
3130
- let n = { ...we };
3136
+ this.options = e, this.currentNode = null, this.tagsNodeStack = [], this.parseXml = Rt, this.parseTextData = Pt, this.resolveNameSpace = Ft, this.buildAttributesMap = Lt, this.isItStopNode = Ht, this.replaceEntitiesValue = Bt, this.readStopNodeData = Gt, this.saveTextToParentTag = Vt, this.addChild = zt, this.ignoreAttributesFn = gt(this.options.ignoreAttributes), this.entityExpansionCount = 0, this.currentExpandedLength = 0;
3137
+ let n = { ...Te };
3131
3138
  this.options.entityDecoder ? this.entityDecoder = this.options.entityDecoder : (typeof this.options.htmlEntities == "object" ? n = this.options.htmlEntities : this.options.htmlEntities === !0 && (n = {
3132
- ...Te,
3133
- ...xe
3139
+ ...Ee,
3140
+ ...Se
3134
3141
  }), this.entityDecoder = new Me({
3135
3142
  namedEntities: {
3136
3143
  ...n,
@@ -3142,27 +3149,27 @@ var Pt = class {
3142
3149
  maxExpandedLength: this.options.processEntities.maxExpandedLength,
3143
3150
  applyLimitsTo: this.options.processEntities.appliesTo
3144
3151
  },
3145
- onInputEntity: (e, t) => jt(t, [P, F]) ? x.BLOCK : x.ALLOW
3146
- })), this.matcher = new N(), this.readonlyMatcher = this.matcher.readOnly(), this.isCurrentNodeStopNode = !1, this.stopNodeExpressionsSet = new vt();
3152
+ onInputEntity: (e, t) => At(t, [I, L]) ? x.BLOCK : x.ALLOW
3153
+ })), this.matcher = new F(), this.readonlyMatcher = this.matcher.readOnly(), this.isCurrentNodeStopNode = !1, this.stopNodeExpressionsSet = new _t();
3147
3154
  let r = this.options.stopNodes;
3148
3155
  if (r && r.length > 0) {
3149
3156
  for (let e = 0; e < r.length; e++) {
3150
3157
  let t = r[e];
3151
- typeof t == "string" ? this.stopNodeExpressionsSet.add(new M(t)) : t instanceof M && this.stopNodeExpressionsSet.add(t);
3158
+ typeof t == "string" ? this.stopNodeExpressionsSet.add(new P(t)) : t instanceof P && this.stopNodeExpressionsSet.add(t);
3152
3159
  }
3153
3160
  this.stopNodeExpressionsSet.seal();
3154
3161
  }
3155
3162
  }
3156
3163
  };
3157
- function Ft(e, t, n, r, i, a, o) {
3164
+ function Pt(e, t, n, r, i, a, o) {
3158
3165
  let s = this.options;
3159
3166
  if (e !== void 0 && (s.trimValues && !r && (e = e.trim()), e.length > 0)) {
3160
3167
  o || (e = this.replaceEntitiesValue(e, t, n));
3161
3168
  let r = s.jPath ? n.toString() : n, c = s.tagValueProcessor(t, e, r, i, a);
3162
- return c == null ? e : typeof c != typeof e || c !== e ? c : s.trimValues || e.trim() === e ? qt(e, s.parseTagValue, s.numberParseOptions) : e;
3169
+ return c == null ? e : typeof c != typeof e || c !== e ? c : s.trimValues || e.trim() === e ? Kt(e, s.parseTagValue, s.numberParseOptions) : e;
3163
3170
  }
3164
3171
  }
3165
- function It(e) {
3172
+ function Ft(e) {
3166
3173
  if (this.options.removeNSPrefix) {
3167
3174
  let t = e.split(":"), n = e.charAt(0) === "/" ? "/" : "";
3168
3175
  if (t[0] === "xmlns") return "";
@@ -3170,11 +3177,11 @@ function It(e) {
3170
3177
  }
3171
3178
  return e;
3172
3179
  }
3173
- var Lt = /* @__PURE__ */ RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?", "gm");
3174
- function Rt(e, t, n, r = !1) {
3180
+ var It = /* @__PURE__ */ RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?", "gm");
3181
+ function Lt(e, t, n, r = !1) {
3175
3182
  let i = this.options;
3176
3183
  if (r === !0 || i.ignoreAttributes !== !0 && typeof e == "string") {
3177
- let r = u(e, Lt), a = r.length, o = {}, s = Array(a), c = !1, l = {};
3184
+ let r = d(e, It), a = r.length, o = {}, s = Array(a), c = !1, l = {};
3178
3185
  for (let e = 0; e < a; e++) {
3179
3186
  let t = this.resolveNameSpace(r[e][1]), a = r[e][4];
3180
3187
  if (t.length && a !== void 0) {
@@ -3183,14 +3190,14 @@ function Rt(e, t, n, r = !1) {
3183
3190
  }
3184
3191
  }
3185
3192
  c && typeof t == "object" && t.updateCurrent && t.updateCurrent(l);
3186
- let d = i.jPath ? t.toString() : this.readonlyMatcher, f = !1;
3193
+ let u = i.jPath ? t.toString() : this.readonlyMatcher, f = !1;
3187
3194
  for (let e = 0; e < a; e++) {
3188
3195
  let t = this.resolveNameSpace(r[e][1]);
3189
- if (this.ignoreAttributesFn(t, d)) continue;
3196
+ if (this.ignoreAttributesFn(t, u)) continue;
3190
3197
  let n = i.attributeNamePrefix + t;
3191
3198
  if (t.length) if (i.transformAttributeName && (n = i.transformAttributeName(n)), n = Jt(n, i), r[e][4] !== void 0) {
3192
- let r = s[e], a = i.attributeValueProcessor(t, r, d);
3193
- a == null ? o[n] = r : typeof a != typeof r || a !== r ? o[n] = a : o[n] = qt(r, i.parseAttributeValue, i.numberParseOptions), f = !0;
3199
+ let r = s[e], a = i.attributeValueProcessor(t, r, u);
3200
+ a == null ? o[n] = r : typeof a != typeof r || a !== r ? o[n] = a : o[n] = Kt(r, i.parseAttributeValue, i.numberParseOptions), f = !0;
3194
3201
  } else i.allowBooleanAttributes && (o[n] = !0, f = !0);
3195
3202
  }
3196
3203
  if (!f) return;
@@ -3201,25 +3208,25 @@ function Rt(e, t, n, r = !1) {
3201
3208
  return o;
3202
3209
  }
3203
3210
  }
3204
- var zt = function(e) {
3211
+ var Rt = function(e) {
3205
3212
  e = e.replace(/\r\n?/g, "\n");
3206
- let t = new E("!xml"), n = t, r = "";
3213
+ let t = new D("!xml"), n = t, r = "";
3207
3214
  this.matcher.reset(), this.entityDecoder.reset(), this.entityExpansionCount = 0, this.currentExpandedLength = 0;
3208
- let i = this.options, a = new Xe(i.processEntities), o = e.length;
3215
+ let i = this.options, a = new Ze(i.processEntities), o = e.length;
3209
3216
  for (let s = 0; s < o; s++) if (e[s] === "<") {
3210
3217
  let c = e.charCodeAt(s + 1);
3211
3218
  if (c === 47) {
3212
- let t = R(e, ">", s, "Closing Tag is not closed."), a = e.substring(s + 2, t).trim();
3219
+ let t = B(e, ">", s, "Closing Tag is not closed."), a = e.substring(s + 2, t).trim();
3213
3220
  if (i.removeNSPrefix) {
3214
3221
  let e = a.indexOf(":");
3215
3222
  e !== -1 && (a = a.substr(e + 1));
3216
3223
  }
3217
- a = B(i.transformTagName, a, "", i).tagName, n && (r = this.saveTextToParentTag(r, n, this.readonlyMatcher));
3224
+ a = qt(i.transformTagName, a, "", i).tagName, n && (r = this.saveTextToParentTag(r, n, this.readonlyMatcher));
3218
3225
  let o = this.matcher.getCurrentTag();
3219
3226
  if (a && i.unpairedTagsSet.has(a)) throw Error(`Unpaired tag can not be used as closing tag: </${a}>`);
3220
3227
  o && i.unpairedTagsSet.has(o) && (this.matcher.pop(), this.tagsNodeStack.pop()), this.matcher.pop(), this.isCurrentNodeStopNode = !1, n = this.tagsNodeStack.pop(), r = "", s = t;
3221
3228
  } else if (c === 63) {
3222
- let t = z(e, s, !1, "?>");
3229
+ let t = V(e, s, !1, "?>");
3223
3230
  if (!t) throw Error("Pi Tag is not closed.");
3224
3231
  r = this.saveTextToParentTag(r, n, this.readonlyMatcher);
3225
3232
  let o = this.buildAttributesMap(t.tagExp, this.matcher, t.tagName, !0);
@@ -3228,12 +3235,12 @@ var zt = function(e) {
3228
3235
  this.entityDecoder.setXmlVersion(Number(e) || 1), a.setXmlVersion(Number(e) || 1);
3229
3236
  }
3230
3237
  if (!(i.ignoreDeclaration && t.tagName === "?xml" || i.ignorePiTags)) {
3231
- let e = new E(t.tagName);
3238
+ let e = new D(t.tagName);
3232
3239
  e.add(i.textNodeName, ""), t.tagName !== t.tagExp && t.attrExpPresent && i.ignoreAttributes !== !0 && (e[":@"] = o), this.addChild(n, e, this.readonlyMatcher, s);
3233
3240
  }
3234
3241
  s = t.closeIndex + 1;
3235
3242
  } else if (c === 33 && e.charCodeAt(s + 2) === 45 && e.charCodeAt(s + 3) === 45) {
3236
- let t = R(e, "-->", s + 4, "Comment is not closed.");
3243
+ let t = B(e, "-->", s + 4, "Comment is not closed.");
3237
3244
  if (i.commentPropName) {
3238
3245
  let a = e.substring(s + 4, t - 2);
3239
3246
  r = this.saveTextToParentTag(r, n, this.readonlyMatcher), n.add(i.commentPropName, [{ [i.textNodeName]: a }]);
@@ -3243,25 +3250,25 @@ var zt = function(e) {
3243
3250
  let t = a.readDocType(e, s);
3244
3251
  this.entityDecoder.addInputEntities(t.entities), s = t.i;
3245
3252
  } else if (c === 33 && e.charCodeAt(s + 2) === 91) {
3246
- let t = R(e, "]]>", s, "CDATA is not closed.") - 2, a = e.substring(s + 9, t);
3253
+ let t = B(e, "]]>", s, "CDATA is not closed.") - 2, a = e.substring(s + 9, t);
3247
3254
  r = this.saveTextToParentTag(r, n, this.readonlyMatcher);
3248
3255
  let o = this.parseTextData(a, n.tagname, this.readonlyMatcher, !0, !1, !0, !0);
3249
3256
  o ??= "", i.cdataPropName ? n.add(i.cdataPropName, [{ [i.textNodeName]: a }]) : n.add(i.textNodeName, o), s = t + 2;
3250
3257
  } else {
3251
- let a = z(e, s, i.removeNSPrefix);
3258
+ let a = V(e, s, i.removeNSPrefix);
3252
3259
  if (!a) {
3253
3260
  let t = e.substring(Math.max(0, s - 50), Math.min(o, s + 50));
3254
3261
  throw Error(`readTagExp returned undefined at position ${s}. Context: "${t}"`);
3255
3262
  }
3256
3263
  let c = a.tagName, l = a.rawTagName, u = a.tagExp, d = a.attrExpPresent, f = a.closeIndex;
3257
- if ({tagName: c, tagExp: u} = B(i.transformTagName, c, u, i), i.strictReservedNames && (c === i.commentPropName || c === i.cdataPropName || c === i.textNodeName || c === i.attributesGroupName)) throw Error(`Invalid tag name: ${c}`);
3264
+ if ({tagName: c, tagExp: u} = qt(i.transformTagName, c, u, i), i.strictReservedNames && (c === i.commentPropName || c === i.cdataPropName || c === i.textNodeName || c === i.attributesGroupName)) throw Error(`Invalid tag name: ${c}`);
3258
3265
  n && r && n.tagname !== "!xml" && (r = this.saveTextToParentTag(r, n, this.readonlyMatcher, !1));
3259
3266
  let p = n;
3260
3267
  p && i.unpairedTagsSet.has(p.tagname) && (n = this.tagsNodeStack.pop(), this.matcher.pop());
3261
3268
  let m = !1;
3262
3269
  u.length > 0 && u.lastIndexOf("/") === u.length - 1 && (m = !0, c[c.length - 1] === "/" ? (c = c.substr(0, c.length - 1), u = c) : u = u.substr(0, u.length - 1), d = c !== u);
3263
3270
  let h = null, g;
3264
- g = Nt(l), c !== t.tagname && this.matcher.push(c, {}, g), c !== u && d && (h = this.buildAttributesMap(u, this.matcher, c), h && Mt(h, i)), c !== t.tagname && (this.isCurrentNodeStopNode = this.isItStopNode());
3271
+ g = Mt(l), c !== t.tagname && this.matcher.push(c, {}, g), c !== u && d && (h = this.buildAttributesMap(u, this.matcher, c), h && jt(h, i)), c !== t.tagname && (this.isCurrentNodeStopNode = this.isItStopNode());
3265
3272
  let _ = s;
3266
3273
  if (this.isCurrentNodeStopNode) {
3267
3274
  let t = "";
@@ -3272,19 +3279,19 @@ var zt = function(e) {
3272
3279
  if (!n) throw Error(`Unexpected end of ${l}`);
3273
3280
  s = n.i, t = n.tagContent;
3274
3281
  }
3275
- let r = new E(c);
3282
+ let r = new D(c);
3276
3283
  h && (r[":@"] = h), r.add(i.textNodeName, t), this.matcher.pop(), this.isCurrentNodeStopNode = !1, this.addChild(n, r, this.readonlyMatcher, _);
3277
3284
  } else {
3278
3285
  if (m) {
3279
- ({tagName: c, tagExp: u} = B(i.transformTagName, c, u, i));
3280
- let e = new E(c);
3286
+ ({tagName: c, tagExp: u} = qt(i.transformTagName, c, u, i));
3287
+ let e = new D(c);
3281
3288
  h && (e[":@"] = h), this.addChild(n, e, this.readonlyMatcher, _), this.matcher.pop(), this.isCurrentNodeStopNode = !1;
3282
3289
  } else if (i.unpairedTagsSet.has(c)) {
3283
- let e = new E(c);
3290
+ let e = new D(c);
3284
3291
  h && (e[":@"] = h), this.addChild(n, e, this.readonlyMatcher, _), this.matcher.pop(), this.isCurrentNodeStopNode = !1, s = a.closeIndex;
3285
3292
  continue;
3286
3293
  } else {
3287
- let e = new E(c);
3294
+ let e = new D(c);
3288
3295
  if (this.tagsNodeStack.length > i.maxNestedTags) throw Error("Maximum nested tags exceeded");
3289
3296
  this.tagsNodeStack.push(n), h && (e[":@"] = h), this.addChild(n, e, this.readonlyMatcher, _), n = e;
3290
3297
  }
@@ -3294,12 +3301,12 @@ var zt = function(e) {
3294
3301
  } else r += e[s];
3295
3302
  return t.child;
3296
3303
  };
3297
- function Bt(e, t, n, r) {
3304
+ function zt(e, t, n, r) {
3298
3305
  this.options.captureMetaData || (r = void 0);
3299
3306
  let i = this.options.jPath ? n.toString() : n, a = this.options.updateTag(t.tagname, i, t[":@"]);
3300
3307
  a === !1 || (typeof a == "string" && (t.tagname = a), e.addChild(t, r));
3301
3308
  }
3302
- function Vt(e, t, n) {
3309
+ function Bt(e, t, n) {
3303
3310
  let r = this.options.processEntities;
3304
3311
  if (!r || !r.enabled) return e;
3305
3312
  if (r.allowedTags) {
@@ -3312,13 +3319,13 @@ function Vt(e, t, n) {
3312
3319
  }
3313
3320
  return this.entityDecoder.decode(e);
3314
3321
  }
3315
- function Ht(e, t, n, r) {
3322
+ function Vt(e, t, n, r) {
3316
3323
  return e &&= (r === void 0 && (r = t.child.length === 0), e = this.parseTextData(e, t.tagname, n, !1, t[":@"] ? Object.keys(t[":@"]).length !== 0 : !1, r), e !== void 0 && e !== "" && t.add(this.options.textNodeName, e), ""), e;
3317
3324
  }
3318
- function Ut() {
3325
+ function Ht() {
3319
3326
  return this.stopNodeExpressionsSet.size === 0 ? !1 : this.matcher.matchesAny(this.stopNodeExpressionsSet);
3320
3327
  }
3321
- function Wt(e, t, n = ">") {
3328
+ function Ut(e, t, n = ">") {
3322
3329
  let r = 0, i = e.length, a = n.charCodeAt(0), o = n.length > 1 ? n.charCodeAt(1) : -1, s = "", c = t;
3323
3330
  for (let n = t; n < i; n++) {
3324
3331
  let t = e.charCodeAt(n);
@@ -3336,18 +3343,18 @@ function Wt(e, t, n = ">") {
3336
3343
  else t === 9 && !r && (s += e.substring(c, n) + " ", c = n + 1);
3337
3344
  }
3338
3345
  }
3339
- function R(e, t, n, r) {
3346
+ function B(e, t, n, r) {
3340
3347
  let i = e.indexOf(t, n);
3341
3348
  if (i === -1) throw Error(r);
3342
3349
  return i + t.length - 1;
3343
3350
  }
3344
- function Gt(e, t, n, r) {
3351
+ function Wt(e, t, n, r) {
3345
3352
  let i = e.indexOf(t, n);
3346
3353
  if (i === -1) throw Error(r);
3347
3354
  return i;
3348
3355
  }
3349
- function z(e, t, n, r = ">") {
3350
- let i = Wt(e, t + 1, r);
3356
+ function V(e, t, n, r = ">") {
3357
+ let i = Ut(e, t + 1, r);
3351
3358
  if (!i) return;
3352
3359
  let a = i.data, o = i.index, s = a.search(/\s/), c = a, l = !0;
3353
3360
  s !== -1 && (c = a.substring(0, s), a = a.substring(s + 1).trimStart());
@@ -3364,34 +3371,34 @@ function z(e, t, n, r = ">") {
3364
3371
  rawTagName: u
3365
3372
  };
3366
3373
  }
3367
- function Kt(e, t, n) {
3374
+ function Gt(e, t, n) {
3368
3375
  let r = n, i = 1, a = e.length;
3369
3376
  for (; n < a; n++) if (e[n] === "<") {
3370
3377
  let a = e.charCodeAt(n + 1);
3371
3378
  if (a === 47) {
3372
- let a = Gt(e, ">", n, `${t} is not closed`);
3379
+ let a = Wt(e, ">", n, `${t} is not closed`);
3373
3380
  if (e.substring(n + 2, a).trim() === t && (i--, i === 0)) return {
3374
3381
  tagContent: e.substring(r, n),
3375
3382
  i: a
3376
3383
  };
3377
3384
  n = a;
3378
- } else if (a === 63) n = R(e, "?>", n + 1, "StopNode is not closed.");
3379
- else if (a === 33 && e.charCodeAt(n + 2) === 45 && e.charCodeAt(n + 3) === 45) n = R(e, "-->", n + 3, "StopNode is not closed.");
3380
- else if (a === 33 && e.charCodeAt(n + 2) === 91) n = R(e, "]]>", n, "StopNode is not closed.") - 2;
3385
+ } else if (a === 63) n = B(e, "?>", n + 1, "StopNode is not closed.");
3386
+ else if (a === 33 && e.charCodeAt(n + 2) === 45 && e.charCodeAt(n + 3) === 45) n = B(e, "-->", n + 3, "StopNode is not closed.");
3387
+ else if (a === 33 && e.charCodeAt(n + 2) === 91) n = B(e, "]]>", n, "StopNode is not closed.") - 2;
3381
3388
  else {
3382
- let r = z(e, n, !1);
3389
+ let r = V(e, n, !1);
3383
3390
  r && ((r && r.tagName) === t && r.tagExp[r.tagExp.length - 1] !== "/" && i++, n = r.closeIndex);
3384
3391
  }
3385
3392
  }
3386
3393
  }
3387
- function qt(e, t, n) {
3394
+ function Kt(e, t, n) {
3388
3395
  if (t && typeof e == "string") {
3389
3396
  let t = e.trim();
3390
3397
  return t === "true" ? !0 : t === "false" ? !1 : dt(e, n);
3391
- } else if (f(e)) return e;
3398
+ } else if (p(e)) return e;
3392
3399
  else return "";
3393
3400
  }
3394
- function B(e, t, n, r) {
3401
+ function qt(e, t, n, r) {
3395
3402
  if (e) {
3396
3403
  let r = e(t);
3397
3404
  n === t && (n = r), t = r;
@@ -3402,13 +3409,13 @@ function B(e, t, n, r) {
3402
3409
  };
3403
3410
  }
3404
3411
  function Jt(e, t) {
3405
- if (m.includes(e)) throw Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);
3406
- return p.includes(e) ? t.onDangerousProperty(e) : e;
3412
+ if (h.includes(e)) throw Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);
3413
+ return m.includes(e) ? t.onDangerousProperty(e) : e;
3407
3414
  }
3408
3415
  //#endregion
3409
3416
  //#region ../../node_modules/.pnpm/fast-xml-parser@5.10.0/node_modules/fast-xml-parser/src/xmlparser/node2json.js
3410
- var V = E.getMetaDataSymbol();
3411
- function Yt(e, t) {
3417
+ var Yt = D.getMetaDataSymbol();
3418
+ function Xt(e, t) {
3412
3419
  if (!e || typeof e != "object") return {};
3413
3420
  if (!t) return e;
3414
3421
  let n = {};
@@ -3418,22 +3425,22 @@ function Yt(e, t) {
3418
3425
  } else n[r] = e[r];
3419
3426
  return n;
3420
3427
  }
3421
- function Xt(e, t, n, r) {
3422
- return Zt(e, t, n, r);
3423
- }
3424
3428
  function Zt(e, t, n, r) {
3429
+ return Qt(e, t, n, r);
3430
+ }
3431
+ function Qt(e, t, n, r) {
3425
3432
  let i, a = {};
3426
3433
  for (let o = 0; o < e.length; o++) {
3427
- let s = e[o], c = Qt(s);
3434
+ let s = e[o], c = $t(s);
3428
3435
  if (c !== void 0 && c !== t.textNodeName) {
3429
- let e = Yt(s[":@"] || {}, t.attributeNamePrefix);
3436
+ let e = Xt(s[":@"] || {}, t.attributeNamePrefix);
3430
3437
  n.push(c, e);
3431
3438
  }
3432
3439
  if (c === t.textNodeName) i === void 0 ? i = s[c] : i += "" + s[c];
3433
3440
  else if (c === void 0) continue;
3434
3441
  else if (s[c]) {
3435
- let e = Zt(s[c], t, n, r), i = en(e, t);
3436
- if (Object.keys(e).length === 0 && t.alwaysCreateTextNode && (e[t.textNodeName] = ""), s[":@"] ? $t(e, s[":@"], r, t) : Object.keys(e).length === 1 && e[t.textNodeName] !== void 0 && !t.alwaysCreateTextNode ? e = e[t.textNodeName] : Object.keys(e).length === 0 && (t.alwaysCreateTextNode ? e[t.textNodeName] = "" : e = ""), s[V] !== void 0 && typeof e == "object" && e && (e[V] = s[V]), a[c] !== void 0 && Object.prototype.hasOwnProperty.call(a, c)) Array.isArray(a[c]) || (a[c] = [a[c]]), a[c].push(e);
3442
+ let e = Qt(s[c], t, n, r), i = tn(e, t);
3443
+ if (Object.keys(e).length === 0 && t.alwaysCreateTextNode && (e[t.textNodeName] = ""), s[":@"] ? en(e, s[":@"], r, t) : Object.keys(e).length === 1 && e[t.textNodeName] !== void 0 && !t.alwaysCreateTextNode ? e = e[t.textNodeName] : Object.keys(e).length === 0 && (t.alwaysCreateTextNode ? e[t.textNodeName] = "" : e = ""), s[Yt] !== void 0 && typeof e == "object" && e && (e[Yt] = s[Yt]), a[c] !== void 0 && Object.prototype.hasOwnProperty.call(a, c)) Array.isArray(a[c]) || (a[c] = [a[c]]), a[c].push(e);
3437
3444
  else {
3438
3445
  let n = t.jPath ? r.toString() : r;
3439
3446
  t.isArray(c, n, i) ? a[c] = [e] : a[c] = e;
@@ -3443,14 +3450,14 @@ function Zt(e, t, n, r) {
3443
3450
  }
3444
3451
  return typeof i == "string" ? i.length > 0 && (a[t.textNodeName] = i) : i !== void 0 && (a[t.textNodeName] = i), a;
3445
3452
  }
3446
- function Qt(e) {
3453
+ function $t(e) {
3447
3454
  let t = Object.keys(e);
3448
3455
  for (let e = 0; e < t.length; e++) {
3449
3456
  let n = t[e];
3450
3457
  if (n !== ":@") return n;
3451
3458
  }
3452
3459
  }
3453
- function $t(e, t, n, r) {
3460
+ function en(e, t, n, r) {
3454
3461
  if (t) {
3455
3462
  let i = Object.keys(t), a = i.length;
3456
3463
  for (let o = 0; o < a; o++) {
@@ -3459,13 +3466,13 @@ function $t(e, t, n, r) {
3459
3466
  }
3460
3467
  }
3461
3468
  }
3462
- function en(e, t) {
3469
+ function tn(e, t) {
3463
3470
  let { textNodeName: n } = t, r = Object.keys(e).length;
3464
3471
  return !!(r === 0 || r === 1 && (e[n] || typeof e[n] == "boolean" || e[n] === 0));
3465
3472
  }
3466
3473
  //#endregion
3467
3474
  //#region ../../node_modules/.pnpm/fast-xml-parser@5.10.0/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js
3468
- var tn = class {
3475
+ var nn = class {
3469
3476
  constructor(e) {
3470
3477
  this.externalEntities = {}, this.options = Le(e);
3471
3478
  }
@@ -3474,11 +3481,11 @@ var tn = class {
3474
3481
  else if (typeof e != "string") throw Error("XML data is accepted in String or Bytes[] form.");
3475
3482
  if (t) {
3476
3483
  t === !0 && (t = {});
3477
- let n = g(e, t);
3484
+ let n = _(e, t);
3478
3485
  if (n !== !0) throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`);
3479
3486
  }
3480
- let n = new Pt(this.options, this.externalEntities), r = n.parseXml(e);
3481
- return this.options.preserveOrder || r === void 0 ? r : Xt(r, this.options, n.matcher, n.readonlyMatcher);
3487
+ let n = new Nt(this.options, this.externalEntities), r = n.parseXml(e);
3488
+ return this.options.preserveOrder || r === void 0 ? r : Zt(r, this.options, n.matcher, n.readonlyMatcher);
3482
3489
  }
3483
3490
  addEntity(e, t) {
3484
3491
  if (t.indexOf("&") !== -1) throw Error("Entity value can't have '&'");
@@ -3487,27 +3494,27 @@ var tn = class {
3487
3494
  this.externalEntities[e] = t;
3488
3495
  }
3489
3496
  static getMetaDataSymbol() {
3490
- return E.getMetaDataSymbol();
3497
+ return D.getMetaDataSymbol();
3491
3498
  }
3492
3499
  };
3493
3500
  //#endregion
3494
3501
  //#region ../../node_modules/.pnpm/fast-xml-builder@1.3.0/node_modules/fast-xml-builder/src/util.js
3495
- function H(e) {
3502
+ function rn(e) {
3496
3503
  return String(e).replace(/--/g, "- -").replace(/--/g, "- -").replace(/-$/, "- ");
3497
3504
  }
3498
- function nn(e) {
3505
+ function an(e) {
3499
3506
  return String(e).replace(/\]\]>/g, "]]]]><![CDATA[>");
3500
3507
  }
3501
- function U(e) {
3508
+ function H(e) {
3502
3509
  return String(e).replace(/"/g, "&quot;").replace(/'/g, "&apos;");
3503
3510
  }
3504
3511
  //#endregion
3505
3512
  //#region ../../node_modules/.pnpm/fast-xml-builder@1.3.0/node_modules/fast-xml-builder/src/orderedJs2Xml.js
3506
- var rn = "\n";
3507
- function an(e, t) {
3513
+ var on = "\n";
3514
+ function sn(e, t) {
3508
3515
  if (!Array.isArray(e) || e.length === 0) return "1.0";
3509
3516
  let n = e[0];
3510
- if (fn(n) === "?xml") {
3517
+ if (mn(n) === "?xml") {
3511
3518
  let e = n[":@"];
3512
3519
  if (e) {
3513
3520
  let n = t.attributeNamePrefix + "version";
@@ -3516,121 +3523,121 @@ function an(e, t) {
3516
3523
  }
3517
3524
  return "1.0";
3518
3525
  }
3519
- function on(e, t, n, r, i) {
3526
+ function cn(e, t, n, r, i) {
3520
3527
  return !n.sanitizeName || i(e) ? e : n.sanitizeName(e, {
3521
3528
  isAttribute: t,
3522
3529
  matcher: r.readOnly()
3523
3530
  });
3524
3531
  }
3525
- function sn(e, t) {
3532
+ function ln(e, t) {
3526
3533
  let n = "";
3527
- t.format && (n = rn);
3534
+ t.format && (n = on);
3528
3535
  let r = [];
3529
3536
  if (t.stopNodes && Array.isArray(t.stopNodes)) for (let e = 0; e < t.stopNodes.length; e++) {
3530
3537
  let n = t.stopNodes[e];
3531
- typeof n == "string" ? r.push(new M(n)) : n instanceof M && r.push(n);
3538
+ typeof n == "string" ? r.push(new P(n)) : n instanceof P && r.push(n);
3532
3539
  }
3533
- let i = Ye("qName", { xmlVersion: an(e, t) }), a = new N();
3534
- return cn(e, t, n, a, r, i);
3540
+ let i = Xe("qName", { xmlVersion: sn(e, t) }), a = new F();
3541
+ return un(e, t, n, a, r, i);
3535
3542
  }
3536
- function cn(e, t, n, r, i, a) {
3543
+ function un(e, t, n, r, i, a) {
3537
3544
  let o = "", s = !1;
3538
3545
  if (t.maxNestedTags && r.getDepth() > t.maxNestedTags) throw Error("Maximum nested tags exceeded");
3539
3546
  if (!Array.isArray(e)) {
3540
3547
  if (e != null) {
3541
3548
  let n = e.toString();
3542
- return n = hn(n, t), n;
3549
+ return n = _n(n, t), n;
3543
3550
  }
3544
3551
  return "";
3545
3552
  }
3546
3553
  for (let c = 0; c < e.length; c++) {
3547
- let l = e[c], u = fn(l);
3554
+ let l = e[c], u = mn(l);
3548
3555
  if (u === void 0) continue;
3549
- let d = u === t.textNodeName || u === t.cdataPropName || u === t.commentPropName || u[0] === "?" ? u : on(u, !1, t, r, a), f = ln(l[":@"], t);
3556
+ let d = u === t.textNodeName || u === t.cdataPropName || u === t.commentPropName || u[0] === "?" ? u : cn(u, !1, t, r, a), f = dn(l[":@"], t);
3550
3557
  r.push(d, f);
3551
- let p = mn(r, i);
3558
+ let p = gn(r, i);
3552
3559
  if (d === t.textNodeName) {
3553
3560
  let e = l[u];
3554
- p || (e = t.tagValueProcessor(d, e), e = hn(e, t)), s && (o += n), o += e, s = !1, r.pop();
3561
+ p || (e = t.tagValueProcessor(d, e), e = _n(e, t)), s && (o += n), o += e, s = !1, r.pop();
3555
3562
  continue;
3556
3563
  } else if (d === t.cdataPropName) {
3557
3564
  s && (o += n);
3558
- let e = l[u][0][t.textNodeName], i = nn(e);
3565
+ let e = l[u][0][t.textNodeName], i = an(e);
3559
3566
  o += `<![CDATA[${i}]]>`, s = !1, r.pop();
3560
3567
  continue;
3561
3568
  } else if (d === t.commentPropName) {
3562
- let e = l[u][0][t.textNodeName], i = H(e);
3569
+ let e = l[u][0][t.textNodeName], i = rn(e);
3563
3570
  o += n + `<!--${i}-->`, s = !0, r.pop();
3564
3571
  continue;
3565
3572
  } else if (d[0] === "?") {
3566
- let e = pn(l[":@"], t, p, r, a);
3573
+ let e = hn(l[":@"], t, p, r, a);
3567
3574
  o += (d === "?xml" ? "" : n) + `<${d}${e}?>`, s = !0, r.pop();
3568
3575
  continue;
3569
3576
  }
3570
3577
  let m = n;
3571
3578
  m !== "" && (m += t.indentBy);
3572
- let h = n + `<${d}${pn(l[":@"], t, p, r, a)}`, g;
3573
- g = p ? un(l[u], t) : cn(l[u], t, m, r, i, a), t.unpairedTags.indexOf(d) === -1 ? (!g || g.length === 0) && t.suppressEmptyNode ? o += h + "/>" : g && g.endsWith(">") ? o += h + `>${g}${n}</${d}>` : (o += h + ">", g && n !== "" && (g.includes("/>") || g.includes("</")) ? o += n + t.indentBy + g + n : o += g, o += `</${d}>`) : t.suppressUnpairedNode ? o += h + ">" : o += h + "/>", s = !0, r.pop();
3579
+ let h = n + `<${d}${hn(l[":@"], t, p, r, a)}`, g;
3580
+ g = p ? fn(l[u], t) : un(l[u], t, m, r, i, a), t.unpairedTags.indexOf(d) === -1 ? (!g || g.length === 0) && t.suppressEmptyNode ? o += h + "/>" : g && g.endsWith(">") ? o += h + `>${g}${n}</${d}>` : (o += h + ">", g && n !== "" && (g.includes("/>") || g.includes("</")) ? o += n + t.indentBy + g + n : o += g, o += `</${d}>`) : t.suppressUnpairedNode ? o += h + ">" : o += h + "/>", s = !0, r.pop();
3574
3581
  }
3575
3582
  return o;
3576
3583
  }
3577
- function ln(e, t) {
3584
+ function dn(e, t) {
3578
3585
  if (!e || t.ignoreAttributes) return null;
3579
3586
  let n = {}, r = !1;
3580
3587
  for (let i in e) {
3581
3588
  if (!Object.prototype.hasOwnProperty.call(e, i)) continue;
3582
3589
  let a = i.startsWith(t.attributeNamePrefix) ? i.substr(t.attributeNamePrefix.length) : i;
3583
- n[a] = U(e[i]), r = !0;
3590
+ n[a] = H(e[i]), r = !0;
3584
3591
  }
3585
3592
  return r ? n : null;
3586
3593
  }
3587
- function un(e, t) {
3594
+ function fn(e, t) {
3588
3595
  if (!Array.isArray(e)) return e == null ? "" : e.toString();
3589
3596
  let n = "";
3590
3597
  for (let r = 0; r < e.length; r++) {
3591
- let i = e[r], a = fn(i);
3598
+ let i = e[r], a = mn(i);
3592
3599
  if (a === t.textNodeName) n += i[a];
3593
3600
  else if (a === t.cdataPropName) n += i[a][0][t.textNodeName];
3594
3601
  else if (a === t.commentPropName) n += i[a][0][t.textNodeName];
3595
3602
  else if (a && a[0] === "?") continue;
3596
3603
  else if (a) {
3597
- let e = dn(i[":@"], t), r = un(i[a], t);
3604
+ let e = pn(i[":@"], t), r = fn(i[a], t);
3598
3605
  !r || r.length === 0 ? n += `<${a}${e}/>` : n += `<${a}${e}>${r}</${a}>`;
3599
3606
  }
3600
3607
  }
3601
3608
  return n;
3602
3609
  }
3603
- function dn(e, t) {
3610
+ function pn(e, t) {
3604
3611
  let n = "";
3605
3612
  if (e && !t.ignoreAttributes) for (let r in e) {
3606
3613
  if (!Object.prototype.hasOwnProperty.call(e, r)) continue;
3607
3614
  let i = e[r];
3608
- i === !0 && t.suppressBooleanAttributes ? n += ` ${r.substr(t.attributeNamePrefix.length)}` : n += ` ${r.substr(t.attributeNamePrefix.length)}="${U(i)}"`;
3615
+ i === !0 && t.suppressBooleanAttributes ? n += ` ${r.substr(t.attributeNamePrefix.length)}` : n += ` ${r.substr(t.attributeNamePrefix.length)}="${H(i)}"`;
3609
3616
  }
3610
3617
  return n;
3611
3618
  }
3612
- function fn(e) {
3619
+ function mn(e) {
3613
3620
  let t = Object.keys(e);
3614
3621
  for (let n = 0; n < t.length; n++) {
3615
3622
  let r = t[n];
3616
3623
  if (Object.prototype.hasOwnProperty.call(e, r) && r !== ":@") return r;
3617
3624
  }
3618
3625
  }
3619
- function pn(e, t, n, r, i) {
3626
+ function hn(e, t, n, r, i) {
3620
3627
  let a = "";
3621
3628
  if (e && !t.ignoreAttributes) for (let o in e) {
3622
3629
  if (!Object.prototype.hasOwnProperty.call(e, o)) continue;
3623
- let s = o.substr(t.attributeNamePrefix.length), c = n ? s : on(s, !0, t, r, i), l;
3624
- n ? l = e[o] : (l = t.attributeValueProcessor(o, e[o]), l = hn(l, t)), l === !0 && t.suppressBooleanAttributes ? a += ` ${c}` : a += ` ${c}="${U(l)}"`;
3630
+ let s = o.substr(t.attributeNamePrefix.length), c = n ? s : cn(s, !0, t, r, i), l;
3631
+ n ? l = e[o] : (l = t.attributeValueProcessor(o, e[o]), l = _n(l, t)), l === !0 && t.suppressBooleanAttributes ? a += ` ${c}` : a += ` ${c}="${H(l)}"`;
3625
3632
  }
3626
3633
  return a;
3627
3634
  }
3628
- function mn(e, t) {
3635
+ function gn(e, t) {
3629
3636
  if (!t || t.length === 0) return !1;
3630
3637
  for (let n = 0; n < t.length; n++) if (e.matches(t[n])) return !0;
3631
3638
  return !1;
3632
3639
  }
3633
- function hn(e, t) {
3640
+ function _n(e, t) {
3634
3641
  if (e && e.length > 0 && t.processEntities) for (let n = 0; n < t.entities.length; n++) {
3635
3642
  let r = t.entities[n];
3636
3643
  e = e.replace(r.regex, r.val);
@@ -3639,14 +3646,14 @@ function hn(e, t) {
3639
3646
  }
3640
3647
  //#endregion
3641
3648
  //#region ../../node_modules/.pnpm/fast-xml-builder@1.3.0/node_modules/fast-xml-builder/src/ignoreAttributes.js
3642
- function gn(e) {
3649
+ function vn(e) {
3643
3650
  return typeof e == "function" ? e : Array.isArray(e) ? (t) => {
3644
3651
  for (let n of e) if (typeof n == "string" && t === n || n instanceof RegExp && n.test(t)) return !0;
3645
3652
  } : () => !1;
3646
3653
  }
3647
3654
  //#endregion
3648
3655
  //#region ../../node_modules/.pnpm/fast-xml-builder@1.3.0/node_modules/fast-xml-builder/src/fxb.js
3649
- var _n = {
3656
+ var yn = {
3650
3657
  attributeNamePrefix: "@_",
3651
3658
  attributesGroupName: !1,
3652
3659
  textNodeName: "#text",
@@ -3695,18 +3702,18 @@ var _n = {
3695
3702
  jPath: !0,
3696
3703
  sanitizeName: !1
3697
3704
  };
3698
- function W(e) {
3699
- if (this.options = Object.assign({}, _n, e), this.options.stopNodes && Array.isArray(this.options.stopNodes) && (this.options.stopNodes = this.options.stopNodes.map((e) => typeof e == "string" && e.startsWith("*.") ? ".." + e.substring(2) : e)), this.stopNodeExpressions = [], this.options.stopNodes && Array.isArray(this.options.stopNodes)) for (let e = 0; e < this.options.stopNodes.length; e++) {
3705
+ function U(e) {
3706
+ if (this.options = Object.assign({}, yn, e), this.options.stopNodes && Array.isArray(this.options.stopNodes) && (this.options.stopNodes = this.options.stopNodes.map((e) => typeof e == "string" && e.startsWith("*.") ? ".." + e.substring(2) : e)), this.stopNodeExpressions = [], this.options.stopNodes && Array.isArray(this.options.stopNodes)) for (let e = 0; e < this.options.stopNodes.length; e++) {
3700
3707
  let t = this.options.stopNodes[e];
3701
- typeof t == "string" ? this.stopNodeExpressions.push(new M(t)) : t instanceof M && this.stopNodeExpressions.push(t);
3708
+ typeof t == "string" ? this.stopNodeExpressions.push(new P(t)) : t instanceof P && this.stopNodeExpressions.push(t);
3702
3709
  }
3703
3710
  this.options.ignoreAttributes === !0 || this.options.attributesGroupName ? this.isAttribute = function() {
3704
3711
  return !1;
3705
- } : (this.ignoreAttributesFn = gn(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = Sn), this.processTextOrObjNode = bn, this.options.format ? (this.indentate = xn, this.tagEndChar = ">\n", this.newLine = "\n") : (this.indentate = function() {
3712
+ } : (this.ignoreAttributesFn = vn(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = wn), this.processTextOrObjNode = Sn, this.options.format ? (this.indentate = Cn, this.tagEndChar = ">\n", this.newLine = "\n") : (this.indentate = function() {
3706
3713
  return "";
3707
3714
  }, this.tagEndChar = ">", this.newLine = "");
3708
3715
  }
3709
- function vn(e, t) {
3716
+ function bn(e, t) {
3710
3717
  let n = e["?xml"];
3711
3718
  if (n && typeof n == "object") {
3712
3719
  if (t.attributesGroupName && n[t.attributesGroupName]) {
@@ -3718,33 +3725,33 @@ function vn(e, t) {
3718
3725
  }
3719
3726
  return "1.0";
3720
3727
  }
3721
- function yn(e, t, n, r, i) {
3728
+ function xn(e, t, n, r, i) {
3722
3729
  return !n.sanitizeName || i(e) ? e : n.sanitizeName(e, {
3723
3730
  isAttribute: t,
3724
3731
  matcher: r.readOnly()
3725
3732
  });
3726
3733
  }
3727
- W.prototype.build = function(e) {
3728
- if (this.options.preserveOrder) return sn(e, this.options);
3734
+ U.prototype.build = function(e) {
3735
+ if (this.options.preserveOrder) return ln(e, this.options);
3729
3736
  {
3730
3737
  Array.isArray(e) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (e = { [this.options.arrayNodeName]: e });
3731
- let t = new N(), n = Ye("qName", { xmlVersion: vn(e, this.options) });
3738
+ let t = new F(), n = Xe("qName", { xmlVersion: bn(e, this.options) });
3732
3739
  return this.j2x(e, 0, t, n).val;
3733
3740
  }
3734
- }, W.prototype.j2x = function(e, t, n, r) {
3741
+ }, U.prototype.j2x = function(e, t, n, r) {
3735
3742
  let i = "", a = "";
3736
3743
  if (this.options.maxNestedTags && n.getDepth() >= this.options.maxNestedTags) throw Error("Maximum nested tags exceeded");
3737
3744
  let o = this.options.jPath ? n.toString() : n, s = this.checkStopNode(n);
3738
3745
  for (let c in e) {
3739
3746
  if (!Object.prototype.hasOwnProperty.call(e, c)) continue;
3740
- let l = c === this.options.textNodeName || c === this.options.cdataPropName || c === this.options.commentPropName || this.options.attributesGroupName && c === this.options.attributesGroupName || this.isAttribute(c) || c[0] === "?" ? c : yn(c, !1, this.options, n, r);
3747
+ let l = c === this.options.textNodeName || c === this.options.cdataPropName || c === this.options.commentPropName || this.options.attributesGroupName && c === this.options.attributesGroupName || this.isAttribute(c) || c[0] === "?" ? c : xn(c, !1, this.options, n, r);
3741
3748
  if (e[c] === void 0) this.isAttribute(c) && (a += "");
3742
3749
  else if (e[c] === null) this.isAttribute(c) || l === this.options.cdataPropName || l === this.options.commentPropName ? a += "" : l[0] === "?" ? a += this.indentate(t) + "<" + l + "?" + this.tagEndChar : a += this.indentate(t) + "<" + l + "/" + this.tagEndChar;
3743
3750
  else if (e[c] instanceof Date) a += this.buildTextValNode(e[c], l, "", t, n);
3744
3751
  else if (typeof e[c] != "object") {
3745
3752
  let u = this.isAttribute(c);
3746
3753
  if (u && !this.ignoreAttributesFn(u, o)) {
3747
- let t = yn(u, !0, this.options, n, r);
3754
+ let t = xn(u, !0, this.options, n, r);
3748
3755
  i += this.buildAttrPairStr(t, "" + e[c], s);
3749
3756
  } else if (!u) if (c === this.options.textNodeName) {
3750
3757
  let t = this.options.tagValueProcessor(c, "" + e[c]);
@@ -3783,7 +3790,7 @@ W.prototype.build = function(e) {
3783
3790
  } else if (this.options.attributesGroupName && c === this.options.attributesGroupName) {
3784
3791
  let t = Object.keys(e[c]), a = t.length;
3785
3792
  for (let o = 0; o < a; o++) {
3786
- let a = yn(t[o], !0, this.options, n, r);
3793
+ let a = xn(t[o], !0, this.options, n, r);
3787
3794
  i += this.buildAttrPairStr(a, "" + e[c][t[o]], s);
3788
3795
  }
3789
3796
  } else a += this.processTextOrObjNode(e[c], l, t, n, r);
@@ -3792,10 +3799,10 @@ W.prototype.build = function(e) {
3792
3799
  attrStr: i,
3793
3800
  val: a
3794
3801
  };
3795
- }, W.prototype.buildAttrPairStr = function(e, t, n) {
3796
- return n || (t = this.options.attributeValueProcessor(e, "" + t), t = this.replaceEntitiesValue(t)), this.options.suppressBooleanAttributes && t === "true" ? " " + e : " " + e + "=\"" + U(t) + "\"";
3802
+ }, U.prototype.buildAttrPairStr = function(e, t, n) {
3803
+ return n || (t = this.options.attributeValueProcessor(e, "" + t), t = this.replaceEntitiesValue(t)), this.options.suppressBooleanAttributes && t === "true" ? " " + e : " " + e + "=\"" + H(t) + "\"";
3797
3804
  };
3798
- function bn(e, t, n, r, i) {
3805
+ function Sn(e, t, n, r, i) {
3799
3806
  let a = this.extractAttributes(e);
3800
3807
  if (r.push(t, a), this.checkStopNode(r)) {
3801
3808
  let i = this.buildRawContent(e), a = this.buildAttributesForStopNode(e);
@@ -3804,7 +3811,7 @@ function bn(e, t, n, r, i) {
3804
3811
  let o = this.j2x(e, n + 1, r, i);
3805
3812
  return r.pop(), t[0] === "?" ? this.buildTextValNode("", t, o.attrStr, n, r) : e[this.options.textNodeName] !== void 0 && Object.keys(e).length === 1 ? this.buildTextValNode(e[this.options.textNodeName], t, o.attrStr, n, r) : this.buildObjectNode(o.val, t, o.attrStr, n);
3806
3813
  }
3807
- W.prototype.extractAttributes = function(e) {
3814
+ U.prototype.extractAttributes = function(e) {
3808
3815
  if (!e || typeof e != "object") return null;
3809
3816
  let t = {}, n = !1;
3810
3817
  if (this.options.attributesGroupName && e[this.options.attributesGroupName]) {
@@ -3812,15 +3819,15 @@ W.prototype.extractAttributes = function(e) {
3812
3819
  for (let e in r) {
3813
3820
  if (!Object.prototype.hasOwnProperty.call(r, e)) continue;
3814
3821
  let i = e.startsWith(this.options.attributeNamePrefix) ? e.substring(this.options.attributeNamePrefix.length) : e;
3815
- t[i] = U(r[e]), n = !0;
3822
+ t[i] = H(r[e]), n = !0;
3816
3823
  }
3817
3824
  } else for (let r in e) {
3818
3825
  if (!Object.prototype.hasOwnProperty.call(e, r)) continue;
3819
3826
  let i = this.isAttribute(r);
3820
- i && (t[i] = U(e[r]), n = !0);
3827
+ i && (t[i] = H(e[r]), n = !0);
3821
3828
  }
3822
3829
  return n ? t : null;
3823
- }, W.prototype.buildRawContent = function(e) {
3830
+ }, U.prototype.buildRawContent = function(e) {
3824
3831
  if (typeof e == "string") return e;
3825
3832
  if (typeof e != "object" || !e) return String(e);
3826
3833
  if (e[this.options.textNodeName] !== void 0) return e[this.options.textNodeName];
@@ -3841,7 +3848,7 @@ W.prototype.extractAttributes = function(e) {
3841
3848
  } else t += `<${n}>${r}</${n}>`;
3842
3849
  }
3843
3850
  return t;
3844
- }, W.prototype.buildAttributesForStopNode = function(e) {
3851
+ }, U.prototype.buildAttributesForStopNode = function(e) {
3845
3852
  if (!e || typeof e != "object") return "";
3846
3853
  let t = "";
3847
3854
  if (this.options.attributesGroupName && e[this.options.attributesGroupName]) {
@@ -3849,87 +3856,87 @@ W.prototype.extractAttributes = function(e) {
3849
3856
  for (let e in n) {
3850
3857
  if (!Object.prototype.hasOwnProperty.call(n, e)) continue;
3851
3858
  let r = e.startsWith(this.options.attributeNamePrefix) ? e.substring(this.options.attributeNamePrefix.length) : e, i = n[e];
3852
- i === !0 && this.options.suppressBooleanAttributes ? t += " " + r : t += " " + r + "=\"" + U(i) + "\"";
3859
+ i === !0 && this.options.suppressBooleanAttributes ? t += " " + r : t += " " + r + "=\"" + H(i) + "\"";
3853
3860
  }
3854
3861
  } else for (let n in e) {
3855
3862
  if (!Object.prototype.hasOwnProperty.call(e, n)) continue;
3856
3863
  let r = this.isAttribute(n);
3857
3864
  if (r) {
3858
3865
  let i = e[n];
3859
- i === !0 && this.options.suppressBooleanAttributes ? t += " " + r : t += " " + r + "=\"" + U(i) + "\"";
3866
+ i === !0 && this.options.suppressBooleanAttributes ? t += " " + r : t += " " + r + "=\"" + H(i) + "\"";
3860
3867
  }
3861
3868
  }
3862
3869
  return t;
3863
- }, W.prototype.buildObjectNode = function(e, t, n, r) {
3870
+ }, U.prototype.buildObjectNode = function(e, t, n, r) {
3864
3871
  if (e === "") return t[0] === "?" ? this.indentate(r) + "<" + t + n + "?" + this.tagEndChar : this.indentate(r) + "<" + t + n + this.closeTag(t) + this.tagEndChar;
3865
3872
  if (t[0] === "?") return this.indentate(r) + "<" + t + n + "?" + this.tagEndChar;
3866
3873
  {
3867
3874
  let i = "</" + t + this.tagEndChar, a = "";
3868
- return t[0] === "?" && (a = "?", i = ""), (n || n === "") && e.indexOf("<") === -1 ? this.indentate(r) + "<" + t + n + a + ">" + e + i : this.options.commentPropName !== !1 && t === this.options.commentPropName && a.length === 0 ? this.indentate(r) + `<!--${H(e)}-->` + this.newLine : this.indentate(r) + "<" + t + n + a + this.tagEndChar + e + this.indentate(r) + i;
3875
+ return t[0] === "?" && (a = "?", i = ""), (n || n === "") && e.indexOf("<") === -1 ? this.indentate(r) + "<" + t + n + a + ">" + e + i : this.options.commentPropName !== !1 && t === this.options.commentPropName && a.length === 0 ? this.indentate(r) + `<!--${rn(e)}-->` + this.newLine : this.indentate(r) + "<" + t + n + a + this.tagEndChar + e + this.indentate(r) + i;
3869
3876
  }
3870
- }, W.prototype.closeTag = function(e) {
3877
+ }, U.prototype.closeTag = function(e) {
3871
3878
  let t = "";
3872
3879
  return this.options.unpairedTags.indexOf(e) === -1 ? t = this.options.suppressEmptyNode ? "/" : `></${e}` : this.options.suppressUnpairedNode || (t = "/"), t;
3873
- }, W.prototype.checkStopNode = function(e) {
3880
+ }, U.prototype.checkStopNode = function(e) {
3874
3881
  if (!this.stopNodeExpressions || this.stopNodeExpressions.length === 0) return !1;
3875
3882
  for (let t = 0; t < this.stopNodeExpressions.length; t++) if (e.matches(this.stopNodeExpressions[t])) return !0;
3876
3883
  return !1;
3877
- }, W.prototype.buildTextValNode = function(e, t, n, r, i) {
3884
+ }, U.prototype.buildTextValNode = function(e, t, n, r, i) {
3878
3885
  if (this.options.cdataPropName !== !1 && t === this.options.cdataPropName) {
3879
- let t = nn(e);
3886
+ let t = an(e);
3880
3887
  return this.indentate(r) + `<![CDATA[${t}]]>` + this.newLine;
3881
3888
  } else if (this.options.commentPropName !== !1 && t === this.options.commentPropName) {
3882
- let t = H(e);
3889
+ let t = rn(e);
3883
3890
  return this.indentate(r) + `<!--${t}-->` + this.newLine;
3884
3891
  } else if (t[0] === "?") return this.indentate(r) + "<" + t + n + "?" + this.tagEndChar;
3885
3892
  else {
3886
3893
  let i = this.options.tagValueProcessor(t, e);
3887
3894
  return i = this.replaceEntitiesValue(i), i === "" ? this.indentate(r) + "<" + t + n + this.closeTag(t) + this.tagEndChar : this.indentate(r) + "<" + t + n + ">" + i + "</" + t + this.tagEndChar;
3888
3895
  }
3889
- }, W.prototype.replaceEntitiesValue = function(e) {
3896
+ }, U.prototype.replaceEntitiesValue = function(e) {
3890
3897
  if (e && e.length > 0 && this.options.processEntities) for (let t = 0; t < this.options.entities.length; t++) {
3891
3898
  let n = this.options.entities[t];
3892
3899
  e = e.replace(n.regex, n.val);
3893
3900
  }
3894
3901
  return e;
3895
3902
  };
3896
- function xn(e) {
3903
+ function Cn(e) {
3897
3904
  return this.options.indentBy.repeat(e);
3898
3905
  }
3899
- function Sn(e) {
3906
+ function wn(e) {
3900
3907
  return e.startsWith(this.options.attributeNamePrefix) && e !== this.options.textNodeName ? e.substr(this.attrPrefixLen) : !1;
3901
3908
  }
3902
3909
  //#endregion
3903
3910
  //#region ../../node_modules/.pnpm/fast-xml-parser@5.10.0/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js
3904
- var Cn = W, G = e.object({
3911
+ var Tn = U, W = e.object({
3905
3912
  created_at: e.string(),
3906
3913
  updated_at: e.string()
3907
- }), wn = e.object({
3914
+ }), En = e.object({
3908
3915
  id: e.string(),
3909
3916
  version: e.string().optional()
3910
- }), Tn = e.object({
3917
+ }), Dn = e.object({
3911
3918
  name: e.string(),
3912
3919
  version: e.string()
3913
- }), En = e.object({
3920
+ }), On = e.object({
3914
3921
  name: e.string(),
3915
3922
  value: e.string().optional()
3916
- }), Dn = e.object({
3923
+ }), kn = e.object({
3917
3924
  name: e.string().max(255),
3918
3925
  code: e.string().max(1e5),
3919
- supported_triggers: e.array(wn).optional(),
3926
+ supported_triggers: e.array(En).optional(),
3920
3927
  runtime: e.string().max(50).optional(),
3921
- dependencies: e.array(Tn).optional(),
3922
- secrets: e.array(En).optional(),
3928
+ dependencies: e.array(Dn).optional(),
3929
+ secrets: e.array(On).optional(),
3923
3930
  is_system: e.boolean().optional(),
3924
3931
  inherit: e.boolean().optional()
3925
3932
  });
3926
- Dn.partial().extend({
3933
+ kn.partial().extend({
3927
3934
  status: e.enum(["draft", "built"]).optional(),
3928
3935
  deployed_at: e.string().optional()
3929
3936
  });
3930
3937
  //#endregion
3931
3938
  //#region ../adapter-interfaces/dist/adapter-interfaces.mjs
3932
- var On = Dn.extend({
3939
+ var An = kn.extend({
3933
3940
  id: e.string(),
3934
3941
  tenant_id: e.string(),
3935
3942
  status: e.enum(["draft", "built"]).default("built"),
@@ -3938,25 +3945,25 @@ var On = Dn.extend({
3938
3945
  name: e.string(),
3939
3946
  value: e.string().optional()
3940
3947
  })).optional()
3941
- }).extend(G.shape), kn = e.object({ name: e.string() });
3942
- On.extend({ secrets: e.array(kn).optional() });
3943
- var An = e.string(), jn = e.enum([
3948
+ }).extend(W.shape), jn = e.object({ name: e.string() });
3949
+ An.extend({ secrets: e.array(jn).optional() });
3950
+ var Mn = e.string(), Nn = e.enum([
3944
3951
  "unspecified",
3945
3952
  "pending",
3946
3953
  "final",
3947
3954
  "partial",
3948
3955
  "canceled",
3949
3956
  "suspended"
3950
- ]), Mn = e.object({
3957
+ ]), Pn = e.object({
3951
3958
  id: e.string(),
3952
3959
  msg: e.string(),
3953
3960
  url: e.string().optional()
3954
- }), Nn = e.object({
3961
+ }), Fn = e.object({
3955
3962
  action_name: e.string(),
3956
- error: Mn.nullable(),
3963
+ error: Pn.nullable(),
3957
3964
  started_at: e.string(),
3958
3965
  ended_at: e.string()
3959
- }), Pn = e.object({
3966
+ }), In = e.object({
3960
3967
  level: e.enum([
3961
3968
  "log",
3962
3969
  "info",
@@ -3965,17 +3972,17 @@ var An = e.string(), jn = e.enum([
3965
3972
  "debug"
3966
3973
  ]),
3967
3974
  message: e.string()
3968
- }), Fn = e.array(e.object({
3975
+ }), Ln = e.array(e.object({
3969
3976
  action_name: e.string(),
3970
- lines: e.array(Pn)
3977
+ lines: e.array(In)
3971
3978
  }));
3972
3979
  e.object({
3973
3980
  id: e.string(),
3974
3981
  tenant_id: e.string(),
3975
- trigger_id: An,
3976
- status: jn,
3977
- results: e.array(Nn),
3978
- logs: Fn.optional(),
3982
+ trigger_id: Mn,
3983
+ status: Nn,
3984
+ results: e.array(Fn),
3985
+ logs: Ln.optional(),
3979
3986
  created_at: e.string(),
3980
3987
  updated_at: e.string()
3981
3988
  }).omit({
@@ -3986,21 +3993,21 @@ e.object({
3986
3993
  action_id: e.string(),
3987
3994
  code: e.string().max(1e5),
3988
3995
  runtime: e.string().max(50).optional(),
3989
- dependencies: e.array(Tn).optional(),
3990
- secrets: e.array(En).optional(),
3991
- supported_triggers: e.array(wn).optional(),
3996
+ dependencies: e.array(Dn).optional(),
3997
+ secrets: e.array(On).optional(),
3998
+ supported_triggers: e.array(En).optional(),
3992
3999
  deployed: e.boolean().default(!0)
3993
4000
  }).extend({
3994
4001
  id: e.string(),
3995
4002
  tenant_id: e.string(),
3996
4003
  number: e.number().int()
3997
- }).extend(G.shape);
3998
- var In = e.enum([
4004
+ }).extend(W.shape);
4005
+ var Rn = e.enum([
3999
4006
  "user_action",
4000
4007
  "admin_action",
4001
4008
  "system",
4002
4009
  "api"
4003
- ]), Ln = e.object({
4010
+ ]), zn = e.object({
4004
4011
  type: e.enum([
4005
4012
  "user",
4006
4013
  "admin",
@@ -4014,7 +4021,7 @@ var In = e.enum([
4014
4021
  org_name: e.string().optional(),
4015
4022
  scopes: e.array(e.string()).optional(),
4016
4023
  client_id: e.string().optional()
4017
- }), Rn = e.object({
4024
+ }), Bn = e.object({
4018
4025
  type: e.string(),
4019
4026
  id: e.string(),
4020
4027
  before: e.record(e.string(), e.unknown()).optional(),
@@ -4023,7 +4030,7 @@ var In = e.enum([
4023
4030
  old: e.unknown(),
4024
4031
  new: e.unknown()
4025
4032
  })).optional()
4026
- }), zn = e.object({
4033
+ }), Vn = e.object({
4027
4034
  method: e.string(),
4028
4035
  path: e.string(),
4029
4036
  query: e.record(e.string(), e.string()).optional(),
@@ -4033,17 +4040,17 @@ var In = e.enum([
4033
4040
  correlation_id: e.string().optional(),
4034
4041
  redirect_uri: e.string().optional(),
4035
4042
  authorization_url: e.string().optional()
4036
- }), Bn = e.object({
4043
+ }), Hn = e.object({
4037
4044
  status_code: e.number(),
4038
4045
  body: e.unknown().optional()
4039
- }), Vn = e.object({
4046
+ }), Un = e.object({
4040
4047
  country_code: e.string(),
4041
4048
  city_name: e.string(),
4042
4049
  latitude: e.string(),
4043
4050
  longitude: e.string(),
4044
4051
  time_zone: e.string(),
4045
4052
  continent_code: e.string()
4046
- }), Hn = e.object({
4053
+ }), Wn = e.object({
4047
4054
  name: e.string(),
4048
4055
  version: e.string(),
4049
4056
  env: e.record(e.string(), e.string()).optional()
@@ -4053,11 +4060,11 @@ e.object({
4053
4060
  event_type: e.string(),
4054
4061
  log_type: e.string(),
4055
4062
  description: e.string().optional(),
4056
- category: In,
4057
- actor: Ln,
4058
- target: Rn,
4059
- request: zn,
4060
- response: Bn.optional(),
4063
+ category: Rn,
4064
+ actor: zn,
4065
+ target: Bn,
4066
+ request: Vn,
4067
+ response: Hn.optional(),
4061
4068
  connection: e.string().optional(),
4062
4069
  connection_id: e.string().optional(),
4063
4070
  client_name: e.string().optional(),
@@ -4065,11 +4072,13 @@ e.object({
4065
4072
  strategy_type: e.string().optional(),
4066
4073
  audience: e.string().optional(),
4067
4074
  scope: e.string().optional(),
4068
- location: Vn.optional(),
4069
- auth0_client: Hn.optional(),
4075
+ location: Un.optional(),
4076
+ auth0_client: Wn.optional(),
4070
4077
  hostname: e.string(),
4071
4078
  is_mobile: e.boolean().optional(),
4072
4079
  execution_id: e.string().optional(),
4080
+ details: e.record(e.string(), e.unknown()).optional(),
4081
+ login_session_id: e.string().optional(),
4073
4082
  timestamp: e.string()
4074
4083
  }).extend({ id: e.string() }), e.enum([
4075
4084
  "AUTH0",
@@ -4082,14 +4091,14 @@ e.object({
4082
4091
  "SEND_REQUEST",
4083
4092
  "SEND_EMAIL"
4084
4093
  ]), e.enum(["VERIFY_EMAIL"]);
4085
- var Un = e.object({
4094
+ var Gn = e.object({
4086
4095
  require_mx_record: e.boolean().optional(),
4087
4096
  block_aliases: e.boolean().optional(),
4088
4097
  block_free_emails: e.boolean().optional(),
4089
4098
  block_disposable_emails: e.boolean().optional(),
4090
4099
  blocklist: e.array(e.string()).optional(),
4091
4100
  allowlist: e.array(e.string()).optional()
4092
- }), Wn = e.object({
4101
+ }), Kn = e.object({
4093
4102
  id: e.string(),
4094
4103
  alias: e.string().max(100).optional(),
4095
4104
  type: e.literal("AUTH0"),
@@ -4101,7 +4110,7 @@ var Un = e.object({
4101
4110
  user_id: e.string(),
4102
4111
  changes: e.record(e.string(), e.any())
4103
4112
  })
4104
- }), Gn = e.object({
4113
+ }), qn = e.object({
4105
4114
  id: e.string(),
4106
4115
  alias: e.string().max(100).optional(),
4107
4116
  type: e.literal("EMAIL"),
@@ -4110,13 +4119,13 @@ var Un = e.object({
4110
4119
  mask_output: e.boolean().optional(),
4111
4120
  params: e.object({
4112
4121
  email: e.string(),
4113
- rules: Un.optional()
4122
+ rules: Gn.optional()
4114
4123
  })
4115
- }), Kn = e.enum([
4124
+ }), Jn = e.enum([
4116
4125
  "change-email",
4117
4126
  "account",
4118
4127
  "custom"
4119
- ]), qn = e.object({
4128
+ ]), Yn = e.object({
4120
4129
  id: e.string(),
4121
4130
  alias: e.string().max(100).optional(),
4122
4131
  type: e.literal("REDIRECT"),
@@ -4124,18 +4133,18 @@ var Un = e.object({
4124
4133
  allow_failure: e.boolean().optional(),
4125
4134
  mask_output: e.boolean().optional(),
4126
4135
  params: e.object({
4127
- target: Kn.openapi({ description: "The predefined target to redirect to, or 'custom' for a custom URL" }),
4136
+ target: Jn.openapi({ description: "The predefined target to redirect to, or 'custom' for a custom URL" }),
4128
4137
  custom_url: e.string().optional().openapi({ description: "Custom URL to redirect to when target is 'custom'" })
4129
4138
  })
4130
- }), Jn = e.union([
4131
- Wn,
4132
- Gn,
4133
- qn
4139
+ }), Xn = e.union([
4140
+ Kn,
4141
+ qn,
4142
+ Yn
4134
4143
  ]);
4135
4144
  e.object({
4136
4145
  name: e.string().min(1).max(150).openapi({ description: "The name of the flow" }),
4137
- actions: e.array(Jn).optional().default([]).openapi({ description: "The list of actions to execute in sequence" })
4138
- }).extend(G.shape).extend({ id: e.string().openapi({
4146
+ actions: e.array(Xn).optional().default([]).openapi({ description: "The list of actions to execute in sequence" })
4147
+ }).extend(W.shape).extend({ id: e.string().openapi({
4139
4148
  description: "Unique identifier for the flow",
4140
4149
  example: "af_12tMpdJ3iek7svMyZkSh5M"
4141
4150
  }) }), e.object({
@@ -4151,7 +4160,7 @@ e.object({
4151
4160
  total: e.number().optional(),
4152
4161
  next: e.string().optional()
4153
4162
  });
4154
- var Yn = e.object({
4163
+ var Zn = e.object({
4155
4164
  email: e.string().optional(),
4156
4165
  email_verified: e.boolean().optional(),
4157
4166
  name: e.string().optional(),
@@ -4160,7 +4169,7 @@ var Yn = e.object({
4160
4169
  phone_number: e.string().optional(),
4161
4170
  phone_verified: e.boolean().optional(),
4162
4171
  family_name: e.string().optional()
4163
- }).catchall(e.any()), Xn = e.object({
4172
+ }).catchall(e.any()), Qn = e.object({
4164
4173
  connection: e.string(),
4165
4174
  user_id: e.string(),
4166
4175
  provider: e.string(),
@@ -4173,15 +4182,15 @@ var Yn = e.object({
4173
4182
  access_token: e.string().optional(),
4174
4183
  access_token_secret: e.string().optional(),
4175
4184
  refresh_token: e.string().optional(),
4176
- profileData: Yn.optional()
4177
- }), Zn = e.object({
4185
+ profileData: Zn.optional()
4186
+ }), $n = e.object({
4178
4187
  formatted: e.string().optional(),
4179
4188
  street_address: e.string().optional(),
4180
4189
  locality: e.string().optional(),
4181
4190
  region: e.string().optional(),
4182
4191
  postal_code: e.string().optional(),
4183
4192
  country: e.string().optional()
4184
- }).optional(), Qn = e.object({
4193
+ }).optional(), er = e.object({
4185
4194
  email: e.string().transform((e) => e.toLowerCase()).optional(),
4186
4195
  username: e.string().refine((e) => !e.includes("@"), { message: "Usernames must not contain \"@\". Use the email field for email addresses." }).optional(),
4187
4196
  phone_number: e.string().optional(),
@@ -4204,9 +4213,9 @@ var Yn = e.object({
4204
4213
  gender: e.string().optional(),
4205
4214
  birthdate: e.string().optional(),
4206
4215
  zoneinfo: e.string().optional(),
4207
- address: Zn
4216
+ address: $n
4208
4217
  });
4209
- Qn.extend({
4218
+ er.extend({
4210
4219
  email_verified: e.boolean().default(!1),
4211
4220
  verify_email: e.boolean().optional(),
4212
4221
  last_ip: e.string().optional(),
@@ -4221,30 +4230,30 @@ Qn.extend({
4221
4230
  hash: e.string(),
4222
4231
  algorithm: e.string()
4223
4232
  }).optional()
4224
- }).omit({ password: !0 }).extend(G.shape).extend({
4233
+ }).omit({ password: !0 }).extend(W.shape).extend({
4225
4234
  user_id: e.string(),
4226
4235
  provider: e.string(),
4227
4236
  is_social: e.boolean(),
4228
4237
  email: e.string().optional(),
4229
4238
  login_count: e.number().default(0),
4230
- identities: e.array(Xn).optional()
4231
- }).omit({ registration_completed_at: !0 }), Qn.extend({
4239
+ identities: e.array(Qn).optional()
4240
+ }).omit({ registration_completed_at: !0 }), er.extend({
4232
4241
  login_count: e.number(),
4233
4242
  multifactor: e.array(e.string()).optional(),
4234
4243
  last_ip: e.string().optional(),
4235
4244
  last_login: e.string().optional(),
4236
4245
  user_id: e.string()
4237
4246
  }).catchall(e.any());
4238
- var $n = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", er = (e = 21) => {
4247
+ var tr = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", nr = (e = 21) => {
4239
4248
  let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
4240
- for (; e--;) t += $n[n[e] & 63];
4249
+ for (; e--;) t += tr[n[e] & 63];
4241
4250
  return t;
4242
- }, tr = e.object({
4251
+ }, rr = e.object({
4243
4252
  client_id: e.string().optional().openapi({ description: "ID of this client. Generated server-side if omitted (Auth0 behavior)." }),
4244
4253
  name: e.string().min(1).openapi({ description: "Name of this client (min length: 1 character, does not allow < or >)." }),
4245
4254
  description: e.string().max(140).optional().openapi({ description: "Free text description of this client (max length: 140 characters)." }),
4246
4255
  global: e.boolean().default(!1).openapi({ description: "Whether this is your global 'All Applications' client representing legacy tenant settings (true) or a regular client (false)." }),
4247
- client_secret: e.string().default(() => er()).optional().openapi({ description: "Client secret (which you must not make public)." }),
4256
+ client_secret: e.string().default(() => nr()).optional().openapi({ description: "Client secret (which you must not make public)." }),
4248
4257
  app_type: e.enum([
4249
4258
  "native",
4250
4259
  "spa",
@@ -4362,8 +4371,8 @@ var $n = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", er
4362
4371
  e.object({
4363
4372
  created_at: e.string(),
4364
4373
  updated_at: e.string()
4365
- }).extend(tr.shape).extend({ client_id: e.string() });
4366
- var nr = e.object({
4374
+ }).extend(rr.shape).extend({ client_id: e.string() });
4375
+ var ir = e.object({
4367
4376
  client_id: e.string().min(1).openapi({ description: "ID of the client." }),
4368
4377
  audience: e.string().min(1).openapi({ description: "The audience (API identifier) of this client grant." }),
4369
4378
  scope: e.array(e.string()).optional().openapi({ description: "Scopes allowed for this client grant." }),
@@ -4376,15 +4385,15 @@ var nr = e.object({
4376
4385
  is_system: e.boolean().optional().openapi({ description: "If enabled, this grant is a special grant created by Auth0. It cannot be modified or deleted directly." }),
4377
4386
  subject_type: e.enum(["client", "user"]).optional().openapi({ description: "The type of application access the client grant allows. Use of this field is subject to the applicable Free Trial terms in Okta's Master Subscription Agreement." }),
4378
4387
  authorization_details_types: e.array(e.string()).optional().openapi({ description: "Types of authorization_details allowed for this client grant. Use of this field is subject to the applicable Free Trial terms in Okta's Master Subscription Agreement." })
4379
- }), rr = e.object({ id: e.string().openapi({ description: "ID of the client grant." }) }).extend(nr.shape).extend({
4388
+ }), ar = e.object({ id: e.string().openapi({ description: "ID of the client grant." }) }).extend(ir.shape).extend({
4380
4389
  created_at: e.string().optional(),
4381
4390
  updated_at: e.string().optional()
4382
4391
  });
4383
- e.array(rr);
4384
- var ir = e.enum(["iat", "rat"]), ar = e.object({
4392
+ e.array(ar);
4393
+ var or = e.enum(["iat", "rat"]), sr = e.object({
4385
4394
  id: e.string(),
4386
4395
  token_hash: e.string(),
4387
- type: ir,
4396
+ type: or,
4388
4397
  client_id: e.string().optional(),
4389
4398
  sub: e.string().optional(),
4390
4399
  constraints: e.record(e.string(), e.unknown()).optional(),
@@ -4395,23 +4404,23 @@ e.object({
4395
4404
  created_at: e.string(),
4396
4405
  used_at: e.string().optional(),
4397
4406
  revoked_at: e.string().optional()
4398
- }).extend(ar.shape);
4399
- var K = e.object({
4407
+ }).extend(sr.shape);
4408
+ var G = e.object({
4400
4409
  x: e.number(),
4401
4410
  y: e.number()
4402
- }), or = /* @__PURE__ */ function(e) {
4411
+ }), cr = /* @__PURE__ */ function(e) {
4403
4412
  return e.RICH_TEXT = "RICH_TEXT", e.NEXT_BUTTON = "NEXT_BUTTON", e.BACK_BUTTON = "BACK_BUTTON", e.SUBMIT_BUTTON = "SUBMIT_BUTTON", e.DIVIDER = "DIVIDER", e.TEXT = "TEXT", e.EMAIL = "EMAIL", e.PASSWORD = "PASSWORD", e.NUMBER = "NUMBER", e.PHONE = "PHONE", e.DATE = "DATE", e.CHECKBOX = "CHECKBOX", e.RADIO = "RADIO", e.SELECT = "SELECT", e.HIDDEN = "HIDDEN", e.LEGAL = "LEGAL", e;
4404
- }({}), sr = /* @__PURE__ */ function(e) {
4413
+ }({}), lr = /* @__PURE__ */ function(e) {
4405
4414
  return e.BLOCK = "BLOCK", e.FIELD = "FIELD", e;
4406
- }({}), q = e.object({
4415
+ }({}), K = e.object({
4407
4416
  id: e.string(),
4408
- category: e.nativeEnum(sr),
4409
- type: e.nativeEnum(or)
4410
- }), cr = q.extend({
4417
+ category: e.nativeEnum(lr),
4418
+ type: e.nativeEnum(cr)
4419
+ }), ur = K.extend({
4411
4420
  category: e.literal("BLOCK"),
4412
4421
  type: e.literal("RICH_TEXT"),
4413
4422
  config: e.object({ content: e.string() }).passthrough()
4414
- }), lr = q.extend({
4423
+ }), dr = K.extend({
4415
4424
  category: e.literal("BLOCK"),
4416
4425
  type: e.union([
4417
4426
  e.literal("NEXT_BUTTON"),
@@ -4419,13 +4428,13 @@ var K = e.object({
4419
4428
  e.literal("SUBMIT_BUTTON")
4420
4429
  ]),
4421
4430
  config: e.object({ text: e.string() }).passthrough()
4422
- }), ur = q.extend({
4431
+ }), fr = K.extend({
4423
4432
  category: e.literal("FIELD"),
4424
4433
  type: e.literal("LEGAL"),
4425
4434
  required: e.boolean().optional(),
4426
4435
  sensitive: e.boolean().optional(),
4427
4436
  config: e.object({ text: e.string() }).passthrough()
4428
- }), dr = q.extend({
4437
+ }), pr = K.extend({
4429
4438
  category: e.literal("FIELD"),
4430
4439
  type: e.union([
4431
4440
  e.literal("TEXT"),
@@ -4445,38 +4454,38 @@ var K = e.object({
4445
4454
  label: e.string().optional(),
4446
4455
  placeholder: e.string().optional()
4447
4456
  }).passthrough()
4448
- }), fr = e.object({
4457
+ }), mr = e.object({
4449
4458
  id: e.string(),
4450
4459
  category: e.string(),
4451
4460
  type: e.string()
4452
- }).passthrough(), pr = e.union([
4453
- cr,
4454
- lr,
4461
+ }).passthrough(), hr = e.union([
4455
4462
  ur,
4456
4463
  dr,
4457
- fr
4458
- ]), mr = e.object({
4464
+ fr,
4465
+ pr,
4466
+ mr
4467
+ ]), gr = e.object({
4459
4468
  id: e.string(),
4460
4469
  type: e.literal("STEP"),
4461
- coordinates: K,
4470
+ coordinates: G,
4462
4471
  alias: e.string().optional(),
4463
4472
  config: e.object({
4464
- components: e.array(pr),
4473
+ components: e.array(hr),
4465
4474
  next_node: e.string()
4466
4475
  }).passthrough()
4467
- }), hr = e.object({
4476
+ }), _r = e.object({
4468
4477
  id: e.string(),
4469
4478
  type: e.literal("FLOW"),
4470
- coordinates: K,
4479
+ coordinates: G,
4471
4480
  alias: e.string().optional(),
4472
4481
  config: e.object({
4473
4482
  flow_id: e.string(),
4474
4483
  next_node: e.string()
4475
4484
  })
4476
- }), gr = e.object({
4485
+ }), vr = e.object({
4477
4486
  id: e.string(),
4478
4487
  type: e.literal("ACTION"),
4479
- coordinates: K,
4488
+ coordinates: G,
4480
4489
  alias: e.string().optional(),
4481
4490
  config: e.object({
4482
4491
  action_type: e.enum(["REDIRECT"]).openapi({ description: "The type of action to perform" }),
@@ -4488,29 +4497,29 @@ var K = e.object({
4488
4497
  custom_url: e.string().optional().openapi({ description: "Custom URL when target is 'custom'" }),
4489
4498
  next_node: e.string().openapi({ description: "The next node to navigate to after action (for non-redirect actions)" })
4490
4499
  }).passthrough()
4491
- }), _r = e.object({
4500
+ }), yr = e.object({
4492
4501
  id: e.string(),
4493
4502
  type: e.string(),
4494
- coordinates: K
4495
- }).passthrough(), vr = e.union([
4496
- mr,
4497
- hr,
4503
+ coordinates: G
4504
+ }).passthrough(), br = e.union([
4498
4505
  gr,
4499
- _r
4500
- ]), yr = e.object({
4506
+ _r,
4507
+ vr,
4508
+ yr
4509
+ ]), xr = e.object({
4501
4510
  next_node: e.string(),
4502
- coordinates: K
4503
- }).passthrough(), br = e.object({
4511
+ coordinates: G
4512
+ }).passthrough(), Sr = e.object({
4504
4513
  resume_flow: e.boolean().optional(),
4505
- coordinates: K
4514
+ coordinates: G
4506
4515
  }).passthrough();
4507
4516
  e.object({
4508
4517
  id: e.string(),
4509
4518
  name: e.string(),
4510
4519
  languages: e.object({ primary: e.string() }).passthrough(),
4511
- nodes: e.array(vr),
4512
- start: yr,
4513
- ending: br,
4520
+ nodes: e.array(br),
4521
+ start: xr,
4522
+ ending: Sr,
4514
4523
  created_at: e.string(),
4515
4524
  updated_at: e.string(),
4516
4525
  links: e.object({
@@ -4522,24 +4531,24 @@ e.object({
4522
4531
  created_at: !0,
4523
4532
  updated_at: !0
4524
4533
  });
4525
- var xr = /* @__PURE__ */ function(e) {
4534
+ var Cr = /* @__PURE__ */ function(e) {
4526
4535
  return e.TOKEN = "token", e.ID_TOKEN = "id_token", e.TOKEN_ID_TOKEN = "id_token token", e.CODE = "code", e.CODE_ID_TOKEN = "code id_token", e.CODE_TOKEN = "code token", e.CODE_ID_TOKEN_TOKEN = "code id_token token", e;
4527
- }({}), Sr = /* @__PURE__ */ function(e) {
4536
+ }({}), wr = /* @__PURE__ */ function(e) {
4528
4537
  return e.QUERY = "query", e.FRAGMENT = "fragment", e.FORM_POST = "form_post", e.WEB_MESSAGE = "web_message", e.SAML_POST = "saml_post", e;
4529
- }({}), Cr = /* @__PURE__ */ function(e) {
4538
+ }({}), Tr = /* @__PURE__ */ function(e) {
4530
4539
  return e.S256 = "S256", e.Plain = "plain", e;
4531
- }({}), wr = e.union([e.null(), e.object({
4540
+ }({}), Er = e.union([e.null(), e.object({
4532
4541
  essential: e.boolean().optional(),
4533
4542
  value: e.unknown().optional(),
4534
4543
  values: e.array(e.unknown()).optional()
4535
- })]).nullable(), Tr = e.object({
4536
- userinfo: e.record(e.string(), wr).optional(),
4537
- id_token: e.record(e.string(), wr).optional()
4538
- }), Er = e.object({
4544
+ })]).nullable(), Dr = e.object({
4545
+ userinfo: e.record(e.string(), Er).optional(),
4546
+ id_token: e.record(e.string(), Er).optional()
4547
+ }), Or = e.object({
4539
4548
  client_id: e.string(),
4540
4549
  act_as: e.string().optional(),
4541
- response_type: e.nativeEnum(xr).optional(),
4542
- response_mode: e.nativeEnum(Sr).optional(),
4550
+ response_type: e.nativeEnum(Cr).optional(),
4551
+ response_mode: e.nativeEnum(wr).optional(),
4543
4552
  redirect_uri: e.string().optional(),
4544
4553
  audience: e.string().optional(),
4545
4554
  organization: e.string().optional(),
@@ -4547,13 +4556,13 @@ var xr = /* @__PURE__ */ function(e) {
4547
4556
  nonce: e.string().optional(),
4548
4557
  scope: e.string().optional(),
4549
4558
  prompt: e.string().optional(),
4550
- code_challenge_method: e.nativeEnum(Cr).optional(),
4559
+ code_challenge_method: e.nativeEnum(Tr).optional(),
4551
4560
  code_challenge: e.string().optional(),
4552
4561
  username: e.string().optional(),
4553
4562
  ui_locales: e.string().optional(),
4554
4563
  max_age: e.number().optional(),
4555
4564
  acr_values: e.string().optional(),
4556
- claims: Tr.optional(),
4565
+ claims: Dr.optional(),
4557
4566
  vendor_id: e.string().optional()
4558
4567
  });
4559
4568
  e.object({
@@ -4576,7 +4585,7 @@ e.object({
4576
4585
  "auto"
4577
4586
  ]).optional()
4578
4587
  });
4579
- var Dr = e.enum([
4588
+ var kr = e.enum([
4580
4589
  "password_reset",
4581
4590
  "email_verification",
4582
4591
  "otp",
@@ -4591,7 +4600,7 @@ e.object({
4591
4600
  code_id: e.string().openapi({ description: "The code that will be used in for instance an email verification flow" }),
4592
4601
  login_id: e.string().optional().openapi({ description: "The id of the login session that the code is connected to" }),
4593
4602
  connection_id: e.string().optional().openapi({ description: "The connection that the code is connected to" }),
4594
- code_type: Dr,
4603
+ code_type: kr,
4595
4604
  code_verifier: e.string().optional().openapi({ description: "The code verifier used in PKCE in outbound flows" }),
4596
4605
  code_challenge: e.string().optional().openapi({ description: "The code challenge used in PKCE in outbound flows" }),
4597
4606
  code_challenge_method: e.enum(["plain", "S256"]).optional().openapi({ description: "The code challenge method used in PKCE in outbound flows" }),
@@ -4603,7 +4612,7 @@ e.object({
4603
4612
  used_at: e.string().optional(),
4604
4613
  user_id: e.string().optional()
4605
4614
  }).extend({ created_at: e.string() });
4606
- var Or = e.object({
4615
+ var Ar = e.object({
4607
4616
  kid: e.string().optional(),
4608
4617
  team_id: e.string().optional(),
4609
4618
  realms: e.string().optional(),
@@ -4723,26 +4732,26 @@ var Or = e.object({
4723
4732
  "never_on_login"
4724
4733
  ]).optional()
4725
4734
  });
4726
- function kr(e) {
4735
+ function jr(e) {
4727
4736
  if (e !== null) {
4728
- if (Array.isArray(e)) return e.filter((e) => e !== null).map(kr);
4737
+ if (Array.isArray(e)) return e.filter((e) => e !== null).map(jr);
4729
4738
  if (e && typeof e == "object") {
4730
4739
  let t = {};
4731
- for (let [n, r] of Object.entries(e)) r !== null && (t[n] = kr(r));
4740
+ for (let [n, r] of Object.entries(e)) r !== null && (t[n] = jr(r));
4732
4741
  return t;
4733
4742
  }
4734
4743
  return e;
4735
4744
  }
4736
4745
  }
4737
- var Ar = e.object({
4746
+ var Mr = e.object({
4738
4747
  id: e.string().optional(),
4739
4748
  name: e.string(),
4740
4749
  display_name: e.string().optional(),
4741
4750
  strategy: e.string(),
4742
- options: e.preprocess((e) => e === null ? {} : kr(e), Or).default({}),
4751
+ options: e.preprocess((e) => e === null ? {} : jr(e), Ar).default({}),
4743
4752
  enabled_clients: e.array(e.string()).default([]).optional(),
4744
- response_type: e.nativeEnum(xr).optional(),
4745
- response_mode: e.nativeEnum(Sr).optional(),
4753
+ response_type: e.nativeEnum(Cr).optional(),
4754
+ response_mode: e.nativeEnum(wr).optional(),
4746
4755
  is_domain_connection: e.boolean().optional(),
4747
4756
  show_as_button: e.boolean().optional(),
4748
4757
  metadata: e.record(e.string(), e.any()).optional(),
@@ -4752,8 +4761,8 @@ e.object({
4752
4761
  id: e.string(),
4753
4762
  created_at: e.string().transform((e) => e === null ? "" : e),
4754
4763
  updated_at: e.string().transform((e) => e === null ? "" : e)
4755
- }).extend(Ar.shape);
4756
- var jr = e.object({
4764
+ }).extend(Mr.shape);
4765
+ var Nr = e.object({
4757
4766
  domain: e.string(),
4758
4767
  custom_domain_id: e.string().optional(),
4759
4768
  type: e.enum(["auth0_managed_certs", "self_managed_certs"]),
@@ -4767,7 +4776,7 @@ var jr = e.object({
4767
4776
  "null"
4768
4777
  ]).optional(),
4769
4778
  domain_metadata: e.record(e.string(), e.string().max(255)).optional()
4770
- }), Mr = e.discriminatedUnion("name", [e.object({
4779
+ }), Pr = e.discriminatedUnion("name", [e.object({
4771
4780
  name: e.literal("txt"),
4772
4781
  record: e.string(),
4773
4782
  domain: e.string()
@@ -4775,7 +4784,7 @@ var jr = e.object({
4775
4784
  name: e.literal("http"),
4776
4785
  http_body: e.string(),
4777
4786
  http_url: e.string()
4778
- })]), Nr = jr.extend({
4787
+ })]), Fr = Nr.extend({
4779
4788
  custom_domain_id: e.string(),
4780
4789
  primary: e.boolean(),
4781
4790
  status: e.enum([
@@ -4785,28 +4794,28 @@ var jr = e.object({
4785
4794
  "ready"
4786
4795
  ]),
4787
4796
  origin_domain_name: e.string().optional(),
4788
- verification: e.object({ methods: e.array(Mr) }).optional(),
4797
+ verification: e.object({ methods: e.array(Pr) }).optional(),
4789
4798
  tls_policy: e.string().optional()
4790
4799
  });
4791
- jr.pick({
4800
+ Nr.pick({
4792
4801
  tls_policy: !0,
4793
4802
  custom_client_ip_header: !0,
4794
4803
  domain_metadata: !0
4795
- }).strict(), Nr.extend({ tenant_id: e.string() }), e.object({
4804
+ }).strict(), Fr.extend({ tenant_id: e.string() }), e.object({
4796
4805
  certificate: e.string().regex(/^-----BEGIN CERTIFICATE-----[\s\S]+-----END CERTIFICATE-----\s*$/, "must be PEM-encoded; include the full certificate chain in leaf-first order"),
4797
4806
  private_key: e.string().regex(/-----BEGIN (RSA |EC |ENCRYPTED )?PRIVATE KEY-----[\s\S]+-----END \1PRIVATE KEY-----\s*$/, "must be a PEM-encoded private key")
4798
4807
  });
4799
- var Pr = e.object({
4808
+ var Ir = e.object({
4800
4809
  id: e.string(),
4801
4810
  order: e.number().optional(),
4802
4811
  visible: e.boolean().optional().default(!0)
4803
- }), J = Pr.extend({ category: e.literal("BLOCK").optional() }), Fr = J.extend({
4812
+ }), q = Ir.extend({ category: e.literal("BLOCK").optional() }), Lr = q.extend({
4804
4813
  type: e.literal("DIVIDER"),
4805
4814
  config: e.object({ text: e.string().optional() }).optional()
4806
- }), Ir = J.extend({
4815
+ }), Rr = q.extend({
4807
4816
  type: e.literal("HTML"),
4808
4817
  config: e.object({ content: e.string().optional() }).optional()
4809
- }), Lr = J.extend({
4818
+ }), zr = q.extend({
4810
4819
  type: e.literal("IMAGE"),
4811
4820
  config: e.object({
4812
4821
  src: e.string().optional(),
@@ -4814,47 +4823,47 @@ var Pr = e.object({
4814
4823
  width: e.number().optional(),
4815
4824
  height: e.number().optional()
4816
4825
  }).optional()
4817
- }), Rr = J.extend({
4826
+ }), Br = q.extend({
4818
4827
  type: e.literal("JUMP_BUTTON"),
4819
4828
  config: e.object({
4820
4829
  text: e.string().optional(),
4821
4830
  target_step: e.string().optional()
4822
4831
  })
4823
- }), zr = J.extend({
4832
+ }), Vr = q.extend({
4824
4833
  type: e.literal("RESEND_BUTTON"),
4825
4834
  config: e.object({
4826
4835
  text: e.string().optional(),
4827
4836
  resend_action: e.string().optional()
4828
4837
  })
4829
- }), Br = J.extend({
4838
+ }), Hr = q.extend({
4830
4839
  type: e.literal("NEXT_BUTTON"),
4831
4840
  config: e.object({
4832
4841
  text: e.string().optional(),
4833
4842
  variant: e.enum(["primary", "secondary"]).optional(),
4834
4843
  skip_validation: e.boolean().optional()
4835
4844
  })
4836
- }), Vr = J.extend({
4845
+ }), Ur = q.extend({
4837
4846
  type: e.literal("PREVIOUS_BUTTON"),
4838
4847
  config: e.object({ text: e.string().optional() })
4839
- }), Hr = J.extend({
4848
+ }), Wr = q.extend({
4840
4849
  type: e.literal("RICH_TEXT"),
4841
4850
  config: e.object({ content: e.string().optional() }).optional()
4842
- }), Ur = Pr.extend({
4851
+ }), Gr = Ir.extend({
4843
4852
  category: e.literal("WIDGET").optional(),
4844
4853
  label: e.string().min(1).optional(),
4845
4854
  hint: e.string().min(1).max(500).optional(),
4846
4855
  required: e.boolean().optional(),
4847
4856
  sensitive: e.boolean().optional()
4848
- }), Wr = Ur.extend({
4857
+ }), Kr = Gr.extend({
4849
4858
  type: e.literal("AUTH0_VERIFIABLE_CREDENTIALS"),
4850
4859
  config: e.object({ credential_type: e.string().optional() })
4851
- }), Gr = Ur.extend({
4860
+ }), qr = Gr.extend({
4852
4861
  type: e.literal("GMAPS_ADDRESS"),
4853
4862
  config: e.object({ api_key: e.string().optional() })
4854
- }), Kr = Ur.extend({
4863
+ }), Jr = Gr.extend({
4855
4864
  type: e.literal("RECAPTCHA"),
4856
4865
  config: e.object({ site_key: e.string().optional() })
4857
- }), Y = Pr.extend({
4866
+ }), J = Ir.extend({
4858
4867
  category: e.literal("FIELD").optional(),
4859
4868
  label: e.string().min(1).optional(),
4860
4869
  hint: e.string().min(1).max(500).optional(),
@@ -4870,10 +4879,10 @@ var Pr = e.object({
4870
4879
  })).optional(),
4871
4880
  required: e.boolean().optional(),
4872
4881
  sensitive: e.boolean().optional()
4873
- }), qr = Y.extend({
4882
+ }), Yr = J.extend({
4874
4883
  type: e.literal("BOOLEAN"),
4875
4884
  config: e.object({ default_value: e.boolean().optional() }).optional()
4876
- }), Jr = Y.extend({
4885
+ }), Xr = J.extend({
4877
4886
  type: e.literal("CARDS"),
4878
4887
  config: e.object({
4879
4888
  options: e.array(e.object({
@@ -4884,7 +4893,7 @@ var Pr = e.object({
4884
4893
  })).optional(),
4885
4894
  multi_select: e.boolean().optional()
4886
4895
  }).optional()
4887
- }), Yr = Y.extend({
4896
+ }), Zr = J.extend({
4888
4897
  type: e.literal("CHOICE"),
4889
4898
  config: e.object({
4890
4899
  options: e.array(e.object({
@@ -4895,7 +4904,7 @@ var Pr = e.object({
4895
4904
  multiple: e.boolean().optional(),
4896
4905
  default_value: e.union([e.string(), e.array(e.string())]).optional()
4897
4906
  }).optional()
4898
- }), Xr = Y.extend({
4907
+ }), Qr = J.extend({
4899
4908
  type: e.literal("CODE"),
4900
4909
  config: e.object({
4901
4910
  length: e.number().int().positive().max(100).optional(),
@@ -4912,7 +4921,7 @@ var Pr = e.object({
4912
4921
  message: "default_value is longer than the configured length",
4913
4922
  path: ["default_value"]
4914
4923
  }).optional()
4915
- }), Zr = Y.extend({
4924
+ }), $r = J.extend({
4916
4925
  type: e.literal("CUSTOM"),
4917
4926
  config: e.object({
4918
4927
  component: e.string().optional(),
@@ -4920,7 +4929,7 @@ var Pr = e.object({
4920
4929
  schema: e.record(e.string(), e.any()).optional(),
4921
4930
  code: e.string().optional()
4922
4931
  })
4923
- }), Qr = Y.extend({
4932
+ }), ei = J.extend({
4924
4933
  type: e.literal("DATE"),
4925
4934
  config: e.object({
4926
4935
  format: e.string().optional(),
@@ -4928,7 +4937,7 @@ var Pr = e.object({
4928
4937
  max: e.string().optional(),
4929
4938
  default_value: e.string().optional()
4930
4939
  }).optional()
4931
- }), $r = Y.extend({
4940
+ }), ti = J.extend({
4932
4941
  type: e.literal("DROPDOWN"),
4933
4942
  config: e.object({
4934
4943
  options: e.array(e.object({
@@ -4940,7 +4949,7 @@ var Pr = e.object({
4940
4949
  multiple: e.boolean().optional(),
4941
4950
  default_value: e.union([e.string(), e.array(e.string())]).optional()
4942
4951
  }).optional()
4943
- }), ei = Y.extend({
4952
+ }), ni = J.extend({
4944
4953
  type: e.literal("EMAIL"),
4945
4954
  config: e.object({
4946
4955
  placeholder: e.string().optional(),
@@ -4948,20 +4957,20 @@ var Pr = e.object({
4948
4957
  last_used: e.boolean().optional(),
4949
4958
  last_used_label: e.string().optional()
4950
4959
  }).optional()
4951
- }), ti = Y.extend({
4960
+ }), ri = J.extend({
4952
4961
  type: e.literal("FILE"),
4953
4962
  config: e.object({
4954
4963
  accept: e.string().optional(),
4955
4964
  max_size: e.number().optional(),
4956
4965
  multiple: e.boolean().optional()
4957
4966
  }).optional()
4958
- }), ni = Y.extend({
4967
+ }), ii = J.extend({
4959
4968
  type: e.literal("LEGAL"),
4960
4969
  config: e.object({
4961
4970
  text: e.string(),
4962
4971
  html: e.boolean().optional()
4963
4972
  }).optional()
4964
- }), ri = Y.extend({
4973
+ }), ai = J.extend({
4965
4974
  type: e.literal("NUMBER"),
4966
4975
  config: e.object({
4967
4976
  placeholder: e.string().optional(),
@@ -4970,7 +4979,7 @@ var Pr = e.object({
4970
4979
  step: e.number().optional(),
4971
4980
  default_value: e.string().optional()
4972
4981
  }).optional()
4973
- }), ii = Y.extend({
4982
+ }), oi = J.extend({
4974
4983
  type: e.literal("PASSWORD"),
4975
4984
  config: e.object({
4976
4985
  placeholder: e.string().optional(),
@@ -4979,13 +4988,13 @@ var Pr = e.object({
4979
4988
  forgot_password_link: e.string().optional(),
4980
4989
  default_value: e.string().optional()
4981
4990
  }).optional()
4982
- }), ai = Y.extend({
4991
+ }), si = J.extend({
4983
4992
  type: e.literal("PAYMENT"),
4984
4993
  config: e.object({
4985
4994
  provider: e.string().optional(),
4986
4995
  currency: e.string().optional()
4987
4996
  }).optional()
4988
- }), oi = Y.extend({
4997
+ }), ci = J.extend({
4989
4998
  type: e.literal("SOCIAL"),
4990
4999
  config: e.object({
4991
5000
  providers: e.array(e.string()).optional(),
@@ -5000,7 +5009,7 @@ var Pr = e.object({
5000
5009
  last_used_label: e.string().optional()
5001
5010
  })).optional()
5002
5011
  }).optional()
5003
- }), si = Y.extend({
5012
+ }), li = J.extend({
5004
5013
  type: e.literal("TEL"),
5005
5014
  config: e.object({
5006
5015
  placeholder: e.string().optional(),
@@ -5008,7 +5017,7 @@ var Pr = e.object({
5008
5017
  default_value: e.string().optional(),
5009
5018
  allow_email: e.boolean().optional()
5010
5019
  }).optional()
5011
- }), ci = Y.extend({
5020
+ }), ui = J.extend({
5012
5021
  type: e.literal("TEXT"),
5013
5022
  config: e.object({
5014
5023
  placeholder: e.string().optional(),
@@ -5018,39 +5027,37 @@ var Pr = e.object({
5018
5027
  last_used: e.boolean().optional(),
5019
5028
  last_used_label: e.string().optional()
5020
5029
  }).optional()
5021
- }), li = Y.extend({
5030
+ }), di = J.extend({
5022
5031
  type: e.literal("COUNTRY"),
5023
5032
  config: e.object({
5024
5033
  placeholder: e.string().optional(),
5025
5034
  default_value: e.string().optional()
5026
5035
  }).optional()
5027
- }), ui = Y.extend({
5036
+ }), fi = J.extend({
5028
5037
  type: e.literal("URL"),
5029
5038
  config: e.object({
5030
5039
  placeholder: e.string().optional(),
5031
5040
  default_value: e.string().optional()
5032
5041
  }).optional()
5033
- }), di = e.discriminatedUnion("type", [
5034
- Fr,
5035
- Ir,
5042
+ }), pi = e.discriminatedUnion("type", [
5036
5043
  Lr,
5037
5044
  Rr,
5038
5045
  zr,
5039
5046
  Br,
5040
5047
  Vr,
5041
- Hr
5042
- ]), fi = e.discriminatedUnion("type", [
5043
- Wr,
5044
- Gr,
5045
- Kr
5046
- ]), pi = e.discriminatedUnion("type", [
5048
+ Hr,
5049
+ Ur,
5050
+ Wr
5051
+ ]), mi = e.discriminatedUnion("type", [
5052
+ Kr,
5047
5053
  qr,
5048
- Jr,
5054
+ Jr
5055
+ ]), hi = e.discriminatedUnion("type", [
5049
5056
  Yr,
5050
5057
  Xr,
5051
- li,
5052
5058
  Zr,
5053
5059
  Qr,
5060
+ di,
5054
5061
  $r,
5055
5062
  ei,
5056
5063
  ti,
@@ -5061,11 +5068,13 @@ var Pr = e.object({
5061
5068
  oi,
5062
5069
  si,
5063
5070
  ci,
5064
- ui
5065
- ]), mi = e.union([
5066
- di,
5067
- fi,
5068
- pi
5071
+ li,
5072
+ ui,
5073
+ fi
5074
+ ]), gi = e.union([
5075
+ pi,
5076
+ mi,
5077
+ hi
5069
5078
  ]);
5070
5079
  new Set([
5071
5080
  "BOOLEAN",
@@ -5092,22 +5101,22 @@ new Set([
5092
5101
  visible: e.boolean().optional().default(!0),
5093
5102
  customizations: e.record(e.string(), e.any()).optional()
5094
5103
  });
5095
- var X = e.object({
5104
+ var Y = e.object({
5096
5105
  x: e.number(),
5097
5106
  y: e.number()
5098
- }), hi = e.object({
5107
+ }), _i = e.object({
5099
5108
  id: e.string(),
5100
5109
  type: e.literal("FLOW"),
5101
- coordinates: X,
5110
+ coordinates: Y,
5102
5111
  alias: e.string().min(1).max(150).optional(),
5103
5112
  config: e.object({
5104
5113
  flow_id: e.string().max(30),
5105
5114
  next_node: e.string().optional()
5106
5115
  })
5107
- }), gi = e.object({
5116
+ }), vi = e.object({
5108
5117
  id: e.string(),
5109
5118
  type: e.literal("ROUTER"),
5110
- coordinates: X,
5119
+ coordinates: Y,
5111
5120
  alias: e.string().min(1).max(150),
5112
5121
  config: e.object({
5113
5122
  rules: e.array(e.object({
@@ -5118,20 +5127,20 @@ var X = e.object({
5118
5127
  })),
5119
5128
  fallback: e.string()
5120
5129
  })
5121
- }), _i = e.object({
5130
+ }), yi = e.object({
5122
5131
  id: e.string(),
5123
5132
  type: e.literal("STEP"),
5124
- coordinates: X,
5133
+ coordinates: Y,
5125
5134
  alias: e.string().min(1).max(150).optional(),
5126
5135
  config: e.object({
5127
- components: e.array(mi),
5136
+ components: e.array(gi),
5128
5137
  next_node: e.string().optional()
5129
5138
  })
5130
- }), vi = e.discriminatedUnion("type", [
5131
- hi,
5132
- gi,
5133
- _i
5134
- ]), yi = e.object({
5139
+ }), bi = e.discriminatedUnion("type", [
5140
+ _i,
5141
+ vi,
5142
+ yi
5143
+ ]), xi = e.object({
5135
5144
  name: e.string().openapi({ description: "The name of the form" }),
5136
5145
  messages: e.object({
5137
5146
  errors: e.record(e.string(), e.any()).optional(),
@@ -5142,14 +5151,14 @@ var X = e.object({
5142
5151
  default: e.string().optional()
5143
5152
  }).optional(),
5144
5153
  translations: e.record(e.string(), e.any()).optional(),
5145
- nodes: e.array(vi).optional(),
5154
+ nodes: e.array(bi).optional(),
5146
5155
  start: e.object({
5147
5156
  hidden_fields: e.array(e.object({
5148
5157
  key: e.string(),
5149
5158
  value: e.string()
5150
5159
  })).optional(),
5151
5160
  next_node: e.string().optional(),
5152
- coordinates: X.optional()
5161
+ coordinates: Y.optional()
5153
5162
  }).optional(),
5154
5163
  ending: e.object({
5155
5164
  redirection: e.object({
@@ -5157,7 +5166,7 @@ var X = e.object({
5157
5166
  target: e.string().optional()
5158
5167
  }).optional(),
5159
5168
  after_submit: e.object({ flow_id: e.string().optional() }).optional(),
5160
- coordinates: X.optional(),
5169
+ coordinates: Y.optional(),
5161
5170
  resume_flow: e.boolean().optional()
5162
5171
  }).optional(),
5163
5172
  style: e.object({ css: e.string().optional() }).optional(),
@@ -5166,8 +5175,8 @@ var X = e.object({
5166
5175
  sdk_src: e.string().optional()
5167
5176
  }).optional()
5168
5177
  }).openapi({ description: "Schema for flow-based forms (matches Auth0 Forms structure)" });
5169
- G.extend(yi.shape).extend({ id: e.string() });
5170
- var bi = e.object({
5178
+ W.extend(xi.shape).extend({ id: e.string() });
5179
+ var Si = e.object({
5171
5180
  id: e.number().optional(),
5172
5181
  text: e.string(),
5173
5182
  type: e.enum([
@@ -5176,24 +5185,32 @@ var bi = e.object({
5176
5185
  "success",
5177
5186
  "warning"
5178
5187
  ])
5179
- }), xi = e.object({
5188
+ }), Ci = e.object({
5180
5189
  id: e.string().optional(),
5181
5190
  text: e.string(),
5182
5191
  href: e.string(),
5183
5192
  linkText: e.string().optional()
5184
- });
5193
+ }), wi = e.object({
5194
+ "form-content-start": e.string().optional(),
5195
+ "form-content-end": e.string().optional(),
5196
+ "form-footer-start": e.string().optional(),
5197
+ "form-footer-end": e.string().optional(),
5198
+ "secondary-actions-start": e.string().optional(),
5199
+ "secondary-actions-end": e.string().optional()
5200
+ }).strict();
5185
5201
  e.object({
5186
5202
  name: e.string().optional(),
5187
5203
  action: e.string(),
5188
5204
  method: e.enum(["POST", "GET"]),
5189
5205
  title: e.string().optional(),
5190
5206
  description: e.string().optional(),
5191
- components: e.array(mi),
5192
- messages: e.array(bi).optional(),
5193
- links: e.array(xi).optional(),
5207
+ components: e.array(gi),
5208
+ messages: e.array(Si).optional(),
5209
+ links: e.array(Ci).optional(),
5210
+ partials: wi.optional(),
5194
5211
  footer: e.string().optional()
5195
5212
  });
5196
- var Si = e.enum([
5213
+ var Ti = e.enum([
5197
5214
  "pre-user-registration",
5198
5215
  "post-user-registration",
5199
5216
  "post-user-login",
@@ -5201,19 +5218,19 @@ var Si = e.enum([
5201
5218
  "validate-registration-username",
5202
5219
  "pre-user-deletion",
5203
5220
  "post-user-deletion"
5204
- ]), Ci = e.enum(["post-user-login"]), wi = e.enum([
5221
+ ]), Ei = e.enum(["post-user-login"]), Di = e.enum([
5205
5222
  "post-user-login",
5206
5223
  "post-user-registration",
5207
5224
  "post-user-update",
5208
5225
  "credentials-exchange"
5209
- ]), Ti = e.enum([
5226
+ ]), Oi = e.enum([
5210
5227
  "post-user-login",
5211
5228
  "credentials-exchange",
5212
5229
  "pre-user-registration",
5213
5230
  "post-user-registration"
5214
- ]), Ei = e.enum(["post-user-login"]);
5215
- Si.options, Ci.options, wi.options, Ti.options, Ei.options;
5216
- var Di = e.enum(["impersonate"]), Oi = e.enum([
5231
+ ]), X = e.enum(["post-user-login"]);
5232
+ Ti.options, Ei.options, Di.options, Oi.options, X.options;
5233
+ var ki = e.enum(["impersonate"]), Ai = e.enum([
5217
5234
  "ensure-username",
5218
5235
  "set-preferred-username",
5219
5236
  "account-linking"
@@ -5223,85 +5240,85 @@ var Di = e.enum(["impersonate"]), Oi = e.enum([
5223
5240
  priority: e.number().optional(),
5224
5241
  hook_id: e.string().optional(),
5225
5242
  metadata: e.record(e.string(), e.unknown()).optional()
5226
- }, ki = e.object({
5243
+ }, ji = e.object({
5227
5244
  ...Z,
5228
- trigger_id: Si,
5245
+ trigger_id: Ti,
5229
5246
  url: e.string()
5230
- }), Ai = e.object({
5247
+ }), Mi = e.object({
5231
5248
  ...Z,
5232
- trigger_id: Ci,
5249
+ trigger_id: Ei,
5233
5250
  form_id: e.string()
5234
- }), ji = e.object({
5251
+ }), Ni = e.object({
5235
5252
  ...Z,
5236
- trigger_id: wi,
5237
- template_id: Oi
5238
- }), Mi = e.object({
5253
+ trigger_id: Di,
5254
+ template_id: Ai
5255
+ }), Pi = e.object({
5239
5256
  ...Z,
5240
- trigger_id: Ti,
5257
+ trigger_id: Oi,
5241
5258
  code_id: e.string()
5242
- }), Ni = e.object({
5259
+ }), Fi = e.object({
5243
5260
  ...Z,
5244
- trigger_id: Ei,
5245
- page_id: Di,
5261
+ trigger_id: X,
5262
+ page_id: ki,
5246
5263
  permission_required: e.string().optional()
5247
5264
  });
5248
5265
  e.union([
5249
- ki,
5250
- Ai,
5251
5266
  ji,
5252
5267
  Mi,
5253
- Ni
5268
+ Ni,
5269
+ Pi,
5270
+ Fi
5254
5271
  ]);
5255
- var Pi = e.object({
5272
+ var Ii = e.object({
5256
5273
  ...Z,
5257
- trigger_id: Si
5258
- }).extend(G.shape).extend({
5274
+ trigger_id: Ti
5275
+ }).extend(W.shape).extend({
5259
5276
  hook_id: e.string(),
5260
5277
  url: e.string()
5261
- }), Fi = e.object({
5278
+ }), Li = e.object({
5262
5279
  ...Z,
5263
- trigger_id: Ci
5264
- }).extend(G.shape).extend({
5280
+ trigger_id: Ei
5281
+ }).extend(W.shape).extend({
5265
5282
  hook_id: e.string(),
5266
5283
  form_id: e.string()
5267
- }), Ii = e.object({
5284
+ }), Ri = e.object({
5268
5285
  ...Z,
5269
- trigger_id: wi
5270
- }).extend(G.shape).extend({
5286
+ trigger_id: Di
5287
+ }).extend(W.shape).extend({
5271
5288
  hook_id: e.string(),
5272
- template_id: Oi
5273
- }), Li = e.object({
5289
+ template_id: Ai
5290
+ }), zi = e.object({
5274
5291
  ...Z,
5275
- trigger_id: Ti
5276
- }).extend(G.shape).extend({
5292
+ trigger_id: Oi
5293
+ }).extend(W.shape).extend({
5277
5294
  hook_id: e.string(),
5278
5295
  code_id: e.string()
5279
- }), Ri = e.object({
5296
+ }), Bi = e.object({
5280
5297
  ...Z,
5281
- trigger_id: Ei
5282
- }).extend(G.shape).extend({
5298
+ trigger_id: X
5299
+ }).extend(W.shape).extend({
5283
5300
  hook_id: e.string(),
5284
- page_id: Di,
5301
+ page_id: ki,
5285
5302
  permission_required: e.string().optional()
5286
5303
  });
5287
5304
  e.union([
5288
- Pi,
5289
- Fi,
5290
5305
  Ii,
5291
5306
  Li,
5292
- Ri
5307
+ Ri,
5308
+ zi,
5309
+ Bi
5293
5310
  ]), e.object({
5294
5311
  code: e.string().max(1e5),
5295
5312
  secrets: e.record(e.string(), e.string()).optional()
5296
5313
  }).extend({
5297
5314
  id: e.string(),
5298
5315
  tenant_id: e.string()
5299
- }).extend(G.shape);
5300
- var zi = e.object({ name: e.string().optional() }), Bi = e.object({ email: e.string().optional() }), Vi = e.object({
5316
+ }).extend(W.shape);
5317
+ var Vi = e.object({ name: e.string().optional() }), Hi = e.object({ email: e.string().optional() }), Ui = e.object({
5301
5318
  id: e.string().optional(),
5302
5319
  organization_id: e.string().max(50),
5303
- inviter: zi,
5304
- invitee: Bi,
5320
+ inviter: Vi,
5321
+ invitee: Hi,
5305
5322
  invitation_url: e.string().url(),
5306
5323
  client_id: e.string(),
5307
5324
  connection_id: e.string().optional(),
@@ -5317,8 +5334,8 @@ e.object({
5317
5334
  created_at: e.string().datetime(),
5318
5335
  expires_at: e.string().datetime(),
5319
5336
  ticket_id: e.string().optional()
5320
- }).extend(Vi.omit({ id: !0 }).shape);
5321
- var Hi = e.object({
5337
+ }).extend(Ui.omit({ id: !0 }).shape);
5338
+ var Wi = e.object({
5322
5339
  alg: e.enum([
5323
5340
  "RS256",
5324
5341
  "RS384",
@@ -5360,7 +5377,7 @@ var Hi = e.object({
5360
5377
  path: [r],
5361
5378
  message: `EC JWK is missing required member '${r}'`
5362
5379
  });
5363
- }), Ui = e.object({ keys: e.array(Hi) });
5380
+ }), Gi = e.object({ keys: e.array(Wi) });
5364
5381
  e.object({
5365
5382
  issuer: e.string(),
5366
5383
  authorization_endpoint: e.string(),
@@ -5388,28 +5405,28 @@ e.object({
5388
5405
  backchannel_logout_supported: e.boolean().optional(),
5389
5406
  backchannel_logout_session_supported: e.boolean().optional()
5390
5407
  });
5391
- var Wi = /* @__PURE__ */ function(e) {
5408
+ var Ki = /* @__PURE__ */ function(e) {
5392
5409
  return e.PENDING = "pending", e.AUTHENTICATED = "authenticated", e.AWAITING_EMAIL_VERIFICATION = "awaiting_email_verification", e.AWAITING_MFA = "awaiting_mfa", e.AWAITING_HOOK = "awaiting_hook", e.AWAITING_CONTINUATION = "awaiting_continuation", e.AWAITING_CONSENT = "awaiting_consent", e.COMPLETED = "completed", e.FAILED = "failed", e.EXPIRED = "expired", e;
5393
- }({}), Gi = e.nativeEnum(Wi), Ki = e.object({
5410
+ }({}), qi = e.nativeEnum(Ki), Ji = e.object({
5394
5411
  strategy: e.string(),
5395
5412
  strategy_type: e.string()
5396
5413
  });
5397
5414
  e.object({
5398
5415
  csrf_token: e.string(),
5399
5416
  auth0Client: e.string().optional(),
5400
- authParams: Er,
5417
+ authParams: Or,
5401
5418
  expires_at: e.string(),
5402
5419
  deleted_at: e.string().optional(),
5403
5420
  ip: e.string().optional(),
5404
5421
  useragent: e.string().optional(),
5405
5422
  session_id: e.string().optional(),
5406
5423
  authorization_url: e.string().optional(),
5407
- state: Gi.optional().default("pending"),
5424
+ state: qi.optional().default("pending"),
5408
5425
  state_data: e.string().optional(),
5409
5426
  failure_reason: e.string().optional(),
5410
5427
  user_id: e.string().optional(),
5411
5428
  auth_connection: e.string().optional(),
5412
- auth_strategy: Ki.optional(),
5429
+ auth_strategy: Ji.optional(),
5413
5430
  authenticated_at: e.string().optional()
5414
5431
  }).openapi({ description: "This represents a login sesion" }).extend({
5415
5432
  id: e.string().openapi({ description: "This is is used as the state in the universal login" }),
@@ -5576,17 +5593,17 @@ var Q = {
5576
5593
  WARNING_DURING_LOGIN: "w",
5577
5594
  WARNING_SENDING_NOTIFICATION: "wn",
5578
5595
  WARNING_USER_MANAGEMENT: "wum"
5579
- }, qi = e.string().refine((e) => Object.values(Q).includes(e), { message: "Invalid log type" });
5596
+ }, Yi = e.string().refine((e) => Object.values(Q).includes(e), { message: "Invalid log type" });
5580
5597
  Q.ACLS_SUMMARY, Q.ACTIONS_EXECUTION_FAILED, Q.API_LIMIT, Q.API_LIMIT_WARNING, Q.APPI, Q.CIBA_EXCHANGE_FAILED, Q.CIBA_EXCHANGE_SUCCEEDED, Q.CIBA_START_FAILED, Q.CIBA_START_SUCCEEDED, Q.CODE_LINK_SENT, Q.CODE_SENT, Q.DEPRECATION_NOTICE, Q.FAILED_LOGIN, Q.FAILED_BY_CONNECTOR, Q.FAILED_CHANGE_EMAIL, Q.FAILED_BY_CORS, Q.FAILED_CROSS_ORIGIN_AUTHENTICATION, Q.FAILED_CHANGE_PASSWORD, Q.FAILED_POST_CHANGE_PASSWORD_HOOK, Q.FAILED_CHANGE_PHONE_NUMBER, Q.FAILED_CHANGE_PASSWORD_REQUEST, Q.FAILED_CONNECTOR_PROVISIONING, Q.FAILED_CHANGE_USERNAME, Q.FAILED_DELEGATION, Q.FAILED_DEVICE_ACTIVATION, Q.FAILED_DEVICE_AUTHORIZATION_REQUEST, Q.USER_CANCELED_DEVICE_CONFIRMATION, Q.FAILED_USER_DELETION, Q.FAILED_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS, Q.FAILED_EXCHANGE_CUSTOM_TOKEN, Q.FAILED_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN, Q.FAILED_FEDERATED_LOGOUT, Q.FAILED_EXCHANGE_NATIVE_SOCIAL_LOGIN, Q.FAILED_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_ROTATING_REFRESH_TOKEN, Q.FAILED_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_SUBJECT_TOKEN_FOR_ACCESS_TOKEN, Q.FAILED_HOOK, Q.FAILED_IMPERSONATION, Q.FAILED_INVITE_ACCEPT, Q.FAILED_LOGOUT, Q.FLOWS_EXECUTION_COMPLETED, Q.FLOWS_EXECUTION_FAILED, Q.FAILED_SENDING_NOTIFICATION, Q.FORMS_SUBMISSION_FAILED, Q.FORMS_SUBMISSION_SUCCEEDED, Q.FAILED_LOGIN_INCORRECT_PASSWORD, Q.FAILED_PUSHED_AUTHORIZATION_REQUEST, Q.FAILED_POST_USER_REGISTRATION_HOOK, Q.FAILED_SIGNUP, Q.FAILED_SILENT_AUTH, Q.FAILED_LOGIN_INVALID_EMAIL_USERNAME, Q.FAILED_USERS_IMPORT, Q.FAILED_VERIFICATION_EMAIL, Q.FAILED_VERIFICATION_EMAIL_REQUEST, Q.EMAIL_VERIFICATION_CONFIRMED, Q.EMAIL_VERIFICATION_FAILED, Q.MFA_AUTH_FAILED, Q.MFA_AUTH_REJECTED, Q.MFA_AUTH_SUCCESS, Q.MFA_ENROLLMENT_COMPLETE, Q.TOO_MANY_MFA_FAILURES, Q.MFA_RECOVERY_FAILED, Q.MFA_RECOVERY_RATE_LIMIT_EXCEED, Q.MFA_RECOVERY_SUCCESS, Q.MFA_EMAIL_SENT, Q.EMAIL_VERIFICATION_SENT, Q.EMAIL_VERIFICATION_SEND_FAILURE, Q.PUSH_NOTIFICATION_SENT, Q.ERROR_SENDING_MFA_PUSH_NOTIFICATION, Q.MFA_SMS_SENT, Q.ERROR_SENDING_MFA_SMS, Q.MFA_VOICE_CALL_SUCCESS, Q.MFA_VOICE_CALL_FAILED, Q.SECOND_FACTOR_STARTED, Q.MFA_ENROLL_STARTED, Q.MFA_ENROLLMENT_FAILED, Q.GUARDIAN_TENANT_UPDATE, Q.UNENROLL_DEVICE_ACCOUNT, Q.UPDATE_DEVICE_ACCOUNT, Q.WEBAUTHN_CHALLENGE_FAILED, Q.WEBAUTHN_ENROLLMENT_FAILED, Q.FAILED_KMS_API_OPERATION, Q.SUCCESS_KMS_API_OPERATION, Q.KMS_KEY_STATE_CHANGED, Q.TOO_MANY_CALLS_TO_DELEGATION, Q.BLOCKED_IP_ADDRESS, Q.BLOCKED_ACCOUNT_IP, Q.BLOCKED_ACCOUNT_EMAIL, Q.INFORMATION, Q.MFA_REQUIRED, Q.MANAGEMENT_API_READ_OPERATION, Q.FAILED_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT, Q.SUCCESSFUL_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT, Q.FAILED_OIDC_BACKCHANNEL_LOGOUT, Q.SUCCESSFUL_OIDC_BACKCHANNEL_LOGOUT, Q.ORGANIZATION_MEMBER_ADDED, Q.PASSKEY_CHALLENGE_FAILED, Q.PASSKEY_CHALLENGE_STARTED, Q.PRE_LOGIN_ASSESSMENT, Q.BREACHED_PASSWORD, Q.BREACHED_PASSWORD_ON_RESET, Q.SUCCESS_RESOURCE_CLEANUP, Q.RICH_CONSENTS_ACCESS_ERROR, Q.SUCCESS_LOGIN, Q.SUCCESS_API_OPERATION, Q.FAILED_API_OPERATION, Q.SUCCESS_CHANGE_EMAIL, Q.SUCCESS_CROSS_ORIGIN_AUTHENTICATION, Q.SUCCESS_CHANGE_PASSWORD, Q.SUCCESS_CHANGE_PHONE_NUMBER, Q.SUCCESS_CHANGE_PASSWORD_REQUEST, Q.SUCCESS_CHANGE_USERNAME, Q.SUCCESS_CREDENTIAL_VALIDATION, Q.SUCCESS_DELEGATION, Q.SUCCESS_USER_DELETION, Q.SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS, Q.SUCCESS_EXCHANGE_CUSTOM_TOKEN, Q.SUCCESS_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_NATIVE_SOCIAL_LOGIN, Q.SUCCESS_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSKEY_OOB_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSKEY_OTP_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSKEY_MFA_RECOVERY_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_SUBJECT_TOKEN_FOR_ACCESS_TOKEN, Q.SUCCESS_IMPERSONATION, Q.SUCCESSFULLY_ACCEPTED_USER_INVITE, Q.BREACHED_PASSWORD_ON_SIGNUP, Q.SUCCESS_LOGOUT, Q.SUCCESS_HOOK, Q.SUCCESS_PASSWORD_MIGRATION, Q.SUCCESS_REVOCATION, Q.SUCCESS_SIGNUP, Q.FAILED_SS_SSO_OPERATION, Q.INFORMATION_FROM_SS_SSO_OPERATION, Q.SUCCESS_SS_SSO_OPERATION, Q.SUCCESS_SILENT_AUTH, Q.SUCCESSFUL_SCIM_OPERATION, Q.SUCCESSFULLY_IMPORTED_USERS, Q.SUCCESS_VERIFICATION_EMAIL, Q.SUCCESS_VERIFICATION_EMAIL_REQUEST, Q.MAX_AMOUNT_OF_AUTHENTICATORS, Q.USER_LOGIN_BLOCK_RELEASED, Q.FAILED_UNIVERSAL_LOGOUT, Q.SUCCESSFUL_UNIVERSAL_LOGOUT, Q.WARNING_DURING_LOGIN, Q.WARNING_SENDING_NOTIFICATION, Q.WARNING_USER_MANAGEMENT, (() => {
5581
5598
  let e = {};
5582
5599
  for (let [t, n] of Object.entries(Q)) t.startsWith("SUCCESS_") || t.startsWith("SUCCESSFUL_") || t.startsWith("SUCCESSFULLY_") || t.endsWith("_SUCCEEDED") || t.endsWith("_COMPLETED") ? e[n] = "success" : t.startsWith("FAILED_") || t.startsWith("ERROR_") || t.startsWith("BREACHED_") || t.startsWith("BLOCKED_") || t === "MFA_AUTH_FAILED" || t === "MFA_AUTH_REJECTED" || t === "MFA_RECOVERY_FAILED" || t === "MFA_ENROLLMENT_FAILED" || t === "EMAIL_VERIFICATION_FAILED" || t === "WEBAUTHN_CHALLENGE_FAILED" || t === "WEBAUTHN_ENROLLMENT_FAILED" || t === "PASSKEY_CHALLENGE_FAILED" || t === "FLOWS_EXECUTION_FAILED" || t === "FORMS_SUBMISSION_FAILED" || t === "CIBA_EXCHANGE_FAILED" || t === "CIBA_START_FAILED" || t === "ACTIONS_EXECUTION_FAILED" || t === "RICH_CONSENTS_ACCESS_ERROR" || t === "USER_CANCELED_DEVICE_CONFIRMATION" || t === "TOO_MANY_MFA_FAILURES" || t === "MFA_RECOVERY_RATE_LIMIT_EXCEED" || t === "API_LIMIT" || t === "MAX_AMOUNT_OF_AUTHENTICATORS" ? e[n] = "failure" : t.startsWith("WARNING_") || t === "API_LIMIT_WARNING" || t === "DEPRECATION_NOTICE" || t === "PRE_LOGIN_ASSESSMENT" ? e[n] = "warning" : t === "CODE_SENT" || t === "CODE_LINK_SENT" || t === "MFA_EMAIL_SENT" || t === "MFA_SMS_SENT" || t === "EMAIL_VERIFICATION_SENT" || t === "PUSH_NOTIFICATION_SENT" ? e[n] = "code_sent" : t === "INFORMATION" || t === "INFORMATION_FROM_SS_SSO_OPERATION" || t === "MANAGEMENT_API_READ_OPERATION" || t === "APPI" || t === "ACLS_SUMMARY" || t === "ORGANIZATION_MEMBER_ADDED" ? e[n] = "info" : e[n] = "other";
5583
5600
  return e;
5584
5601
  })();
5585
- var Ji = e.object({
5602
+ var Xi = e.object({
5586
5603
  name: e.string(),
5587
5604
  version: e.string(),
5588
5605
  env: e.object({ node: e.string().optional() }).optional()
5589
- }), Yi = e.object({
5606
+ }), Zi = e.object({
5590
5607
  country_code: e.string().length(2),
5591
5608
  city_name: e.string(),
5592
5609
  latitude: e.string(),
@@ -5595,7 +5612,7 @@ var Ji = e.object({
5595
5612
  continent_code: e.string()
5596
5613
  });
5597
5614
  e.object({
5598
- type: qi,
5615
+ type: Yi,
5599
5616
  date: e.string(),
5600
5617
  description: e.string().optional(),
5601
5618
  ip: e.string().optional(),
@@ -5613,63 +5630,63 @@ e.object({
5613
5630
  strategy: e.string().optional(),
5614
5631
  strategy_type: e.string().optional(),
5615
5632
  hostname: e.string().optional(),
5616
- auth0_client: Ji.optional(),
5633
+ auth0_client: Xi.optional(),
5617
5634
  log_id: e.string().optional(),
5618
- location_info: Yi.optional()
5635
+ location_info: Zi.optional()
5619
5636
  }).extend({ log_id: e.string() });
5620
- var Xi = e.enum([
5637
+ var Qi = e.enum([
5621
5638
  "http",
5622
5639
  "eventbridge",
5623
5640
  "eventgrid",
5624
5641
  "splunk",
5625
5642
  "datadog",
5626
5643
  "sumo"
5627
- ]), Zi = e.enum([
5644
+ ]), $i = e.enum([
5628
5645
  "active",
5629
5646
  "paused",
5630
5647
  "suspended"
5631
- ]), Qi = e.object({
5648
+ ]), ea = e.object({
5632
5649
  type: e.string(),
5633
5650
  name: e.string()
5634
5651
  });
5635
5652
  e.object({
5636
5653
  name: e.string(),
5637
- type: Xi,
5638
- status: Zi.optional(),
5654
+ type: Qi,
5655
+ status: $i.optional(),
5639
5656
  sink: e.record(e.string(), e.unknown()),
5640
- filters: e.array(Qi).optional(),
5657
+ filters: e.array(ea).optional(),
5641
5658
  isPriority: e.boolean().optional()
5642
5659
  }).extend({
5643
5660
  id: e.string(),
5644
- status: Zi,
5661
+ status: $i,
5645
5662
  created_at: e.string().optional(),
5646
5663
  updated_at: e.string().optional()
5647
5664
  });
5648
- var $i = e.enum([
5665
+ var ta = e.enum([
5649
5666
  "auth0",
5650
5667
  "cognito",
5651
5668
  "okta",
5652
5669
  "oidc"
5653
- ]), ea = e.object({
5670
+ ]), na = e.object({
5654
5671
  domain: e.string(),
5655
5672
  client_id: e.string(),
5656
5673
  client_secret: e.string(),
5657
5674
  audience: e.string().optional(),
5658
5675
  scope: e.string().optional()
5659
- }), ta = e.object({
5676
+ }), ra = e.object({
5660
5677
  id: e.string().optional(),
5661
5678
  name: e.string(),
5662
- provider: $i,
5679
+ provider: ta,
5663
5680
  connection: e.string(),
5664
5681
  enabled: e.boolean().default(!0),
5665
- credentials: ea
5682
+ credentials: na
5666
5683
  });
5667
5684
  e.object({
5668
5685
  id: e.string(),
5669
5686
  created_at: e.string(),
5670
5687
  updated_at: e.string()
5671
- }).extend(ta.shape);
5672
- var na = e.object({
5688
+ }).extend(ra.shape);
5689
+ var ia = e.object({
5673
5690
  enabled: e.boolean().optional(),
5674
5691
  shields: e.array(e.string()).optional(),
5675
5692
  admin_notification_frequency: e.array(e.string()).optional(),
@@ -5678,13 +5695,13 @@ var na = e.object({
5678
5695
  "pre-user-registration": e.object({ shields: e.array(e.string()).optional() }).optional(),
5679
5696
  "pre-change-password": e.object({ shields: e.array(e.string()).optional() }).optional()
5680
5697
  }).optional()
5681
- }), ra = e.object({
5698
+ }), aa = e.object({
5682
5699
  enabled: e.boolean().optional(),
5683
5700
  shields: e.array(e.string()).optional(),
5684
5701
  allowlist: e.array(e.string()).optional(),
5685
5702
  mode: e.string().optional(),
5686
5703
  max_attempts: e.number().optional()
5687
- }), ia = e.object({
5704
+ }), oa = e.object({
5688
5705
  enabled: e.boolean().optional(),
5689
5706
  shields: e.array(e.string()).optional(),
5690
5707
  allowlist: e.array(e.string()).optional(),
@@ -5698,10 +5715,10 @@ var na = e.object({
5698
5715
  rate: e.number().optional()
5699
5716
  }).optional()
5700
5717
  }).optional()
5701
- }), aa = e.object({
5702
- breached_password_detection: na.optional(),
5703
- brute_force_protection: ra.optional(),
5704
- suspicious_ip_throttling: ia.optional()
5718
+ }), sa = e.object({
5719
+ breached_password_detection: ia.optional(),
5720
+ brute_force_protection: aa.optional(),
5721
+ suspicious_ip_throttling: oa.optional()
5705
5722
  });
5706
5723
  e.object({
5707
5724
  id: e.string().optional(),
@@ -5714,14 +5731,14 @@ e.object({
5714
5731
  created_at: e.string(),
5715
5732
  updated_at: e.string()
5716
5733
  });
5717
- var oa = e.object({
5734
+ var ca = e.object({
5718
5735
  initial_user_agent: e.string().describe("First user agent of the device from which this user logged in"),
5719
5736
  initial_ip: e.string().describe("First IP address associated with this session"),
5720
5737
  initial_asn: e.string().describe("First autonomous system number associated with this session"),
5721
5738
  last_user_agent: e.string().describe("Last user agent of the device from which this user logged in"),
5722
5739
  last_ip: e.string().describe("Last IP address from which this user logged in"),
5723
5740
  last_asn: e.string().describe("Last autonomous system number from which this user logged in")
5724
- }), sa = e.object({
5741
+ }), la = e.object({
5725
5742
  id: e.string(),
5726
5743
  revoked_at: e.string().optional(),
5727
5744
  used_at: e.string().optional(),
@@ -5729,7 +5746,7 @@ var oa = e.object({
5729
5746
  expires_at: e.string().optional(),
5730
5747
  login_session_id: e.string(),
5731
5748
  idle_expires_at: e.string().optional(),
5732
- device: oa.describe("Metadata related to the device used in the session"),
5749
+ device: ca.describe("Metadata related to the device used in the session"),
5733
5750
  clients: e.array(e.string()).describe("List of client details for the session")
5734
5751
  });
5735
5752
  e.object({
@@ -5737,7 +5754,7 @@ e.object({
5737
5754
  updated_at: e.string(),
5738
5755
  authenticated_at: e.string(),
5739
5756
  last_interaction_at: e.string()
5740
- }).extend(sa.shape), e.object({
5757
+ }).extend(la.shape), e.object({
5741
5758
  kid: e.string().openapi({ description: "The key id of the signing key" }),
5742
5759
  tenant_id: e.string().optional().openapi({ description: "The tenant the key belongs to. Omitted means the key is shared / control-plane scoped." }),
5743
5760
  cert: e.string().openapi({ description: "The public certificate of the signing key" }),
@@ -5754,7 +5771,7 @@ e.object({
5754
5771
  connection: e.string().optional().openapi({ description: "The connection identifier associated with the key" }),
5755
5772
  type: e.enum(["jwt_signing", "saml_encryption"]).openapi({ description: "The type of the signing key" })
5756
5773
  });
5757
- var ca = e.object({
5774
+ var ua = e.object({
5758
5775
  id: e.string().optional(),
5759
5776
  audience: e.string().optional(),
5760
5777
  friendly_name: e.string(),
@@ -5872,7 +5889,7 @@ var ca = e.object({
5872
5889
  "shared_planetscale"
5873
5890
  ]).optional(),
5874
5891
  d1_database_id: e.string().max(64).optional(),
5875
- attack_protection: aa.optional(),
5892
+ attack_protection: sa.optional(),
5876
5893
  mfa: e.object({
5877
5894
  policy: e.enum(["never", "always"]).default("never").optional(),
5878
5895
  factors: e.object({
@@ -5903,29 +5920,29 @@ var ca = e.object({
5903
5920
  e.object({
5904
5921
  created_at: e.string().nullable().transform((e) => e ?? ""),
5905
5922
  updated_at: e.string().nullable().transform((e) => e ?? "")
5906
- }).extend(ca.shape).extend({
5923
+ }).extend(ua.shape).extend({
5907
5924
  id: e.string(),
5908
5925
  is_control_plane: e.boolean().optional()
5909
5926
  });
5910
- var la = e.enum([
5927
+ var da = e.enum([
5911
5928
  "provision",
5912
5929
  "seed",
5913
5930
  "upgrade",
5914
5931
  "backup",
5915
5932
  "deprovision",
5916
5933
  "users_import"
5917
- ]), ua = e.enum([
5934
+ ]), fa = e.enum([
5918
5935
  "pending",
5919
5936
  "running",
5920
5937
  "succeeded",
5921
5938
  "failed",
5922
5939
  "cancelled"
5923
- ]), da = e.string().max(64);
5940
+ ]), pa = e.string().max(64);
5924
5941
  e.object({
5925
5942
  tenant_id: e.string().max(255).nullable().default(null),
5926
5943
  rollout_id: e.string().max(255).nullable().optional(),
5927
- kind: la,
5928
- engine: da,
5944
+ kind: da,
5945
+ engine: pa,
5929
5946
  engine_instance_id: e.string().max(100).nullable().optional(),
5930
5947
  target_worker_version: e.string().max(255).nullable().optional(),
5931
5948
  target_database_version: e.string().max(255).nullable().optional(),
@@ -5933,7 +5950,7 @@ e.object({
5933
5950
  input: e.record(e.string(), e.unknown()).nullable().optional()
5934
5951
  }).extend({
5935
5952
  id: e.string(),
5936
- status: ua,
5953
+ status: fa,
5937
5954
  current_step: e.string().max(255).nullable().optional(),
5938
5955
  error: e.string().nullable().optional(),
5939
5956
  result: e.record(e.string(), e.unknown()).nullable().optional(),
@@ -5954,7 +5971,7 @@ e.object({
5954
5971
  claim_expires_at: !0,
5955
5972
  finished_at: !0
5956
5973
  }).partial();
5957
- var fa = e.enum([
5974
+ var ma = e.enum([
5958
5975
  "started",
5959
5976
  "succeeded",
5960
5977
  "failed",
@@ -5965,14 +5982,14 @@ var fa = e.enum([
5965
5982
  e.object({
5966
5983
  operation_id: e.string().max(255),
5967
5984
  step: e.string().max(255),
5968
- outcome: fa,
5985
+ outcome: ma,
5969
5986
  detail: e.record(e.string(), e.unknown()).nullable().optional(),
5970
5987
  attempt: e.number().int().min(1).default(1)
5971
5988
  }).extend({
5972
5989
  id: e.string(),
5973
5990
  created_at: e.string()
5974
5991
  });
5975
- var pa = e.enum([
5992
+ var ha = e.enum([
5976
5993
  "pending",
5977
5994
  "inserted",
5978
5995
  "updated",
@@ -5983,28 +6000,28 @@ e.object({
5983
6000
  operation_id: e.string().max(255),
5984
6001
  seq: e.number().int().min(0),
5985
6002
  payload: e.record(e.string(), e.unknown()),
5986
- status: pa.default("pending"),
6003
+ status: ha.default("pending"),
5987
6004
  error_code: e.string().max(64).nullable().optional(),
5988
6005
  error_message: e.string().nullable().optional(),
5989
6006
  error_path: e.string().max(255).nullable().optional(),
5990
6007
  entity_id: e.string().max(255).nullable().optional()
5991
6008
  }).extend({
5992
- status: pa,
6009
+ status: ha,
5993
6010
  created_at: e.string(),
5994
6011
  updated_at: e.string()
5995
6012
  }), e.object({
5996
6013
  seq: e.number().int().min(0),
5997
- status: pa,
6014
+ status: ha,
5998
6015
  error_code: e.string().max(64).nullable().optional(),
5999
6016
  error_message: e.string().nullable().optional(),
6000
6017
  error_path: e.string().max(255).nullable().optional(),
6001
6018
  entity_id: e.string().max(255).nullable().optional()
6002
6019
  });
6003
- var ma = e.enum([
6020
+ var ga = e.enum([
6004
6021
  "upgrade",
6005
6022
  "reseed",
6006
6023
  "backup"
6007
- ]), ha = e.enum([
6024
+ ]), _a = e.enum([
6008
6025
  "pending",
6009
6026
  "canary",
6010
6027
  "rolling",
@@ -6013,7 +6030,7 @@ var ma = e.enum([
6013
6030
  "failed"
6014
6031
  ]);
6015
6032
  e.object({
6016
- kind: ma,
6033
+ kind: ga,
6017
6034
  target_worker_version: e.string().max(255).nullable().optional(),
6018
6035
  target_database_version: e.string().max(255).nullable().optional(),
6019
6036
  wave_size: e.number().int().min(1).default(10),
@@ -6022,7 +6039,7 @@ e.object({
6022
6039
  initiated_by: e.string().max(255).nullable().optional()
6023
6040
  }).extend({
6024
6041
  id: e.string(),
6025
- status: ha,
6042
+ status: _a,
6026
6043
  created_at: e.string(),
6027
6044
  updated_at: e.string(),
6028
6045
  finished_at: e.string().nullable().optional()
@@ -6044,7 +6061,7 @@ e.object({
6044
6061
  code: e.string(),
6045
6062
  state: e.string().optional()
6046
6063
  });
6047
- var ga = e.object({
6064
+ var va = e.object({
6048
6065
  button_border_radius: e.number(),
6049
6066
  button_border_weight: e.number(),
6050
6067
  buttons_style: e.enum([
@@ -6062,7 +6079,7 @@ var ga = e.object({
6062
6079
  show_widget_shadow: e.boolean(),
6063
6080
  widget_border_weight: e.number(),
6064
6081
  widget_corner_radius: e.number()
6065
- }), _a = e.object({
6082
+ }), ya = e.object({
6066
6083
  base_focus_color: e.string(),
6067
6084
  base_hover_color: e.string(),
6068
6085
  body_text: e.string(),
@@ -6089,7 +6106,7 @@ var ga = e.object({
6089
6106
  }), $ = e.object({
6090
6107
  bold: e.boolean(),
6091
6108
  size: e.number()
6092
- }), va = e.object({
6109
+ }), ba = e.object({
6093
6110
  body_text: $,
6094
6111
  buttons_text: $,
6095
6112
  font_url: e.string(),
@@ -6099,7 +6116,7 @@ var ga = e.object({
6099
6116
  reference_text_size: e.number(),
6100
6117
  subtitle: $,
6101
6118
  title: $
6102
- }), ya = e.object({
6119
+ }), xa = e.object({
6103
6120
  background_color: e.string(),
6104
6121
  background_image_url: e.string(),
6105
6122
  page_layout: e.enum([
@@ -6112,7 +6129,7 @@ var ga = e.object({
6112
6129
  "chip",
6113
6130
  "none"
6114
6131
  ]).optional()
6115
- }), ba = e.object({
6132
+ }), Sa = e.object({
6116
6133
  header_text_alignment: e.enum([
6117
6134
  "center",
6118
6135
  "left",
@@ -6129,12 +6146,12 @@ var ga = e.object({
6129
6146
  social_buttons_layout: e.enum(["bottom", "top"])
6130
6147
  });
6131
6148
  e.object({
6132
- borders: ga,
6133
- colors: _a,
6149
+ borders: va,
6150
+ colors: ya,
6134
6151
  displayName: e.string(),
6135
- fonts: va,
6136
- page_background: ya,
6137
- widget: ba
6152
+ fonts: ba,
6153
+ page_background: xa,
6154
+ widget: Sa
6138
6155
  }).extend({ themeId: e.string() }), e.object({
6139
6156
  universal_login_experience: e.enum(["new", "classic"]).default("new"),
6140
6157
  identifier_first: e.boolean().default(!0),
@@ -6142,32 +6159,32 @@ e.object({
6142
6159
  show_last_used_connection: e.boolean().default(!1),
6143
6160
  webauthn_platform_first_factor: e.boolean()
6144
6161
  });
6145
- var xa = e.object({
6162
+ var Ca = e.object({
6146
6163
  hosts: e.array(e.string()).optional(),
6147
6164
  methods: e.array(e.string()).optional(),
6148
6165
  path: e.string().default("/*"),
6149
6166
  headers: e.record(e.string(), e.string()).optional(),
6150
6167
  query: e.record(e.string(), e.string()).optional()
6151
- }), Sa = e.object({
6168
+ }), wa = e.object({
6152
6169
  type: e.string(),
6153
6170
  options: e.record(e.string(), e.unknown()).default({})
6154
- }), Ca = e.object({
6171
+ }), Ta = e.object({
6155
6172
  id: e.string().optional(),
6156
6173
  custom_domain_id: e.string(),
6157
6174
  priority: e.number().int().default(100),
6158
- match: xa,
6159
- handlers: e.array(Sa).min(1)
6175
+ match: Ca,
6176
+ handlers: e.array(wa).min(1)
6160
6177
  });
6161
- Ca.extend({
6178
+ Ta.extend({
6162
6179
  id: e.string(),
6163
6180
  tenant_id: e.string(),
6164
6181
  created_at: e.string(),
6165
6182
  updated_at: e.string()
6166
- }), Ca.partial().omit({
6183
+ }), Ta.partial().omit({
6167
6184
  id: !0,
6168
6185
  custom_domain_id: !0
6169
6186
  });
6170
- var wa = "custom_authentication", Ta = [
6187
+ var Ea = "custom_authentication", Da = [
6171
6188
  "urn:ietf:params:oauth:",
6172
6189
  "urn:auth0",
6173
6190
  "urn:okta",
@@ -6175,56 +6192,56 @@ var wa = "custom_authentication", Ta = [
6175
6192
  "https://auth0.com",
6176
6193
  "http://okta.com",
6177
6194
  "https://okta.com"
6178
- ], Ea = e.string().min(1).max(200).refine((e) => e.startsWith("https://") || e.startsWith("urn:"), { message: "subject_token_type must be a URI starting with https:// or urn:" }).refine((e) => !Ta.some((t) => e.toLowerCase().startsWith(t)), { message: "subject_token_type uses a reserved namespace" }), Da = e.enum([
6195
+ ], Oa = e.string().min(1).max(200).refine((e) => e.startsWith("https://") || e.startsWith("urn:"), { message: "subject_token_type must be a URI starting with https:// or urn:" }).refine((e) => !Da.some((t) => e.toLowerCase().startsWith(t)), { message: "subject_token_type uses a reserved namespace" }), ka = e.enum([
6179
6196
  "RS256",
6180
6197
  "RS384",
6181
6198
  "RS512",
6182
6199
  "ES256",
6183
6200
  "ES384",
6184
6201
  "ES512"
6185
- ]), Oa = e.discriminatedUnion("type", [e.object({
6202
+ ]), Aa = e.discriminatedUnion("type", [e.object({
6186
6203
  type: e.literal("connection"),
6187
6204
  connection: e.string().min(1),
6188
6205
  create_if_not_exists: e.boolean().default(!0),
6189
6206
  trust_email_verified: e.boolean().default(!1)
6190
- }), e.object({ type: e.literal("user_id") })]), ka = e.object({
6207
+ }), e.object({ type: e.literal("user_id") })]), ja = e.object({
6191
6208
  issuer: e.string().min(1).max(2048),
6192
- jwks: Ui.optional(),
6209
+ jwks: Gi.optional(),
6193
6210
  jwks_uri: e.string().url().optional(),
6194
6211
  audience: e.array(e.string().min(1)).min(1).optional(),
6195
- algorithms: e.array(Da).min(1).optional(),
6212
+ algorithms: e.array(ka).min(1).optional(),
6196
6213
  max_lifetime_seconds: e.number().int().min(1).max(3600).default(300),
6197
6214
  require_jti: e.boolean().default(!0),
6198
- user_mapping: Oa
6215
+ user_mapping: Aa
6199
6216
  });
6200
6217
  e.object({
6201
6218
  name: e.string().min(1).max(255),
6202
- subject_token_type: Ea,
6219
+ subject_token_type: Oa,
6203
6220
  action_id: e.string().min(1).optional(),
6204
- type: e.literal(wa),
6205
- jwt_verification: ka.optional()
6221
+ type: e.literal(Ea),
6222
+ jwt_verification: ja.optional()
6206
6223
  }).extend({
6207
6224
  id: e.string(),
6208
6225
  created_at: e.string(),
6209
6226
  updated_at: e.string()
6210
6227
  }), e.object({
6211
6228
  name: e.string().min(1).max(255).optional(),
6212
- subject_token_type: Ea.optional(),
6213
- jwt_verification: ka.optional()
6229
+ subject_token_type: Oa.optional(),
6230
+ jwt_verification: ja.optional()
6214
6231
  });
6215
- var Aa = e.object({
6232
+ var Ma = e.object({
6216
6233
  scim: e.string(),
6217
6234
  auth0: e.string()
6218
- }), ja = e.object({
6235
+ }), Na = e.object({
6219
6236
  connection_id: e.string(),
6220
6237
  user_id_attribute: e.string().default("externalId"),
6221
- mapping: e.array(Aa).default([])
6238
+ mapping: e.array(Ma).default([])
6222
6239
  });
6223
6240
  e.object({
6224
6241
  created_at: e.string(),
6225
6242
  updated_at: e.string()
6226
- }).extend(ja.shape);
6227
- var Ma = e.object({
6243
+ }).extend(Na.shape);
6244
+ var Pa = e.object({
6228
6245
  token_id: e.string(),
6229
6246
  connection_id: e.string(),
6230
6247
  token_hash: e.string(),
@@ -6234,20 +6251,20 @@ var Ma = e.object({
6234
6251
  e.object({
6235
6252
  created_at: e.string(),
6236
6253
  last_used_at: e.string().optional()
6237
- }).extend(Ma.shape);
6238
- var Na = e.object({
6254
+ }).extend(Pa.shape);
6255
+ var Fa = e.object({
6239
6256
  connection_id: e.string(),
6240
6257
  external_id: e.string(),
6241
6258
  user_id: e.string()
6242
6259
  });
6243
- e.object({ created_at: e.string() }).extend(Na.shape), e.object({
6260
+ e.object({ created_at: e.string() }).extend(Fa.shape), e.object({
6244
6261
  name: e.string(),
6245
6262
  enabled: e.boolean().optional().default(!0),
6246
6263
  default_from_address: e.string().optional(),
6247
6264
  credentials: e.record(e.string(), e.unknown()),
6248
6265
  settings: e.object({}).optional()
6249
6266
  });
6250
- var Pa = e.enum([
6267
+ var Ia = e.enum([
6251
6268
  "verify_email",
6252
6269
  "verify_email_by_code",
6253
6270
  "reset_email",
@@ -6262,7 +6279,7 @@ var Pa = e.enum([
6262
6279
  "user_invitation"
6263
6280
  ]);
6264
6281
  e.object({
6265
- template: Pa,
6282
+ template: Ia,
6266
6283
  body: e.string(),
6267
6284
  from: e.string(),
6268
6285
  subject: e.string(),
@@ -6277,13 +6294,13 @@ e.object({
6277
6294
  session_id: e.string().optional(),
6278
6295
  organization: e.string().optional(),
6279
6296
  auth_connection: e.string().optional(),
6280
- auth_strategy: Ki.optional(),
6297
+ auth_strategy: Ji.optional(),
6281
6298
  user_id: e.string(),
6282
6299
  client_id: e.string(),
6283
6300
  expires_at: e.string().optional(),
6284
6301
  idle_expires_at: e.string().optional(),
6285
6302
  last_exchanged_at: e.string().optional(),
6286
- device: oa,
6303
+ device: ca,
6287
6304
  resource_servers: e.array(e.object({
6288
6305
  audience: e.string(),
6289
6306
  scopes: e.string()
@@ -6304,10 +6321,10 @@ e.object({
6304
6321
  name: e.string(),
6305
6322
  options: e.object({})
6306
6323
  });
6307
- var Fa = e.object({
6324
+ var La = e.object({
6308
6325
  value: e.string(),
6309
6326
  description: e.string().optional()
6310
- }), Ia = e.object({
6327
+ }), Ra = e.object({
6311
6328
  token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
6312
6329
  enforce_policies: e.boolean().optional(),
6313
6330
  allow_skipping_userinfo: e.boolean().optional(),
@@ -6315,11 +6332,11 @@ var Fa = e.object({
6315
6332
  persist_client_authorization: e.boolean().optional(),
6316
6333
  enable_introspection_endpoint: e.boolean().optional(),
6317
6334
  mtls: e.object({ bound_access_tokens: e.boolean().optional() }).optional()
6318
- }), La = e.object({
6335
+ }), za = e.object({
6319
6336
  id: e.string().optional(),
6320
6337
  name: e.string(),
6321
6338
  identifier: e.string(),
6322
- scopes: e.array(Fa).optional(),
6339
+ scopes: e.array(La).optional(),
6323
6340
  signing_alg: e.string().optional(),
6324
6341
  signing_secret: e.string().optional(),
6325
6342
  token_lifetime: e.number().default(86400),
@@ -6327,20 +6344,20 @@ var Fa = e.object({
6327
6344
  skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
6328
6345
  allow_offline_access: e.boolean().optional(),
6329
6346
  verificationKey: e.string().optional(),
6330
- options: Ia.optional(),
6347
+ options: Ra.optional(),
6331
6348
  is_system: e.boolean().optional(),
6332
6349
  metadata: e.record(e.string(), e.any()).optional()
6333
6350
  }).extend({
6334
6351
  created_at: e.string().optional(),
6335
6352
  updated_at: e.string().optional()
6336
6353
  });
6337
- e.array(La);
6338
- var Ra = e.object({
6354
+ e.array(za);
6355
+ var Ba = e.object({
6339
6356
  role_id: e.string(),
6340
6357
  resource_server_identifier: e.string(),
6341
6358
  permission_name: e.string()
6342
6359
  }).extend({ created_at: e.string() });
6343
- e.array(Ra), e.object({
6360
+ e.array(Ba), e.object({
6344
6361
  user_id: e.string().openapi({ description: "The id of the user that granted the consent" }),
6345
6362
  clientID: e.string().openapi({ description: "The id of the client the grant was issued to" }),
6346
6363
  audience: e.string().optional().openapi({ description: "The audience the grant applies to" }),
@@ -6353,7 +6370,7 @@ e.array(Ra), e.object({
6353
6370
  failed_logins: e.array(e.string()).optional(),
6354
6371
  last_password_reset: e.string().optional()
6355
6372
  });
6356
- var za = e.object({
6373
+ var Va = e.object({
6357
6374
  user_id: e.string(),
6358
6375
  resource_server_identifier: e.string(),
6359
6376
  permission_name: e.string(),
@@ -6362,8 +6379,8 @@ var za = e.object({
6362
6379
  tenant_id: e.string(),
6363
6380
  created_at: e.string().optional()
6364
6381
  });
6365
- e.array(za);
6366
- var Ba = e.object({
6382
+ e.array(Va);
6383
+ var Ha = e.object({
6367
6384
  user_id: e.string(),
6368
6385
  resource_server_identifier: e.string(),
6369
6386
  resource_server_name: e.string(),
@@ -6372,8 +6389,8 @@ var Ba = e.object({
6372
6389
  created_at: e.string().optional(),
6373
6390
  organization_id: e.string().optional()
6374
6391
  });
6375
- e.array(Ba);
6376
- var Va = e.object({
6392
+ e.array(Ha);
6393
+ var Ua = e.object({
6377
6394
  user_id: e.string(),
6378
6395
  role_id: e.string(),
6379
6396
  organization_id: e.string().optional()
@@ -6381,8 +6398,8 @@ var Va = e.object({
6381
6398
  tenant_id: e.string(),
6382
6399
  created_at: e.string().optional()
6383
6400
  });
6384
- e.array(Va);
6385
- var Ha = e.object({
6401
+ e.array(Ua);
6402
+ var Wa = e.object({
6386
6403
  id: e.string().optional().openapi({ description: "The unique identifier of the role. If not provided, one will be generated." }),
6387
6404
  name: e.string().min(1).max(50).openapi({ description: "The name of the role. Cannot include '<' or '>'" }),
6388
6405
  description: e.string().max(255).optional().openapi({ description: "The description of the role" }),
@@ -6393,19 +6410,19 @@ var Ha = e.object({
6393
6410
  created_at: e.string().optional(),
6394
6411
  updated_at: e.string().optional()
6395
6412
  });
6396
- e.array(Ha);
6397
- var Ua = e.object({
6413
+ e.array(Wa);
6414
+ var Ga = e.object({
6398
6415
  logo_url: e.string().optional().openapi({ description: "URL of the organization's logo" }),
6399
6416
  colors: e.object({
6400
6417
  primary: e.string().optional().openapi({ description: "Primary color in hex format (e.g., #FF0000)" }),
6401
6418
  page_background: e.string().optional().openapi({ description: "Page background color in hex format (e.g., #FFFFFF)" })
6402
6419
  }).optional()
6403
- }).optional(), Wa = e.object({
6420
+ }).optional(), Ka = e.object({
6404
6421
  connection_id: e.string().openapi({ description: "ID of the connection" }),
6405
6422
  assign_membership_on_login: e.boolean().default(!1).openapi({ description: "Whether to assign membership to the organization on login" }),
6406
6423
  show_as_button: e.boolean().default(!0).openapi({ description: "Whether to show this connection as a button in the login screen" }),
6407
6424
  is_signup_enabled: e.boolean().default(!0).openapi({ description: "Whether signup is enabled for this connection" })
6408
- }), Ga = e.object({ client_credentials: e.object({
6425
+ }), qa = e.object({ client_credentials: e.object({
6409
6426
  enforce: e.boolean().default(!1).openapi({ description: "Whether to enforce token quota limits" }),
6410
6427
  per_day: e.number().min(0).default(0).openapi({ description: "Maximum tokens per day (0 = unlimited)" }),
6411
6428
  per_hour: e.number().min(0).default(0).openapi({ description: "Maximum tokens per hour (0 = unlimited)" })
@@ -6414,15 +6431,15 @@ e.object({
6414
6431
  id: e.string().optional(),
6415
6432
  name: e.string().min(1).regex(/^[a-z0-9_-]+$/, { message: "Organization name must be lowercase and can only contain letters, numbers, hyphens, and underscores" }).openapi({ description: "The name of the organization. Must be lowercase and can only contain letters, numbers, hyphens, and underscores." }),
6416
6433
  display_name: e.string().optional().openapi({ description: "The display name of the organization" }),
6417
- branding: Ua,
6434
+ branding: Ga,
6418
6435
  metadata: e.record(e.string(), e.any()).default({}).optional().openapi({ description: "Custom metadata for the organization" }),
6419
- enabled_connections: e.array(Wa).default([]).optional().openapi({ description: "List of enabled connections for the organization" }),
6420
- token_quota: Ga
6421
- }).extend(G.shape).extend({
6436
+ enabled_connections: e.array(Ka).default([]).optional().openapi({ description: "List of enabled connections for the organization" }),
6437
+ token_quota: qa
6438
+ }).extend(W.shape).extend({
6422
6439
  id: e.string(),
6423
6440
  name: e.string().min(1).openapi({ description: "The name of the organization" })
6424
6441
  });
6425
- var Ka = e.object({
6442
+ var Ja = e.object({
6426
6443
  connection_id: e.string().openapi({ description: "ID of the tenant-level connection to enable for the org." }),
6427
6444
  assign_membership_on_login: e.boolean().optional().default(!1),
6428
6445
  show_as_button: e.boolean().optional().default(!0),
@@ -6435,10 +6452,10 @@ var Ka = e.object({
6435
6452
  created_at: e.string().optional(),
6436
6453
  updated_at: e.string().optional()
6437
6454
  });
6438
- e.array(Ka), e.object({
6455
+ e.array(Ja), e.object({
6439
6456
  user_id: e.string().openapi({ description: "ID of the user" }),
6440
6457
  organization_id: e.string().openapi({ description: "ID of the organization" })
6441
- }).extend(G.shape).extend({ id: e.string() }), e.object({
6458
+ }).extend(W.shape).extend({ id: e.string() }), e.object({
6442
6459
  idle_session_lifetime: e.number().default(72),
6443
6460
  session_lifetime: e.number().default(168),
6444
6461
  session_cookie: e.object({ mode: e.enum(["persistent", "non-persistent"]).optional() }).optional(),
@@ -6574,7 +6591,7 @@ e.array(Ka), e.object({
6574
6591
  "passwordless",
6575
6592
  "enterprise"
6576
6593
  ]);
6577
- var qa = e.object({
6594
+ var Ya = e.object({
6578
6595
  cohort: e.string(),
6579
6596
  sessions: e.number(),
6580
6597
  active: e.array(e.number())
@@ -6583,9 +6600,9 @@ e.object({
6583
6600
  interval: e.literal("week"),
6584
6601
  from: e.string(),
6585
6602
  to: e.string(),
6586
- cohorts: e.array(qa)
6603
+ cohorts: e.array(Ya)
6587
6604
  });
6588
- var Ja = e.object({
6605
+ var Xa = e.object({
6589
6606
  cohort: e.string(),
6590
6607
  tokens: e.number(),
6591
6608
  active: e.array(e.number())
@@ -6594,24 +6611,24 @@ e.object({
6594
6611
  interval: e.literal("week"),
6595
6612
  from: e.string(),
6596
6613
  to: e.string(),
6597
- cohorts: e.array(Ja)
6614
+ cohorts: e.array(Xa)
6598
6615
  });
6599
- var Ya = e.object({
6616
+ var Za = e.object({
6600
6617
  name: e.string(),
6601
6618
  type: e.string()
6602
- }), Xa = e.object({
6619
+ }), Qa = e.object({
6603
6620
  elapsed: e.number(),
6604
6621
  rows_read: e.number().optional(),
6605
6622
  bytes_read: e.number().optional()
6606
6623
  });
6607
6624
  e.object({
6608
- meta: e.array(Ya),
6625
+ meta: e.array(Za),
6609
6626
  data: e.array(e.record(e.string(), e.any())),
6610
6627
  rows: e.number(),
6611
6628
  rows_before_limit_at_least: e.number().optional(),
6612
- statistics: Xa.optional()
6629
+ statistics: Qa.optional()
6613
6630
  });
6614
- var Za = e.enum(/* @__PURE__ */ "login.login-id.login-password.signup.signup-id.signup-password.reset-password.consent.mfa.mfa-push.mfa-otp.mfa-voice.mfa-phone.mfa-webauthn.mfa-email.mfa-recovery-code.status.device-flow.email-verification.email-otp-challenge.organizations.invitation.common.passkeys.captcha.custom-form.login-passwordless.mfa-login-options".split(".")), Qa = e.record(e.string(), e.record(e.string(), e.string())).openapi({
6631
+ var $a = e.enum(/* @__PURE__ */ "login.login-id.login-password.signup.signup-id.signup-password.reset-password.consent.mfa.mfa-push.mfa-otp.mfa-voice.mfa-phone.mfa-webauthn.mfa-email.mfa-recovery-code.status.device-flow.email-verification.email-otp-challenge.organizations.invitation.common.passkeys.captcha.custom-form.login-passwordless.mfa-login-options".split(".")), eo = e.record(e.string(), e.record(e.string(), e.string())).openapi({
6615
6632
  type: "object",
6616
6633
  additionalProperties: {
6617
6634
  type: "object",
@@ -6619,11 +6636,23 @@ var Za = e.enum(/* @__PURE__ */ "login.login-id.login-password.signup.signup-id.
6619
6636
  }
6620
6637
  });
6621
6638
  e.object({
6622
- prompt: Za,
6639
+ prompt: $a,
6623
6640
  language: e.string(),
6624
- custom_text: Qa
6641
+ custom_text: eo
6625
6642
  });
6626
- var $a = e.enum([
6643
+ var to = e.object({
6644
+ "form-content-start": e.string().optional(),
6645
+ "form-content-end": e.string().optional(),
6646
+ "form-footer-start": e.string().optional(),
6647
+ "form-footer-end": e.string().optional(),
6648
+ "secondary-actions-start": e.string().optional(),
6649
+ "secondary-actions-end": e.string().optional()
6650
+ }).strict(), no = e.record(e.string(), to);
6651
+ e.object({
6652
+ prompt: e.string(),
6653
+ partials: no
6654
+ });
6655
+ var ro = e.enum([
6627
6656
  "phone",
6628
6657
  "totp",
6629
6658
  "email",
@@ -6631,9 +6660,9 @@ var $a = e.enum([
6631
6660
  "webauthn-roaming",
6632
6661
  "webauthn-platform",
6633
6662
  "passkey"
6634
- ]), eo = e.object({
6663
+ ]), io = e.object({
6635
6664
  user_id: e.string(),
6636
- type: $a,
6665
+ type: ro,
6637
6666
  phone_number: e.string().optional(),
6638
6667
  totp_secret: e.string().optional(),
6639
6668
  credential_id: e.string().optional(),
@@ -6644,7 +6673,7 @@ var $a = e.enum([
6644
6673
  friendly_name: e.string().optional(),
6645
6674
  confirmed: e.boolean().default(!1)
6646
6675
  });
6647
- function to(t, n) {
6676
+ function ao(t, n) {
6648
6677
  t.type === "phone" && !t.phone_number && n.addIssue({
6649
6678
  code: e.ZodIssueCode.custom,
6650
6679
  message: "phone_number is required when type is 'phone'",
@@ -6667,51 +6696,64 @@ function to(t, n) {
6667
6696
  path: ["public_key"]
6668
6697
  }));
6669
6698
  }
6670
- eo.superRefine(to), eo.extend({
6699
+ io.superRefine(ao), io.extend({
6671
6700
  id: e.string(),
6672
6701
  created_at: e.string(),
6673
6702
  updated_at: e.string()
6674
- }).superRefine(to), e.object({
6703
+ }).superRefine(ao), e.object({
6675
6704
  id: e.string().optional(),
6676
6705
  created_at: e.string().datetime({ offset: !0 }).optional(),
6677
6706
  updated_at: e.string().datetime({ offset: !0 }).optional()
6678
6707
  });
6679
- function no(e) {
6708
+ function oo(e) {
6680
6709
  let t = atob(e), n = new Uint8Array(t.length);
6681
6710
  for (let e = 0; e < t.length; e++) n[e] = t.charCodeAt(e);
6682
6711
  return n;
6683
6712
  }
6684
6713
  //#endregion
6685
6714
  //#region ../../node_modules/.pnpm/nanoid@5.1.11/node_modules/nanoid/url-alphabet/index.js
6686
- var ro = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", io = (e = 21) => {
6715
+ var so = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", co = (e = 21) => {
6687
6716
  let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
6688
- for (; e--;) t += ro[n[e] & 63];
6717
+ for (; e--;) t += so[n[e] & 63];
6689
6718
  return t;
6690
6719
  };
6691
6720
  //#endregion
6692
6721
  //#region src/helpers.ts
6693
- async function ao(e) {
6722
+ async function lo(e) {
6694
6723
  let t = new DecompressionStream("deflate-raw"), n = new Uint8Array(e), r = new Blob([n]).stream().pipeThrough(t);
6695
6724
  return new Uint8Array(await new Response(r).arrayBuffer());
6696
6725
  }
6697
- async function oo(e) {
6698
- let t = no(e.replace(/ /g, "+"));
6726
+ async function uo(e) {
6727
+ let t = oo(e.replace(/ /g, "+"));
6699
6728
  try {
6700
- let e = await ao(t);
6729
+ let e = await lo(t);
6701
6730
  return new TextDecoder().decode(e);
6702
6731
  } catch (e) {
6703
6732
  return console.warn("Decompression failed, assuming data is not compressed:", e), new TextDecoder().decode(t);
6704
6733
  }
6705
6734
  }
6706
- async function so(e) {
6707
- let t = await oo(e), n = new tn({
6735
+ async function fo(e) {
6736
+ let t = await uo(e), n = new nn({
6708
6737
  attributeNamePrefix: "@_",
6709
6738
  alwaysCreateTextNode: !0,
6710
6739
  ignoreAttributes: !1
6711
6740
  }).parse(t);
6712
6741
  return r.parse(n);
6713
6742
  }
6714
- function co(e) {
6743
+ async function po(e) {
6744
+ let t = await uo(e), n = new nn({
6745
+ attributeNamePrefix: "@_",
6746
+ alwaysCreateTextNode: !0,
6747
+ ignoreAttributes: !1
6748
+ });
6749
+ return i.parse(n.parse(t));
6750
+ }
6751
+ async function mo(e) {
6752
+ let t = (e) => e.replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), n = e.success ? "urn:oasis:names:tc:SAML:2.0:status:Success" : "urn:oasis:names:tc:SAML:2.0:status:Responder", r = e.inResponseTo ? ` InResponseTo="${t(e.inResponseTo)}"` : "", i = !e.success && e.statusMessage ? `<samlp:StatusMessage>${t(e.statusMessage)}</samlp:StatusMessage>` : "", a = `<samlp:LogoutResponse xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" ID="_${co()}" Version="2.0" IssueInstant="${(/* @__PURE__ */ new Date()).toISOString()}" Destination="${t(e.destination)}"${r}><saml:Issuer>${t(e.issuer)}</saml:Issuer><samlp:Status><samlp:StatusCode Value="${n}"/>${i}</samlp:Status></samlp:LogoutResponse>`, o = new Blob([new TextEncoder().encode(a)]).stream().pipeThrough(new CompressionStream("deflate-raw")), s = new Uint8Array(await new Response(o).arrayBuffer()), c = "";
6753
+ for (let e of s) c += String.fromCharCode(e);
6754
+ return btoa(c);
6755
+ }
6756
+ function ho(e) {
6715
6757
  let t = e.certificates.map((e) => ({
6716
6758
  "@_use": "signing",
6717
6759
  KeyInfo: {
@@ -6777,7 +6819,7 @@ function co(e) {
6777
6819
  ]
6778
6820
  }
6779
6821
  } };
6780
- return new Cn({
6822
+ return new Tn({
6781
6823
  ignoreAttributes: !1,
6782
6824
  suppressEmptyNode: !0,
6783
6825
  preserveOrder: !1,
@@ -6785,8 +6827,8 @@ function co(e) {
6785
6827
  attributeNamePrefix: "@_"
6786
6828
  }).build(n);
6787
6829
  }
6788
- async function lo(e, t) {
6789
- let n = e.notBefore || (/* @__PURE__ */ new Date()).toISOString(), r = e.notAfter || new Date(new Date(n).getTime() + 600 * 1e3).toISOString(), i = e.issueInstant || n, a = e.sessionNotOnOrAfter || r, o = e.responseId || `_${io()}`, s = e.assertionId || `_${io()}`, c = [{
6830
+ async function go(e, t) {
6831
+ let n = e.notBefore || (/* @__PURE__ */ new Date()).toISOString(), r = e.notAfter || new Date(new Date(n).getTime() + 600 * 1e3).toISOString(), i = e.issueInstant || n, a = e.sessionNotOnOrAfter || r, o = e.responseId || `_${co()}`, s = e.assertionId || `_${co()}`, c = [{
6790
6832
  "samlp:Response": [
6791
6833
  { "saml:Issuer": [{ "#text": e.issuer }] },
6792
6834
  { "samlp:Status": [{
@@ -6958,7 +7000,7 @@ async function lo(e, t) {
6958
7000
  "@_IssueInstant": i,
6959
7001
  "@_Version": "2.0"
6960
7002
  }
6961
- }], l = new Cn({
7003
+ }], l = new Tn({
6962
7004
  ignoreAttributes: !1,
6963
7005
  suppressEmptyNode: !0,
6964
7006
  preserveOrder: !0
@@ -6967,7 +7009,7 @@ async function lo(e, t) {
6967
7009
  }
6968
7010
  //#endregion
6969
7011
  //#region src/signers/http.ts
6970
- var uo = class {
7012
+ var _o = class {
6971
7013
  signUrl;
6972
7014
  constructor(e) {
6973
7015
  this.signUrl = e;
@@ -6987,4 +7029,4 @@ var uo = class {
6987
7029
  }
6988
7030
  };
6989
7031
  //#endregion
6990
- export { uo as HttpSamlSigner, co as createSamlMetadata, lo as createSamlResponse, s as dsSignatureSchema, oo as inflateDecompress, ao as inflateRaw, so as parseSamlRequestQuery, n as samlIssuerSchema, i as samlMetadataResponseSchema, r as samlRequestSchema, c as samlResponseJsonSchema };
7032
+ export { _o as HttpSamlSigner, mo as createSamlLogoutResponse, ho as createSamlMetadata, go as createSamlResponse, c as dsSignatureSchema, uo as inflateDecompress, lo as inflateRaw, po as parseSamlLogoutRequestQuery, fo as parseSamlRequestQuery, n as samlIssuerSchema, i as samlLogoutRequestSchema, a as samlMetadataResponseSchema, r as samlRequestSchema, l as samlResponseJsonSchema };