@authhero/saml 0.6.0 → 0.6.1
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 +735 -702
- package/dist/saml.cjs +4 -4
- package/dist/saml.mjs +757 -724
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/core.mjs
CHANGED
|
@@ -1466,37 +1466,37 @@ function S(...e) {
|
|
|
1466
1466
|
}
|
|
1467
1467
|
return t;
|
|
1468
1468
|
}
|
|
1469
|
-
var C = "external", w = "base",
|
|
1470
|
-
function
|
|
1471
|
-
return !e || e === C ? new Set([C]) : e ===
|
|
1469
|
+
var C = "external", w = "base", ke = "all";
|
|
1470
|
+
function Ae(e) {
|
|
1471
|
+
return !e || e === C ? new Set([C]) : e === ke ? new Set([ke]) : e === w ? new Set([w]) : Array.isArray(e) ? new Set(e) : new Set([C]);
|
|
1472
1472
|
}
|
|
1473
|
-
var
|
|
1473
|
+
var T = Object.freeze({
|
|
1474
1474
|
allow: 0,
|
|
1475
1475
|
leave: 1,
|
|
1476
1476
|
remove: 2,
|
|
1477
1477
|
throw: 3
|
|
1478
|
-
}),
|
|
1478
|
+
}), je = new Set([
|
|
1479
1479
|
9,
|
|
1480
1480
|
10,
|
|
1481
1481
|
13
|
|
1482
1482
|
]);
|
|
1483
|
-
function
|
|
1483
|
+
function Me(e) {
|
|
1484
1484
|
if (!e) return {
|
|
1485
1485
|
xmlVersion: 1,
|
|
1486
|
-
onLevel:
|
|
1487
|
-
nullLevel:
|
|
1486
|
+
onLevel: T.allow,
|
|
1487
|
+
nullLevel: T.remove
|
|
1488
1488
|
};
|
|
1489
|
-
let t = e.xmlVersion === 1.1 ? 1.1 : 1, n =
|
|
1489
|
+
let t = e.xmlVersion === 1.1 ? 1.1 : 1, n = T[e.onNCR] ?? T.allow, r = T[e.nullNCR] ?? T.remove;
|
|
1490
1490
|
return {
|
|
1491
1491
|
xmlVersion: t,
|
|
1492
1492
|
onLevel: n,
|
|
1493
|
-
nullLevel: Math.max(r,
|
|
1493
|
+
nullLevel: Math.max(r, T.remove)
|
|
1494
1494
|
};
|
|
1495
1495
|
}
|
|
1496
|
-
var
|
|
1496
|
+
var Ne = class {
|
|
1497
1497
|
constructor(e = {}) {
|
|
1498
|
-
this._limit = e.limit || {}, this._maxTotalExpansions = this._limit.maxTotalExpansions || 0, this._maxExpandedLength = this._limit.maxExpandedLength || 0, this._postCheck = typeof e.postCheck == "function" ? e.postCheck : (e) => e, this._limitTiers =
|
|
1499
|
-
let t =
|
|
1498
|
+
this._limit = e.limit || {}, this._maxTotalExpansions = this._limit.maxTotalExpansions || 0, this._maxExpandedLength = this._limit.maxExpandedLength || 0, this._postCheck = typeof e.postCheck == "function" ? e.postCheck : (e) => e, this._limitTiers = Ae(this._limit.applyLimitsTo ?? C), this._numericAllowed = e.numericAllowed ?? !0, this._baseMap = S(Te, e.namedEntities || null), this._externalMap = Object.create(null), this._inputMap = Object.create(null), this._totalExpansions = 0, this._expandedLength = 0, this._removeSet = new Set(e.remove && Array.isArray(e.remove) ? e.remove : []), this._leaveSet = new Set(e.leave && Array.isArray(e.leave) ? e.leave : []);
|
|
1499
|
+
let t = Me(e.ncr);
|
|
1500
1500
|
this._ncrXmlVersion = t.xmlVersion, this._ncrOnLevel = t.onLevel, this._ncrNullLevel = t.nullLevel, this._onExternalEntity = typeof e.onExternalEntity == "function" ? e.onExternalEntity : null, this._onInputEntity = typeof e.onInputEntity == "function" ? e.onInputEntity : null;
|
|
1501
1501
|
}
|
|
1502
1502
|
_applyRegistrationHook(e, t, n, r) {
|
|
@@ -1586,7 +1586,7 @@ var Me = class {
|
|
|
1586
1586
|
return this._postCheck(l, t);
|
|
1587
1587
|
}
|
|
1588
1588
|
_tierCounts(e) {
|
|
1589
|
-
return this._limitTiers.has(
|
|
1589
|
+
return this._limitTiers.has(ke) ? !0 : this._limitTiers.has(e);
|
|
1590
1590
|
}
|
|
1591
1591
|
_resolveName(e) {
|
|
1592
1592
|
if (e in this._inputMap) return {
|
|
@@ -1603,14 +1603,14 @@ var Me = class {
|
|
|
1603
1603
|
};
|
|
1604
1604
|
}
|
|
1605
1605
|
_classifyNCR(e) {
|
|
1606
|
-
return e === 0 ? this._ncrNullLevel : e >= 55296 && e <= 57343 || this._ncrXmlVersion === 1 && e >= 1 && e <= 31 && !
|
|
1606
|
+
return e === 0 ? this._ncrNullLevel : e >= 55296 && e <= 57343 || this._ncrXmlVersion === 1 && e >= 1 && e <= 31 && !je.has(e) ? T.remove : -1;
|
|
1607
1607
|
}
|
|
1608
1608
|
_applyNCRAction(e, t, n) {
|
|
1609
1609
|
switch (e) {
|
|
1610
|
-
case
|
|
1611
|
-
case
|
|
1612
|
-
case
|
|
1613
|
-
case
|
|
1610
|
+
case T.allow: return String.fromCodePoint(n);
|
|
1611
|
+
case T.remove: return "";
|
|
1612
|
+
case T.leave: return;
|
|
1613
|
+
case T.throw: throw Error(`[EntityDecoder] Prohibited numeric character reference &${t}; (U+${n.toString(16).toUpperCase().padStart(4, "0")})`);
|
|
1614
1614
|
default: return String.fromCodePoint(n);
|
|
1615
1615
|
}
|
|
1616
1616
|
}
|
|
@@ -1618,11 +1618,11 @@ var Me = class {
|
|
|
1618
1618
|
let t = e.charCodeAt(1), n;
|
|
1619
1619
|
if (n = t === 120 || t === 88 ? parseInt(e.slice(2), 16) : parseInt(e.slice(1), 10), Number.isNaN(n) || n < 0 || n > 1114111) return;
|
|
1620
1620
|
let r = this._classifyNCR(n);
|
|
1621
|
-
if (!this._numericAllowed && r <
|
|
1621
|
+
if (!this._numericAllowed && r < T.remove) return;
|
|
1622
1622
|
let i = r === -1 ? this._ncrOnLevel : Math.max(this._ncrOnLevel, r);
|
|
1623
1623
|
return this._applyNCRAction(i, e, n);
|
|
1624
1624
|
}
|
|
1625
|
-
},
|
|
1625
|
+
}, Pe = (e) => m.includes(e) ? "__" + e : e, Fe = {
|
|
1626
1626
|
preserveOrder: !1,
|
|
1627
1627
|
attributeNamePrefix: "@_",
|
|
1628
1628
|
attributesGroupName: !1,
|
|
@@ -1665,14 +1665,14 @@ var Me = class {
|
|
|
1665
1665
|
maxNestedTags: 100,
|
|
1666
1666
|
strictReservedNames: !0,
|
|
1667
1667
|
jPath: !0,
|
|
1668
|
-
onDangerousProperty:
|
|
1668
|
+
onDangerousProperty: Pe
|
|
1669
1669
|
};
|
|
1670
|
-
function
|
|
1670
|
+
function Ie(e, t) {
|
|
1671
1671
|
if (typeof e != "string") return;
|
|
1672
1672
|
let n = e.toLowerCase();
|
|
1673
1673
|
if (m.some((e) => n === e.toLowerCase()) || h.some((e) => n === e.toLowerCase())) throw Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);
|
|
1674
1674
|
}
|
|
1675
|
-
function
|
|
1675
|
+
function Le(e, t) {
|
|
1676
1676
|
return typeof e == "boolean" ? {
|
|
1677
1677
|
enabled: e,
|
|
1678
1678
|
maxEntitySize: 1e4,
|
|
@@ -1693,10 +1693,10 @@ function Ie(e, t) {
|
|
|
1693
1693
|
allowedTags: e.allowedTags ?? null,
|
|
1694
1694
|
tagFilter: e.tagFilter ?? null,
|
|
1695
1695
|
appliesTo: e.appliesTo ?? "all"
|
|
1696
|
-
} :
|
|
1696
|
+
} : Le(!0);
|
|
1697
1697
|
}
|
|
1698
|
-
var
|
|
1699
|
-
let t = Object.assign({},
|
|
1698
|
+
var Re = function(e) {
|
|
1699
|
+
let t = Object.assign({}, Fe, e), n = [
|
|
1700
1700
|
{
|
|
1701
1701
|
value: t.attributeNamePrefix,
|
|
1702
1702
|
name: "attributeNamePrefix"
|
|
@@ -1718,9 +1718,9 @@ var Le = function(e) {
|
|
|
1718
1718
|
name: "commentPropName"
|
|
1719
1719
|
}
|
|
1720
1720
|
];
|
|
1721
|
-
for (let { value: e, name: t } of n) e &&
|
|
1722
|
-
return t.onDangerousProperty === null && (t.onDangerousProperty =
|
|
1723
|
-
},
|
|
1721
|
+
for (let { value: e, name: t } of n) e && Ie(e, t);
|
|
1722
|
+
return t.onDangerousProperty === null && (t.onDangerousProperty = Pe), t.processEntities = Le(t.processEntities, t.htmlEntities), t.unpairedTagsSet = new Set(t.unpairedTags), t.stopNodes && Array.isArray(t.stopNodes) && (t.stopNodes = t.stopNodes.map((e) => typeof e == "string" && e.startsWith("*.") ? ".." + e.substring(2) : e)), t;
|
|
1723
|
+
}, ze = typeof Symbol == "function" ? Symbol("XML Node Metadata") : "@@xmlMetadata", E = class {
|
|
1724
1724
|
constructor(e) {
|
|
1725
1725
|
this.tagname = e, this.child = [], this[":@"] = Object.create(null);
|
|
1726
1726
|
}
|
|
@@ -1731,12 +1731,12 @@ var Le = function(e) {
|
|
|
1731
1731
|
e.tagname === "__proto__" && (e.tagname = "#__proto__"), e[":@"] && Object.keys(e[":@"]).length > 0 ? this.child.push({
|
|
1732
1732
|
[e.tagname]: e.child,
|
|
1733
1733
|
":@": e[":@"]
|
|
1734
|
-
}) : this.child.push({ [e.tagname]: e.child }), t !== void 0 && (this.child[this.child.length - 1][
|
|
1734
|
+
}) : this.child.push({ [e.tagname]: e.child }), t !== void 0 && (this.child[this.child.length - 1][ze] = { startIndex: t });
|
|
1735
1735
|
}
|
|
1736
1736
|
static getMetaDataSymbol() {
|
|
1737
|
-
return
|
|
1737
|
+
return ze;
|
|
1738
1738
|
}
|
|
1739
|
-
},
|
|
1739
|
+
}, Be = ":A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈--⁰-Ⰰ-、-豈-﷏ﷰ-�", Ve = ":A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈--⁰-Ⰰ-、-豈-﷏ﷰ-�\\-\\.\\d·̀-ͯ‿-⁀", He = ":A-Za-z_À-˿Ͱ-ͽͿ-҆҈--⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-", Ue = ":A-Za-z_À-˿Ͱ-ͽͿ-҆҈--⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-\\-\\.\\d·̀-ͯ҇‿-⁀", We = (e, t, n = "") => {
|
|
1740
1740
|
let r = `[${e.replace(":", "")}][${t.replace(":", "")}]*`;
|
|
1741
1741
|
return {
|
|
1742
1742
|
name: RegExp(`^[${e}][${t}]*$`, n),
|
|
@@ -1745,15 +1745,15 @@ var Le = function(e) {
|
|
|
1745
1745
|
nmToken: RegExp(`^[${t}]+$`, n),
|
|
1746
1746
|
nmTokens: RegExp(`^[${t}]+(?:\\s+[${t}]+)*$`, n)
|
|
1747
1747
|
};
|
|
1748
|
-
},
|
|
1748
|
+
}, Ge = We(Be, Ve), Ke = We(He, Ue, "u"), qe = We(":A-Za-z_", ":A-Za-z_\\-\\.\\d"), Je = (e = "1.0", t = !1) => t ? qe : e === "1.1" ? Ke : Ge, Ye = (e, { xmlVersion: t = "1.0", asciiOnly: n = !1 } = {}) => Je(t, n).qName.test(e), Xe = [
|
|
1749
1749
|
"name",
|
|
1750
1750
|
"ncName",
|
|
1751
1751
|
"qName",
|
|
1752
1752
|
"nmToken",
|
|
1753
1753
|
"nmTokens"
|
|
1754
|
-
],
|
|
1755
|
-
if (!
|
|
1756
|
-
let i =
|
|
1754
|
+
], Ze = (e, { xmlVersion: t = "1.0", asciiOnly: n = !1, maxCacheSize: r = 2048 } = {}) => {
|
|
1755
|
+
if (!Xe.includes(e)) throw TypeError(`Unknown production "${e}". Must be one of: ${Xe.join(", ")}`);
|
|
1756
|
+
let i = Je(t, n)[e], a = /* @__PURE__ */ new Map(), o = (e) => {
|
|
1757
1757
|
let t = a.get(e);
|
|
1758
1758
|
if (t !== void 0) return t;
|
|
1759
1759
|
let n = i.test(e);
|
|
@@ -1762,7 +1762,7 @@ var Le = function(e) {
|
|
|
1762
1762
|
return o.reset = () => {
|
|
1763
1763
|
a = /* @__PURE__ */ new Map();
|
|
1764
1764
|
}, o;
|
|
1765
|
-
},
|
|
1765
|
+
}, Qe = class {
|
|
1766
1766
|
constructor(e, t) {
|
|
1767
1767
|
this.suppressValidationErr = !e, this.options = e, this.xmlVersion = t || 1;
|
|
1768
1768
|
}
|
|
@@ -1775,23 +1775,23 @@ var Le = function(e) {
|
|
|
1775
1775
|
t += 9;
|
|
1776
1776
|
let i = 1, a = !1, o = !1, s = "";
|
|
1777
1777
|
for (; t < e.length; t++) if (e[t] === "<" && !o) {
|
|
1778
|
-
if (a &&
|
|
1778
|
+
if (a && O(e, "!ENTITY", t)) {
|
|
1779
1779
|
t += 7;
|
|
1780
1780
|
let i, a;
|
|
1781
1781
|
if ([i, a, t] = this.readEntityExp(e, t + 1, this.suppressValidationErr), a.indexOf("&") === -1) {
|
|
1782
1782
|
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})`);
|
|
1783
1783
|
n[i] = a, r++;
|
|
1784
1784
|
}
|
|
1785
|
-
} else if (a &&
|
|
1785
|
+
} else if (a && O(e, "!ELEMENT", t)) {
|
|
1786
1786
|
t += 8;
|
|
1787
1787
|
let { index: n } = this.readElementExp(e, t + 1);
|
|
1788
1788
|
t = n;
|
|
1789
|
-
} else if (a &&
|
|
1790
|
-
else if (a &&
|
|
1789
|
+
} else if (a && O(e, "!ATTLIST", t)) t += 8;
|
|
1790
|
+
else if (a && O(e, "!NOTATION", t)) {
|
|
1791
1791
|
t += 9;
|
|
1792
1792
|
let { index: n } = this.readNotationExp(e, t + 1, this.suppressValidationErr);
|
|
1793
1793
|
t = n;
|
|
1794
|
-
} else if (
|
|
1794
|
+
} else if (O(e, "!--", t)) o = !0;
|
|
1795
1795
|
else throw Error("Invalid DOCTYPE");
|
|
1796
1796
|
i++, s = "";
|
|
1797
1797
|
} else if (e[t] === ">") {
|
|
@@ -1805,11 +1805,11 @@ var Le = function(e) {
|
|
|
1805
1805
|
};
|
|
1806
1806
|
}
|
|
1807
1807
|
readEntityExp(e, t) {
|
|
1808
|
-
t =
|
|
1808
|
+
t = D(e, t);
|
|
1809
1809
|
let n = t;
|
|
1810
1810
|
for (; t < e.length && !/\s/.test(e[t]) && e[t] !== "\"" && e[t] !== "'";) t++;
|
|
1811
1811
|
let r = e.substring(n, t);
|
|
1812
|
-
if (
|
|
1812
|
+
if (k(r, { xmlVersion: this.xmlVersion }), t = D(e, t), !this.suppressValidationErr) {
|
|
1813
1813
|
if (e.substring(t, t + 6).toUpperCase() === "SYSTEM") throw Error("External entities are not supported");
|
|
1814
1814
|
if (e[t] === "%") throw Error("Parameter entities are not supported");
|
|
1815
1815
|
}
|
|
@@ -1822,16 +1822,16 @@ var Le = function(e) {
|
|
|
1822
1822
|
];
|
|
1823
1823
|
}
|
|
1824
1824
|
readNotationExp(e, t) {
|
|
1825
|
-
t =
|
|
1825
|
+
t = D(e, t);
|
|
1826
1826
|
let n = t;
|
|
1827
1827
|
for (; t < e.length && !/\s/.test(e[t]);) t++;
|
|
1828
1828
|
let r = e.substring(n, t);
|
|
1829
|
-
!this.suppressValidationErr &&
|
|
1829
|
+
!this.suppressValidationErr && k(r, { xmlVersion: this.xmlVersion }), t = D(e, t);
|
|
1830
1830
|
let i = e.substring(t, t + 6).toUpperCase();
|
|
1831
1831
|
if (!this.suppressValidationErr && i !== "SYSTEM" && i !== "PUBLIC") throw Error(`Expected SYSTEM or PUBLIC, found "${i}"`);
|
|
1832
|
-
t += i.length, t =
|
|
1832
|
+
t += i.length, t = D(e, t);
|
|
1833
1833
|
let a = null, o = null;
|
|
1834
|
-
if (i === "PUBLIC") [t, a] = this.readIdentifierVal(e, t, "publicIdentifier"), t =
|
|
1834
|
+
if (i === "PUBLIC") [t, a] = this.readIdentifierVal(e, t, "publicIdentifier"), t = D(e, t), (e[t] === "\"" || e[t] === "'") && ([t, o] = this.readIdentifierVal(e, t, "systemIdentifier"));
|
|
1835
1835
|
else if (i === "SYSTEM" && ([t, o] = this.readIdentifierVal(e, t, "systemIdentifier"), !this.suppressValidationErr && !o)) throw Error("Missing mandatory system identifier for SYSTEM notation");
|
|
1836
1836
|
return {
|
|
1837
1837
|
notationName: r,
|
|
@@ -1850,15 +1850,15 @@ var Le = function(e) {
|
|
|
1850
1850
|
return t++, [t, r];
|
|
1851
1851
|
}
|
|
1852
1852
|
readElementExp(e, t) {
|
|
1853
|
-
t =
|
|
1853
|
+
t = D(e, t);
|
|
1854
1854
|
let n = t;
|
|
1855
1855
|
for (; t < e.length && !/\s/.test(e[t]);) t++;
|
|
1856
1856
|
let r = e.substring(n, t);
|
|
1857
|
-
if (!this.suppressValidationErr && !
|
|
1858
|
-
t =
|
|
1857
|
+
if (!this.suppressValidationErr && !Ye(r, { xmlVersion: this.xmlVersion })) throw Error(`Invalid element name: "${r}"`);
|
|
1858
|
+
t = D(e, t);
|
|
1859
1859
|
let i = "";
|
|
1860
|
-
if (e[t] === "E" &&
|
|
1861
|
-
else if (e[t] === "A" &&
|
|
1860
|
+
if (e[t] === "E" && O(e, "MPTY", t)) t += 4;
|
|
1861
|
+
else if (e[t] === "A" && O(e, "NY", t)) t += 2;
|
|
1862
1862
|
else if (e[t] === "(") {
|
|
1863
1863
|
t++;
|
|
1864
1864
|
let n = t;
|
|
@@ -1872,25 +1872,25 @@ var Le = function(e) {
|
|
|
1872
1872
|
};
|
|
1873
1873
|
}
|
|
1874
1874
|
readAttlistExp(e, t) {
|
|
1875
|
-
t =
|
|
1875
|
+
t = D(e, t);
|
|
1876
1876
|
let n = t;
|
|
1877
1877
|
for (; t < e.length && !/\s/.test(e[t]);) t++;
|
|
1878
1878
|
let r = e.substring(n, t);
|
|
1879
|
-
for (
|
|
1879
|
+
for (k(r, { xmlVersion: this.xmlVersion }), t = D(e, t), n = t; t < e.length && !/\s/.test(e[t]);) t++;
|
|
1880
1880
|
let i = e.substring(n, t);
|
|
1881
|
-
if (!
|
|
1882
|
-
t =
|
|
1881
|
+
if (!k(i, { xmlVersion: this.xmlVersion })) throw Error(`Invalid attribute name: "${i}"`);
|
|
1882
|
+
t = D(e, t);
|
|
1883
1883
|
let a = "";
|
|
1884
1884
|
if (e.substring(t, t + 8).toUpperCase() === "NOTATION") {
|
|
1885
|
-
if (a = "NOTATION", t += 8, t =
|
|
1885
|
+
if (a = "NOTATION", t += 8, t = D(e, t), e[t] !== "(") throw Error(`Expected '(', found "${e[t]}"`);
|
|
1886
1886
|
t++;
|
|
1887
1887
|
let n = [];
|
|
1888
1888
|
for (; t < e.length && e[t] !== ")";) {
|
|
1889
1889
|
let r = t;
|
|
1890
1890
|
for (; t < e.length && e[t] !== "|" && e[t] !== ")";) t++;
|
|
1891
1891
|
let i = e.substring(r, t);
|
|
1892
|
-
if (i = i.trim(), !
|
|
1893
|
-
n.push(i), e[t] === "|" && (t++, t =
|
|
1892
|
+
if (i = i.trim(), !k(i, { xmlVersion: this.xmlVersion })) throw Error(`Invalid notation name: "${i}"`);
|
|
1893
|
+
n.push(i), e[t] === "|" && (t++, t = D(e, t));
|
|
1894
1894
|
}
|
|
1895
1895
|
if (e[t] !== ")") throw Error("Unterminated list of notations");
|
|
1896
1896
|
t++, a += " (" + n.join("|") + ")";
|
|
@@ -1908,7 +1908,7 @@ var Le = function(e) {
|
|
|
1908
1908
|
"NMTOKENS"
|
|
1909
1909
|
].includes(a.toUpperCase())) throw Error(`Invalid attribute type: "${a}"`);
|
|
1910
1910
|
}
|
|
1911
|
-
t =
|
|
1911
|
+
t = D(e, t);
|
|
1912
1912
|
let o = "";
|
|
1913
1913
|
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"), {
|
|
1914
1914
|
elementName: r,
|
|
@@ -1918,21 +1918,21 @@ var Le = function(e) {
|
|
|
1918
1918
|
index: t
|
|
1919
1919
|
};
|
|
1920
1920
|
}
|
|
1921
|
-
},
|
|
1921
|
+
}, D = (e, t) => {
|
|
1922
1922
|
for (; t < e.length && /\s/.test(e[t]);) t++;
|
|
1923
1923
|
return t;
|
|
1924
1924
|
};
|
|
1925
|
-
function
|
|
1925
|
+
function O(e, t, n) {
|
|
1926
1926
|
for (let r = 0; r < t.length; r++) if (t[r] !== e[n + r + 1]) return !1;
|
|
1927
1927
|
return !0;
|
|
1928
1928
|
}
|
|
1929
|
-
function
|
|
1930
|
-
if (
|
|
1929
|
+
function k(e, t) {
|
|
1930
|
+
if (Ye(e, { xmlVersion: t })) return e;
|
|
1931
1931
|
throw Error(`Invalid entity name ${e}`);
|
|
1932
1932
|
}
|
|
1933
1933
|
//#endregion
|
|
1934
1934
|
//#region ../../node_modules/.pnpm/anynum@1.0.1/node_modules/anynum/digitTable.js
|
|
1935
|
-
var
|
|
1935
|
+
var $e = [
|
|
1936
1936
|
48,
|
|
1937
1937
|
1632,
|
|
1938
1938
|
1776,
|
|
@@ -1994,28 +1994,28 @@ var Qe = [
|
|
|
1994
1994
|
124144,
|
|
1995
1995
|
125264,
|
|
1996
1996
|
130032
|
|
1997
|
-
],
|
|
1998
|
-
for (let e of
|
|
1997
|
+
], A = /* @__PURE__ */ new Map(), et = 65535, tt = 1632, nt = new Uint8Array(63904).fill(255);
|
|
1998
|
+
for (let e of $e) for (let t = 0; t < 10; t++) {
|
|
1999
1999
|
let n = e + t;
|
|
2000
|
-
n <= et ?
|
|
2000
|
+
n <= et ? nt[n - tt] = t : A.set(n, t);
|
|
2001
2001
|
}
|
|
2002
2002
|
//#endregion
|
|
2003
2003
|
//#region ../../node_modules/.pnpm/anynum@1.0.1/node_modules/anynum/anynum.js
|
|
2004
|
-
var
|
|
2004
|
+
var rt = 48, it = 57, at = 45, j = new Set([
|
|
2005
2005
|
8722,
|
|
2006
2006
|
65293,
|
|
2007
2007
|
65123
|
|
2008
2008
|
]);
|
|
2009
|
-
function
|
|
2009
|
+
function ot(e) {
|
|
2010
2010
|
if (typeof e != "string") return e;
|
|
2011
2011
|
let t = e.length;
|
|
2012
2012
|
if (t === 0) return e;
|
|
2013
2013
|
let n = -1;
|
|
2014
2014
|
for (let r = 0; r < t; r++) {
|
|
2015
2015
|
let i = e.charCodeAt(r);
|
|
2016
|
-
if (!(i >=
|
|
2016
|
+
if (!(i >= rt && i <= it || i === at)) {
|
|
2017
2017
|
if (i < 1632) {
|
|
2018
|
-
if (
|
|
2018
|
+
if (j.has(i)) {
|
|
2019
2019
|
n = r;
|
|
2020
2020
|
break;
|
|
2021
2021
|
}
|
|
@@ -2026,7 +2026,7 @@ function at(e) {
|
|
|
2026
2026
|
let t = e.charCodeAt(r + 1);
|
|
2027
2027
|
if (t >= 56320 && t <= 57343) {
|
|
2028
2028
|
let e = 65536 + (i - 55296 << 10) + (t - 56320);
|
|
2029
|
-
if (
|
|
2029
|
+
if (A.has(e)) {
|
|
2030
2030
|
n = r;
|
|
2031
2031
|
break;
|
|
2032
2032
|
}
|
|
@@ -2034,7 +2034,7 @@ function at(e) {
|
|
|
2034
2034
|
}
|
|
2035
2035
|
continue;
|
|
2036
2036
|
}
|
|
2037
|
-
if (
|
|
2037
|
+
if (nt[i - 1632] !== 255 || j.has(i)) {
|
|
2038
2038
|
n = r;
|
|
2039
2039
|
break;
|
|
2040
2040
|
}
|
|
@@ -2045,19 +2045,19 @@ function at(e) {
|
|
|
2045
2045
|
n > 0 && r.push(e.slice(0, n));
|
|
2046
2046
|
for (let i = n; i < t; i++) {
|
|
2047
2047
|
let n = e.charCodeAt(i);
|
|
2048
|
-
if (n >=
|
|
2048
|
+
if (n >= rt && n <= it || n === at) {
|
|
2049
2049
|
r.push(e[i]);
|
|
2050
2050
|
continue;
|
|
2051
2051
|
}
|
|
2052
2052
|
if (n < 1632) {
|
|
2053
|
-
r.push(
|
|
2053
|
+
r.push(j.has(n) ? "-" : e[i]);
|
|
2054
2054
|
continue;
|
|
2055
2055
|
}
|
|
2056
2056
|
if (n >= 55296 && n <= 56319) {
|
|
2057
2057
|
if (i + 1 < t) {
|
|
2058
2058
|
let t = e.charCodeAt(i + 1);
|
|
2059
2059
|
if (t >= 56320 && t <= 57343) {
|
|
2060
|
-
let e = 65536 + (n - 55296 << 10) + (t - 56320), a =
|
|
2060
|
+
let e = 65536 + (n - 55296 << 10) + (t - 56320), a = A.get(e);
|
|
2061
2061
|
if (a !== void 0) {
|
|
2062
2062
|
r.push(String.fromCharCode(a + 48)), i++;
|
|
2063
2063
|
continue;
|
|
@@ -2067,18 +2067,18 @@ function at(e) {
|
|
|
2067
2067
|
r.push(e[i]);
|
|
2068
2068
|
continue;
|
|
2069
2069
|
}
|
|
2070
|
-
if (
|
|
2070
|
+
if (j.has(n)) {
|
|
2071
2071
|
r.push("-");
|
|
2072
2072
|
continue;
|
|
2073
2073
|
}
|
|
2074
|
-
let a =
|
|
2074
|
+
let a = nt[n - tt];
|
|
2075
2075
|
r.push(a === 255 ? e[i] : String.fromCharCode(a + 48));
|
|
2076
2076
|
}
|
|
2077
2077
|
return r.join("");
|
|
2078
2078
|
}
|
|
2079
2079
|
//#endregion
|
|
2080
2080
|
//#region ../../node_modules/.pnpm/strnum@2.4.1/node_modules/strnum/strnum.js
|
|
2081
|
-
var
|
|
2081
|
+
var st = /^[-+]?0x[a-fA-F0-9]+$/, ct = /^0b[01]+$/, lt = /^0o[0-7]+$/, ut = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/, dt = {
|
|
2082
2082
|
hex: !0,
|
|
2083
2083
|
binary: !1,
|
|
2084
2084
|
octal: !1,
|
|
@@ -2088,20 +2088,20 @@ var ot = /^[-+]?0x[a-fA-F0-9]+$/, st = /^0b[01]+$/, ct = /^0o[0-7]+$/, lt = /^([
|
|
|
2088
2088
|
infinity: "original",
|
|
2089
2089
|
unicode: !1
|
|
2090
2090
|
};
|
|
2091
|
-
function
|
|
2092
|
-
if (t = Object.assign({},
|
|
2091
|
+
function ft(e, t = {}) {
|
|
2092
|
+
if (t = Object.assign({}, dt, t), !e || typeof e != "string") return e;
|
|
2093
2093
|
let n = e.trim();
|
|
2094
2094
|
if (n.length === 0 || t.skipLike !== void 0 && t.skipLike.test(n)) return e;
|
|
2095
|
-
if (n === "0" || t.unicode && (n =
|
|
2096
|
-
if (t.hex &&
|
|
2097
|
-
if (t.binary &&
|
|
2098
|
-
if (t.octal &&
|
|
2099
|
-
if (!isFinite(n)) return
|
|
2100
|
-
if (n.includes("e") || n.includes("E")) return
|
|
2095
|
+
if (n === "0" || t.unicode && (n = ot(n), n === "0")) return 0;
|
|
2096
|
+
if (t.hex && st.test(n)) return gt(n, 16);
|
|
2097
|
+
if (t.binary && ct.test(n)) return gt(n, 2);
|
|
2098
|
+
if (t.octal && lt.test(n)) return gt(n, 8);
|
|
2099
|
+
if (!isFinite(n)) return _t(e, Number(n), t);
|
|
2100
|
+
if (n.includes("e") || n.includes("E")) return mt(e, n, t);
|
|
2101
2101
|
{
|
|
2102
|
-
let r =
|
|
2102
|
+
let r = ut.exec(n);
|
|
2103
2103
|
if (r) {
|
|
2104
|
-
let i = r[1] || "", a = r[2], o =
|
|
2104
|
+
let i = r[1] || "", a = r[2], o = ht(r[3]), s = i ? e[a.length + 1] === "." : e[a.length] === ".";
|
|
2105
2105
|
if (!t.leadingZeros && (a.length > 1 || a.length === 1 && !s)) return e;
|
|
2106
2106
|
{
|
|
2107
2107
|
let r = Number(n), s = String(r);
|
|
@@ -2114,26 +2114,26 @@ function dt(e, t = {}) {
|
|
|
2114
2114
|
} else return e;
|
|
2115
2115
|
}
|
|
2116
2116
|
}
|
|
2117
|
-
var
|
|
2118
|
-
function
|
|
2117
|
+
var pt = /^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;
|
|
2118
|
+
function mt(e, t, n) {
|
|
2119
2119
|
if (!n.eNotation) return e;
|
|
2120
|
-
let r = t.match(
|
|
2120
|
+
let r = t.match(pt);
|
|
2121
2121
|
if (r) {
|
|
2122
2122
|
let i = r[1] || "", a = r[3].indexOf("e") === -1 ? "E" : "e", o = r[2], s = i ? e[o.length + 1] === a : e[o.length] === a;
|
|
2123
2123
|
return o.length > 1 && s ? e : o.length === 1 && (r[3].startsWith(`.${a}`) || r[3][0] === a) ? Number(t) : o.length > 0 ? n.leadingZeros && !s ? (t = (r[1] || "") + r[3], Number(t)) : e : Number(t);
|
|
2124
2124
|
} else return e;
|
|
2125
2125
|
}
|
|
2126
|
-
function
|
|
2126
|
+
function ht(e) {
|
|
2127
2127
|
return e && e.indexOf(".") !== -1 ? (e = e.replace(/0+$/, ""), e === "." ? e = "0" : e[0] === "." ? e = "0" + e : e[e.length - 1] === "." && (e = e.substring(0, e.length - 1)), e) : e;
|
|
2128
2128
|
}
|
|
2129
|
-
function
|
|
2129
|
+
function gt(e, t) {
|
|
2130
2130
|
let n = e.trim();
|
|
2131
2131
|
if ((t === 2 || t === 8) && (e = n.substring(2)), parseInt) return parseInt(e, t);
|
|
2132
2132
|
if (Number.parseInt) return Number.parseInt(e, t);
|
|
2133
2133
|
if (window && window.parseInt) return window.parseInt(e, t);
|
|
2134
2134
|
throw Error("parseInt, Number.parseInt, window.parseInt are not supported");
|
|
2135
2135
|
}
|
|
2136
|
-
function
|
|
2136
|
+
function _t(e, t, n) {
|
|
2137
2137
|
let r = t === Infinity;
|
|
2138
2138
|
switch (n.infinity.toLowerCase()) {
|
|
2139
2139
|
case "null": return null;
|
|
@@ -2144,14 +2144,14 @@ function ht(e, t, n) {
|
|
|
2144
2144
|
}
|
|
2145
2145
|
//#endregion
|
|
2146
2146
|
//#region ../../node_modules/.pnpm/fast-xml-parser@5.10.0/node_modules/fast-xml-parser/src/ignoreAttributes.js
|
|
2147
|
-
function
|
|
2147
|
+
function vt(e) {
|
|
2148
2148
|
return typeof e == "function" ? e : Array.isArray(e) ? (t) => {
|
|
2149
2149
|
for (let n of e) if (typeof n == "string" && t === n || n instanceof RegExp && n.test(t)) return !0;
|
|
2150
2150
|
} : () => !1;
|
|
2151
2151
|
}
|
|
2152
2152
|
//#endregion
|
|
2153
2153
|
//#region ../../node_modules/.pnpm/path-expression-matcher@1.6.2/node_modules/path-expression-matcher/src/Expression.js
|
|
2154
|
-
var
|
|
2154
|
+
var M = class {
|
|
2155
2155
|
constructor(e, t = {}, n) {
|
|
2156
2156
|
this.pattern = e, this.separator = t.separator || ".", this.segments = this._parse(e), this.data = n, this._hasDeepWildcard = this.segments.some((e) => e.type === "deep-wildcard"), this._hasAttributeCondition = this.segments.some((e) => e.attrName !== void 0), this._hasPositionSelector = this.segments.some((e) => e.position !== void 0);
|
|
2157
2157
|
}
|
|
@@ -2207,7 +2207,7 @@ var P = class {
|
|
|
2207
2207
|
toString() {
|
|
2208
2208
|
return this.pattern;
|
|
2209
2209
|
}
|
|
2210
|
-
},
|
|
2210
|
+
}, yt = class {
|
|
2211
2211
|
constructor() {
|
|
2212
2212
|
this._byDepthAndTag = /* @__PURE__ */ new Map(), this._wildcardByDepth = /* @__PURE__ */ new Map(), this._deepWildcards = [], this._deepByTerminalTag = /* @__PURE__ */ new Map(), this._patterns = /* @__PURE__ */ new Set(), this._sealed = !1;
|
|
2213
2213
|
}
|
|
@@ -2265,7 +2265,7 @@ var P = class {
|
|
|
2265
2265
|
for (let t = 0; t < this._deepWildcards.length; t++) if (e.matches(this._deepWildcards[t])) return this._deepWildcards[t];
|
|
2266
2266
|
return null;
|
|
2267
2267
|
}
|
|
2268
|
-
},
|
|
2268
|
+
}, bt = class {
|
|
2269
2269
|
constructor(e) {
|
|
2270
2270
|
this._matcher = e;
|
|
2271
2271
|
}
|
|
@@ -2322,9 +2322,9 @@ var P = class {
|
|
|
2322
2322
|
matchesAny(e) {
|
|
2323
2323
|
return e.matchesAny(this._matcher);
|
|
2324
2324
|
}
|
|
2325
|
-
},
|
|
2325
|
+
}, N = class {
|
|
2326
2326
|
constructor(e = {}) {
|
|
2327
|
-
this.separator = e.separator || ".", this.path = [], this.siblingStacks = [], this._pathStringCache = null, this._view = new
|
|
2327
|
+
this.separator = e.separator || ".", this.path = [], this.siblingStacks = [], this._pathStringCache = null, this._view = new bt(this), this._keptAttrs = [];
|
|
2328
2328
|
}
|
|
2329
2329
|
push(e, t = null, n = null, r = null) {
|
|
2330
2330
|
this._pathStringCache = null, this.path.length > 0 && (this.path[this.path.length - 1].values = void 0);
|
|
@@ -2475,7 +2475,7 @@ var P = class {
|
|
|
2475
2475
|
readOnly() {
|
|
2476
2476
|
return this._view;
|
|
2477
2477
|
}
|
|
2478
|
-
},
|
|
2478
|
+
}, P = [
|
|
2479
2479
|
{
|
|
2480
2480
|
id: "html-script-open",
|
|
2481
2481
|
description: "<script opening tag",
|
|
@@ -2561,7 +2561,7 @@ var P = class {
|
|
|
2561
2561
|
description: "<form tag — can be used for phishing / credential harvesting injection",
|
|
2562
2562
|
pattern: /<form[\s>/]/i
|
|
2563
2563
|
}
|
|
2564
|
-
],
|
|
2564
|
+
], F = [
|
|
2565
2565
|
{
|
|
2566
2566
|
id: "xml-cdata-injection",
|
|
2567
2567
|
description: "CDATA section injection: <![CDATA[ breaks out of text node context",
|
|
@@ -2622,7 +2622,7 @@ var P = class {
|
|
|
2622
2622
|
description: "?> closes an enclosing processing instruction",
|
|
2623
2623
|
pattern: /\?>/
|
|
2624
2624
|
}
|
|
2625
|
-
],
|
|
2625
|
+
], xt = [
|
|
2626
2626
|
{
|
|
2627
2627
|
id: "svg-script-element",
|
|
2628
2628
|
description: "<script element inside SVG executes JavaScript",
|
|
@@ -2688,7 +2688,7 @@ var P = class {
|
|
|
2688
2688
|
description: "style= attribute containing javascript: (e.g. background:url(javascript:...))",
|
|
2689
2689
|
pattern: /style\s*=[\s\S]{0,60}javascript\s*:/i
|
|
2690
2690
|
}
|
|
2691
|
-
],
|
|
2691
|
+
], I = [
|
|
2692
2692
|
{
|
|
2693
2693
|
id: "sql-block-comment-open",
|
|
2694
2694
|
description: "SQL block comment open: /* ... */ — unusual in legitimate user text",
|
|
@@ -2764,7 +2764,7 @@ var P = class {
|
|
|
2764
2764
|
description: "INFORMATION_SCHEMA — reconnaissance query for table/column enumeration",
|
|
2765
2765
|
pattern: /\bINFORMATION_SCHEMA\b/i
|
|
2766
2766
|
}
|
|
2767
|
-
],
|
|
2767
|
+
], St = [
|
|
2768
2768
|
{
|
|
2769
2769
|
id: "shell-path-traversal-unix",
|
|
2770
2770
|
description: "Unix path traversal: ../ — climbing the directory tree",
|
|
@@ -2855,7 +2855,7 @@ var P = class {
|
|
|
2855
2855
|
description: "curl/wget with URL or flags — can exfiltrate data or download payloads",
|
|
2856
2856
|
pattern: /\b(?:curl|wget)\s+(?:https?:\/\/|ftp:\/\/|-)/i
|
|
2857
2857
|
}
|
|
2858
|
-
],
|
|
2858
|
+
], Ct = [
|
|
2859
2859
|
{
|
|
2860
2860
|
id: "redos-nested-quantifier-plus",
|
|
2861
2861
|
description: "Nested + quantifier inside a group with outer quantifier: (a+)+, (.+b)*, etc.",
|
|
@@ -2896,71 +2896,71 @@ var P = class {
|
|
|
2896
2896
|
description: "Long alternation with many similar branches — polynomial backtracking risk",
|
|
2897
2897
|
pattern: /\([^)]{0,200}(?:\|[^|)]{0,50}){9,}\)/
|
|
2898
2898
|
}
|
|
2899
|
-
],
|
|
2899
|
+
], L = "[\"'\\s]*:", wt = [
|
|
2900
2900
|
{
|
|
2901
2901
|
id: "nosql-where-operator",
|
|
2902
2902
|
description: "$where — executes arbitrary JavaScript server-side in MongoDB",
|
|
2903
|
-
pattern: RegExp(`\\$where${
|
|
2903
|
+
pattern: RegExp(`\\$where${L}`, "i")
|
|
2904
2904
|
},
|
|
2905
2905
|
{
|
|
2906
2906
|
id: "nosql-ne-operator",
|
|
2907
2907
|
description: "$ne — \"not equal\" operator used to bypass equality checks",
|
|
2908
|
-
pattern: RegExp(`\\$ne${
|
|
2908
|
+
pattern: RegExp(`\\$ne${L}`, "i")
|
|
2909
2909
|
},
|
|
2910
2910
|
{
|
|
2911
2911
|
id: "nosql-gt-operator",
|
|
2912
2912
|
description: "$gt — \"greater than\" used to bypass password/value checks",
|
|
2913
|
-
pattern: RegExp(`\\$gte?${
|
|
2913
|
+
pattern: RegExp(`\\$gte?${L}`, "i")
|
|
2914
2914
|
},
|
|
2915
2915
|
{
|
|
2916
2916
|
id: "nosql-lt-operator",
|
|
2917
2917
|
description: "$lt / $lte — \"less than\" bypass variants",
|
|
2918
|
-
pattern: RegExp(`\\$lte?${
|
|
2918
|
+
pattern: RegExp(`\\$lte?${L}`, "i")
|
|
2919
2919
|
},
|
|
2920
2920
|
{
|
|
2921
2921
|
id: "nosql-regex-operator",
|
|
2922
2922
|
description: "$regex — can be used to extract data character by character (blind injection)",
|
|
2923
|
-
pattern: RegExp(`\\$regex${
|
|
2923
|
+
pattern: RegExp(`\\$regex${L}`, "i")
|
|
2924
2924
|
},
|
|
2925
2925
|
{
|
|
2926
2926
|
id: "nosql-or-operator",
|
|
2927
2927
|
description: "$or — logical OR; used to create always-true conditions",
|
|
2928
|
-
pattern: RegExp(`\\$or${
|
|
2928
|
+
pattern: RegExp(`\\$or${L}\\s*\\[`, "i")
|
|
2929
2929
|
},
|
|
2930
2930
|
{
|
|
2931
2931
|
id: "nosql-and-operator",
|
|
2932
2932
|
description: "$and — logical AND operator injection",
|
|
2933
|
-
pattern: RegExp(`\\$and${
|
|
2933
|
+
pattern: RegExp(`\\$and${L}\\s*\\[`, "i")
|
|
2934
2934
|
},
|
|
2935
2935
|
{
|
|
2936
2936
|
id: "nosql-nor-operator",
|
|
2937
2937
|
description: "$nor — logical NOR operator injection",
|
|
2938
|
-
pattern: RegExp(`\\$nor${
|
|
2938
|
+
pattern: RegExp(`\\$nor${L}\\s*\\[`, "i")
|
|
2939
2939
|
},
|
|
2940
2940
|
{
|
|
2941
2941
|
id: "nosql-exists-operator",
|
|
2942
2942
|
description: "$exists — can enumerate fields to determine schema",
|
|
2943
|
-
pattern: RegExp(`\\$exists${
|
|
2943
|
+
pattern: RegExp(`\\$exists${L}`, "i")
|
|
2944
2944
|
},
|
|
2945
2945
|
{
|
|
2946
2946
|
id: "nosql-in-operator",
|
|
2947
2947
|
description: "$in — matches any value in a list; can enumerate values",
|
|
2948
|
-
pattern: RegExp(`\\$in${
|
|
2948
|
+
pattern: RegExp(`\\$in${L}\\s*\\[`, "i")
|
|
2949
2949
|
},
|
|
2950
2950
|
{
|
|
2951
2951
|
id: "nosql-expr-operator",
|
|
2952
2952
|
description: "$expr — allows aggregation expressions in queries (MongoDB 3.6+)",
|
|
2953
|
-
pattern: RegExp(`\\$expr${
|
|
2953
|
+
pattern: RegExp(`\\$expr${L}`, "i")
|
|
2954
2954
|
},
|
|
2955
2955
|
{
|
|
2956
2956
|
id: "nosql-function-operator",
|
|
2957
2957
|
description: "$function — executes arbitrary JavaScript in MongoDB 4.4+",
|
|
2958
|
-
pattern: RegExp(`\\$function${
|
|
2958
|
+
pattern: RegExp(`\\$function${L}`, "i")
|
|
2959
2959
|
},
|
|
2960
2960
|
{
|
|
2961
2961
|
id: "nosql-accumulator-operator",
|
|
2962
2962
|
description: "$accumulator — custom aggregation with arbitrary JS execution",
|
|
2963
|
-
pattern: RegExp(`\\$accumulator${
|
|
2963
|
+
pattern: RegExp(`\\$accumulator${L}`, "i")
|
|
2964
2964
|
},
|
|
2965
2965
|
{
|
|
2966
2966
|
id: "nosql-proto-pollution",
|
|
@@ -2977,7 +2977,7 @@ var P = class {
|
|
|
2977
2977
|
description: "[\"__proto__\"] — bracket-notation prototype pollution",
|
|
2978
2978
|
pattern: /\[["']__proto__["']\]/
|
|
2979
2979
|
}
|
|
2980
|
-
],
|
|
2980
|
+
], Tt = [
|
|
2981
2981
|
{
|
|
2982
2982
|
id: "log-crlf-injection",
|
|
2983
2983
|
description: "CRLF injection: literal \\r or \\n embeds fake log lines",
|
|
@@ -3038,7 +3038,7 @@ var P = class {
|
|
|
3038
3038
|
description: "ANSI escape sequence: ESC[ — can manipulate terminal output when logs are tailed",
|
|
3039
3039
|
pattern: /\x1b\[/
|
|
3040
3040
|
}
|
|
3041
|
-
],
|
|
3041
|
+
], Et = [
|
|
3042
3042
|
{
|
|
3043
3043
|
id: "sql-line-comment",
|
|
3044
3044
|
description: "SQL line comment: -- followed by whitespace or end of string",
|
|
@@ -3054,22 +3054,22 @@ var P = class {
|
|
|
3054
3054
|
description: "Hex-encoded string injection: 0x41414141 style (MySQL)",
|
|
3055
3055
|
pattern: /\b0x[0-9a-f]{4,}/i
|
|
3056
3056
|
}
|
|
3057
|
-
],
|
|
3058
|
-
|
|
3059
|
-
HTML:
|
|
3060
|
-
XML:
|
|
3061
|
-
SVG:
|
|
3062
|
-
SQL:
|
|
3063
|
-
"SQL-STRICT":
|
|
3064
|
-
SHELL:
|
|
3065
|
-
REDOS:
|
|
3066
|
-
NOSQL:
|
|
3067
|
-
LOG:
|
|
3057
|
+
], Dt = [...I, ...Et];
|
|
3058
|
+
P.label = "HTML", F.label = "XML", xt.label = "SVG", I.label = "SQL", Dt.label = "SQL-STRICT", St.label = "SHELL", Ct.label = "REDOS", wt.label = "NOSQL", Tt.label = "LOG", Object.freeze({
|
|
3059
|
+
HTML: P,
|
|
3060
|
+
XML: F,
|
|
3061
|
+
SVG: xt,
|
|
3062
|
+
SQL: I,
|
|
3063
|
+
"SQL-STRICT": Dt,
|
|
3064
|
+
SHELL: St,
|
|
3065
|
+
REDOS: Ct,
|
|
3066
|
+
NOSQL: wt,
|
|
3067
|
+
LOG: Tt
|
|
3068
3068
|
});
|
|
3069
|
-
function
|
|
3069
|
+
function Ot(e) {
|
|
3070
3070
|
if (typeof e != "string") throw TypeError(`is-unsafe: first argument must be a string, got ${typeof e}`);
|
|
3071
3071
|
}
|
|
3072
|
-
function
|
|
3072
|
+
function kt(e) {
|
|
3073
3073
|
if (!(e instanceof RegExp)) {
|
|
3074
3074
|
if (Array.isArray(e)) {
|
|
3075
3075
|
if (e.length === 0) throw TypeError("is-unsafe: context must not be an empty array");
|
|
@@ -3081,7 +3081,7 @@ function Dt(e) {
|
|
|
3081
3081
|
throw TypeError(`is-unsafe: second argument must be a PatternList (e.g. HTML), an array of PatternLists (e.g. [HTML, XML]), or a RegExp. Got: ${typeof e}`);
|
|
3082
3082
|
}
|
|
3083
3083
|
}
|
|
3084
|
-
function
|
|
3084
|
+
function At(e) {
|
|
3085
3085
|
return e instanceof RegExp ? {
|
|
3086
3086
|
lists: null,
|
|
3087
3087
|
regex: e
|
|
@@ -3093,7 +3093,7 @@ function Ot(e) {
|
|
|
3093
3093
|
regex: null
|
|
3094
3094
|
};
|
|
3095
3095
|
}
|
|
3096
|
-
function
|
|
3096
|
+
function jt(e, t) {
|
|
3097
3097
|
let n = t.label ?? "CUSTOM";
|
|
3098
3098
|
for (let r of t) if (r.pattern.test(e)) return {
|
|
3099
3099
|
context: n,
|
|
@@ -3103,16 +3103,16 @@ function kt(e, t) {
|
|
|
3103
3103
|
};
|
|
3104
3104
|
return null;
|
|
3105
3105
|
}
|
|
3106
|
-
function
|
|
3107
|
-
|
|
3108
|
-
let { lists: n, regex: r } =
|
|
3106
|
+
function Mt(e, t) {
|
|
3107
|
+
Ot(e), kt(t);
|
|
3108
|
+
let { lists: n, regex: r } = At(t);
|
|
3109
3109
|
if (r) return r.test(e);
|
|
3110
|
-
for (let t of n) if (
|
|
3110
|
+
for (let t of n) if (jt(e, t) !== null) return !0;
|
|
3111
3111
|
return !1;
|
|
3112
3112
|
}
|
|
3113
3113
|
//#endregion
|
|
3114
3114
|
//#region ../../node_modules/.pnpm/fast-xml-parser@5.10.0/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js
|
|
3115
|
-
function
|
|
3115
|
+
function Nt(e, t) {
|
|
3116
3116
|
if (!e) return {};
|
|
3117
3117
|
let n = t.attributesGroupName ? e[t.attributesGroupName] : e;
|
|
3118
3118
|
if (!n) return {};
|
|
@@ -3123,7 +3123,7 @@ function jt(e, t) {
|
|
|
3123
3123
|
} else r[e] = n[e];
|
|
3124
3124
|
return r;
|
|
3125
3125
|
}
|
|
3126
|
-
function
|
|
3126
|
+
function Pt(e) {
|
|
3127
3127
|
if (!e || typeof e != "string") return;
|
|
3128
3128
|
let t = e.indexOf(":");
|
|
3129
3129
|
if (t !== -1 && t > 0) {
|
|
@@ -3131,14 +3131,14 @@ function Mt(e) {
|
|
|
3131
3131
|
if (n !== "xmlns") return n;
|
|
3132
3132
|
}
|
|
3133
3133
|
}
|
|
3134
|
-
var
|
|
3134
|
+
var Ft = class {
|
|
3135
3135
|
constructor(e, t) {
|
|
3136
|
-
this.options = e, this.currentNode = null, this.tagsNodeStack = [], this.parseXml =
|
|
3136
|
+
this.options = e, this.currentNode = null, this.tagsNodeStack = [], this.parseXml = Bt, this.parseTextData = It, this.resolveNameSpace = Lt, this.buildAttributesMap = zt, this.isItStopNode = Wt, this.replaceEntitiesValue = Ht, this.readStopNodeData = Jt, this.saveTextToParentTag = Ut, this.addChild = Vt, this.ignoreAttributesFn = vt(this.options.ignoreAttributes), this.entityExpansionCount = 0, this.currentExpandedLength = 0;
|
|
3137
3137
|
let n = { ...Te };
|
|
3138
3138
|
this.options.entityDecoder ? this.entityDecoder = this.options.entityDecoder : (typeof this.options.htmlEntities == "object" ? n = this.options.htmlEntities : this.options.htmlEntities === !0 && (n = {
|
|
3139
3139
|
...Ee,
|
|
3140
3140
|
...Se
|
|
3141
|
-
}), this.entityDecoder = new
|
|
3141
|
+
}), this.entityDecoder = new Ne({
|
|
3142
3142
|
namedEntities: {
|
|
3143
3143
|
...n,
|
|
3144
3144
|
...t
|
|
@@ -3149,27 +3149,27 @@ var Nt = class {
|
|
|
3149
3149
|
maxExpandedLength: this.options.processEntities.maxExpandedLength,
|
|
3150
3150
|
applyLimitsTo: this.options.processEntities.appliesTo
|
|
3151
3151
|
},
|
|
3152
|
-
onInputEntity: (e, t) =>
|
|
3153
|
-
})), this.matcher = new
|
|
3152
|
+
onInputEntity: (e, t) => Mt(t, [P, F]) ? x.BLOCK : x.ALLOW
|
|
3153
|
+
})), this.matcher = new N(), this.readonlyMatcher = this.matcher.readOnly(), this.isCurrentNodeStopNode = !1, this.stopNodeExpressionsSet = new yt();
|
|
3154
3154
|
let r = this.options.stopNodes;
|
|
3155
3155
|
if (r && r.length > 0) {
|
|
3156
3156
|
for (let e = 0; e < r.length; e++) {
|
|
3157
3157
|
let t = r[e];
|
|
3158
|
-
typeof t == "string" ? this.stopNodeExpressionsSet.add(new
|
|
3158
|
+
typeof t == "string" ? this.stopNodeExpressionsSet.add(new M(t)) : t instanceof M && this.stopNodeExpressionsSet.add(t);
|
|
3159
3159
|
}
|
|
3160
3160
|
this.stopNodeExpressionsSet.seal();
|
|
3161
3161
|
}
|
|
3162
3162
|
}
|
|
3163
3163
|
};
|
|
3164
|
-
function
|
|
3164
|
+
function It(e, t, n, r, i, a, o) {
|
|
3165
3165
|
let s = this.options;
|
|
3166
3166
|
if (e !== void 0 && (s.trimValues && !r && (e = e.trim()), e.length > 0)) {
|
|
3167
3167
|
o || (e = this.replaceEntitiesValue(e, t, n));
|
|
3168
3168
|
let r = s.jPath ? n.toString() : n, c = s.tagValueProcessor(t, e, r, i, a);
|
|
3169
|
-
return c == null ? e : typeof c != typeof e || c !== e ? c : s.trimValues || e.trim() === e ?
|
|
3169
|
+
return c == null ? e : typeof c != typeof e || c !== e ? c : s.trimValues || e.trim() === e ? Yt(e, s.parseTagValue, s.numberParseOptions) : e;
|
|
3170
3170
|
}
|
|
3171
3171
|
}
|
|
3172
|
-
function
|
|
3172
|
+
function Lt(e) {
|
|
3173
3173
|
if (this.options.removeNSPrefix) {
|
|
3174
3174
|
let t = e.split(":"), n = e.charAt(0) === "/" ? "/" : "";
|
|
3175
3175
|
if (t[0] === "xmlns") return "";
|
|
@@ -3177,11 +3177,11 @@ function Ft(e) {
|
|
|
3177
3177
|
}
|
|
3178
3178
|
return e;
|
|
3179
3179
|
}
|
|
3180
|
-
var
|
|
3181
|
-
function
|
|
3180
|
+
var Rt = /* @__PURE__ */ RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?", "gm");
|
|
3181
|
+
function zt(e, t, n, r = !1) {
|
|
3182
3182
|
let i = this.options;
|
|
3183
3183
|
if (r === !0 || i.ignoreAttributes !== !0 && typeof e == "string") {
|
|
3184
|
-
let r = d(e,
|
|
3184
|
+
let r = d(e, Rt), a = r.length, o = {}, s = Array(a), c = !1, l = {};
|
|
3185
3185
|
for (let e = 0; e < a; e++) {
|
|
3186
3186
|
let t = this.resolveNameSpace(r[e][1]), a = r[e][4];
|
|
3187
3187
|
if (t.length && a !== void 0) {
|
|
@@ -3195,9 +3195,9 @@ function Lt(e, t, n, r = !1) {
|
|
|
3195
3195
|
let t = this.resolveNameSpace(r[e][1]);
|
|
3196
3196
|
if (this.ignoreAttributesFn(t, u)) continue;
|
|
3197
3197
|
let n = i.attributeNamePrefix + t;
|
|
3198
|
-
if (t.length) if (i.transformAttributeName && (n = i.transformAttributeName(n)), n =
|
|
3198
|
+
if (t.length) if (i.transformAttributeName && (n = i.transformAttributeName(n)), n = Zt(n, i), r[e][4] !== void 0) {
|
|
3199
3199
|
let r = s[e], a = i.attributeValueProcessor(t, r, u);
|
|
3200
|
-
a == null ? o[n] = r : typeof a != typeof r || a !== r ? o[n] = a : o[n] =
|
|
3200
|
+
a == null ? o[n] = r : typeof a != typeof r || a !== r ? o[n] = a : o[n] = Yt(r, i.parseAttributeValue, i.numberParseOptions), f = !0;
|
|
3201
3201
|
} else i.allowBooleanAttributes && (o[n] = !0, f = !0);
|
|
3202
3202
|
}
|
|
3203
3203
|
if (!f) return;
|
|
@@ -3208,25 +3208,25 @@ function Lt(e, t, n, r = !1) {
|
|
|
3208
3208
|
return o;
|
|
3209
3209
|
}
|
|
3210
3210
|
}
|
|
3211
|
-
var
|
|
3211
|
+
var Bt = function(e) {
|
|
3212
3212
|
e = e.replace(/\r\n?/g, "\n");
|
|
3213
|
-
let t = new
|
|
3213
|
+
let t = new E("!xml"), n = t, r = "";
|
|
3214
3214
|
this.matcher.reset(), this.entityDecoder.reset(), this.entityExpansionCount = 0, this.currentExpandedLength = 0;
|
|
3215
|
-
let i = this.options, a = new
|
|
3215
|
+
let i = this.options, a = new Qe(i.processEntities), o = e.length;
|
|
3216
3216
|
for (let s = 0; s < o; s++) if (e[s] === "<") {
|
|
3217
3217
|
let c = e.charCodeAt(s + 1);
|
|
3218
3218
|
if (c === 47) {
|
|
3219
|
-
let t =
|
|
3219
|
+
let t = R(e, ">", s, "Closing Tag is not closed."), a = e.substring(s + 2, t).trim();
|
|
3220
3220
|
if (i.removeNSPrefix) {
|
|
3221
3221
|
let e = a.indexOf(":");
|
|
3222
3222
|
e !== -1 && (a = a.substr(e + 1));
|
|
3223
3223
|
}
|
|
3224
|
-
a =
|
|
3224
|
+
a = Xt(i.transformTagName, a, "", i).tagName, n && (r = this.saveTextToParentTag(r, n, this.readonlyMatcher));
|
|
3225
3225
|
let o = this.matcher.getCurrentTag();
|
|
3226
3226
|
if (a && i.unpairedTagsSet.has(a)) throw Error(`Unpaired tag can not be used as closing tag: </${a}>`);
|
|
3227
3227
|
o && i.unpairedTagsSet.has(o) && (this.matcher.pop(), this.tagsNodeStack.pop()), this.matcher.pop(), this.isCurrentNodeStopNode = !1, n = this.tagsNodeStack.pop(), r = "", s = t;
|
|
3228
3228
|
} else if (c === 63) {
|
|
3229
|
-
let t =
|
|
3229
|
+
let t = qt(e, s, !1, "?>");
|
|
3230
3230
|
if (!t) throw Error("Pi Tag is not closed.");
|
|
3231
3231
|
r = this.saveTextToParentTag(r, n, this.readonlyMatcher);
|
|
3232
3232
|
let o = this.buildAttributesMap(t.tagExp, this.matcher, t.tagName, !0);
|
|
@@ -3235,12 +3235,12 @@ var Rt = function(e) {
|
|
|
3235
3235
|
this.entityDecoder.setXmlVersion(Number(e) || 1), a.setXmlVersion(Number(e) || 1);
|
|
3236
3236
|
}
|
|
3237
3237
|
if (!(i.ignoreDeclaration && t.tagName === "?xml" || i.ignorePiTags)) {
|
|
3238
|
-
let e = new
|
|
3238
|
+
let e = new E(t.tagName);
|
|
3239
3239
|
e.add(i.textNodeName, ""), t.tagName !== t.tagExp && t.attrExpPresent && i.ignoreAttributes !== !0 && (e[":@"] = o), this.addChild(n, e, this.readonlyMatcher, s);
|
|
3240
3240
|
}
|
|
3241
3241
|
s = t.closeIndex + 1;
|
|
3242
3242
|
} else if (c === 33 && e.charCodeAt(s + 2) === 45 && e.charCodeAt(s + 3) === 45) {
|
|
3243
|
-
let t =
|
|
3243
|
+
let t = R(e, "-->", s + 4, "Comment is not closed.");
|
|
3244
3244
|
if (i.commentPropName) {
|
|
3245
3245
|
let a = e.substring(s + 4, t - 2);
|
|
3246
3246
|
r = this.saveTextToParentTag(r, n, this.readonlyMatcher), n.add(i.commentPropName, [{ [i.textNodeName]: a }]);
|
|
@@ -3250,25 +3250,25 @@ var Rt = function(e) {
|
|
|
3250
3250
|
let t = a.readDocType(e, s);
|
|
3251
3251
|
this.entityDecoder.addInputEntities(t.entities), s = t.i;
|
|
3252
3252
|
} else if (c === 33 && e.charCodeAt(s + 2) === 91) {
|
|
3253
|
-
let t =
|
|
3253
|
+
let t = R(e, "]]>", s, "CDATA is not closed.") - 2, a = e.substring(s + 9, t);
|
|
3254
3254
|
r = this.saveTextToParentTag(r, n, this.readonlyMatcher);
|
|
3255
3255
|
let o = this.parseTextData(a, n.tagname, this.readonlyMatcher, !0, !1, !0, !0);
|
|
3256
3256
|
o ??= "", i.cdataPropName ? n.add(i.cdataPropName, [{ [i.textNodeName]: a }]) : n.add(i.textNodeName, o), s = t + 2;
|
|
3257
3257
|
} else {
|
|
3258
|
-
let a =
|
|
3258
|
+
let a = qt(e, s, i.removeNSPrefix);
|
|
3259
3259
|
if (!a) {
|
|
3260
3260
|
let t = e.substring(Math.max(0, s - 50), Math.min(o, s + 50));
|
|
3261
3261
|
throw Error(`readTagExp returned undefined at position ${s}. Context: "${t}"`);
|
|
3262
3262
|
}
|
|
3263
3263
|
let c = a.tagName, l = a.rawTagName, u = a.tagExp, d = a.attrExpPresent, f = a.closeIndex;
|
|
3264
|
-
if ({tagName: c, tagExp: u} =
|
|
3264
|
+
if ({tagName: c, tagExp: u} = Xt(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}`);
|
|
3265
3265
|
n && r && n.tagname !== "!xml" && (r = this.saveTextToParentTag(r, n, this.readonlyMatcher, !1));
|
|
3266
3266
|
let p = n;
|
|
3267
3267
|
p && i.unpairedTagsSet.has(p.tagname) && (n = this.tagsNodeStack.pop(), this.matcher.pop());
|
|
3268
3268
|
let m = !1;
|
|
3269
3269
|
u.length > 0 && u.lastIndexOf("/") === u.length - 1 && (m = !0, c[c.length - 1] === "/" ? (c = c.substr(0, c.length - 1), u = c) : u = u.substr(0, u.length - 1), d = c !== u);
|
|
3270
3270
|
let h = null, g;
|
|
3271
|
-
g =
|
|
3271
|
+
g = Pt(l), c !== t.tagname && this.matcher.push(c, {}, g), c !== u && d && (h = this.buildAttributesMap(u, this.matcher, c), h && Nt(h, i)), c !== t.tagname && (this.isCurrentNodeStopNode = this.isItStopNode());
|
|
3272
3272
|
let _ = s;
|
|
3273
3273
|
if (this.isCurrentNodeStopNode) {
|
|
3274
3274
|
let t = "";
|
|
@@ -3279,19 +3279,19 @@ var Rt = function(e) {
|
|
|
3279
3279
|
if (!n) throw Error(`Unexpected end of ${l}`);
|
|
3280
3280
|
s = n.i, t = n.tagContent;
|
|
3281
3281
|
}
|
|
3282
|
-
let r = new
|
|
3282
|
+
let r = new E(c);
|
|
3283
3283
|
h && (r[":@"] = h), r.add(i.textNodeName, t), this.matcher.pop(), this.isCurrentNodeStopNode = !1, this.addChild(n, r, this.readonlyMatcher, _);
|
|
3284
3284
|
} else {
|
|
3285
3285
|
if (m) {
|
|
3286
|
-
({tagName: c, tagExp: u} =
|
|
3287
|
-
let e = new
|
|
3286
|
+
({tagName: c, tagExp: u} = Xt(i.transformTagName, c, u, i));
|
|
3287
|
+
let e = new E(c);
|
|
3288
3288
|
h && (e[":@"] = h), this.addChild(n, e, this.readonlyMatcher, _), this.matcher.pop(), this.isCurrentNodeStopNode = !1;
|
|
3289
3289
|
} else if (i.unpairedTagsSet.has(c)) {
|
|
3290
|
-
let e = new
|
|
3290
|
+
let e = new E(c);
|
|
3291
3291
|
h && (e[":@"] = h), this.addChild(n, e, this.readonlyMatcher, _), this.matcher.pop(), this.isCurrentNodeStopNode = !1, s = a.closeIndex;
|
|
3292
3292
|
continue;
|
|
3293
3293
|
} else {
|
|
3294
|
-
let e = new
|
|
3294
|
+
let e = new E(c);
|
|
3295
3295
|
if (this.tagsNodeStack.length > i.maxNestedTags) throw Error("Maximum nested tags exceeded");
|
|
3296
3296
|
this.tagsNodeStack.push(n), h && (e[":@"] = h), this.addChild(n, e, this.readonlyMatcher, _), n = e;
|
|
3297
3297
|
}
|
|
@@ -3301,12 +3301,12 @@ var Rt = function(e) {
|
|
|
3301
3301
|
} else r += e[s];
|
|
3302
3302
|
return t.child;
|
|
3303
3303
|
};
|
|
3304
|
-
function
|
|
3304
|
+
function Vt(e, t, n, r) {
|
|
3305
3305
|
this.options.captureMetaData || (r = void 0);
|
|
3306
3306
|
let i = this.options.jPath ? n.toString() : n, a = this.options.updateTag(t.tagname, i, t[":@"]);
|
|
3307
3307
|
a === !1 || (typeof a == "string" && (t.tagname = a), e.addChild(t, r));
|
|
3308
3308
|
}
|
|
3309
|
-
function
|
|
3309
|
+
function Ht(e, t, n) {
|
|
3310
3310
|
let r = this.options.processEntities;
|
|
3311
3311
|
if (!r || !r.enabled) return e;
|
|
3312
3312
|
if (r.allowedTags) {
|
|
@@ -3319,13 +3319,13 @@ function Bt(e, t, n) {
|
|
|
3319
3319
|
}
|
|
3320
3320
|
return this.entityDecoder.decode(e);
|
|
3321
3321
|
}
|
|
3322
|
-
function
|
|
3322
|
+
function Ut(e, t, n, r) {
|
|
3323
3323
|
return e &&= (r === void 0 && (r = t.child.length === 0), e = this.parseTextData(e, t.tagname, n, !1, t[":@"] ? Object.keys(t[":@"]).length !== 0 : !1, r), e !== void 0 && e !== "" && t.add(this.options.textNodeName, e), ""), e;
|
|
3324
3324
|
}
|
|
3325
|
-
function
|
|
3325
|
+
function Wt() {
|
|
3326
3326
|
return this.stopNodeExpressionsSet.size === 0 ? !1 : this.matcher.matchesAny(this.stopNodeExpressionsSet);
|
|
3327
3327
|
}
|
|
3328
|
-
function
|
|
3328
|
+
function Gt(e, t, n = ">") {
|
|
3329
3329
|
let r = 0, i = e.length, a = n.charCodeAt(0), o = n.length > 1 ? n.charCodeAt(1) : -1, s = "", c = t;
|
|
3330
3330
|
for (let n = t; n < i; n++) {
|
|
3331
3331
|
let t = e.charCodeAt(n);
|
|
@@ -3343,18 +3343,18 @@ function Ut(e, t, n = ">") {
|
|
|
3343
3343
|
else t === 9 && !r && (s += e.substring(c, n) + " ", c = n + 1);
|
|
3344
3344
|
}
|
|
3345
3345
|
}
|
|
3346
|
-
function
|
|
3346
|
+
function R(e, t, n, r) {
|
|
3347
3347
|
let i = e.indexOf(t, n);
|
|
3348
3348
|
if (i === -1) throw Error(r);
|
|
3349
3349
|
return i + t.length - 1;
|
|
3350
3350
|
}
|
|
3351
|
-
function
|
|
3351
|
+
function Kt(e, t, n, r) {
|
|
3352
3352
|
let i = e.indexOf(t, n);
|
|
3353
3353
|
if (i === -1) throw Error(r);
|
|
3354
3354
|
return i;
|
|
3355
3355
|
}
|
|
3356
|
-
function
|
|
3357
|
-
let i =
|
|
3356
|
+
function qt(e, t, n, r = ">") {
|
|
3357
|
+
let i = Gt(e, t + 1, r);
|
|
3358
3358
|
if (!i) return;
|
|
3359
3359
|
let a = i.data, o = i.index, s = a.search(/\s/), c = a, l = !0;
|
|
3360
3360
|
s !== -1 && (c = a.substring(0, s), a = a.substring(s + 1).trimStart());
|
|
@@ -3371,51 +3371,51 @@ function V(e, t, n, r = ">") {
|
|
|
3371
3371
|
rawTagName: u
|
|
3372
3372
|
};
|
|
3373
3373
|
}
|
|
3374
|
-
function
|
|
3374
|
+
function Jt(e, t, n) {
|
|
3375
3375
|
let r = n, i = 1, a = e.length;
|
|
3376
3376
|
for (; n < a; n++) if (e[n] === "<") {
|
|
3377
3377
|
let a = e.charCodeAt(n + 1);
|
|
3378
3378
|
if (a === 47) {
|
|
3379
|
-
let a =
|
|
3379
|
+
let a = Kt(e, ">", n, `${t} is not closed`);
|
|
3380
3380
|
if (e.substring(n + 2, a).trim() === t && (i--, i === 0)) return {
|
|
3381
3381
|
tagContent: e.substring(r, n),
|
|
3382
3382
|
i: a
|
|
3383
3383
|
};
|
|
3384
3384
|
n = a;
|
|
3385
|
-
} else if (a === 63) n =
|
|
3386
|
-
else if (a === 33 && e.charCodeAt(n + 2) === 45 && e.charCodeAt(n + 3) === 45) n =
|
|
3387
|
-
else if (a === 33 && e.charCodeAt(n + 2) === 91) n =
|
|
3385
|
+
} else if (a === 63) n = R(e, "?>", n + 1, "StopNode is not closed.");
|
|
3386
|
+
else if (a === 33 && e.charCodeAt(n + 2) === 45 && e.charCodeAt(n + 3) === 45) n = R(e, "-->", n + 3, "StopNode is not closed.");
|
|
3387
|
+
else if (a === 33 && e.charCodeAt(n + 2) === 91) n = R(e, "]]>", n, "StopNode is not closed.") - 2;
|
|
3388
3388
|
else {
|
|
3389
|
-
let r =
|
|
3389
|
+
let r = qt(e, n, !1);
|
|
3390
3390
|
r && ((r && r.tagName) === t && r.tagExp[r.tagExp.length - 1] !== "/" && i++, n = r.closeIndex);
|
|
3391
3391
|
}
|
|
3392
3392
|
}
|
|
3393
3393
|
}
|
|
3394
|
-
function
|
|
3394
|
+
function Yt(e, t, n) {
|
|
3395
3395
|
if (t && typeof e == "string") {
|
|
3396
3396
|
let t = e.trim();
|
|
3397
|
-
return t === "true" ? !0 : t === "false" ? !1 :
|
|
3397
|
+
return t === "true" ? !0 : t === "false" ? !1 : ft(e, n);
|
|
3398
3398
|
} else if (p(e)) return e;
|
|
3399
3399
|
else return "";
|
|
3400
3400
|
}
|
|
3401
|
-
function
|
|
3401
|
+
function Xt(e, t, n, r) {
|
|
3402
3402
|
if (e) {
|
|
3403
3403
|
let r = e(t);
|
|
3404
3404
|
n === t && (n = r), t = r;
|
|
3405
3405
|
}
|
|
3406
|
-
return t =
|
|
3406
|
+
return t = Zt(t, r), {
|
|
3407
3407
|
tagName: t,
|
|
3408
3408
|
tagExp: n
|
|
3409
3409
|
};
|
|
3410
3410
|
}
|
|
3411
|
-
function
|
|
3411
|
+
function Zt(e, t) {
|
|
3412
3412
|
if (h.includes(e)) throw Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);
|
|
3413
3413
|
return m.includes(e) ? t.onDangerousProperty(e) : e;
|
|
3414
3414
|
}
|
|
3415
3415
|
//#endregion
|
|
3416
3416
|
//#region ../../node_modules/.pnpm/fast-xml-parser@5.10.0/node_modules/fast-xml-parser/src/xmlparser/node2json.js
|
|
3417
|
-
var
|
|
3418
|
-
function
|
|
3417
|
+
var Qt = E.getMetaDataSymbol();
|
|
3418
|
+
function $t(e, t) {
|
|
3419
3419
|
if (!e || typeof e != "object") return {};
|
|
3420
3420
|
if (!t) return e;
|
|
3421
3421
|
let n = {};
|
|
@@ -3425,22 +3425,22 @@ function Xt(e, t) {
|
|
|
3425
3425
|
} else n[r] = e[r];
|
|
3426
3426
|
return n;
|
|
3427
3427
|
}
|
|
3428
|
-
function
|
|
3429
|
-
return
|
|
3428
|
+
function en(e, t, n, r) {
|
|
3429
|
+
return tn(e, t, n, r);
|
|
3430
3430
|
}
|
|
3431
|
-
function
|
|
3431
|
+
function tn(e, t, n, r) {
|
|
3432
3432
|
let i, a = {};
|
|
3433
3433
|
for (let o = 0; o < e.length; o++) {
|
|
3434
|
-
let s = e[o], c =
|
|
3434
|
+
let s = e[o], c = nn(s);
|
|
3435
3435
|
if (c !== void 0 && c !== t.textNodeName) {
|
|
3436
|
-
let e =
|
|
3436
|
+
let e = $t(s[":@"] || {}, t.attributeNamePrefix);
|
|
3437
3437
|
n.push(c, e);
|
|
3438
3438
|
}
|
|
3439
3439
|
if (c === t.textNodeName) i === void 0 ? i = s[c] : i += "" + s[c];
|
|
3440
3440
|
else if (c === void 0) continue;
|
|
3441
3441
|
else if (s[c]) {
|
|
3442
|
-
let e =
|
|
3443
|
-
if (Object.keys(e).length === 0 && t.alwaysCreateTextNode && (e[t.textNodeName] = ""), s[":@"] ?
|
|
3442
|
+
let e = tn(s[c], t, n, r), i = an(e, t);
|
|
3443
|
+
if (Object.keys(e).length === 0 && t.alwaysCreateTextNode && (e[t.textNodeName] = ""), s[":@"] ? rn(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[Qt] !== void 0 && typeof e == "object" && e && (e[Qt] = s[Qt]), a[c] !== void 0 && Object.prototype.hasOwnProperty.call(a, c)) Array.isArray(a[c]) || (a[c] = [a[c]]), a[c].push(e);
|
|
3444
3444
|
else {
|
|
3445
3445
|
let n = t.jPath ? r.toString() : r;
|
|
3446
3446
|
t.isArray(c, n, i) ? a[c] = [e] : a[c] = e;
|
|
@@ -3450,14 +3450,14 @@ function Qt(e, t, n, r) {
|
|
|
3450
3450
|
}
|
|
3451
3451
|
return typeof i == "string" ? i.length > 0 && (a[t.textNodeName] = i) : i !== void 0 && (a[t.textNodeName] = i), a;
|
|
3452
3452
|
}
|
|
3453
|
-
function
|
|
3453
|
+
function nn(e) {
|
|
3454
3454
|
let t = Object.keys(e);
|
|
3455
3455
|
for (let e = 0; e < t.length; e++) {
|
|
3456
3456
|
let n = t[e];
|
|
3457
3457
|
if (n !== ":@") return n;
|
|
3458
3458
|
}
|
|
3459
3459
|
}
|
|
3460
|
-
function
|
|
3460
|
+
function rn(e, t, n, r) {
|
|
3461
3461
|
if (t) {
|
|
3462
3462
|
let i = Object.keys(t), a = i.length;
|
|
3463
3463
|
for (let o = 0; o < a; o++) {
|
|
@@ -3466,15 +3466,15 @@ function en(e, t, n, r) {
|
|
|
3466
3466
|
}
|
|
3467
3467
|
}
|
|
3468
3468
|
}
|
|
3469
|
-
function
|
|
3469
|
+
function an(e, t) {
|
|
3470
3470
|
let { textNodeName: n } = t, r = Object.keys(e).length;
|
|
3471
3471
|
return !!(r === 0 || r === 1 && (e[n] || typeof e[n] == "boolean" || e[n] === 0));
|
|
3472
3472
|
}
|
|
3473
3473
|
//#endregion
|
|
3474
3474
|
//#region ../../node_modules/.pnpm/fast-xml-parser@5.10.0/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js
|
|
3475
|
-
var
|
|
3475
|
+
var on = class {
|
|
3476
3476
|
constructor(e) {
|
|
3477
|
-
this.externalEntities = {}, this.options =
|
|
3477
|
+
this.externalEntities = {}, this.options = Re(e);
|
|
3478
3478
|
}
|
|
3479
3479
|
parse(e, t) {
|
|
3480
3480
|
if (typeof e != "string" && e.toString) e = e.toString();
|
|
@@ -3484,8 +3484,8 @@ var nn = class {
|
|
|
3484
3484
|
let n = _(e, t);
|
|
3485
3485
|
if (n !== !0) throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`);
|
|
3486
3486
|
}
|
|
3487
|
-
let n = new
|
|
3488
|
-
return this.options.preserveOrder || r === void 0 ? r :
|
|
3487
|
+
let n = new Ft(this.options, this.externalEntities), r = n.parseXml(e);
|
|
3488
|
+
return this.options.preserveOrder || r === void 0 ? r : en(r, this.options, n.matcher, n.readonlyMatcher);
|
|
3489
3489
|
}
|
|
3490
3490
|
addEntity(e, t) {
|
|
3491
3491
|
if (t.indexOf("&") !== -1) throw Error("Entity value can't have '&'");
|
|
@@ -3494,27 +3494,27 @@ var nn = class {
|
|
|
3494
3494
|
this.externalEntities[e] = t;
|
|
3495
3495
|
}
|
|
3496
3496
|
static getMetaDataSymbol() {
|
|
3497
|
-
return
|
|
3497
|
+
return E.getMetaDataSymbol();
|
|
3498
3498
|
}
|
|
3499
3499
|
};
|
|
3500
3500
|
//#endregion
|
|
3501
3501
|
//#region ../../node_modules/.pnpm/fast-xml-builder@1.3.0/node_modules/fast-xml-builder/src/util.js
|
|
3502
|
-
function
|
|
3502
|
+
function sn(e) {
|
|
3503
3503
|
return String(e).replace(/--/g, "- -").replace(/--/g, "- -").replace(/-$/, "- ");
|
|
3504
3504
|
}
|
|
3505
|
-
function
|
|
3505
|
+
function cn(e) {
|
|
3506
3506
|
return String(e).replace(/\]\]>/g, "]]]]><![CDATA[>");
|
|
3507
3507
|
}
|
|
3508
|
-
function
|
|
3508
|
+
function z(e) {
|
|
3509
3509
|
return String(e).replace(/"/g, """).replace(/'/g, "'");
|
|
3510
3510
|
}
|
|
3511
3511
|
//#endregion
|
|
3512
3512
|
//#region ../../node_modules/.pnpm/fast-xml-builder@1.3.0/node_modules/fast-xml-builder/src/orderedJs2Xml.js
|
|
3513
|
-
var
|
|
3514
|
-
function
|
|
3513
|
+
var ln = "\n";
|
|
3514
|
+
function un(e, t) {
|
|
3515
3515
|
if (!Array.isArray(e) || e.length === 0) return "1.0";
|
|
3516
3516
|
let n = e[0];
|
|
3517
|
-
if (
|
|
3517
|
+
if (_n(n) === "?xml") {
|
|
3518
3518
|
let e = n[":@"];
|
|
3519
3519
|
if (e) {
|
|
3520
3520
|
let n = t.attributeNamePrefix + "version";
|
|
@@ -3523,121 +3523,121 @@ function sn(e, t) {
|
|
|
3523
3523
|
}
|
|
3524
3524
|
return "1.0";
|
|
3525
3525
|
}
|
|
3526
|
-
function
|
|
3526
|
+
function dn(e, t, n, r, i) {
|
|
3527
3527
|
return !n.sanitizeName || i(e) ? e : n.sanitizeName(e, {
|
|
3528
3528
|
isAttribute: t,
|
|
3529
3529
|
matcher: r.readOnly()
|
|
3530
3530
|
});
|
|
3531
3531
|
}
|
|
3532
|
-
function
|
|
3532
|
+
function fn(e, t) {
|
|
3533
3533
|
let n = "";
|
|
3534
|
-
t.format && (n =
|
|
3534
|
+
t.format && (n = ln);
|
|
3535
3535
|
let r = [];
|
|
3536
3536
|
if (t.stopNodes && Array.isArray(t.stopNodes)) for (let e = 0; e < t.stopNodes.length; e++) {
|
|
3537
3537
|
let n = t.stopNodes[e];
|
|
3538
|
-
typeof n == "string" ? r.push(new
|
|
3538
|
+
typeof n == "string" ? r.push(new M(n)) : n instanceof M && r.push(n);
|
|
3539
3539
|
}
|
|
3540
|
-
let i =
|
|
3541
|
-
return
|
|
3540
|
+
let i = Ze("qName", { xmlVersion: un(e, t) }), a = new N();
|
|
3541
|
+
return pn(e, t, n, a, r, i);
|
|
3542
3542
|
}
|
|
3543
|
-
function
|
|
3543
|
+
function pn(e, t, n, r, i, a) {
|
|
3544
3544
|
let o = "", s = !1;
|
|
3545
3545
|
if (t.maxNestedTags && r.getDepth() > t.maxNestedTags) throw Error("Maximum nested tags exceeded");
|
|
3546
3546
|
if (!Array.isArray(e)) {
|
|
3547
3547
|
if (e != null) {
|
|
3548
3548
|
let n = e.toString();
|
|
3549
|
-
return n =
|
|
3549
|
+
return n = B(n, t), n;
|
|
3550
3550
|
}
|
|
3551
3551
|
return "";
|
|
3552
3552
|
}
|
|
3553
3553
|
for (let c = 0; c < e.length; c++) {
|
|
3554
|
-
let l = e[c], u =
|
|
3554
|
+
let l = e[c], u = _n(l);
|
|
3555
3555
|
if (u === void 0) continue;
|
|
3556
|
-
let d = u === t.textNodeName || u === t.cdataPropName || u === t.commentPropName || u[0] === "?" ? u :
|
|
3556
|
+
let d = u === t.textNodeName || u === t.cdataPropName || u === t.commentPropName || u[0] === "?" ? u : dn(u, !1, t, r, a), f = mn(l[":@"], t);
|
|
3557
3557
|
r.push(d, f);
|
|
3558
|
-
let p =
|
|
3558
|
+
let p = yn(r, i);
|
|
3559
3559
|
if (d === t.textNodeName) {
|
|
3560
3560
|
let e = l[u];
|
|
3561
|
-
p || (e = t.tagValueProcessor(d, e), e =
|
|
3561
|
+
p || (e = t.tagValueProcessor(d, e), e = B(e, t)), s && (o += n), o += e, s = !1, r.pop();
|
|
3562
3562
|
continue;
|
|
3563
3563
|
} else if (d === t.cdataPropName) {
|
|
3564
3564
|
s && (o += n);
|
|
3565
|
-
let e = l[u][0][t.textNodeName], i =
|
|
3565
|
+
let e = l[u][0][t.textNodeName], i = cn(e);
|
|
3566
3566
|
o += `<![CDATA[${i}]]>`, s = !1, r.pop();
|
|
3567
3567
|
continue;
|
|
3568
3568
|
} else if (d === t.commentPropName) {
|
|
3569
|
-
let e = l[u][0][t.textNodeName], i =
|
|
3569
|
+
let e = l[u][0][t.textNodeName], i = sn(e);
|
|
3570
3570
|
o += n + `<!--${i}-->`, s = !0, r.pop();
|
|
3571
3571
|
continue;
|
|
3572
3572
|
} else if (d[0] === "?") {
|
|
3573
|
-
let e =
|
|
3573
|
+
let e = vn(l[":@"], t, p, r, a);
|
|
3574
3574
|
o += (d === "?xml" ? "" : n) + `<${d}${e}?>`, s = !0, r.pop();
|
|
3575
3575
|
continue;
|
|
3576
3576
|
}
|
|
3577
3577
|
let m = n;
|
|
3578
3578
|
m !== "" && (m += t.indentBy);
|
|
3579
|
-
let h = n + `<${d}${
|
|
3580
|
-
g = p ?
|
|
3579
|
+
let h = n + `<${d}${vn(l[":@"], t, p, r, a)}`, g;
|
|
3580
|
+
g = p ? hn(l[u], t) : pn(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();
|
|
3581
3581
|
}
|
|
3582
3582
|
return o;
|
|
3583
3583
|
}
|
|
3584
|
-
function
|
|
3584
|
+
function mn(e, t) {
|
|
3585
3585
|
if (!e || t.ignoreAttributes) return null;
|
|
3586
3586
|
let n = {}, r = !1;
|
|
3587
3587
|
for (let i in e) {
|
|
3588
3588
|
if (!Object.prototype.hasOwnProperty.call(e, i)) continue;
|
|
3589
3589
|
let a = i.startsWith(t.attributeNamePrefix) ? i.substr(t.attributeNamePrefix.length) : i;
|
|
3590
|
-
n[a] =
|
|
3590
|
+
n[a] = z(e[i]), r = !0;
|
|
3591
3591
|
}
|
|
3592
3592
|
return r ? n : null;
|
|
3593
3593
|
}
|
|
3594
|
-
function
|
|
3594
|
+
function hn(e, t) {
|
|
3595
3595
|
if (!Array.isArray(e)) return e == null ? "" : e.toString();
|
|
3596
3596
|
let n = "";
|
|
3597
3597
|
for (let r = 0; r < e.length; r++) {
|
|
3598
|
-
let i = e[r], a =
|
|
3598
|
+
let i = e[r], a = _n(i);
|
|
3599
3599
|
if (a === t.textNodeName) n += i[a];
|
|
3600
3600
|
else if (a === t.cdataPropName) n += i[a][0][t.textNodeName];
|
|
3601
3601
|
else if (a === t.commentPropName) n += i[a][0][t.textNodeName];
|
|
3602
3602
|
else if (a && a[0] === "?") continue;
|
|
3603
3603
|
else if (a) {
|
|
3604
|
-
let e =
|
|
3604
|
+
let e = gn(i[":@"], t), r = hn(i[a], t);
|
|
3605
3605
|
!r || r.length === 0 ? n += `<${a}${e}/>` : n += `<${a}${e}>${r}</${a}>`;
|
|
3606
3606
|
}
|
|
3607
3607
|
}
|
|
3608
3608
|
return n;
|
|
3609
3609
|
}
|
|
3610
|
-
function
|
|
3610
|
+
function gn(e, t) {
|
|
3611
3611
|
let n = "";
|
|
3612
3612
|
if (e && !t.ignoreAttributes) for (let r in e) {
|
|
3613
3613
|
if (!Object.prototype.hasOwnProperty.call(e, r)) continue;
|
|
3614
3614
|
let i = e[r];
|
|
3615
|
-
i === !0 && t.suppressBooleanAttributes ? n += ` ${r.substr(t.attributeNamePrefix.length)}` : n += ` ${r.substr(t.attributeNamePrefix.length)}="${
|
|
3615
|
+
i === !0 && t.suppressBooleanAttributes ? n += ` ${r.substr(t.attributeNamePrefix.length)}` : n += ` ${r.substr(t.attributeNamePrefix.length)}="${z(i)}"`;
|
|
3616
3616
|
}
|
|
3617
3617
|
return n;
|
|
3618
3618
|
}
|
|
3619
|
-
function
|
|
3619
|
+
function _n(e) {
|
|
3620
3620
|
let t = Object.keys(e);
|
|
3621
3621
|
for (let n = 0; n < t.length; n++) {
|
|
3622
3622
|
let r = t[n];
|
|
3623
3623
|
if (Object.prototype.hasOwnProperty.call(e, r) && r !== ":@") return r;
|
|
3624
3624
|
}
|
|
3625
3625
|
}
|
|
3626
|
-
function
|
|
3626
|
+
function vn(e, t, n, r, i) {
|
|
3627
3627
|
let a = "";
|
|
3628
3628
|
if (e && !t.ignoreAttributes) for (let o in e) {
|
|
3629
3629
|
if (!Object.prototype.hasOwnProperty.call(e, o)) continue;
|
|
3630
|
-
let s = o.substr(t.attributeNamePrefix.length), c = n ? s :
|
|
3631
|
-
n ? l = e[o] : (l = t.attributeValueProcessor(o, e[o]), l =
|
|
3630
|
+
let s = o.substr(t.attributeNamePrefix.length), c = n ? s : dn(s, !0, t, r, i), l;
|
|
3631
|
+
n ? l = e[o] : (l = t.attributeValueProcessor(o, e[o]), l = B(l, t)), l === !0 && t.suppressBooleanAttributes ? a += ` ${c}` : a += ` ${c}="${z(l)}"`;
|
|
3632
3632
|
}
|
|
3633
3633
|
return a;
|
|
3634
3634
|
}
|
|
3635
|
-
function
|
|
3635
|
+
function yn(e, t) {
|
|
3636
3636
|
if (!t || t.length === 0) return !1;
|
|
3637
3637
|
for (let n = 0; n < t.length; n++) if (e.matches(t[n])) return !0;
|
|
3638
3638
|
return !1;
|
|
3639
3639
|
}
|
|
3640
|
-
function
|
|
3640
|
+
function B(e, t) {
|
|
3641
3641
|
if (e && e.length > 0 && t.processEntities) for (let n = 0; n < t.entities.length; n++) {
|
|
3642
3642
|
let r = t.entities[n];
|
|
3643
3643
|
e = e.replace(r.regex, r.val);
|
|
@@ -3646,14 +3646,14 @@ function _n(e, t) {
|
|
|
3646
3646
|
}
|
|
3647
3647
|
//#endregion
|
|
3648
3648
|
//#region ../../node_modules/.pnpm/fast-xml-builder@1.3.0/node_modules/fast-xml-builder/src/ignoreAttributes.js
|
|
3649
|
-
function
|
|
3649
|
+
function bn(e) {
|
|
3650
3650
|
return typeof e == "function" ? e : Array.isArray(e) ? (t) => {
|
|
3651
3651
|
for (let n of e) if (typeof n == "string" && t === n || n instanceof RegExp && n.test(t)) return !0;
|
|
3652
3652
|
} : () => !1;
|
|
3653
3653
|
}
|
|
3654
3654
|
//#endregion
|
|
3655
3655
|
//#region ../../node_modules/.pnpm/fast-xml-builder@1.3.0/node_modules/fast-xml-builder/src/fxb.js
|
|
3656
|
-
var
|
|
3656
|
+
var xn = {
|
|
3657
3657
|
attributeNamePrefix: "@_",
|
|
3658
3658
|
attributesGroupName: !1,
|
|
3659
3659
|
textNodeName: "#text",
|
|
@@ -3702,18 +3702,18 @@ var yn = {
|
|
|
3702
3702
|
jPath: !0,
|
|
3703
3703
|
sanitizeName: !1
|
|
3704
3704
|
};
|
|
3705
|
-
function
|
|
3706
|
-
if (this.options = Object.assign({},
|
|
3705
|
+
function V(e) {
|
|
3706
|
+
if (this.options = Object.assign({}, xn, 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++) {
|
|
3707
3707
|
let t = this.options.stopNodes[e];
|
|
3708
|
-
typeof t == "string" ? this.stopNodeExpressions.push(new
|
|
3708
|
+
typeof t == "string" ? this.stopNodeExpressions.push(new M(t)) : t instanceof M && this.stopNodeExpressions.push(t);
|
|
3709
3709
|
}
|
|
3710
3710
|
this.options.ignoreAttributes === !0 || this.options.attributesGroupName ? this.isAttribute = function() {
|
|
3711
3711
|
return !1;
|
|
3712
|
-
} : (this.ignoreAttributesFn =
|
|
3712
|
+
} : (this.ignoreAttributesFn = bn(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = Tn), this.processTextOrObjNode = Cn, this.options.format ? (this.indentate = wn, this.tagEndChar = ">\n", this.newLine = "\n") : (this.indentate = function() {
|
|
3713
3713
|
return "";
|
|
3714
3714
|
}, this.tagEndChar = ">", this.newLine = "");
|
|
3715
3715
|
}
|
|
3716
|
-
function
|
|
3716
|
+
function Sn(e, t) {
|
|
3717
3717
|
let n = e["?xml"];
|
|
3718
3718
|
if (n && typeof n == "object") {
|
|
3719
3719
|
if (t.attributesGroupName && n[t.attributesGroupName]) {
|
|
@@ -3725,33 +3725,33 @@ function bn(e, t) {
|
|
|
3725
3725
|
}
|
|
3726
3726
|
return "1.0";
|
|
3727
3727
|
}
|
|
3728
|
-
function
|
|
3728
|
+
function H(e, t, n, r, i) {
|
|
3729
3729
|
return !n.sanitizeName || i(e) ? e : n.sanitizeName(e, {
|
|
3730
3730
|
isAttribute: t,
|
|
3731
3731
|
matcher: r.readOnly()
|
|
3732
3732
|
});
|
|
3733
3733
|
}
|
|
3734
|
-
|
|
3735
|
-
if (this.options.preserveOrder) return
|
|
3734
|
+
V.prototype.build = function(e) {
|
|
3735
|
+
if (this.options.preserveOrder) return fn(e, this.options);
|
|
3736
3736
|
{
|
|
3737
3737
|
Array.isArray(e) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (e = { [this.options.arrayNodeName]: e });
|
|
3738
|
-
let t = new
|
|
3738
|
+
let t = new N(), n = Ze("qName", { xmlVersion: Sn(e, this.options) });
|
|
3739
3739
|
return this.j2x(e, 0, t, n).val;
|
|
3740
3740
|
}
|
|
3741
|
-
},
|
|
3741
|
+
}, V.prototype.j2x = function(e, t, n, r) {
|
|
3742
3742
|
let i = "", a = "";
|
|
3743
3743
|
if (this.options.maxNestedTags && n.getDepth() >= this.options.maxNestedTags) throw Error("Maximum nested tags exceeded");
|
|
3744
3744
|
let o = this.options.jPath ? n.toString() : n, s = this.checkStopNode(n);
|
|
3745
3745
|
for (let c in e) {
|
|
3746
3746
|
if (!Object.prototype.hasOwnProperty.call(e, c)) continue;
|
|
3747
|
-
let l = c === this.options.textNodeName || c === this.options.cdataPropName || c === this.options.commentPropName || this.options.attributesGroupName && c === this.options.attributesGroupName || this.isAttribute(c) || c[0] === "?" ? c :
|
|
3747
|
+
let l = c === this.options.textNodeName || c === this.options.cdataPropName || c === this.options.commentPropName || this.options.attributesGroupName && c === this.options.attributesGroupName || this.isAttribute(c) || c[0] === "?" ? c : H(c, !1, this.options, n, r);
|
|
3748
3748
|
if (e[c] === void 0) this.isAttribute(c) && (a += "");
|
|
3749
3749
|
else if (e[c] === null) this.isAttribute(c) || l === this.options.cdataPropName || l === this.options.commentPropName ? a += "" : l[0] === "?" ? a += this.indentate(t) + "<" + l + "?" + this.tagEndChar : a += this.indentate(t) + "<" + l + "/" + this.tagEndChar;
|
|
3750
3750
|
else if (e[c] instanceof Date) a += this.buildTextValNode(e[c], l, "", t, n);
|
|
3751
3751
|
else if (typeof e[c] != "object") {
|
|
3752
3752
|
let u = this.isAttribute(c);
|
|
3753
3753
|
if (u && !this.ignoreAttributesFn(u, o)) {
|
|
3754
|
-
let t =
|
|
3754
|
+
let t = H(u, !0, this.options, n, r);
|
|
3755
3755
|
i += this.buildAttrPairStr(t, "" + e[c], s);
|
|
3756
3756
|
} else if (!u) if (c === this.options.textNodeName) {
|
|
3757
3757
|
let t = this.options.tagValueProcessor(c, "" + e[c]);
|
|
@@ -3790,7 +3790,7 @@ U.prototype.build = function(e) {
|
|
|
3790
3790
|
} else if (this.options.attributesGroupName && c === this.options.attributesGroupName) {
|
|
3791
3791
|
let t = Object.keys(e[c]), a = t.length;
|
|
3792
3792
|
for (let o = 0; o < a; o++) {
|
|
3793
|
-
let a =
|
|
3793
|
+
let a = H(t[o], !0, this.options, n, r);
|
|
3794
3794
|
i += this.buildAttrPairStr(a, "" + e[c][t[o]], s);
|
|
3795
3795
|
}
|
|
3796
3796
|
} else a += this.processTextOrObjNode(e[c], l, t, n, r);
|
|
@@ -3799,10 +3799,10 @@ U.prototype.build = function(e) {
|
|
|
3799
3799
|
attrStr: i,
|
|
3800
3800
|
val: a
|
|
3801
3801
|
};
|
|
3802
|
-
},
|
|
3803
|
-
return n || (t = this.options.attributeValueProcessor(e, "" + t), t = this.replaceEntitiesValue(t)), this.options.suppressBooleanAttributes && t === "true" ? " " + e : " " + e + "=\"" +
|
|
3802
|
+
}, V.prototype.buildAttrPairStr = function(e, t, n) {
|
|
3803
|
+
return n || (t = this.options.attributeValueProcessor(e, "" + t), t = this.replaceEntitiesValue(t)), this.options.suppressBooleanAttributes && t === "true" ? " " + e : " " + e + "=\"" + z(t) + "\"";
|
|
3804
3804
|
};
|
|
3805
|
-
function
|
|
3805
|
+
function Cn(e, t, n, r, i) {
|
|
3806
3806
|
let a = this.extractAttributes(e);
|
|
3807
3807
|
if (r.push(t, a), this.checkStopNode(r)) {
|
|
3808
3808
|
let i = this.buildRawContent(e), a = this.buildAttributesForStopNode(e);
|
|
@@ -3811,7 +3811,7 @@ function Sn(e, t, n, r, i) {
|
|
|
3811
3811
|
let o = this.j2x(e, n + 1, r, i);
|
|
3812
3812
|
return r.pop(), t[0] === "?" ? this.buildTextValNode("", t, o.attrStr, n, r) : e[this.options.textNodeName] !== void 0 && Object.keys(e).length === 1 ? this.buildTextValNode(e[this.options.textNodeName], t, o.attrStr, n, r) : this.buildObjectNode(o.val, t, o.attrStr, n);
|
|
3813
3813
|
}
|
|
3814
|
-
|
|
3814
|
+
V.prototype.extractAttributes = function(e) {
|
|
3815
3815
|
if (!e || typeof e != "object") return null;
|
|
3816
3816
|
let t = {}, n = !1;
|
|
3817
3817
|
if (this.options.attributesGroupName && e[this.options.attributesGroupName]) {
|
|
@@ -3819,15 +3819,15 @@ U.prototype.extractAttributes = function(e) {
|
|
|
3819
3819
|
for (let e in r) {
|
|
3820
3820
|
if (!Object.prototype.hasOwnProperty.call(r, e)) continue;
|
|
3821
3821
|
let i = e.startsWith(this.options.attributeNamePrefix) ? e.substring(this.options.attributeNamePrefix.length) : e;
|
|
3822
|
-
t[i] =
|
|
3822
|
+
t[i] = z(r[e]), n = !0;
|
|
3823
3823
|
}
|
|
3824
3824
|
} else for (let r in e) {
|
|
3825
3825
|
if (!Object.prototype.hasOwnProperty.call(e, r)) continue;
|
|
3826
3826
|
let i = this.isAttribute(r);
|
|
3827
|
-
i && (t[i] =
|
|
3827
|
+
i && (t[i] = z(e[r]), n = !0);
|
|
3828
3828
|
}
|
|
3829
3829
|
return n ? t : null;
|
|
3830
|
-
},
|
|
3830
|
+
}, V.prototype.buildRawContent = function(e) {
|
|
3831
3831
|
if (typeof e == "string") return e;
|
|
3832
3832
|
if (typeof e != "object" || !e) return String(e);
|
|
3833
3833
|
if (e[this.options.textNodeName] !== void 0) return e[this.options.textNodeName];
|
|
@@ -3848,7 +3848,7 @@ U.prototype.extractAttributes = function(e) {
|
|
|
3848
3848
|
} else t += `<${n}>${r}</${n}>`;
|
|
3849
3849
|
}
|
|
3850
3850
|
return t;
|
|
3851
|
-
},
|
|
3851
|
+
}, V.prototype.buildAttributesForStopNode = function(e) {
|
|
3852
3852
|
if (!e || typeof e != "object") return "";
|
|
3853
3853
|
let t = "";
|
|
3854
3854
|
if (this.options.attributesGroupName && e[this.options.attributesGroupName]) {
|
|
@@ -3856,87 +3856,100 @@ U.prototype.extractAttributes = function(e) {
|
|
|
3856
3856
|
for (let e in n) {
|
|
3857
3857
|
if (!Object.prototype.hasOwnProperty.call(n, e)) continue;
|
|
3858
3858
|
let r = e.startsWith(this.options.attributeNamePrefix) ? e.substring(this.options.attributeNamePrefix.length) : e, i = n[e];
|
|
3859
|
-
i === !0 && this.options.suppressBooleanAttributes ? t += " " + r : t += " " + r + "=\"" +
|
|
3859
|
+
i === !0 && this.options.suppressBooleanAttributes ? t += " " + r : t += " " + r + "=\"" + z(i) + "\"";
|
|
3860
3860
|
}
|
|
3861
3861
|
} else for (let n in e) {
|
|
3862
3862
|
if (!Object.prototype.hasOwnProperty.call(e, n)) continue;
|
|
3863
3863
|
let r = this.isAttribute(n);
|
|
3864
3864
|
if (r) {
|
|
3865
3865
|
let i = e[n];
|
|
3866
|
-
i === !0 && this.options.suppressBooleanAttributes ? t += " " + r : t += " " + r + "=\"" +
|
|
3866
|
+
i === !0 && this.options.suppressBooleanAttributes ? t += " " + r : t += " " + r + "=\"" + z(i) + "\"";
|
|
3867
3867
|
}
|
|
3868
3868
|
}
|
|
3869
3869
|
return t;
|
|
3870
|
-
},
|
|
3870
|
+
}, V.prototype.buildObjectNode = function(e, t, n, r) {
|
|
3871
3871
|
if (e === "") return t[0] === "?" ? this.indentate(r) + "<" + t + n + "?" + this.tagEndChar : this.indentate(r) + "<" + t + n + this.closeTag(t) + this.tagEndChar;
|
|
3872
3872
|
if (t[0] === "?") return this.indentate(r) + "<" + t + n + "?" + this.tagEndChar;
|
|
3873
3873
|
{
|
|
3874
3874
|
let i = "</" + t + this.tagEndChar, a = "";
|
|
3875
|
-
return t[0] === "?" && (a = "?", i = ""), (n || n === "") && e.indexOf("<") === -1 ? this.indentate(r) + "<" + t + n + a + ">" + e + i : this.options.commentPropName !== !1 && t === this.options.commentPropName && a.length === 0 ? this.indentate(r) + `<!--${
|
|
3875
|
+
return t[0] === "?" && (a = "?", i = ""), (n || n === "") && e.indexOf("<") === -1 ? this.indentate(r) + "<" + t + n + a + ">" + e + i : this.options.commentPropName !== !1 && t === this.options.commentPropName && a.length === 0 ? this.indentate(r) + `<!--${sn(e)}-->` + this.newLine : this.indentate(r) + "<" + t + n + a + this.tagEndChar + e + this.indentate(r) + i;
|
|
3876
3876
|
}
|
|
3877
|
-
},
|
|
3877
|
+
}, V.prototype.closeTag = function(e) {
|
|
3878
3878
|
let t = "";
|
|
3879
3879
|
return this.options.unpairedTags.indexOf(e) === -1 ? t = this.options.suppressEmptyNode ? "/" : `></${e}` : this.options.suppressUnpairedNode || (t = "/"), t;
|
|
3880
|
-
},
|
|
3880
|
+
}, V.prototype.checkStopNode = function(e) {
|
|
3881
3881
|
if (!this.stopNodeExpressions || this.stopNodeExpressions.length === 0) return !1;
|
|
3882
3882
|
for (let t = 0; t < this.stopNodeExpressions.length; t++) if (e.matches(this.stopNodeExpressions[t])) return !0;
|
|
3883
3883
|
return !1;
|
|
3884
|
-
},
|
|
3884
|
+
}, V.prototype.buildTextValNode = function(e, t, n, r, i) {
|
|
3885
3885
|
if (this.options.cdataPropName !== !1 && t === this.options.cdataPropName) {
|
|
3886
|
-
let t =
|
|
3886
|
+
let t = cn(e);
|
|
3887
3887
|
return this.indentate(r) + `<![CDATA[${t}]]>` + this.newLine;
|
|
3888
3888
|
} else if (this.options.commentPropName !== !1 && t === this.options.commentPropName) {
|
|
3889
|
-
let t =
|
|
3889
|
+
let t = sn(e);
|
|
3890
3890
|
return this.indentate(r) + `<!--${t}-->` + this.newLine;
|
|
3891
3891
|
} else if (t[0] === "?") return this.indentate(r) + "<" + t + n + "?" + this.tagEndChar;
|
|
3892
3892
|
else {
|
|
3893
3893
|
let i = this.options.tagValueProcessor(t, e);
|
|
3894
3894
|
return i = this.replaceEntitiesValue(i), i === "" ? this.indentate(r) + "<" + t + n + this.closeTag(t) + this.tagEndChar : this.indentate(r) + "<" + t + n + ">" + i + "</" + t + this.tagEndChar;
|
|
3895
3895
|
}
|
|
3896
|
-
},
|
|
3896
|
+
}, V.prototype.replaceEntitiesValue = function(e) {
|
|
3897
3897
|
if (e && e.length > 0 && this.options.processEntities) for (let t = 0; t < this.options.entities.length; t++) {
|
|
3898
3898
|
let n = this.options.entities[t];
|
|
3899
3899
|
e = e.replace(n.regex, n.val);
|
|
3900
3900
|
}
|
|
3901
3901
|
return e;
|
|
3902
3902
|
};
|
|
3903
|
-
function
|
|
3903
|
+
function wn(e) {
|
|
3904
3904
|
return this.options.indentBy.repeat(e);
|
|
3905
3905
|
}
|
|
3906
|
-
function
|
|
3906
|
+
function Tn(e) {
|
|
3907
3907
|
return e.startsWith(this.options.attributeNamePrefix) && e !== this.options.textNodeName ? e.substr(this.attrPrefixLen) : !1;
|
|
3908
3908
|
}
|
|
3909
3909
|
//#endregion
|
|
3910
3910
|
//#region ../../node_modules/.pnpm/fast-xml-parser@5.10.0/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js
|
|
3911
|
-
var
|
|
3911
|
+
var En = V, U = e.object({
|
|
3912
3912
|
created_at: e.string(),
|
|
3913
3913
|
updated_at: e.string()
|
|
3914
|
-
}),
|
|
3914
|
+
}), Dn = e.enum([
|
|
3915
|
+
"local",
|
|
3916
|
+
"shared",
|
|
3917
|
+
"platform"
|
|
3918
|
+
]), On = e.enum([
|
|
3919
|
+
"none",
|
|
3920
|
+
"secrets",
|
|
3921
|
+
"fields"
|
|
3922
|
+
]), W = {
|
|
3923
|
+
scope: Dn.optional(),
|
|
3924
|
+
override: On.optional(),
|
|
3925
|
+
enforce: e.boolean().optional()
|
|
3926
|
+
}, kn = e.object({
|
|
3915
3927
|
id: e.string(),
|
|
3916
3928
|
version: e.string().optional()
|
|
3917
|
-
}),
|
|
3929
|
+
}), An = e.object({
|
|
3918
3930
|
name: e.string(),
|
|
3919
3931
|
version: e.string()
|
|
3920
|
-
}),
|
|
3932
|
+
}), jn = e.object({
|
|
3921
3933
|
name: e.string(),
|
|
3922
3934
|
value: e.string().optional()
|
|
3923
|
-
}),
|
|
3935
|
+
}), Mn = e.object({
|
|
3924
3936
|
name: e.string().max(255),
|
|
3925
3937
|
code: e.string().max(1e5),
|
|
3926
|
-
supported_triggers: e.array(
|
|
3938
|
+
supported_triggers: e.array(kn).optional(),
|
|
3927
3939
|
runtime: e.string().max(50).optional(),
|
|
3928
|
-
dependencies: e.array(
|
|
3929
|
-
secrets: e.array(
|
|
3940
|
+
dependencies: e.array(An).optional(),
|
|
3941
|
+
secrets: e.array(jn).optional(),
|
|
3930
3942
|
is_system: e.boolean().optional(),
|
|
3943
|
+
...W,
|
|
3931
3944
|
inherit: e.boolean().optional()
|
|
3932
3945
|
});
|
|
3933
|
-
|
|
3946
|
+
Mn.partial().extend({
|
|
3934
3947
|
status: e.enum(["draft", "built"]).optional(),
|
|
3935
3948
|
deployed_at: e.string().optional()
|
|
3936
3949
|
});
|
|
3937
3950
|
//#endregion
|
|
3938
3951
|
//#region ../adapter-interfaces/dist/adapter-interfaces.mjs
|
|
3939
|
-
var
|
|
3952
|
+
var Nn = Mn.extend({
|
|
3940
3953
|
id: e.string(),
|
|
3941
3954
|
tenant_id: e.string(),
|
|
3942
3955
|
status: e.enum(["draft", "built"]).default("built"),
|
|
@@ -3945,25 +3958,25 @@ var An = kn.extend({
|
|
|
3945
3958
|
name: e.string(),
|
|
3946
3959
|
value: e.string().optional()
|
|
3947
3960
|
})).optional()
|
|
3948
|
-
}).extend(
|
|
3949
|
-
|
|
3950
|
-
var
|
|
3961
|
+
}).extend(U.shape), Pn = e.object({ name: e.string() });
|
|
3962
|
+
Nn.extend({ secrets: e.array(Pn).optional() });
|
|
3963
|
+
var Fn = e.string(), In = e.enum([
|
|
3951
3964
|
"unspecified",
|
|
3952
3965
|
"pending",
|
|
3953
3966
|
"final",
|
|
3954
3967
|
"partial",
|
|
3955
3968
|
"canceled",
|
|
3956
3969
|
"suspended"
|
|
3957
|
-
]),
|
|
3970
|
+
]), Ln = e.object({
|
|
3958
3971
|
id: e.string(),
|
|
3959
3972
|
msg: e.string(),
|
|
3960
3973
|
url: e.string().optional()
|
|
3961
|
-
}),
|
|
3974
|
+
}), Rn = e.object({
|
|
3962
3975
|
action_name: e.string(),
|
|
3963
|
-
error:
|
|
3976
|
+
error: Ln.nullable(),
|
|
3964
3977
|
started_at: e.string(),
|
|
3965
3978
|
ended_at: e.string()
|
|
3966
|
-
}),
|
|
3979
|
+
}), zn = e.object({
|
|
3967
3980
|
level: e.enum([
|
|
3968
3981
|
"log",
|
|
3969
3982
|
"info",
|
|
@@ -3972,17 +3985,17 @@ var Mn = e.string(), Nn = e.enum([
|
|
|
3972
3985
|
"debug"
|
|
3973
3986
|
]),
|
|
3974
3987
|
message: e.string()
|
|
3975
|
-
}),
|
|
3988
|
+
}), Bn = e.array(e.object({
|
|
3976
3989
|
action_name: e.string(),
|
|
3977
|
-
lines: e.array(
|
|
3990
|
+
lines: e.array(zn)
|
|
3978
3991
|
}));
|
|
3979
3992
|
e.object({
|
|
3980
3993
|
id: e.string(),
|
|
3981
3994
|
tenant_id: e.string(),
|
|
3982
|
-
trigger_id:
|
|
3983
|
-
status:
|
|
3984
|
-
results: e.array(
|
|
3985
|
-
logs:
|
|
3995
|
+
trigger_id: Fn,
|
|
3996
|
+
status: In,
|
|
3997
|
+
results: e.array(Rn),
|
|
3998
|
+
logs: Bn.optional(),
|
|
3986
3999
|
created_at: e.string(),
|
|
3987
4000
|
updated_at: e.string()
|
|
3988
4001
|
}).omit({
|
|
@@ -3993,21 +4006,21 @@ e.object({
|
|
|
3993
4006
|
action_id: e.string(),
|
|
3994
4007
|
code: e.string().max(1e5),
|
|
3995
4008
|
runtime: e.string().max(50).optional(),
|
|
3996
|
-
dependencies: e.array(
|
|
3997
|
-
secrets: e.array(
|
|
3998
|
-
supported_triggers: e.array(
|
|
4009
|
+
dependencies: e.array(An).optional(),
|
|
4010
|
+
secrets: e.array(jn).optional(),
|
|
4011
|
+
supported_triggers: e.array(kn).optional(),
|
|
3999
4012
|
deployed: e.boolean().default(!0)
|
|
4000
4013
|
}).extend({
|
|
4001
4014
|
id: e.string(),
|
|
4002
4015
|
tenant_id: e.string(),
|
|
4003
4016
|
number: e.number().int()
|
|
4004
|
-
}).extend(
|
|
4005
|
-
var
|
|
4017
|
+
}).extend(U.shape);
|
|
4018
|
+
var Vn = e.enum([
|
|
4006
4019
|
"user_action",
|
|
4007
4020
|
"admin_action",
|
|
4008
4021
|
"system",
|
|
4009
4022
|
"api"
|
|
4010
|
-
]),
|
|
4023
|
+
]), Hn = e.object({
|
|
4011
4024
|
type: e.enum([
|
|
4012
4025
|
"user",
|
|
4013
4026
|
"admin",
|
|
@@ -4021,7 +4034,7 @@ var Rn = e.enum([
|
|
|
4021
4034
|
org_name: e.string().optional(),
|
|
4022
4035
|
scopes: e.array(e.string()).optional(),
|
|
4023
4036
|
client_id: e.string().optional()
|
|
4024
|
-
}),
|
|
4037
|
+
}), Un = e.object({
|
|
4025
4038
|
type: e.string(),
|
|
4026
4039
|
id: e.string(),
|
|
4027
4040
|
before: e.record(e.string(), e.unknown()).optional(),
|
|
@@ -4030,7 +4043,18 @@ var Rn = e.enum([
|
|
|
4030
4043
|
old: e.unknown(),
|
|
4031
4044
|
new: e.unknown()
|
|
4032
4045
|
})).optional()
|
|
4033
|
-
}),
|
|
4046
|
+
}), Wn = e.object({
|
|
4047
|
+
user: e.object({
|
|
4048
|
+
user_id: e.string(),
|
|
4049
|
+
name: e.string().optional(),
|
|
4050
|
+
email: e.string().optional()
|
|
4051
|
+
}).optional(),
|
|
4052
|
+
strategy: e.string(),
|
|
4053
|
+
credentials: e.object({
|
|
4054
|
+
jti: e.string().optional(),
|
|
4055
|
+
scopes: e.array(e.string()).optional()
|
|
4056
|
+
}).optional()
|
|
4057
|
+
}), Gn = e.object({
|
|
4034
4058
|
method: e.string(),
|
|
4035
4059
|
path: e.string(),
|
|
4036
4060
|
query: e.record(e.string(), e.string()).optional(),
|
|
@@ -4039,18 +4063,19 @@ var Rn = e.enum([
|
|
|
4039
4063
|
user_agent: e.string().optional(),
|
|
4040
4064
|
correlation_id: e.string().optional(),
|
|
4041
4065
|
redirect_uri: e.string().optional(),
|
|
4042
|
-
authorization_url: e.string().optional()
|
|
4043
|
-
|
|
4066
|
+
authorization_url: e.string().optional(),
|
|
4067
|
+
auth: Wn.optional()
|
|
4068
|
+
}), Kn = e.object({
|
|
4044
4069
|
status_code: e.number(),
|
|
4045
4070
|
body: e.unknown().optional()
|
|
4046
|
-
}),
|
|
4071
|
+
}), qn = e.object({
|
|
4047
4072
|
country_code: e.string(),
|
|
4048
4073
|
city_name: e.string(),
|
|
4049
4074
|
latitude: e.string(),
|
|
4050
4075
|
longitude: e.string(),
|
|
4051
4076
|
time_zone: e.string(),
|
|
4052
4077
|
continent_code: e.string()
|
|
4053
|
-
}),
|
|
4078
|
+
}), Jn = e.object({
|
|
4054
4079
|
name: e.string(),
|
|
4055
4080
|
version: e.string(),
|
|
4056
4081
|
env: e.record(e.string(), e.string()).optional()
|
|
@@ -4060,11 +4085,11 @@ e.object({
|
|
|
4060
4085
|
event_type: e.string(),
|
|
4061
4086
|
log_type: e.string(),
|
|
4062
4087
|
description: e.string().optional(),
|
|
4063
|
-
category:
|
|
4064
|
-
actor:
|
|
4065
|
-
target:
|
|
4066
|
-
request:
|
|
4067
|
-
response:
|
|
4088
|
+
category: Vn,
|
|
4089
|
+
actor: Hn,
|
|
4090
|
+
target: Un,
|
|
4091
|
+
request: Gn,
|
|
4092
|
+
response: Kn.optional(),
|
|
4068
4093
|
connection: e.string().optional(),
|
|
4069
4094
|
connection_id: e.string().optional(),
|
|
4070
4095
|
client_name: e.string().optional(),
|
|
@@ -4072,8 +4097,8 @@ e.object({
|
|
|
4072
4097
|
strategy_type: e.string().optional(),
|
|
4073
4098
|
audience: e.string().optional(),
|
|
4074
4099
|
scope: e.string().optional(),
|
|
4075
|
-
location:
|
|
4076
|
-
auth0_client:
|
|
4100
|
+
location: qn.optional(),
|
|
4101
|
+
auth0_client: Jn.optional(),
|
|
4077
4102
|
hostname: e.string(),
|
|
4078
4103
|
is_mobile: e.boolean().optional(),
|
|
4079
4104
|
execution_id: e.string().optional(),
|
|
@@ -4091,14 +4116,14 @@ e.object({
|
|
|
4091
4116
|
"SEND_REQUEST",
|
|
4092
4117
|
"SEND_EMAIL"
|
|
4093
4118
|
]), e.enum(["VERIFY_EMAIL"]);
|
|
4094
|
-
var
|
|
4119
|
+
var Yn = e.object({
|
|
4095
4120
|
require_mx_record: e.boolean().optional(),
|
|
4096
4121
|
block_aliases: e.boolean().optional(),
|
|
4097
4122
|
block_free_emails: e.boolean().optional(),
|
|
4098
4123
|
block_disposable_emails: e.boolean().optional(),
|
|
4099
4124
|
blocklist: e.array(e.string()).optional(),
|
|
4100
4125
|
allowlist: e.array(e.string()).optional()
|
|
4101
|
-
}),
|
|
4126
|
+
}), Xn = e.object({
|
|
4102
4127
|
id: e.string(),
|
|
4103
4128
|
alias: e.string().max(100).optional(),
|
|
4104
4129
|
type: e.literal("AUTH0"),
|
|
@@ -4110,7 +4135,7 @@ var Gn = e.object({
|
|
|
4110
4135
|
user_id: e.string(),
|
|
4111
4136
|
changes: e.record(e.string(), e.any())
|
|
4112
4137
|
})
|
|
4113
|
-
}),
|
|
4138
|
+
}), Zn = e.object({
|
|
4114
4139
|
id: e.string(),
|
|
4115
4140
|
alias: e.string().max(100).optional(),
|
|
4116
4141
|
type: e.literal("EMAIL"),
|
|
@@ -4119,13 +4144,13 @@ var Gn = e.object({
|
|
|
4119
4144
|
mask_output: e.boolean().optional(),
|
|
4120
4145
|
params: e.object({
|
|
4121
4146
|
email: e.string(),
|
|
4122
|
-
rules:
|
|
4147
|
+
rules: Yn.optional()
|
|
4123
4148
|
})
|
|
4124
|
-
}),
|
|
4149
|
+
}), Qn = e.enum([
|
|
4125
4150
|
"change-email",
|
|
4126
4151
|
"account",
|
|
4127
4152
|
"custom"
|
|
4128
|
-
]),
|
|
4153
|
+
]), $n = e.object({
|
|
4129
4154
|
id: e.string(),
|
|
4130
4155
|
alias: e.string().max(100).optional(),
|
|
4131
4156
|
type: e.literal("REDIRECT"),
|
|
@@ -4133,18 +4158,18 @@ var Gn = e.object({
|
|
|
4133
4158
|
allow_failure: e.boolean().optional(),
|
|
4134
4159
|
mask_output: e.boolean().optional(),
|
|
4135
4160
|
params: e.object({
|
|
4136
|
-
target:
|
|
4161
|
+
target: Qn.openapi({ description: "The predefined target to redirect to, or 'custom' for a custom URL" }),
|
|
4137
4162
|
custom_url: e.string().optional().openapi({ description: "Custom URL to redirect to when target is 'custom'" })
|
|
4138
4163
|
})
|
|
4139
|
-
}),
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4164
|
+
}), er = e.union([
|
|
4165
|
+
Xn,
|
|
4166
|
+
Zn,
|
|
4167
|
+
$n
|
|
4143
4168
|
]);
|
|
4144
4169
|
e.object({
|
|
4145
4170
|
name: e.string().min(1).max(150).openapi({ description: "The name of the flow" }),
|
|
4146
|
-
actions: e.array(
|
|
4147
|
-
}).extend(
|
|
4171
|
+
actions: e.array(er).optional().default([]).openapi({ description: "The list of actions to execute in sequence" })
|
|
4172
|
+
}).extend(U.shape).extend({ id: e.string().openapi({
|
|
4148
4173
|
description: "Unique identifier for the flow",
|
|
4149
4174
|
example: "af_12tMpdJ3iek7svMyZkSh5M"
|
|
4150
4175
|
}) }), e.object({
|
|
@@ -4160,7 +4185,7 @@ e.object({
|
|
|
4160
4185
|
total: e.number().optional(),
|
|
4161
4186
|
next: e.string().optional()
|
|
4162
4187
|
});
|
|
4163
|
-
var
|
|
4188
|
+
var tr = e.object({
|
|
4164
4189
|
email: e.string().optional(),
|
|
4165
4190
|
email_verified: e.boolean().optional(),
|
|
4166
4191
|
name: e.string().optional(),
|
|
@@ -4169,7 +4194,7 @@ var Zn = e.object({
|
|
|
4169
4194
|
phone_number: e.string().optional(),
|
|
4170
4195
|
phone_verified: e.boolean().optional(),
|
|
4171
4196
|
family_name: e.string().optional()
|
|
4172
|
-
}).catchall(e.any()),
|
|
4197
|
+
}).catchall(e.any()), nr = e.object({
|
|
4173
4198
|
connection: e.string(),
|
|
4174
4199
|
user_id: e.string(),
|
|
4175
4200
|
provider: e.string(),
|
|
@@ -4182,15 +4207,15 @@ var Zn = e.object({
|
|
|
4182
4207
|
access_token: e.string().optional(),
|
|
4183
4208
|
access_token_secret: e.string().optional(),
|
|
4184
4209
|
refresh_token: e.string().optional(),
|
|
4185
|
-
profileData:
|
|
4186
|
-
}),
|
|
4210
|
+
profileData: tr.optional()
|
|
4211
|
+
}), rr = e.object({
|
|
4187
4212
|
formatted: e.string().optional(),
|
|
4188
4213
|
street_address: e.string().optional(),
|
|
4189
4214
|
locality: e.string().optional(),
|
|
4190
4215
|
region: e.string().optional(),
|
|
4191
4216
|
postal_code: e.string().optional(),
|
|
4192
4217
|
country: e.string().optional()
|
|
4193
|
-
}).optional(),
|
|
4218
|
+
}).optional(), ir = e.object({
|
|
4194
4219
|
email: e.string().transform((e) => e.toLowerCase()).optional(),
|
|
4195
4220
|
username: e.string().refine((e) => !e.includes("@"), { message: "Usernames must not contain \"@\". Use the email field for email addresses." }).optional(),
|
|
4196
4221
|
phone_number: e.string().optional(),
|
|
@@ -4213,9 +4238,9 @@ var Zn = e.object({
|
|
|
4213
4238
|
gender: e.string().optional(),
|
|
4214
4239
|
birthdate: e.string().optional(),
|
|
4215
4240
|
zoneinfo: e.string().optional(),
|
|
4216
|
-
address:
|
|
4241
|
+
address: rr
|
|
4217
4242
|
});
|
|
4218
|
-
|
|
4243
|
+
ir.extend({
|
|
4219
4244
|
email_verified: e.boolean().default(!1),
|
|
4220
4245
|
verify_email: e.boolean().optional(),
|
|
4221
4246
|
last_ip: e.string().optional(),
|
|
@@ -4230,30 +4255,30 @@ er.extend({
|
|
|
4230
4255
|
hash: e.string(),
|
|
4231
4256
|
algorithm: e.string()
|
|
4232
4257
|
}).optional()
|
|
4233
|
-
}).omit({ password: !0 }).extend(
|
|
4258
|
+
}).omit({ password: !0 }).extend(U.shape).extend({
|
|
4234
4259
|
user_id: e.string(),
|
|
4235
4260
|
provider: e.string(),
|
|
4236
4261
|
is_social: e.boolean(),
|
|
4237
4262
|
email: e.string().optional(),
|
|
4238
4263
|
login_count: e.number().default(0),
|
|
4239
|
-
identities: e.array(
|
|
4240
|
-
}).omit({ registration_completed_at: !0 }),
|
|
4264
|
+
identities: e.array(nr).optional()
|
|
4265
|
+
}).omit({ registration_completed_at: !0 }), ir.extend({
|
|
4241
4266
|
login_count: e.number(),
|
|
4242
4267
|
multifactor: e.array(e.string()).optional(),
|
|
4243
4268
|
last_ip: e.string().optional(),
|
|
4244
4269
|
last_login: e.string().optional(),
|
|
4245
4270
|
user_id: e.string()
|
|
4246
4271
|
}).catchall(e.any());
|
|
4247
|
-
var
|
|
4272
|
+
var ar = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", or = (e = 21) => {
|
|
4248
4273
|
let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
|
|
4249
|
-
for (; e--;) t +=
|
|
4274
|
+
for (; e--;) t += ar[n[e] & 63];
|
|
4250
4275
|
return t;
|
|
4251
|
-
},
|
|
4276
|
+
}, sr = e.object({
|
|
4252
4277
|
client_id: e.string().optional().openapi({ description: "ID of this client. Generated server-side if omitted (Auth0 behavior)." }),
|
|
4253
4278
|
name: e.string().min(1).openapi({ description: "Name of this client (min length: 1 character, does not allow < or >)." }),
|
|
4254
4279
|
description: e.string().max(140).optional().openapi({ description: "Free text description of this client (max length: 140 characters)." }),
|
|
4255
4280
|
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)." }),
|
|
4256
|
-
client_secret: e.string().default(() =>
|
|
4281
|
+
client_secret: e.string().default(() => or()).optional().openapi({ description: "Client secret (which you must not make public)." }),
|
|
4257
4282
|
app_type: e.enum([
|
|
4258
4283
|
"native",
|
|
4259
4284
|
"spa",
|
|
@@ -4371,8 +4396,8 @@ var tr = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", nr
|
|
|
4371
4396
|
e.object({
|
|
4372
4397
|
created_at: e.string(),
|
|
4373
4398
|
updated_at: e.string()
|
|
4374
|
-
}).extend(
|
|
4375
|
-
var
|
|
4399
|
+
}).extend(sr.shape).extend({ client_id: e.string() });
|
|
4400
|
+
var cr = e.object({
|
|
4376
4401
|
client_id: e.string().min(1).openapi({ description: "ID of the client." }),
|
|
4377
4402
|
audience: e.string().min(1).openapi({ description: "The audience (API identifier) of this client grant." }),
|
|
4378
4403
|
scope: e.array(e.string()).optional().openapi({ description: "Scopes allowed for this client grant." }),
|
|
@@ -4385,15 +4410,15 @@ var ir = e.object({
|
|
|
4385
4410
|
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." }),
|
|
4386
4411
|
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." }),
|
|
4387
4412
|
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." })
|
|
4388
|
-
}),
|
|
4413
|
+
}), lr = e.object({ id: e.string().openapi({ description: "ID of the client grant." }) }).extend(cr.shape).extend({
|
|
4389
4414
|
created_at: e.string().optional(),
|
|
4390
4415
|
updated_at: e.string().optional()
|
|
4391
4416
|
});
|
|
4392
|
-
e.array(
|
|
4393
|
-
var
|
|
4417
|
+
e.array(lr);
|
|
4418
|
+
var ur = e.enum(["iat", "rat"]), dr = e.object({
|
|
4394
4419
|
id: e.string(),
|
|
4395
4420
|
token_hash: e.string(),
|
|
4396
|
-
type:
|
|
4421
|
+
type: ur,
|
|
4397
4422
|
client_id: e.string().optional(),
|
|
4398
4423
|
sub: e.string().optional(),
|
|
4399
4424
|
constraints: e.record(e.string(), e.unknown()).optional(),
|
|
@@ -4404,23 +4429,23 @@ e.object({
|
|
|
4404
4429
|
created_at: e.string(),
|
|
4405
4430
|
used_at: e.string().optional(),
|
|
4406
4431
|
revoked_at: e.string().optional()
|
|
4407
|
-
}).extend(
|
|
4432
|
+
}).extend(dr.shape);
|
|
4408
4433
|
var G = e.object({
|
|
4409
4434
|
x: e.number(),
|
|
4410
4435
|
y: e.number()
|
|
4411
|
-
}),
|
|
4436
|
+
}), fr = /* @__PURE__ */ function(e) {
|
|
4412
4437
|
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;
|
|
4413
|
-
}({}),
|
|
4438
|
+
}({}), pr = /* @__PURE__ */ function(e) {
|
|
4414
4439
|
return e.BLOCK = "BLOCK", e.FIELD = "FIELD", e;
|
|
4415
4440
|
}({}), K = e.object({
|
|
4416
4441
|
id: e.string(),
|
|
4417
|
-
category: e.nativeEnum(
|
|
4418
|
-
type: e.nativeEnum(
|
|
4419
|
-
}),
|
|
4442
|
+
category: e.nativeEnum(pr),
|
|
4443
|
+
type: e.nativeEnum(fr)
|
|
4444
|
+
}), mr = K.extend({
|
|
4420
4445
|
category: e.literal("BLOCK"),
|
|
4421
4446
|
type: e.literal("RICH_TEXT"),
|
|
4422
4447
|
config: e.object({ content: e.string() }).passthrough()
|
|
4423
|
-
}),
|
|
4448
|
+
}), hr = K.extend({
|
|
4424
4449
|
category: e.literal("BLOCK"),
|
|
4425
4450
|
type: e.union([
|
|
4426
4451
|
e.literal("NEXT_BUTTON"),
|
|
@@ -4428,13 +4453,13 @@ var G = e.object({
|
|
|
4428
4453
|
e.literal("SUBMIT_BUTTON")
|
|
4429
4454
|
]),
|
|
4430
4455
|
config: e.object({ text: e.string() }).passthrough()
|
|
4431
|
-
}),
|
|
4456
|
+
}), gr = K.extend({
|
|
4432
4457
|
category: e.literal("FIELD"),
|
|
4433
4458
|
type: e.literal("LEGAL"),
|
|
4434
4459
|
required: e.boolean().optional(),
|
|
4435
4460
|
sensitive: e.boolean().optional(),
|
|
4436
4461
|
config: e.object({ text: e.string() }).passthrough()
|
|
4437
|
-
}),
|
|
4462
|
+
}), _r = K.extend({
|
|
4438
4463
|
category: e.literal("FIELD"),
|
|
4439
4464
|
type: e.union([
|
|
4440
4465
|
e.literal("TEXT"),
|
|
@@ -4454,26 +4479,26 @@ var G = e.object({
|
|
|
4454
4479
|
label: e.string().optional(),
|
|
4455
4480
|
placeholder: e.string().optional()
|
|
4456
4481
|
}).passthrough()
|
|
4457
|
-
}),
|
|
4482
|
+
}), vr = e.object({
|
|
4458
4483
|
id: e.string(),
|
|
4459
4484
|
category: e.string(),
|
|
4460
4485
|
type: e.string()
|
|
4461
|
-
}).passthrough(),
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
]),
|
|
4486
|
+
}).passthrough(), yr = e.union([
|
|
4487
|
+
mr,
|
|
4488
|
+
hr,
|
|
4489
|
+
gr,
|
|
4490
|
+
_r,
|
|
4491
|
+
vr
|
|
4492
|
+
]), br = e.object({
|
|
4468
4493
|
id: e.string(),
|
|
4469
4494
|
type: e.literal("STEP"),
|
|
4470
4495
|
coordinates: G,
|
|
4471
4496
|
alias: e.string().optional(),
|
|
4472
4497
|
config: e.object({
|
|
4473
|
-
components: e.array(
|
|
4498
|
+
components: e.array(yr),
|
|
4474
4499
|
next_node: e.string()
|
|
4475
4500
|
}).passthrough()
|
|
4476
|
-
}),
|
|
4501
|
+
}), xr = e.object({
|
|
4477
4502
|
id: e.string(),
|
|
4478
4503
|
type: e.literal("FLOW"),
|
|
4479
4504
|
coordinates: G,
|
|
@@ -4482,7 +4507,7 @@ var G = e.object({
|
|
|
4482
4507
|
flow_id: e.string(),
|
|
4483
4508
|
next_node: e.string()
|
|
4484
4509
|
})
|
|
4485
|
-
}),
|
|
4510
|
+
}), Sr = e.object({
|
|
4486
4511
|
id: e.string(),
|
|
4487
4512
|
type: e.literal("ACTION"),
|
|
4488
4513
|
coordinates: G,
|
|
@@ -4497,19 +4522,19 @@ var G = e.object({
|
|
|
4497
4522
|
custom_url: e.string().optional().openapi({ description: "Custom URL when target is 'custom'" }),
|
|
4498
4523
|
next_node: e.string().openapi({ description: "The next node to navigate to after action (for non-redirect actions)" })
|
|
4499
4524
|
}).passthrough()
|
|
4500
|
-
}),
|
|
4525
|
+
}), Cr = e.object({
|
|
4501
4526
|
id: e.string(),
|
|
4502
4527
|
type: e.string(),
|
|
4503
4528
|
coordinates: G
|
|
4504
|
-
}).passthrough(),
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
]),
|
|
4529
|
+
}).passthrough(), wr = e.union([
|
|
4530
|
+
br,
|
|
4531
|
+
xr,
|
|
4532
|
+
Sr,
|
|
4533
|
+
Cr
|
|
4534
|
+
]), Tr = e.object({
|
|
4510
4535
|
next_node: e.string(),
|
|
4511
4536
|
coordinates: G
|
|
4512
|
-
}).passthrough(),
|
|
4537
|
+
}).passthrough(), Er = e.object({
|
|
4513
4538
|
resume_flow: e.boolean().optional(),
|
|
4514
4539
|
coordinates: G
|
|
4515
4540
|
}).passthrough();
|
|
@@ -4517,9 +4542,9 @@ e.object({
|
|
|
4517
4542
|
id: e.string(),
|
|
4518
4543
|
name: e.string(),
|
|
4519
4544
|
languages: e.object({ primary: e.string() }).passthrough(),
|
|
4520
|
-
nodes: e.array(
|
|
4521
|
-
start:
|
|
4522
|
-
ending:
|
|
4545
|
+
nodes: e.array(wr),
|
|
4546
|
+
start: Tr,
|
|
4547
|
+
ending: Er,
|
|
4523
4548
|
created_at: e.string(),
|
|
4524
4549
|
updated_at: e.string(),
|
|
4525
4550
|
links: e.object({
|
|
@@ -4531,24 +4556,24 @@ e.object({
|
|
|
4531
4556
|
created_at: !0,
|
|
4532
4557
|
updated_at: !0
|
|
4533
4558
|
});
|
|
4534
|
-
var
|
|
4559
|
+
var Dr = /* @__PURE__ */ function(e) {
|
|
4535
4560
|
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;
|
|
4536
|
-
}({}),
|
|
4561
|
+
}({}), Or = /* @__PURE__ */ function(e) {
|
|
4537
4562
|
return e.QUERY = "query", e.FRAGMENT = "fragment", e.FORM_POST = "form_post", e.WEB_MESSAGE = "web_message", e.SAML_POST = "saml_post", e;
|
|
4538
|
-
}({}),
|
|
4563
|
+
}({}), kr = /* @__PURE__ */ function(e) {
|
|
4539
4564
|
return e.S256 = "S256", e.Plain = "plain", e;
|
|
4540
|
-
}({}),
|
|
4565
|
+
}({}), Ar = e.union([e.null(), e.object({
|
|
4541
4566
|
essential: e.boolean().optional(),
|
|
4542
4567
|
value: e.unknown().optional(),
|
|
4543
4568
|
values: e.array(e.unknown()).optional()
|
|
4544
|
-
})]).nullable(),
|
|
4545
|
-
userinfo: e.record(e.string(),
|
|
4546
|
-
id_token: e.record(e.string(),
|
|
4547
|
-
}),
|
|
4569
|
+
})]).nullable(), jr = e.object({
|
|
4570
|
+
userinfo: e.record(e.string(), Ar).optional(),
|
|
4571
|
+
id_token: e.record(e.string(), Ar).optional()
|
|
4572
|
+
}), Mr = e.object({
|
|
4548
4573
|
client_id: e.string(),
|
|
4549
4574
|
act_as: e.string().optional(),
|
|
4550
|
-
response_type: e.nativeEnum(
|
|
4551
|
-
response_mode: e.nativeEnum(
|
|
4575
|
+
response_type: e.nativeEnum(Dr).optional(),
|
|
4576
|
+
response_mode: e.nativeEnum(Or).optional(),
|
|
4552
4577
|
redirect_uri: e.string().optional(),
|
|
4553
4578
|
audience: e.string().optional(),
|
|
4554
4579
|
organization: e.string().optional(),
|
|
@@ -4556,16 +4581,17 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
4556
4581
|
nonce: e.string().optional(),
|
|
4557
4582
|
scope: e.string().optional(),
|
|
4558
4583
|
prompt: e.string().optional(),
|
|
4559
|
-
code_challenge_method: e.nativeEnum(
|
|
4584
|
+
code_challenge_method: e.nativeEnum(kr).optional(),
|
|
4560
4585
|
code_challenge: e.string().optional(),
|
|
4561
4586
|
username: e.string().optional(),
|
|
4562
4587
|
ui_locales: e.string().optional(),
|
|
4563
4588
|
max_age: e.number().optional(),
|
|
4564
4589
|
acr_values: e.string().optional(),
|
|
4565
|
-
claims:
|
|
4590
|
+
claims: jr.optional(),
|
|
4566
4591
|
vendor_id: e.string().optional()
|
|
4567
4592
|
});
|
|
4568
4593
|
e.object({
|
|
4594
|
+
...W,
|
|
4569
4595
|
colors: e.object({
|
|
4570
4596
|
primary: e.string(),
|
|
4571
4597
|
page_background: e.union([e.string(), e.object({
|
|
@@ -4585,7 +4611,7 @@ e.object({
|
|
|
4585
4611
|
"auto"
|
|
4586
4612
|
]).optional()
|
|
4587
4613
|
});
|
|
4588
|
-
var
|
|
4614
|
+
var Nr = e.enum([
|
|
4589
4615
|
"password_reset",
|
|
4590
4616
|
"email_verification",
|
|
4591
4617
|
"otp",
|
|
@@ -4600,7 +4626,7 @@ e.object({
|
|
|
4600
4626
|
code_id: e.string().openapi({ description: "The code that will be used in for instance an email verification flow" }),
|
|
4601
4627
|
login_id: e.string().optional().openapi({ description: "The id of the login session that the code is connected to" }),
|
|
4602
4628
|
connection_id: e.string().optional().openapi({ description: "The connection that the code is connected to" }),
|
|
4603
|
-
code_type:
|
|
4629
|
+
code_type: Nr,
|
|
4604
4630
|
code_verifier: e.string().optional().openapi({ description: "The code verifier used in PKCE in outbound flows" }),
|
|
4605
4631
|
code_challenge: e.string().optional().openapi({ description: "The code challenge used in PKCE in outbound flows" }),
|
|
4606
4632
|
code_challenge_method: e.enum(["plain", "S256"]).optional().openapi({ description: "The code challenge method used in PKCE in outbound flows" }),
|
|
@@ -4612,7 +4638,7 @@ e.object({
|
|
|
4612
4638
|
used_at: e.string().optional(),
|
|
4613
4639
|
user_id: e.string().optional()
|
|
4614
4640
|
}).extend({ created_at: e.string() });
|
|
4615
|
-
var
|
|
4641
|
+
var Pr = e.object({
|
|
4616
4642
|
kid: e.string().optional(),
|
|
4617
4643
|
team_id: e.string().optional(),
|
|
4618
4644
|
realms: e.string().optional(),
|
|
@@ -4732,37 +4758,38 @@ var Ar = e.object({
|
|
|
4732
4758
|
"never_on_login"
|
|
4733
4759
|
]).optional()
|
|
4734
4760
|
});
|
|
4735
|
-
function
|
|
4761
|
+
function Fr(e) {
|
|
4736
4762
|
if (e !== null) {
|
|
4737
|
-
if (Array.isArray(e)) return e.filter((e) => e !== null).map(
|
|
4763
|
+
if (Array.isArray(e)) return e.filter((e) => e !== null).map(Fr);
|
|
4738
4764
|
if (e && typeof e == "object") {
|
|
4739
4765
|
let t = {};
|
|
4740
|
-
for (let [n, r] of Object.entries(e)) r !== null && (t[n] =
|
|
4766
|
+
for (let [n, r] of Object.entries(e)) r !== null && (t[n] = Fr(r));
|
|
4741
4767
|
return t;
|
|
4742
4768
|
}
|
|
4743
4769
|
return e;
|
|
4744
4770
|
}
|
|
4745
4771
|
}
|
|
4746
|
-
var
|
|
4772
|
+
var Ir = e.object({
|
|
4747
4773
|
id: e.string().optional(),
|
|
4748
4774
|
name: e.string(),
|
|
4749
4775
|
display_name: e.string().optional(),
|
|
4750
4776
|
strategy: e.string(),
|
|
4751
|
-
options: e.preprocess((e) => e === null ? {} :
|
|
4777
|
+
options: e.preprocess((e) => e === null ? {} : Fr(e), Pr).default({}),
|
|
4752
4778
|
enabled_clients: e.array(e.string()).default([]).optional(),
|
|
4753
|
-
response_type: e.nativeEnum(
|
|
4754
|
-
response_mode: e.nativeEnum(
|
|
4779
|
+
response_type: e.nativeEnum(Dr).optional(),
|
|
4780
|
+
response_mode: e.nativeEnum(Or).optional(),
|
|
4755
4781
|
is_domain_connection: e.boolean().optional(),
|
|
4756
4782
|
show_as_button: e.boolean().optional(),
|
|
4757
4783
|
metadata: e.record(e.string(), e.any()).optional(),
|
|
4758
|
-
is_system: e.boolean().optional()
|
|
4784
|
+
is_system: e.boolean().optional(),
|
|
4785
|
+
...W
|
|
4759
4786
|
});
|
|
4760
4787
|
e.object({
|
|
4761
4788
|
id: e.string(),
|
|
4762
4789
|
created_at: e.string().transform((e) => e === null ? "" : e),
|
|
4763
4790
|
updated_at: e.string().transform((e) => e === null ? "" : e)
|
|
4764
|
-
}).extend(
|
|
4765
|
-
var
|
|
4791
|
+
}).extend(Ir.shape);
|
|
4792
|
+
var Lr = e.object({
|
|
4766
4793
|
domain: e.string(),
|
|
4767
4794
|
custom_domain_id: e.string().optional(),
|
|
4768
4795
|
type: e.enum(["auth0_managed_certs", "self_managed_certs"]),
|
|
@@ -4776,7 +4803,7 @@ var Nr = e.object({
|
|
|
4776
4803
|
"null"
|
|
4777
4804
|
]).optional(),
|
|
4778
4805
|
domain_metadata: e.record(e.string(), e.string().max(255)).optional()
|
|
4779
|
-
}),
|
|
4806
|
+
}), Rr = e.discriminatedUnion("name", [e.object({
|
|
4780
4807
|
name: e.literal("txt"),
|
|
4781
4808
|
record: e.string(),
|
|
4782
4809
|
domain: e.string()
|
|
@@ -4784,7 +4811,7 @@ var Nr = e.object({
|
|
|
4784
4811
|
name: e.literal("http"),
|
|
4785
4812
|
http_body: e.string(),
|
|
4786
4813
|
http_url: e.string()
|
|
4787
|
-
})]),
|
|
4814
|
+
})]), zr = Lr.extend({
|
|
4788
4815
|
custom_domain_id: e.string(),
|
|
4789
4816
|
primary: e.boolean(),
|
|
4790
4817
|
status: e.enum([
|
|
@@ -4794,28 +4821,28 @@ var Nr = e.object({
|
|
|
4794
4821
|
"ready"
|
|
4795
4822
|
]),
|
|
4796
4823
|
origin_domain_name: e.string().optional(),
|
|
4797
|
-
verification: e.object({ methods: e.array(
|
|
4824
|
+
verification: e.object({ methods: e.array(Rr) }).optional(),
|
|
4798
4825
|
tls_policy: e.string().optional()
|
|
4799
4826
|
});
|
|
4800
|
-
|
|
4827
|
+
Lr.pick({
|
|
4801
4828
|
tls_policy: !0,
|
|
4802
4829
|
custom_client_ip_header: !0,
|
|
4803
4830
|
domain_metadata: !0
|
|
4804
|
-
}).strict(),
|
|
4831
|
+
}).strict(), zr.extend({ tenant_id: e.string() }), e.object({
|
|
4805
4832
|
certificate: e.string().regex(/^-----BEGIN CERTIFICATE-----[\s\S]+-----END CERTIFICATE-----\s*$/, "must be PEM-encoded; include the full certificate chain in leaf-first order"),
|
|
4806
4833
|
private_key: e.string().regex(/-----BEGIN (RSA |EC |ENCRYPTED )?PRIVATE KEY-----[\s\S]+-----END \1PRIVATE KEY-----\s*$/, "must be a PEM-encoded private key")
|
|
4807
4834
|
});
|
|
4808
|
-
var
|
|
4835
|
+
var Br = e.object({
|
|
4809
4836
|
id: e.string(),
|
|
4810
4837
|
order: e.number().optional(),
|
|
4811
4838
|
visible: e.boolean().optional().default(!0)
|
|
4812
|
-
}), q =
|
|
4839
|
+
}), q = Br.extend({ category: e.literal("BLOCK").optional() }), Vr = q.extend({
|
|
4813
4840
|
type: e.literal("DIVIDER"),
|
|
4814
4841
|
config: e.object({ text: e.string().optional() }).optional()
|
|
4815
|
-
}),
|
|
4842
|
+
}), Hr = q.extend({
|
|
4816
4843
|
type: e.literal("HTML"),
|
|
4817
4844
|
config: e.object({ content: e.string().optional() }).optional()
|
|
4818
|
-
}),
|
|
4845
|
+
}), Ur = q.extend({
|
|
4819
4846
|
type: e.literal("IMAGE"),
|
|
4820
4847
|
config: e.object({
|
|
4821
4848
|
src: e.string().optional(),
|
|
@@ -4823,47 +4850,47 @@ var Ir = e.object({
|
|
|
4823
4850
|
width: e.number().optional(),
|
|
4824
4851
|
height: e.number().optional()
|
|
4825
4852
|
}).optional()
|
|
4826
|
-
}),
|
|
4853
|
+
}), Wr = q.extend({
|
|
4827
4854
|
type: e.literal("JUMP_BUTTON"),
|
|
4828
4855
|
config: e.object({
|
|
4829
4856
|
text: e.string().optional(),
|
|
4830
4857
|
target_step: e.string().optional()
|
|
4831
4858
|
})
|
|
4832
|
-
}),
|
|
4859
|
+
}), Gr = q.extend({
|
|
4833
4860
|
type: e.literal("RESEND_BUTTON"),
|
|
4834
4861
|
config: e.object({
|
|
4835
4862
|
text: e.string().optional(),
|
|
4836
4863
|
resend_action: e.string().optional()
|
|
4837
4864
|
})
|
|
4838
|
-
}),
|
|
4865
|
+
}), Kr = q.extend({
|
|
4839
4866
|
type: e.literal("NEXT_BUTTON"),
|
|
4840
4867
|
config: e.object({
|
|
4841
4868
|
text: e.string().optional(),
|
|
4842
4869
|
variant: e.enum(["primary", "secondary"]).optional(),
|
|
4843
4870
|
skip_validation: e.boolean().optional()
|
|
4844
4871
|
})
|
|
4845
|
-
}),
|
|
4872
|
+
}), qr = q.extend({
|
|
4846
4873
|
type: e.literal("PREVIOUS_BUTTON"),
|
|
4847
4874
|
config: e.object({ text: e.string().optional() })
|
|
4848
|
-
}),
|
|
4875
|
+
}), Jr = q.extend({
|
|
4849
4876
|
type: e.literal("RICH_TEXT"),
|
|
4850
4877
|
config: e.object({ content: e.string().optional() }).optional()
|
|
4851
|
-
}),
|
|
4878
|
+
}), Yr = Br.extend({
|
|
4852
4879
|
category: e.literal("WIDGET").optional(),
|
|
4853
4880
|
label: e.string().min(1).optional(),
|
|
4854
4881
|
hint: e.string().min(1).max(500).optional(),
|
|
4855
4882
|
required: e.boolean().optional(),
|
|
4856
4883
|
sensitive: e.boolean().optional()
|
|
4857
|
-
}),
|
|
4884
|
+
}), Xr = Yr.extend({
|
|
4858
4885
|
type: e.literal("AUTH0_VERIFIABLE_CREDENTIALS"),
|
|
4859
4886
|
config: e.object({ credential_type: e.string().optional() })
|
|
4860
|
-
}),
|
|
4887
|
+
}), Zr = Yr.extend({
|
|
4861
4888
|
type: e.literal("GMAPS_ADDRESS"),
|
|
4862
4889
|
config: e.object({ api_key: e.string().optional() })
|
|
4863
|
-
}),
|
|
4890
|
+
}), Qr = Yr.extend({
|
|
4864
4891
|
type: e.literal("RECAPTCHA"),
|
|
4865
4892
|
config: e.object({ site_key: e.string().optional() })
|
|
4866
|
-
}), J =
|
|
4893
|
+
}), J = Br.extend({
|
|
4867
4894
|
category: e.literal("FIELD").optional(),
|
|
4868
4895
|
label: e.string().min(1).optional(),
|
|
4869
4896
|
hint: e.string().min(1).max(500).optional(),
|
|
@@ -4879,10 +4906,10 @@ var Ir = e.object({
|
|
|
4879
4906
|
})).optional(),
|
|
4880
4907
|
required: e.boolean().optional(),
|
|
4881
4908
|
sensitive: e.boolean().optional()
|
|
4882
|
-
}),
|
|
4909
|
+
}), $r = J.extend({
|
|
4883
4910
|
type: e.literal("BOOLEAN"),
|
|
4884
4911
|
config: e.object({ default_value: e.boolean().optional() }).optional()
|
|
4885
|
-
}),
|
|
4912
|
+
}), ei = J.extend({
|
|
4886
4913
|
type: e.literal("CARDS"),
|
|
4887
4914
|
config: e.object({
|
|
4888
4915
|
options: e.array(e.object({
|
|
@@ -4893,7 +4920,7 @@ var Ir = e.object({
|
|
|
4893
4920
|
})).optional(),
|
|
4894
4921
|
multi_select: e.boolean().optional()
|
|
4895
4922
|
}).optional()
|
|
4896
|
-
}),
|
|
4923
|
+
}), ti = J.extend({
|
|
4897
4924
|
type: e.literal("CHOICE"),
|
|
4898
4925
|
config: e.object({
|
|
4899
4926
|
options: e.array(e.object({
|
|
@@ -4904,7 +4931,7 @@ var Ir = e.object({
|
|
|
4904
4931
|
multiple: e.boolean().optional(),
|
|
4905
4932
|
default_value: e.union([e.string(), e.array(e.string())]).optional()
|
|
4906
4933
|
}).optional()
|
|
4907
|
-
}),
|
|
4934
|
+
}), ni = J.extend({
|
|
4908
4935
|
type: e.literal("CODE"),
|
|
4909
4936
|
config: e.object({
|
|
4910
4937
|
length: e.number().int().positive().max(100).optional(),
|
|
@@ -4921,7 +4948,7 @@ var Ir = e.object({
|
|
|
4921
4948
|
message: "default_value is longer than the configured length",
|
|
4922
4949
|
path: ["default_value"]
|
|
4923
4950
|
}).optional()
|
|
4924
|
-
}),
|
|
4951
|
+
}), ri = J.extend({
|
|
4925
4952
|
type: e.literal("CUSTOM"),
|
|
4926
4953
|
config: e.object({
|
|
4927
4954
|
component: e.string().optional(),
|
|
@@ -4929,7 +4956,7 @@ var Ir = e.object({
|
|
|
4929
4956
|
schema: e.record(e.string(), e.any()).optional(),
|
|
4930
4957
|
code: e.string().optional()
|
|
4931
4958
|
})
|
|
4932
|
-
}),
|
|
4959
|
+
}), ii = J.extend({
|
|
4933
4960
|
type: e.literal("DATE"),
|
|
4934
4961
|
config: e.object({
|
|
4935
4962
|
format: e.string().optional(),
|
|
@@ -4937,7 +4964,7 @@ var Ir = e.object({
|
|
|
4937
4964
|
max: e.string().optional(),
|
|
4938
4965
|
default_value: e.string().optional()
|
|
4939
4966
|
}).optional()
|
|
4940
|
-
}),
|
|
4967
|
+
}), ai = J.extend({
|
|
4941
4968
|
type: e.literal("DROPDOWN"),
|
|
4942
4969
|
config: e.object({
|
|
4943
4970
|
options: e.array(e.object({
|
|
@@ -4949,7 +4976,7 @@ var Ir = e.object({
|
|
|
4949
4976
|
multiple: e.boolean().optional(),
|
|
4950
4977
|
default_value: e.union([e.string(), e.array(e.string())]).optional()
|
|
4951
4978
|
}).optional()
|
|
4952
|
-
}),
|
|
4979
|
+
}), oi = J.extend({
|
|
4953
4980
|
type: e.literal("EMAIL"),
|
|
4954
4981
|
config: e.object({
|
|
4955
4982
|
placeholder: e.string().optional(),
|
|
@@ -4957,20 +4984,20 @@ var Ir = e.object({
|
|
|
4957
4984
|
last_used: e.boolean().optional(),
|
|
4958
4985
|
last_used_label: e.string().optional()
|
|
4959
4986
|
}).optional()
|
|
4960
|
-
}),
|
|
4987
|
+
}), si = J.extend({
|
|
4961
4988
|
type: e.literal("FILE"),
|
|
4962
4989
|
config: e.object({
|
|
4963
4990
|
accept: e.string().optional(),
|
|
4964
4991
|
max_size: e.number().optional(),
|
|
4965
4992
|
multiple: e.boolean().optional()
|
|
4966
4993
|
}).optional()
|
|
4967
|
-
}),
|
|
4994
|
+
}), ci = J.extend({
|
|
4968
4995
|
type: e.literal("LEGAL"),
|
|
4969
4996
|
config: e.object({
|
|
4970
4997
|
text: e.string(),
|
|
4971
4998
|
html: e.boolean().optional()
|
|
4972
4999
|
}).optional()
|
|
4973
|
-
}),
|
|
5000
|
+
}), li = J.extend({
|
|
4974
5001
|
type: e.literal("NUMBER"),
|
|
4975
5002
|
config: e.object({
|
|
4976
5003
|
placeholder: e.string().optional(),
|
|
@@ -4979,7 +5006,7 @@ var Ir = e.object({
|
|
|
4979
5006
|
step: e.number().optional(),
|
|
4980
5007
|
default_value: e.string().optional()
|
|
4981
5008
|
}).optional()
|
|
4982
|
-
}),
|
|
5009
|
+
}), ui = J.extend({
|
|
4983
5010
|
type: e.literal("PASSWORD"),
|
|
4984
5011
|
config: e.object({
|
|
4985
5012
|
placeholder: e.string().optional(),
|
|
@@ -4988,13 +5015,13 @@ var Ir = e.object({
|
|
|
4988
5015
|
forgot_password_link: e.string().optional(),
|
|
4989
5016
|
default_value: e.string().optional()
|
|
4990
5017
|
}).optional()
|
|
4991
|
-
}),
|
|
5018
|
+
}), di = J.extend({
|
|
4992
5019
|
type: e.literal("PAYMENT"),
|
|
4993
5020
|
config: e.object({
|
|
4994
5021
|
provider: e.string().optional(),
|
|
4995
5022
|
currency: e.string().optional()
|
|
4996
5023
|
}).optional()
|
|
4997
|
-
}),
|
|
5024
|
+
}), fi = J.extend({
|
|
4998
5025
|
type: e.literal("SOCIAL"),
|
|
4999
5026
|
config: e.object({
|
|
5000
5027
|
providers: e.array(e.string()).optional(),
|
|
@@ -5009,7 +5036,7 @@ var Ir = e.object({
|
|
|
5009
5036
|
last_used_label: e.string().optional()
|
|
5010
5037
|
})).optional()
|
|
5011
5038
|
}).optional()
|
|
5012
|
-
}),
|
|
5039
|
+
}), pi = J.extend({
|
|
5013
5040
|
type: e.literal("TEL"),
|
|
5014
5041
|
config: e.object({
|
|
5015
5042
|
placeholder: e.string().optional(),
|
|
@@ -5017,7 +5044,7 @@ var Ir = e.object({
|
|
|
5017
5044
|
default_value: e.string().optional(),
|
|
5018
5045
|
allow_email: e.boolean().optional()
|
|
5019
5046
|
}).optional()
|
|
5020
|
-
}),
|
|
5047
|
+
}), mi = J.extend({
|
|
5021
5048
|
type: e.literal("TEXT"),
|
|
5022
5049
|
config: e.object({
|
|
5023
5050
|
placeholder: e.string().optional(),
|
|
@@ -5027,41 +5054,37 @@ var Ir = e.object({
|
|
|
5027
5054
|
last_used: e.boolean().optional(),
|
|
5028
5055
|
last_used_label: e.string().optional()
|
|
5029
5056
|
}).optional()
|
|
5030
|
-
}),
|
|
5057
|
+
}), hi = J.extend({
|
|
5031
5058
|
type: e.literal("COUNTRY"),
|
|
5032
5059
|
config: e.object({
|
|
5033
5060
|
placeholder: e.string().optional(),
|
|
5034
5061
|
default_value: e.string().optional()
|
|
5035
5062
|
}).optional()
|
|
5036
|
-
}),
|
|
5063
|
+
}), gi = J.extend({
|
|
5037
5064
|
type: e.literal("URL"),
|
|
5038
5065
|
config: e.object({
|
|
5039
5066
|
placeholder: e.string().optional(),
|
|
5040
5067
|
default_value: e.string().optional()
|
|
5041
5068
|
}).optional()
|
|
5042
|
-
}),
|
|
5043
|
-
Lr,
|
|
5044
|
-
Rr,
|
|
5045
|
-
zr,
|
|
5046
|
-
Br,
|
|
5069
|
+
}), _i = e.discriminatedUnion("type", [
|
|
5047
5070
|
Vr,
|
|
5048
5071
|
Hr,
|
|
5049
5072
|
Ur,
|
|
5050
|
-
Wr
|
|
5051
|
-
|
|
5073
|
+
Wr,
|
|
5074
|
+
Gr,
|
|
5052
5075
|
Kr,
|
|
5053
5076
|
qr,
|
|
5054
5077
|
Jr
|
|
5055
|
-
]),
|
|
5056
|
-
Yr,
|
|
5078
|
+
]), vi = e.discriminatedUnion("type", [
|
|
5057
5079
|
Xr,
|
|
5058
5080
|
Zr,
|
|
5059
|
-
Qr
|
|
5060
|
-
|
|
5081
|
+
Qr
|
|
5082
|
+
]), yi = e.discriminatedUnion("type", [
|
|
5061
5083
|
$r,
|
|
5062
5084
|
ei,
|
|
5063
5085
|
ti,
|
|
5064
5086
|
ni,
|
|
5087
|
+
hi,
|
|
5065
5088
|
ri,
|
|
5066
5089
|
ii,
|
|
5067
5090
|
ai,
|
|
@@ -5070,11 +5093,15 @@ var Ir = e.object({
|
|
|
5070
5093
|
ci,
|
|
5071
5094
|
li,
|
|
5072
5095
|
ui,
|
|
5073
|
-
|
|
5074
|
-
|
|
5096
|
+
di,
|
|
5097
|
+
fi,
|
|
5075
5098
|
pi,
|
|
5076
5099
|
mi,
|
|
5077
|
-
|
|
5100
|
+
gi
|
|
5101
|
+
]), bi = e.union([
|
|
5102
|
+
_i,
|
|
5103
|
+
vi,
|
|
5104
|
+
yi
|
|
5078
5105
|
]);
|
|
5079
5106
|
new Set([
|
|
5080
5107
|
"BOOLEAN",
|
|
@@ -5104,7 +5131,7 @@ new Set([
|
|
|
5104
5131
|
var Y = e.object({
|
|
5105
5132
|
x: e.number(),
|
|
5106
5133
|
y: e.number()
|
|
5107
|
-
}),
|
|
5134
|
+
}), xi = e.object({
|
|
5108
5135
|
id: e.string(),
|
|
5109
5136
|
type: e.literal("FLOW"),
|
|
5110
5137
|
coordinates: Y,
|
|
@@ -5113,7 +5140,7 @@ var Y = e.object({
|
|
|
5113
5140
|
flow_id: e.string().max(30),
|
|
5114
5141
|
next_node: e.string().optional()
|
|
5115
5142
|
})
|
|
5116
|
-
}),
|
|
5143
|
+
}), Si = e.object({
|
|
5117
5144
|
id: e.string(),
|
|
5118
5145
|
type: e.literal("ROUTER"),
|
|
5119
5146
|
coordinates: Y,
|
|
@@ -5127,20 +5154,20 @@ var Y = e.object({
|
|
|
5127
5154
|
})),
|
|
5128
5155
|
fallback: e.string()
|
|
5129
5156
|
})
|
|
5130
|
-
}),
|
|
5157
|
+
}), Ci = e.object({
|
|
5131
5158
|
id: e.string(),
|
|
5132
5159
|
type: e.literal("STEP"),
|
|
5133
5160
|
coordinates: Y,
|
|
5134
5161
|
alias: e.string().min(1).max(150).optional(),
|
|
5135
5162
|
config: e.object({
|
|
5136
|
-
components: e.array(
|
|
5163
|
+
components: e.array(bi),
|
|
5137
5164
|
next_node: e.string().optional()
|
|
5138
5165
|
})
|
|
5139
|
-
}),
|
|
5140
|
-
|
|
5141
|
-
|
|
5142
|
-
|
|
5143
|
-
]),
|
|
5166
|
+
}), wi = e.discriminatedUnion("type", [
|
|
5167
|
+
xi,
|
|
5168
|
+
Si,
|
|
5169
|
+
Ci
|
|
5170
|
+
]), Ti = e.object({
|
|
5144
5171
|
name: e.string().openapi({ description: "The name of the form" }),
|
|
5145
5172
|
messages: e.object({
|
|
5146
5173
|
errors: e.record(e.string(), e.any()).optional(),
|
|
@@ -5151,7 +5178,7 @@ var Y = e.object({
|
|
|
5151
5178
|
default: e.string().optional()
|
|
5152
5179
|
}).optional(),
|
|
5153
5180
|
translations: e.record(e.string(), e.any()).optional(),
|
|
5154
|
-
nodes: e.array(
|
|
5181
|
+
nodes: e.array(wi).optional(),
|
|
5155
5182
|
start: e.object({
|
|
5156
5183
|
hidden_fields: e.array(e.object({
|
|
5157
5184
|
key: e.string(),
|
|
@@ -5175,8 +5202,8 @@ var Y = e.object({
|
|
|
5175
5202
|
sdk_src: e.string().optional()
|
|
5176
5203
|
}).optional()
|
|
5177
5204
|
}).openapi({ description: "Schema for flow-based forms (matches Auth0 Forms structure)" });
|
|
5178
|
-
|
|
5179
|
-
var
|
|
5205
|
+
U.extend(Ti.shape).extend({ id: e.string() });
|
|
5206
|
+
var Ei = e.object({
|
|
5180
5207
|
id: e.number().optional(),
|
|
5181
5208
|
text: e.string(),
|
|
5182
5209
|
type: e.enum([
|
|
@@ -5185,12 +5212,12 @@ var Si = e.object({
|
|
|
5185
5212
|
"success",
|
|
5186
5213
|
"warning"
|
|
5187
5214
|
])
|
|
5188
|
-
}),
|
|
5215
|
+
}), Di = e.object({
|
|
5189
5216
|
id: e.string().optional(),
|
|
5190
5217
|
text: e.string(),
|
|
5191
5218
|
href: e.string(),
|
|
5192
5219
|
linkText: e.string().optional()
|
|
5193
|
-
}),
|
|
5220
|
+
}), Oi = e.object({
|
|
5194
5221
|
"form-content-start": e.string().optional(),
|
|
5195
5222
|
"form-content-end": e.string().optional(),
|
|
5196
5223
|
"form-footer-start": e.string().optional(),
|
|
@@ -5204,13 +5231,13 @@ e.object({
|
|
|
5204
5231
|
method: e.enum(["POST", "GET"]),
|
|
5205
5232
|
title: e.string().optional(),
|
|
5206
5233
|
description: e.string().optional(),
|
|
5207
|
-
components: e.array(
|
|
5208
|
-
messages: e.array(
|
|
5209
|
-
links: e.array(
|
|
5210
|
-
partials:
|
|
5234
|
+
components: e.array(bi),
|
|
5235
|
+
messages: e.array(Ei).optional(),
|
|
5236
|
+
links: e.array(Di).optional(),
|
|
5237
|
+
partials: Oi.optional(),
|
|
5211
5238
|
footer: e.string().optional()
|
|
5212
5239
|
});
|
|
5213
|
-
var
|
|
5240
|
+
var X = e.enum([
|
|
5214
5241
|
"pre-user-registration",
|
|
5215
5242
|
"post-user-registration",
|
|
5216
5243
|
"post-user-login",
|
|
@@ -5218,19 +5245,19 @@ var Ti = e.enum([
|
|
|
5218
5245
|
"validate-registration-username",
|
|
5219
5246
|
"pre-user-deletion",
|
|
5220
5247
|
"post-user-deletion"
|
|
5221
|
-
]),
|
|
5248
|
+
]), ki = e.enum(["post-user-login"]), Ai = e.enum([
|
|
5222
5249
|
"post-user-login",
|
|
5223
5250
|
"post-user-registration",
|
|
5224
5251
|
"post-user-update",
|
|
5225
5252
|
"credentials-exchange"
|
|
5226
|
-
]),
|
|
5253
|
+
]), ji = e.enum([
|
|
5227
5254
|
"post-user-login",
|
|
5228
5255
|
"credentials-exchange",
|
|
5229
5256
|
"pre-user-registration",
|
|
5230
5257
|
"post-user-registration"
|
|
5231
|
-
]),
|
|
5232
|
-
|
|
5233
|
-
var
|
|
5258
|
+
]), Mi = e.enum(["post-user-login"]);
|
|
5259
|
+
X.options, ki.options, Ai.options, ji.options, Mi.options;
|
|
5260
|
+
var Ni = e.enum(["impersonate"]), Pi = e.enum([
|
|
5234
5261
|
"ensure-username",
|
|
5235
5262
|
"set-preferred-username",
|
|
5236
5263
|
"account-linking"
|
|
@@ -5239,86 +5266,87 @@ var ki = e.enum(["impersonate"]), Ai = e.enum([
|
|
|
5239
5266
|
synchronous: e.boolean().default(!1),
|
|
5240
5267
|
priority: e.number().optional(),
|
|
5241
5268
|
hook_id: e.string().optional(),
|
|
5242
|
-
metadata: e.record(e.string(), e.unknown()).optional()
|
|
5243
|
-
|
|
5269
|
+
metadata: e.record(e.string(), e.unknown()).optional(),
|
|
5270
|
+
...W
|
|
5271
|
+
}, Fi = e.object({
|
|
5244
5272
|
...Z,
|
|
5245
|
-
trigger_id:
|
|
5273
|
+
trigger_id: X,
|
|
5246
5274
|
url: e.string()
|
|
5247
|
-
}),
|
|
5275
|
+
}), Ii = e.object({
|
|
5248
5276
|
...Z,
|
|
5249
|
-
trigger_id:
|
|
5277
|
+
trigger_id: ki,
|
|
5250
5278
|
form_id: e.string()
|
|
5251
|
-
}),
|
|
5279
|
+
}), Li = e.object({
|
|
5252
5280
|
...Z,
|
|
5253
|
-
trigger_id:
|
|
5254
|
-
template_id:
|
|
5255
|
-
}),
|
|
5281
|
+
trigger_id: Ai,
|
|
5282
|
+
template_id: Pi
|
|
5283
|
+
}), Ri = e.object({
|
|
5256
5284
|
...Z,
|
|
5257
|
-
trigger_id:
|
|
5285
|
+
trigger_id: ji,
|
|
5258
5286
|
code_id: e.string()
|
|
5259
|
-
}),
|
|
5287
|
+
}), zi = e.object({
|
|
5260
5288
|
...Z,
|
|
5261
|
-
trigger_id:
|
|
5262
|
-
page_id:
|
|
5289
|
+
trigger_id: Mi,
|
|
5290
|
+
page_id: Ni,
|
|
5263
5291
|
permission_required: e.string().optional()
|
|
5264
5292
|
});
|
|
5265
5293
|
e.union([
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
|
|
5294
|
+
Fi,
|
|
5295
|
+
Ii,
|
|
5296
|
+
Li,
|
|
5297
|
+
Ri,
|
|
5298
|
+
zi
|
|
5271
5299
|
]);
|
|
5272
|
-
var
|
|
5300
|
+
var Bi = e.object({
|
|
5273
5301
|
...Z,
|
|
5274
|
-
trigger_id:
|
|
5275
|
-
}).extend(
|
|
5302
|
+
trigger_id: X
|
|
5303
|
+
}).extend(U.shape).extend({
|
|
5276
5304
|
hook_id: e.string(),
|
|
5277
5305
|
url: e.string()
|
|
5278
|
-
}),
|
|
5306
|
+
}), Vi = e.object({
|
|
5279
5307
|
...Z,
|
|
5280
|
-
trigger_id:
|
|
5281
|
-
}).extend(
|
|
5308
|
+
trigger_id: ki
|
|
5309
|
+
}).extend(U.shape).extend({
|
|
5282
5310
|
hook_id: e.string(),
|
|
5283
5311
|
form_id: e.string()
|
|
5284
|
-
}),
|
|
5312
|
+
}), Hi = e.object({
|
|
5285
5313
|
...Z,
|
|
5286
|
-
trigger_id:
|
|
5287
|
-
}).extend(
|
|
5314
|
+
trigger_id: Ai
|
|
5315
|
+
}).extend(U.shape).extend({
|
|
5288
5316
|
hook_id: e.string(),
|
|
5289
|
-
template_id:
|
|
5290
|
-
}),
|
|
5317
|
+
template_id: Pi
|
|
5318
|
+
}), Ui = e.object({
|
|
5291
5319
|
...Z,
|
|
5292
|
-
trigger_id:
|
|
5293
|
-
}).extend(
|
|
5320
|
+
trigger_id: ji
|
|
5321
|
+
}).extend(U.shape).extend({
|
|
5294
5322
|
hook_id: e.string(),
|
|
5295
5323
|
code_id: e.string()
|
|
5296
|
-
}),
|
|
5324
|
+
}), Wi = e.object({
|
|
5297
5325
|
...Z,
|
|
5298
|
-
trigger_id:
|
|
5299
|
-
}).extend(
|
|
5326
|
+
trigger_id: Mi
|
|
5327
|
+
}).extend(U.shape).extend({
|
|
5300
5328
|
hook_id: e.string(),
|
|
5301
|
-
page_id:
|
|
5329
|
+
page_id: Ni,
|
|
5302
5330
|
permission_required: e.string().optional()
|
|
5303
5331
|
});
|
|
5304
5332
|
e.union([
|
|
5305
|
-
|
|
5306
|
-
|
|
5307
|
-
|
|
5308
|
-
|
|
5309
|
-
|
|
5333
|
+
Bi,
|
|
5334
|
+
Vi,
|
|
5335
|
+
Hi,
|
|
5336
|
+
Ui,
|
|
5337
|
+
Wi
|
|
5310
5338
|
]), e.object({
|
|
5311
5339
|
code: e.string().max(1e5),
|
|
5312
5340
|
secrets: e.record(e.string(), e.string()).optional()
|
|
5313
5341
|
}).extend({
|
|
5314
5342
|
id: e.string(),
|
|
5315
5343
|
tenant_id: e.string()
|
|
5316
|
-
}).extend(
|
|
5317
|
-
var
|
|
5344
|
+
}).extend(U.shape);
|
|
5345
|
+
var Gi = e.object({ name: e.string().optional() }), Ki = e.object({ email: e.string().optional() }), qi = e.object({
|
|
5318
5346
|
id: e.string().optional(),
|
|
5319
5347
|
organization_id: e.string().max(50),
|
|
5320
|
-
inviter:
|
|
5321
|
-
invitee:
|
|
5348
|
+
inviter: Gi,
|
|
5349
|
+
invitee: Ki,
|
|
5322
5350
|
invitation_url: e.string().url(),
|
|
5323
5351
|
client_id: e.string(),
|
|
5324
5352
|
connection_id: e.string().optional(),
|
|
@@ -5334,8 +5362,8 @@ e.object({
|
|
|
5334
5362
|
created_at: e.string().datetime(),
|
|
5335
5363
|
expires_at: e.string().datetime(),
|
|
5336
5364
|
ticket_id: e.string().optional()
|
|
5337
|
-
}).extend(
|
|
5338
|
-
var
|
|
5365
|
+
}).extend(qi.omit({ id: !0 }).shape);
|
|
5366
|
+
var Ji = e.object({
|
|
5339
5367
|
alg: e.enum([
|
|
5340
5368
|
"RS256",
|
|
5341
5369
|
"RS384",
|
|
@@ -5377,7 +5405,7 @@ var Wi = e.object({
|
|
|
5377
5405
|
path: [r],
|
|
5378
5406
|
message: `EC JWK is missing required member '${r}'`
|
|
5379
5407
|
});
|
|
5380
|
-
}),
|
|
5408
|
+
}), Yi = e.object({ keys: e.array(Ji) });
|
|
5381
5409
|
e.object({
|
|
5382
5410
|
issuer: e.string(),
|
|
5383
5411
|
authorization_endpoint: e.string(),
|
|
@@ -5405,28 +5433,28 @@ e.object({
|
|
|
5405
5433
|
backchannel_logout_supported: e.boolean().optional(),
|
|
5406
5434
|
backchannel_logout_session_supported: e.boolean().optional()
|
|
5407
5435
|
});
|
|
5408
|
-
var
|
|
5436
|
+
var Xi = /* @__PURE__ */ function(e) {
|
|
5409
5437
|
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;
|
|
5410
|
-
}({}),
|
|
5438
|
+
}({}), Zi = e.nativeEnum(Xi), Qi = e.object({
|
|
5411
5439
|
strategy: e.string(),
|
|
5412
5440
|
strategy_type: e.string()
|
|
5413
5441
|
});
|
|
5414
5442
|
e.object({
|
|
5415
5443
|
csrf_token: e.string(),
|
|
5416
5444
|
auth0Client: e.string().optional(),
|
|
5417
|
-
authParams:
|
|
5445
|
+
authParams: Mr,
|
|
5418
5446
|
expires_at: e.string(),
|
|
5419
5447
|
deleted_at: e.string().optional(),
|
|
5420
5448
|
ip: e.string().optional(),
|
|
5421
5449
|
useragent: e.string().optional(),
|
|
5422
5450
|
session_id: e.string().optional(),
|
|
5423
5451
|
authorization_url: e.string().optional(),
|
|
5424
|
-
state:
|
|
5452
|
+
state: Zi.optional().default("pending"),
|
|
5425
5453
|
state_data: e.string().optional(),
|
|
5426
5454
|
failure_reason: e.string().optional(),
|
|
5427
5455
|
user_id: e.string().optional(),
|
|
5428
5456
|
auth_connection: e.string().optional(),
|
|
5429
|
-
auth_strategy:
|
|
5457
|
+
auth_strategy: Qi.optional(),
|
|
5430
5458
|
authenticated_at: e.string().optional()
|
|
5431
5459
|
}).openapi({ description: "This represents a login sesion" }).extend({
|
|
5432
5460
|
id: e.string().openapi({ description: "This is is used as the state in the universal login" }),
|
|
@@ -5446,6 +5474,7 @@ var Q = {
|
|
|
5446
5474
|
CODE_LINK_SENT: "cls",
|
|
5447
5475
|
CODE_SENT: "cs",
|
|
5448
5476
|
DEPRECATION_NOTICE: "depnote",
|
|
5477
|
+
CONFIG_INHERITANCE_DIFF: "cfgdiff",
|
|
5449
5478
|
FAILED_LOGIN: "f",
|
|
5450
5479
|
FAILED_BY_CONNECTOR: "fc",
|
|
5451
5480
|
FAILED_CHANGE_EMAIL: "fce",
|
|
@@ -5593,17 +5622,17 @@ var Q = {
|
|
|
5593
5622
|
WARNING_DURING_LOGIN: "w",
|
|
5594
5623
|
WARNING_SENDING_NOTIFICATION: "wn",
|
|
5595
5624
|
WARNING_USER_MANAGEMENT: "wum"
|
|
5596
|
-
},
|
|
5597
|
-
Q.ACLS_SUMMARY, Q.ACTIONS_EXECUTION_FAILED, Q.API_LIMIT, Q.API_LIMIT_WARNING, Q.APPI, Q.CIBA_EXCHANGE_FAILED, Q.CIBA_EXCHANGE_SUCCEEDED, Q.CIBA_START_FAILED, Q.CIBA_START_SUCCEEDED, Q.CODE_LINK_SENT, Q.CODE_SENT, Q.DEPRECATION_NOTICE, Q.FAILED_LOGIN, Q.FAILED_BY_CONNECTOR, Q.FAILED_CHANGE_EMAIL, Q.FAILED_BY_CORS, Q.FAILED_CROSS_ORIGIN_AUTHENTICATION, Q.FAILED_CHANGE_PASSWORD, Q.FAILED_POST_CHANGE_PASSWORD_HOOK, Q.FAILED_CHANGE_PHONE_NUMBER, Q.FAILED_CHANGE_PASSWORD_REQUEST, Q.FAILED_CONNECTOR_PROVISIONING, Q.FAILED_CHANGE_USERNAME, Q.FAILED_DELEGATION, Q.FAILED_DEVICE_ACTIVATION, Q.FAILED_DEVICE_AUTHORIZATION_REQUEST, Q.USER_CANCELED_DEVICE_CONFIRMATION, Q.FAILED_USER_DELETION, Q.FAILED_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS, Q.FAILED_EXCHANGE_CUSTOM_TOKEN, Q.FAILED_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN, Q.FAILED_FEDERATED_LOGOUT, Q.FAILED_EXCHANGE_NATIVE_SOCIAL_LOGIN, Q.FAILED_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_ROTATING_REFRESH_TOKEN, Q.FAILED_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_SUBJECT_TOKEN_FOR_ACCESS_TOKEN, Q.FAILED_HOOK, Q.FAILED_IMPERSONATION, Q.FAILED_INVITE_ACCEPT, Q.FAILED_LOGOUT, Q.FLOWS_EXECUTION_COMPLETED, Q.FLOWS_EXECUTION_FAILED, Q.FAILED_SENDING_NOTIFICATION, Q.FORMS_SUBMISSION_FAILED, Q.FORMS_SUBMISSION_SUCCEEDED, Q.FAILED_LOGIN_INCORRECT_PASSWORD, Q.FAILED_PUSHED_AUTHORIZATION_REQUEST, Q.FAILED_POST_USER_REGISTRATION_HOOK, Q.FAILED_SIGNUP, Q.FAILED_SILENT_AUTH, Q.FAILED_LOGIN_INVALID_EMAIL_USERNAME, Q.FAILED_USERS_IMPORT, Q.FAILED_VERIFICATION_EMAIL, Q.FAILED_VERIFICATION_EMAIL_REQUEST, Q.EMAIL_VERIFICATION_CONFIRMED, Q.EMAIL_VERIFICATION_FAILED, Q.MFA_AUTH_FAILED, Q.MFA_AUTH_REJECTED, Q.MFA_AUTH_SUCCESS, Q.MFA_ENROLLMENT_COMPLETE, Q.TOO_MANY_MFA_FAILURES, Q.MFA_RECOVERY_FAILED, Q.MFA_RECOVERY_RATE_LIMIT_EXCEED, Q.MFA_RECOVERY_SUCCESS, Q.MFA_EMAIL_SENT, Q.EMAIL_VERIFICATION_SENT, Q.EMAIL_VERIFICATION_SEND_FAILURE, Q.PUSH_NOTIFICATION_SENT, Q.ERROR_SENDING_MFA_PUSH_NOTIFICATION, Q.MFA_SMS_SENT, Q.ERROR_SENDING_MFA_SMS, Q.MFA_VOICE_CALL_SUCCESS, Q.MFA_VOICE_CALL_FAILED, Q.SECOND_FACTOR_STARTED, Q.MFA_ENROLL_STARTED, Q.MFA_ENROLLMENT_FAILED, Q.GUARDIAN_TENANT_UPDATE, Q.UNENROLL_DEVICE_ACCOUNT, Q.UPDATE_DEVICE_ACCOUNT, Q.WEBAUTHN_CHALLENGE_FAILED, Q.WEBAUTHN_ENROLLMENT_FAILED, Q.FAILED_KMS_API_OPERATION, Q.SUCCESS_KMS_API_OPERATION, Q.KMS_KEY_STATE_CHANGED, Q.TOO_MANY_CALLS_TO_DELEGATION, Q.BLOCKED_IP_ADDRESS, Q.BLOCKED_ACCOUNT_IP, Q.BLOCKED_ACCOUNT_EMAIL, Q.INFORMATION, Q.MFA_REQUIRED, Q.MANAGEMENT_API_READ_OPERATION, Q.FAILED_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT, Q.SUCCESSFUL_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT, Q.FAILED_OIDC_BACKCHANNEL_LOGOUT, Q.SUCCESSFUL_OIDC_BACKCHANNEL_LOGOUT, Q.ORGANIZATION_MEMBER_ADDED, Q.PASSKEY_CHALLENGE_FAILED, Q.PASSKEY_CHALLENGE_STARTED, Q.PRE_LOGIN_ASSESSMENT, Q.BREACHED_PASSWORD, Q.BREACHED_PASSWORD_ON_RESET, Q.SUCCESS_RESOURCE_CLEANUP, Q.RICH_CONSENTS_ACCESS_ERROR, Q.SUCCESS_LOGIN, Q.SUCCESS_API_OPERATION, Q.FAILED_API_OPERATION, Q.SUCCESS_CHANGE_EMAIL, Q.SUCCESS_CROSS_ORIGIN_AUTHENTICATION, Q.SUCCESS_CHANGE_PASSWORD, Q.SUCCESS_CHANGE_PHONE_NUMBER, Q.SUCCESS_CHANGE_PASSWORD_REQUEST, Q.SUCCESS_CHANGE_USERNAME, Q.SUCCESS_CREDENTIAL_VALIDATION, Q.SUCCESS_DELEGATION, Q.SUCCESS_USER_DELETION, Q.SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS, Q.SUCCESS_EXCHANGE_CUSTOM_TOKEN, Q.SUCCESS_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_NATIVE_SOCIAL_LOGIN, Q.SUCCESS_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSKEY_OOB_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSKEY_OTP_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSKEY_MFA_RECOVERY_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_SUBJECT_TOKEN_FOR_ACCESS_TOKEN, Q.SUCCESS_IMPERSONATION, Q.SUCCESSFULLY_ACCEPTED_USER_INVITE, Q.BREACHED_PASSWORD_ON_SIGNUP, Q.SUCCESS_LOGOUT, Q.SUCCESS_HOOK, Q.SUCCESS_PASSWORD_MIGRATION, Q.SUCCESS_REVOCATION, Q.SUCCESS_SIGNUP, Q.FAILED_SS_SSO_OPERATION, Q.INFORMATION_FROM_SS_SSO_OPERATION, Q.SUCCESS_SS_SSO_OPERATION, Q.SUCCESS_SILENT_AUTH, Q.SUCCESSFUL_SCIM_OPERATION, Q.SUCCESSFULLY_IMPORTED_USERS, Q.SUCCESS_VERIFICATION_EMAIL, Q.SUCCESS_VERIFICATION_EMAIL_REQUEST, Q.MAX_AMOUNT_OF_AUTHENTICATORS, Q.USER_LOGIN_BLOCK_RELEASED, Q.FAILED_UNIVERSAL_LOGOUT, Q.SUCCESSFUL_UNIVERSAL_LOGOUT, Q.WARNING_DURING_LOGIN, Q.WARNING_SENDING_NOTIFICATION, Q.WARNING_USER_MANAGEMENT, (() => {
|
|
5625
|
+
}, $i = e.string().refine((e) => Object.values(Q).includes(e), { message: "Invalid log type" });
|
|
5626
|
+
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.CONFIG_INHERITANCE_DIFF, 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, (() => {
|
|
5598
5627
|
let e = {};
|
|
5599
|
-
for (let [t, n] of Object.entries(Q)) t.startsWith("SUCCESS_") || t.startsWith("SUCCESSFUL_") || t.startsWith("SUCCESSFULLY_") || t.endsWith("_SUCCEEDED") || t.endsWith("_COMPLETED") ? e[n] = "success" : t.startsWith("FAILED_") || t.startsWith("ERROR_") || t.startsWith("BREACHED_") || t.startsWith("BLOCKED_") || t === "MFA_AUTH_FAILED" || t === "MFA_AUTH_REJECTED" || t === "MFA_RECOVERY_FAILED" || t === "MFA_ENROLLMENT_FAILED" || t === "EMAIL_VERIFICATION_FAILED" || t === "WEBAUTHN_CHALLENGE_FAILED" || t === "WEBAUTHN_ENROLLMENT_FAILED" || t === "PASSKEY_CHALLENGE_FAILED" || t === "FLOWS_EXECUTION_FAILED" || t === "FORMS_SUBMISSION_FAILED" || t === "CIBA_EXCHANGE_FAILED" || t === "CIBA_START_FAILED" || t === "ACTIONS_EXECUTION_FAILED" || t === "RICH_CONSENTS_ACCESS_ERROR" || t === "USER_CANCELED_DEVICE_CONFIRMATION" || t === "TOO_MANY_MFA_FAILURES" || t === "MFA_RECOVERY_RATE_LIMIT_EXCEED" || t === "API_LIMIT" || t === "MAX_AMOUNT_OF_AUTHENTICATORS" ? e[n] = "failure" : t.startsWith("WARNING_") || t === "API_LIMIT_WARNING" || t === "DEPRECATION_NOTICE" || t === "PRE_LOGIN_ASSESSMENT" ? e[n] = "warning" : t === "CODE_SENT" || t === "CODE_LINK_SENT" || t === "MFA_EMAIL_SENT" || t === "MFA_SMS_SENT" || t === "EMAIL_VERIFICATION_SENT" || t === "PUSH_NOTIFICATION_SENT" ? e[n] = "code_sent" : t === "INFORMATION" || t === "INFORMATION_FROM_SS_SSO_OPERATION" || t === "MANAGEMENT_API_READ_OPERATION" || t === "APPI" || t === "ACLS_SUMMARY" || t === "ORGANIZATION_MEMBER_ADDED" ? e[n] = "info" : e[n] = "other";
|
|
5628
|
+
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 === "CONFIG_INHERITANCE_DIFF" || t === "ACLS_SUMMARY" || t === "ORGANIZATION_MEMBER_ADDED" ? e[n] = "info" : e[n] = "other";
|
|
5600
5629
|
return e;
|
|
5601
5630
|
})();
|
|
5602
|
-
var
|
|
5631
|
+
var ea = e.object({
|
|
5603
5632
|
name: e.string(),
|
|
5604
5633
|
version: e.string(),
|
|
5605
5634
|
env: e.object({ node: e.string().optional() }).optional()
|
|
5606
|
-
}),
|
|
5635
|
+
}), ta = e.object({
|
|
5607
5636
|
country_code: e.string().length(2),
|
|
5608
5637
|
city_name: e.string(),
|
|
5609
5638
|
latitude: e.string(),
|
|
@@ -5612,7 +5641,7 @@ var Xi = e.object({
|
|
|
5612
5641
|
continent_code: e.string()
|
|
5613
5642
|
});
|
|
5614
5643
|
e.object({
|
|
5615
|
-
type:
|
|
5644
|
+
type: $i,
|
|
5616
5645
|
date: e.string(),
|
|
5617
5646
|
description: e.string().optional(),
|
|
5618
5647
|
ip: e.string().optional(),
|
|
@@ -5630,63 +5659,63 @@ e.object({
|
|
|
5630
5659
|
strategy: e.string().optional(),
|
|
5631
5660
|
strategy_type: e.string().optional(),
|
|
5632
5661
|
hostname: e.string().optional(),
|
|
5633
|
-
auth0_client:
|
|
5662
|
+
auth0_client: ea.optional(),
|
|
5634
5663
|
log_id: e.string().optional(),
|
|
5635
|
-
location_info:
|
|
5664
|
+
location_info: ta.optional()
|
|
5636
5665
|
}).extend({ log_id: e.string() });
|
|
5637
|
-
var
|
|
5666
|
+
var na = e.enum([
|
|
5638
5667
|
"http",
|
|
5639
5668
|
"eventbridge",
|
|
5640
5669
|
"eventgrid",
|
|
5641
5670
|
"splunk",
|
|
5642
5671
|
"datadog",
|
|
5643
5672
|
"sumo"
|
|
5644
|
-
]),
|
|
5673
|
+
]), ra = e.enum([
|
|
5645
5674
|
"active",
|
|
5646
5675
|
"paused",
|
|
5647
5676
|
"suspended"
|
|
5648
|
-
]),
|
|
5677
|
+
]), ia = e.object({
|
|
5649
5678
|
type: e.string(),
|
|
5650
5679
|
name: e.string()
|
|
5651
5680
|
});
|
|
5652
5681
|
e.object({
|
|
5653
5682
|
name: e.string(),
|
|
5654
|
-
type:
|
|
5655
|
-
status:
|
|
5683
|
+
type: na,
|
|
5684
|
+
status: ra.optional(),
|
|
5656
5685
|
sink: e.record(e.string(), e.unknown()),
|
|
5657
|
-
filters: e.array(
|
|
5686
|
+
filters: e.array(ia).optional(),
|
|
5658
5687
|
isPriority: e.boolean().optional()
|
|
5659
5688
|
}).extend({
|
|
5660
5689
|
id: e.string(),
|
|
5661
|
-
status:
|
|
5690
|
+
status: ra,
|
|
5662
5691
|
created_at: e.string().optional(),
|
|
5663
5692
|
updated_at: e.string().optional()
|
|
5664
5693
|
});
|
|
5665
|
-
var
|
|
5694
|
+
var aa = e.enum([
|
|
5666
5695
|
"auth0",
|
|
5667
5696
|
"cognito",
|
|
5668
5697
|
"okta",
|
|
5669
5698
|
"oidc"
|
|
5670
|
-
]),
|
|
5699
|
+
]), oa = e.object({
|
|
5671
5700
|
domain: e.string(),
|
|
5672
5701
|
client_id: e.string(),
|
|
5673
5702
|
client_secret: e.string(),
|
|
5674
5703
|
audience: e.string().optional(),
|
|
5675
5704
|
scope: e.string().optional()
|
|
5676
|
-
}),
|
|
5705
|
+
}), sa = e.object({
|
|
5677
5706
|
id: e.string().optional(),
|
|
5678
5707
|
name: e.string(),
|
|
5679
|
-
provider:
|
|
5708
|
+
provider: aa,
|
|
5680
5709
|
connection: e.string(),
|
|
5681
5710
|
enabled: e.boolean().default(!0),
|
|
5682
|
-
credentials:
|
|
5711
|
+
credentials: oa
|
|
5683
5712
|
});
|
|
5684
5713
|
e.object({
|
|
5685
5714
|
id: e.string(),
|
|
5686
5715
|
created_at: e.string(),
|
|
5687
5716
|
updated_at: e.string()
|
|
5688
|
-
}).extend(
|
|
5689
|
-
var
|
|
5717
|
+
}).extend(sa.shape);
|
|
5718
|
+
var ca = e.object({
|
|
5690
5719
|
enabled: e.boolean().optional(),
|
|
5691
5720
|
shields: e.array(e.string()).optional(),
|
|
5692
5721
|
admin_notification_frequency: e.array(e.string()).optional(),
|
|
@@ -5695,13 +5724,13 @@ var ia = e.object({
|
|
|
5695
5724
|
"pre-user-registration": e.object({ shields: e.array(e.string()).optional() }).optional(),
|
|
5696
5725
|
"pre-change-password": e.object({ shields: e.array(e.string()).optional() }).optional()
|
|
5697
5726
|
}).optional()
|
|
5698
|
-
}),
|
|
5727
|
+
}), la = e.object({
|
|
5699
5728
|
enabled: e.boolean().optional(),
|
|
5700
5729
|
shields: e.array(e.string()).optional(),
|
|
5701
5730
|
allowlist: e.array(e.string()).optional(),
|
|
5702
5731
|
mode: e.string().optional(),
|
|
5703
5732
|
max_attempts: e.number().optional()
|
|
5704
|
-
}),
|
|
5733
|
+
}), ua = e.object({
|
|
5705
5734
|
enabled: e.boolean().optional(),
|
|
5706
5735
|
shields: e.array(e.string()).optional(),
|
|
5707
5736
|
allowlist: e.array(e.string()).optional(),
|
|
@@ -5715,10 +5744,10 @@ var ia = e.object({
|
|
|
5715
5744
|
rate: e.number().optional()
|
|
5716
5745
|
}).optional()
|
|
5717
5746
|
}).optional()
|
|
5718
|
-
}),
|
|
5719
|
-
breached_password_detection:
|
|
5720
|
-
brute_force_protection:
|
|
5721
|
-
suspicious_ip_throttling:
|
|
5747
|
+
}), da = e.object({
|
|
5748
|
+
breached_password_detection: ca.optional(),
|
|
5749
|
+
brute_force_protection: la.optional(),
|
|
5750
|
+
suspicious_ip_throttling: ua.optional()
|
|
5722
5751
|
});
|
|
5723
5752
|
e.object({
|
|
5724
5753
|
id: e.string().optional(),
|
|
@@ -5731,14 +5760,14 @@ e.object({
|
|
|
5731
5760
|
created_at: e.string(),
|
|
5732
5761
|
updated_at: e.string()
|
|
5733
5762
|
});
|
|
5734
|
-
var
|
|
5763
|
+
var fa = e.object({
|
|
5735
5764
|
initial_user_agent: e.string().describe("First user agent of the device from which this user logged in"),
|
|
5736
5765
|
initial_ip: e.string().describe("First IP address associated with this session"),
|
|
5737
5766
|
initial_asn: e.string().describe("First autonomous system number associated with this session"),
|
|
5738
5767
|
last_user_agent: e.string().describe("Last user agent of the device from which this user logged in"),
|
|
5739
5768
|
last_ip: e.string().describe("Last IP address from which this user logged in"),
|
|
5740
5769
|
last_asn: e.string().describe("Last autonomous system number from which this user logged in")
|
|
5741
|
-
}),
|
|
5770
|
+
}), pa = e.object({
|
|
5742
5771
|
id: e.string(),
|
|
5743
5772
|
revoked_at: e.string().optional(),
|
|
5744
5773
|
used_at: e.string().optional(),
|
|
@@ -5746,7 +5775,7 @@ var ca = e.object({
|
|
|
5746
5775
|
expires_at: e.string().optional(),
|
|
5747
5776
|
login_session_id: e.string(),
|
|
5748
5777
|
idle_expires_at: e.string().optional(),
|
|
5749
|
-
device:
|
|
5778
|
+
device: fa.describe("Metadata related to the device used in the session"),
|
|
5750
5779
|
clients: e.array(e.string()).describe("List of client details for the session")
|
|
5751
5780
|
});
|
|
5752
5781
|
e.object({
|
|
@@ -5754,7 +5783,7 @@ e.object({
|
|
|
5754
5783
|
updated_at: e.string(),
|
|
5755
5784
|
authenticated_at: e.string(),
|
|
5756
5785
|
last_interaction_at: e.string()
|
|
5757
|
-
}).extend(
|
|
5786
|
+
}).extend(pa.shape), e.object({
|
|
5758
5787
|
kid: e.string().openapi({ description: "The key id of the signing key" }),
|
|
5759
5788
|
tenant_id: e.string().optional().openapi({ description: "The tenant the key belongs to. Omitted means the key is shared / control-plane scoped." }),
|
|
5760
5789
|
cert: e.string().openapi({ description: "The public certificate of the signing key" }),
|
|
@@ -5771,8 +5800,9 @@ e.object({
|
|
|
5771
5800
|
connection: e.string().optional().openapi({ description: "The connection identifier associated with the key" }),
|
|
5772
5801
|
type: e.enum(["jwt_signing", "saml_encryption"]).openapi({ description: "The type of the signing key" })
|
|
5773
5802
|
});
|
|
5774
|
-
var
|
|
5803
|
+
var ma = e.object({
|
|
5775
5804
|
id: e.string().optional(),
|
|
5805
|
+
parent_tenant_id: e.string().nullish(),
|
|
5776
5806
|
audience: e.string().optional(),
|
|
5777
5807
|
friendly_name: e.string(),
|
|
5778
5808
|
picture_url: e.string().optional(),
|
|
@@ -5889,7 +5919,7 @@ var ua = e.object({
|
|
|
5889
5919
|
"shared_planetscale"
|
|
5890
5920
|
]).optional(),
|
|
5891
5921
|
d1_database_id: e.string().max(64).optional(),
|
|
5892
|
-
attack_protection:
|
|
5922
|
+
attack_protection: da.optional(),
|
|
5893
5923
|
mfa: e.object({
|
|
5894
5924
|
policy: e.enum(["never", "always"]).default("never").optional(),
|
|
5895
5925
|
factors: e.object({
|
|
@@ -5920,29 +5950,29 @@ var ua = e.object({
|
|
|
5920
5950
|
e.object({
|
|
5921
5951
|
created_at: e.string().nullable().transform((e) => e ?? ""),
|
|
5922
5952
|
updated_at: e.string().nullable().transform((e) => e ?? "")
|
|
5923
|
-
}).extend(
|
|
5953
|
+
}).extend(ma.shape).extend({
|
|
5924
5954
|
id: e.string(),
|
|
5925
5955
|
is_control_plane: e.boolean().optional()
|
|
5926
5956
|
});
|
|
5927
|
-
var
|
|
5957
|
+
var ha = e.enum([
|
|
5928
5958
|
"provision",
|
|
5929
5959
|
"seed",
|
|
5930
5960
|
"upgrade",
|
|
5931
5961
|
"backup",
|
|
5932
5962
|
"deprovision",
|
|
5933
5963
|
"users_import"
|
|
5934
|
-
]),
|
|
5964
|
+
]), ga = e.enum([
|
|
5935
5965
|
"pending",
|
|
5936
5966
|
"running",
|
|
5937
5967
|
"succeeded",
|
|
5938
5968
|
"failed",
|
|
5939
5969
|
"cancelled"
|
|
5940
|
-
]),
|
|
5970
|
+
]), _a = e.string().max(64);
|
|
5941
5971
|
e.object({
|
|
5942
5972
|
tenant_id: e.string().max(255).nullable().default(null),
|
|
5943
5973
|
rollout_id: e.string().max(255).nullable().optional(),
|
|
5944
|
-
kind:
|
|
5945
|
-
engine:
|
|
5974
|
+
kind: ha,
|
|
5975
|
+
engine: _a,
|
|
5946
5976
|
engine_instance_id: e.string().max(100).nullable().optional(),
|
|
5947
5977
|
target_worker_version: e.string().max(255).nullable().optional(),
|
|
5948
5978
|
target_database_version: e.string().max(255).nullable().optional(),
|
|
@@ -5950,7 +5980,7 @@ e.object({
|
|
|
5950
5980
|
input: e.record(e.string(), e.unknown()).nullable().optional()
|
|
5951
5981
|
}).extend({
|
|
5952
5982
|
id: e.string(),
|
|
5953
|
-
status:
|
|
5983
|
+
status: ga,
|
|
5954
5984
|
current_step: e.string().max(255).nullable().optional(),
|
|
5955
5985
|
error: e.string().nullable().optional(),
|
|
5956
5986
|
result: e.record(e.string(), e.unknown()).nullable().optional(),
|
|
@@ -5971,7 +6001,7 @@ e.object({
|
|
|
5971
6001
|
claim_expires_at: !0,
|
|
5972
6002
|
finished_at: !0
|
|
5973
6003
|
}).partial();
|
|
5974
|
-
var
|
|
6004
|
+
var va = e.enum([
|
|
5975
6005
|
"started",
|
|
5976
6006
|
"succeeded",
|
|
5977
6007
|
"failed",
|
|
@@ -5982,14 +6012,14 @@ var ma = e.enum([
|
|
|
5982
6012
|
e.object({
|
|
5983
6013
|
operation_id: e.string().max(255),
|
|
5984
6014
|
step: e.string().max(255),
|
|
5985
|
-
outcome:
|
|
6015
|
+
outcome: va,
|
|
5986
6016
|
detail: e.record(e.string(), e.unknown()).nullable().optional(),
|
|
5987
6017
|
attempt: e.number().int().min(1).default(1)
|
|
5988
6018
|
}).extend({
|
|
5989
6019
|
id: e.string(),
|
|
5990
6020
|
created_at: e.string()
|
|
5991
6021
|
});
|
|
5992
|
-
var
|
|
6022
|
+
var ya = e.enum([
|
|
5993
6023
|
"pending",
|
|
5994
6024
|
"inserted",
|
|
5995
6025
|
"updated",
|
|
@@ -6000,28 +6030,28 @@ e.object({
|
|
|
6000
6030
|
operation_id: e.string().max(255),
|
|
6001
6031
|
seq: e.number().int().min(0),
|
|
6002
6032
|
payload: e.record(e.string(), e.unknown()),
|
|
6003
|
-
status:
|
|
6033
|
+
status: ya.default("pending"),
|
|
6004
6034
|
error_code: e.string().max(64).nullable().optional(),
|
|
6005
6035
|
error_message: e.string().nullable().optional(),
|
|
6006
6036
|
error_path: e.string().max(255).nullable().optional(),
|
|
6007
6037
|
entity_id: e.string().max(255).nullable().optional()
|
|
6008
6038
|
}).extend({
|
|
6009
|
-
status:
|
|
6039
|
+
status: ya,
|
|
6010
6040
|
created_at: e.string(),
|
|
6011
6041
|
updated_at: e.string()
|
|
6012
6042
|
}), e.object({
|
|
6013
6043
|
seq: e.number().int().min(0),
|
|
6014
|
-
status:
|
|
6044
|
+
status: ya,
|
|
6015
6045
|
error_code: e.string().max(64).nullable().optional(),
|
|
6016
6046
|
error_message: e.string().nullable().optional(),
|
|
6017
6047
|
error_path: e.string().max(255).nullable().optional(),
|
|
6018
6048
|
entity_id: e.string().max(255).nullable().optional()
|
|
6019
6049
|
});
|
|
6020
|
-
var
|
|
6050
|
+
var ba = e.enum([
|
|
6021
6051
|
"upgrade",
|
|
6022
6052
|
"reseed",
|
|
6023
6053
|
"backup"
|
|
6024
|
-
]),
|
|
6054
|
+
]), xa = e.enum([
|
|
6025
6055
|
"pending",
|
|
6026
6056
|
"canary",
|
|
6027
6057
|
"rolling",
|
|
@@ -6030,7 +6060,7 @@ var ga = e.enum([
|
|
|
6030
6060
|
"failed"
|
|
6031
6061
|
]);
|
|
6032
6062
|
e.object({
|
|
6033
|
-
kind:
|
|
6063
|
+
kind: ba,
|
|
6034
6064
|
target_worker_version: e.string().max(255).nullable().optional(),
|
|
6035
6065
|
target_database_version: e.string().max(255).nullable().optional(),
|
|
6036
6066
|
wave_size: e.number().int().min(1).default(10),
|
|
@@ -6039,7 +6069,7 @@ e.object({
|
|
|
6039
6069
|
initiated_by: e.string().max(255).nullable().optional()
|
|
6040
6070
|
}).extend({
|
|
6041
6071
|
id: e.string(),
|
|
6042
|
-
status:
|
|
6072
|
+
status: xa,
|
|
6043
6073
|
created_at: e.string(),
|
|
6044
6074
|
updated_at: e.string(),
|
|
6045
6075
|
finished_at: e.string().nullable().optional()
|
|
@@ -6061,7 +6091,7 @@ e.object({
|
|
|
6061
6091
|
code: e.string(),
|
|
6062
6092
|
state: e.string().optional()
|
|
6063
6093
|
});
|
|
6064
|
-
var
|
|
6094
|
+
var Sa = e.object({
|
|
6065
6095
|
button_border_radius: e.number(),
|
|
6066
6096
|
button_border_weight: e.number(),
|
|
6067
6097
|
buttons_style: e.enum([
|
|
@@ -6079,7 +6109,7 @@ var va = e.object({
|
|
|
6079
6109
|
show_widget_shadow: e.boolean(),
|
|
6080
6110
|
widget_border_weight: e.number(),
|
|
6081
6111
|
widget_corner_radius: e.number()
|
|
6082
|
-
}),
|
|
6112
|
+
}), Ca = e.object({
|
|
6083
6113
|
base_focus_color: e.string(),
|
|
6084
6114
|
base_hover_color: e.string(),
|
|
6085
6115
|
body_text: e.string(),
|
|
@@ -6106,7 +6136,7 @@ var va = e.object({
|
|
|
6106
6136
|
}), $ = e.object({
|
|
6107
6137
|
bold: e.boolean(),
|
|
6108
6138
|
size: e.number()
|
|
6109
|
-
}),
|
|
6139
|
+
}), wa = e.object({
|
|
6110
6140
|
body_text: $,
|
|
6111
6141
|
buttons_text: $,
|
|
6112
6142
|
font_url: e.string(),
|
|
@@ -6116,7 +6146,7 @@ var va = e.object({
|
|
|
6116
6146
|
reference_text_size: e.number(),
|
|
6117
6147
|
subtitle: $,
|
|
6118
6148
|
title: $
|
|
6119
|
-
}),
|
|
6149
|
+
}), Ta = e.object({
|
|
6120
6150
|
background_color: e.string(),
|
|
6121
6151
|
background_image_url: e.string(),
|
|
6122
6152
|
page_layout: e.enum([
|
|
@@ -6129,7 +6159,7 @@ var va = e.object({
|
|
|
6129
6159
|
"chip",
|
|
6130
6160
|
"none"
|
|
6131
6161
|
]).optional()
|
|
6132
|
-
}),
|
|
6162
|
+
}), Ea = e.object({
|
|
6133
6163
|
header_text_alignment: e.enum([
|
|
6134
6164
|
"center",
|
|
6135
6165
|
"left",
|
|
@@ -6146,45 +6176,46 @@ var va = e.object({
|
|
|
6146
6176
|
social_buttons_layout: e.enum(["bottom", "top"])
|
|
6147
6177
|
});
|
|
6148
6178
|
e.object({
|
|
6149
|
-
borders:
|
|
6150
|
-
colors:
|
|
6179
|
+
borders: Sa,
|
|
6180
|
+
colors: Ca,
|
|
6151
6181
|
displayName: e.string(),
|
|
6152
|
-
fonts:
|
|
6153
|
-
page_background:
|
|
6154
|
-
widget:
|
|
6182
|
+
fonts: wa,
|
|
6183
|
+
page_background: Ta,
|
|
6184
|
+
widget: Ea
|
|
6155
6185
|
}).extend({ themeId: e.string() }), e.object({
|
|
6186
|
+
...W,
|
|
6156
6187
|
universal_login_experience: e.enum(["new", "classic"]).default("new"),
|
|
6157
6188
|
identifier_first: e.boolean().default(!0),
|
|
6158
6189
|
password_first: e.boolean().default(!1),
|
|
6159
6190
|
show_last_used_connection: e.boolean().default(!1),
|
|
6160
6191
|
webauthn_platform_first_factor: e.boolean()
|
|
6161
6192
|
});
|
|
6162
|
-
var
|
|
6193
|
+
var Da = e.object({
|
|
6163
6194
|
hosts: e.array(e.string()).optional(),
|
|
6164
6195
|
methods: e.array(e.string()).optional(),
|
|
6165
6196
|
path: e.string().default("/*"),
|
|
6166
6197
|
headers: e.record(e.string(), e.string()).optional(),
|
|
6167
6198
|
query: e.record(e.string(), e.string()).optional()
|
|
6168
|
-
}),
|
|
6199
|
+
}), Oa = e.object({
|
|
6169
6200
|
type: e.string(),
|
|
6170
6201
|
options: e.record(e.string(), e.unknown()).default({})
|
|
6171
|
-
}),
|
|
6202
|
+
}), ka = e.object({
|
|
6172
6203
|
id: e.string().optional(),
|
|
6173
6204
|
custom_domain_id: e.string(),
|
|
6174
6205
|
priority: e.number().int().default(100),
|
|
6175
|
-
match:
|
|
6176
|
-
handlers: e.array(
|
|
6206
|
+
match: Da,
|
|
6207
|
+
handlers: e.array(Oa).min(1)
|
|
6177
6208
|
});
|
|
6178
|
-
|
|
6209
|
+
ka.extend({
|
|
6179
6210
|
id: e.string(),
|
|
6180
6211
|
tenant_id: e.string(),
|
|
6181
6212
|
created_at: e.string(),
|
|
6182
6213
|
updated_at: e.string()
|
|
6183
|
-
}),
|
|
6214
|
+
}), ka.partial().omit({
|
|
6184
6215
|
id: !0,
|
|
6185
6216
|
custom_domain_id: !0
|
|
6186
6217
|
});
|
|
6187
|
-
var
|
|
6218
|
+
var Aa = "custom_authentication", ja = [
|
|
6188
6219
|
"urn:ietf:params:oauth:",
|
|
6189
6220
|
"urn:auth0",
|
|
6190
6221
|
"urn:okta",
|
|
@@ -6192,56 +6223,56 @@ var Ea = "custom_authentication", Da = [
|
|
|
6192
6223
|
"https://auth0.com",
|
|
6193
6224
|
"http://okta.com",
|
|
6194
6225
|
"https://okta.com"
|
|
6195
|
-
],
|
|
6226
|
+
], Ma = 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) => !ja.some((t) => e.toLowerCase().startsWith(t)), { message: "subject_token_type uses a reserved namespace" }), Na = e.enum([
|
|
6196
6227
|
"RS256",
|
|
6197
6228
|
"RS384",
|
|
6198
6229
|
"RS512",
|
|
6199
6230
|
"ES256",
|
|
6200
6231
|
"ES384",
|
|
6201
6232
|
"ES512"
|
|
6202
|
-
]),
|
|
6233
|
+
]), Pa = e.discriminatedUnion("type", [e.object({
|
|
6203
6234
|
type: e.literal("connection"),
|
|
6204
6235
|
connection: e.string().min(1),
|
|
6205
6236
|
create_if_not_exists: e.boolean().default(!0),
|
|
6206
6237
|
trust_email_verified: e.boolean().default(!1)
|
|
6207
|
-
}), e.object({ type: e.literal("user_id") })]),
|
|
6238
|
+
}), e.object({ type: e.literal("user_id") })]), Fa = e.object({
|
|
6208
6239
|
issuer: e.string().min(1).max(2048),
|
|
6209
|
-
jwks:
|
|
6240
|
+
jwks: Yi.optional(),
|
|
6210
6241
|
jwks_uri: e.string().url().optional(),
|
|
6211
6242
|
audience: e.array(e.string().min(1)).min(1).optional(),
|
|
6212
|
-
algorithms: e.array(
|
|
6243
|
+
algorithms: e.array(Na).min(1).optional(),
|
|
6213
6244
|
max_lifetime_seconds: e.number().int().min(1).max(3600).default(300),
|
|
6214
6245
|
require_jti: e.boolean().default(!0),
|
|
6215
|
-
user_mapping:
|
|
6246
|
+
user_mapping: Pa
|
|
6216
6247
|
});
|
|
6217
6248
|
e.object({
|
|
6218
6249
|
name: e.string().min(1).max(255),
|
|
6219
|
-
subject_token_type:
|
|
6250
|
+
subject_token_type: Ma,
|
|
6220
6251
|
action_id: e.string().min(1).optional(),
|
|
6221
|
-
type: e.literal(
|
|
6222
|
-
jwt_verification:
|
|
6252
|
+
type: e.literal(Aa),
|
|
6253
|
+
jwt_verification: Fa.optional()
|
|
6223
6254
|
}).extend({
|
|
6224
6255
|
id: e.string(),
|
|
6225
6256
|
created_at: e.string(),
|
|
6226
6257
|
updated_at: e.string()
|
|
6227
6258
|
}), e.object({
|
|
6228
6259
|
name: e.string().min(1).max(255).optional(),
|
|
6229
|
-
subject_token_type:
|
|
6230
|
-
jwt_verification:
|
|
6260
|
+
subject_token_type: Ma.optional(),
|
|
6261
|
+
jwt_verification: Fa.optional()
|
|
6231
6262
|
});
|
|
6232
|
-
var
|
|
6263
|
+
var Ia = e.object({
|
|
6233
6264
|
scim: e.string(),
|
|
6234
6265
|
auth0: e.string()
|
|
6235
|
-
}),
|
|
6266
|
+
}), La = e.object({
|
|
6236
6267
|
connection_id: e.string(),
|
|
6237
6268
|
user_id_attribute: e.string().default("externalId"),
|
|
6238
|
-
mapping: e.array(
|
|
6269
|
+
mapping: e.array(Ia).default([])
|
|
6239
6270
|
});
|
|
6240
6271
|
e.object({
|
|
6241
6272
|
created_at: e.string(),
|
|
6242
6273
|
updated_at: e.string()
|
|
6243
|
-
}).extend(
|
|
6244
|
-
var
|
|
6274
|
+
}).extend(La.shape);
|
|
6275
|
+
var Ra = e.object({
|
|
6245
6276
|
token_id: e.string(),
|
|
6246
6277
|
connection_id: e.string(),
|
|
6247
6278
|
token_hash: e.string(),
|
|
@@ -6251,20 +6282,21 @@ var Pa = e.object({
|
|
|
6251
6282
|
e.object({
|
|
6252
6283
|
created_at: e.string(),
|
|
6253
6284
|
last_used_at: e.string().optional()
|
|
6254
|
-
}).extend(
|
|
6255
|
-
var
|
|
6285
|
+
}).extend(Ra.shape);
|
|
6286
|
+
var za = e.object({
|
|
6256
6287
|
connection_id: e.string(),
|
|
6257
6288
|
external_id: e.string(),
|
|
6258
6289
|
user_id: e.string()
|
|
6259
6290
|
});
|
|
6260
|
-
e.object({ created_at: e.string() }).extend(
|
|
6291
|
+
e.object({ created_at: e.string() }).extend(za.shape), e.object({
|
|
6292
|
+
...W,
|
|
6261
6293
|
name: e.string(),
|
|
6262
6294
|
enabled: e.boolean().optional().default(!0),
|
|
6263
6295
|
default_from_address: e.string().optional(),
|
|
6264
6296
|
credentials: e.record(e.string(), e.unknown()),
|
|
6265
6297
|
settings: e.object({}).optional()
|
|
6266
6298
|
});
|
|
6267
|
-
var
|
|
6299
|
+
var Ba = e.enum([
|
|
6268
6300
|
"verify_email",
|
|
6269
6301
|
"verify_email_by_code",
|
|
6270
6302
|
"reset_email",
|
|
@@ -6279,7 +6311,7 @@ var Ia = e.enum([
|
|
|
6279
6311
|
"user_invitation"
|
|
6280
6312
|
]);
|
|
6281
6313
|
e.object({
|
|
6282
|
-
template:
|
|
6314
|
+
template: Ba,
|
|
6283
6315
|
body: e.string(),
|
|
6284
6316
|
from: e.string(),
|
|
6285
6317
|
subject: e.string(),
|
|
@@ -6294,13 +6326,13 @@ e.object({
|
|
|
6294
6326
|
session_id: e.string().optional(),
|
|
6295
6327
|
organization: e.string().optional(),
|
|
6296
6328
|
auth_connection: e.string().optional(),
|
|
6297
|
-
auth_strategy:
|
|
6329
|
+
auth_strategy: Qi.optional(),
|
|
6298
6330
|
user_id: e.string(),
|
|
6299
6331
|
client_id: e.string(),
|
|
6300
6332
|
expires_at: e.string().optional(),
|
|
6301
6333
|
idle_expires_at: e.string().optional(),
|
|
6302
6334
|
last_exchanged_at: e.string().optional(),
|
|
6303
|
-
device:
|
|
6335
|
+
device: fa,
|
|
6304
6336
|
resource_servers: e.array(e.object({
|
|
6305
6337
|
audience: e.string(),
|
|
6306
6338
|
scopes: e.string()
|
|
@@ -6321,10 +6353,10 @@ e.object({
|
|
|
6321
6353
|
name: e.string(),
|
|
6322
6354
|
options: e.object({})
|
|
6323
6355
|
});
|
|
6324
|
-
var
|
|
6356
|
+
var Va = e.object({
|
|
6325
6357
|
value: e.string(),
|
|
6326
6358
|
description: e.string().optional()
|
|
6327
|
-
}),
|
|
6359
|
+
}), Ha = e.object({
|
|
6328
6360
|
token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
|
|
6329
6361
|
enforce_policies: e.boolean().optional(),
|
|
6330
6362
|
allow_skipping_userinfo: e.boolean().optional(),
|
|
@@ -6332,11 +6364,11 @@ var La = e.object({
|
|
|
6332
6364
|
persist_client_authorization: e.boolean().optional(),
|
|
6333
6365
|
enable_introspection_endpoint: e.boolean().optional(),
|
|
6334
6366
|
mtls: e.object({ bound_access_tokens: e.boolean().optional() }).optional()
|
|
6335
|
-
}),
|
|
6367
|
+
}), Ua = e.object({
|
|
6336
6368
|
id: e.string().optional(),
|
|
6337
6369
|
name: e.string(),
|
|
6338
6370
|
identifier: e.string(),
|
|
6339
|
-
scopes: e.array(
|
|
6371
|
+
scopes: e.array(Va).optional(),
|
|
6340
6372
|
signing_alg: e.string().optional(),
|
|
6341
6373
|
signing_secret: e.string().optional(),
|
|
6342
6374
|
token_lifetime: e.number().default(86400),
|
|
@@ -6344,20 +6376,21 @@ var La = e.object({
|
|
|
6344
6376
|
skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
|
|
6345
6377
|
allow_offline_access: e.boolean().optional(),
|
|
6346
6378
|
verificationKey: e.string().optional(),
|
|
6347
|
-
options:
|
|
6379
|
+
options: Ha.optional(),
|
|
6348
6380
|
is_system: e.boolean().optional(),
|
|
6381
|
+
...W,
|
|
6349
6382
|
metadata: e.record(e.string(), e.any()).optional()
|
|
6350
6383
|
}).extend({
|
|
6351
6384
|
created_at: e.string().optional(),
|
|
6352
6385
|
updated_at: e.string().optional()
|
|
6353
6386
|
});
|
|
6354
|
-
e.array(
|
|
6355
|
-
var
|
|
6387
|
+
e.array(Ua);
|
|
6388
|
+
var Wa = e.object({
|
|
6356
6389
|
role_id: e.string(),
|
|
6357
6390
|
resource_server_identifier: e.string(),
|
|
6358
6391
|
permission_name: e.string()
|
|
6359
6392
|
}).extend({ created_at: e.string() });
|
|
6360
|
-
e.array(
|
|
6393
|
+
e.array(Wa), e.object({
|
|
6361
6394
|
user_id: e.string().openapi({ description: "The id of the user that granted the consent" }),
|
|
6362
6395
|
clientID: e.string().openapi({ description: "The id of the client the grant was issued to" }),
|
|
6363
6396
|
audience: e.string().optional().openapi({ description: "The audience the grant applies to" }),
|
|
@@ -6370,7 +6403,7 @@ e.array(Ba), e.object({
|
|
|
6370
6403
|
failed_logins: e.array(e.string()).optional(),
|
|
6371
6404
|
last_password_reset: e.string().optional()
|
|
6372
6405
|
});
|
|
6373
|
-
var
|
|
6406
|
+
var Ga = e.object({
|
|
6374
6407
|
user_id: e.string(),
|
|
6375
6408
|
resource_server_identifier: e.string(),
|
|
6376
6409
|
permission_name: e.string(),
|
|
@@ -6379,8 +6412,8 @@ var Va = e.object({
|
|
|
6379
6412
|
tenant_id: e.string(),
|
|
6380
6413
|
created_at: e.string().optional()
|
|
6381
6414
|
});
|
|
6382
|
-
e.array(
|
|
6383
|
-
var
|
|
6415
|
+
e.array(Ga);
|
|
6416
|
+
var Ka = e.object({
|
|
6384
6417
|
user_id: e.string(),
|
|
6385
6418
|
resource_server_identifier: e.string(),
|
|
6386
6419
|
resource_server_name: e.string(),
|
|
@@ -6389,8 +6422,8 @@ var Ha = e.object({
|
|
|
6389
6422
|
created_at: e.string().optional(),
|
|
6390
6423
|
organization_id: e.string().optional()
|
|
6391
6424
|
});
|
|
6392
|
-
e.array(
|
|
6393
|
-
var
|
|
6425
|
+
e.array(Ka);
|
|
6426
|
+
var qa = e.object({
|
|
6394
6427
|
user_id: e.string(),
|
|
6395
6428
|
role_id: e.string(),
|
|
6396
6429
|
organization_id: e.string().optional()
|
|
@@ -6398,8 +6431,8 @@ var Ua = e.object({
|
|
|
6398
6431
|
tenant_id: e.string(),
|
|
6399
6432
|
created_at: e.string().optional()
|
|
6400
6433
|
});
|
|
6401
|
-
e.array(
|
|
6402
|
-
var
|
|
6434
|
+
e.array(qa);
|
|
6435
|
+
var Ja = e.object({
|
|
6403
6436
|
id: e.string().optional().openapi({ description: "The unique identifier of the role. If not provided, one will be generated." }),
|
|
6404
6437
|
name: e.string().min(1).max(50).openapi({ description: "The name of the role. Cannot include '<' or '>'" }),
|
|
6405
6438
|
description: e.string().max(255).optional().openapi({ description: "The description of the role" }),
|
|
@@ -6410,19 +6443,19 @@ var Wa = e.object({
|
|
|
6410
6443
|
created_at: e.string().optional(),
|
|
6411
6444
|
updated_at: e.string().optional()
|
|
6412
6445
|
});
|
|
6413
|
-
e.array(
|
|
6414
|
-
var
|
|
6446
|
+
e.array(Ja);
|
|
6447
|
+
var Ya = e.object({
|
|
6415
6448
|
logo_url: e.string().optional().openapi({ description: "URL of the organization's logo" }),
|
|
6416
6449
|
colors: e.object({
|
|
6417
6450
|
primary: e.string().optional().openapi({ description: "Primary color in hex format (e.g., #FF0000)" }),
|
|
6418
6451
|
page_background: e.string().optional().openapi({ description: "Page background color in hex format (e.g., #FFFFFF)" })
|
|
6419
6452
|
}).optional()
|
|
6420
|
-
}).optional(),
|
|
6453
|
+
}).optional(), Xa = e.object({
|
|
6421
6454
|
connection_id: e.string().openapi({ description: "ID of the connection" }),
|
|
6422
6455
|
assign_membership_on_login: e.boolean().default(!1).openapi({ description: "Whether to assign membership to the organization on login" }),
|
|
6423
6456
|
show_as_button: e.boolean().default(!0).openapi({ description: "Whether to show this connection as a button in the login screen" }),
|
|
6424
6457
|
is_signup_enabled: e.boolean().default(!0).openapi({ description: "Whether signup is enabled for this connection" })
|
|
6425
|
-
}),
|
|
6458
|
+
}), Za = e.object({ client_credentials: e.object({
|
|
6426
6459
|
enforce: e.boolean().default(!1).openapi({ description: "Whether to enforce token quota limits" }),
|
|
6427
6460
|
per_day: e.number().min(0).default(0).openapi({ description: "Maximum tokens per day (0 = unlimited)" }),
|
|
6428
6461
|
per_hour: e.number().min(0).default(0).openapi({ description: "Maximum tokens per hour (0 = unlimited)" })
|
|
@@ -6431,15 +6464,15 @@ e.object({
|
|
|
6431
6464
|
id: e.string().optional(),
|
|
6432
6465
|
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." }),
|
|
6433
6466
|
display_name: e.string().optional().openapi({ description: "The display name of the organization" }),
|
|
6434
|
-
branding:
|
|
6467
|
+
branding: Ya,
|
|
6435
6468
|
metadata: e.record(e.string(), e.any()).default({}).optional().openapi({ description: "Custom metadata for the organization" }),
|
|
6436
|
-
enabled_connections: e.array(
|
|
6437
|
-
token_quota:
|
|
6438
|
-
}).extend(
|
|
6469
|
+
enabled_connections: e.array(Xa).default([]).optional().openapi({ description: "List of enabled connections for the organization" }),
|
|
6470
|
+
token_quota: Za
|
|
6471
|
+
}).extend(U.shape).extend({
|
|
6439
6472
|
id: e.string(),
|
|
6440
6473
|
name: e.string().min(1).openapi({ description: "The name of the organization" })
|
|
6441
6474
|
});
|
|
6442
|
-
var
|
|
6475
|
+
var Qa = e.object({
|
|
6443
6476
|
connection_id: e.string().openapi({ description: "ID of the tenant-level connection to enable for the org." }),
|
|
6444
6477
|
assign_membership_on_login: e.boolean().optional().default(!1),
|
|
6445
6478
|
show_as_button: e.boolean().optional().default(!0),
|
|
@@ -6452,10 +6485,10 @@ var Ja = e.object({
|
|
|
6452
6485
|
created_at: e.string().optional(),
|
|
6453
6486
|
updated_at: e.string().optional()
|
|
6454
6487
|
});
|
|
6455
|
-
e.array(
|
|
6488
|
+
e.array(Qa), e.object({
|
|
6456
6489
|
user_id: e.string().openapi({ description: "ID of the user" }),
|
|
6457
6490
|
organization_id: e.string().openapi({ description: "ID of the organization" })
|
|
6458
|
-
}).extend(
|
|
6491
|
+
}).extend(U.shape).extend({ id: e.string() }), e.object({
|
|
6459
6492
|
idle_session_lifetime: e.number().default(72),
|
|
6460
6493
|
session_lifetime: e.number().default(168),
|
|
6461
6494
|
session_cookie: e.object({ mode: e.enum(["persistent", "non-persistent"]).optional() }).optional(),
|
|
@@ -6591,7 +6624,7 @@ e.array(Ja), e.object({
|
|
|
6591
6624
|
"passwordless",
|
|
6592
6625
|
"enterprise"
|
|
6593
6626
|
]);
|
|
6594
|
-
var
|
|
6627
|
+
var $a = e.object({
|
|
6595
6628
|
cohort: e.string(),
|
|
6596
6629
|
sessions: e.number(),
|
|
6597
6630
|
active: e.array(e.number())
|
|
@@ -6600,9 +6633,9 @@ e.object({
|
|
|
6600
6633
|
interval: e.literal("week"),
|
|
6601
6634
|
from: e.string(),
|
|
6602
6635
|
to: e.string(),
|
|
6603
|
-
cohorts: e.array(
|
|
6636
|
+
cohorts: e.array($a)
|
|
6604
6637
|
});
|
|
6605
|
-
var
|
|
6638
|
+
var eo = e.object({
|
|
6606
6639
|
cohort: e.string(),
|
|
6607
6640
|
tokens: e.number(),
|
|
6608
6641
|
active: e.array(e.number())
|
|
@@ -6611,24 +6644,24 @@ e.object({
|
|
|
6611
6644
|
interval: e.literal("week"),
|
|
6612
6645
|
from: e.string(),
|
|
6613
6646
|
to: e.string(),
|
|
6614
|
-
cohorts: e.array(
|
|
6647
|
+
cohorts: e.array(eo)
|
|
6615
6648
|
});
|
|
6616
|
-
var
|
|
6649
|
+
var to = e.object({
|
|
6617
6650
|
name: e.string(),
|
|
6618
6651
|
type: e.string()
|
|
6619
|
-
}),
|
|
6652
|
+
}), no = e.object({
|
|
6620
6653
|
elapsed: e.number(),
|
|
6621
6654
|
rows_read: e.number().optional(),
|
|
6622
6655
|
bytes_read: e.number().optional()
|
|
6623
6656
|
});
|
|
6624
6657
|
e.object({
|
|
6625
|
-
meta: e.array(
|
|
6658
|
+
meta: e.array(to),
|
|
6626
6659
|
data: e.array(e.record(e.string(), e.any())),
|
|
6627
6660
|
rows: e.number(),
|
|
6628
6661
|
rows_before_limit_at_least: e.number().optional(),
|
|
6629
|
-
statistics:
|
|
6662
|
+
statistics: no.optional()
|
|
6630
6663
|
});
|
|
6631
|
-
var
|
|
6664
|
+
var ro = 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(".")), io = e.record(e.string(), e.record(e.string(), e.string())).openapi({
|
|
6632
6665
|
type: "object",
|
|
6633
6666
|
additionalProperties: {
|
|
6634
6667
|
type: "object",
|
|
@@ -6636,23 +6669,23 @@ var $a = e.enum(/* @__PURE__ */ "login.login-id.login-password.signup.signup-id.
|
|
|
6636
6669
|
}
|
|
6637
6670
|
});
|
|
6638
6671
|
e.object({
|
|
6639
|
-
prompt:
|
|
6672
|
+
prompt: ro,
|
|
6640
6673
|
language: e.string(),
|
|
6641
|
-
custom_text:
|
|
6674
|
+
custom_text: io
|
|
6642
6675
|
});
|
|
6643
|
-
var
|
|
6676
|
+
var ao = e.object({
|
|
6644
6677
|
"form-content-start": e.string().optional(),
|
|
6645
6678
|
"form-content-end": e.string().optional(),
|
|
6646
6679
|
"form-footer-start": e.string().optional(),
|
|
6647
6680
|
"form-footer-end": e.string().optional(),
|
|
6648
6681
|
"secondary-actions-start": e.string().optional(),
|
|
6649
6682
|
"secondary-actions-end": e.string().optional()
|
|
6650
|
-
}).strict(),
|
|
6683
|
+
}).strict(), oo = e.record(e.string(), ao);
|
|
6651
6684
|
e.object({
|
|
6652
6685
|
prompt: e.string(),
|
|
6653
|
-
partials:
|
|
6686
|
+
partials: oo
|
|
6654
6687
|
});
|
|
6655
|
-
var
|
|
6688
|
+
var so = e.enum([
|
|
6656
6689
|
"phone",
|
|
6657
6690
|
"totp",
|
|
6658
6691
|
"email",
|
|
@@ -6660,9 +6693,9 @@ var ro = e.enum([
|
|
|
6660
6693
|
"webauthn-roaming",
|
|
6661
6694
|
"webauthn-platform",
|
|
6662
6695
|
"passkey"
|
|
6663
|
-
]),
|
|
6696
|
+
]), co = e.object({
|
|
6664
6697
|
user_id: e.string(),
|
|
6665
|
-
type:
|
|
6698
|
+
type: so,
|
|
6666
6699
|
phone_number: e.string().optional(),
|
|
6667
6700
|
totp_secret: e.string().optional(),
|
|
6668
6701
|
credential_id: e.string().optional(),
|
|
@@ -6673,7 +6706,7 @@ var ro = e.enum([
|
|
|
6673
6706
|
friendly_name: e.string().optional(),
|
|
6674
6707
|
confirmed: e.boolean().default(!1)
|
|
6675
6708
|
});
|
|
6676
|
-
function
|
|
6709
|
+
function lo(t, n) {
|
|
6677
6710
|
t.type === "phone" && !t.phone_number && n.addIssue({
|
|
6678
6711
|
code: e.ZodIssueCode.custom,
|
|
6679
6712
|
message: "phone_number is required when type is 'phone'",
|
|
@@ -6696,64 +6729,64 @@ function ao(t, n) {
|
|
|
6696
6729
|
path: ["public_key"]
|
|
6697
6730
|
}));
|
|
6698
6731
|
}
|
|
6699
|
-
|
|
6732
|
+
co.superRefine(lo), co.extend({
|
|
6700
6733
|
id: e.string(),
|
|
6701
6734
|
created_at: e.string(),
|
|
6702
6735
|
updated_at: e.string()
|
|
6703
|
-
}).superRefine(
|
|
6736
|
+
}).superRefine(lo), e.object({
|
|
6704
6737
|
id: e.string().optional(),
|
|
6705
6738
|
created_at: e.string().datetime({ offset: !0 }).optional(),
|
|
6706
6739
|
updated_at: e.string().datetime({ offset: !0 }).optional()
|
|
6707
6740
|
});
|
|
6708
|
-
function
|
|
6741
|
+
function uo(e) {
|
|
6709
6742
|
let t = atob(e), n = new Uint8Array(t.length);
|
|
6710
6743
|
for (let e = 0; e < t.length; e++) n[e] = t.charCodeAt(e);
|
|
6711
6744
|
return n;
|
|
6712
6745
|
}
|
|
6713
6746
|
//#endregion
|
|
6714
6747
|
//#region ../../node_modules/.pnpm/nanoid@5.1.11/node_modules/nanoid/url-alphabet/index.js
|
|
6715
|
-
var
|
|
6748
|
+
var fo = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", po = (e = 21) => {
|
|
6716
6749
|
let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
|
|
6717
|
-
for (; e--;) t +=
|
|
6750
|
+
for (; e--;) t += fo[n[e] & 63];
|
|
6718
6751
|
return t;
|
|
6719
6752
|
};
|
|
6720
6753
|
//#endregion
|
|
6721
6754
|
//#region src/helpers.ts
|
|
6722
|
-
async function
|
|
6755
|
+
async function mo(e) {
|
|
6723
6756
|
let t = new DecompressionStream("deflate-raw"), n = new Uint8Array(e), r = new Blob([n]).stream().pipeThrough(t);
|
|
6724
6757
|
return new Uint8Array(await new Response(r).arrayBuffer());
|
|
6725
6758
|
}
|
|
6726
|
-
async function
|
|
6727
|
-
let t =
|
|
6759
|
+
async function ho(e) {
|
|
6760
|
+
let t = uo(e.replace(/ /g, "+"));
|
|
6728
6761
|
try {
|
|
6729
|
-
let e = await
|
|
6762
|
+
let e = await mo(t);
|
|
6730
6763
|
return new TextDecoder().decode(e);
|
|
6731
6764
|
} catch (e) {
|
|
6732
6765
|
return console.warn("Decompression failed, assuming data is not compressed:", e), new TextDecoder().decode(t);
|
|
6733
6766
|
}
|
|
6734
6767
|
}
|
|
6735
|
-
async function
|
|
6736
|
-
let t = await
|
|
6768
|
+
async function go(e) {
|
|
6769
|
+
let t = await ho(e), n = new on({
|
|
6737
6770
|
attributeNamePrefix: "@_",
|
|
6738
6771
|
alwaysCreateTextNode: !0,
|
|
6739
6772
|
ignoreAttributes: !1
|
|
6740
6773
|
}).parse(t);
|
|
6741
6774
|
return r.parse(n);
|
|
6742
6775
|
}
|
|
6743
|
-
async function
|
|
6744
|
-
let t = await
|
|
6776
|
+
async function _o(e) {
|
|
6777
|
+
let t = await ho(e), n = new on({
|
|
6745
6778
|
attributeNamePrefix: "@_",
|
|
6746
6779
|
alwaysCreateTextNode: !0,
|
|
6747
6780
|
ignoreAttributes: !1
|
|
6748
6781
|
});
|
|
6749
6782
|
return i.parse(n.parse(t));
|
|
6750
6783
|
}
|
|
6751
|
-
async function
|
|
6752
|
-
let t = (e) => e.replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<").replace(/>/g, ">"), n = e.success ? "urn:oasis:names:tc:SAML:2.0:status:Success" : "urn:oasis:names:tc:SAML:2.0:status:Responder", r = e.inResponseTo ? ` InResponseTo="${t(e.inResponseTo)}"` : "", i = !e.success && e.statusMessage ? `<samlp:StatusMessage>${t(e.statusMessage)}</samlp:StatusMessage>` : "", a = `<samlp:LogoutResponse xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" ID="_${
|
|
6784
|
+
async function vo(e) {
|
|
6785
|
+
let t = (e) => e.replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<").replace(/>/g, ">"), n = e.success ? "urn:oasis:names:tc:SAML:2.0:status:Success" : "urn:oasis:names:tc:SAML:2.0:status:Responder", r = e.inResponseTo ? ` InResponseTo="${t(e.inResponseTo)}"` : "", i = !e.success && e.statusMessage ? `<samlp:StatusMessage>${t(e.statusMessage)}</samlp:StatusMessage>` : "", a = `<samlp:LogoutResponse xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" ID="_${po()}" Version="2.0" IssueInstant="${(/* @__PURE__ */ new Date()).toISOString()}" Destination="${t(e.destination)}"${r}><saml:Issuer>${t(e.issuer)}</saml:Issuer><samlp:Status><samlp:StatusCode Value="${n}"/>${i}</samlp:Status></samlp:LogoutResponse>`, o = new Blob([new TextEncoder().encode(a)]).stream().pipeThrough(new CompressionStream("deflate-raw")), s = new Uint8Array(await new Response(o).arrayBuffer()), c = "";
|
|
6753
6786
|
for (let e of s) c += String.fromCharCode(e);
|
|
6754
6787
|
return btoa(c);
|
|
6755
6788
|
}
|
|
6756
|
-
function
|
|
6789
|
+
function yo(e) {
|
|
6757
6790
|
let t = e.certificates.map((e) => ({
|
|
6758
6791
|
"@_use": "signing",
|
|
6759
6792
|
KeyInfo: {
|
|
@@ -6819,7 +6852,7 @@ function ho(e) {
|
|
|
6819
6852
|
]
|
|
6820
6853
|
}
|
|
6821
6854
|
} };
|
|
6822
|
-
return new
|
|
6855
|
+
return new En({
|
|
6823
6856
|
ignoreAttributes: !1,
|
|
6824
6857
|
suppressEmptyNode: !0,
|
|
6825
6858
|
preserveOrder: !1,
|
|
@@ -6827,8 +6860,8 @@ function ho(e) {
|
|
|
6827
6860
|
attributeNamePrefix: "@_"
|
|
6828
6861
|
}).build(n);
|
|
6829
6862
|
}
|
|
6830
|
-
async function
|
|
6831
|
-
let n = e.notBefore || (/* @__PURE__ */ new Date()).toISOString(), r = e.notAfter || new Date(new Date(n).getTime() + 600 * 1e3).toISOString(), i = e.issueInstant || n, a = e.sessionNotOnOrAfter || r, o = e.responseId || `_${
|
|
6863
|
+
async function bo(e, t) {
|
|
6864
|
+
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 || `_${po()}`, s = e.assertionId || `_${po()}`, c = [{
|
|
6832
6865
|
"samlp:Response": [
|
|
6833
6866
|
{ "saml:Issuer": [{ "#text": e.issuer }] },
|
|
6834
6867
|
{ "samlp:Status": [{
|
|
@@ -7000,7 +7033,7 @@ async function go(e, t) {
|
|
|
7000
7033
|
"@_IssueInstant": i,
|
|
7001
7034
|
"@_Version": "2.0"
|
|
7002
7035
|
}
|
|
7003
|
-
}], l = new
|
|
7036
|
+
}], l = new En({
|
|
7004
7037
|
ignoreAttributes: !1,
|
|
7005
7038
|
suppressEmptyNode: !0,
|
|
7006
7039
|
preserveOrder: !0
|
|
@@ -7009,7 +7042,7 @@ async function go(e, t) {
|
|
|
7009
7042
|
}
|
|
7010
7043
|
//#endregion
|
|
7011
7044
|
//#region src/signers/http.ts
|
|
7012
|
-
var
|
|
7045
|
+
var xo = class {
|
|
7013
7046
|
signUrl;
|
|
7014
7047
|
constructor(e) {
|
|
7015
7048
|
this.signUrl = e;
|
|
@@ -7029,4 +7062,4 @@ var _o = class {
|
|
|
7029
7062
|
}
|
|
7030
7063
|
};
|
|
7031
7064
|
//#endregion
|
|
7032
|
-
export {
|
|
7065
|
+
export { xo as HttpSamlSigner, vo as createSamlLogoutResponse, yo as createSamlMetadata, bo as createSamlResponse, c as dsSignatureSchema, ho as inflateDecompress, mo as inflateRaw, _o as parseSamlLogoutRequestQuery, go as parseSamlRequestQuery, n as samlIssuerSchema, i as samlLogoutRequestSchema, a as samlMetadataResponseSchema, r as samlRequestSchema, l as samlResponseJsonSchema };
|