@authhero/saml 0.5.9 → 0.5.11

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/saml.mjs CHANGED
@@ -1729,7 +1729,7 @@ var Le = function(e) {
1729
1729
  static getMetaDataSymbol() {
1730
1730
  return Re;
1731
1731
  }
1732
- }, ze = ":A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�", Be = ":A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�\\-\\.\\d·̀-ͯ‿-⁀", Ve = ":A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", He = ":A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿\\-\\.\\d·̀-ͯ҇‿-⁀", Ue = (e, t, n = "") => {
1732
+ }, ze = ":A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�", Be = ":A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�\\-\\.\\d·̀-ͯ‿-⁀", Ve = ":A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", He = ":A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿\\-\\.\\d·̀-ͯ҇‿-⁀", D = (e, t, n = "") => {
1733
1733
  let r = `[${e.replace(":", "")}][${t.replace(":", "")}]*`;
1734
1734
  return {
1735
1735
  name: RegExp(`^[${e}][${t}]*$`, n),
@@ -1738,15 +1738,15 @@ var Le = function(e) {
1738
1738
  nmToken: RegExp(`^[${t}]+$`, n),
1739
1739
  nmTokens: RegExp(`^[${t}]+(?:\\s+[${t}]+)*$`, n)
1740
1740
  };
1741
- }, 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 = [
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 = [
1742
1742
  "name",
1743
1743
  "ncName",
1744
1744
  "qName",
1745
1745
  "nmToken",
1746
1746
  "nmTokens"
1747
- ], Xe = (e, { xmlVersion: t = "1.0", asciiOnly: n = !1, maxCacheSize: r = 2048 } = {}) => {
1748
- if (!Ye.includes(e)) throw TypeError(`Unknown production "${e}". Must be one of: ${Ye.join(", ")}`);
1749
- let i = qe(t, n)[e], a = /* @__PURE__ */ new Map(), o = (e) => {
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) => {
1750
1750
  let t = a.get(e);
1751
1751
  if (t !== void 0) return t;
1752
1752
  let n = i.test(e);
@@ -1755,7 +1755,7 @@ var Le = function(e) {
1755
1755
  return o.reset = () => {
1756
1756
  a = /* @__PURE__ */ new Map();
1757
1757
  }, o;
1758
- }, Ze = class {
1758
+ }, Xe = class {
1759
1759
  constructor(e, t) {
1760
1760
  this.suppressValidationErr = !e, this.options = e, this.xmlVersion = t || 1;
1761
1761
  }
@@ -1768,23 +1768,23 @@ var Le = function(e) {
1768
1768
  t += 9;
1769
1769
  let i = 1, a = !1, o = !1, s = "";
1770
1770
  for (; t < e.length; t++) if (e[t] === "<" && !o) {
1771
- if (a && O(e, "!ENTITY", t)) {
1771
+ if (a && k(e, "!ENTITY", t)) {
1772
1772
  t += 7;
1773
1773
  let i, a;
1774
1774
  if ([i, a, t] = this.readEntityExp(e, t + 1, this.suppressValidationErr), a.indexOf("&") === -1) {
1775
1775
  if (this.options.enabled !== !1 && this.options.maxEntityCount != null && r >= this.options.maxEntityCount) throw Error(`Entity count (${r + 1}) exceeds maximum allowed (${this.options.maxEntityCount})`);
1776
1776
  n[i] = a, r++;
1777
1777
  }
1778
- } else if (a && O(e, "!ELEMENT", t)) {
1778
+ } else if (a && k(e, "!ELEMENT", t)) {
1779
1779
  t += 8;
1780
1780
  let { index: n } = this.readElementExp(e, t + 1);
1781
1781
  t = n;
1782
- } else if (a && O(e, "!ATTLIST", t)) t += 8;
1783
- else if (a && O(e, "!NOTATION", t)) {
1782
+ } else if (a && k(e, "!ATTLIST", t)) t += 8;
1783
+ else if (a && k(e, "!NOTATION", t)) {
1784
1784
  t += 9;
1785
1785
  let { index: n } = this.readNotationExp(e, t + 1, this.suppressValidationErr);
1786
1786
  t = n;
1787
- } else if (O(e, "!--", t)) o = !0;
1787
+ } else if (k(e, "!--", t)) o = !0;
1788
1788
  else throw Error("Invalid DOCTYPE");
1789
1789
  i++, s = "";
1790
1790
  } else if (e[t] === ">") {
@@ -1798,11 +1798,11 @@ var Le = function(e) {
1798
1798
  };
1799
1799
  }
1800
1800
  readEntityExp(e, t) {
1801
- t = D(e, t);
1801
+ t = O(e, t);
1802
1802
  let n = t;
1803
1803
  for (; t < e.length && !/\s/.test(e[t]) && e[t] !== "\"" && e[t] !== "'";) t++;
1804
1804
  let r = e.substring(n, t);
1805
- if (k(r, { xmlVersion: this.xmlVersion }), t = D(e, t), !this.suppressValidationErr) {
1805
+ if (A(r, { xmlVersion: this.xmlVersion }), t = O(e, t), !this.suppressValidationErr) {
1806
1806
  if (e.substring(t, t + 6).toUpperCase() === "SYSTEM") throw Error("External entities are not supported");
1807
1807
  if (e[t] === "%") throw Error("Parameter entities are not supported");
1808
1808
  }
@@ -1815,16 +1815,16 @@ var Le = function(e) {
1815
1815
  ];
1816
1816
  }
1817
1817
  readNotationExp(e, t) {
1818
- t = D(e, t);
1818
+ t = O(e, t);
1819
1819
  let n = t;
1820
1820
  for (; t < e.length && !/\s/.test(e[t]);) t++;
1821
1821
  let r = e.substring(n, t);
1822
- !this.suppressValidationErr && k(r, { xmlVersion: this.xmlVersion }), t = D(e, t);
1822
+ !this.suppressValidationErr && A(r, { xmlVersion: this.xmlVersion }), t = O(e, t);
1823
1823
  let i = e.substring(t, t + 6).toUpperCase();
1824
1824
  if (!this.suppressValidationErr && i !== "SYSTEM" && i !== "PUBLIC") throw Error(`Expected SYSTEM or PUBLIC, found "${i}"`);
1825
- t += i.length, t = D(e, t);
1825
+ t += i.length, t = O(e, t);
1826
1826
  let a = null, o = null;
1827
- if (i === "PUBLIC") [t, a] = this.readIdentifierVal(e, t, "publicIdentifier"), t = D(e, t), (e[t] === "\"" || e[t] === "'") && ([t, o] = this.readIdentifierVal(e, t, "systemIdentifier"));
1827
+ if (i === "PUBLIC") [t, a] = this.readIdentifierVal(e, t, "publicIdentifier"), t = O(e, t), (e[t] === "\"" || e[t] === "'") && ([t, o] = this.readIdentifierVal(e, t, "systemIdentifier"));
1828
1828
  else if (i === "SYSTEM" && ([t, o] = this.readIdentifierVal(e, t, "systemIdentifier"), !this.suppressValidationErr && !o)) throw Error("Missing mandatory system identifier for SYSTEM notation");
1829
1829
  return {
1830
1830
  notationName: r,
@@ -1843,15 +1843,15 @@ var Le = function(e) {
1843
1843
  return t++, [t, r];
1844
1844
  }
1845
1845
  readElementExp(e, t) {
1846
- t = D(e, t);
1846
+ t = O(e, t);
1847
1847
  let n = t;
1848
1848
  for (; t < e.length && !/\s/.test(e[t]);) t++;
1849
1849
  let r = e.substring(n, t);
1850
- if (!this.suppressValidationErr && !Je(r, { xmlVersion: this.xmlVersion })) throw Error(`Invalid element name: "${r}"`);
1851
- t = D(e, t);
1850
+ if (!this.suppressValidationErr && !qe(r, { xmlVersion: this.xmlVersion })) throw Error(`Invalid element name: "${r}"`);
1851
+ t = O(e, t);
1852
1852
  let i = "";
1853
- if (e[t] === "E" && O(e, "MPTY", t)) t += 4;
1854
- else if (e[t] === "A" && O(e, "NY", t)) t += 2;
1853
+ if (e[t] === "E" && k(e, "MPTY", t)) t += 4;
1854
+ else if (e[t] === "A" && k(e, "NY", t)) t += 2;
1855
1855
  else if (e[t] === "(") {
1856
1856
  t++;
1857
1857
  let n = t;
@@ -1865,25 +1865,25 @@ var Le = function(e) {
1865
1865
  };
1866
1866
  }
1867
1867
  readAttlistExp(e, t) {
1868
- t = D(e, t);
1868
+ t = O(e, t);
1869
1869
  let n = t;
1870
1870
  for (; t < e.length && !/\s/.test(e[t]);) t++;
1871
1871
  let r = e.substring(n, t);
1872
- for (k(r, { xmlVersion: this.xmlVersion }), t = D(e, t), n = t; t < e.length && !/\s/.test(e[t]);) t++;
1872
+ for (A(r, { xmlVersion: this.xmlVersion }), t = O(e, t), n = t; t < e.length && !/\s/.test(e[t]);) t++;
1873
1873
  let i = e.substring(n, t);
1874
- if (!k(i, { xmlVersion: this.xmlVersion })) throw Error(`Invalid attribute name: "${i}"`);
1875
- t = D(e, t);
1874
+ if (!A(i, { xmlVersion: this.xmlVersion })) throw Error(`Invalid attribute name: "${i}"`);
1875
+ t = O(e, t);
1876
1876
  let a = "";
1877
1877
  if (e.substring(t, t + 8).toUpperCase() === "NOTATION") {
1878
- if (a = "NOTATION", t += 8, t = D(e, t), e[t] !== "(") throw Error(`Expected '(', found "${e[t]}"`);
1878
+ if (a = "NOTATION", t += 8, t = O(e, t), e[t] !== "(") throw Error(`Expected '(', found "${e[t]}"`);
1879
1879
  t++;
1880
1880
  let n = [];
1881
1881
  for (; t < e.length && e[t] !== ")";) {
1882
1882
  let r = t;
1883
1883
  for (; t < e.length && e[t] !== "|" && e[t] !== ")";) t++;
1884
1884
  let i = e.substring(r, t);
1885
- if (i = i.trim(), !k(i, { xmlVersion: this.xmlVersion })) throw Error(`Invalid notation name: "${i}"`);
1886
- n.push(i), e[t] === "|" && (t++, t = D(e, t));
1885
+ if (i = i.trim(), !A(i, { xmlVersion: this.xmlVersion })) throw Error(`Invalid notation name: "${i}"`);
1886
+ n.push(i), e[t] === "|" && (t++, t = O(e, t));
1887
1887
  }
1888
1888
  if (e[t] !== ")") throw Error("Unterminated list of notations");
1889
1889
  t++, a += " (" + n.join("|") + ")";
@@ -1901,7 +1901,7 @@ var Le = function(e) {
1901
1901
  "NMTOKENS"
1902
1902
  ].includes(a.toUpperCase())) throw Error(`Invalid attribute type: "${a}"`);
1903
1903
  }
1904
- t = D(e, t);
1904
+ t = O(e, t);
1905
1905
  let o = "";
1906
1906
  return e.substring(t, t + 8).toUpperCase() === "#REQUIRED" ? (o = "#REQUIRED", t += 8) : e.substring(t, t + 7).toUpperCase() === "#IMPLIED" ? (o = "#IMPLIED", t += 7) : [t, o] = this.readIdentifierVal(e, t, "ATTLIST"), {
1907
1907
  elementName: r,
@@ -1911,21 +1911,21 @@ var Le = function(e) {
1911
1911
  index: t
1912
1912
  };
1913
1913
  }
1914
- }, D = (e, t) => {
1914
+ }, O = (e, t) => {
1915
1915
  for (; t < e.length && /\s/.test(e[t]);) t++;
1916
1916
  return t;
1917
1917
  };
1918
- function O(e, t, n) {
1918
+ function k(e, t, n) {
1919
1919
  for (let r = 0; r < t.length; r++) if (t[r] !== e[n + r + 1]) return !1;
1920
1920
  return !0;
1921
1921
  }
1922
- function k(e, t) {
1923
- if (Je(e, { xmlVersion: t })) return e;
1922
+ function A(e, t) {
1923
+ if (qe(e, { xmlVersion: t })) return e;
1924
1924
  throw Error(`Invalid entity name ${e}`);
1925
1925
  }
1926
1926
  //#endregion
1927
1927
  //#region ../../node_modules/.pnpm/anynum@1.0.1/node_modules/anynum/digitTable.js
1928
- var Qe = [
1928
+ var Ze = [
1929
1929
  48,
1930
1930
  1632,
1931
1931
  1776,
@@ -1987,10 +1987,10 @@ var Qe = [
1987
1987
  124144,
1988
1988
  125264,
1989
1989
  130032
1990
- ], $e = /* @__PURE__ */ new Map(), et = 65535, tt = 1632, A = new Uint8Array(63904).fill(255);
1991
- for (let e of Qe) for (let t = 0; t < 10; t++) {
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++) {
1992
1992
  let n = e + t;
1993
- n <= et ? A[n - tt] = t : $e.set(n, t);
1993
+ n <= $e ? tt[n - et] = t : Qe.set(n, t);
1994
1994
  }
1995
1995
  //#endregion
1996
1996
  //#region ../../node_modules/.pnpm/anynum@1.0.1/node_modules/anynum/anynum.js
@@ -2019,7 +2019,7 @@ function at(e) {
2019
2019
  let t = e.charCodeAt(r + 1);
2020
2020
  if (t >= 56320 && t <= 57343) {
2021
2021
  let e = 65536 + (i - 55296 << 10) + (t - 56320);
2022
- if ($e.has(e)) {
2022
+ if (Qe.has(e)) {
2023
2023
  n = r;
2024
2024
  break;
2025
2025
  }
@@ -2027,7 +2027,7 @@ function at(e) {
2027
2027
  }
2028
2028
  continue;
2029
2029
  }
2030
- if (A[i - 1632] !== 255 || j.has(i)) {
2030
+ if (tt[i - 1632] !== 255 || j.has(i)) {
2031
2031
  n = r;
2032
2032
  break;
2033
2033
  }
@@ -2050,7 +2050,7 @@ function at(e) {
2050
2050
  if (i + 1 < t) {
2051
2051
  let t = e.charCodeAt(i + 1);
2052
2052
  if (t >= 56320 && t <= 57343) {
2053
- let e = 65536 + (n - 55296 << 10) + (t - 56320), a = $e.get(e);
2053
+ let e = 65536 + (n - 55296 << 10) + (t - 56320), a = Qe.get(e);
2054
2054
  if (a !== void 0) {
2055
2055
  r.push(String.fromCharCode(a + 48)), i++;
2056
2056
  continue;
@@ -2064,7 +2064,7 @@ function at(e) {
2064
2064
  r.push("-");
2065
2065
  continue;
2066
2066
  }
2067
- let a = A[n - tt];
2067
+ let a = tt[n - et];
2068
2068
  r.push(a === 255 ? e[i] : String.fromCharCode(a + 48));
2069
2069
  }
2070
2070
  return r.join("");
@@ -2315,7 +2315,7 @@ var M = class {
2315
2315
  matchesAny(e) {
2316
2316
  return e.matchesAny(this._matcher);
2317
2317
  }
2318
- }, bt = class {
2318
+ }, N = class {
2319
2319
  constructor(e = {}) {
2320
2320
  this.separator = e.separator || ".", this.path = [], this.siblingStacks = [], this._pathStringCache = null, this._view = new yt(this), this._keptAttrs = [];
2321
2321
  }
@@ -2468,7 +2468,7 @@ var M = class {
2468
2468
  readOnly() {
2469
2469
  return this._view;
2470
2470
  }
2471
- }, xt = [
2471
+ }, P = [
2472
2472
  {
2473
2473
  id: "html-script-open",
2474
2474
  description: "<script opening tag",
@@ -2554,7 +2554,7 @@ var M = class {
2554
2554
  description: "<form tag — can be used for phishing / credential harvesting injection",
2555
2555
  pattern: /<form[\s>/]/i
2556
2556
  }
2557
- ], St = [
2557
+ ], F = [
2558
2558
  {
2559
2559
  id: "xml-cdata-injection",
2560
2560
  description: "CDATA section injection: <![CDATA[ breaks out of text node context",
@@ -2615,7 +2615,7 @@ var M = class {
2615
2615
  description: "?> closes an enclosing processing instruction",
2616
2616
  pattern: /\?>/
2617
2617
  }
2618
- ], Ct = [
2618
+ ], bt = [
2619
2619
  {
2620
2620
  id: "svg-script-element",
2621
2621
  description: "<script element inside SVG executes JavaScript",
@@ -2681,7 +2681,7 @@ var M = class {
2681
2681
  description: "style= attribute containing javascript: (e.g. background:url(javascript:...))",
2682
2682
  pattern: /style\s*=[\s\S]{0,60}javascript\s*:/i
2683
2683
  }
2684
- ], N = [
2684
+ ], I = [
2685
2685
  {
2686
2686
  id: "sql-block-comment-open",
2687
2687
  description: "SQL block comment open: /* ... */ — unusual in legitimate user text",
@@ -2757,7 +2757,7 @@ var M = class {
2757
2757
  description: "INFORMATION_SCHEMA — reconnaissance query for table/column enumeration",
2758
2758
  pattern: /\bINFORMATION_SCHEMA\b/i
2759
2759
  }
2760
- ], wt = [
2760
+ ], xt = [
2761
2761
  {
2762
2762
  id: "shell-path-traversal-unix",
2763
2763
  description: "Unix path traversal: ../ — climbing the directory tree",
@@ -2848,7 +2848,7 @@ var M = class {
2848
2848
  description: "curl/wget with URL or flags — can exfiltrate data or download payloads",
2849
2849
  pattern: /\b(?:curl|wget)\s+(?:https?:\/\/|ftp:\/\/|-)/i
2850
2850
  }
2851
- ], Tt = [
2851
+ ], St = [
2852
2852
  {
2853
2853
  id: "redos-nested-quantifier-plus",
2854
2854
  description: "Nested + quantifier inside a group with outer quantifier: (a+)+, (.+b)*, etc.",
@@ -2889,71 +2889,71 @@ var M = class {
2889
2889
  description: "Long alternation with many similar branches — polynomial backtracking risk",
2890
2890
  pattern: /\([^)]{0,200}(?:\|[^|)]{0,50}){9,}\)/
2891
2891
  }
2892
- ], P = "[\"'\\s]*:", Et = [
2892
+ ], L = "[\"'\\s]*:", Ct = [
2893
2893
  {
2894
2894
  id: "nosql-where-operator",
2895
2895
  description: "$where — executes arbitrary JavaScript server-side in MongoDB",
2896
- pattern: RegExp(`\\$where${P}`, "i")
2896
+ pattern: RegExp(`\\$where${L}`, "i")
2897
2897
  },
2898
2898
  {
2899
2899
  id: "nosql-ne-operator",
2900
2900
  description: "$ne — \"not equal\" operator used to bypass equality checks",
2901
- pattern: RegExp(`\\$ne${P}`, "i")
2901
+ pattern: RegExp(`\\$ne${L}`, "i")
2902
2902
  },
2903
2903
  {
2904
2904
  id: "nosql-gt-operator",
2905
2905
  description: "$gt — \"greater than\" used to bypass password/value checks",
2906
- pattern: RegExp(`\\$gte?${P}`, "i")
2906
+ pattern: RegExp(`\\$gte?${L}`, "i")
2907
2907
  },
2908
2908
  {
2909
2909
  id: "nosql-lt-operator",
2910
2910
  description: "$lt / $lte — \"less than\" bypass variants",
2911
- pattern: RegExp(`\\$lte?${P}`, "i")
2911
+ pattern: RegExp(`\\$lte?${L}`, "i")
2912
2912
  },
2913
2913
  {
2914
2914
  id: "nosql-regex-operator",
2915
2915
  description: "$regex — can be used to extract data character by character (blind injection)",
2916
- pattern: RegExp(`\\$regex${P}`, "i")
2916
+ pattern: RegExp(`\\$regex${L}`, "i")
2917
2917
  },
2918
2918
  {
2919
2919
  id: "nosql-or-operator",
2920
2920
  description: "$or — logical OR; used to create always-true conditions",
2921
- pattern: RegExp(`\\$or${P}\\s*\\[`, "i")
2921
+ pattern: RegExp(`\\$or${L}\\s*\\[`, "i")
2922
2922
  },
2923
2923
  {
2924
2924
  id: "nosql-and-operator",
2925
2925
  description: "$and — logical AND operator injection",
2926
- pattern: RegExp(`\\$and${P}\\s*\\[`, "i")
2926
+ pattern: RegExp(`\\$and${L}\\s*\\[`, "i")
2927
2927
  },
2928
2928
  {
2929
2929
  id: "nosql-nor-operator",
2930
2930
  description: "$nor — logical NOR operator injection",
2931
- pattern: RegExp(`\\$nor${P}\\s*\\[`, "i")
2931
+ pattern: RegExp(`\\$nor${L}\\s*\\[`, "i")
2932
2932
  },
2933
2933
  {
2934
2934
  id: "nosql-exists-operator",
2935
2935
  description: "$exists — can enumerate fields to determine schema",
2936
- pattern: RegExp(`\\$exists${P}`, "i")
2936
+ pattern: RegExp(`\\$exists${L}`, "i")
2937
2937
  },
2938
2938
  {
2939
2939
  id: "nosql-in-operator",
2940
2940
  description: "$in — matches any value in a list; can enumerate values",
2941
- pattern: RegExp(`\\$in${P}\\s*\\[`, "i")
2941
+ pattern: RegExp(`\\$in${L}\\s*\\[`, "i")
2942
2942
  },
2943
2943
  {
2944
2944
  id: "nosql-expr-operator",
2945
2945
  description: "$expr — allows aggregation expressions in queries (MongoDB 3.6+)",
2946
- pattern: RegExp(`\\$expr${P}`, "i")
2946
+ pattern: RegExp(`\\$expr${L}`, "i")
2947
2947
  },
2948
2948
  {
2949
2949
  id: "nosql-function-operator",
2950
2950
  description: "$function — executes arbitrary JavaScript in MongoDB 4.4+",
2951
- pattern: RegExp(`\\$function${P}`, "i")
2951
+ pattern: RegExp(`\\$function${L}`, "i")
2952
2952
  },
2953
2953
  {
2954
2954
  id: "nosql-accumulator-operator",
2955
2955
  description: "$accumulator — custom aggregation with arbitrary JS execution",
2956
- pattern: RegExp(`\\$accumulator${P}`, "i")
2956
+ pattern: RegExp(`\\$accumulator${L}`, "i")
2957
2957
  },
2958
2958
  {
2959
2959
  id: "nosql-proto-pollution",
@@ -2970,7 +2970,7 @@ var M = class {
2970
2970
  description: "[\"__proto__\"] — bracket-notation prototype pollution",
2971
2971
  pattern: /\[["']__proto__["']\]/
2972
2972
  }
2973
- ], Dt = [
2973
+ ], wt = [
2974
2974
  {
2975
2975
  id: "log-crlf-injection",
2976
2976
  description: "CRLF injection: literal \\r or \\n embeds fake log lines",
@@ -3031,7 +3031,7 @@ var M = class {
3031
3031
  description: "ANSI escape sequence: ESC[ — can manipulate terminal output when logs are tailed",
3032
3032
  pattern: /\x1b\[/
3033
3033
  }
3034
- ], Ot = [
3034
+ ], Tt = [
3035
3035
  {
3036
3036
  id: "sql-line-comment",
3037
3037
  description: "SQL line comment: -- followed by whitespace or end of string",
@@ -3047,22 +3047,22 @@ var M = class {
3047
3047
  description: "Hex-encoded string injection: 0x41414141 style (MySQL)",
3048
3048
  pattern: /\b0x[0-9a-f]{4,}/i
3049
3049
  }
3050
- ], kt = [...N, ...Ot];
3051
- xt.label = "HTML", St.label = "XML", Ct.label = "SVG", N.label = "SQL", kt.label = "SQL-STRICT", wt.label = "SHELL", Tt.label = "REDOS", Et.label = "NOSQL", Dt.label = "LOG", Object.freeze({
3052
- HTML: xt,
3053
- XML: St,
3054
- SVG: Ct,
3055
- SQL: N,
3056
- "SQL-STRICT": kt,
3057
- SHELL: wt,
3058
- REDOS: Tt,
3059
- NOSQL: Et,
3060
- LOG: Dt
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
3061
3061
  });
3062
- function At(e) {
3062
+ function Dt(e) {
3063
3063
  if (typeof e != "string") throw TypeError(`is-unsafe: first argument must be a string, got ${typeof e}`);
3064
3064
  }
3065
- function jt(e) {
3065
+ function Ot(e) {
3066
3066
  if (!(e instanceof RegExp)) {
3067
3067
  if (Array.isArray(e)) {
3068
3068
  if (e.length === 0) throw TypeError("is-unsafe: context must not be an empty array");
@@ -3074,7 +3074,7 @@ function jt(e) {
3074
3074
  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
3075
  }
3076
3076
  }
3077
- function Mt(e) {
3077
+ function kt(e) {
3078
3078
  return e instanceof RegExp ? {
3079
3079
  lists: null,
3080
3080
  regex: e
@@ -3086,7 +3086,7 @@ function Mt(e) {
3086
3086
  regex: null
3087
3087
  };
3088
3088
  }
3089
- function Nt(e, t) {
3089
+ function At(e, t) {
3090
3090
  let n = t.label ?? "CUSTOM";
3091
3091
  for (let r of t) if (r.pattern.test(e)) return {
3092
3092
  context: n,
@@ -3096,16 +3096,16 @@ function Nt(e, t) {
3096
3096
  };
3097
3097
  return null;
3098
3098
  }
3099
- function Pt(e, t) {
3100
- At(e), jt(t);
3101
- let { lists: n, regex: r } = Mt(t);
3099
+ function jt(e, t) {
3100
+ Dt(e), Ot(t);
3101
+ let { lists: n, regex: r } = kt(t);
3102
3102
  if (r) return r.test(e);
3103
- for (let t of n) if (Nt(e, t) !== null) return !0;
3103
+ for (let t of n) if (At(e, t) !== null) return !0;
3104
3104
  return !1;
3105
3105
  }
3106
3106
  //#endregion
3107
3107
  //#region ../../node_modules/.pnpm/fast-xml-parser@5.10.0/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js
3108
- function Ft(e, t) {
3108
+ function Mt(e, t) {
3109
3109
  if (!e) return {};
3110
3110
  let n = t.attributesGroupName ? e[t.attributesGroupName] : e;
3111
3111
  if (!n) return {};
@@ -3116,7 +3116,7 @@ function Ft(e, t) {
3116
3116
  } else r[e] = n[e];
3117
3117
  return r;
3118
3118
  }
3119
- function It(e) {
3119
+ function Nt(e) {
3120
3120
  if (!e || typeof e != "string") return;
3121
3121
  let t = e.indexOf(":");
3122
3122
  if (t !== -1 && t > 0) {
@@ -3124,9 +3124,9 @@ function It(e) {
3124
3124
  if (n !== "xmlns") return n;
3125
3125
  }
3126
3126
  }
3127
- var Lt = class {
3127
+ var Pt = class {
3128
3128
  constructor(e, t) {
3129
- this.options = e, this.currentNode = null, this.tagsNodeStack = [], this.parseXml = Ht, this.parseTextData = Rt, this.resolveNameSpace = zt, this.buildAttributesMap = Vt, this.isItStopNode = Kt, this.replaceEntitiesValue = Wt, this.readStopNodeData = Yt, this.saveTextToParentTag = Gt, this.addChild = Ut, this.ignoreAttributesFn = _t(this.options.ignoreAttributes), this.entityExpansionCount = 0, this.currentExpandedLength = 0;
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
3130
  let n = { ...we };
3131
3131
  this.options.entityDecoder ? this.entityDecoder = this.options.entityDecoder : (typeof this.options.htmlEntities == "object" ? n = this.options.htmlEntities : this.options.htmlEntities === !0 && (n = {
3132
3132
  ...Te,
@@ -3142,8 +3142,8 @@ var Lt = class {
3142
3142
  maxExpandedLength: this.options.processEntities.maxExpandedLength,
3143
3143
  applyLimitsTo: this.options.processEntities.appliesTo
3144
3144
  },
3145
- onInputEntity: (e, t) => Pt(t, [xt, St]) ? x.BLOCK : x.ALLOW
3146
- })), this.matcher = new bt(), this.readonlyMatcher = this.matcher.readOnly(), this.isCurrentNodeStopNode = !1, this.stopNodeExpressionsSet = new vt();
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();
3147
3147
  let r = this.options.stopNodes;
3148
3148
  if (r && r.length > 0) {
3149
3149
  for (let e = 0; e < r.length; e++) {
@@ -3154,15 +3154,15 @@ var Lt = class {
3154
3154
  }
3155
3155
  }
3156
3156
  };
3157
- function Rt(e, t, n, r, i, a, o) {
3157
+ function Ft(e, t, n, r, i, a, o) {
3158
3158
  let s = this.options;
3159
3159
  if (e !== void 0 && (s.trimValues && !r && (e = e.trim()), e.length > 0)) {
3160
3160
  o || (e = this.replaceEntitiesValue(e, t, n));
3161
3161
  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 ? Xt(e, s.parseTagValue, s.numberParseOptions) : e;
3162
+ return c == null ? e : typeof c != typeof e || c !== e ? c : s.trimValues || e.trim() === e ? qt(e, s.parseTagValue, s.numberParseOptions) : e;
3163
3163
  }
3164
3164
  }
3165
- function zt(e) {
3165
+ function It(e) {
3166
3166
  if (this.options.removeNSPrefix) {
3167
3167
  let t = e.split(":"), n = e.charAt(0) === "/" ? "/" : "";
3168
3168
  if (t[0] === "xmlns") return "";
@@ -3170,11 +3170,11 @@ function zt(e) {
3170
3170
  }
3171
3171
  return e;
3172
3172
  }
3173
- var Bt = /* @__PURE__ */ RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?", "gm");
3174
- function Vt(e, t, n, r = !1) {
3173
+ var Lt = /* @__PURE__ */ RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?", "gm");
3174
+ function Rt(e, t, n, r = !1) {
3175
3175
  let i = this.options;
3176
3176
  if (r === !0 || i.ignoreAttributes !== !0 && typeof e == "string") {
3177
- let r = u(e, Bt), a = r.length, o = {}, s = Array(a), c = !1, l = {};
3177
+ let r = u(e, Lt), a = r.length, o = {}, s = Array(a), c = !1, l = {};
3178
3178
  for (let e = 0; e < a; e++) {
3179
3179
  let t = this.resolveNameSpace(r[e][1]), a = r[e][4];
3180
3180
  if (t.length && a !== void 0) {
@@ -3188,9 +3188,9 @@ function Vt(e, t, n, r = !1) {
3188
3188
  let t = this.resolveNameSpace(r[e][1]);
3189
3189
  if (this.ignoreAttributesFn(t, d)) continue;
3190
3190
  let n = i.attributeNamePrefix + t;
3191
- if (t.length) if (i.transformAttributeName && (n = i.transformAttributeName(n)), n = Zt(n, i), r[e][4] !== void 0) {
3191
+ if (t.length) if (i.transformAttributeName && (n = i.transformAttributeName(n)), n = Jt(n, i), r[e][4] !== void 0) {
3192
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] = Xt(r, i.parseAttributeValue, i.numberParseOptions), f = !0;
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;
3194
3194
  } else i.allowBooleanAttributes && (o[n] = !0, f = !0);
3195
3195
  }
3196
3196
  if (!f) return;
@@ -3201,25 +3201,25 @@ function Vt(e, t, n, r = !1) {
3201
3201
  return o;
3202
3202
  }
3203
3203
  }
3204
- var Ht = function(e) {
3204
+ var zt = function(e) {
3205
3205
  e = e.replace(/\r\n?/g, "\n");
3206
3206
  let t = new E("!xml"), n = t, r = "";
3207
3207
  this.matcher.reset(), this.entityDecoder.reset(), this.entityExpansionCount = 0, this.currentExpandedLength = 0;
3208
- let i = this.options, a = new Ze(i.processEntities), o = e.length;
3208
+ let i = this.options, a = new Xe(i.processEntities), o = e.length;
3209
3209
  for (let s = 0; s < o; s++) if (e[s] === "<") {
3210
3210
  let c = e.charCodeAt(s + 1);
3211
3211
  if (c === 47) {
3212
- let t = F(e, ">", s, "Closing Tag is not closed."), a = e.substring(s + 2, t).trim();
3212
+ let t = R(e, ">", s, "Closing Tag is not closed."), a = e.substring(s + 2, t).trim();
3213
3213
  if (i.removeNSPrefix) {
3214
3214
  let e = a.indexOf(":");
3215
3215
  e !== -1 && (a = a.substr(e + 1));
3216
3216
  }
3217
- a = L(i.transformTagName, a, "", i).tagName, n && (r = this.saveTextToParentTag(r, n, this.readonlyMatcher));
3217
+ a = B(i.transformTagName, a, "", i).tagName, n && (r = this.saveTextToParentTag(r, n, this.readonlyMatcher));
3218
3218
  let o = this.matcher.getCurrentTag();
3219
3219
  if (a && i.unpairedTagsSet.has(a)) throw Error(`Unpaired tag can not be used as closing tag: </${a}>`);
3220
3220
  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
3221
  } else if (c === 63) {
3222
- let t = I(e, s, !1, "?>");
3222
+ let t = z(e, s, !1, "?>");
3223
3223
  if (!t) throw Error("Pi Tag is not closed.");
3224
3224
  r = this.saveTextToParentTag(r, n, this.readonlyMatcher);
3225
3225
  let o = this.buildAttributesMap(t.tagExp, this.matcher, t.tagName, !0);
@@ -3233,7 +3233,7 @@ var Ht = function(e) {
3233
3233
  }
3234
3234
  s = t.closeIndex + 1;
3235
3235
  } else if (c === 33 && e.charCodeAt(s + 2) === 45 && e.charCodeAt(s + 3) === 45) {
3236
- let t = F(e, "-->", s + 4, "Comment is not closed.");
3236
+ let t = R(e, "-->", s + 4, "Comment is not closed.");
3237
3237
  if (i.commentPropName) {
3238
3238
  let a = e.substring(s + 4, t - 2);
3239
3239
  r = this.saveTextToParentTag(r, n, this.readonlyMatcher), n.add(i.commentPropName, [{ [i.textNodeName]: a }]);
@@ -3243,25 +3243,25 @@ var Ht = function(e) {
3243
3243
  let t = a.readDocType(e, s);
3244
3244
  this.entityDecoder.addInputEntities(t.entities), s = t.i;
3245
3245
  } else if (c === 33 && e.charCodeAt(s + 2) === 91) {
3246
- let t = F(e, "]]>", s, "CDATA is not closed.") - 2, a = e.substring(s + 9, t);
3246
+ let t = R(e, "]]>", s, "CDATA is not closed.") - 2, a = e.substring(s + 9, t);
3247
3247
  r = this.saveTextToParentTag(r, n, this.readonlyMatcher);
3248
3248
  let o = this.parseTextData(a, n.tagname, this.readonlyMatcher, !0, !1, !0, !0);
3249
3249
  o ??= "", i.cdataPropName ? n.add(i.cdataPropName, [{ [i.textNodeName]: a }]) : n.add(i.textNodeName, o), s = t + 2;
3250
3250
  } else {
3251
- let a = I(e, s, i.removeNSPrefix);
3251
+ let a = z(e, s, i.removeNSPrefix);
3252
3252
  if (!a) {
3253
3253
  let t = e.substring(Math.max(0, s - 50), Math.min(o, s + 50));
3254
3254
  throw Error(`readTagExp returned undefined at position ${s}. Context: "${t}"`);
3255
3255
  }
3256
3256
  let c = a.tagName, l = a.rawTagName, u = a.tagExp, d = a.attrExpPresent, f = a.closeIndex;
3257
- if ({tagName: c, tagExp: u} = L(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}`);
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}`);
3258
3258
  n && r && n.tagname !== "!xml" && (r = this.saveTextToParentTag(r, n, this.readonlyMatcher, !1));
3259
3259
  let p = n;
3260
3260
  p && i.unpairedTagsSet.has(p.tagname) && (n = this.tagsNodeStack.pop(), this.matcher.pop());
3261
3261
  let m = !1;
3262
3262
  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
3263
  let h = null, g;
3264
- g = It(l), c !== t.tagname && this.matcher.push(c, {}, g), c !== u && d && (h = this.buildAttributesMap(u, this.matcher, c), h && Ft(h, i)), c !== t.tagname && (this.isCurrentNodeStopNode = this.isItStopNode());
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());
3265
3265
  let _ = s;
3266
3266
  if (this.isCurrentNodeStopNode) {
3267
3267
  let t = "";
@@ -3276,7 +3276,7 @@ var Ht = function(e) {
3276
3276
  h && (r[":@"] = h), r.add(i.textNodeName, t), this.matcher.pop(), this.isCurrentNodeStopNode = !1, this.addChild(n, r, this.readonlyMatcher, _);
3277
3277
  } else {
3278
3278
  if (m) {
3279
- ({tagName: c, tagExp: u} = L(i.transformTagName, c, u, i));
3279
+ ({tagName: c, tagExp: u} = B(i.transformTagName, c, u, i));
3280
3280
  let e = new E(c);
3281
3281
  h && (e[":@"] = h), this.addChild(n, e, this.readonlyMatcher, _), this.matcher.pop(), this.isCurrentNodeStopNode = !1;
3282
3282
  } else if (i.unpairedTagsSet.has(c)) {
@@ -3294,12 +3294,12 @@ var Ht = function(e) {
3294
3294
  } else r += e[s];
3295
3295
  return t.child;
3296
3296
  };
3297
- function Ut(e, t, n, r) {
3297
+ function Bt(e, t, n, r) {
3298
3298
  this.options.captureMetaData || (r = void 0);
3299
3299
  let i = this.options.jPath ? n.toString() : n, a = this.options.updateTag(t.tagname, i, t[":@"]);
3300
3300
  a === !1 || (typeof a == "string" && (t.tagname = a), e.addChild(t, r));
3301
3301
  }
3302
- function Wt(e, t, n) {
3302
+ function Vt(e, t, n) {
3303
3303
  let r = this.options.processEntities;
3304
3304
  if (!r || !r.enabled) return e;
3305
3305
  if (r.allowedTags) {
@@ -3312,13 +3312,13 @@ function Wt(e, t, n) {
3312
3312
  }
3313
3313
  return this.entityDecoder.decode(e);
3314
3314
  }
3315
- function Gt(e, t, n, r) {
3315
+ function Ht(e, t, n, r) {
3316
3316
  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
3317
  }
3318
- function Kt() {
3318
+ function Ut() {
3319
3319
  return this.stopNodeExpressionsSet.size === 0 ? !1 : this.matcher.matchesAny(this.stopNodeExpressionsSet);
3320
3320
  }
3321
- function qt(e, t, n = ">") {
3321
+ function Wt(e, t, n = ">") {
3322
3322
  let r = 0, i = e.length, a = n.charCodeAt(0), o = n.length > 1 ? n.charCodeAt(1) : -1, s = "", c = t;
3323
3323
  for (let n = t; n < i; n++) {
3324
3324
  let t = e.charCodeAt(n);
@@ -3336,18 +3336,18 @@ function qt(e, t, n = ">") {
3336
3336
  else t === 9 && !r && (s += e.substring(c, n) + " ", c = n + 1);
3337
3337
  }
3338
3338
  }
3339
- function F(e, t, n, r) {
3339
+ function R(e, t, n, r) {
3340
3340
  let i = e.indexOf(t, n);
3341
3341
  if (i === -1) throw Error(r);
3342
3342
  return i + t.length - 1;
3343
3343
  }
3344
- function Jt(e, t, n, r) {
3344
+ function Gt(e, t, n, r) {
3345
3345
  let i = e.indexOf(t, n);
3346
3346
  if (i === -1) throw Error(r);
3347
3347
  return i;
3348
3348
  }
3349
- function I(e, t, n, r = ">") {
3350
- let i = qt(e, t + 1, r);
3349
+ function z(e, t, n, r = ">") {
3350
+ let i = Wt(e, t + 1, r);
3351
3351
  if (!i) return;
3352
3352
  let a = i.data, o = i.index, s = a.search(/\s/), c = a, l = !0;
3353
3353
  s !== -1 && (c = a.substring(0, s), a = a.substring(s + 1).trimStart());
@@ -3364,51 +3364,51 @@ function I(e, t, n, r = ">") {
3364
3364
  rawTagName: u
3365
3365
  };
3366
3366
  }
3367
- function Yt(e, t, n) {
3367
+ function Kt(e, t, n) {
3368
3368
  let r = n, i = 1, a = e.length;
3369
3369
  for (; n < a; n++) if (e[n] === "<") {
3370
3370
  let a = e.charCodeAt(n + 1);
3371
3371
  if (a === 47) {
3372
- let a = Jt(e, ">", n, `${t} is not closed`);
3372
+ let a = Gt(e, ">", n, `${t} is not closed`);
3373
3373
  if (e.substring(n + 2, a).trim() === t && (i--, i === 0)) return {
3374
3374
  tagContent: e.substring(r, n),
3375
3375
  i: a
3376
3376
  };
3377
3377
  n = a;
3378
- } else if (a === 63) n = F(e, "?>", n + 1, "StopNode is not closed.");
3379
- else if (a === 33 && e.charCodeAt(n + 2) === 45 && e.charCodeAt(n + 3) === 45) n = F(e, "-->", n + 3, "StopNode is not closed.");
3380
- else if (a === 33 && e.charCodeAt(n + 2) === 91) n = F(e, "]]>", n, "StopNode is not closed.") - 2;
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;
3381
3381
  else {
3382
- let r = I(e, n, !1);
3382
+ let r = z(e, n, !1);
3383
3383
  r && ((r && r.tagName) === t && r.tagExp[r.tagExp.length - 1] !== "/" && i++, n = r.closeIndex);
3384
3384
  }
3385
3385
  }
3386
3386
  }
3387
- function Xt(e, t, n) {
3387
+ function qt(e, t, n) {
3388
3388
  if (t && typeof e == "string") {
3389
3389
  let t = e.trim();
3390
3390
  return t === "true" ? !0 : t === "false" ? !1 : dt(e, n);
3391
3391
  } else if (f(e)) return e;
3392
3392
  else return "";
3393
3393
  }
3394
- function L(e, t, n, r) {
3394
+ function B(e, t, n, r) {
3395
3395
  if (e) {
3396
3396
  let r = e(t);
3397
3397
  n === t && (n = r), t = r;
3398
3398
  }
3399
- return t = Zt(t, r), {
3399
+ return t = Jt(t, r), {
3400
3400
  tagName: t,
3401
3401
  tagExp: n
3402
3402
  };
3403
3403
  }
3404
- function Zt(e, t) {
3404
+ function Jt(e, t) {
3405
3405
  if (m.includes(e)) throw Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);
3406
3406
  return p.includes(e) ? t.onDangerousProperty(e) : e;
3407
3407
  }
3408
3408
  //#endregion
3409
3409
  //#region ../../node_modules/.pnpm/fast-xml-parser@5.10.0/node_modules/fast-xml-parser/src/xmlparser/node2json.js
3410
- var R = E.getMetaDataSymbol();
3411
- function Qt(e, t) {
3410
+ var V = E.getMetaDataSymbol();
3411
+ function Yt(e, t) {
3412
3412
  if (!e || typeof e != "object") return {};
3413
3413
  if (!t) return e;
3414
3414
  let n = {};
@@ -3418,22 +3418,22 @@ function Qt(e, t) {
3418
3418
  } else n[r] = e[r];
3419
3419
  return n;
3420
3420
  }
3421
- function $t(e, t, n, r) {
3422
- return en(e, t, n, r);
3421
+ function Xt(e, t, n, r) {
3422
+ return Zt(e, t, n, r);
3423
3423
  }
3424
- function en(e, t, n, r) {
3424
+ function Zt(e, t, n, r) {
3425
3425
  let i, a = {};
3426
3426
  for (let o = 0; o < e.length; o++) {
3427
- let s = e[o], c = tn(s);
3427
+ let s = e[o], c = Qt(s);
3428
3428
  if (c !== void 0 && c !== t.textNodeName) {
3429
- let e = Qt(s[":@"] || {}, t.attributeNamePrefix);
3429
+ let e = Yt(s[":@"] || {}, t.attributeNamePrefix);
3430
3430
  n.push(c, e);
3431
3431
  }
3432
3432
  if (c === t.textNodeName) i === void 0 ? i = s[c] : i += "" + s[c];
3433
3433
  else if (c === void 0) continue;
3434
3434
  else if (s[c]) {
3435
- let e = en(s[c], t, n, r), i = rn(e, t);
3436
- if (Object.keys(e).length === 0 && t.alwaysCreateTextNode && (e[t.textNodeName] = ""), s[":@"] ? nn(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[R] !== void 0 && typeof e == "object" && e && (e[R] = s[R]), a[c] !== void 0 && Object.prototype.hasOwnProperty.call(a, c)) Array.isArray(a[c]) || (a[c] = [a[c]]), a[c].push(e);
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);
3437
3437
  else {
3438
3438
  let n = t.jPath ? r.toString() : r;
3439
3439
  t.isArray(c, n, i) ? a[c] = [e] : a[c] = e;
@@ -3443,14 +3443,14 @@ function en(e, t, n, r) {
3443
3443
  }
3444
3444
  return typeof i == "string" ? i.length > 0 && (a[t.textNodeName] = i) : i !== void 0 && (a[t.textNodeName] = i), a;
3445
3445
  }
3446
- function tn(e) {
3446
+ function Qt(e) {
3447
3447
  let t = Object.keys(e);
3448
3448
  for (let e = 0; e < t.length; e++) {
3449
3449
  let n = t[e];
3450
3450
  if (n !== ":@") return n;
3451
3451
  }
3452
3452
  }
3453
- function nn(e, t, n, r) {
3453
+ function $t(e, t, n, r) {
3454
3454
  if (t) {
3455
3455
  let i = Object.keys(t), a = i.length;
3456
3456
  for (let o = 0; o < a; o++) {
@@ -3459,13 +3459,13 @@ function nn(e, t, n, r) {
3459
3459
  }
3460
3460
  }
3461
3461
  }
3462
- function rn(e, t) {
3462
+ function en(e, t) {
3463
3463
  let { textNodeName: n } = t, r = Object.keys(e).length;
3464
3464
  return !!(r === 0 || r === 1 && (e[n] || typeof e[n] == "boolean" || e[n] === 0));
3465
3465
  }
3466
3466
  //#endregion
3467
3467
  //#region ../../node_modules/.pnpm/fast-xml-parser@5.10.0/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js
3468
- var an = class {
3468
+ var tn = class {
3469
3469
  constructor(e) {
3470
3470
  this.externalEntities = {}, this.options = Le(e);
3471
3471
  }
@@ -3477,8 +3477,8 @@ var an = class {
3477
3477
  let n = g(e, t);
3478
3478
  if (n !== !0) throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`);
3479
3479
  }
3480
- let n = new Lt(this.options, this.externalEntities), r = n.parseXml(e);
3481
- return this.options.preserveOrder || r === void 0 ? r : $t(r, this.options, n.matcher, n.readonlyMatcher);
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);
3482
3482
  }
3483
3483
  addEntity(e, t) {
3484
3484
  if (t.indexOf("&") !== -1) throw Error("Entity value can't have '&'");
@@ -3492,22 +3492,22 @@ var an = class {
3492
3492
  };
3493
3493
  //#endregion
3494
3494
  //#region ../../node_modules/.pnpm/fast-xml-builder@1.3.0/node_modules/fast-xml-builder/src/util.js
3495
- function z(e) {
3495
+ function H(e) {
3496
3496
  return String(e).replace(/--/g, "- -").replace(/--/g, "- -").replace(/-$/, "- ");
3497
3497
  }
3498
- function on(e) {
3498
+ function nn(e) {
3499
3499
  return String(e).replace(/\]\]>/g, "]]]]><![CDATA[>");
3500
3500
  }
3501
- function B(e) {
3501
+ function U(e) {
3502
3502
  return String(e).replace(/"/g, "&quot;").replace(/'/g, "&apos;");
3503
3503
  }
3504
3504
  //#endregion
3505
3505
  //#region ../../node_modules/.pnpm/fast-xml-builder@1.3.0/node_modules/fast-xml-builder/src/orderedJs2Xml.js
3506
- var sn = "\n";
3507
- function cn(e, t) {
3506
+ var rn = "\n";
3507
+ function an(e, t) {
3508
3508
  if (!Array.isArray(e) || e.length === 0) return "1.0";
3509
3509
  let n = e[0];
3510
- if (V(n) === "?xml") {
3510
+ if (fn(n) === "?xml") {
3511
3511
  let e = n[":@"];
3512
3512
  if (e) {
3513
3513
  let n = t.attributeNamePrefix + "version";
@@ -3516,121 +3516,121 @@ function cn(e, t) {
3516
3516
  }
3517
3517
  return "1.0";
3518
3518
  }
3519
- function ln(e, t, n, r, i) {
3519
+ function on(e, t, n, r, i) {
3520
3520
  return !n.sanitizeName || i(e) ? e : n.sanitizeName(e, {
3521
3521
  isAttribute: t,
3522
3522
  matcher: r.readOnly()
3523
3523
  });
3524
3524
  }
3525
- function un(e, t) {
3525
+ function sn(e, t) {
3526
3526
  let n = "";
3527
- t.format && (n = sn);
3527
+ t.format && (n = rn);
3528
3528
  let r = [];
3529
3529
  if (t.stopNodes && Array.isArray(t.stopNodes)) for (let e = 0; e < t.stopNodes.length; e++) {
3530
3530
  let n = t.stopNodes[e];
3531
3531
  typeof n == "string" ? r.push(new M(n)) : n instanceof M && r.push(n);
3532
3532
  }
3533
- let i = Xe("qName", { xmlVersion: cn(e, t) }), a = new bt();
3534
- return dn(e, t, n, a, r, i);
3533
+ let i = Ye("qName", { xmlVersion: an(e, t) }), a = new N();
3534
+ return cn(e, t, n, a, r, i);
3535
3535
  }
3536
- function dn(e, t, n, r, i, a) {
3536
+ function cn(e, t, n, r, i, a) {
3537
3537
  let o = "", s = !1;
3538
3538
  if (t.maxNestedTags && r.getDepth() > t.maxNestedTags) throw Error("Maximum nested tags exceeded");
3539
3539
  if (!Array.isArray(e)) {
3540
3540
  if (e != null) {
3541
3541
  let n = e.toString();
3542
- return n = H(n, t), n;
3542
+ return n = hn(n, t), n;
3543
3543
  }
3544
3544
  return "";
3545
3545
  }
3546
3546
  for (let c = 0; c < e.length; c++) {
3547
- let l = e[c], u = V(l);
3547
+ let l = e[c], u = fn(l);
3548
3548
  if (u === void 0) continue;
3549
- let d = u === t.textNodeName || u === t.cdataPropName || u === t.commentPropName || u[0] === "?" ? u : ln(u, !1, t, r, a), f = fn(l[":@"], t);
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);
3550
3550
  r.push(d, f);
3551
- let p = gn(r, i);
3551
+ let p = mn(r, i);
3552
3552
  if (d === t.textNodeName) {
3553
3553
  let e = l[u];
3554
- p || (e = t.tagValueProcessor(d, e), e = H(e, t)), s && (o += n), o += e, s = !1, r.pop();
3554
+ p || (e = t.tagValueProcessor(d, e), e = hn(e, t)), s && (o += n), o += e, s = !1, r.pop();
3555
3555
  continue;
3556
3556
  } else if (d === t.cdataPropName) {
3557
3557
  s && (o += n);
3558
- let e = l[u][0][t.textNodeName], i = on(e);
3558
+ let e = l[u][0][t.textNodeName], i = nn(e);
3559
3559
  o += `<![CDATA[${i}]]>`, s = !1, r.pop();
3560
3560
  continue;
3561
3561
  } else if (d === t.commentPropName) {
3562
- let e = l[u][0][t.textNodeName], i = z(e);
3562
+ let e = l[u][0][t.textNodeName], i = H(e);
3563
3563
  o += n + `<!--${i}-->`, s = !0, r.pop();
3564
3564
  continue;
3565
3565
  } else if (d[0] === "?") {
3566
- let e = hn(l[":@"], t, p, r, a);
3566
+ let e = pn(l[":@"], t, p, r, a);
3567
3567
  o += (d === "?xml" ? "" : n) + `<${d}${e}?>`, s = !0, r.pop();
3568
3568
  continue;
3569
3569
  }
3570
3570
  let m = n;
3571
3571
  m !== "" && (m += t.indentBy);
3572
- let h = n + `<${d}${hn(l[":@"], t, p, r, a)}`, g;
3573
- g = p ? pn(l[u], t) : dn(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();
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();
3574
3574
  }
3575
3575
  return o;
3576
3576
  }
3577
- function fn(e, t) {
3577
+ function ln(e, t) {
3578
3578
  if (!e || t.ignoreAttributes) return null;
3579
3579
  let n = {}, r = !1;
3580
3580
  for (let i in e) {
3581
3581
  if (!Object.prototype.hasOwnProperty.call(e, i)) continue;
3582
3582
  let a = i.startsWith(t.attributeNamePrefix) ? i.substr(t.attributeNamePrefix.length) : i;
3583
- n[a] = B(e[i]), r = !0;
3583
+ n[a] = U(e[i]), r = !0;
3584
3584
  }
3585
3585
  return r ? n : null;
3586
3586
  }
3587
- function pn(e, t) {
3587
+ function un(e, t) {
3588
3588
  if (!Array.isArray(e)) return e == null ? "" : e.toString();
3589
3589
  let n = "";
3590
3590
  for (let r = 0; r < e.length; r++) {
3591
- let i = e[r], a = V(i);
3591
+ let i = e[r], a = fn(i);
3592
3592
  if (a === t.textNodeName) n += i[a];
3593
3593
  else if (a === t.cdataPropName) n += i[a][0][t.textNodeName];
3594
3594
  else if (a === t.commentPropName) n += i[a][0][t.textNodeName];
3595
3595
  else if (a && a[0] === "?") continue;
3596
3596
  else if (a) {
3597
- let e = mn(i[":@"], t), r = pn(i[a], t);
3597
+ let e = dn(i[":@"], t), r = un(i[a], t);
3598
3598
  !r || r.length === 0 ? n += `<${a}${e}/>` : n += `<${a}${e}>${r}</${a}>`;
3599
3599
  }
3600
3600
  }
3601
3601
  return n;
3602
3602
  }
3603
- function mn(e, t) {
3603
+ function dn(e, t) {
3604
3604
  let n = "";
3605
3605
  if (e && !t.ignoreAttributes) for (let r in e) {
3606
3606
  if (!Object.prototype.hasOwnProperty.call(e, r)) continue;
3607
3607
  let i = e[r];
3608
- i === !0 && t.suppressBooleanAttributes ? n += ` ${r.substr(t.attributeNamePrefix.length)}` : n += ` ${r.substr(t.attributeNamePrefix.length)}="${B(i)}"`;
3608
+ i === !0 && t.suppressBooleanAttributes ? n += ` ${r.substr(t.attributeNamePrefix.length)}` : n += ` ${r.substr(t.attributeNamePrefix.length)}="${U(i)}"`;
3609
3609
  }
3610
3610
  return n;
3611
3611
  }
3612
- function V(e) {
3612
+ function fn(e) {
3613
3613
  let t = Object.keys(e);
3614
3614
  for (let n = 0; n < t.length; n++) {
3615
3615
  let r = t[n];
3616
3616
  if (Object.prototype.hasOwnProperty.call(e, r) && r !== ":@") return r;
3617
3617
  }
3618
3618
  }
3619
- function hn(e, t, n, r, i) {
3619
+ function pn(e, t, n, r, i) {
3620
3620
  let a = "";
3621
3621
  if (e && !t.ignoreAttributes) for (let o in e) {
3622
3622
  if (!Object.prototype.hasOwnProperty.call(e, o)) continue;
3623
- let s = o.substr(t.attributeNamePrefix.length), c = n ? s : ln(s, !0, t, r, i), l;
3624
- n ? l = e[o] : (l = t.attributeValueProcessor(o, e[o]), l = H(l, t)), l === !0 && t.suppressBooleanAttributes ? a += ` ${c}` : a += ` ${c}="${B(l)}"`;
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)}"`;
3625
3625
  }
3626
3626
  return a;
3627
3627
  }
3628
- function gn(e, t) {
3628
+ function mn(e, t) {
3629
3629
  if (!t || t.length === 0) return !1;
3630
3630
  for (let n = 0; n < t.length; n++) if (e.matches(t[n])) return !0;
3631
3631
  return !1;
3632
3632
  }
3633
- function H(e, t) {
3633
+ function hn(e, t) {
3634
3634
  if (e && e.length > 0 && t.processEntities) for (let n = 0; n < t.entities.length; n++) {
3635
3635
  let r = t.entities[n];
3636
3636
  e = e.replace(r.regex, r.val);
@@ -3639,14 +3639,14 @@ function H(e, t) {
3639
3639
  }
3640
3640
  //#endregion
3641
3641
  //#region ../../node_modules/.pnpm/fast-xml-builder@1.3.0/node_modules/fast-xml-builder/src/ignoreAttributes.js
3642
- function _n(e) {
3642
+ function gn(e) {
3643
3643
  return typeof e == "function" ? e : Array.isArray(e) ? (t) => {
3644
3644
  for (let n of e) if (typeof n == "string" && t === n || n instanceof RegExp && n.test(t)) return !0;
3645
3645
  } : () => !1;
3646
3646
  }
3647
3647
  //#endregion
3648
3648
  //#region ../../node_modules/.pnpm/fast-xml-builder@1.3.0/node_modules/fast-xml-builder/src/fxb.js
3649
- var vn = {
3649
+ var _n = {
3650
3650
  attributeNamePrefix: "@_",
3651
3651
  attributesGroupName: !1,
3652
3652
  textNodeName: "#text",
@@ -3695,18 +3695,18 @@ var vn = {
3695
3695
  jPath: !0,
3696
3696
  sanitizeName: !1
3697
3697
  };
3698
- function U(e) {
3699
- if (this.options = Object.assign({}, vn, 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++) {
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++) {
3700
3700
  let t = this.options.stopNodes[e];
3701
3701
  typeof t == "string" ? this.stopNodeExpressions.push(new M(t)) : t instanceof M && this.stopNodeExpressions.push(t);
3702
3702
  }
3703
3703
  this.options.ignoreAttributes === !0 || this.options.attributesGroupName ? this.isAttribute = function() {
3704
3704
  return !1;
3705
- } : (this.ignoreAttributesFn = _n(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = Cn), this.processTextOrObjNode = xn, this.options.format ? (this.indentate = Sn, this.tagEndChar = ">\n", this.newLine = "\n") : (this.indentate = function() {
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() {
3706
3706
  return "";
3707
3707
  }, this.tagEndChar = ">", this.newLine = "");
3708
3708
  }
3709
- function yn(e, t) {
3709
+ function vn(e, t) {
3710
3710
  let n = e["?xml"];
3711
3711
  if (n && typeof n == "object") {
3712
3712
  if (t.attributesGroupName && n[t.attributesGroupName]) {
@@ -3718,33 +3718,33 @@ function yn(e, t) {
3718
3718
  }
3719
3719
  return "1.0";
3720
3720
  }
3721
- function bn(e, t, n, r, i) {
3721
+ function yn(e, t, n, r, i) {
3722
3722
  return !n.sanitizeName || i(e) ? e : n.sanitizeName(e, {
3723
3723
  isAttribute: t,
3724
3724
  matcher: r.readOnly()
3725
3725
  });
3726
3726
  }
3727
- U.prototype.build = function(e) {
3728
- if (this.options.preserveOrder) return un(e, this.options);
3727
+ W.prototype.build = function(e) {
3728
+ if (this.options.preserveOrder) return sn(e, this.options);
3729
3729
  {
3730
3730
  Array.isArray(e) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (e = { [this.options.arrayNodeName]: e });
3731
- let t = new bt(), n = Xe("qName", { xmlVersion: yn(e, this.options) });
3731
+ let t = new N(), n = Ye("qName", { xmlVersion: vn(e, this.options) });
3732
3732
  return this.j2x(e, 0, t, n).val;
3733
3733
  }
3734
- }, U.prototype.j2x = function(e, t, n, r) {
3734
+ }, W.prototype.j2x = function(e, t, n, r) {
3735
3735
  let i = "", a = "";
3736
3736
  if (this.options.maxNestedTags && n.getDepth() >= this.options.maxNestedTags) throw Error("Maximum nested tags exceeded");
3737
3737
  let o = this.options.jPath ? n.toString() : n, s = this.checkStopNode(n);
3738
3738
  for (let c in e) {
3739
3739
  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 : bn(c, !1, this.options, n, r);
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);
3741
3741
  if (e[c] === void 0) this.isAttribute(c) && (a += "");
3742
3742
  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
3743
  else if (e[c] instanceof Date) a += this.buildTextValNode(e[c], l, "", t, n);
3744
3744
  else if (typeof e[c] != "object") {
3745
3745
  let u = this.isAttribute(c);
3746
3746
  if (u && !this.ignoreAttributesFn(u, o)) {
3747
- let t = bn(u, !0, this.options, n, r);
3747
+ let t = yn(u, !0, this.options, n, r);
3748
3748
  i += this.buildAttrPairStr(t, "" + e[c], s);
3749
3749
  } else if (!u) if (c === this.options.textNodeName) {
3750
3750
  let t = this.options.tagValueProcessor(c, "" + e[c]);
@@ -3783,7 +3783,7 @@ U.prototype.build = function(e) {
3783
3783
  } else if (this.options.attributesGroupName && c === this.options.attributesGroupName) {
3784
3784
  let t = Object.keys(e[c]), a = t.length;
3785
3785
  for (let o = 0; o < a; o++) {
3786
- let a = bn(t[o], !0, this.options, n, r);
3786
+ let a = yn(t[o], !0, this.options, n, r);
3787
3787
  i += this.buildAttrPairStr(a, "" + e[c][t[o]], s);
3788
3788
  }
3789
3789
  } else a += this.processTextOrObjNode(e[c], l, t, n, r);
@@ -3792,10 +3792,10 @@ U.prototype.build = function(e) {
3792
3792
  attrStr: i,
3793
3793
  val: a
3794
3794
  };
3795
- }, U.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 + "=\"" + B(t) + "\"";
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) + "\"";
3797
3797
  };
3798
- function xn(e, t, n, r, i) {
3798
+ function bn(e, t, n, r, i) {
3799
3799
  let a = this.extractAttributes(e);
3800
3800
  if (r.push(t, a), this.checkStopNode(r)) {
3801
3801
  let i = this.buildRawContent(e), a = this.buildAttributesForStopNode(e);
@@ -3804,7 +3804,7 @@ function xn(e, t, n, r, i) {
3804
3804
  let o = this.j2x(e, n + 1, r, i);
3805
3805
  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
3806
  }
3807
- U.prototype.extractAttributes = function(e) {
3807
+ W.prototype.extractAttributes = function(e) {
3808
3808
  if (!e || typeof e != "object") return null;
3809
3809
  let t = {}, n = !1;
3810
3810
  if (this.options.attributesGroupName && e[this.options.attributesGroupName]) {
@@ -3812,15 +3812,15 @@ U.prototype.extractAttributes = function(e) {
3812
3812
  for (let e in r) {
3813
3813
  if (!Object.prototype.hasOwnProperty.call(r, e)) continue;
3814
3814
  let i = e.startsWith(this.options.attributeNamePrefix) ? e.substring(this.options.attributeNamePrefix.length) : e;
3815
- t[i] = B(r[e]), n = !0;
3815
+ t[i] = U(r[e]), n = !0;
3816
3816
  }
3817
3817
  } else for (let r in e) {
3818
3818
  if (!Object.prototype.hasOwnProperty.call(e, r)) continue;
3819
3819
  let i = this.isAttribute(r);
3820
- i && (t[i] = B(e[r]), n = !0);
3820
+ i && (t[i] = U(e[r]), n = !0);
3821
3821
  }
3822
3822
  return n ? t : null;
3823
- }, U.prototype.buildRawContent = function(e) {
3823
+ }, W.prototype.buildRawContent = function(e) {
3824
3824
  if (typeof e == "string") return e;
3825
3825
  if (typeof e != "object" || !e) return String(e);
3826
3826
  if (e[this.options.textNodeName] !== void 0) return e[this.options.textNodeName];
@@ -3841,7 +3841,7 @@ U.prototype.extractAttributes = function(e) {
3841
3841
  } else t += `<${n}>${r}</${n}>`;
3842
3842
  }
3843
3843
  return t;
3844
- }, U.prototype.buildAttributesForStopNode = function(e) {
3844
+ }, W.prototype.buildAttributesForStopNode = function(e) {
3845
3845
  if (!e || typeof e != "object") return "";
3846
3846
  let t = "";
3847
3847
  if (this.options.attributesGroupName && e[this.options.attributesGroupName]) {
@@ -3849,84 +3849,87 @@ U.prototype.extractAttributes = function(e) {
3849
3849
  for (let e in n) {
3850
3850
  if (!Object.prototype.hasOwnProperty.call(n, e)) continue;
3851
3851
  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 + "=\"" + B(i) + "\"";
3852
+ i === !0 && this.options.suppressBooleanAttributes ? t += " " + r : t += " " + r + "=\"" + U(i) + "\"";
3853
3853
  }
3854
3854
  } else for (let n in e) {
3855
3855
  if (!Object.prototype.hasOwnProperty.call(e, n)) continue;
3856
3856
  let r = this.isAttribute(n);
3857
3857
  if (r) {
3858
3858
  let i = e[n];
3859
- i === !0 && this.options.suppressBooleanAttributes ? t += " " + r : t += " " + r + "=\"" + B(i) + "\"";
3859
+ i === !0 && this.options.suppressBooleanAttributes ? t += " " + r : t += " " + r + "=\"" + U(i) + "\"";
3860
3860
  }
3861
3861
  }
3862
3862
  return t;
3863
- }, U.prototype.buildObjectNode = function(e, t, n, r) {
3863
+ }, W.prototype.buildObjectNode = function(e, t, n, r) {
3864
3864
  if (e === "") return t[0] === "?" ? this.indentate(r) + "<" + t + n + "?" + this.tagEndChar : this.indentate(r) + "<" + t + n + this.closeTag(t) + this.tagEndChar;
3865
3865
  if (t[0] === "?") return this.indentate(r) + "<" + t + n + "?" + this.tagEndChar;
3866
3866
  {
3867
3867
  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) + `<!--${z(e)}-->` + this.newLine : this.indentate(r) + "<" + t + n + a + this.tagEndChar + e + this.indentate(r) + i;
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;
3869
3869
  }
3870
- }, U.prototype.closeTag = function(e) {
3870
+ }, W.prototype.closeTag = function(e) {
3871
3871
  let t = "";
3872
3872
  return this.options.unpairedTags.indexOf(e) === -1 ? t = this.options.suppressEmptyNode ? "/" : `></${e}` : this.options.suppressUnpairedNode || (t = "/"), t;
3873
- }, U.prototype.checkStopNode = function(e) {
3873
+ }, W.prototype.checkStopNode = function(e) {
3874
3874
  if (!this.stopNodeExpressions || this.stopNodeExpressions.length === 0) return !1;
3875
3875
  for (let t = 0; t < this.stopNodeExpressions.length; t++) if (e.matches(this.stopNodeExpressions[t])) return !0;
3876
3876
  return !1;
3877
- }, U.prototype.buildTextValNode = function(e, t, n, r, i) {
3877
+ }, W.prototype.buildTextValNode = function(e, t, n, r, i) {
3878
3878
  if (this.options.cdataPropName !== !1 && t === this.options.cdataPropName) {
3879
- let t = on(e);
3879
+ let t = nn(e);
3880
3880
  return this.indentate(r) + `<![CDATA[${t}]]>` + this.newLine;
3881
3881
  } else if (this.options.commentPropName !== !1 && t === this.options.commentPropName) {
3882
- let t = z(e);
3882
+ let t = H(e);
3883
3883
  return this.indentate(r) + `<!--${t}-->` + this.newLine;
3884
3884
  } else if (t[0] === "?") return this.indentate(r) + "<" + t + n + "?" + this.tagEndChar;
3885
3885
  else {
3886
3886
  let i = this.options.tagValueProcessor(t, e);
3887
3887
  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
3888
  }
3889
- }, U.prototype.replaceEntitiesValue = function(e) {
3889
+ }, W.prototype.replaceEntitiesValue = function(e) {
3890
3890
  if (e && e.length > 0 && this.options.processEntities) for (let t = 0; t < this.options.entities.length; t++) {
3891
3891
  let n = this.options.entities[t];
3892
3892
  e = e.replace(n.regex, n.val);
3893
3893
  }
3894
3894
  return e;
3895
3895
  };
3896
- function Sn(e) {
3896
+ function xn(e) {
3897
3897
  return this.options.indentBy.repeat(e);
3898
3898
  }
3899
- function Cn(e) {
3899
+ function Sn(e) {
3900
3900
  return e.startsWith(this.options.attributeNamePrefix) && e !== this.options.textNodeName ? e.substr(this.attrPrefixLen) : !1;
3901
3901
  }
3902
3902
  //#endregion
3903
3903
  //#region ../../node_modules/.pnpm/fast-xml-parser@5.10.0/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js
3904
- var wn = U, W = e.object({
3904
+ var Cn = W, G = e.object({
3905
3905
  created_at: e.string(),
3906
3906
  updated_at: e.string()
3907
- }), Tn = e.object({
3907
+ }), wn = e.object({
3908
3908
  id: e.string(),
3909
3909
  version: e.string().optional()
3910
- }), En = e.object({
3910
+ }), Tn = e.object({
3911
3911
  name: e.string(),
3912
3912
  version: e.string()
3913
- }), Dn = e.object({
3913
+ }), En = e.object({
3914
3914
  name: e.string(),
3915
3915
  value: e.string().optional()
3916
- }), On = e.object({
3916
+ }), Dn = e.object({
3917
3917
  name: e.string().max(255),
3918
3918
  code: e.string().max(1e5),
3919
- supported_triggers: e.array(Tn).optional(),
3919
+ supported_triggers: e.array(wn).optional(),
3920
3920
  runtime: e.string().max(50).optional(),
3921
- dependencies: e.array(En).optional(),
3922
- secrets: e.array(Dn).optional(),
3921
+ dependencies: e.array(Tn).optional(),
3922
+ secrets: e.array(En).optional(),
3923
3923
  is_system: e.boolean().optional(),
3924
3924
  inherit: e.boolean().optional()
3925
3925
  });
3926
- On.partial().extend({
3926
+ Dn.partial().extend({
3927
3927
  status: e.enum(["draft", "built"]).optional(),
3928
3928
  deployed_at: e.string().optional()
3929
- }), On.extend({
3929
+ });
3930
+ //#endregion
3931
+ //#region ../adapter-interfaces/dist/adapter-interfaces.mjs
3932
+ var On = Dn.extend({
3930
3933
  id: e.string(),
3931
3934
  tenant_id: e.string(),
3932
3935
  status: e.enum(["draft", "built"]).default("built"),
@@ -3935,26 +3938,25 @@ On.partial().extend({
3935
3938
  name: e.string(),
3936
3939
  value: e.string().optional()
3937
3940
  })).optional()
3938
- }).extend(W.shape);
3939
- //#endregion
3940
- //#region ../adapter-interfaces/dist/adapter-interfaces.mjs
3941
- var kn = e.string(), An = e.enum([
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([
3942
3944
  "unspecified",
3943
3945
  "pending",
3944
3946
  "final",
3945
3947
  "partial",
3946
3948
  "canceled",
3947
3949
  "suspended"
3948
- ]), jn = e.object({
3950
+ ]), Mn = e.object({
3949
3951
  id: e.string(),
3950
3952
  msg: e.string(),
3951
3953
  url: e.string().optional()
3952
- }), Mn = e.object({
3954
+ }), Nn = e.object({
3953
3955
  action_name: e.string(),
3954
- error: jn.nullable(),
3956
+ error: Mn.nullable(),
3955
3957
  started_at: e.string(),
3956
3958
  ended_at: e.string()
3957
- }), Nn = e.object({
3959
+ }), Pn = e.object({
3958
3960
  level: e.enum([
3959
3961
  "log",
3960
3962
  "info",
@@ -3963,17 +3965,17 @@ var kn = e.string(), An = e.enum([
3963
3965
  "debug"
3964
3966
  ]),
3965
3967
  message: e.string()
3966
- }), Pn = e.array(e.object({
3968
+ }), Fn = e.array(e.object({
3967
3969
  action_name: e.string(),
3968
- lines: e.array(Nn)
3970
+ lines: e.array(Pn)
3969
3971
  }));
3970
3972
  e.object({
3971
3973
  id: e.string(),
3972
3974
  tenant_id: e.string(),
3973
- trigger_id: kn,
3974
- status: An,
3975
- results: e.array(Mn),
3976
- logs: Pn.optional(),
3975
+ trigger_id: An,
3976
+ status: jn,
3977
+ results: e.array(Nn),
3978
+ logs: Fn.optional(),
3977
3979
  created_at: e.string(),
3978
3980
  updated_at: e.string()
3979
3981
  }).omit({
@@ -3984,21 +3986,21 @@ e.object({
3984
3986
  action_id: e.string(),
3985
3987
  code: e.string().max(1e5),
3986
3988
  runtime: e.string().max(50).optional(),
3987
- dependencies: e.array(En).optional(),
3988
- secrets: e.array(Dn).optional(),
3989
- supported_triggers: e.array(Tn).optional(),
3989
+ dependencies: e.array(Tn).optional(),
3990
+ secrets: e.array(En).optional(),
3991
+ supported_triggers: e.array(wn).optional(),
3990
3992
  deployed: e.boolean().default(!0)
3991
3993
  }).extend({
3992
3994
  id: e.string(),
3993
3995
  tenant_id: e.string(),
3994
3996
  number: e.number().int()
3995
- }).extend(W.shape);
3996
- var Fn = e.enum([
3997
+ }).extend(G.shape);
3998
+ var In = e.enum([
3997
3999
  "user_action",
3998
4000
  "admin_action",
3999
4001
  "system",
4000
4002
  "api"
4001
- ]), In = e.object({
4003
+ ]), Ln = e.object({
4002
4004
  type: e.enum([
4003
4005
  "user",
4004
4006
  "admin",
@@ -4012,7 +4014,7 @@ var Fn = e.enum([
4012
4014
  org_name: e.string().optional(),
4013
4015
  scopes: e.array(e.string()).optional(),
4014
4016
  client_id: e.string().optional()
4015
- }), Ln = e.object({
4017
+ }), Rn = e.object({
4016
4018
  type: e.string(),
4017
4019
  id: e.string(),
4018
4020
  before: e.record(e.string(), e.unknown()).optional(),
@@ -4021,7 +4023,7 @@ var Fn = e.enum([
4021
4023
  old: e.unknown(),
4022
4024
  new: e.unknown()
4023
4025
  })).optional()
4024
- }), Rn = e.object({
4026
+ }), zn = e.object({
4025
4027
  method: e.string(),
4026
4028
  path: e.string(),
4027
4029
  query: e.record(e.string(), e.string()).optional(),
@@ -4030,17 +4032,17 @@ var Fn = e.enum([
4030
4032
  user_agent: e.string().optional(),
4031
4033
  correlation_id: e.string().optional(),
4032
4034
  redirect_uri: e.string().optional()
4033
- }), zn = e.object({
4035
+ }), Bn = e.object({
4034
4036
  status_code: e.number(),
4035
4037
  body: e.unknown().optional()
4036
- }), Bn = e.object({
4038
+ }), Vn = e.object({
4037
4039
  country_code: e.string(),
4038
4040
  city_name: e.string(),
4039
4041
  latitude: e.string(),
4040
4042
  longitude: e.string(),
4041
4043
  time_zone: e.string(),
4042
4044
  continent_code: e.string()
4043
- }), Vn = e.object({
4045
+ }), Hn = e.object({
4044
4046
  name: e.string(),
4045
4047
  version: e.string(),
4046
4048
  env: e.record(e.string(), e.string()).optional()
@@ -4050,11 +4052,11 @@ e.object({
4050
4052
  event_type: e.string(),
4051
4053
  log_type: e.string(),
4052
4054
  description: e.string().optional(),
4053
- category: Fn,
4054
- actor: In,
4055
- target: Ln,
4056
- request: Rn,
4057
- response: zn.optional(),
4055
+ category: In,
4056
+ actor: Ln,
4057
+ target: Rn,
4058
+ request: zn,
4059
+ response: Bn.optional(),
4058
4060
  connection: e.string().optional(),
4059
4061
  connection_id: e.string().optional(),
4060
4062
  client_name: e.string().optional(),
@@ -4062,8 +4064,8 @@ e.object({
4062
4064
  strategy_type: e.string().optional(),
4063
4065
  audience: e.string().optional(),
4064
4066
  scope: e.string().optional(),
4065
- location: Bn.optional(),
4066
- auth0_client: Vn.optional(),
4067
+ location: Vn.optional(),
4068
+ auth0_client: Hn.optional(),
4067
4069
  hostname: e.string(),
4068
4070
  is_mobile: e.boolean().optional(),
4069
4071
  timestamp: e.string()
@@ -4078,14 +4080,14 @@ e.object({
4078
4080
  "SEND_REQUEST",
4079
4081
  "SEND_EMAIL"
4080
4082
  ]), e.enum(["VERIFY_EMAIL"]);
4081
- var Hn = e.object({
4083
+ var Un = e.object({
4082
4084
  require_mx_record: e.boolean().optional(),
4083
4085
  block_aliases: e.boolean().optional(),
4084
4086
  block_free_emails: e.boolean().optional(),
4085
4087
  block_disposable_emails: e.boolean().optional(),
4086
4088
  blocklist: e.array(e.string()).optional(),
4087
4089
  allowlist: e.array(e.string()).optional()
4088
- }), Un = e.object({
4090
+ }), Wn = e.object({
4089
4091
  id: e.string(),
4090
4092
  alias: e.string().max(100).optional(),
4091
4093
  type: e.literal("AUTH0"),
@@ -4097,7 +4099,7 @@ var Hn = e.object({
4097
4099
  user_id: e.string(),
4098
4100
  changes: e.record(e.string(), e.any())
4099
4101
  })
4100
- }), Wn = e.object({
4102
+ }), Gn = e.object({
4101
4103
  id: e.string(),
4102
4104
  alias: e.string().max(100).optional(),
4103
4105
  type: e.literal("EMAIL"),
@@ -4106,13 +4108,13 @@ var Hn = e.object({
4106
4108
  mask_output: e.boolean().optional(),
4107
4109
  params: e.object({
4108
4110
  email: e.string(),
4109
- rules: Hn.optional()
4111
+ rules: Un.optional()
4110
4112
  })
4111
- }), Gn = e.enum([
4113
+ }), Kn = e.enum([
4112
4114
  "change-email",
4113
4115
  "account",
4114
4116
  "custom"
4115
- ]), Kn = e.object({
4117
+ ]), qn = e.object({
4116
4118
  id: e.string(),
4117
4119
  alias: e.string().max(100).optional(),
4118
4120
  type: e.literal("REDIRECT"),
@@ -4120,18 +4122,18 @@ var Hn = e.object({
4120
4122
  allow_failure: e.boolean().optional(),
4121
4123
  mask_output: e.boolean().optional(),
4122
4124
  params: e.object({
4123
- target: Gn.openapi({ description: "The predefined target to redirect to, or 'custom' for a custom URL" }),
4125
+ target: Kn.openapi({ description: "The predefined target to redirect to, or 'custom' for a custom URL" }),
4124
4126
  custom_url: e.string().optional().openapi({ description: "Custom URL to redirect to when target is 'custom'" })
4125
4127
  })
4126
- }), qn = e.union([
4127
- Un,
4128
+ }), Jn = e.union([
4128
4129
  Wn,
4129
- Kn
4130
+ Gn,
4131
+ qn
4130
4132
  ]);
4131
4133
  e.object({
4132
4134
  name: e.string().min(1).max(150).openapi({ description: "The name of the flow" }),
4133
- actions: e.array(qn).optional().default([]).openapi({ description: "The list of actions to execute in sequence" })
4134
- }).extend(W.shape).extend({ id: e.string().openapi({
4135
+ actions: e.array(Jn).optional().default([]).openapi({ description: "The list of actions to execute in sequence" })
4136
+ }).extend(G.shape).extend({ id: e.string().openapi({
4135
4137
  description: "Unique identifier for the flow",
4136
4138
  example: "af_12tMpdJ3iek7svMyZkSh5M"
4137
4139
  }) }), e.object({
@@ -4147,7 +4149,7 @@ e.object({
4147
4149
  total: e.number().optional(),
4148
4150
  next: e.string().optional()
4149
4151
  });
4150
- var Jn = e.object({
4152
+ var Yn = e.object({
4151
4153
  email: e.string().optional(),
4152
4154
  email_verified: e.boolean().optional(),
4153
4155
  name: e.string().optional(),
@@ -4156,7 +4158,7 @@ var Jn = e.object({
4156
4158
  phone_number: e.string().optional(),
4157
4159
  phone_verified: e.boolean().optional(),
4158
4160
  family_name: e.string().optional()
4159
- }).catchall(e.any()), Yn = e.object({
4161
+ }).catchall(e.any()), Xn = e.object({
4160
4162
  connection: e.string(),
4161
4163
  user_id: e.string(),
4162
4164
  provider: e.string(),
@@ -4169,15 +4171,15 @@ var Jn = e.object({
4169
4171
  access_token: e.string().optional(),
4170
4172
  access_token_secret: e.string().optional(),
4171
4173
  refresh_token: e.string().optional(),
4172
- profileData: Jn.optional()
4173
- }), Xn = e.object({
4174
+ profileData: Yn.optional()
4175
+ }), Zn = e.object({
4174
4176
  formatted: e.string().optional(),
4175
4177
  street_address: e.string().optional(),
4176
4178
  locality: e.string().optional(),
4177
4179
  region: e.string().optional(),
4178
4180
  postal_code: e.string().optional(),
4179
4181
  country: e.string().optional()
4180
- }).optional(), Zn = e.object({
4182
+ }).optional(), Qn = e.object({
4181
4183
  email: e.string().transform((e) => e.toLowerCase()).optional(),
4182
4184
  username: e.string().refine((e) => !e.includes("@"), { message: "Usernames must not contain \"@\". Use the email field for email addresses." }).optional(),
4183
4185
  phone_number: e.string().optional(),
@@ -4200,9 +4202,9 @@ var Jn = e.object({
4200
4202
  gender: e.string().optional(),
4201
4203
  birthdate: e.string().optional(),
4202
4204
  zoneinfo: e.string().optional(),
4203
- address: Xn
4205
+ address: Zn
4204
4206
  });
4205
- Zn.extend({
4207
+ Qn.extend({
4206
4208
  email_verified: e.boolean().default(!1),
4207
4209
  verify_email: e.boolean().optional(),
4208
4210
  last_ip: e.string().optional(),
@@ -4217,30 +4219,30 @@ Zn.extend({
4217
4219
  hash: e.string(),
4218
4220
  algorithm: e.string()
4219
4221
  }).optional()
4220
- }).omit({ password: !0 }).extend(W.shape).extend({
4222
+ }).omit({ password: !0 }).extend(G.shape).extend({
4221
4223
  user_id: e.string(),
4222
4224
  provider: e.string(),
4223
4225
  is_social: e.boolean(),
4224
4226
  email: e.string().optional(),
4225
4227
  login_count: e.number().default(0),
4226
- identities: e.array(Yn).optional()
4227
- }).omit({ registration_completed_at: !0 }), Zn.extend({
4228
+ identities: e.array(Xn).optional()
4229
+ }).omit({ registration_completed_at: !0 }), Qn.extend({
4228
4230
  login_count: e.number(),
4229
4231
  multifactor: e.array(e.string()).optional(),
4230
4232
  last_ip: e.string().optional(),
4231
4233
  last_login: e.string().optional(),
4232
4234
  user_id: e.string()
4233
4235
  }).catchall(e.any());
4234
- var Qn = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", $n = (e = 21) => {
4236
+ var $n = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", er = (e = 21) => {
4235
4237
  let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
4236
- for (; e--;) t += Qn[n[e] & 63];
4238
+ for (; e--;) t += $n[n[e] & 63];
4237
4239
  return t;
4238
- }, er = e.object({
4240
+ }, tr = e.object({
4239
4241
  client_id: e.string().optional().openapi({ description: "ID of this client. Generated server-side if omitted (Auth0 behavior)." }),
4240
4242
  name: e.string().min(1).openapi({ description: "Name of this client (min length: 1 character, does not allow < or >)." }),
4241
4243
  description: e.string().max(140).optional().openapi({ description: "Free text description of this client (max length: 140 characters)." }),
4242
4244
  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)." }),
4243
- client_secret: e.string().default(() => $n()).optional().openapi({ description: "Client secret (which you must not make public)." }),
4245
+ client_secret: e.string().default(() => er()).optional().openapi({ description: "Client secret (which you must not make public)." }),
4244
4246
  app_type: e.enum([
4245
4247
  "native",
4246
4248
  "spa",
@@ -4357,8 +4359,8 @@ var Qn = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", $n
4357
4359
  e.object({
4358
4360
  created_at: e.string(),
4359
4361
  updated_at: e.string()
4360
- }).extend(er.shape).extend({ client_id: e.string() });
4361
- var tr = e.object({
4362
+ }).extend(tr.shape).extend({ client_id: e.string() });
4363
+ var nr = e.object({
4362
4364
  client_id: e.string().min(1).openapi({ description: "ID of the client." }),
4363
4365
  audience: e.string().min(1).openapi({ description: "The audience (API identifier) of this client grant." }),
4364
4366
  scope: e.array(e.string()).optional().openapi({ description: "Scopes allowed for this client grant." }),
@@ -4371,15 +4373,15 @@ var tr = e.object({
4371
4373
  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." }),
4372
4374
  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." }),
4373
4375
  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." })
4374
- }), nr = e.object({ id: e.string().openapi({ description: "ID of the client grant." }) }).extend(tr.shape).extend({
4376
+ }), rr = e.object({ id: e.string().openapi({ description: "ID of the client grant." }) }).extend(nr.shape).extend({
4375
4377
  created_at: e.string().optional(),
4376
4378
  updated_at: e.string().optional()
4377
4379
  });
4378
- e.array(nr);
4379
- var rr = e.enum(["iat", "rat"]), ir = e.object({
4380
+ e.array(rr);
4381
+ var ir = e.enum(["iat", "rat"]), ar = e.object({
4380
4382
  id: e.string(),
4381
4383
  token_hash: e.string(),
4382
- type: rr,
4384
+ type: ir,
4383
4385
  client_id: e.string().optional(),
4384
4386
  sub: e.string().optional(),
4385
4387
  constraints: e.record(e.string(), e.unknown()).optional(),
@@ -4390,23 +4392,23 @@ e.object({
4390
4392
  created_at: e.string(),
4391
4393
  used_at: e.string().optional(),
4392
4394
  revoked_at: e.string().optional()
4393
- }).extend(ir.shape);
4394
- var G = e.object({
4395
+ }).extend(ar.shape);
4396
+ var K = e.object({
4395
4397
  x: e.number(),
4396
4398
  y: e.number()
4397
- }), ar = /* @__PURE__ */ function(e) {
4399
+ }), or = /* @__PURE__ */ function(e) {
4398
4400
  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;
4399
- }({}), or = /* @__PURE__ */ function(e) {
4401
+ }({}), sr = /* @__PURE__ */ function(e) {
4400
4402
  return e.BLOCK = "BLOCK", e.FIELD = "FIELD", e;
4401
- }({}), K = e.object({
4403
+ }({}), q = e.object({
4402
4404
  id: e.string(),
4403
- category: e.nativeEnum(or),
4404
- type: e.nativeEnum(ar)
4405
- }), sr = K.extend({
4405
+ category: e.nativeEnum(sr),
4406
+ type: e.nativeEnum(or)
4407
+ }), cr = q.extend({
4406
4408
  category: e.literal("BLOCK"),
4407
4409
  type: e.literal("RICH_TEXT"),
4408
4410
  config: e.object({ content: e.string() }).passthrough()
4409
- }), cr = K.extend({
4411
+ }), lr = q.extend({
4410
4412
  category: e.literal("BLOCK"),
4411
4413
  type: e.union([
4412
4414
  e.literal("NEXT_BUTTON"),
@@ -4414,13 +4416,13 @@ var G = e.object({
4414
4416
  e.literal("SUBMIT_BUTTON")
4415
4417
  ]),
4416
4418
  config: e.object({ text: e.string() }).passthrough()
4417
- }), lr = K.extend({
4419
+ }), ur = q.extend({
4418
4420
  category: e.literal("FIELD"),
4419
4421
  type: e.literal("LEGAL"),
4420
4422
  required: e.boolean().optional(),
4421
4423
  sensitive: e.boolean().optional(),
4422
4424
  config: e.object({ text: e.string() }).passthrough()
4423
- }), ur = K.extend({
4425
+ }), dr = q.extend({
4424
4426
  category: e.literal("FIELD"),
4425
4427
  type: e.union([
4426
4428
  e.literal("TEXT"),
@@ -4440,38 +4442,38 @@ var G = e.object({
4440
4442
  label: e.string().optional(),
4441
4443
  placeholder: e.string().optional()
4442
4444
  }).passthrough()
4443
- }), dr = e.object({
4445
+ }), fr = e.object({
4444
4446
  id: e.string(),
4445
4447
  category: e.string(),
4446
4448
  type: e.string()
4447
- }).passthrough(), fr = e.union([
4448
- sr,
4449
+ }).passthrough(), pr = e.union([
4449
4450
  cr,
4450
4451
  lr,
4451
4452
  ur,
4452
- dr
4453
- ]), pr = e.object({
4453
+ dr,
4454
+ fr
4455
+ ]), mr = e.object({
4454
4456
  id: e.string(),
4455
4457
  type: e.literal("STEP"),
4456
- coordinates: G,
4458
+ coordinates: K,
4457
4459
  alias: e.string().optional(),
4458
4460
  config: e.object({
4459
- components: e.array(fr),
4461
+ components: e.array(pr),
4460
4462
  next_node: e.string()
4461
4463
  }).passthrough()
4462
- }), mr = e.object({
4464
+ }), hr = e.object({
4463
4465
  id: e.string(),
4464
4466
  type: e.literal("FLOW"),
4465
- coordinates: G,
4467
+ coordinates: K,
4466
4468
  alias: e.string().optional(),
4467
4469
  config: e.object({
4468
4470
  flow_id: e.string(),
4469
4471
  next_node: e.string()
4470
4472
  })
4471
- }), hr = e.object({
4473
+ }), gr = e.object({
4472
4474
  id: e.string(),
4473
4475
  type: e.literal("ACTION"),
4474
- coordinates: G,
4476
+ coordinates: K,
4475
4477
  alias: e.string().optional(),
4476
4478
  config: e.object({
4477
4479
  action_type: e.enum(["REDIRECT"]).openapi({ description: "The type of action to perform" }),
@@ -4483,29 +4485,29 @@ var G = e.object({
4483
4485
  custom_url: e.string().optional().openapi({ description: "Custom URL when target is 'custom'" }),
4484
4486
  next_node: e.string().openapi({ description: "The next node to navigate to after action (for non-redirect actions)" })
4485
4487
  }).passthrough()
4486
- }), gr = e.object({
4488
+ }), _r = e.object({
4487
4489
  id: e.string(),
4488
4490
  type: e.string(),
4489
- coordinates: G
4490
- }).passthrough(), _r = e.union([
4491
- pr,
4491
+ coordinates: K
4492
+ }).passthrough(), vr = e.union([
4492
4493
  mr,
4493
4494
  hr,
4494
- gr
4495
- ]), vr = e.object({
4495
+ gr,
4496
+ _r
4497
+ ]), yr = e.object({
4496
4498
  next_node: e.string(),
4497
- coordinates: G
4498
- }).passthrough(), yr = e.object({
4499
+ coordinates: K
4500
+ }).passthrough(), br = e.object({
4499
4501
  resume_flow: e.boolean().optional(),
4500
- coordinates: G
4502
+ coordinates: K
4501
4503
  }).passthrough();
4502
4504
  e.object({
4503
4505
  id: e.string(),
4504
4506
  name: e.string(),
4505
4507
  languages: e.object({ primary: e.string() }).passthrough(),
4506
- nodes: e.array(_r),
4507
- start: vr,
4508
- ending: yr,
4508
+ nodes: e.array(vr),
4509
+ start: yr,
4510
+ ending: br,
4509
4511
  created_at: e.string(),
4510
4512
  updated_at: e.string(),
4511
4513
  links: e.object({
@@ -4517,24 +4519,24 @@ e.object({
4517
4519
  created_at: !0,
4518
4520
  updated_at: !0
4519
4521
  });
4520
- var br = /* @__PURE__ */ function(e) {
4522
+ var xr = /* @__PURE__ */ function(e) {
4521
4523
  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;
4522
- }({}), xr = /* @__PURE__ */ function(e) {
4523
- return e.QUERY = "query", e.FRAGMENT = "fragment", e.FORM_POST = "form_post", e.WEB_MESSAGE = "web_message", e.SAML_POST = "saml_post", e;
4524
4524
  }({}), Sr = /* @__PURE__ */ function(e) {
4525
+ return e.QUERY = "query", e.FRAGMENT = "fragment", e.FORM_POST = "form_post", e.WEB_MESSAGE = "web_message", e.SAML_POST = "saml_post", e;
4526
+ }({}), Cr = /* @__PURE__ */ function(e) {
4525
4527
  return e.S256 = "S256", e.Plain = "plain", e;
4526
- }({}), Cr = e.union([e.null(), e.object({
4528
+ }({}), wr = e.union([e.null(), e.object({
4527
4529
  essential: e.boolean().optional(),
4528
4530
  value: e.unknown().optional(),
4529
4531
  values: e.array(e.unknown()).optional()
4530
- })]).nullable(), wr = e.object({
4531
- userinfo: e.record(e.string(), Cr).optional(),
4532
- id_token: e.record(e.string(), Cr).optional()
4533
- }), Tr = e.object({
4532
+ })]).nullable(), Tr = e.object({
4533
+ userinfo: e.record(e.string(), wr).optional(),
4534
+ id_token: e.record(e.string(), wr).optional()
4535
+ }), Er = e.object({
4534
4536
  client_id: e.string(),
4535
4537
  act_as: e.string().optional(),
4536
- response_type: e.nativeEnum(br).optional(),
4537
- response_mode: e.nativeEnum(xr).optional(),
4538
+ response_type: e.nativeEnum(xr).optional(),
4539
+ response_mode: e.nativeEnum(Sr).optional(),
4538
4540
  redirect_uri: e.string().optional(),
4539
4541
  audience: e.string().optional(),
4540
4542
  organization: e.string().optional(),
@@ -4542,13 +4544,13 @@ var br = /* @__PURE__ */ function(e) {
4542
4544
  nonce: e.string().optional(),
4543
4545
  scope: e.string().optional(),
4544
4546
  prompt: e.string().optional(),
4545
- code_challenge_method: e.nativeEnum(Sr).optional(),
4547
+ code_challenge_method: e.nativeEnum(Cr).optional(),
4546
4548
  code_challenge: e.string().optional(),
4547
4549
  username: e.string().optional(),
4548
4550
  ui_locales: e.string().optional(),
4549
4551
  max_age: e.number().optional(),
4550
4552
  acr_values: e.string().optional(),
4551
- claims: wr.optional(),
4553
+ claims: Tr.optional(),
4552
4554
  vendor_id: e.string().optional()
4553
4555
  });
4554
4556
  e.object({
@@ -4571,20 +4573,21 @@ e.object({
4571
4573
  "auto"
4572
4574
  ]).optional()
4573
4575
  });
4574
- var Er = e.enum([
4576
+ var Dr = e.enum([
4575
4577
  "password_reset",
4576
4578
  "email_verification",
4577
4579
  "otp",
4578
4580
  "mfa_otp",
4579
4581
  "authorization_code",
4580
4582
  "oauth2_state",
4581
- "ticket"
4583
+ "ticket",
4584
+ "client_assertion_jti"
4582
4585
  ]);
4583
4586
  e.object({
4584
4587
  code_id: e.string().openapi({ description: "The code that will be used in for instance an email verification flow" }),
4585
- login_id: e.string().openapi({ description: "The id of the login session that the code is connected to" }),
4588
+ login_id: e.string().optional().openapi({ description: "The id of the login session that the code is connected to" }),
4586
4589
  connection_id: e.string().optional().openapi({ description: "The connection that the code is connected to" }),
4587
- code_type: Er,
4590
+ code_type: Dr,
4588
4591
  code_verifier: e.string().optional().openapi({ description: "The code verifier used in PKCE in outbound flows" }),
4589
4592
  code_challenge: e.string().optional().openapi({ description: "The code challenge used in PKCE in outbound flows" }),
4590
4593
  code_challenge_method: e.enum(["plain", "S256"]).optional().openapi({ description: "The code challenge method used in PKCE in outbound flows" }),
@@ -4596,7 +4599,7 @@ e.object({
4596
4599
  used_at: e.string().optional(),
4597
4600
  user_id: e.string().optional()
4598
4601
  }).extend({ created_at: e.string() });
4599
- var Dr = e.object({
4602
+ var Or = e.object({
4600
4603
  kid: e.string().optional(),
4601
4604
  team_id: e.string().optional(),
4602
4605
  realms: e.string().optional(),
@@ -4716,26 +4719,26 @@ var Dr = e.object({
4716
4719
  "never_on_login"
4717
4720
  ]).optional()
4718
4721
  });
4719
- function Or(e) {
4722
+ function kr(e) {
4720
4723
  if (e !== null) {
4721
- if (Array.isArray(e)) return e.filter((e) => e !== null).map(Or);
4724
+ if (Array.isArray(e)) return e.filter((e) => e !== null).map(kr);
4722
4725
  if (e && typeof e == "object") {
4723
4726
  let t = {};
4724
- for (let [n, r] of Object.entries(e)) r !== null && (t[n] = Or(r));
4727
+ for (let [n, r] of Object.entries(e)) r !== null && (t[n] = kr(r));
4725
4728
  return t;
4726
4729
  }
4727
4730
  return e;
4728
4731
  }
4729
4732
  }
4730
- var kr = e.object({
4733
+ var Ar = e.object({
4731
4734
  id: e.string().optional(),
4732
4735
  name: e.string(),
4733
4736
  display_name: e.string().optional(),
4734
4737
  strategy: e.string(),
4735
- options: e.preprocess((e) => e === null ? {} : Or(e), Dr).default({}),
4738
+ options: e.preprocess((e) => e === null ? {} : kr(e), Or).default({}),
4736
4739
  enabled_clients: e.array(e.string()).default([]).optional(),
4737
- response_type: e.nativeEnum(br).optional(),
4738
- response_mode: e.nativeEnum(xr).optional(),
4740
+ response_type: e.nativeEnum(xr).optional(),
4741
+ response_mode: e.nativeEnum(Sr).optional(),
4739
4742
  is_domain_connection: e.boolean().optional(),
4740
4743
  show_as_button: e.boolean().optional(),
4741
4744
  metadata: e.record(e.string(), e.any()).optional(),
@@ -4745,8 +4748,8 @@ e.object({
4745
4748
  id: e.string(),
4746
4749
  created_at: e.string().transform((e) => e === null ? "" : e),
4747
4750
  updated_at: e.string().transform((e) => e === null ? "" : e)
4748
- }).extend(kr.shape);
4749
- var Ar = e.object({
4751
+ }).extend(Ar.shape);
4752
+ var jr = e.object({
4750
4753
  domain: e.string(),
4751
4754
  custom_domain_id: e.string().optional(),
4752
4755
  type: e.enum(["auth0_managed_certs", "self_managed_certs"]),
@@ -4760,7 +4763,7 @@ var Ar = e.object({
4760
4763
  "null"
4761
4764
  ]).optional(),
4762
4765
  domain_metadata: e.record(e.string(), e.string().max(255)).optional()
4763
- }), jr = e.discriminatedUnion("name", [e.object({
4766
+ }), Mr = e.discriminatedUnion("name", [e.object({
4764
4767
  name: e.literal("txt"),
4765
4768
  record: e.string(),
4766
4769
  domain: e.string()
@@ -4768,7 +4771,7 @@ var Ar = e.object({
4768
4771
  name: e.literal("http"),
4769
4772
  http_body: e.string(),
4770
4773
  http_url: e.string()
4771
- })]), Mr = Ar.extend({
4774
+ })]), Nr = jr.extend({
4772
4775
  custom_domain_id: e.string(),
4773
4776
  primary: e.boolean(),
4774
4777
  status: e.enum([
@@ -4778,28 +4781,28 @@ var Ar = e.object({
4778
4781
  "ready"
4779
4782
  ]),
4780
4783
  origin_domain_name: e.string().optional(),
4781
- verification: e.object({ methods: e.array(jr) }).optional(),
4784
+ verification: e.object({ methods: e.array(Mr) }).optional(),
4782
4785
  tls_policy: e.string().optional()
4783
4786
  });
4784
- Ar.pick({
4787
+ jr.pick({
4785
4788
  tls_policy: !0,
4786
4789
  custom_client_ip_header: !0,
4787
4790
  domain_metadata: !0
4788
- }).strict(), Mr.extend({ tenant_id: e.string() }), e.object({
4791
+ }).strict(), Nr.extend({ tenant_id: e.string() }), e.object({
4789
4792
  certificate: e.string().regex(/^-----BEGIN CERTIFICATE-----[\s\S]+-----END CERTIFICATE-----\s*$/, "must be PEM-encoded; include the full certificate chain in leaf-first order"),
4790
4793
  private_key: e.string().regex(/-----BEGIN (RSA |EC |ENCRYPTED )?PRIVATE KEY-----[\s\S]+-----END \1PRIVATE KEY-----\s*$/, "must be a PEM-encoded private key")
4791
4794
  });
4792
- var Nr = e.object({
4795
+ var Pr = e.object({
4793
4796
  id: e.string(),
4794
4797
  order: e.number().optional(),
4795
4798
  visible: e.boolean().optional().default(!0)
4796
- }), q = Nr.extend({ category: e.literal("BLOCK").optional() }), Pr = q.extend({
4799
+ }), J = Pr.extend({ category: e.literal("BLOCK").optional() }), Fr = J.extend({
4797
4800
  type: e.literal("DIVIDER"),
4798
4801
  config: e.object({ text: e.string().optional() }).optional()
4799
- }), Fr = q.extend({
4802
+ }), Ir = J.extend({
4800
4803
  type: e.literal("HTML"),
4801
4804
  config: e.object({ content: e.string().optional() }).optional()
4802
- }), Ir = q.extend({
4805
+ }), Lr = J.extend({
4803
4806
  type: e.literal("IMAGE"),
4804
4807
  config: e.object({
4805
4808
  src: e.string().optional(),
@@ -4807,43 +4810,43 @@ var Nr = e.object({
4807
4810
  width: e.number().optional(),
4808
4811
  height: e.number().optional()
4809
4812
  }).optional()
4810
- }), Lr = q.extend({
4813
+ }), Rr = J.extend({
4811
4814
  type: e.literal("JUMP_BUTTON"),
4812
4815
  config: e.object({
4813
4816
  text: e.string().optional(),
4814
4817
  target_step: e.string().optional()
4815
4818
  })
4816
- }), Rr = q.extend({
4819
+ }), zr = J.extend({
4817
4820
  type: e.literal("RESEND_BUTTON"),
4818
4821
  config: e.object({
4819
4822
  text: e.string().optional(),
4820
4823
  resend_action: e.string().optional()
4821
4824
  })
4822
- }), zr = q.extend({
4825
+ }), Br = J.extend({
4823
4826
  type: e.literal("NEXT_BUTTON"),
4824
4827
  config: e.object({ text: e.string().optional() })
4825
- }), Br = q.extend({
4828
+ }), Vr = J.extend({
4826
4829
  type: e.literal("PREVIOUS_BUTTON"),
4827
4830
  config: e.object({ text: e.string().optional() })
4828
- }), Vr = q.extend({
4831
+ }), Hr = J.extend({
4829
4832
  type: e.literal("RICH_TEXT"),
4830
4833
  config: e.object({ content: e.string().optional() }).optional()
4831
- }), J = Nr.extend({
4834
+ }), Ur = Pr.extend({
4832
4835
  category: e.literal("WIDGET").optional(),
4833
4836
  label: e.string().min(1).optional(),
4834
4837
  hint: e.string().min(1).max(500).optional(),
4835
4838
  required: e.boolean().optional(),
4836
4839
  sensitive: e.boolean().optional()
4837
- }), Hr = J.extend({
4840
+ }), Wr = Ur.extend({
4838
4841
  type: e.literal("AUTH0_VERIFIABLE_CREDENTIALS"),
4839
4842
  config: e.object({ credential_type: e.string().optional() })
4840
- }), Ur = J.extend({
4843
+ }), Gr = Ur.extend({
4841
4844
  type: e.literal("GMAPS_ADDRESS"),
4842
4845
  config: e.object({ api_key: e.string().optional() })
4843
- }), Wr = J.extend({
4846
+ }), Kr = Ur.extend({
4844
4847
  type: e.literal("RECAPTCHA"),
4845
4848
  config: e.object({ site_key: e.string().optional() })
4846
- }), Y = Nr.extend({
4849
+ }), Y = Pr.extend({
4847
4850
  category: e.literal("FIELD").optional(),
4848
4851
  label: e.string().min(1).optional(),
4849
4852
  hint: e.string().min(1).max(500).optional(),
@@ -4859,10 +4862,10 @@ var Nr = e.object({
4859
4862
  })).optional(),
4860
4863
  required: e.boolean().optional(),
4861
4864
  sensitive: e.boolean().optional()
4862
- }), Gr = Y.extend({
4865
+ }), qr = Y.extend({
4863
4866
  type: e.literal("BOOLEAN"),
4864
4867
  config: e.object({ default_value: e.boolean().optional() }).optional()
4865
- }), Kr = Y.extend({
4868
+ }), Jr = Y.extend({
4866
4869
  type: e.literal("CARDS"),
4867
4870
  config: e.object({
4868
4871
  options: e.array(e.object({
@@ -4873,7 +4876,7 @@ var Nr = e.object({
4873
4876
  })).optional(),
4874
4877
  multi_select: e.boolean().optional()
4875
4878
  }).optional()
4876
- }), qr = Y.extend({
4879
+ }), Yr = Y.extend({
4877
4880
  type: e.literal("CHOICE"),
4878
4881
  config: e.object({
4879
4882
  options: e.array(e.object({
@@ -4884,7 +4887,7 @@ var Nr = e.object({
4884
4887
  multiple: e.boolean().optional(),
4885
4888
  default_value: e.union([e.string(), e.array(e.string())]).optional()
4886
4889
  }).optional()
4887
- }), Jr = Y.extend({
4890
+ }), Xr = Y.extend({
4888
4891
  type: e.literal("CODE"),
4889
4892
  config: e.object({
4890
4893
  length: e.number().int().positive().max(100).optional(),
@@ -4901,7 +4904,7 @@ var Nr = e.object({
4901
4904
  message: "default_value is longer than the configured length",
4902
4905
  path: ["default_value"]
4903
4906
  }).optional()
4904
- }), Yr = Y.extend({
4907
+ }), Zr = Y.extend({
4905
4908
  type: e.literal("CUSTOM"),
4906
4909
  config: e.object({
4907
4910
  component: e.string().optional(),
@@ -4909,7 +4912,7 @@ var Nr = e.object({
4909
4912
  schema: e.record(e.string(), e.any()).optional(),
4910
4913
  code: e.string().optional()
4911
4914
  })
4912
- }), Xr = Y.extend({
4915
+ }), Qr = Y.extend({
4913
4916
  type: e.literal("DATE"),
4914
4917
  config: e.object({
4915
4918
  format: e.string().optional(),
@@ -4917,7 +4920,7 @@ var Nr = e.object({
4917
4920
  max: e.string().optional(),
4918
4921
  default_value: e.string().optional()
4919
4922
  }).optional()
4920
- }), Zr = Y.extend({
4923
+ }), $r = Y.extend({
4921
4924
  type: e.literal("DROPDOWN"),
4922
4925
  config: e.object({
4923
4926
  options: e.array(e.object({
@@ -4929,7 +4932,7 @@ var Nr = e.object({
4929
4932
  multiple: e.boolean().optional(),
4930
4933
  default_value: e.union([e.string(), e.array(e.string())]).optional()
4931
4934
  }).optional()
4932
- }), Qr = Y.extend({
4935
+ }), ei = Y.extend({
4933
4936
  type: e.literal("EMAIL"),
4934
4937
  config: e.object({
4935
4938
  placeholder: e.string().optional(),
@@ -4937,20 +4940,20 @@ var Nr = e.object({
4937
4940
  last_used: e.boolean().optional(),
4938
4941
  last_used_label: e.string().optional()
4939
4942
  }).optional()
4940
- }), $r = Y.extend({
4943
+ }), ti = Y.extend({
4941
4944
  type: e.literal("FILE"),
4942
4945
  config: e.object({
4943
4946
  accept: e.string().optional(),
4944
4947
  max_size: e.number().optional(),
4945
4948
  multiple: e.boolean().optional()
4946
4949
  }).optional()
4947
- }), ei = Y.extend({
4950
+ }), ni = Y.extend({
4948
4951
  type: e.literal("LEGAL"),
4949
4952
  config: e.object({
4950
4953
  text: e.string(),
4951
4954
  html: e.boolean().optional()
4952
4955
  }).optional()
4953
- }), ti = Y.extend({
4956
+ }), ri = Y.extend({
4954
4957
  type: e.literal("NUMBER"),
4955
4958
  config: e.object({
4956
4959
  placeholder: e.string().optional(),
@@ -4959,7 +4962,7 @@ var Nr = e.object({
4959
4962
  step: e.number().optional(),
4960
4963
  default_value: e.string().optional()
4961
4964
  }).optional()
4962
- }), ni = Y.extend({
4965
+ }), ii = Y.extend({
4963
4966
  type: e.literal("PASSWORD"),
4964
4967
  config: e.object({
4965
4968
  placeholder: e.string().optional(),
@@ -4968,13 +4971,13 @@ var Nr = e.object({
4968
4971
  forgot_password_link: e.string().optional(),
4969
4972
  default_value: e.string().optional()
4970
4973
  }).optional()
4971
- }), ri = Y.extend({
4974
+ }), ai = Y.extend({
4972
4975
  type: e.literal("PAYMENT"),
4973
4976
  config: e.object({
4974
4977
  provider: e.string().optional(),
4975
4978
  currency: e.string().optional()
4976
4979
  }).optional()
4977
- }), ii = Y.extend({
4980
+ }), oi = Y.extend({
4978
4981
  type: e.literal("SOCIAL"),
4979
4982
  config: e.object({
4980
4983
  providers: e.array(e.string()).optional(),
@@ -4988,7 +4991,7 @@ var Nr = e.object({
4988
4991
  last_used_label: e.string().optional()
4989
4992
  })).optional()
4990
4993
  }).optional()
4991
- }), ai = Y.extend({
4994
+ }), si = Y.extend({
4992
4995
  type: e.literal("TEL"),
4993
4996
  config: e.object({
4994
4997
  placeholder: e.string().optional(),
@@ -4996,7 +4999,7 @@ var Nr = e.object({
4996
4999
  default_value: e.string().optional(),
4997
5000
  allow_email: e.boolean().optional()
4998
5001
  }).optional()
4999
- }), oi = Y.extend({
5002
+ }), ci = Y.extend({
5000
5003
  type: e.literal("TEXT"),
5001
5004
  config: e.object({
5002
5005
  placeholder: e.string().optional(),
@@ -5006,39 +5009,37 @@ var Nr = e.object({
5006
5009
  last_used: e.boolean().optional(),
5007
5010
  last_used_label: e.string().optional()
5008
5011
  }).optional()
5009
- }), si = Y.extend({
5012
+ }), li = Y.extend({
5010
5013
  type: e.literal("COUNTRY"),
5011
5014
  config: e.object({
5012
5015
  placeholder: e.string().optional(),
5013
5016
  default_value: e.string().optional()
5014
5017
  }).optional()
5015
- }), ci = Y.extend({
5018
+ }), ui = Y.extend({
5016
5019
  type: e.literal("URL"),
5017
5020
  config: e.object({
5018
5021
  placeholder: e.string().optional(),
5019
5022
  default_value: e.string().optional()
5020
5023
  }).optional()
5021
- }), li = e.discriminatedUnion("type", [
5022
- Pr,
5024
+ }), di = e.discriminatedUnion("type", [
5023
5025
  Fr,
5024
5026
  Ir,
5025
5027
  Lr,
5026
5028
  Rr,
5027
5029
  zr,
5028
5030
  Br,
5029
- Vr
5030
- ]), ui = e.discriminatedUnion("type", [
5031
- Hr,
5032
- Ur,
5033
- Wr
5034
- ]), di = e.discriminatedUnion("type", [
5031
+ Vr,
5032
+ Hr
5033
+ ]), fi = e.discriminatedUnion("type", [
5034
+ Wr,
5035
5035
  Gr,
5036
- Kr,
5036
+ Kr
5037
+ ]), pi = e.discriminatedUnion("type", [
5037
5038
  qr,
5038
5039
  Jr,
5039
- si,
5040
5040
  Yr,
5041
5041
  Xr,
5042
+ li,
5042
5043
  Zr,
5043
5044
  Qr,
5044
5045
  $r,
@@ -5049,11 +5050,13 @@ var Nr = e.object({
5049
5050
  ii,
5050
5051
  ai,
5051
5052
  oi,
5052
- ci
5053
- ]), fi = e.union([
5054
- li,
5055
- ui,
5056
- di
5053
+ si,
5054
+ ci,
5055
+ ui
5056
+ ]), mi = e.union([
5057
+ di,
5058
+ fi,
5059
+ pi
5057
5060
  ]);
5058
5061
  new Set([
5059
5062
  "BOOLEAN",
@@ -5083,7 +5086,7 @@ new Set([
5083
5086
  var X = e.object({
5084
5087
  x: e.number(),
5085
5088
  y: e.number()
5086
- }), pi = e.object({
5089
+ }), hi = e.object({
5087
5090
  id: e.string(),
5088
5091
  type: e.literal("FLOW"),
5089
5092
  coordinates: X,
@@ -5092,7 +5095,7 @@ var X = e.object({
5092
5095
  flow_id: e.string().max(30),
5093
5096
  next_node: e.string().optional()
5094
5097
  })
5095
- }), mi = e.object({
5098
+ }), gi = e.object({
5096
5099
  id: e.string(),
5097
5100
  type: e.literal("ROUTER"),
5098
5101
  coordinates: X,
@@ -5106,20 +5109,20 @@ var X = e.object({
5106
5109
  })),
5107
5110
  fallback: e.string()
5108
5111
  })
5109
- }), hi = e.object({
5112
+ }), _i = e.object({
5110
5113
  id: e.string(),
5111
5114
  type: e.literal("STEP"),
5112
5115
  coordinates: X,
5113
5116
  alias: e.string().min(1).max(150).optional(),
5114
5117
  config: e.object({
5115
- components: e.array(fi),
5118
+ components: e.array(mi),
5116
5119
  next_node: e.string().optional()
5117
5120
  })
5118
- }), gi = e.discriminatedUnion("type", [
5119
- pi,
5120
- mi,
5121
- hi
5122
- ]), _i = e.object({
5121
+ }), vi = e.discriminatedUnion("type", [
5122
+ hi,
5123
+ gi,
5124
+ _i
5125
+ ]), yi = e.object({
5123
5126
  name: e.string().openapi({ description: "The name of the form" }),
5124
5127
  messages: e.object({
5125
5128
  errors: e.record(e.string(), e.any()).optional(),
@@ -5130,7 +5133,7 @@ var X = e.object({
5130
5133
  default: e.string().optional()
5131
5134
  }).optional(),
5132
5135
  translations: e.record(e.string(), e.any()).optional(),
5133
- nodes: e.array(gi).optional(),
5136
+ nodes: e.array(vi).optional(),
5134
5137
  start: e.object({
5135
5138
  hidden_fields: e.array(e.object({
5136
5139
  key: e.string(),
@@ -5154,8 +5157,8 @@ var X = e.object({
5154
5157
  sdk_src: e.string().optional()
5155
5158
  }).optional()
5156
5159
  }).openapi({ description: "Schema for flow-based forms (matches Auth0 Forms structure)" });
5157
- W.extend(_i.shape).extend({ id: e.string() });
5158
- var vi = e.object({
5160
+ G.extend(yi.shape).extend({ id: e.string() });
5161
+ var bi = e.object({
5159
5162
  id: e.number().optional(),
5160
5163
  text: e.string(),
5161
5164
  type: e.enum([
@@ -5164,7 +5167,7 @@ var vi = e.object({
5164
5167
  "success",
5165
5168
  "warning"
5166
5169
  ])
5167
- }), yi = e.object({
5170
+ }), xi = e.object({
5168
5171
  id: e.string().optional(),
5169
5172
  text: e.string(),
5170
5173
  href: e.string(),
@@ -5176,12 +5179,12 @@ e.object({
5176
5179
  method: e.enum(["POST", "GET"]),
5177
5180
  title: e.string().optional(),
5178
5181
  description: e.string().optional(),
5179
- components: e.array(fi),
5180
- messages: e.array(vi).optional(),
5181
- links: e.array(yi).optional(),
5182
+ components: e.array(mi),
5183
+ messages: e.array(bi).optional(),
5184
+ links: e.array(xi).optional(),
5182
5185
  footer: e.string().optional()
5183
5186
  });
5184
- var bi = e.enum([
5187
+ var Si = e.enum([
5185
5188
  "pre-user-registration",
5186
5189
  "post-user-registration",
5187
5190
  "post-user-login",
@@ -5189,19 +5192,19 @@ var bi = e.enum([
5189
5192
  "validate-registration-username",
5190
5193
  "pre-user-deletion",
5191
5194
  "post-user-deletion"
5192
- ]), xi = e.enum(["post-user-login"]), Si = e.enum([
5195
+ ]), Ci = e.enum(["post-user-login"]), wi = e.enum([
5193
5196
  "post-user-login",
5194
5197
  "post-user-registration",
5195
5198
  "post-user-update",
5196
5199
  "credentials-exchange"
5197
- ]), Ci = e.enum([
5200
+ ]), Ti = e.enum([
5198
5201
  "post-user-login",
5199
5202
  "credentials-exchange",
5200
5203
  "pre-user-registration",
5201
5204
  "post-user-registration"
5202
- ]), wi = e.enum(["post-user-login"]);
5203
- bi.options, xi.options, Si.options, Ci.options, wi.options;
5204
- var Ti = e.enum(["impersonate"]), Ei = e.enum([
5205
+ ]), Ei = e.enum(["post-user-login"]);
5206
+ Si.options, Ci.options, wi.options, Ti.options, Ei.options;
5207
+ var Di = e.enum(["impersonate"]), Oi = e.enum([
5205
5208
  "ensure-username",
5206
5209
  "set-preferred-username",
5207
5210
  "account-linking"
@@ -5211,85 +5214,85 @@ var Ti = e.enum(["impersonate"]), Ei = e.enum([
5211
5214
  priority: e.number().optional(),
5212
5215
  hook_id: e.string().optional(),
5213
5216
  metadata: e.record(e.string(), e.unknown()).optional()
5214
- }, Di = e.object({
5215
- ...Z,
5216
- trigger_id: bi,
5217
- url: e.string()
5218
- }), Oi = e.object({
5219
- ...Z,
5220
- trigger_id: xi,
5221
- form_id: e.string()
5222
- }), ki = e.object({
5217
+ }, ki = e.object({
5223
5218
  ...Z,
5224
5219
  trigger_id: Si,
5225
- template_id: Ei
5220
+ url: e.string()
5226
5221
  }), Ai = e.object({
5227
5222
  ...Z,
5228
5223
  trigger_id: Ci,
5229
- code_id: e.string()
5224
+ form_id: e.string()
5230
5225
  }), ji = e.object({
5231
5226
  ...Z,
5232
5227
  trigger_id: wi,
5233
- page_id: Ti,
5228
+ template_id: Oi
5229
+ }), Mi = e.object({
5230
+ ...Z,
5231
+ trigger_id: Ti,
5232
+ code_id: e.string()
5233
+ }), Ni = e.object({
5234
+ ...Z,
5235
+ trigger_id: Ei,
5236
+ page_id: Di,
5234
5237
  permission_required: e.string().optional()
5235
5238
  });
5236
5239
  e.union([
5237
- Di,
5238
- Oi,
5239
5240
  ki,
5240
5241
  Ai,
5241
- ji
5242
+ ji,
5243
+ Mi,
5244
+ Ni
5242
5245
  ]);
5243
- var Mi = e.object({
5246
+ var Pi = e.object({
5244
5247
  ...Z,
5245
- trigger_id: bi
5246
- }).extend(W.shape).extend({
5248
+ trigger_id: Si
5249
+ }).extend(G.shape).extend({
5247
5250
  hook_id: e.string(),
5248
5251
  url: e.string()
5249
- }), Ni = e.object({
5252
+ }), Fi = e.object({
5250
5253
  ...Z,
5251
- trigger_id: xi
5252
- }).extend(W.shape).extend({
5254
+ trigger_id: Ci
5255
+ }).extend(G.shape).extend({
5253
5256
  hook_id: e.string(),
5254
5257
  form_id: e.string()
5255
- }), Pi = e.object({
5258
+ }), Ii = e.object({
5256
5259
  ...Z,
5257
- trigger_id: Si
5258
- }).extend(W.shape).extend({
5260
+ trigger_id: wi
5261
+ }).extend(G.shape).extend({
5259
5262
  hook_id: e.string(),
5260
- template_id: Ei
5261
- }), Fi = e.object({
5263
+ template_id: Oi
5264
+ }), Li = e.object({
5262
5265
  ...Z,
5263
- trigger_id: Ci
5264
- }).extend(W.shape).extend({
5266
+ trigger_id: Ti
5267
+ }).extend(G.shape).extend({
5265
5268
  hook_id: e.string(),
5266
5269
  code_id: e.string()
5267
- }), Ii = e.object({
5270
+ }), Ri = e.object({
5268
5271
  ...Z,
5269
- trigger_id: wi
5270
- }).extend(W.shape).extend({
5272
+ trigger_id: Ei
5273
+ }).extend(G.shape).extend({
5271
5274
  hook_id: e.string(),
5272
- page_id: Ti,
5275
+ page_id: Di,
5273
5276
  permission_required: e.string().optional()
5274
5277
  });
5275
5278
  e.union([
5276
- Mi,
5277
- Ni,
5278
5279
  Pi,
5279
5280
  Fi,
5280
- Ii
5281
+ Ii,
5282
+ Li,
5283
+ Ri
5281
5284
  ]), e.object({
5282
5285
  code: e.string().max(1e5),
5283
5286
  secrets: e.record(e.string(), e.string()).optional()
5284
5287
  }).extend({
5285
5288
  id: e.string(),
5286
5289
  tenant_id: e.string()
5287
- }).extend(W.shape);
5288
- var Li = e.object({ name: e.string().optional() }), Ri = e.object({ email: e.string().optional() }), zi = e.object({
5290
+ }).extend(G.shape);
5291
+ var zi = e.object({ name: e.string().optional() }), Bi = e.object({ email: e.string().optional() }), Vi = e.object({
5289
5292
  id: e.string().optional(),
5290
5293
  organization_id: e.string().max(50),
5291
- inviter: Li,
5292
- invitee: Ri,
5294
+ inviter: zi,
5295
+ invitee: Bi,
5293
5296
  invitation_url: e.string().url(),
5294
5297
  client_id: e.string(),
5295
5298
  connection_id: e.string().optional(),
@@ -5305,8 +5308,8 @@ e.object({
5305
5308
  created_at: e.string().datetime(),
5306
5309
  expires_at: e.string().datetime(),
5307
5310
  ticket_id: e.string().optional()
5308
- }).extend(zi.omit({ id: !0 }).shape);
5309
- var Bi = e.object({
5311
+ }).extend(Vi.omit({ id: !0 }).shape);
5312
+ var Hi = e.object({
5310
5313
  alg: e.enum([
5311
5314
  "RS256",
5312
5315
  "RS384",
@@ -5348,7 +5351,7 @@ var Bi = e.object({
5348
5351
  message: `EC JWK is missing required member '${r}'`
5349
5352
  });
5350
5353
  });
5351
- e.object({ keys: e.array(Bi) }), e.object({
5354
+ e.object({ keys: e.array(Hi) }), e.object({
5352
5355
  issuer: e.string(),
5353
5356
  authorization_endpoint: e.string(),
5354
5357
  token_endpoint: e.string(),
@@ -5375,28 +5378,28 @@ e.object({ keys: e.array(Bi) }), e.object({
5375
5378
  backchannel_logout_supported: e.boolean().optional(),
5376
5379
  backchannel_logout_session_supported: e.boolean().optional()
5377
5380
  });
5378
- var Vi = /* @__PURE__ */ function(e) {
5381
+ var Ui = /* @__PURE__ */ function(e) {
5379
5382
  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;
5380
- }({}), Hi = e.nativeEnum(Vi), Ui = e.object({
5383
+ }({}), Wi = e.nativeEnum(Ui), Gi = e.object({
5381
5384
  strategy: e.string(),
5382
5385
  strategy_type: e.string()
5383
5386
  });
5384
5387
  e.object({
5385
5388
  csrf_token: e.string(),
5386
5389
  auth0Client: e.string().optional(),
5387
- authParams: Tr,
5390
+ authParams: Er,
5388
5391
  expires_at: e.string(),
5389
5392
  deleted_at: e.string().optional(),
5390
5393
  ip: e.string().optional(),
5391
5394
  useragent: e.string().optional(),
5392
5395
  session_id: e.string().optional(),
5393
5396
  authorization_url: e.string().optional(),
5394
- state: Hi.optional().default("pending"),
5397
+ state: Wi.optional().default("pending"),
5395
5398
  state_data: e.string().optional(),
5396
5399
  failure_reason: e.string().optional(),
5397
5400
  user_id: e.string().optional(),
5398
5401
  auth_connection: e.string().optional(),
5399
- auth_strategy: Ui.optional(),
5402
+ auth_strategy: Gi.optional(),
5400
5403
  authenticated_at: e.string().optional()
5401
5404
  }).openapi({ description: "This represents a login sesion" }).extend({
5402
5405
  id: e.string().openapi({ description: "This is is used as the state in the universal login" }),
@@ -5563,17 +5566,17 @@ var Q = {
5563
5566
  WARNING_DURING_LOGIN: "w",
5564
5567
  WARNING_SENDING_NOTIFICATION: "wn",
5565
5568
  WARNING_USER_MANAGEMENT: "wum"
5566
- }, Wi = e.string().refine((e) => Object.values(Q).includes(e), { message: "Invalid log type" });
5569
+ }, Ki = e.string().refine((e) => Object.values(Q).includes(e), { message: "Invalid log type" });
5567
5570
  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, (() => {
5568
5571
  let e = {};
5569
5572
  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";
5570
5573
  return e;
5571
5574
  })();
5572
- var Gi = e.object({
5575
+ var qi = e.object({
5573
5576
  name: e.string(),
5574
5577
  version: e.string(),
5575
5578
  env: e.object({ node: e.string().optional() }).optional()
5576
- }), Ki = e.object({
5579
+ }), Ji = e.object({
5577
5580
  country_code: e.string().length(2),
5578
5581
  city_name: e.string(),
5579
5582
  latitude: e.string(),
@@ -5582,7 +5585,7 @@ var Gi = e.object({
5582
5585
  continent_code: e.string()
5583
5586
  });
5584
5587
  e.object({
5585
- type: Wi,
5588
+ type: Ki,
5586
5589
  date: e.string(),
5587
5590
  description: e.string().optional(),
5588
5591
  ip: e.string().optional(),
@@ -5600,63 +5603,63 @@ e.object({
5600
5603
  strategy: e.string().optional(),
5601
5604
  strategy_type: e.string().optional(),
5602
5605
  hostname: e.string().optional(),
5603
- auth0_client: Gi.optional(),
5606
+ auth0_client: qi.optional(),
5604
5607
  log_id: e.string().optional(),
5605
- location_info: Ki.optional()
5608
+ location_info: Ji.optional()
5606
5609
  }).extend({ log_id: e.string() });
5607
- var qi = e.enum([
5610
+ var Yi = e.enum([
5608
5611
  "http",
5609
5612
  "eventbridge",
5610
5613
  "eventgrid",
5611
5614
  "splunk",
5612
5615
  "datadog",
5613
5616
  "sumo"
5614
- ]), Ji = e.enum([
5617
+ ]), Xi = e.enum([
5615
5618
  "active",
5616
5619
  "paused",
5617
5620
  "suspended"
5618
- ]), Yi = e.object({
5621
+ ]), Zi = e.object({
5619
5622
  type: e.string(),
5620
5623
  name: e.string()
5621
5624
  });
5622
5625
  e.object({
5623
5626
  name: e.string(),
5624
- type: qi,
5625
- status: Ji.optional(),
5627
+ type: Yi,
5628
+ status: Xi.optional(),
5626
5629
  sink: e.record(e.string(), e.unknown()),
5627
- filters: e.array(Yi).optional(),
5630
+ filters: e.array(Zi).optional(),
5628
5631
  isPriority: e.boolean().optional()
5629
5632
  }).extend({
5630
5633
  id: e.string(),
5631
- status: Ji,
5634
+ status: Xi,
5632
5635
  created_at: e.string().optional(),
5633
5636
  updated_at: e.string().optional()
5634
5637
  });
5635
- var Xi = e.enum([
5638
+ var Qi = e.enum([
5636
5639
  "auth0",
5637
5640
  "cognito",
5638
5641
  "okta",
5639
5642
  "oidc"
5640
- ]), Zi = e.object({
5643
+ ]), $i = e.object({
5641
5644
  domain: e.string(),
5642
5645
  client_id: e.string(),
5643
5646
  client_secret: e.string(),
5644
5647
  audience: e.string().optional(),
5645
5648
  scope: e.string().optional()
5646
- }), Qi = e.object({
5649
+ }), ea = e.object({
5647
5650
  id: e.string().optional(),
5648
5651
  name: e.string(),
5649
- provider: Xi,
5652
+ provider: Qi,
5650
5653
  connection: e.string(),
5651
5654
  enabled: e.boolean().default(!0),
5652
- credentials: Zi
5655
+ credentials: $i
5653
5656
  });
5654
5657
  e.object({
5655
5658
  id: e.string(),
5656
5659
  created_at: e.string(),
5657
5660
  updated_at: e.string()
5658
- }).extend(Qi.shape);
5659
- var $i = e.object({
5661
+ }).extend(ea.shape);
5662
+ var ta = e.object({
5660
5663
  enabled: e.boolean().optional(),
5661
5664
  shields: e.array(e.string()).optional(),
5662
5665
  admin_notification_frequency: e.array(e.string()).optional(),
@@ -5665,13 +5668,13 @@ var $i = e.object({
5665
5668
  "pre-user-registration": e.object({ shields: e.array(e.string()).optional() }).optional(),
5666
5669
  "pre-change-password": e.object({ shields: e.array(e.string()).optional() }).optional()
5667
5670
  }).optional()
5668
- }), ea = e.object({
5671
+ }), na = e.object({
5669
5672
  enabled: e.boolean().optional(),
5670
5673
  shields: e.array(e.string()).optional(),
5671
5674
  allowlist: e.array(e.string()).optional(),
5672
5675
  mode: e.string().optional(),
5673
5676
  max_attempts: e.number().optional()
5674
- }), ta = e.object({
5677
+ }), ra = e.object({
5675
5678
  enabled: e.boolean().optional(),
5676
5679
  shields: e.array(e.string()).optional(),
5677
5680
  allowlist: e.array(e.string()).optional(),
@@ -5685,10 +5688,10 @@ var $i = e.object({
5685
5688
  rate: e.number().optional()
5686
5689
  }).optional()
5687
5690
  }).optional()
5688
- }), na = e.object({
5689
- breached_password_detection: $i.optional(),
5690
- brute_force_protection: ea.optional(),
5691
- suspicious_ip_throttling: ta.optional()
5691
+ }), ia = e.object({
5692
+ breached_password_detection: ta.optional(),
5693
+ brute_force_protection: na.optional(),
5694
+ suspicious_ip_throttling: ra.optional()
5692
5695
  });
5693
5696
  e.object({
5694
5697
  id: e.string().optional(),
@@ -5701,14 +5704,14 @@ e.object({
5701
5704
  created_at: e.string(),
5702
5705
  updated_at: e.string()
5703
5706
  });
5704
- var ra = e.object({
5707
+ var aa = e.object({
5705
5708
  initial_user_agent: e.string().describe("First user agent of the device from which this user logged in"),
5706
5709
  initial_ip: e.string().describe("First IP address associated with this session"),
5707
5710
  initial_asn: e.string().describe("First autonomous system number associated with this session"),
5708
5711
  last_user_agent: e.string().describe("Last user agent of the device from which this user logged in"),
5709
5712
  last_ip: e.string().describe("Last IP address from which this user logged in"),
5710
5713
  last_asn: e.string().describe("Last autonomous system number from which this user logged in")
5711
- }), ia = e.object({
5714
+ }), oa = e.object({
5712
5715
  id: e.string(),
5713
5716
  revoked_at: e.string().optional(),
5714
5717
  used_at: e.string().optional(),
@@ -5716,7 +5719,7 @@ var ra = e.object({
5716
5719
  expires_at: e.string().optional(),
5717
5720
  login_session_id: e.string(),
5718
5721
  idle_expires_at: e.string().optional(),
5719
- device: ra.describe("Metadata related to the device used in the session"),
5722
+ device: aa.describe("Metadata related to the device used in the session"),
5720
5723
  clients: e.array(e.string()).describe("List of client details for the session")
5721
5724
  });
5722
5725
  e.object({
@@ -5724,7 +5727,7 @@ e.object({
5724
5727
  updated_at: e.string(),
5725
5728
  authenticated_at: e.string(),
5726
5729
  last_interaction_at: e.string()
5727
- }).extend(ia.shape), e.object({
5730
+ }).extend(oa.shape), e.object({
5728
5731
  kid: e.string().openapi({ description: "The key id of the signing key" }),
5729
5732
  tenant_id: e.string().optional().openapi({ description: "The tenant the key belongs to. Omitted means the key is shared / control-plane scoped." }),
5730
5733
  cert: e.string().openapi({ description: "The public certificate of the signing key" }),
@@ -5741,7 +5744,7 @@ e.object({
5741
5744
  connection: e.string().optional().openapi({ description: "The connection identifier associated with the key" }),
5742
5745
  type: e.enum(["jwt_signing", "saml_encryption"]).openapi({ description: "The type of the signing key" })
5743
5746
  });
5744
- var aa = e.object({
5747
+ var sa = e.object({
5745
5748
  id: e.string().optional(),
5746
5749
  audience: e.string().optional(),
5747
5750
  friendly_name: e.string(),
@@ -5859,7 +5862,7 @@ var aa = e.object({
5859
5862
  "shared_planetscale"
5860
5863
  ]).optional(),
5861
5864
  d1_database_id: e.string().max(64).optional(),
5862
- attack_protection: na.optional(),
5865
+ attack_protection: ia.optional(),
5863
5866
  mfa: e.object({
5864
5867
  policy: e.enum(["never", "always"]).default("never").optional(),
5865
5868
  factors: e.object({
@@ -5890,37 +5893,42 @@ var aa = e.object({
5890
5893
  e.object({
5891
5894
  created_at: e.string().nullable().transform((e) => e ?? ""),
5892
5895
  updated_at: e.string().nullable().transform((e) => e ?? "")
5893
- }).extend(aa.shape).extend({
5896
+ }).extend(sa.shape).extend({
5894
5897
  id: e.string(),
5895
5898
  is_control_plane: e.boolean().optional()
5896
5899
  });
5897
- var oa = e.enum([
5900
+ var ca = e.enum([
5898
5901
  "provision",
5899
5902
  "seed",
5900
5903
  "upgrade",
5901
5904
  "backup",
5902
- "deprovision"
5903
- ]), sa = e.enum([
5905
+ "deprovision",
5906
+ "users_import"
5907
+ ]), la = e.enum([
5904
5908
  "pending",
5905
5909
  "running",
5906
5910
  "succeeded",
5907
5911
  "failed",
5908
5912
  "cancelled"
5909
- ]), ca = e.enum(["inline", "cloudflare-workflows"]);
5913
+ ]), ua = e.string().max(64);
5910
5914
  e.object({
5911
5915
  tenant_id: e.string().max(255).nullable().default(null),
5912
5916
  rollout_id: e.string().max(255).nullable().optional(),
5913
- kind: oa,
5914
- engine: ca,
5917
+ kind: ca,
5918
+ engine: ua,
5915
5919
  engine_instance_id: e.string().max(100).nullable().optional(),
5916
5920
  target_worker_version: e.string().max(255).nullable().optional(),
5917
5921
  target_database_version: e.string().max(255).nullable().optional(),
5918
- initiated_by: e.string().max(255).nullable().optional()
5922
+ initiated_by: e.string().max(255).nullable().optional(),
5923
+ input: e.record(e.string(), e.unknown()).nullable().optional()
5919
5924
  }).extend({
5920
5925
  id: e.string(),
5921
- status: sa,
5926
+ status: la,
5922
5927
  current_step: e.string().max(255).nullable().optional(),
5923
5928
  error: e.string().nullable().optional(),
5929
+ result: e.record(e.string(), e.unknown()).nullable().optional(),
5930
+ claimed_by: e.string().max(255).nullable().optional(),
5931
+ claim_expires_at: e.string().nullable().optional(),
5924
5932
  created_at: e.string(),
5925
5933
  updated_at: e.string(),
5926
5934
  finished_at: e.string().nullable().optional()
@@ -5931,9 +5939,12 @@ e.object({
5931
5939
  target_worker_version: !0,
5932
5940
  target_database_version: !0,
5933
5941
  error: !0,
5942
+ result: !0,
5943
+ claimed_by: !0,
5944
+ claim_expires_at: !0,
5934
5945
  finished_at: !0
5935
5946
  }).partial();
5936
- var la = e.enum([
5947
+ var da = e.enum([
5937
5948
  "started",
5938
5949
  "succeeded",
5939
5950
  "failed",
@@ -5944,18 +5955,46 @@ var la = e.enum([
5944
5955
  e.object({
5945
5956
  operation_id: e.string().max(255),
5946
5957
  step: e.string().max(255),
5947
- outcome: la,
5958
+ outcome: da,
5948
5959
  detail: e.record(e.string(), e.unknown()).nullable().optional(),
5949
5960
  attempt: e.number().int().min(1).default(1)
5950
5961
  }).extend({
5951
5962
  id: e.string(),
5952
5963
  created_at: e.string()
5953
5964
  });
5954
- var ua = e.enum([
5965
+ var fa = e.enum([
5966
+ "pending",
5967
+ "inserted",
5968
+ "updated",
5969
+ "failed",
5970
+ "skipped"
5971
+ ]);
5972
+ e.object({
5973
+ operation_id: e.string().max(255),
5974
+ seq: e.number().int().min(0),
5975
+ payload: e.record(e.string(), e.unknown()),
5976
+ status: fa.default("pending"),
5977
+ error_code: e.string().max(64).nullable().optional(),
5978
+ error_message: e.string().nullable().optional(),
5979
+ error_path: e.string().max(255).nullable().optional(),
5980
+ entity_id: e.string().max(255).nullable().optional()
5981
+ }).extend({
5982
+ status: fa,
5983
+ created_at: e.string(),
5984
+ updated_at: e.string()
5985
+ }), e.object({
5986
+ seq: e.number().int().min(0),
5987
+ status: fa,
5988
+ error_code: e.string().max(64).nullable().optional(),
5989
+ error_message: e.string().nullable().optional(),
5990
+ error_path: e.string().max(255).nullable().optional(),
5991
+ entity_id: e.string().max(255).nullable().optional()
5992
+ });
5993
+ var pa = e.enum([
5955
5994
  "upgrade",
5956
5995
  "reseed",
5957
5996
  "backup"
5958
- ]), da = e.enum([
5997
+ ]), ma = e.enum([
5959
5998
  "pending",
5960
5999
  "canary",
5961
6000
  "rolling",
@@ -5964,7 +6003,7 @@ var ua = e.enum([
5964
6003
  "failed"
5965
6004
  ]);
5966
6005
  e.object({
5967
- kind: ua,
6006
+ kind: pa,
5968
6007
  target_worker_version: e.string().max(255).nullable().optional(),
5969
6008
  target_database_version: e.string().max(255).nullable().optional(),
5970
6009
  wave_size: e.number().int().min(1).default(10),
@@ -5973,7 +6012,7 @@ e.object({
5973
6012
  initiated_by: e.string().max(255).nullable().optional()
5974
6013
  }).extend({
5975
6014
  id: e.string(),
5976
- status: da,
6015
+ status: ma,
5977
6016
  created_at: e.string(),
5978
6017
  updated_at: e.string(),
5979
6018
  finished_at: e.string().nullable().optional()
@@ -5995,7 +6034,7 @@ e.object({
5995
6034
  code: e.string(),
5996
6035
  state: e.string().optional()
5997
6036
  });
5998
- var fa = e.object({
6037
+ var ha = e.object({
5999
6038
  button_border_radius: e.number(),
6000
6039
  button_border_weight: e.number(),
6001
6040
  buttons_style: e.enum([
@@ -6013,7 +6052,7 @@ var fa = e.object({
6013
6052
  show_widget_shadow: e.boolean(),
6014
6053
  widget_border_weight: e.number(),
6015
6054
  widget_corner_radius: e.number()
6016
- }), pa = e.object({
6055
+ }), ga = e.object({
6017
6056
  base_focus_color: e.string(),
6018
6057
  base_hover_color: e.string(),
6019
6058
  body_text: e.string(),
@@ -6040,7 +6079,7 @@ var fa = e.object({
6040
6079
  }), $ = e.object({
6041
6080
  bold: e.boolean(),
6042
6081
  size: e.number()
6043
- }), ma = e.object({
6082
+ }), _a = e.object({
6044
6083
  body_text: $,
6045
6084
  buttons_text: $,
6046
6085
  font_url: e.string(),
@@ -6050,7 +6089,7 @@ var fa = e.object({
6050
6089
  reference_text_size: e.number(),
6051
6090
  subtitle: $,
6052
6091
  title: $
6053
- }), ha = e.object({
6092
+ }), va = e.object({
6054
6093
  background_color: e.string(),
6055
6094
  background_image_url: e.string(),
6056
6095
  page_layout: e.enum([
@@ -6063,7 +6102,7 @@ var fa = e.object({
6063
6102
  "chip",
6064
6103
  "none"
6065
6104
  ]).optional()
6066
- }), ga = e.object({
6105
+ }), ya = e.object({
6067
6106
  header_text_alignment: e.enum([
6068
6107
  "center",
6069
6108
  "left",
@@ -6080,12 +6119,12 @@ var fa = e.object({
6080
6119
  social_buttons_layout: e.enum(["bottom", "top"])
6081
6120
  });
6082
6121
  e.object({
6083
- borders: fa,
6084
- colors: pa,
6122
+ borders: ha,
6123
+ colors: ga,
6085
6124
  displayName: e.string(),
6086
- fonts: ma,
6087
- page_background: ha,
6088
- widget: ga
6125
+ fonts: _a,
6126
+ page_background: va,
6127
+ widget: ya
6089
6128
  }).extend({ themeId: e.string() }), e.object({
6090
6129
  universal_login_experience: e.enum(["new", "classic"]).default("new"),
6091
6130
  identifier_first: e.boolean().default(!0),
@@ -6093,44 +6132,44 @@ e.object({
6093
6132
  show_last_used_connection: e.boolean().default(!1),
6094
6133
  webauthn_platform_first_factor: e.boolean()
6095
6134
  });
6096
- var _a = e.object({
6135
+ var ba = e.object({
6097
6136
  hosts: e.array(e.string()).optional(),
6098
6137
  methods: e.array(e.string()).optional(),
6099
6138
  path: e.string().default("/*"),
6100
6139
  headers: e.record(e.string(), e.string()).optional(),
6101
6140
  query: e.record(e.string(), e.string()).optional()
6102
- }), va = e.object({
6141
+ }), xa = e.object({
6103
6142
  type: e.string(),
6104
6143
  options: e.record(e.string(), e.unknown()).default({})
6105
- }), ya = e.object({
6144
+ }), Sa = e.object({
6106
6145
  id: e.string().optional(),
6107
6146
  custom_domain_id: e.string(),
6108
6147
  priority: e.number().int().default(100),
6109
- match: _a,
6110
- handlers: e.array(va).min(1)
6148
+ match: ba,
6149
+ handlers: e.array(xa).min(1)
6111
6150
  });
6112
- ya.extend({
6151
+ Sa.extend({
6113
6152
  id: e.string(),
6114
6153
  tenant_id: e.string(),
6115
6154
  created_at: e.string(),
6116
6155
  updated_at: e.string()
6117
- }), ya.partial().omit({
6156
+ }), Sa.partial().omit({
6118
6157
  id: !0,
6119
6158
  custom_domain_id: !0
6120
6159
  });
6121
- var ba = e.object({
6160
+ var Ca = e.object({
6122
6161
  scim: e.string(),
6123
6162
  auth0: e.string()
6124
- }), xa = e.object({
6163
+ }), wa = e.object({
6125
6164
  connection_id: e.string(),
6126
6165
  user_id_attribute: e.string().default("externalId"),
6127
- mapping: e.array(ba).default([])
6166
+ mapping: e.array(Ca).default([])
6128
6167
  });
6129
6168
  e.object({
6130
6169
  created_at: e.string(),
6131
6170
  updated_at: e.string()
6132
- }).extend(xa.shape);
6133
- var Sa = e.object({
6171
+ }).extend(wa.shape);
6172
+ var Ta = e.object({
6134
6173
  token_id: e.string(),
6135
6174
  connection_id: e.string(),
6136
6175
  token_hash: e.string(),
@@ -6140,20 +6179,20 @@ var Sa = e.object({
6140
6179
  e.object({
6141
6180
  created_at: e.string(),
6142
6181
  last_used_at: e.string().optional()
6143
- }).extend(Sa.shape);
6144
- var Ca = e.object({
6182
+ }).extend(Ta.shape);
6183
+ var Ea = e.object({
6145
6184
  connection_id: e.string(),
6146
6185
  external_id: e.string(),
6147
6186
  user_id: e.string()
6148
6187
  });
6149
- e.object({ created_at: e.string() }).extend(Ca.shape), e.object({
6188
+ e.object({ created_at: e.string() }).extend(Ea.shape), e.object({
6150
6189
  name: e.string(),
6151
6190
  enabled: e.boolean().optional().default(!0),
6152
6191
  default_from_address: e.string().optional(),
6153
6192
  credentials: e.record(e.string(), e.unknown()),
6154
6193
  settings: e.object({}).optional()
6155
6194
  });
6156
- var wa = e.enum([
6195
+ var Da = e.enum([
6157
6196
  "verify_email",
6158
6197
  "verify_email_by_code",
6159
6198
  "reset_email",
@@ -6168,7 +6207,7 @@ var wa = e.enum([
6168
6207
  "user_invitation"
6169
6208
  ]);
6170
6209
  e.object({
6171
- template: wa,
6210
+ template: Da,
6172
6211
  body: e.string(),
6173
6212
  from: e.string(),
6174
6213
  subject: e.string(),
@@ -6183,13 +6222,13 @@ e.object({
6183
6222
  session_id: e.string().optional(),
6184
6223
  organization: e.string().optional(),
6185
6224
  auth_connection: e.string().optional(),
6186
- auth_strategy: Ui.optional(),
6225
+ auth_strategy: Gi.optional(),
6187
6226
  user_id: e.string(),
6188
6227
  client_id: e.string(),
6189
6228
  expires_at: e.string().optional(),
6190
6229
  idle_expires_at: e.string().optional(),
6191
6230
  last_exchanged_at: e.string().optional(),
6192
- device: ra,
6231
+ device: aa,
6193
6232
  resource_servers: e.array(e.object({
6194
6233
  audience: e.string(),
6195
6234
  scopes: e.string()
@@ -6210,10 +6249,10 @@ e.object({
6210
6249
  name: e.string(),
6211
6250
  options: e.object({})
6212
6251
  });
6213
- var Ta = e.object({
6252
+ var Oa = e.object({
6214
6253
  value: e.string(),
6215
6254
  description: e.string().optional()
6216
- }), Ea = e.object({
6255
+ }), ka = e.object({
6217
6256
  token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
6218
6257
  enforce_policies: e.boolean().optional(),
6219
6258
  allow_skipping_userinfo: e.boolean().optional(),
@@ -6221,11 +6260,11 @@ var Ta = e.object({
6221
6260
  persist_client_authorization: e.boolean().optional(),
6222
6261
  enable_introspection_endpoint: e.boolean().optional(),
6223
6262
  mtls: e.object({ bound_access_tokens: e.boolean().optional() }).optional()
6224
- }), Da = e.object({
6263
+ }), Aa = e.object({
6225
6264
  id: e.string().optional(),
6226
6265
  name: e.string(),
6227
6266
  identifier: e.string(),
6228
- scopes: e.array(Ta).optional(),
6267
+ scopes: e.array(Oa).optional(),
6229
6268
  signing_alg: e.string().optional(),
6230
6269
  signing_secret: e.string().optional(),
6231
6270
  token_lifetime: e.number().default(86400),
@@ -6233,20 +6272,20 @@ var Ta = e.object({
6233
6272
  skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
6234
6273
  allow_offline_access: e.boolean().optional(),
6235
6274
  verificationKey: e.string().optional(),
6236
- options: Ea.optional(),
6275
+ options: ka.optional(),
6237
6276
  is_system: e.boolean().optional(),
6238
6277
  metadata: e.record(e.string(), e.any()).optional()
6239
6278
  }).extend({
6240
6279
  created_at: e.string().optional(),
6241
6280
  updated_at: e.string().optional()
6242
6281
  });
6243
- e.array(Da);
6244
- var Oa = e.object({
6282
+ e.array(Aa);
6283
+ var ja = e.object({
6245
6284
  role_id: e.string(),
6246
6285
  resource_server_identifier: e.string(),
6247
6286
  permission_name: e.string()
6248
6287
  }).extend({ created_at: e.string() });
6249
- e.array(Oa), e.object({
6288
+ e.array(ja), e.object({
6250
6289
  user_id: e.string().openapi({ description: "The id of the user that granted the consent" }),
6251
6290
  clientID: e.string().openapi({ description: "The id of the client the grant was issued to" }),
6252
6291
  audience: e.string().optional().openapi({ description: "The audience the grant applies to" }),
@@ -6259,7 +6298,7 @@ e.array(Oa), e.object({
6259
6298
  failed_logins: e.array(e.string()).optional(),
6260
6299
  last_password_reset: e.string().optional()
6261
6300
  });
6262
- var ka = e.object({
6301
+ var Ma = e.object({
6263
6302
  user_id: e.string(),
6264
6303
  resource_server_identifier: e.string(),
6265
6304
  permission_name: e.string(),
@@ -6268,8 +6307,8 @@ var ka = e.object({
6268
6307
  tenant_id: e.string(),
6269
6308
  created_at: e.string().optional()
6270
6309
  });
6271
- e.array(ka);
6272
- var Aa = e.object({
6310
+ e.array(Ma);
6311
+ var Na = e.object({
6273
6312
  user_id: e.string(),
6274
6313
  resource_server_identifier: e.string(),
6275
6314
  resource_server_name: e.string(),
@@ -6278,8 +6317,8 @@ var Aa = e.object({
6278
6317
  created_at: e.string().optional(),
6279
6318
  organization_id: e.string().optional()
6280
6319
  });
6281
- e.array(Aa);
6282
- var ja = e.object({
6320
+ e.array(Na);
6321
+ var Pa = e.object({
6283
6322
  user_id: e.string(),
6284
6323
  role_id: e.string(),
6285
6324
  organization_id: e.string().optional()
@@ -6287,8 +6326,8 @@ var ja = e.object({
6287
6326
  tenant_id: e.string(),
6288
6327
  created_at: e.string().optional()
6289
6328
  });
6290
- e.array(ja);
6291
- var Ma = e.object({
6329
+ e.array(Pa);
6330
+ var Fa = e.object({
6292
6331
  id: e.string().optional().openapi({ description: "The unique identifier of the role. If not provided, one will be generated." }),
6293
6332
  name: e.string().min(1).max(50).openapi({ description: "The name of the role. Cannot include '<' or '>'" }),
6294
6333
  description: e.string().max(255).optional().openapi({ description: "The description of the role" }),
@@ -6299,19 +6338,19 @@ var Ma = e.object({
6299
6338
  created_at: e.string().optional(),
6300
6339
  updated_at: e.string().optional()
6301
6340
  });
6302
- e.array(Ma);
6303
- var Na = e.object({
6341
+ e.array(Fa);
6342
+ var Ia = e.object({
6304
6343
  logo_url: e.string().optional().openapi({ description: "URL of the organization's logo" }),
6305
6344
  colors: e.object({
6306
6345
  primary: e.string().optional().openapi({ description: "Primary color in hex format (e.g., #FF0000)" }),
6307
6346
  page_background: e.string().optional().openapi({ description: "Page background color in hex format (e.g., #FFFFFF)" })
6308
6347
  }).optional()
6309
- }).optional(), Pa = e.object({
6348
+ }).optional(), La = e.object({
6310
6349
  connection_id: e.string().openapi({ description: "ID of the connection" }),
6311
6350
  assign_membership_on_login: e.boolean().default(!1).openapi({ description: "Whether to assign membership to the organization on login" }),
6312
6351
  show_as_button: e.boolean().default(!0).openapi({ description: "Whether to show this connection as a button in the login screen" }),
6313
6352
  is_signup_enabled: e.boolean().default(!0).openapi({ description: "Whether signup is enabled for this connection" })
6314
- }), Fa = e.object({ client_credentials: e.object({
6353
+ }), Ra = e.object({ client_credentials: e.object({
6315
6354
  enforce: e.boolean().default(!1).openapi({ description: "Whether to enforce token quota limits" }),
6316
6355
  per_day: e.number().min(0).default(0).openapi({ description: "Maximum tokens per day (0 = unlimited)" }),
6317
6356
  per_hour: e.number().min(0).default(0).openapi({ description: "Maximum tokens per hour (0 = unlimited)" })
@@ -6320,15 +6359,15 @@ e.object({
6320
6359
  id: e.string().optional(),
6321
6360
  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." }),
6322
6361
  display_name: e.string().optional().openapi({ description: "The display name of the organization" }),
6323
- branding: Na,
6362
+ branding: Ia,
6324
6363
  metadata: e.record(e.string(), e.any()).default({}).optional().openapi({ description: "Custom metadata for the organization" }),
6325
- enabled_connections: e.array(Pa).default([]).optional().openapi({ description: "List of enabled connections for the organization" }),
6326
- token_quota: Fa
6327
- }).extend(W.shape).extend({
6364
+ enabled_connections: e.array(La).default([]).optional().openapi({ description: "List of enabled connections for the organization" }),
6365
+ token_quota: Ra
6366
+ }).extend(G.shape).extend({
6328
6367
  id: e.string(),
6329
6368
  name: e.string().min(1).openapi({ description: "The name of the organization" })
6330
6369
  });
6331
- var Ia = e.object({
6370
+ var za = e.object({
6332
6371
  connection_id: e.string().openapi({ description: "ID of the tenant-level connection to enable for the org." }),
6333
6372
  assign_membership_on_login: e.boolean().optional().default(!1),
6334
6373
  show_as_button: e.boolean().optional().default(!0),
@@ -6341,10 +6380,10 @@ var Ia = e.object({
6341
6380
  created_at: e.string().optional(),
6342
6381
  updated_at: e.string().optional()
6343
6382
  });
6344
- e.array(Ia), e.object({
6383
+ e.array(za), e.object({
6345
6384
  user_id: e.string().openapi({ description: "ID of the user" }),
6346
6385
  organization_id: e.string().openapi({ description: "ID of the organization" })
6347
- }).extend(W.shape).extend({ id: e.string() }), e.object({
6386
+ }).extend(G.shape).extend({ id: e.string() }), e.object({
6348
6387
  idle_session_lifetime: e.number().default(72),
6349
6388
  session_lifetime: e.number().default(168),
6350
6389
  session_cookie: e.object({ mode: e.enum(["persistent", "non-persistent"]).optional() }).optional(),
@@ -6480,7 +6519,7 @@ e.array(Ia), e.object({
6480
6519
  "passwordless",
6481
6520
  "enterprise"
6482
6521
  ]);
6483
- var La = e.object({
6522
+ var Ba = e.object({
6484
6523
  cohort: e.string(),
6485
6524
  sessions: e.number(),
6486
6525
  active: e.array(e.number())
@@ -6489,9 +6528,9 @@ e.object({
6489
6528
  interval: e.literal("week"),
6490
6529
  from: e.string(),
6491
6530
  to: e.string(),
6492
- cohorts: e.array(La)
6531
+ cohorts: e.array(Ba)
6493
6532
  });
6494
- var Ra = e.object({
6533
+ var Va = e.object({
6495
6534
  cohort: e.string(),
6496
6535
  tokens: e.number(),
6497
6536
  active: e.array(e.number())
@@ -6500,24 +6539,24 @@ e.object({
6500
6539
  interval: e.literal("week"),
6501
6540
  from: e.string(),
6502
6541
  to: e.string(),
6503
- cohorts: e.array(Ra)
6542
+ cohorts: e.array(Va)
6504
6543
  });
6505
- var za = e.object({
6544
+ var Ha = e.object({
6506
6545
  name: e.string(),
6507
6546
  type: e.string()
6508
- }), Ba = e.object({
6547
+ }), Ua = e.object({
6509
6548
  elapsed: e.number(),
6510
6549
  rows_read: e.number().optional(),
6511
6550
  bytes_read: e.number().optional()
6512
6551
  });
6513
6552
  e.object({
6514
- meta: e.array(za),
6553
+ meta: e.array(Ha),
6515
6554
  data: e.array(e.record(e.string(), e.any())),
6516
6555
  rows: e.number(),
6517
6556
  rows_before_limit_at_least: e.number().optional(),
6518
- statistics: Ba.optional()
6557
+ statistics: Ua.optional()
6519
6558
  });
6520
- var Va = 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(".")), Ha = e.record(e.string(), e.record(e.string(), e.string())).openapi({
6559
+ var Wa = 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(".")), Ga = e.record(e.string(), e.record(e.string(), e.string())).openapi({
6521
6560
  type: "object",
6522
6561
  additionalProperties: {
6523
6562
  type: "object",
@@ -6525,11 +6564,11 @@ var Va = e.enum(/* @__PURE__ */ "login.login-id.login-password.signup.signup-id.
6525
6564
  }
6526
6565
  });
6527
6566
  e.object({
6528
- prompt: Va,
6567
+ prompt: Wa,
6529
6568
  language: e.string(),
6530
- custom_text: Ha
6569
+ custom_text: Ga
6531
6570
  });
6532
- var Ua = e.enum([
6571
+ var Ka = e.enum([
6533
6572
  "phone",
6534
6573
  "totp",
6535
6574
  "email",
@@ -6537,9 +6576,9 @@ var Ua = e.enum([
6537
6576
  "webauthn-roaming",
6538
6577
  "webauthn-platform",
6539
6578
  "passkey"
6540
- ]), Wa = e.object({
6579
+ ]), qa = e.object({
6541
6580
  user_id: e.string(),
6542
- type: Ua,
6581
+ type: Ka,
6543
6582
  phone_number: e.string().optional(),
6544
6583
  totp_secret: e.string().optional(),
6545
6584
  credential_id: e.string().optional(),
@@ -6550,7 +6589,7 @@ var Ua = e.enum([
6550
6589
  friendly_name: e.string().optional(),
6551
6590
  confirmed: e.boolean().default(!1)
6552
6591
  });
6553
- function Ga(t, n) {
6592
+ function Ja(t, n) {
6554
6593
  t.type === "phone" && !t.phone_number && n.addIssue({
6555
6594
  code: e.ZodIssueCode.custom,
6556
6595
  message: "phone_number is required when type is 'phone'",
@@ -6573,51 +6612,51 @@ function Ga(t, n) {
6573
6612
  path: ["public_key"]
6574
6613
  }));
6575
6614
  }
6576
- Wa.superRefine(Ga), Wa.extend({
6615
+ qa.superRefine(Ja), qa.extend({
6577
6616
  id: e.string(),
6578
6617
  created_at: e.string(),
6579
6618
  updated_at: e.string()
6580
- }).superRefine(Ga), e.object({
6619
+ }).superRefine(Ja), e.object({
6581
6620
  id: e.string().optional(),
6582
6621
  created_at: e.string().datetime({ offset: !0 }).optional(),
6583
6622
  updated_at: e.string().datetime({ offset: !0 }).optional()
6584
6623
  });
6585
- function Ka(e) {
6624
+ function Ya(e) {
6586
6625
  let t = atob(e), n = new Uint8Array(t.length);
6587
6626
  for (let e = 0; e < t.length; e++) n[e] = t.charCodeAt(e);
6588
6627
  return n;
6589
6628
  }
6590
6629
  //#endregion
6591
6630
  //#region ../../node_modules/.pnpm/nanoid@5.1.11/node_modules/nanoid/url-alphabet/index.js
6592
- var qa = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", Ja = (e = 21) => {
6631
+ var Xa = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", Za = (e = 21) => {
6593
6632
  let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
6594
- for (; e--;) t += qa[n[e] & 63];
6633
+ for (; e--;) t += Xa[n[e] & 63];
6595
6634
  return t;
6596
6635
  };
6597
6636
  //#endregion
6598
6637
  //#region src/helpers.ts
6599
- async function Ya(e) {
6638
+ async function Qa(e) {
6600
6639
  let t = new DecompressionStream("deflate-raw"), n = new Uint8Array(e), r = new Blob([n]).stream().pipeThrough(t);
6601
6640
  return new Uint8Array(await new Response(r).arrayBuffer());
6602
6641
  }
6603
- async function Xa(e) {
6604
- let t = Ka(e.replace(/ /g, "+"));
6642
+ async function $a(e) {
6643
+ let t = Ya(e.replace(/ /g, "+"));
6605
6644
  try {
6606
- let e = await Ya(t);
6645
+ let e = await Qa(t);
6607
6646
  return new TextDecoder().decode(e);
6608
6647
  } catch (e) {
6609
6648
  return console.warn("Decompression failed, assuming data is not compressed:", e), new TextDecoder().decode(t);
6610
6649
  }
6611
6650
  }
6612
- async function Za(e) {
6613
- let t = await Xa(e), n = new an({
6651
+ async function eo(e) {
6652
+ let t = await $a(e), n = new tn({
6614
6653
  attributeNamePrefix: "@_",
6615
6654
  alwaysCreateTextNode: !0,
6616
6655
  ignoreAttributes: !1
6617
6656
  }).parse(t);
6618
6657
  return r.parse(n);
6619
6658
  }
6620
- function Qa(e) {
6659
+ function to(e) {
6621
6660
  let t = e.certificates.map((e) => ({
6622
6661
  "@_use": "signing",
6623
6662
  KeyInfo: {
@@ -6683,7 +6722,7 @@ function Qa(e) {
6683
6722
  ]
6684
6723
  }
6685
6724
  } };
6686
- return new wn({
6725
+ return new Cn({
6687
6726
  ignoreAttributes: !1,
6688
6727
  suppressEmptyNode: !0,
6689
6728
  preserveOrder: !1,
@@ -6691,8 +6730,8 @@ function Qa(e) {
6691
6730
  attributeNamePrefix: "@_"
6692
6731
  }).build(n);
6693
6732
  }
6694
- async function $a(e, t) {
6695
- 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 || `_${Ja()}`, s = e.assertionId || `_${Ja()}`, c = [{
6733
+ async function no(e, t) {
6734
+ 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 || `_${Za()}`, s = e.assertionId || `_${Za()}`, c = [{
6696
6735
  "samlp:Response": [
6697
6736
  { "saml:Issuer": [{ "#text": e.issuer }] },
6698
6737
  { "samlp:Status": [{
@@ -6864,7 +6903,7 @@ async function $a(e, t) {
6864
6903
  "@_IssueInstant": i,
6865
6904
  "@_Version": "2.0"
6866
6905
  }
6867
- }], l = new wn({
6906
+ }], l = new Cn({
6868
6907
  ignoreAttributes: !1,
6869
6908
  suppressEmptyNode: !0,
6870
6909
  preserveOrder: !0
@@ -6873,7 +6912,7 @@ async function $a(e, t) {
6873
6912
  }
6874
6913
  //#endregion
6875
6914
  //#region src/signers/local.ts
6876
- var eo = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256", to = "http://www.w3.org/2001/04/xmlenc#sha256", no = "http://www.w3.org/2001/10/xml-exc-c14n#", ro = class {
6915
+ var ro = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256", io = "http://www.w3.org/2001/04/xmlenc#sha256", ao = "http://www.w3.org/2001/10/xml-exc-c14n#", oo = class {
6877
6916
  async signSAML(e, t, n) {
6878
6917
  try {
6879
6918
  let r = await import("xml-crypto"), i = r.SignedXml || r.default?.SignedXml;
@@ -6882,11 +6921,11 @@ var eo = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256", to = "http://www.w
6882
6921
  privateKey: t,
6883
6922
  publicCert: n
6884
6923
  });
6885
- a.canonicalizationAlgorithm = no, a.addReference({
6924
+ a.canonicalizationAlgorithm = ao, a.addReference({
6886
6925
  xpath: "(/*[local-name()='Response']/*[local-name()='Assertion'])[1]",
6887
- digestAlgorithm: to,
6888
- transforms: ["http://www.w3.org/2000/09/xmldsig#enveloped-signature", no]
6889
- }), a.signatureAlgorithm = eo;
6926
+ digestAlgorithm: io,
6927
+ transforms: ["http://www.w3.org/2000/09/xmldsig#enveloped-signature", ao]
6928
+ }), a.signatureAlgorithm = ro;
6890
6929
  let o = n.replace(/-----BEGIN CERTIFICATE-----|-----END CERTIFICATE-----/g, "").replace(/\s/g, "");
6891
6930
  return a.keyInfoProvider = { getKeyInfo: () => `<X509Data><X509Certificate>${o}</X509Certificate></X509Data>` }, a.computeSignature(e, { location: {
6892
6931
  reference: "/*[local-name()='Response']/*[local-name()='Assertion']/*[local-name()='Issuer']",
@@ -6896,7 +6935,7 @@ var eo = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256", to = "http://www.w
6896
6935
  throw Error(`Failed to sign SAML locally. Make sure xml-crypto is installed. Error: ${e}`);
6897
6936
  }
6898
6937
  }
6899
- }, io = class {
6938
+ }, so = class {
6900
6939
  signUrl;
6901
6940
  constructor(e) {
6902
6941
  this.signUrl = e;
@@ -6916,4 +6955,4 @@ var eo = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256", to = "http://www.w
6916
6955
  }
6917
6956
  };
6918
6957
  //#endregion
6919
- export { io as HttpSamlSigner, ro as LocalSamlSigner, Qa as createSamlMetadata, $a as createSamlResponse, s as dsSignatureSchema, Xa as inflateDecompress, Ya as inflateRaw, Za as parseSamlRequestQuery, n as samlIssuerSchema, i as samlMetadataResponseSchema, r as samlRequestSchema, c as samlResponseJsonSchema };
6958
+ export { so as HttpSamlSigner, oo as LocalSamlSigner, to as createSamlMetadata, no as createSamlResponse, s as dsSignatureSchema, $a as inflateDecompress, Qa as inflateRaw, eo as parseSamlRequestQuery, n as samlIssuerSchema, i as samlMetadataResponseSchema, r as samlRequestSchema, c as samlResponseJsonSchema };