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