@authhero/saml 0.5.11 → 0.5.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core.cjs +4 -4
- package/dist/core.mjs +569 -518
- package/dist/saml.cjs +1 -1
- package/dist/saml.mjs +198 -147
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/core.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·̀-ͯ҇‿-⁀",
|
|
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
|
-
},
|
|
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
|
-
],
|
|
1748
|
-
if (!
|
|
1749
|
-
let i =
|
|
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
|
-
},
|
|
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 &&
|
|
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 &&
|
|
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 &&
|
|
1783
|
-
else if (a &&
|
|
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 (
|
|
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 =
|
|
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 (
|
|
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 =
|
|
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 &&
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 && !
|
|
1851
|
-
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" &&
|
|
1854
|
-
else if (e[t] === "A" &&
|
|
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 =
|
|
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 (
|
|
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 (!
|
|
1875
|
-
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 =
|
|
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(), !
|
|
1886
|
-
n.push(i), e[t] === "|" && (t++, 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 =
|
|
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
|
-
},
|
|
1914
|
+
}, O = (e, t) => {
|
|
1915
1915
|
for (; t < e.length && /\s/.test(e[t]);) t++;
|
|
1916
1916
|
return t;
|
|
1917
1917
|
};
|
|
1918
|
-
function
|
|
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
|
|
1923
|
-
if (
|
|
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
|
|
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
|
-
],
|
|
1991
|
-
for (let e of
|
|
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 <=
|
|
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 (
|
|
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 (
|
|
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 =
|
|
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 =
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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${
|
|
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${
|
|
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?${
|
|
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?${
|
|
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${
|
|
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${
|
|
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${
|
|
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${
|
|
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${
|
|
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${
|
|
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${
|
|
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${
|
|
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${
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
3051
|
-
|
|
3052
|
-
HTML:
|
|
3053
|
-
XML:
|
|
3054
|
-
SVG:
|
|
3055
|
-
SQL:
|
|
3056
|
-
"SQL-STRICT":
|
|
3057
|
-
SHELL:
|
|
3058
|
-
REDOS:
|
|
3059
|
-
NOSQL:
|
|
3060
|
-
LOG:
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
3100
|
-
|
|
3101
|
-
let { lists: n, regex: r } =
|
|
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 (
|
|
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
|
|
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
|
|
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
|
|
3127
|
+
var Pt = class {
|
|
3128
3128
|
constructor(e, t) {
|
|
3129
|
-
this.options = e, this.currentNode = null, this.tagsNodeStack = [], this.parseXml =
|
|
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) =>
|
|
3146
|
-
})), this.matcher = new
|
|
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
|
|
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 ?
|
|
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
|
|
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
|
|
3174
|
-
function
|
|
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,
|
|
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 =
|
|
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] =
|
|
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
|
|
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
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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} =
|
|
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 =
|
|
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} =
|
|
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
|
|
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
|
|
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
|
|
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
|
|
3318
|
+
function Ut() {
|
|
3319
3319
|
return this.stopNodeExpressionsSet.size === 0 ? !1 : this.matcher.matchesAny(this.stopNodeExpressionsSet);
|
|
3320
3320
|
}
|
|
3321
|
-
function
|
|
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
|
|
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
|
|
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
|
|
3350
|
-
let i =
|
|
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
|
|
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 =
|
|
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 =
|
|
3379
|
-
else if (a === 33 && e.charCodeAt(n + 2) === 45 && e.charCodeAt(n + 3) === 45) n =
|
|
3380
|
-
else if (a === 33 && e.charCodeAt(n + 2) === 91) n =
|
|
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 =
|
|
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
|
|
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
|
|
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 =
|
|
3399
|
+
return t = Jt(t, r), {
|
|
3400
3400
|
tagName: t,
|
|
3401
3401
|
tagExp: n
|
|
3402
3402
|
};
|
|
3403
3403
|
}
|
|
3404
|
-
function
|
|
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
|
|
3411
|
-
function
|
|
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
|
|
3422
|
-
return
|
|
3421
|
+
function Xt(e, t, n, r) {
|
|
3422
|
+
return Zt(e, t, n, r);
|
|
3423
3423
|
}
|
|
3424
|
-
function
|
|
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 =
|
|
3427
|
+
let s = e[o], c = Qt(s);
|
|
3428
3428
|
if (c !== void 0 && c !== t.textNodeName) {
|
|
3429
|
-
let e =
|
|
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 =
|
|
3436
|
-
if (Object.keys(e).length === 0 && t.alwaysCreateTextNode && (e[t.textNodeName] = ""), s[":@"] ?
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
3481
|
-
return this.options.preserveOrder || r === void 0 ? r :
|
|
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
|
|
3495
|
+
function H(e) {
|
|
3496
3496
|
return String(e).replace(/--/g, "- -").replace(/--/g, "- -").replace(/-$/, "- ");
|
|
3497
3497
|
}
|
|
3498
|
-
function
|
|
3498
|
+
function nn(e) {
|
|
3499
3499
|
return String(e).replace(/\]\]>/g, "]]]]><![CDATA[>");
|
|
3500
3500
|
}
|
|
3501
|
-
function
|
|
3501
|
+
function U(e) {
|
|
3502
3502
|
return String(e).replace(/"/g, """).replace(/'/g, "'");
|
|
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
|
|
3507
|
-
function
|
|
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 (
|
|
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
|
|
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
|
|
3525
|
+
function sn(e, t) {
|
|
3526
3526
|
let n = "";
|
|
3527
|
-
t.format && (n =
|
|
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 =
|
|
3534
|
-
return
|
|
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
|
|
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 =
|
|
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 =
|
|
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 :
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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}${
|
|
3573
|
-
g = p ?
|
|
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
|
|
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] =
|
|
3583
|
+
n[a] = U(e[i]), r = !0;
|
|
3584
3584
|
}
|
|
3585
3585
|
return r ? n : null;
|
|
3586
3586
|
}
|
|
3587
|
-
function
|
|
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 =
|
|
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 =
|
|
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
|
|
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)}="${
|
|
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
|
|
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
|
|
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 :
|
|
3624
|
-
n ? l = e[o] : (l = t.attributeValueProcessor(o, e[o]), 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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
3699
|
-
if (this.options = Object.assign({},
|
|
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 =
|
|
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
|
|
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
|
|
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
|
-
|
|
3728
|
-
if (this.options.preserveOrder) return
|
|
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
|
|
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
|
-
},
|
|
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 :
|
|
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 =
|
|
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 =
|
|
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
|
-
},
|
|
3796
|
-
return n || (t = this.options.attributeValueProcessor(e, "" + t), t = this.replaceEntitiesValue(t)), this.options.suppressBooleanAttributes && t === "true" ? " " + e : " " + e + "=\"" +
|
|
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
|
|
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
|
-
|
|
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] =
|
|
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] =
|
|
3820
|
+
i && (t[i] = U(e[r]), n = !0);
|
|
3821
3821
|
}
|
|
3822
3822
|
return n ? t : null;
|
|
3823
|
-
},
|
|
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
|
-
},
|
|
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,87 +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 + "=\"" +
|
|
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 + "=\"" +
|
|
3859
|
+
i === !0 && this.options.suppressBooleanAttributes ? t += " " + r : t += " " + r + "=\"" + U(i) + "\"";
|
|
3860
3860
|
}
|
|
3861
3861
|
}
|
|
3862
3862
|
return t;
|
|
3863
|
-
},
|
|
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) + `<!--${
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
3877
|
+
}, W.prototype.buildTextValNode = function(e, t, n, r, i) {
|
|
3878
3878
|
if (this.options.cdataPropName !== !1 && t === this.options.cdataPropName) {
|
|
3879
|
-
let t =
|
|
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 =
|
|
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
|
-
},
|
|
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
|
|
3896
|
+
function xn(e) {
|
|
3897
3897
|
return this.options.indentBy.repeat(e);
|
|
3898
3898
|
}
|
|
3899
|
-
function
|
|
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
|
|
3904
|
+
var Cn = W, G = e.object({
|
|
3905
3905
|
created_at: e.string(),
|
|
3906
3906
|
updated_at: e.string()
|
|
3907
|
-
}),
|
|
3907
|
+
}), wn = e.object({
|
|
3908
3908
|
id: e.string(),
|
|
3909
3909
|
version: e.string().optional()
|
|
3910
|
-
}),
|
|
3910
|
+
}), Tn = e.object({
|
|
3911
3911
|
name: e.string(),
|
|
3912
3912
|
version: e.string()
|
|
3913
|
-
}),
|
|
3913
|
+
}), En = e.object({
|
|
3914
3914
|
name: e.string(),
|
|
3915
3915
|
value: e.string().optional()
|
|
3916
|
-
}),
|
|
3916
|
+
}), Dn = e.object({
|
|
3917
3917
|
name: e.string().max(255),
|
|
3918
3918
|
code: e.string().max(1e5),
|
|
3919
|
-
supported_triggers: e.array(
|
|
3919
|
+
supported_triggers: e.array(wn).optional(),
|
|
3920
3920
|
runtime: e.string().max(50).optional(),
|
|
3921
|
-
dependencies: e.array(
|
|
3922
|
-
secrets: e.array(
|
|
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
|
-
|
|
3926
|
+
Dn.partial().extend({
|
|
3927
3927
|
status: e.enum(["draft", "built"]).optional(),
|
|
3928
3928
|
deployed_at: e.string().optional()
|
|
3929
3929
|
});
|
|
3930
3930
|
//#endregion
|
|
3931
3931
|
//#region ../adapter-interfaces/dist/adapter-interfaces.mjs
|
|
3932
|
-
var
|
|
3932
|
+
var On = Dn.extend({
|
|
3933
3933
|
id: e.string(),
|
|
3934
3934
|
tenant_id: e.string(),
|
|
3935
3935
|
status: e.enum(["draft", "built"]).default("built"),
|
|
@@ -3938,25 +3938,25 @@ var kn = On.extend({
|
|
|
3938
3938
|
name: e.string(),
|
|
3939
3939
|
value: e.string().optional()
|
|
3940
3940
|
})).optional()
|
|
3941
|
-
}).extend(
|
|
3942
|
-
|
|
3943
|
-
var
|
|
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([
|
|
3944
3944
|
"unspecified",
|
|
3945
3945
|
"pending",
|
|
3946
3946
|
"final",
|
|
3947
3947
|
"partial",
|
|
3948
3948
|
"canceled",
|
|
3949
3949
|
"suspended"
|
|
3950
|
-
]),
|
|
3950
|
+
]), Mn = e.object({
|
|
3951
3951
|
id: e.string(),
|
|
3952
3952
|
msg: e.string(),
|
|
3953
3953
|
url: e.string().optional()
|
|
3954
|
-
}),
|
|
3954
|
+
}), Nn = e.object({
|
|
3955
3955
|
action_name: e.string(),
|
|
3956
|
-
error:
|
|
3956
|
+
error: Mn.nullable(),
|
|
3957
3957
|
started_at: e.string(),
|
|
3958
3958
|
ended_at: e.string()
|
|
3959
|
-
}),
|
|
3959
|
+
}), Pn = e.object({
|
|
3960
3960
|
level: e.enum([
|
|
3961
3961
|
"log",
|
|
3962
3962
|
"info",
|
|
@@ -3965,17 +3965,17 @@ var jn = e.string(), Mn = e.enum([
|
|
|
3965
3965
|
"debug"
|
|
3966
3966
|
]),
|
|
3967
3967
|
message: e.string()
|
|
3968
|
-
}),
|
|
3968
|
+
}), Fn = e.array(e.object({
|
|
3969
3969
|
action_name: e.string(),
|
|
3970
|
-
lines: e.array(
|
|
3970
|
+
lines: e.array(Pn)
|
|
3971
3971
|
}));
|
|
3972
3972
|
e.object({
|
|
3973
3973
|
id: e.string(),
|
|
3974
3974
|
tenant_id: e.string(),
|
|
3975
|
-
trigger_id:
|
|
3976
|
-
status:
|
|
3977
|
-
results: e.array(
|
|
3978
|
-
logs:
|
|
3975
|
+
trigger_id: An,
|
|
3976
|
+
status: jn,
|
|
3977
|
+
results: e.array(Nn),
|
|
3978
|
+
logs: Fn.optional(),
|
|
3979
3979
|
created_at: e.string(),
|
|
3980
3980
|
updated_at: e.string()
|
|
3981
3981
|
}).omit({
|
|
@@ -3986,21 +3986,21 @@ e.object({
|
|
|
3986
3986
|
action_id: e.string(),
|
|
3987
3987
|
code: e.string().max(1e5),
|
|
3988
3988
|
runtime: e.string().max(50).optional(),
|
|
3989
|
-
dependencies: e.array(
|
|
3990
|
-
secrets: e.array(
|
|
3991
|
-
supported_triggers: e.array(
|
|
3989
|
+
dependencies: e.array(Tn).optional(),
|
|
3990
|
+
secrets: e.array(En).optional(),
|
|
3991
|
+
supported_triggers: e.array(wn).optional(),
|
|
3992
3992
|
deployed: e.boolean().default(!0)
|
|
3993
3993
|
}).extend({
|
|
3994
3994
|
id: e.string(),
|
|
3995
3995
|
tenant_id: e.string(),
|
|
3996
3996
|
number: e.number().int()
|
|
3997
|
-
}).extend(
|
|
3998
|
-
var
|
|
3997
|
+
}).extend(G.shape);
|
|
3998
|
+
var In = e.enum([
|
|
3999
3999
|
"user_action",
|
|
4000
4000
|
"admin_action",
|
|
4001
4001
|
"system",
|
|
4002
4002
|
"api"
|
|
4003
|
-
]),
|
|
4003
|
+
]), Ln = e.object({
|
|
4004
4004
|
type: e.enum([
|
|
4005
4005
|
"user",
|
|
4006
4006
|
"admin",
|
|
@@ -4014,7 +4014,7 @@ var Ln = e.enum([
|
|
|
4014
4014
|
org_name: e.string().optional(),
|
|
4015
4015
|
scopes: e.array(e.string()).optional(),
|
|
4016
4016
|
client_id: e.string().optional()
|
|
4017
|
-
}),
|
|
4017
|
+
}), Rn = e.object({
|
|
4018
4018
|
type: e.string(),
|
|
4019
4019
|
id: e.string(),
|
|
4020
4020
|
before: e.record(e.string(), e.unknown()).optional(),
|
|
@@ -4023,7 +4023,7 @@ var Ln = e.enum([
|
|
|
4023
4023
|
old: e.unknown(),
|
|
4024
4024
|
new: e.unknown()
|
|
4025
4025
|
})).optional()
|
|
4026
|
-
}),
|
|
4026
|
+
}), zn = e.object({
|
|
4027
4027
|
method: e.string(),
|
|
4028
4028
|
path: e.string(),
|
|
4029
4029
|
query: e.record(e.string(), e.string()).optional(),
|
|
@@ -4032,17 +4032,17 @@ var Ln = e.enum([
|
|
|
4032
4032
|
user_agent: e.string().optional(),
|
|
4033
4033
|
correlation_id: e.string().optional(),
|
|
4034
4034
|
redirect_uri: e.string().optional()
|
|
4035
|
-
}),
|
|
4035
|
+
}), Bn = e.object({
|
|
4036
4036
|
status_code: e.number(),
|
|
4037
4037
|
body: e.unknown().optional()
|
|
4038
|
-
}),
|
|
4038
|
+
}), Vn = e.object({
|
|
4039
4039
|
country_code: e.string(),
|
|
4040
4040
|
city_name: e.string(),
|
|
4041
4041
|
latitude: e.string(),
|
|
4042
4042
|
longitude: e.string(),
|
|
4043
4043
|
time_zone: e.string(),
|
|
4044
4044
|
continent_code: e.string()
|
|
4045
|
-
}),
|
|
4045
|
+
}), Hn = e.object({
|
|
4046
4046
|
name: e.string(),
|
|
4047
4047
|
version: e.string(),
|
|
4048
4048
|
env: e.record(e.string(), e.string()).optional()
|
|
@@ -4052,11 +4052,11 @@ e.object({
|
|
|
4052
4052
|
event_type: e.string(),
|
|
4053
4053
|
log_type: e.string(),
|
|
4054
4054
|
description: e.string().optional(),
|
|
4055
|
-
category:
|
|
4056
|
-
actor:
|
|
4057
|
-
target:
|
|
4058
|
-
request:
|
|
4059
|
-
response:
|
|
4055
|
+
category: In,
|
|
4056
|
+
actor: Ln,
|
|
4057
|
+
target: Rn,
|
|
4058
|
+
request: zn,
|
|
4059
|
+
response: Bn.optional(),
|
|
4060
4060
|
connection: e.string().optional(),
|
|
4061
4061
|
connection_id: e.string().optional(),
|
|
4062
4062
|
client_name: e.string().optional(),
|
|
@@ -4064,8 +4064,8 @@ e.object({
|
|
|
4064
4064
|
strategy_type: e.string().optional(),
|
|
4065
4065
|
audience: e.string().optional(),
|
|
4066
4066
|
scope: e.string().optional(),
|
|
4067
|
-
location:
|
|
4068
|
-
auth0_client:
|
|
4067
|
+
location: Vn.optional(),
|
|
4068
|
+
auth0_client: Hn.optional(),
|
|
4069
4069
|
hostname: e.string(),
|
|
4070
4070
|
is_mobile: e.boolean().optional(),
|
|
4071
4071
|
timestamp: e.string()
|
|
@@ -4080,14 +4080,14 @@ e.object({
|
|
|
4080
4080
|
"SEND_REQUEST",
|
|
4081
4081
|
"SEND_EMAIL"
|
|
4082
4082
|
]), e.enum(["VERIFY_EMAIL"]);
|
|
4083
|
-
var
|
|
4083
|
+
var Un = e.object({
|
|
4084
4084
|
require_mx_record: e.boolean().optional(),
|
|
4085
4085
|
block_aliases: e.boolean().optional(),
|
|
4086
4086
|
block_free_emails: e.boolean().optional(),
|
|
4087
4087
|
block_disposable_emails: e.boolean().optional(),
|
|
4088
4088
|
blocklist: e.array(e.string()).optional(),
|
|
4089
4089
|
allowlist: e.array(e.string()).optional()
|
|
4090
|
-
}),
|
|
4090
|
+
}), Wn = e.object({
|
|
4091
4091
|
id: e.string(),
|
|
4092
4092
|
alias: e.string().max(100).optional(),
|
|
4093
4093
|
type: e.literal("AUTH0"),
|
|
@@ -4099,7 +4099,7 @@ var Wn = e.object({
|
|
|
4099
4099
|
user_id: e.string(),
|
|
4100
4100
|
changes: e.record(e.string(), e.any())
|
|
4101
4101
|
})
|
|
4102
|
-
}),
|
|
4102
|
+
}), Gn = e.object({
|
|
4103
4103
|
id: e.string(),
|
|
4104
4104
|
alias: e.string().max(100).optional(),
|
|
4105
4105
|
type: e.literal("EMAIL"),
|
|
@@ -4108,13 +4108,13 @@ var Wn = e.object({
|
|
|
4108
4108
|
mask_output: e.boolean().optional(),
|
|
4109
4109
|
params: e.object({
|
|
4110
4110
|
email: e.string(),
|
|
4111
|
-
rules:
|
|
4111
|
+
rules: Un.optional()
|
|
4112
4112
|
})
|
|
4113
|
-
}),
|
|
4113
|
+
}), Kn = e.enum([
|
|
4114
4114
|
"change-email",
|
|
4115
4115
|
"account",
|
|
4116
4116
|
"custom"
|
|
4117
|
-
]),
|
|
4117
|
+
]), qn = e.object({
|
|
4118
4118
|
id: e.string(),
|
|
4119
4119
|
alias: e.string().max(100).optional(),
|
|
4120
4120
|
type: e.literal("REDIRECT"),
|
|
@@ -4122,18 +4122,18 @@ var Wn = e.object({
|
|
|
4122
4122
|
allow_failure: e.boolean().optional(),
|
|
4123
4123
|
mask_output: e.boolean().optional(),
|
|
4124
4124
|
params: e.object({
|
|
4125
|
-
target:
|
|
4125
|
+
target: Kn.openapi({ description: "The predefined target to redirect to, or 'custom' for a custom URL" }),
|
|
4126
4126
|
custom_url: e.string().optional().openapi({ description: "Custom URL to redirect to when target is 'custom'" })
|
|
4127
4127
|
})
|
|
4128
|
-
}),
|
|
4128
|
+
}), Jn = e.union([
|
|
4129
|
+
Wn,
|
|
4129
4130
|
Gn,
|
|
4130
|
-
|
|
4131
|
-
Jn
|
|
4131
|
+
qn
|
|
4132
4132
|
]);
|
|
4133
4133
|
e.object({
|
|
4134
4134
|
name: e.string().min(1).max(150).openapi({ description: "The name of the flow" }),
|
|
4135
|
-
actions: e.array(
|
|
4136
|
-
}).extend(
|
|
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({
|
|
4137
4137
|
description: "Unique identifier for the flow",
|
|
4138
4138
|
example: "af_12tMpdJ3iek7svMyZkSh5M"
|
|
4139
4139
|
}) }), e.object({
|
|
@@ -4149,7 +4149,7 @@ e.object({
|
|
|
4149
4149
|
total: e.number().optional(),
|
|
4150
4150
|
next: e.string().optional()
|
|
4151
4151
|
});
|
|
4152
|
-
var
|
|
4152
|
+
var Yn = e.object({
|
|
4153
4153
|
email: e.string().optional(),
|
|
4154
4154
|
email_verified: e.boolean().optional(),
|
|
4155
4155
|
name: e.string().optional(),
|
|
@@ -4158,7 +4158,7 @@ var Xn = e.object({
|
|
|
4158
4158
|
phone_number: e.string().optional(),
|
|
4159
4159
|
phone_verified: e.boolean().optional(),
|
|
4160
4160
|
family_name: e.string().optional()
|
|
4161
|
-
}).catchall(e.any()),
|
|
4161
|
+
}).catchall(e.any()), Xn = e.object({
|
|
4162
4162
|
connection: e.string(),
|
|
4163
4163
|
user_id: e.string(),
|
|
4164
4164
|
provider: e.string(),
|
|
@@ -4171,15 +4171,15 @@ var Xn = e.object({
|
|
|
4171
4171
|
access_token: e.string().optional(),
|
|
4172
4172
|
access_token_secret: e.string().optional(),
|
|
4173
4173
|
refresh_token: e.string().optional(),
|
|
4174
|
-
profileData:
|
|
4175
|
-
}),
|
|
4174
|
+
profileData: Yn.optional()
|
|
4175
|
+
}), Zn = e.object({
|
|
4176
4176
|
formatted: e.string().optional(),
|
|
4177
4177
|
street_address: e.string().optional(),
|
|
4178
4178
|
locality: e.string().optional(),
|
|
4179
4179
|
region: e.string().optional(),
|
|
4180
4180
|
postal_code: e.string().optional(),
|
|
4181
4181
|
country: e.string().optional()
|
|
4182
|
-
}).optional(),
|
|
4182
|
+
}).optional(), Qn = e.object({
|
|
4183
4183
|
email: e.string().transform((e) => e.toLowerCase()).optional(),
|
|
4184
4184
|
username: e.string().refine((e) => !e.includes("@"), { message: "Usernames must not contain \"@\". Use the email field for email addresses." }).optional(),
|
|
4185
4185
|
phone_number: e.string().optional(),
|
|
@@ -4202,9 +4202,9 @@ var Xn = e.object({
|
|
|
4202
4202
|
gender: e.string().optional(),
|
|
4203
4203
|
birthdate: e.string().optional(),
|
|
4204
4204
|
zoneinfo: e.string().optional(),
|
|
4205
|
-
address:
|
|
4205
|
+
address: Zn
|
|
4206
4206
|
});
|
|
4207
|
-
|
|
4207
|
+
Qn.extend({
|
|
4208
4208
|
email_verified: e.boolean().default(!1),
|
|
4209
4209
|
verify_email: e.boolean().optional(),
|
|
4210
4210
|
last_ip: e.string().optional(),
|
|
@@ -4219,30 +4219,30 @@ $n.extend({
|
|
|
4219
4219
|
hash: e.string(),
|
|
4220
4220
|
algorithm: e.string()
|
|
4221
4221
|
}).optional()
|
|
4222
|
-
}).omit({ password: !0 }).extend(
|
|
4222
|
+
}).omit({ password: !0 }).extend(G.shape).extend({
|
|
4223
4223
|
user_id: e.string(),
|
|
4224
4224
|
provider: e.string(),
|
|
4225
4225
|
is_social: e.boolean(),
|
|
4226
4226
|
email: e.string().optional(),
|
|
4227
4227
|
login_count: e.number().default(0),
|
|
4228
|
-
identities: e.array(
|
|
4229
|
-
}).omit({ registration_completed_at: !0 }),
|
|
4228
|
+
identities: e.array(Xn).optional()
|
|
4229
|
+
}).omit({ registration_completed_at: !0 }), Qn.extend({
|
|
4230
4230
|
login_count: e.number(),
|
|
4231
4231
|
multifactor: e.array(e.string()).optional(),
|
|
4232
4232
|
last_ip: e.string().optional(),
|
|
4233
4233
|
last_login: e.string().optional(),
|
|
4234
4234
|
user_id: e.string()
|
|
4235
4235
|
}).catchall(e.any());
|
|
4236
|
-
var
|
|
4236
|
+
var $n = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", er = (e = 21) => {
|
|
4237
4237
|
let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
|
|
4238
|
-
for (; e--;) t +=
|
|
4238
|
+
for (; e--;) t += $n[n[e] & 63];
|
|
4239
4239
|
return t;
|
|
4240
|
-
},
|
|
4240
|
+
}, tr = e.object({
|
|
4241
4241
|
client_id: e.string().optional().openapi({ description: "ID of this client. Generated server-side if omitted (Auth0 behavior)." }),
|
|
4242
4242
|
name: e.string().min(1).openapi({ description: "Name of this client (min length: 1 character, does not allow < or >)." }),
|
|
4243
4243
|
description: e.string().max(140).optional().openapi({ description: "Free text description of this client (max length: 140 characters)." }),
|
|
4244
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)." }),
|
|
4245
|
-
client_secret: e.string().default(() =>
|
|
4245
|
+
client_secret: e.string().default(() => er()).optional().openapi({ description: "Client secret (which you must not make public)." }),
|
|
4246
4246
|
app_type: e.enum([
|
|
4247
4247
|
"native",
|
|
4248
4248
|
"spa",
|
|
@@ -4354,13 +4354,14 @@ var er = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", tr
|
|
|
4354
4354
|
"iat_dcr"
|
|
4355
4355
|
]).optional().openapi({ description: "Provenance of this client. `manual` = Management API; `open_dcr` = RFC 7591 without IAT; `iat_dcr` = RFC 7591 with an Initial Access Token." }),
|
|
4356
4356
|
registration_metadata: e.record(e.string(), e.any()).default({}).optional().openapi({ description: "Arbitrary metadata captured at Dynamic Client Registration time that isn't a first-class client field (e.g. integration_type, domain). Also stores `iat_constraints` for clients created via IAT so RFC 7592 PUT can enforce field immutability." }),
|
|
4357
|
+
token_exchange: e.object({ allow_any_profile_of_type: e.array(e.literal("custom_authentication")).optional() }).optional().openapi({ description: "Custom Token Exchange settings. Set `allow_any_profile_of_type` to `[\"custom_authentication\"]` to let this client exchange subject tokens through the tenant's token exchange profiles." }),
|
|
4357
4358
|
user_linking_mode: e.enum(["builtin", "off"]).optional().openapi({ description: "Per-client override for the built-in email-based user-linking path. `builtin` runs the legacy in-process linking at user creation/email update. `off` disables the legacy path; linking only happens if the tenant has enabled the `account-linking` template hook. When unset, the service-level `userLinkingMode` default applies." })
|
|
4358
4359
|
});
|
|
4359
4360
|
e.object({
|
|
4360
4361
|
created_at: e.string(),
|
|
4361
4362
|
updated_at: e.string()
|
|
4362
|
-
}).extend(
|
|
4363
|
-
var
|
|
4363
|
+
}).extend(tr.shape).extend({ client_id: e.string() });
|
|
4364
|
+
var nr = e.object({
|
|
4364
4365
|
client_id: e.string().min(1).openapi({ description: "ID of the client." }),
|
|
4365
4366
|
audience: e.string().min(1).openapi({ description: "The audience (API identifier) of this client grant." }),
|
|
4366
4367
|
scope: e.array(e.string()).optional().openapi({ description: "Scopes allowed for this client grant." }),
|
|
@@ -4373,15 +4374,15 @@ var rr = e.object({
|
|
|
4373
4374
|
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." }),
|
|
4374
4375
|
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." }),
|
|
4375
4376
|
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." })
|
|
4376
|
-
}),
|
|
4377
|
+
}), rr = e.object({ id: e.string().openapi({ description: "ID of the client grant." }) }).extend(nr.shape).extend({
|
|
4377
4378
|
created_at: e.string().optional(),
|
|
4378
4379
|
updated_at: e.string().optional()
|
|
4379
4380
|
});
|
|
4380
|
-
e.array(
|
|
4381
|
-
var
|
|
4381
|
+
e.array(rr);
|
|
4382
|
+
var ir = e.enum(["iat", "rat"]), ar = e.object({
|
|
4382
4383
|
id: e.string(),
|
|
4383
4384
|
token_hash: e.string(),
|
|
4384
|
-
type:
|
|
4385
|
+
type: ir,
|
|
4385
4386
|
client_id: e.string().optional(),
|
|
4386
4387
|
sub: e.string().optional(),
|
|
4387
4388
|
constraints: e.record(e.string(), e.unknown()).optional(),
|
|
@@ -4392,23 +4393,23 @@ e.object({
|
|
|
4392
4393
|
created_at: e.string(),
|
|
4393
4394
|
used_at: e.string().optional(),
|
|
4394
4395
|
revoked_at: e.string().optional()
|
|
4395
|
-
}).extend(
|
|
4396
|
-
var
|
|
4396
|
+
}).extend(ar.shape);
|
|
4397
|
+
var K = e.object({
|
|
4397
4398
|
x: e.number(),
|
|
4398
4399
|
y: e.number()
|
|
4399
|
-
}),
|
|
4400
|
+
}), or = /* @__PURE__ */ function(e) {
|
|
4400
4401
|
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;
|
|
4401
|
-
}({}),
|
|
4402
|
+
}({}), sr = /* @__PURE__ */ function(e) {
|
|
4402
4403
|
return e.BLOCK = "BLOCK", e.FIELD = "FIELD", e;
|
|
4403
|
-
}({}),
|
|
4404
|
+
}({}), q = e.object({
|
|
4404
4405
|
id: e.string(),
|
|
4405
|
-
category: e.nativeEnum(
|
|
4406
|
-
type: e.nativeEnum(
|
|
4407
|
-
}),
|
|
4406
|
+
category: e.nativeEnum(sr),
|
|
4407
|
+
type: e.nativeEnum(or)
|
|
4408
|
+
}), cr = q.extend({
|
|
4408
4409
|
category: e.literal("BLOCK"),
|
|
4409
4410
|
type: e.literal("RICH_TEXT"),
|
|
4410
4411
|
config: e.object({ content: e.string() }).passthrough()
|
|
4411
|
-
}),
|
|
4412
|
+
}), lr = q.extend({
|
|
4412
4413
|
category: e.literal("BLOCK"),
|
|
4413
4414
|
type: e.union([
|
|
4414
4415
|
e.literal("NEXT_BUTTON"),
|
|
@@ -4416,13 +4417,13 @@ var G = e.object({
|
|
|
4416
4417
|
e.literal("SUBMIT_BUTTON")
|
|
4417
4418
|
]),
|
|
4418
4419
|
config: e.object({ text: e.string() }).passthrough()
|
|
4419
|
-
}),
|
|
4420
|
+
}), ur = q.extend({
|
|
4420
4421
|
category: e.literal("FIELD"),
|
|
4421
4422
|
type: e.literal("LEGAL"),
|
|
4422
4423
|
required: e.boolean().optional(),
|
|
4423
4424
|
sensitive: e.boolean().optional(),
|
|
4424
4425
|
config: e.object({ text: e.string() }).passthrough()
|
|
4425
|
-
}),
|
|
4426
|
+
}), dr = q.extend({
|
|
4426
4427
|
category: e.literal("FIELD"),
|
|
4427
4428
|
type: e.union([
|
|
4428
4429
|
e.literal("TEXT"),
|
|
@@ -4442,38 +4443,38 @@ var G = e.object({
|
|
|
4442
4443
|
label: e.string().optional(),
|
|
4443
4444
|
placeholder: e.string().optional()
|
|
4444
4445
|
}).passthrough()
|
|
4445
|
-
}),
|
|
4446
|
+
}), fr = e.object({
|
|
4446
4447
|
id: e.string(),
|
|
4447
4448
|
category: e.string(),
|
|
4448
4449
|
type: e.string()
|
|
4449
|
-
}).passthrough(),
|
|
4450
|
+
}).passthrough(), pr = e.union([
|
|
4451
|
+
cr,
|
|
4450
4452
|
lr,
|
|
4451
4453
|
ur,
|
|
4452
4454
|
dr,
|
|
4453
|
-
fr
|
|
4454
|
-
|
|
4455
|
-
]), hr = e.object({
|
|
4455
|
+
fr
|
|
4456
|
+
]), mr = e.object({
|
|
4456
4457
|
id: e.string(),
|
|
4457
4458
|
type: e.literal("STEP"),
|
|
4458
|
-
coordinates:
|
|
4459
|
+
coordinates: K,
|
|
4459
4460
|
alias: e.string().optional(),
|
|
4460
4461
|
config: e.object({
|
|
4461
|
-
components: e.array(
|
|
4462
|
+
components: e.array(pr),
|
|
4462
4463
|
next_node: e.string()
|
|
4463
4464
|
}).passthrough()
|
|
4464
|
-
}),
|
|
4465
|
+
}), hr = e.object({
|
|
4465
4466
|
id: e.string(),
|
|
4466
4467
|
type: e.literal("FLOW"),
|
|
4467
|
-
coordinates:
|
|
4468
|
+
coordinates: K,
|
|
4468
4469
|
alias: e.string().optional(),
|
|
4469
4470
|
config: e.object({
|
|
4470
4471
|
flow_id: e.string(),
|
|
4471
4472
|
next_node: e.string()
|
|
4472
4473
|
})
|
|
4473
|
-
}),
|
|
4474
|
+
}), gr = e.object({
|
|
4474
4475
|
id: e.string(),
|
|
4475
4476
|
type: e.literal("ACTION"),
|
|
4476
|
-
coordinates:
|
|
4477
|
+
coordinates: K,
|
|
4477
4478
|
alias: e.string().optional(),
|
|
4478
4479
|
config: e.object({
|
|
4479
4480
|
action_type: e.enum(["REDIRECT"]).openapi({ description: "The type of action to perform" }),
|
|
@@ -4485,29 +4486,29 @@ var G = e.object({
|
|
|
4485
4486
|
custom_url: e.string().optional().openapi({ description: "Custom URL when target is 'custom'" }),
|
|
4486
4487
|
next_node: e.string().openapi({ description: "The next node to navigate to after action (for non-redirect actions)" })
|
|
4487
4488
|
}).passthrough()
|
|
4488
|
-
}),
|
|
4489
|
+
}), _r = e.object({
|
|
4489
4490
|
id: e.string(),
|
|
4490
4491
|
type: e.string(),
|
|
4491
|
-
coordinates:
|
|
4492
|
-
}).passthrough(),
|
|
4492
|
+
coordinates: K
|
|
4493
|
+
}).passthrough(), vr = e.union([
|
|
4494
|
+
mr,
|
|
4493
4495
|
hr,
|
|
4494
4496
|
gr,
|
|
4495
|
-
_r
|
|
4496
|
-
|
|
4497
|
-
]), br = e.object({
|
|
4497
|
+
_r
|
|
4498
|
+
]), yr = e.object({
|
|
4498
4499
|
next_node: e.string(),
|
|
4499
|
-
coordinates:
|
|
4500
|
-
}).passthrough(),
|
|
4500
|
+
coordinates: K
|
|
4501
|
+
}).passthrough(), br = e.object({
|
|
4501
4502
|
resume_flow: e.boolean().optional(),
|
|
4502
|
-
coordinates:
|
|
4503
|
+
coordinates: K
|
|
4503
4504
|
}).passthrough();
|
|
4504
4505
|
e.object({
|
|
4505
4506
|
id: e.string(),
|
|
4506
4507
|
name: e.string(),
|
|
4507
4508
|
languages: e.object({ primary: e.string() }).passthrough(),
|
|
4508
|
-
nodes: e.array(
|
|
4509
|
-
start:
|
|
4510
|
-
ending:
|
|
4509
|
+
nodes: e.array(vr),
|
|
4510
|
+
start: yr,
|
|
4511
|
+
ending: br,
|
|
4511
4512
|
created_at: e.string(),
|
|
4512
4513
|
updated_at: e.string(),
|
|
4513
4514
|
links: e.object({
|
|
@@ -4519,24 +4520,24 @@ e.object({
|
|
|
4519
4520
|
created_at: !0,
|
|
4520
4521
|
updated_at: !0
|
|
4521
4522
|
});
|
|
4522
|
-
var
|
|
4523
|
+
var xr = /* @__PURE__ */ function(e) {
|
|
4523
4524
|
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;
|
|
4524
|
-
}({}),
|
|
4525
|
+
}({}), Sr = /* @__PURE__ */ function(e) {
|
|
4525
4526
|
return e.QUERY = "query", e.FRAGMENT = "fragment", e.FORM_POST = "form_post", e.WEB_MESSAGE = "web_message", e.SAML_POST = "saml_post", e;
|
|
4526
|
-
}({}),
|
|
4527
|
+
}({}), Cr = /* @__PURE__ */ function(e) {
|
|
4527
4528
|
return e.S256 = "S256", e.Plain = "plain", e;
|
|
4528
|
-
}({}),
|
|
4529
|
+
}({}), wr = e.union([e.null(), e.object({
|
|
4529
4530
|
essential: e.boolean().optional(),
|
|
4530
4531
|
value: e.unknown().optional(),
|
|
4531
4532
|
values: e.array(e.unknown()).optional()
|
|
4532
|
-
})]).nullable(),
|
|
4533
|
-
userinfo: e.record(e.string(),
|
|
4534
|
-
id_token: e.record(e.string(),
|
|
4535
|
-
}),
|
|
4533
|
+
})]).nullable(), Tr = e.object({
|
|
4534
|
+
userinfo: e.record(e.string(), wr).optional(),
|
|
4535
|
+
id_token: e.record(e.string(), wr).optional()
|
|
4536
|
+
}), Er = e.object({
|
|
4536
4537
|
client_id: e.string(),
|
|
4537
4538
|
act_as: e.string().optional(),
|
|
4538
|
-
response_type: e.nativeEnum(
|
|
4539
|
-
response_mode: e.nativeEnum(
|
|
4539
|
+
response_type: e.nativeEnum(xr).optional(),
|
|
4540
|
+
response_mode: e.nativeEnum(Sr).optional(),
|
|
4540
4541
|
redirect_uri: e.string().optional(),
|
|
4541
4542
|
audience: e.string().optional(),
|
|
4542
4543
|
organization: e.string().optional(),
|
|
@@ -4544,13 +4545,13 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
4544
4545
|
nonce: e.string().optional(),
|
|
4545
4546
|
scope: e.string().optional(),
|
|
4546
4547
|
prompt: e.string().optional(),
|
|
4547
|
-
code_challenge_method: e.nativeEnum(
|
|
4548
|
+
code_challenge_method: e.nativeEnum(Cr).optional(),
|
|
4548
4549
|
code_challenge: e.string().optional(),
|
|
4549
4550
|
username: e.string().optional(),
|
|
4550
4551
|
ui_locales: e.string().optional(),
|
|
4551
4552
|
max_age: e.number().optional(),
|
|
4552
4553
|
acr_values: e.string().optional(),
|
|
4553
|
-
claims:
|
|
4554
|
+
claims: Tr.optional(),
|
|
4554
4555
|
vendor_id: e.string().optional()
|
|
4555
4556
|
});
|
|
4556
4557
|
e.object({
|
|
@@ -4573,7 +4574,7 @@ e.object({
|
|
|
4573
4574
|
"auto"
|
|
4574
4575
|
]).optional()
|
|
4575
4576
|
});
|
|
4576
|
-
var
|
|
4577
|
+
var Dr = e.enum([
|
|
4577
4578
|
"password_reset",
|
|
4578
4579
|
"email_verification",
|
|
4579
4580
|
"otp",
|
|
@@ -4581,13 +4582,14 @@ var Or = e.enum([
|
|
|
4581
4582
|
"authorization_code",
|
|
4582
4583
|
"oauth2_state",
|
|
4583
4584
|
"ticket",
|
|
4584
|
-
"client_assertion_jti"
|
|
4585
|
+
"client_assertion_jti",
|
|
4586
|
+
"subject_token_jti"
|
|
4585
4587
|
]);
|
|
4586
4588
|
e.object({
|
|
4587
4589
|
code_id: e.string().openapi({ description: "The code that will be used in for instance an email verification flow" }),
|
|
4588
4590
|
login_id: e.string().optional().openapi({ description: "The id of the login session that the code is connected to" }),
|
|
4589
4591
|
connection_id: e.string().optional().openapi({ description: "The connection that the code is connected to" }),
|
|
4590
|
-
code_type:
|
|
4592
|
+
code_type: Dr,
|
|
4591
4593
|
code_verifier: e.string().optional().openapi({ description: "The code verifier used in PKCE in outbound flows" }),
|
|
4592
4594
|
code_challenge: e.string().optional().openapi({ description: "The code challenge used in PKCE in outbound flows" }),
|
|
4593
4595
|
code_challenge_method: e.enum(["plain", "S256"]).optional().openapi({ description: "The code challenge method used in PKCE in outbound flows" }),
|
|
@@ -4599,7 +4601,7 @@ e.object({
|
|
|
4599
4601
|
used_at: e.string().optional(),
|
|
4600
4602
|
user_id: e.string().optional()
|
|
4601
4603
|
}).extend({ created_at: e.string() });
|
|
4602
|
-
var
|
|
4604
|
+
var Or = e.object({
|
|
4603
4605
|
kid: e.string().optional(),
|
|
4604
4606
|
team_id: e.string().optional(),
|
|
4605
4607
|
realms: e.string().optional(),
|
|
@@ -4719,26 +4721,26 @@ var kr = e.object({
|
|
|
4719
4721
|
"never_on_login"
|
|
4720
4722
|
]).optional()
|
|
4721
4723
|
});
|
|
4722
|
-
function
|
|
4724
|
+
function kr(e) {
|
|
4723
4725
|
if (e !== null) {
|
|
4724
|
-
if (Array.isArray(e)) return e.filter((e) => e !== null).map(
|
|
4726
|
+
if (Array.isArray(e)) return e.filter((e) => e !== null).map(kr);
|
|
4725
4727
|
if (e && typeof e == "object") {
|
|
4726
4728
|
let t = {};
|
|
4727
|
-
for (let [n, r] of Object.entries(e)) r !== null && (t[n] =
|
|
4729
|
+
for (let [n, r] of Object.entries(e)) r !== null && (t[n] = kr(r));
|
|
4728
4730
|
return t;
|
|
4729
4731
|
}
|
|
4730
4732
|
return e;
|
|
4731
4733
|
}
|
|
4732
4734
|
}
|
|
4733
|
-
var
|
|
4735
|
+
var Ar = e.object({
|
|
4734
4736
|
id: e.string().optional(),
|
|
4735
4737
|
name: e.string(),
|
|
4736
4738
|
display_name: e.string().optional(),
|
|
4737
4739
|
strategy: e.string(),
|
|
4738
|
-
options: e.preprocess((e) => e === null ? {} :
|
|
4740
|
+
options: e.preprocess((e) => e === null ? {} : kr(e), Or).default({}),
|
|
4739
4741
|
enabled_clients: e.array(e.string()).default([]).optional(),
|
|
4740
|
-
response_type: e.nativeEnum(
|
|
4741
|
-
response_mode: e.nativeEnum(
|
|
4742
|
+
response_type: e.nativeEnum(xr).optional(),
|
|
4743
|
+
response_mode: e.nativeEnum(Sr).optional(),
|
|
4742
4744
|
is_domain_connection: e.boolean().optional(),
|
|
4743
4745
|
show_as_button: e.boolean().optional(),
|
|
4744
4746
|
metadata: e.record(e.string(), e.any()).optional(),
|
|
@@ -4748,8 +4750,8 @@ e.object({
|
|
|
4748
4750
|
id: e.string(),
|
|
4749
4751
|
created_at: e.string().transform((e) => e === null ? "" : e),
|
|
4750
4752
|
updated_at: e.string().transform((e) => e === null ? "" : e)
|
|
4751
|
-
}).extend(
|
|
4752
|
-
var
|
|
4753
|
+
}).extend(Ar.shape);
|
|
4754
|
+
var jr = e.object({
|
|
4753
4755
|
domain: e.string(),
|
|
4754
4756
|
custom_domain_id: e.string().optional(),
|
|
4755
4757
|
type: e.enum(["auth0_managed_certs", "self_managed_certs"]),
|
|
@@ -4763,7 +4765,7 @@ var Mr = e.object({
|
|
|
4763
4765
|
"null"
|
|
4764
4766
|
]).optional(),
|
|
4765
4767
|
domain_metadata: e.record(e.string(), e.string().max(255)).optional()
|
|
4766
|
-
}),
|
|
4768
|
+
}), Mr = e.discriminatedUnion("name", [e.object({
|
|
4767
4769
|
name: e.literal("txt"),
|
|
4768
4770
|
record: e.string(),
|
|
4769
4771
|
domain: e.string()
|
|
@@ -4771,7 +4773,7 @@ var Mr = e.object({
|
|
|
4771
4773
|
name: e.literal("http"),
|
|
4772
4774
|
http_body: e.string(),
|
|
4773
4775
|
http_url: e.string()
|
|
4774
|
-
})]),
|
|
4776
|
+
})]), Nr = jr.extend({
|
|
4775
4777
|
custom_domain_id: e.string(),
|
|
4776
4778
|
primary: e.boolean(),
|
|
4777
4779
|
status: e.enum([
|
|
@@ -4781,28 +4783,28 @@ var Mr = e.object({
|
|
|
4781
4783
|
"ready"
|
|
4782
4784
|
]),
|
|
4783
4785
|
origin_domain_name: e.string().optional(),
|
|
4784
|
-
verification: e.object({ methods: e.array(
|
|
4786
|
+
verification: e.object({ methods: e.array(Mr) }).optional(),
|
|
4785
4787
|
tls_policy: e.string().optional()
|
|
4786
4788
|
});
|
|
4787
|
-
|
|
4789
|
+
jr.pick({
|
|
4788
4790
|
tls_policy: !0,
|
|
4789
4791
|
custom_client_ip_header: !0,
|
|
4790
4792
|
domain_metadata: !0
|
|
4791
|
-
}).strict(),
|
|
4793
|
+
}).strict(), Nr.extend({ tenant_id: e.string() }), e.object({
|
|
4792
4794
|
certificate: e.string().regex(/^-----BEGIN CERTIFICATE-----[\s\S]+-----END CERTIFICATE-----\s*$/, "must be PEM-encoded; include the full certificate chain in leaf-first order"),
|
|
4793
4795
|
private_key: e.string().regex(/-----BEGIN (RSA |EC |ENCRYPTED )?PRIVATE KEY-----[\s\S]+-----END \1PRIVATE KEY-----\s*$/, "must be a PEM-encoded private key")
|
|
4794
4796
|
});
|
|
4795
|
-
var
|
|
4797
|
+
var Pr = e.object({
|
|
4796
4798
|
id: e.string(),
|
|
4797
4799
|
order: e.number().optional(),
|
|
4798
4800
|
visible: e.boolean().optional().default(!0)
|
|
4799
|
-
}),
|
|
4801
|
+
}), J = Pr.extend({ category: e.literal("BLOCK").optional() }), Fr = J.extend({
|
|
4800
4802
|
type: e.literal("DIVIDER"),
|
|
4801
4803
|
config: e.object({ text: e.string().optional() }).optional()
|
|
4802
|
-
}),
|
|
4804
|
+
}), Ir = J.extend({
|
|
4803
4805
|
type: e.literal("HTML"),
|
|
4804
4806
|
config: e.object({ content: e.string().optional() }).optional()
|
|
4805
|
-
}),
|
|
4807
|
+
}), Lr = J.extend({
|
|
4806
4808
|
type: e.literal("IMAGE"),
|
|
4807
4809
|
config: e.object({
|
|
4808
4810
|
src: e.string().optional(),
|
|
@@ -4810,43 +4812,47 @@ var Fr = e.object({
|
|
|
4810
4812
|
width: e.number().optional(),
|
|
4811
4813
|
height: e.number().optional()
|
|
4812
4814
|
}).optional()
|
|
4813
|
-
}),
|
|
4815
|
+
}), Rr = J.extend({
|
|
4814
4816
|
type: e.literal("JUMP_BUTTON"),
|
|
4815
4817
|
config: e.object({
|
|
4816
4818
|
text: e.string().optional(),
|
|
4817
4819
|
target_step: e.string().optional()
|
|
4818
4820
|
})
|
|
4819
|
-
}),
|
|
4821
|
+
}), zr = J.extend({
|
|
4820
4822
|
type: e.literal("RESEND_BUTTON"),
|
|
4821
4823
|
config: e.object({
|
|
4822
4824
|
text: e.string().optional(),
|
|
4823
4825
|
resend_action: e.string().optional()
|
|
4824
4826
|
})
|
|
4825
|
-
}),
|
|
4827
|
+
}), Br = J.extend({
|
|
4826
4828
|
type: e.literal("NEXT_BUTTON"),
|
|
4827
|
-
config: e.object({
|
|
4828
|
-
|
|
4829
|
+
config: e.object({
|
|
4830
|
+
text: e.string().optional(),
|
|
4831
|
+
variant: e.enum(["primary", "secondary"]).optional(),
|
|
4832
|
+
skip_validation: e.boolean().optional()
|
|
4833
|
+
})
|
|
4834
|
+
}), Vr = J.extend({
|
|
4829
4835
|
type: e.literal("PREVIOUS_BUTTON"),
|
|
4830
4836
|
config: e.object({ text: e.string().optional() })
|
|
4831
|
-
}),
|
|
4837
|
+
}), Hr = J.extend({
|
|
4832
4838
|
type: e.literal("RICH_TEXT"),
|
|
4833
4839
|
config: e.object({ content: e.string().optional() }).optional()
|
|
4834
|
-
}),
|
|
4840
|
+
}), Ur = Pr.extend({
|
|
4835
4841
|
category: e.literal("WIDGET").optional(),
|
|
4836
4842
|
label: e.string().min(1).optional(),
|
|
4837
4843
|
hint: e.string().min(1).max(500).optional(),
|
|
4838
4844
|
required: e.boolean().optional(),
|
|
4839
4845
|
sensitive: e.boolean().optional()
|
|
4840
|
-
}), Wr =
|
|
4846
|
+
}), Wr = Ur.extend({
|
|
4841
4847
|
type: e.literal("AUTH0_VERIFIABLE_CREDENTIALS"),
|
|
4842
4848
|
config: e.object({ credential_type: e.string().optional() })
|
|
4843
|
-
}), Gr =
|
|
4849
|
+
}), Gr = Ur.extend({
|
|
4844
4850
|
type: e.literal("GMAPS_ADDRESS"),
|
|
4845
4851
|
config: e.object({ api_key: e.string().optional() })
|
|
4846
|
-
}), Kr =
|
|
4852
|
+
}), Kr = Ur.extend({
|
|
4847
4853
|
type: e.literal("RECAPTCHA"),
|
|
4848
4854
|
config: e.object({ site_key: e.string().optional() })
|
|
4849
|
-
}), Y =
|
|
4855
|
+
}), Y = Pr.extend({
|
|
4850
4856
|
category: e.literal("FIELD").optional(),
|
|
4851
4857
|
label: e.string().min(1).optional(),
|
|
4852
4858
|
hint: e.string().min(1).max(500).optional(),
|
|
@@ -5022,14 +5028,14 @@ var Fr = e.object({
|
|
|
5022
5028
|
default_value: e.string().optional()
|
|
5023
5029
|
}).optional()
|
|
5024
5030
|
}), di = e.discriminatedUnion("type", [
|
|
5031
|
+
Fr,
|
|
5025
5032
|
Ir,
|
|
5026
5033
|
Lr,
|
|
5027
5034
|
Rr,
|
|
5028
5035
|
zr,
|
|
5029
5036
|
Br,
|
|
5030
5037
|
Vr,
|
|
5031
|
-
Hr
|
|
5032
|
-
Ur
|
|
5038
|
+
Hr
|
|
5033
5039
|
]), fi = e.discriminatedUnion("type", [
|
|
5034
5040
|
Wr,
|
|
5035
5041
|
Gr,
|
|
@@ -5157,7 +5163,7 @@ var X = e.object({
|
|
|
5157
5163
|
sdk_src: e.string().optional()
|
|
5158
5164
|
}).optional()
|
|
5159
5165
|
}).openapi({ description: "Schema for flow-based forms (matches Auth0 Forms structure)" });
|
|
5160
|
-
|
|
5166
|
+
G.extend(yi.shape).extend({ id: e.string() });
|
|
5161
5167
|
var bi = e.object({
|
|
5162
5168
|
id: e.number().optional(),
|
|
5163
5169
|
text: e.string(),
|
|
@@ -5246,31 +5252,31 @@ e.union([
|
|
|
5246
5252
|
var Pi = e.object({
|
|
5247
5253
|
...Z,
|
|
5248
5254
|
trigger_id: Si
|
|
5249
|
-
}).extend(
|
|
5255
|
+
}).extend(G.shape).extend({
|
|
5250
5256
|
hook_id: e.string(),
|
|
5251
5257
|
url: e.string()
|
|
5252
5258
|
}), Fi = e.object({
|
|
5253
5259
|
...Z,
|
|
5254
5260
|
trigger_id: Ci
|
|
5255
|
-
}).extend(
|
|
5261
|
+
}).extend(G.shape).extend({
|
|
5256
5262
|
hook_id: e.string(),
|
|
5257
5263
|
form_id: e.string()
|
|
5258
5264
|
}), Ii = e.object({
|
|
5259
5265
|
...Z,
|
|
5260
5266
|
trigger_id: wi
|
|
5261
|
-
}).extend(
|
|
5267
|
+
}).extend(G.shape).extend({
|
|
5262
5268
|
hook_id: e.string(),
|
|
5263
5269
|
template_id: Oi
|
|
5264
5270
|
}), Li = e.object({
|
|
5265
5271
|
...Z,
|
|
5266
5272
|
trigger_id: Ti
|
|
5267
|
-
}).extend(
|
|
5273
|
+
}).extend(G.shape).extend({
|
|
5268
5274
|
hook_id: e.string(),
|
|
5269
5275
|
code_id: e.string()
|
|
5270
5276
|
}), Ri = e.object({
|
|
5271
5277
|
...Z,
|
|
5272
5278
|
trigger_id: Ei
|
|
5273
|
-
}).extend(
|
|
5279
|
+
}).extend(G.shape).extend({
|
|
5274
5280
|
hook_id: e.string(),
|
|
5275
5281
|
page_id: Di,
|
|
5276
5282
|
permission_required: e.string().optional()
|
|
@@ -5287,7 +5293,7 @@ e.union([
|
|
|
5287
5293
|
}).extend({
|
|
5288
5294
|
id: e.string(),
|
|
5289
5295
|
tenant_id: e.string()
|
|
5290
|
-
}).extend(
|
|
5296
|
+
}).extend(G.shape);
|
|
5291
5297
|
var zi = e.object({ name: e.string().optional() }), Bi = e.object({ email: e.string().optional() }), Vi = e.object({
|
|
5292
5298
|
id: e.string().optional(),
|
|
5293
5299
|
organization_id: e.string().max(50),
|
|
@@ -5320,7 +5326,7 @@ var Hi = e.object({
|
|
|
5320
5326
|
"HS256",
|
|
5321
5327
|
"HS384",
|
|
5322
5328
|
"HS512"
|
|
5323
|
-
]),
|
|
5329
|
+
]).optional(),
|
|
5324
5330
|
kid: e.string().optional(),
|
|
5325
5331
|
kty: e.enum([
|
|
5326
5332
|
"RSA",
|
|
@@ -5350,8 +5356,8 @@ var Hi = e.object({
|
|
|
5350
5356
|
path: [r],
|
|
5351
5357
|
message: `EC JWK is missing required member '${r}'`
|
|
5352
5358
|
});
|
|
5353
|
-
});
|
|
5354
|
-
e.object({
|
|
5359
|
+
}), Ui = e.object({ keys: e.array(Hi) });
|
|
5360
|
+
e.object({
|
|
5355
5361
|
issuer: e.string(),
|
|
5356
5362
|
authorization_endpoint: e.string(),
|
|
5357
5363
|
token_endpoint: e.string(),
|
|
@@ -5378,28 +5384,28 @@ e.object({ keys: e.array(Hi) }), e.object({
|
|
|
5378
5384
|
backchannel_logout_supported: e.boolean().optional(),
|
|
5379
5385
|
backchannel_logout_session_supported: e.boolean().optional()
|
|
5380
5386
|
});
|
|
5381
|
-
var
|
|
5387
|
+
var Wi = /* @__PURE__ */ function(e) {
|
|
5382
5388
|
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;
|
|
5383
|
-
}({}),
|
|
5389
|
+
}({}), Gi = e.nativeEnum(Wi), Ki = e.object({
|
|
5384
5390
|
strategy: e.string(),
|
|
5385
5391
|
strategy_type: e.string()
|
|
5386
5392
|
});
|
|
5387
5393
|
e.object({
|
|
5388
5394
|
csrf_token: e.string(),
|
|
5389
5395
|
auth0Client: e.string().optional(),
|
|
5390
|
-
authParams:
|
|
5396
|
+
authParams: Er,
|
|
5391
5397
|
expires_at: e.string(),
|
|
5392
5398
|
deleted_at: e.string().optional(),
|
|
5393
5399
|
ip: e.string().optional(),
|
|
5394
5400
|
useragent: e.string().optional(),
|
|
5395
5401
|
session_id: e.string().optional(),
|
|
5396
5402
|
authorization_url: e.string().optional(),
|
|
5397
|
-
state:
|
|
5403
|
+
state: Gi.optional().default("pending"),
|
|
5398
5404
|
state_data: e.string().optional(),
|
|
5399
5405
|
failure_reason: e.string().optional(),
|
|
5400
5406
|
user_id: e.string().optional(),
|
|
5401
5407
|
auth_connection: e.string().optional(),
|
|
5402
|
-
auth_strategy:
|
|
5408
|
+
auth_strategy: Ki.optional(),
|
|
5403
5409
|
authenticated_at: e.string().optional()
|
|
5404
5410
|
}).openapi({ description: "This represents a login sesion" }).extend({
|
|
5405
5411
|
id: e.string().openapi({ description: "This is is used as the state in the universal login" }),
|
|
@@ -5566,17 +5572,17 @@ var Q = {
|
|
|
5566
5572
|
WARNING_DURING_LOGIN: "w",
|
|
5567
5573
|
WARNING_SENDING_NOTIFICATION: "wn",
|
|
5568
5574
|
WARNING_USER_MANAGEMENT: "wum"
|
|
5569
|
-
},
|
|
5575
|
+
}, qi = e.string().refine((e) => Object.values(Q).includes(e), { message: "Invalid log type" });
|
|
5570
5576
|
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, (() => {
|
|
5571
5577
|
let e = {};
|
|
5572
5578
|
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";
|
|
5573
5579
|
return e;
|
|
5574
5580
|
})();
|
|
5575
|
-
var
|
|
5581
|
+
var Ji = e.object({
|
|
5576
5582
|
name: e.string(),
|
|
5577
5583
|
version: e.string(),
|
|
5578
5584
|
env: e.object({ node: e.string().optional() }).optional()
|
|
5579
|
-
}),
|
|
5585
|
+
}), Yi = e.object({
|
|
5580
5586
|
country_code: e.string().length(2),
|
|
5581
5587
|
city_name: e.string(),
|
|
5582
5588
|
latitude: e.string(),
|
|
@@ -5585,7 +5591,7 @@ var qi = e.object({
|
|
|
5585
5591
|
continent_code: e.string()
|
|
5586
5592
|
});
|
|
5587
5593
|
e.object({
|
|
5588
|
-
type:
|
|
5594
|
+
type: qi,
|
|
5589
5595
|
date: e.string(),
|
|
5590
5596
|
description: e.string().optional(),
|
|
5591
5597
|
ip: e.string().optional(),
|
|
@@ -5603,63 +5609,63 @@ e.object({
|
|
|
5603
5609
|
strategy: e.string().optional(),
|
|
5604
5610
|
strategy_type: e.string().optional(),
|
|
5605
5611
|
hostname: e.string().optional(),
|
|
5606
|
-
auth0_client:
|
|
5612
|
+
auth0_client: Ji.optional(),
|
|
5607
5613
|
log_id: e.string().optional(),
|
|
5608
|
-
location_info:
|
|
5614
|
+
location_info: Yi.optional()
|
|
5609
5615
|
}).extend({ log_id: e.string() });
|
|
5610
|
-
var
|
|
5616
|
+
var Xi = e.enum([
|
|
5611
5617
|
"http",
|
|
5612
5618
|
"eventbridge",
|
|
5613
5619
|
"eventgrid",
|
|
5614
5620
|
"splunk",
|
|
5615
5621
|
"datadog",
|
|
5616
5622
|
"sumo"
|
|
5617
|
-
]),
|
|
5623
|
+
]), Zi = e.enum([
|
|
5618
5624
|
"active",
|
|
5619
5625
|
"paused",
|
|
5620
5626
|
"suspended"
|
|
5621
|
-
]),
|
|
5627
|
+
]), Qi = e.object({
|
|
5622
5628
|
type: e.string(),
|
|
5623
5629
|
name: e.string()
|
|
5624
5630
|
});
|
|
5625
5631
|
e.object({
|
|
5626
5632
|
name: e.string(),
|
|
5627
|
-
type:
|
|
5628
|
-
status:
|
|
5633
|
+
type: Xi,
|
|
5634
|
+
status: Zi.optional(),
|
|
5629
5635
|
sink: e.record(e.string(), e.unknown()),
|
|
5630
|
-
filters: e.array(
|
|
5636
|
+
filters: e.array(Qi).optional(),
|
|
5631
5637
|
isPriority: e.boolean().optional()
|
|
5632
5638
|
}).extend({
|
|
5633
5639
|
id: e.string(),
|
|
5634
|
-
status:
|
|
5640
|
+
status: Zi,
|
|
5635
5641
|
created_at: e.string().optional(),
|
|
5636
5642
|
updated_at: e.string().optional()
|
|
5637
5643
|
});
|
|
5638
|
-
var
|
|
5644
|
+
var $i = e.enum([
|
|
5639
5645
|
"auth0",
|
|
5640
5646
|
"cognito",
|
|
5641
5647
|
"okta",
|
|
5642
5648
|
"oidc"
|
|
5643
|
-
]),
|
|
5649
|
+
]), ea = e.object({
|
|
5644
5650
|
domain: e.string(),
|
|
5645
5651
|
client_id: e.string(),
|
|
5646
5652
|
client_secret: e.string(),
|
|
5647
5653
|
audience: e.string().optional(),
|
|
5648
5654
|
scope: e.string().optional()
|
|
5649
|
-
}),
|
|
5655
|
+
}), ta = e.object({
|
|
5650
5656
|
id: e.string().optional(),
|
|
5651
5657
|
name: e.string(),
|
|
5652
|
-
provider:
|
|
5658
|
+
provider: $i,
|
|
5653
5659
|
connection: e.string(),
|
|
5654
5660
|
enabled: e.boolean().default(!0),
|
|
5655
|
-
credentials:
|
|
5661
|
+
credentials: ea
|
|
5656
5662
|
});
|
|
5657
5663
|
e.object({
|
|
5658
5664
|
id: e.string(),
|
|
5659
5665
|
created_at: e.string(),
|
|
5660
5666
|
updated_at: e.string()
|
|
5661
|
-
}).extend(
|
|
5662
|
-
var
|
|
5667
|
+
}).extend(ta.shape);
|
|
5668
|
+
var na = e.object({
|
|
5663
5669
|
enabled: e.boolean().optional(),
|
|
5664
5670
|
shields: e.array(e.string()).optional(),
|
|
5665
5671
|
admin_notification_frequency: e.array(e.string()).optional(),
|
|
@@ -5668,13 +5674,13 @@ var ta = e.object({
|
|
|
5668
5674
|
"pre-user-registration": e.object({ shields: e.array(e.string()).optional() }).optional(),
|
|
5669
5675
|
"pre-change-password": e.object({ shields: e.array(e.string()).optional() }).optional()
|
|
5670
5676
|
}).optional()
|
|
5671
|
-
}),
|
|
5677
|
+
}), ra = e.object({
|
|
5672
5678
|
enabled: e.boolean().optional(),
|
|
5673
5679
|
shields: e.array(e.string()).optional(),
|
|
5674
5680
|
allowlist: e.array(e.string()).optional(),
|
|
5675
5681
|
mode: e.string().optional(),
|
|
5676
5682
|
max_attempts: e.number().optional()
|
|
5677
|
-
}),
|
|
5683
|
+
}), ia = e.object({
|
|
5678
5684
|
enabled: e.boolean().optional(),
|
|
5679
5685
|
shields: e.array(e.string()).optional(),
|
|
5680
5686
|
allowlist: e.array(e.string()).optional(),
|
|
@@ -5688,10 +5694,10 @@ var ta = e.object({
|
|
|
5688
5694
|
rate: e.number().optional()
|
|
5689
5695
|
}).optional()
|
|
5690
5696
|
}).optional()
|
|
5691
|
-
}),
|
|
5692
|
-
breached_password_detection:
|
|
5693
|
-
brute_force_protection:
|
|
5694
|
-
suspicious_ip_throttling:
|
|
5697
|
+
}), aa = e.object({
|
|
5698
|
+
breached_password_detection: na.optional(),
|
|
5699
|
+
brute_force_protection: ra.optional(),
|
|
5700
|
+
suspicious_ip_throttling: ia.optional()
|
|
5695
5701
|
});
|
|
5696
5702
|
e.object({
|
|
5697
5703
|
id: e.string().optional(),
|
|
@@ -5704,14 +5710,14 @@ e.object({
|
|
|
5704
5710
|
created_at: e.string(),
|
|
5705
5711
|
updated_at: e.string()
|
|
5706
5712
|
});
|
|
5707
|
-
var
|
|
5713
|
+
var oa = e.object({
|
|
5708
5714
|
initial_user_agent: e.string().describe("First user agent of the device from which this user logged in"),
|
|
5709
5715
|
initial_ip: e.string().describe("First IP address associated with this session"),
|
|
5710
5716
|
initial_asn: e.string().describe("First autonomous system number associated with this session"),
|
|
5711
5717
|
last_user_agent: e.string().describe("Last user agent of the device from which this user logged in"),
|
|
5712
5718
|
last_ip: e.string().describe("Last IP address from which this user logged in"),
|
|
5713
5719
|
last_asn: e.string().describe("Last autonomous system number from which this user logged in")
|
|
5714
|
-
}),
|
|
5720
|
+
}), sa = e.object({
|
|
5715
5721
|
id: e.string(),
|
|
5716
5722
|
revoked_at: e.string().optional(),
|
|
5717
5723
|
used_at: e.string().optional(),
|
|
@@ -5719,7 +5725,7 @@ var aa = e.object({
|
|
|
5719
5725
|
expires_at: e.string().optional(),
|
|
5720
5726
|
login_session_id: e.string(),
|
|
5721
5727
|
idle_expires_at: e.string().optional(),
|
|
5722
|
-
device:
|
|
5728
|
+
device: oa.describe("Metadata related to the device used in the session"),
|
|
5723
5729
|
clients: e.array(e.string()).describe("List of client details for the session")
|
|
5724
5730
|
});
|
|
5725
5731
|
e.object({
|
|
@@ -5727,7 +5733,7 @@ e.object({
|
|
|
5727
5733
|
updated_at: e.string(),
|
|
5728
5734
|
authenticated_at: e.string(),
|
|
5729
5735
|
last_interaction_at: e.string()
|
|
5730
|
-
}).extend(
|
|
5736
|
+
}).extend(sa.shape), e.object({
|
|
5731
5737
|
kid: e.string().openapi({ description: "The key id of the signing key" }),
|
|
5732
5738
|
tenant_id: e.string().optional().openapi({ description: "The tenant the key belongs to. Omitted means the key is shared / control-plane scoped." }),
|
|
5733
5739
|
cert: e.string().openapi({ description: "The public certificate of the signing key" }),
|
|
@@ -5744,7 +5750,7 @@ e.object({
|
|
|
5744
5750
|
connection: e.string().optional().openapi({ description: "The connection identifier associated with the key" }),
|
|
5745
5751
|
type: e.enum(["jwt_signing", "saml_encryption"]).openapi({ description: "The type of the signing key" })
|
|
5746
5752
|
});
|
|
5747
|
-
var
|
|
5753
|
+
var ca = e.object({
|
|
5748
5754
|
id: e.string().optional(),
|
|
5749
5755
|
audience: e.string().optional(),
|
|
5750
5756
|
friendly_name: e.string(),
|
|
@@ -5862,7 +5868,7 @@ var sa = e.object({
|
|
|
5862
5868
|
"shared_planetscale"
|
|
5863
5869
|
]).optional(),
|
|
5864
5870
|
d1_database_id: e.string().max(64).optional(),
|
|
5865
|
-
attack_protection:
|
|
5871
|
+
attack_protection: aa.optional(),
|
|
5866
5872
|
mfa: e.object({
|
|
5867
5873
|
policy: e.enum(["never", "always"]).default("never").optional(),
|
|
5868
5874
|
factors: e.object({
|
|
@@ -5893,29 +5899,29 @@ var sa = e.object({
|
|
|
5893
5899
|
e.object({
|
|
5894
5900
|
created_at: e.string().nullable().transform((e) => e ?? ""),
|
|
5895
5901
|
updated_at: e.string().nullable().transform((e) => e ?? "")
|
|
5896
|
-
}).extend(
|
|
5902
|
+
}).extend(ca.shape).extend({
|
|
5897
5903
|
id: e.string(),
|
|
5898
5904
|
is_control_plane: e.boolean().optional()
|
|
5899
5905
|
});
|
|
5900
|
-
var
|
|
5906
|
+
var la = e.enum([
|
|
5901
5907
|
"provision",
|
|
5902
5908
|
"seed",
|
|
5903
5909
|
"upgrade",
|
|
5904
5910
|
"backup",
|
|
5905
5911
|
"deprovision",
|
|
5906
5912
|
"users_import"
|
|
5907
|
-
]),
|
|
5913
|
+
]), ua = e.enum([
|
|
5908
5914
|
"pending",
|
|
5909
5915
|
"running",
|
|
5910
5916
|
"succeeded",
|
|
5911
5917
|
"failed",
|
|
5912
5918
|
"cancelled"
|
|
5913
|
-
]),
|
|
5919
|
+
]), da = e.string().max(64);
|
|
5914
5920
|
e.object({
|
|
5915
5921
|
tenant_id: e.string().max(255).nullable().default(null),
|
|
5916
5922
|
rollout_id: e.string().max(255).nullable().optional(),
|
|
5917
|
-
kind:
|
|
5918
|
-
engine:
|
|
5923
|
+
kind: la,
|
|
5924
|
+
engine: da,
|
|
5919
5925
|
engine_instance_id: e.string().max(100).nullable().optional(),
|
|
5920
5926
|
target_worker_version: e.string().max(255).nullable().optional(),
|
|
5921
5927
|
target_database_version: e.string().max(255).nullable().optional(),
|
|
@@ -5923,7 +5929,7 @@ e.object({
|
|
|
5923
5929
|
input: e.record(e.string(), e.unknown()).nullable().optional()
|
|
5924
5930
|
}).extend({
|
|
5925
5931
|
id: e.string(),
|
|
5926
|
-
status:
|
|
5932
|
+
status: ua,
|
|
5927
5933
|
current_step: e.string().max(255).nullable().optional(),
|
|
5928
5934
|
error: e.string().nullable().optional(),
|
|
5929
5935
|
result: e.record(e.string(), e.unknown()).nullable().optional(),
|
|
@@ -5944,7 +5950,7 @@ e.object({
|
|
|
5944
5950
|
claim_expires_at: !0,
|
|
5945
5951
|
finished_at: !0
|
|
5946
5952
|
}).partial();
|
|
5947
|
-
var
|
|
5953
|
+
var fa = e.enum([
|
|
5948
5954
|
"started",
|
|
5949
5955
|
"succeeded",
|
|
5950
5956
|
"failed",
|
|
@@ -5955,14 +5961,14 @@ var da = e.enum([
|
|
|
5955
5961
|
e.object({
|
|
5956
5962
|
operation_id: e.string().max(255),
|
|
5957
5963
|
step: e.string().max(255),
|
|
5958
|
-
outcome:
|
|
5964
|
+
outcome: fa,
|
|
5959
5965
|
detail: e.record(e.string(), e.unknown()).nullable().optional(),
|
|
5960
5966
|
attempt: e.number().int().min(1).default(1)
|
|
5961
5967
|
}).extend({
|
|
5962
5968
|
id: e.string(),
|
|
5963
5969
|
created_at: e.string()
|
|
5964
5970
|
});
|
|
5965
|
-
var
|
|
5971
|
+
var pa = e.enum([
|
|
5966
5972
|
"pending",
|
|
5967
5973
|
"inserted",
|
|
5968
5974
|
"updated",
|
|
@@ -5973,28 +5979,28 @@ e.object({
|
|
|
5973
5979
|
operation_id: e.string().max(255),
|
|
5974
5980
|
seq: e.number().int().min(0),
|
|
5975
5981
|
payload: e.record(e.string(), e.unknown()),
|
|
5976
|
-
status:
|
|
5982
|
+
status: pa.default("pending"),
|
|
5977
5983
|
error_code: e.string().max(64).nullable().optional(),
|
|
5978
5984
|
error_message: e.string().nullable().optional(),
|
|
5979
5985
|
error_path: e.string().max(255).nullable().optional(),
|
|
5980
5986
|
entity_id: e.string().max(255).nullable().optional()
|
|
5981
5987
|
}).extend({
|
|
5982
|
-
status:
|
|
5988
|
+
status: pa,
|
|
5983
5989
|
created_at: e.string(),
|
|
5984
5990
|
updated_at: e.string()
|
|
5985
5991
|
}), e.object({
|
|
5986
5992
|
seq: e.number().int().min(0),
|
|
5987
|
-
status:
|
|
5993
|
+
status: pa,
|
|
5988
5994
|
error_code: e.string().max(64).nullable().optional(),
|
|
5989
5995
|
error_message: e.string().nullable().optional(),
|
|
5990
5996
|
error_path: e.string().max(255).nullable().optional(),
|
|
5991
5997
|
entity_id: e.string().max(255).nullable().optional()
|
|
5992
5998
|
});
|
|
5993
|
-
var
|
|
5999
|
+
var ma = e.enum([
|
|
5994
6000
|
"upgrade",
|
|
5995
6001
|
"reseed",
|
|
5996
6002
|
"backup"
|
|
5997
|
-
]),
|
|
6003
|
+
]), ha = e.enum([
|
|
5998
6004
|
"pending",
|
|
5999
6005
|
"canary",
|
|
6000
6006
|
"rolling",
|
|
@@ -6003,7 +6009,7 @@ var pa = e.enum([
|
|
|
6003
6009
|
"failed"
|
|
6004
6010
|
]);
|
|
6005
6011
|
e.object({
|
|
6006
|
-
kind:
|
|
6012
|
+
kind: ma,
|
|
6007
6013
|
target_worker_version: e.string().max(255).nullable().optional(),
|
|
6008
6014
|
target_database_version: e.string().max(255).nullable().optional(),
|
|
6009
6015
|
wave_size: e.number().int().min(1).default(10),
|
|
@@ -6012,7 +6018,7 @@ e.object({
|
|
|
6012
6018
|
initiated_by: e.string().max(255).nullable().optional()
|
|
6013
6019
|
}).extend({
|
|
6014
6020
|
id: e.string(),
|
|
6015
|
-
status:
|
|
6021
|
+
status: ha,
|
|
6016
6022
|
created_at: e.string(),
|
|
6017
6023
|
updated_at: e.string(),
|
|
6018
6024
|
finished_at: e.string().nullable().optional()
|
|
@@ -6034,7 +6040,7 @@ e.object({
|
|
|
6034
6040
|
code: e.string(),
|
|
6035
6041
|
state: e.string().optional()
|
|
6036
6042
|
});
|
|
6037
|
-
var
|
|
6043
|
+
var ga = e.object({
|
|
6038
6044
|
button_border_radius: e.number(),
|
|
6039
6045
|
button_border_weight: e.number(),
|
|
6040
6046
|
buttons_style: e.enum([
|
|
@@ -6052,7 +6058,7 @@ var ha = e.object({
|
|
|
6052
6058
|
show_widget_shadow: e.boolean(),
|
|
6053
6059
|
widget_border_weight: e.number(),
|
|
6054
6060
|
widget_corner_radius: e.number()
|
|
6055
|
-
}),
|
|
6061
|
+
}), _a = e.object({
|
|
6056
6062
|
base_focus_color: e.string(),
|
|
6057
6063
|
base_hover_color: e.string(),
|
|
6058
6064
|
body_text: e.string(),
|
|
@@ -6079,7 +6085,7 @@ var ha = e.object({
|
|
|
6079
6085
|
}), $ = e.object({
|
|
6080
6086
|
bold: e.boolean(),
|
|
6081
6087
|
size: e.number()
|
|
6082
|
-
}),
|
|
6088
|
+
}), va = e.object({
|
|
6083
6089
|
body_text: $,
|
|
6084
6090
|
buttons_text: $,
|
|
6085
6091
|
font_url: e.string(),
|
|
@@ -6089,7 +6095,7 @@ var ha = e.object({
|
|
|
6089
6095
|
reference_text_size: e.number(),
|
|
6090
6096
|
subtitle: $,
|
|
6091
6097
|
title: $
|
|
6092
|
-
}),
|
|
6098
|
+
}), ya = e.object({
|
|
6093
6099
|
background_color: e.string(),
|
|
6094
6100
|
background_image_url: e.string(),
|
|
6095
6101
|
page_layout: e.enum([
|
|
@@ -6102,7 +6108,7 @@ var ha = e.object({
|
|
|
6102
6108
|
"chip",
|
|
6103
6109
|
"none"
|
|
6104
6110
|
]).optional()
|
|
6105
|
-
}),
|
|
6111
|
+
}), ba = e.object({
|
|
6106
6112
|
header_text_alignment: e.enum([
|
|
6107
6113
|
"center",
|
|
6108
6114
|
"left",
|
|
@@ -6119,12 +6125,12 @@ var ha = e.object({
|
|
|
6119
6125
|
social_buttons_layout: e.enum(["bottom", "top"])
|
|
6120
6126
|
});
|
|
6121
6127
|
e.object({
|
|
6122
|
-
borders:
|
|
6123
|
-
colors:
|
|
6128
|
+
borders: ga,
|
|
6129
|
+
colors: _a,
|
|
6124
6130
|
displayName: e.string(),
|
|
6125
|
-
fonts:
|
|
6126
|
-
page_background:
|
|
6127
|
-
widget:
|
|
6131
|
+
fonts: va,
|
|
6132
|
+
page_background: ya,
|
|
6133
|
+
widget: ba
|
|
6128
6134
|
}).extend({ themeId: e.string() }), e.object({
|
|
6129
6135
|
universal_login_experience: e.enum(["new", "classic"]).default("new"),
|
|
6130
6136
|
identifier_first: e.boolean().default(!0),
|
|
@@ -6132,44 +6138,89 @@ e.object({
|
|
|
6132
6138
|
show_last_used_connection: e.boolean().default(!1),
|
|
6133
6139
|
webauthn_platform_first_factor: e.boolean()
|
|
6134
6140
|
});
|
|
6135
|
-
var
|
|
6141
|
+
var xa = e.object({
|
|
6136
6142
|
hosts: e.array(e.string()).optional(),
|
|
6137
6143
|
methods: e.array(e.string()).optional(),
|
|
6138
6144
|
path: e.string().default("/*"),
|
|
6139
6145
|
headers: e.record(e.string(), e.string()).optional(),
|
|
6140
6146
|
query: e.record(e.string(), e.string()).optional()
|
|
6141
|
-
}),
|
|
6147
|
+
}), Sa = e.object({
|
|
6142
6148
|
type: e.string(),
|
|
6143
6149
|
options: e.record(e.string(), e.unknown()).default({})
|
|
6144
|
-
}),
|
|
6150
|
+
}), Ca = e.object({
|
|
6145
6151
|
id: e.string().optional(),
|
|
6146
6152
|
custom_domain_id: e.string(),
|
|
6147
6153
|
priority: e.number().int().default(100),
|
|
6148
|
-
match:
|
|
6149
|
-
handlers: e.array(
|
|
6154
|
+
match: xa,
|
|
6155
|
+
handlers: e.array(Sa).min(1)
|
|
6150
6156
|
});
|
|
6151
|
-
|
|
6157
|
+
Ca.extend({
|
|
6152
6158
|
id: e.string(),
|
|
6153
6159
|
tenant_id: e.string(),
|
|
6154
6160
|
created_at: e.string(),
|
|
6155
6161
|
updated_at: e.string()
|
|
6156
|
-
}),
|
|
6162
|
+
}), Ca.partial().omit({
|
|
6157
6163
|
id: !0,
|
|
6158
6164
|
custom_domain_id: !0
|
|
6159
6165
|
});
|
|
6160
|
-
var
|
|
6166
|
+
var wa = "custom_authentication", Ta = [
|
|
6167
|
+
"urn:ietf:params:oauth:",
|
|
6168
|
+
"urn:auth0",
|
|
6169
|
+
"urn:okta",
|
|
6170
|
+
"http://auth0.com",
|
|
6171
|
+
"https://auth0.com",
|
|
6172
|
+
"http://okta.com",
|
|
6173
|
+
"https://okta.com"
|
|
6174
|
+
], Ea = e.string().min(1).max(200).refine((e) => e.startsWith("https://") || e.startsWith("urn:"), { message: "subject_token_type must be a URI starting with https:// or urn:" }).refine((e) => !Ta.some((t) => e.toLowerCase().startsWith(t)), { message: "subject_token_type uses a reserved namespace" }), Da = e.enum([
|
|
6175
|
+
"RS256",
|
|
6176
|
+
"RS384",
|
|
6177
|
+
"RS512",
|
|
6178
|
+
"ES256",
|
|
6179
|
+
"ES384",
|
|
6180
|
+
"ES512"
|
|
6181
|
+
]), Oa = e.discriminatedUnion("type", [e.object({
|
|
6182
|
+
type: e.literal("connection"),
|
|
6183
|
+
connection: e.string().min(1),
|
|
6184
|
+
create_if_not_exists: e.boolean().default(!0),
|
|
6185
|
+
trust_email_verified: e.boolean().default(!1)
|
|
6186
|
+
}), e.object({ type: e.literal("user_id") })]), ka = e.object({
|
|
6187
|
+
issuer: e.string().min(1).max(2048),
|
|
6188
|
+
jwks: Ui.optional(),
|
|
6189
|
+
jwks_uri: e.string().url().optional(),
|
|
6190
|
+
audience: e.array(e.string().min(1)).min(1).optional(),
|
|
6191
|
+
algorithms: e.array(Da).min(1).optional(),
|
|
6192
|
+
max_lifetime_seconds: e.number().int().min(1).max(3600).default(300),
|
|
6193
|
+
require_jti: e.boolean().default(!0),
|
|
6194
|
+
user_mapping: Oa
|
|
6195
|
+
});
|
|
6196
|
+
e.object({
|
|
6197
|
+
name: e.string().min(1).max(255),
|
|
6198
|
+
subject_token_type: Ea,
|
|
6199
|
+
action_id: e.string().min(1).optional(),
|
|
6200
|
+
type: e.literal(wa),
|
|
6201
|
+
jwt_verification: ka.optional()
|
|
6202
|
+
}).extend({
|
|
6203
|
+
id: e.string(),
|
|
6204
|
+
created_at: e.string(),
|
|
6205
|
+
updated_at: e.string()
|
|
6206
|
+
}), e.object({
|
|
6207
|
+
name: e.string().min(1).max(255).optional(),
|
|
6208
|
+
subject_token_type: Ea.optional(),
|
|
6209
|
+
jwt_verification: ka.optional()
|
|
6210
|
+
});
|
|
6211
|
+
var Aa = e.object({
|
|
6161
6212
|
scim: e.string(),
|
|
6162
6213
|
auth0: e.string()
|
|
6163
|
-
}),
|
|
6214
|
+
}), ja = e.object({
|
|
6164
6215
|
connection_id: e.string(),
|
|
6165
6216
|
user_id_attribute: e.string().default("externalId"),
|
|
6166
|
-
mapping: e.array(
|
|
6217
|
+
mapping: e.array(Aa).default([])
|
|
6167
6218
|
});
|
|
6168
6219
|
e.object({
|
|
6169
6220
|
created_at: e.string(),
|
|
6170
6221
|
updated_at: e.string()
|
|
6171
|
-
}).extend(
|
|
6172
|
-
var
|
|
6222
|
+
}).extend(ja.shape);
|
|
6223
|
+
var Ma = e.object({
|
|
6173
6224
|
token_id: e.string(),
|
|
6174
6225
|
connection_id: e.string(),
|
|
6175
6226
|
token_hash: e.string(),
|
|
@@ -6179,20 +6230,20 @@ var Ta = e.object({
|
|
|
6179
6230
|
e.object({
|
|
6180
6231
|
created_at: e.string(),
|
|
6181
6232
|
last_used_at: e.string().optional()
|
|
6182
|
-
}).extend(
|
|
6183
|
-
var
|
|
6233
|
+
}).extend(Ma.shape);
|
|
6234
|
+
var Na = e.object({
|
|
6184
6235
|
connection_id: e.string(),
|
|
6185
6236
|
external_id: e.string(),
|
|
6186
6237
|
user_id: e.string()
|
|
6187
6238
|
});
|
|
6188
|
-
e.object({ created_at: e.string() }).extend(
|
|
6239
|
+
e.object({ created_at: e.string() }).extend(Na.shape), e.object({
|
|
6189
6240
|
name: e.string(),
|
|
6190
6241
|
enabled: e.boolean().optional().default(!0),
|
|
6191
6242
|
default_from_address: e.string().optional(),
|
|
6192
6243
|
credentials: e.record(e.string(), e.unknown()),
|
|
6193
6244
|
settings: e.object({}).optional()
|
|
6194
6245
|
});
|
|
6195
|
-
var
|
|
6246
|
+
var Pa = e.enum([
|
|
6196
6247
|
"verify_email",
|
|
6197
6248
|
"verify_email_by_code",
|
|
6198
6249
|
"reset_email",
|
|
@@ -6207,7 +6258,7 @@ var Da = e.enum([
|
|
|
6207
6258
|
"user_invitation"
|
|
6208
6259
|
]);
|
|
6209
6260
|
e.object({
|
|
6210
|
-
template:
|
|
6261
|
+
template: Pa,
|
|
6211
6262
|
body: e.string(),
|
|
6212
6263
|
from: e.string(),
|
|
6213
6264
|
subject: e.string(),
|
|
@@ -6222,13 +6273,13 @@ e.object({
|
|
|
6222
6273
|
session_id: e.string().optional(),
|
|
6223
6274
|
organization: e.string().optional(),
|
|
6224
6275
|
auth_connection: e.string().optional(),
|
|
6225
|
-
auth_strategy:
|
|
6276
|
+
auth_strategy: Ki.optional(),
|
|
6226
6277
|
user_id: e.string(),
|
|
6227
6278
|
client_id: e.string(),
|
|
6228
6279
|
expires_at: e.string().optional(),
|
|
6229
6280
|
idle_expires_at: e.string().optional(),
|
|
6230
6281
|
last_exchanged_at: e.string().optional(),
|
|
6231
|
-
device:
|
|
6282
|
+
device: oa,
|
|
6232
6283
|
resource_servers: e.array(e.object({
|
|
6233
6284
|
audience: e.string(),
|
|
6234
6285
|
scopes: e.string()
|
|
@@ -6249,10 +6300,10 @@ e.object({
|
|
|
6249
6300
|
name: e.string(),
|
|
6250
6301
|
options: e.object({})
|
|
6251
6302
|
});
|
|
6252
|
-
var
|
|
6303
|
+
var Fa = e.object({
|
|
6253
6304
|
value: e.string(),
|
|
6254
6305
|
description: e.string().optional()
|
|
6255
|
-
}),
|
|
6306
|
+
}), Ia = e.object({
|
|
6256
6307
|
token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
|
|
6257
6308
|
enforce_policies: e.boolean().optional(),
|
|
6258
6309
|
allow_skipping_userinfo: e.boolean().optional(),
|
|
@@ -6260,11 +6311,11 @@ var Oa = e.object({
|
|
|
6260
6311
|
persist_client_authorization: e.boolean().optional(),
|
|
6261
6312
|
enable_introspection_endpoint: e.boolean().optional(),
|
|
6262
6313
|
mtls: e.object({ bound_access_tokens: e.boolean().optional() }).optional()
|
|
6263
|
-
}),
|
|
6314
|
+
}), La = e.object({
|
|
6264
6315
|
id: e.string().optional(),
|
|
6265
6316
|
name: e.string(),
|
|
6266
6317
|
identifier: e.string(),
|
|
6267
|
-
scopes: e.array(
|
|
6318
|
+
scopes: e.array(Fa).optional(),
|
|
6268
6319
|
signing_alg: e.string().optional(),
|
|
6269
6320
|
signing_secret: e.string().optional(),
|
|
6270
6321
|
token_lifetime: e.number().default(86400),
|
|
@@ -6272,20 +6323,20 @@ var Oa = e.object({
|
|
|
6272
6323
|
skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
|
|
6273
6324
|
allow_offline_access: e.boolean().optional(),
|
|
6274
6325
|
verificationKey: e.string().optional(),
|
|
6275
|
-
options:
|
|
6326
|
+
options: Ia.optional(),
|
|
6276
6327
|
is_system: e.boolean().optional(),
|
|
6277
6328
|
metadata: e.record(e.string(), e.any()).optional()
|
|
6278
6329
|
}).extend({
|
|
6279
6330
|
created_at: e.string().optional(),
|
|
6280
6331
|
updated_at: e.string().optional()
|
|
6281
6332
|
});
|
|
6282
|
-
e.array(
|
|
6283
|
-
var
|
|
6333
|
+
e.array(La);
|
|
6334
|
+
var Ra = e.object({
|
|
6284
6335
|
role_id: e.string(),
|
|
6285
6336
|
resource_server_identifier: e.string(),
|
|
6286
6337
|
permission_name: e.string()
|
|
6287
6338
|
}).extend({ created_at: e.string() });
|
|
6288
|
-
e.array(
|
|
6339
|
+
e.array(Ra), e.object({
|
|
6289
6340
|
user_id: e.string().openapi({ description: "The id of the user that granted the consent" }),
|
|
6290
6341
|
clientID: e.string().openapi({ description: "The id of the client the grant was issued to" }),
|
|
6291
6342
|
audience: e.string().optional().openapi({ description: "The audience the grant applies to" }),
|
|
@@ -6298,7 +6349,7 @@ e.array(ja), e.object({
|
|
|
6298
6349
|
failed_logins: e.array(e.string()).optional(),
|
|
6299
6350
|
last_password_reset: e.string().optional()
|
|
6300
6351
|
});
|
|
6301
|
-
var
|
|
6352
|
+
var za = e.object({
|
|
6302
6353
|
user_id: e.string(),
|
|
6303
6354
|
resource_server_identifier: e.string(),
|
|
6304
6355
|
permission_name: e.string(),
|
|
@@ -6307,8 +6358,8 @@ var Ma = e.object({
|
|
|
6307
6358
|
tenant_id: e.string(),
|
|
6308
6359
|
created_at: e.string().optional()
|
|
6309
6360
|
});
|
|
6310
|
-
e.array(
|
|
6311
|
-
var
|
|
6361
|
+
e.array(za);
|
|
6362
|
+
var Ba = e.object({
|
|
6312
6363
|
user_id: e.string(),
|
|
6313
6364
|
resource_server_identifier: e.string(),
|
|
6314
6365
|
resource_server_name: e.string(),
|
|
@@ -6317,8 +6368,8 @@ var Na = e.object({
|
|
|
6317
6368
|
created_at: e.string().optional(),
|
|
6318
6369
|
organization_id: e.string().optional()
|
|
6319
6370
|
});
|
|
6320
|
-
e.array(
|
|
6321
|
-
var
|
|
6371
|
+
e.array(Ba);
|
|
6372
|
+
var Va = e.object({
|
|
6322
6373
|
user_id: e.string(),
|
|
6323
6374
|
role_id: e.string(),
|
|
6324
6375
|
organization_id: e.string().optional()
|
|
@@ -6326,8 +6377,8 @@ var Pa = e.object({
|
|
|
6326
6377
|
tenant_id: e.string(),
|
|
6327
6378
|
created_at: e.string().optional()
|
|
6328
6379
|
});
|
|
6329
|
-
e.array(
|
|
6330
|
-
var
|
|
6380
|
+
e.array(Va);
|
|
6381
|
+
var Ha = e.object({
|
|
6331
6382
|
id: e.string().optional().openapi({ description: "The unique identifier of the role. If not provided, one will be generated." }),
|
|
6332
6383
|
name: e.string().min(1).max(50).openapi({ description: "The name of the role. Cannot include '<' or '>'" }),
|
|
6333
6384
|
description: e.string().max(255).optional().openapi({ description: "The description of the role" }),
|
|
@@ -6338,19 +6389,19 @@ var Fa = e.object({
|
|
|
6338
6389
|
created_at: e.string().optional(),
|
|
6339
6390
|
updated_at: e.string().optional()
|
|
6340
6391
|
});
|
|
6341
|
-
e.array(
|
|
6342
|
-
var
|
|
6392
|
+
e.array(Ha);
|
|
6393
|
+
var Ua = e.object({
|
|
6343
6394
|
logo_url: e.string().optional().openapi({ description: "URL of the organization's logo" }),
|
|
6344
6395
|
colors: e.object({
|
|
6345
6396
|
primary: e.string().optional().openapi({ description: "Primary color in hex format (e.g., #FF0000)" }),
|
|
6346
6397
|
page_background: e.string().optional().openapi({ description: "Page background color in hex format (e.g., #FFFFFF)" })
|
|
6347
6398
|
}).optional()
|
|
6348
|
-
}).optional(),
|
|
6399
|
+
}).optional(), Wa = e.object({
|
|
6349
6400
|
connection_id: e.string().openapi({ description: "ID of the connection" }),
|
|
6350
6401
|
assign_membership_on_login: e.boolean().default(!1).openapi({ description: "Whether to assign membership to the organization on login" }),
|
|
6351
6402
|
show_as_button: e.boolean().default(!0).openapi({ description: "Whether to show this connection as a button in the login screen" }),
|
|
6352
6403
|
is_signup_enabled: e.boolean().default(!0).openapi({ description: "Whether signup is enabled for this connection" })
|
|
6353
|
-
}),
|
|
6404
|
+
}), Ga = e.object({ client_credentials: e.object({
|
|
6354
6405
|
enforce: e.boolean().default(!1).openapi({ description: "Whether to enforce token quota limits" }),
|
|
6355
6406
|
per_day: e.number().min(0).default(0).openapi({ description: "Maximum tokens per day (0 = unlimited)" }),
|
|
6356
6407
|
per_hour: e.number().min(0).default(0).openapi({ description: "Maximum tokens per hour (0 = unlimited)" })
|
|
@@ -6359,15 +6410,15 @@ e.object({
|
|
|
6359
6410
|
id: e.string().optional(),
|
|
6360
6411
|
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." }),
|
|
6361
6412
|
display_name: e.string().optional().openapi({ description: "The display name of the organization" }),
|
|
6362
|
-
branding:
|
|
6413
|
+
branding: Ua,
|
|
6363
6414
|
metadata: e.record(e.string(), e.any()).default({}).optional().openapi({ description: "Custom metadata for the organization" }),
|
|
6364
|
-
enabled_connections: e.array(
|
|
6365
|
-
token_quota:
|
|
6366
|
-
}).extend(
|
|
6415
|
+
enabled_connections: e.array(Wa).default([]).optional().openapi({ description: "List of enabled connections for the organization" }),
|
|
6416
|
+
token_quota: Ga
|
|
6417
|
+
}).extend(G.shape).extend({
|
|
6367
6418
|
id: e.string(),
|
|
6368
6419
|
name: e.string().min(1).openapi({ description: "The name of the organization" })
|
|
6369
6420
|
});
|
|
6370
|
-
var
|
|
6421
|
+
var Ka = e.object({
|
|
6371
6422
|
connection_id: e.string().openapi({ description: "ID of the tenant-level connection to enable for the org." }),
|
|
6372
6423
|
assign_membership_on_login: e.boolean().optional().default(!1),
|
|
6373
6424
|
show_as_button: e.boolean().optional().default(!0),
|
|
@@ -6380,10 +6431,10 @@ var za = e.object({
|
|
|
6380
6431
|
created_at: e.string().optional(),
|
|
6381
6432
|
updated_at: e.string().optional()
|
|
6382
6433
|
});
|
|
6383
|
-
e.array(
|
|
6434
|
+
e.array(Ka), e.object({
|
|
6384
6435
|
user_id: e.string().openapi({ description: "ID of the user" }),
|
|
6385
6436
|
organization_id: e.string().openapi({ description: "ID of the organization" })
|
|
6386
|
-
}).extend(
|
|
6437
|
+
}).extend(G.shape).extend({ id: e.string() }), e.object({
|
|
6387
6438
|
idle_session_lifetime: e.number().default(72),
|
|
6388
6439
|
session_lifetime: e.number().default(168),
|
|
6389
6440
|
session_cookie: e.object({ mode: e.enum(["persistent", "non-persistent"]).optional() }).optional(),
|
|
@@ -6519,7 +6570,7 @@ e.array(za), e.object({
|
|
|
6519
6570
|
"passwordless",
|
|
6520
6571
|
"enterprise"
|
|
6521
6572
|
]);
|
|
6522
|
-
var
|
|
6573
|
+
var qa = e.object({
|
|
6523
6574
|
cohort: e.string(),
|
|
6524
6575
|
sessions: e.number(),
|
|
6525
6576
|
active: e.array(e.number())
|
|
@@ -6528,9 +6579,9 @@ e.object({
|
|
|
6528
6579
|
interval: e.literal("week"),
|
|
6529
6580
|
from: e.string(),
|
|
6530
6581
|
to: e.string(),
|
|
6531
|
-
cohorts: e.array(
|
|
6582
|
+
cohorts: e.array(qa)
|
|
6532
6583
|
});
|
|
6533
|
-
var
|
|
6584
|
+
var Ja = e.object({
|
|
6534
6585
|
cohort: e.string(),
|
|
6535
6586
|
tokens: e.number(),
|
|
6536
6587
|
active: e.array(e.number())
|
|
@@ -6539,24 +6590,24 @@ e.object({
|
|
|
6539
6590
|
interval: e.literal("week"),
|
|
6540
6591
|
from: e.string(),
|
|
6541
6592
|
to: e.string(),
|
|
6542
|
-
cohorts: e.array(
|
|
6593
|
+
cohorts: e.array(Ja)
|
|
6543
6594
|
});
|
|
6544
|
-
var
|
|
6595
|
+
var Ya = e.object({
|
|
6545
6596
|
name: e.string(),
|
|
6546
6597
|
type: e.string()
|
|
6547
|
-
}),
|
|
6598
|
+
}), Xa = e.object({
|
|
6548
6599
|
elapsed: e.number(),
|
|
6549
6600
|
rows_read: e.number().optional(),
|
|
6550
6601
|
bytes_read: e.number().optional()
|
|
6551
6602
|
});
|
|
6552
6603
|
e.object({
|
|
6553
|
-
meta: e.array(
|
|
6604
|
+
meta: e.array(Ya),
|
|
6554
6605
|
data: e.array(e.record(e.string(), e.any())),
|
|
6555
6606
|
rows: e.number(),
|
|
6556
6607
|
rows_before_limit_at_least: e.number().optional(),
|
|
6557
|
-
statistics:
|
|
6608
|
+
statistics: Xa.optional()
|
|
6558
6609
|
});
|
|
6559
|
-
var
|
|
6610
|
+
var Za = e.enum(/* @__PURE__ */ "login.login-id.login-password.signup.signup-id.signup-password.reset-password.consent.mfa.mfa-push.mfa-otp.mfa-voice.mfa-phone.mfa-webauthn.mfa-email.mfa-recovery-code.status.device-flow.email-verification.email-otp-challenge.organizations.invitation.common.passkeys.captcha.custom-form.login-passwordless.mfa-login-options".split(".")), Qa = e.record(e.string(), e.record(e.string(), e.string())).openapi({
|
|
6560
6611
|
type: "object",
|
|
6561
6612
|
additionalProperties: {
|
|
6562
6613
|
type: "object",
|
|
@@ -6564,11 +6615,11 @@ var Wa = e.enum(/* @__PURE__ */ "login.login-id.login-password.signup.signup-id.
|
|
|
6564
6615
|
}
|
|
6565
6616
|
});
|
|
6566
6617
|
e.object({
|
|
6567
|
-
prompt:
|
|
6618
|
+
prompt: Za,
|
|
6568
6619
|
language: e.string(),
|
|
6569
|
-
custom_text:
|
|
6620
|
+
custom_text: Qa
|
|
6570
6621
|
});
|
|
6571
|
-
var
|
|
6622
|
+
var $a = e.enum([
|
|
6572
6623
|
"phone",
|
|
6573
6624
|
"totp",
|
|
6574
6625
|
"email",
|
|
@@ -6576,9 +6627,9 @@ var Ka = e.enum([
|
|
|
6576
6627
|
"webauthn-roaming",
|
|
6577
6628
|
"webauthn-platform",
|
|
6578
6629
|
"passkey"
|
|
6579
|
-
]),
|
|
6630
|
+
]), eo = e.object({
|
|
6580
6631
|
user_id: e.string(),
|
|
6581
|
-
type:
|
|
6632
|
+
type: $a,
|
|
6582
6633
|
phone_number: e.string().optional(),
|
|
6583
6634
|
totp_secret: e.string().optional(),
|
|
6584
6635
|
credential_id: e.string().optional(),
|
|
@@ -6589,7 +6640,7 @@ var Ka = e.enum([
|
|
|
6589
6640
|
friendly_name: e.string().optional(),
|
|
6590
6641
|
confirmed: e.boolean().default(!1)
|
|
6591
6642
|
});
|
|
6592
|
-
function
|
|
6643
|
+
function to(t, n) {
|
|
6593
6644
|
t.type === "phone" && !t.phone_number && n.addIssue({
|
|
6594
6645
|
code: e.ZodIssueCode.custom,
|
|
6595
6646
|
message: "phone_number is required when type is 'phone'",
|
|
@@ -6612,51 +6663,51 @@ function Ja(t, n) {
|
|
|
6612
6663
|
path: ["public_key"]
|
|
6613
6664
|
}));
|
|
6614
6665
|
}
|
|
6615
|
-
|
|
6666
|
+
eo.superRefine(to), eo.extend({
|
|
6616
6667
|
id: e.string(),
|
|
6617
6668
|
created_at: e.string(),
|
|
6618
6669
|
updated_at: e.string()
|
|
6619
|
-
}).superRefine(
|
|
6670
|
+
}).superRefine(to), e.object({
|
|
6620
6671
|
id: e.string().optional(),
|
|
6621
6672
|
created_at: e.string().datetime({ offset: !0 }).optional(),
|
|
6622
6673
|
updated_at: e.string().datetime({ offset: !0 }).optional()
|
|
6623
6674
|
});
|
|
6624
|
-
function
|
|
6675
|
+
function no(e) {
|
|
6625
6676
|
let t = atob(e), n = new Uint8Array(t.length);
|
|
6626
6677
|
for (let e = 0; e < t.length; e++) n[e] = t.charCodeAt(e);
|
|
6627
6678
|
return n;
|
|
6628
6679
|
}
|
|
6629
6680
|
//#endregion
|
|
6630
6681
|
//#region ../../node_modules/.pnpm/nanoid@5.1.11/node_modules/nanoid/url-alphabet/index.js
|
|
6631
|
-
var
|
|
6682
|
+
var ro = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", io = (e = 21) => {
|
|
6632
6683
|
let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
|
|
6633
|
-
for (; e--;) t +=
|
|
6684
|
+
for (; e--;) t += ro[n[e] & 63];
|
|
6634
6685
|
return t;
|
|
6635
6686
|
};
|
|
6636
6687
|
//#endregion
|
|
6637
6688
|
//#region src/helpers.ts
|
|
6638
|
-
async function
|
|
6689
|
+
async function ao(e) {
|
|
6639
6690
|
let t = new DecompressionStream("deflate-raw"), n = new Uint8Array(e), r = new Blob([n]).stream().pipeThrough(t);
|
|
6640
6691
|
return new Uint8Array(await new Response(r).arrayBuffer());
|
|
6641
6692
|
}
|
|
6642
|
-
async function
|
|
6643
|
-
let t =
|
|
6693
|
+
async function oo(e) {
|
|
6694
|
+
let t = no(e.replace(/ /g, "+"));
|
|
6644
6695
|
try {
|
|
6645
|
-
let e = await
|
|
6696
|
+
let e = await ao(t);
|
|
6646
6697
|
return new TextDecoder().decode(e);
|
|
6647
6698
|
} catch (e) {
|
|
6648
6699
|
return console.warn("Decompression failed, assuming data is not compressed:", e), new TextDecoder().decode(t);
|
|
6649
6700
|
}
|
|
6650
6701
|
}
|
|
6651
|
-
async function
|
|
6652
|
-
let t = await
|
|
6702
|
+
async function so(e) {
|
|
6703
|
+
let t = await oo(e), n = new tn({
|
|
6653
6704
|
attributeNamePrefix: "@_",
|
|
6654
6705
|
alwaysCreateTextNode: !0,
|
|
6655
6706
|
ignoreAttributes: !1
|
|
6656
6707
|
}).parse(t);
|
|
6657
6708
|
return r.parse(n);
|
|
6658
6709
|
}
|
|
6659
|
-
function
|
|
6710
|
+
function co(e) {
|
|
6660
6711
|
let t = e.certificates.map((e) => ({
|
|
6661
6712
|
"@_use": "signing",
|
|
6662
6713
|
KeyInfo: {
|
|
@@ -6722,7 +6773,7 @@ function to(e) {
|
|
|
6722
6773
|
]
|
|
6723
6774
|
}
|
|
6724
6775
|
} };
|
|
6725
|
-
return new
|
|
6776
|
+
return new Cn({
|
|
6726
6777
|
ignoreAttributes: !1,
|
|
6727
6778
|
suppressEmptyNode: !0,
|
|
6728
6779
|
preserveOrder: !1,
|
|
@@ -6730,8 +6781,8 @@ function to(e) {
|
|
|
6730
6781
|
attributeNamePrefix: "@_"
|
|
6731
6782
|
}).build(n);
|
|
6732
6783
|
}
|
|
6733
|
-
async function
|
|
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 || `_${
|
|
6784
|
+
async function lo(e, t) {
|
|
6785
|
+
let n = e.notBefore || (/* @__PURE__ */ new Date()).toISOString(), r = e.notAfter || new Date(new Date(n).getTime() + 600 * 1e3).toISOString(), i = e.issueInstant || n, a = e.sessionNotOnOrAfter || r, o = e.responseId || `_${io()}`, s = e.assertionId || `_${io()}`, c = [{
|
|
6735
6786
|
"samlp:Response": [
|
|
6736
6787
|
{ "saml:Issuer": [{ "#text": e.issuer }] },
|
|
6737
6788
|
{ "samlp:Status": [{
|
|
@@ -6903,7 +6954,7 @@ async function no(e, t) {
|
|
|
6903
6954
|
"@_IssueInstant": i,
|
|
6904
6955
|
"@_Version": "2.0"
|
|
6905
6956
|
}
|
|
6906
|
-
}], l = new
|
|
6957
|
+
}], l = new Cn({
|
|
6907
6958
|
ignoreAttributes: !1,
|
|
6908
6959
|
suppressEmptyNode: !0,
|
|
6909
6960
|
preserveOrder: !0
|
|
@@ -6912,7 +6963,7 @@ async function no(e, t) {
|
|
|
6912
6963
|
}
|
|
6913
6964
|
//#endregion
|
|
6914
6965
|
//#region src/signers/http.ts
|
|
6915
|
-
var
|
|
6966
|
+
var uo = class {
|
|
6916
6967
|
signUrl;
|
|
6917
6968
|
constructor(e) {
|
|
6918
6969
|
this.signUrl = e;
|
|
@@ -6932,4 +6983,4 @@ var ro = class {
|
|
|
6932
6983
|
}
|
|
6933
6984
|
};
|
|
6934
6985
|
//#endregion
|
|
6935
|
-
export {
|
|
6986
|
+
export { uo as HttpSamlSigner, co as createSamlMetadata, lo as createSamlResponse, s as dsSignatureSchema, oo as inflateDecompress, ao as inflateRaw, so as parseSamlRequestQuery, n as samlIssuerSchema, i as samlMetadataResponseSchema, r as samlRequestSchema, c as samlResponseJsonSchema };
|