@authhero/saml 0.4.8 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +661 -21
- package/dist/core.cjs +4 -4
- package/dist/core.mjs +1638 -566
- package/dist/local-signer.mjs +15 -15
- package/dist/saml.cjs +4 -4
- package/dist/saml.mjs +1728 -656
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +3 -2
package/dist/saml.mjs
CHANGED
|
@@ -307,11 +307,11 @@ function ie(e, t) {
|
|
|
307
307
|
}
|
|
308
308
|
n += e[t];
|
|
309
309
|
}
|
|
310
|
-
return r === ""
|
|
310
|
+
return r === "" ? {
|
|
311
311
|
value: n,
|
|
312
312
|
index: t,
|
|
313
313
|
tagClosed: i
|
|
314
|
-
};
|
|
314
|
+
} : !1;
|
|
315
315
|
}
|
|
316
316
|
var ae = /* @__PURE__ */ RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?", "g");
|
|
317
317
|
function oe(e, t) {
|
|
@@ -370,8 +370,932 @@ function b(e) {
|
|
|
370
370
|
return e.startIndex + e[1].length;
|
|
371
371
|
}
|
|
372
372
|
//#endregion
|
|
373
|
-
//#region ../../node_modules/.pnpm/@nodable+entities@
|
|
373
|
+
//#region ../../node_modules/.pnpm/@nodable+entities@2.2.0/node_modules/@nodable/entities/src/entities.js
|
|
374
374
|
var de = {
|
|
375
|
+
amp: "&",
|
|
376
|
+
AMP: "&",
|
|
377
|
+
lt: "<",
|
|
378
|
+
LT: "<",
|
|
379
|
+
gt: ">",
|
|
380
|
+
GT: ">",
|
|
381
|
+
quot: "\"",
|
|
382
|
+
QUOT: "\"",
|
|
383
|
+
apos: "'",
|
|
384
|
+
lsquo: "‘",
|
|
385
|
+
rsquo: "’",
|
|
386
|
+
ldquo: "“",
|
|
387
|
+
rdquo: "”",
|
|
388
|
+
lsquor: "‚",
|
|
389
|
+
rsquor: "’",
|
|
390
|
+
ldquor: "„",
|
|
391
|
+
bdquo: "„",
|
|
392
|
+
comma: ",",
|
|
393
|
+
period: ".",
|
|
394
|
+
colon: ":",
|
|
395
|
+
semi: ";",
|
|
396
|
+
excl: "!",
|
|
397
|
+
quest: "?",
|
|
398
|
+
num: "#",
|
|
399
|
+
dollar: "$",
|
|
400
|
+
percent: "%",
|
|
401
|
+
ast: "*",
|
|
402
|
+
commat: "@",
|
|
403
|
+
lowbar: "_",
|
|
404
|
+
verbar: "|",
|
|
405
|
+
vert: "|",
|
|
406
|
+
sol: "/",
|
|
407
|
+
bsol: "\\",
|
|
408
|
+
lbrace: "{",
|
|
409
|
+
rbrace: "}",
|
|
410
|
+
lbrack: "[",
|
|
411
|
+
rbrack: "]",
|
|
412
|
+
lpar: "(",
|
|
413
|
+
rpar: ")",
|
|
414
|
+
nbsp: "\xA0",
|
|
415
|
+
iexcl: "¡",
|
|
416
|
+
cent: "¢",
|
|
417
|
+
pound: "£",
|
|
418
|
+
curren: "¤",
|
|
419
|
+
yen: "¥",
|
|
420
|
+
brvbar: "¦",
|
|
421
|
+
sect: "§",
|
|
422
|
+
uml: "¨",
|
|
423
|
+
copy: "©",
|
|
424
|
+
COPY: "©",
|
|
425
|
+
ordf: "ª",
|
|
426
|
+
laquo: "«",
|
|
427
|
+
not: "¬",
|
|
428
|
+
shy: "",
|
|
429
|
+
reg: "®",
|
|
430
|
+
REG: "®",
|
|
431
|
+
macr: "¯",
|
|
432
|
+
deg: "°",
|
|
433
|
+
plusmn: "±",
|
|
434
|
+
sup2: "²",
|
|
435
|
+
sup3: "³",
|
|
436
|
+
acute: "´",
|
|
437
|
+
micro: "µ",
|
|
438
|
+
para: "¶",
|
|
439
|
+
middot: "·",
|
|
440
|
+
cedil: "¸",
|
|
441
|
+
sup1: "¹",
|
|
442
|
+
ordm: "º",
|
|
443
|
+
raquo: "»",
|
|
444
|
+
frac14: "¼",
|
|
445
|
+
frac12: "½",
|
|
446
|
+
half: "½",
|
|
447
|
+
frac34: "¾",
|
|
448
|
+
iquest: "¿",
|
|
449
|
+
times: "×",
|
|
450
|
+
div: "÷",
|
|
451
|
+
divide: "÷"
|
|
452
|
+
}, fe = {
|
|
453
|
+
Agrave: "À",
|
|
454
|
+
agrave: "à",
|
|
455
|
+
Aacute: "Á",
|
|
456
|
+
aacute: "á",
|
|
457
|
+
Acirc: "Â",
|
|
458
|
+
acirc: "â",
|
|
459
|
+
Atilde: "Ã",
|
|
460
|
+
atilde: "ã",
|
|
461
|
+
Auml: "Ä",
|
|
462
|
+
auml: "ä",
|
|
463
|
+
Aring: "Å",
|
|
464
|
+
aring: "å",
|
|
465
|
+
AElig: "Æ",
|
|
466
|
+
aelig: "æ",
|
|
467
|
+
Ccedil: "Ç",
|
|
468
|
+
ccedil: "ç",
|
|
469
|
+
Egrave: "È",
|
|
470
|
+
egrave: "è",
|
|
471
|
+
Eacute: "É",
|
|
472
|
+
eacute: "é",
|
|
473
|
+
Ecirc: "Ê",
|
|
474
|
+
ecirc: "ê",
|
|
475
|
+
Euml: "Ë",
|
|
476
|
+
euml: "ë",
|
|
477
|
+
Igrave: "Ì",
|
|
478
|
+
igrave: "ì",
|
|
479
|
+
Iacute: "Í",
|
|
480
|
+
iacute: "í",
|
|
481
|
+
Icirc: "Î",
|
|
482
|
+
icirc: "î",
|
|
483
|
+
Iuml: "Ï",
|
|
484
|
+
iuml: "ï",
|
|
485
|
+
ETH: "Ð",
|
|
486
|
+
eth: "ð",
|
|
487
|
+
Ntilde: "Ñ",
|
|
488
|
+
ntilde: "ñ",
|
|
489
|
+
Ograve: "Ò",
|
|
490
|
+
ograve: "ò",
|
|
491
|
+
Oacute: "Ó",
|
|
492
|
+
oacute: "ó",
|
|
493
|
+
Ocirc: "Ô",
|
|
494
|
+
ocirc: "ô",
|
|
495
|
+
Otilde: "Õ",
|
|
496
|
+
otilde: "õ",
|
|
497
|
+
Ouml: "Ö",
|
|
498
|
+
ouml: "ö",
|
|
499
|
+
Oslash: "Ø",
|
|
500
|
+
oslash: "ø",
|
|
501
|
+
Ugrave: "Ù",
|
|
502
|
+
ugrave: "ù",
|
|
503
|
+
Uacute: "Ú",
|
|
504
|
+
uacute: "ú",
|
|
505
|
+
Ucirc: "Û",
|
|
506
|
+
ucirc: "û",
|
|
507
|
+
Uuml: "Ü",
|
|
508
|
+
uuml: "ü",
|
|
509
|
+
Yacute: "Ý",
|
|
510
|
+
yacute: "ý",
|
|
511
|
+
THORN: "Þ",
|
|
512
|
+
thorn: "þ",
|
|
513
|
+
szlig: "ß",
|
|
514
|
+
yuml: "ÿ",
|
|
515
|
+
Yuml: "Ÿ"
|
|
516
|
+
}, pe = {
|
|
517
|
+
Amacr: "Ā",
|
|
518
|
+
amacr: "ā",
|
|
519
|
+
Abreve: "Ă",
|
|
520
|
+
abreve: "ă",
|
|
521
|
+
Aogon: "Ą",
|
|
522
|
+
aogon: "ą",
|
|
523
|
+
Cacute: "Ć",
|
|
524
|
+
cacute: "ć",
|
|
525
|
+
Ccirc: "Ĉ",
|
|
526
|
+
ccirc: "ĉ",
|
|
527
|
+
Cdot: "Ċ",
|
|
528
|
+
cdot: "ċ",
|
|
529
|
+
Ccaron: "Č",
|
|
530
|
+
ccaron: "č",
|
|
531
|
+
Dcaron: "Ď",
|
|
532
|
+
dcaron: "ď",
|
|
533
|
+
Dstrok: "Đ",
|
|
534
|
+
dstrok: "đ",
|
|
535
|
+
Emacr: "Ē",
|
|
536
|
+
emacr: "ē",
|
|
537
|
+
Ecaron: "Ě",
|
|
538
|
+
ecaron: "ě",
|
|
539
|
+
Edot: "Ė",
|
|
540
|
+
edot: "ė",
|
|
541
|
+
Eogon: "Ę",
|
|
542
|
+
eogon: "ę",
|
|
543
|
+
Gcirc: "Ĝ",
|
|
544
|
+
gcirc: "ĝ",
|
|
545
|
+
Gbreve: "Ğ",
|
|
546
|
+
gbreve: "ğ",
|
|
547
|
+
Gdot: "Ġ",
|
|
548
|
+
gdot: "ġ",
|
|
549
|
+
Gcedil: "Ģ",
|
|
550
|
+
Hcirc: "Ĥ",
|
|
551
|
+
hcirc: "ĥ",
|
|
552
|
+
Hstrok: "Ħ",
|
|
553
|
+
hstrok: "ħ",
|
|
554
|
+
Itilde: "Ĩ",
|
|
555
|
+
itilde: "ĩ",
|
|
556
|
+
Imacr: "Ī",
|
|
557
|
+
imacr: "ī",
|
|
558
|
+
Iogon: "Į",
|
|
559
|
+
iogon: "į",
|
|
560
|
+
Idot: "İ",
|
|
561
|
+
IJlig: "IJ",
|
|
562
|
+
ijlig: "ij",
|
|
563
|
+
Jcirc: "Ĵ",
|
|
564
|
+
jcirc: "ĵ",
|
|
565
|
+
Kcedil: "Ķ",
|
|
566
|
+
kcedil: "ķ",
|
|
567
|
+
kgreen: "ĸ",
|
|
568
|
+
Lacute: "Ĺ",
|
|
569
|
+
lacute: "ĺ",
|
|
570
|
+
Lcedil: "Ļ",
|
|
571
|
+
lcedil: "ļ",
|
|
572
|
+
Lcaron: "Ľ",
|
|
573
|
+
lcaron: "ľ",
|
|
574
|
+
Lmidot: "Ŀ",
|
|
575
|
+
lmidot: "ŀ",
|
|
576
|
+
Lstrok: "Ł",
|
|
577
|
+
lstrok: "ł",
|
|
578
|
+
Nacute: "Ń",
|
|
579
|
+
nacute: "ń",
|
|
580
|
+
Ncaron: "Ň",
|
|
581
|
+
ncaron: "ň",
|
|
582
|
+
Ncedil: "Ņ",
|
|
583
|
+
ncedil: "ņ",
|
|
584
|
+
ENG: "Ŋ",
|
|
585
|
+
eng: "ŋ",
|
|
586
|
+
Omacr: "Ō",
|
|
587
|
+
omacr: "ō",
|
|
588
|
+
Odblac: "Ő",
|
|
589
|
+
odblac: "ő",
|
|
590
|
+
OElig: "Œ",
|
|
591
|
+
oelig: "œ",
|
|
592
|
+
Racute: "Ŕ",
|
|
593
|
+
racute: "ŕ",
|
|
594
|
+
Rcaron: "Ř",
|
|
595
|
+
rcaron: "ř",
|
|
596
|
+
Rcedil: "Ŗ",
|
|
597
|
+
rcedil: "ŗ",
|
|
598
|
+
Sacute: "Ś",
|
|
599
|
+
sacute: "ś",
|
|
600
|
+
Scirc: "Ŝ",
|
|
601
|
+
scirc: "ŝ",
|
|
602
|
+
Scedil: "Ş",
|
|
603
|
+
scedil: "ş",
|
|
604
|
+
Scaron: "Š",
|
|
605
|
+
scaron: "š",
|
|
606
|
+
Tcedil: "Ţ",
|
|
607
|
+
tcedil: "ţ",
|
|
608
|
+
Tcaron: "Ť",
|
|
609
|
+
tcaron: "ť",
|
|
610
|
+
Tstrok: "Ŧ",
|
|
611
|
+
tstrok: "ŧ",
|
|
612
|
+
Utilde: "Ũ",
|
|
613
|
+
utilde: "ũ",
|
|
614
|
+
Umacr: "Ū",
|
|
615
|
+
umacr: "ū",
|
|
616
|
+
Ubreve: "Ŭ",
|
|
617
|
+
ubreve: "ŭ",
|
|
618
|
+
Uring: "Ů",
|
|
619
|
+
uring: "ů",
|
|
620
|
+
Udblac: "Ű",
|
|
621
|
+
udblac: "ű",
|
|
622
|
+
Uogon: "Ų",
|
|
623
|
+
uogon: "ų",
|
|
624
|
+
Wcirc: "Ŵ",
|
|
625
|
+
wcirc: "ŵ",
|
|
626
|
+
Ycirc: "Ŷ",
|
|
627
|
+
ycirc: "ŷ",
|
|
628
|
+
Zacute: "Ź",
|
|
629
|
+
zacute: "ź",
|
|
630
|
+
Zdot: "Ż",
|
|
631
|
+
zdot: "ż",
|
|
632
|
+
Zcaron: "Ž",
|
|
633
|
+
zcaron: "ž"
|
|
634
|
+
}, me = {
|
|
635
|
+
Alpha: "Α",
|
|
636
|
+
alpha: "α",
|
|
637
|
+
Beta: "Β",
|
|
638
|
+
beta: "β",
|
|
639
|
+
Gamma: "Γ",
|
|
640
|
+
gamma: "γ",
|
|
641
|
+
Delta: "Δ",
|
|
642
|
+
delta: "δ",
|
|
643
|
+
Epsilon: "Ε",
|
|
644
|
+
epsilon: "ε",
|
|
645
|
+
epsiv: "ϵ",
|
|
646
|
+
varepsilon: "ϵ",
|
|
647
|
+
Zeta: "Ζ",
|
|
648
|
+
zeta: "ζ",
|
|
649
|
+
Eta: "Η",
|
|
650
|
+
eta: "η",
|
|
651
|
+
Theta: "Θ",
|
|
652
|
+
theta: "θ",
|
|
653
|
+
thetasym: "ϑ",
|
|
654
|
+
vartheta: "ϑ",
|
|
655
|
+
Iota: "Ι",
|
|
656
|
+
iota: "ι",
|
|
657
|
+
Kappa: "Κ",
|
|
658
|
+
kappa: "κ",
|
|
659
|
+
kappav: "ϰ",
|
|
660
|
+
varkappa: "ϰ",
|
|
661
|
+
Lambda: "Λ",
|
|
662
|
+
lambda: "λ",
|
|
663
|
+
Mu: "Μ",
|
|
664
|
+
mu: "μ",
|
|
665
|
+
Nu: "Ν",
|
|
666
|
+
nu: "ν",
|
|
667
|
+
Xi: "Ξ",
|
|
668
|
+
xi: "ξ",
|
|
669
|
+
Omicron: "Ο",
|
|
670
|
+
omicron: "ο",
|
|
671
|
+
Pi: "Π",
|
|
672
|
+
pi: "π",
|
|
673
|
+
piv: "ϖ",
|
|
674
|
+
varpi: "ϖ",
|
|
675
|
+
Rho: "Ρ",
|
|
676
|
+
rho: "ρ",
|
|
677
|
+
rhov: "ϱ",
|
|
678
|
+
varrho: "ϱ",
|
|
679
|
+
Sigma: "Σ",
|
|
680
|
+
sigma: "σ",
|
|
681
|
+
sigmaf: "ς",
|
|
682
|
+
sigmav: "ς",
|
|
683
|
+
varsigma: "ς",
|
|
684
|
+
Tau: "Τ",
|
|
685
|
+
tau: "τ",
|
|
686
|
+
Upsilon: "Υ",
|
|
687
|
+
upsilon: "υ",
|
|
688
|
+
upsi: "υ",
|
|
689
|
+
Upsi: "ϒ",
|
|
690
|
+
upsih: "ϒ",
|
|
691
|
+
Phi: "Φ",
|
|
692
|
+
phi: "φ",
|
|
693
|
+
phiv: "ϕ",
|
|
694
|
+
varphi: "ϕ",
|
|
695
|
+
Chi: "Χ",
|
|
696
|
+
chi: "χ",
|
|
697
|
+
Psi: "Ψ",
|
|
698
|
+
psi: "ψ",
|
|
699
|
+
Omega: "Ω",
|
|
700
|
+
omega: "ω",
|
|
701
|
+
ohm: "Ω",
|
|
702
|
+
Gammad: "Ϝ",
|
|
703
|
+
gammad: "ϝ",
|
|
704
|
+
digamma: "ϝ"
|
|
705
|
+
}, he = {
|
|
706
|
+
Afr: "𝔄",
|
|
707
|
+
afr: "𝔞",
|
|
708
|
+
Acy: "А",
|
|
709
|
+
acy: "а",
|
|
710
|
+
Bcy: "Б",
|
|
711
|
+
bcy: "б",
|
|
712
|
+
Vcy: "В",
|
|
713
|
+
vcy: "в",
|
|
714
|
+
Gcy: "Г",
|
|
715
|
+
gcy: "г",
|
|
716
|
+
Dcy: "Д",
|
|
717
|
+
dcy: "д",
|
|
718
|
+
IEcy: "Е",
|
|
719
|
+
iecy: "е",
|
|
720
|
+
IOcy: "Ё",
|
|
721
|
+
iocy: "ё",
|
|
722
|
+
ZHcy: "Ж",
|
|
723
|
+
zhcy: "ж",
|
|
724
|
+
Zcy: "З",
|
|
725
|
+
zcy: "з",
|
|
726
|
+
Icy: "И",
|
|
727
|
+
icy: "и",
|
|
728
|
+
Jcy: "Й",
|
|
729
|
+
jcy: "й",
|
|
730
|
+
Kcy: "К",
|
|
731
|
+
kcy: "к",
|
|
732
|
+
Lcy: "Л",
|
|
733
|
+
lcy: "л",
|
|
734
|
+
Mcy: "М",
|
|
735
|
+
mcy: "м",
|
|
736
|
+
Ncy: "Н",
|
|
737
|
+
ncy: "н",
|
|
738
|
+
Ocy: "О",
|
|
739
|
+
ocy: "о",
|
|
740
|
+
Pcy: "П",
|
|
741
|
+
pcy: "п",
|
|
742
|
+
Rcy: "Р",
|
|
743
|
+
rcy: "р",
|
|
744
|
+
Scy: "С",
|
|
745
|
+
scy: "с",
|
|
746
|
+
Tcy: "Т",
|
|
747
|
+
tcy: "т",
|
|
748
|
+
Ucy: "У",
|
|
749
|
+
ucy: "у",
|
|
750
|
+
Fcy: "Ф",
|
|
751
|
+
fcy: "ф",
|
|
752
|
+
KHcy: "Х",
|
|
753
|
+
khcy: "х",
|
|
754
|
+
TScy: "Ц",
|
|
755
|
+
tscy: "ц",
|
|
756
|
+
CHcy: "Ч",
|
|
757
|
+
chcy: "ч",
|
|
758
|
+
SHcy: "Ш",
|
|
759
|
+
shcy: "ш",
|
|
760
|
+
SHCHcy: "Щ",
|
|
761
|
+
shchcy: "щ",
|
|
762
|
+
HARDcy: "Ъ",
|
|
763
|
+
hardcy: "ъ",
|
|
764
|
+
Ycy: "Ы",
|
|
765
|
+
ycy: "ы",
|
|
766
|
+
SOFTcy: "Ь",
|
|
767
|
+
softcy: "ь",
|
|
768
|
+
Ecy: "Э",
|
|
769
|
+
ecy: "э",
|
|
770
|
+
YUcy: "Ю",
|
|
771
|
+
yucy: "ю",
|
|
772
|
+
YAcy: "Я",
|
|
773
|
+
yacy: "я",
|
|
774
|
+
DJcy: "Ђ",
|
|
775
|
+
djcy: "ђ",
|
|
776
|
+
GJcy: "Ѓ",
|
|
777
|
+
gjcy: "ѓ",
|
|
778
|
+
Jukcy: "Є",
|
|
779
|
+
jukcy: "є",
|
|
780
|
+
DScy: "Ѕ",
|
|
781
|
+
dscy: "ѕ",
|
|
782
|
+
Iukcy: "І",
|
|
783
|
+
iukcy: "і",
|
|
784
|
+
YIcy: "Ї",
|
|
785
|
+
yicy: "ї",
|
|
786
|
+
Jsercy: "Ј",
|
|
787
|
+
jsercy: "ј",
|
|
788
|
+
LJcy: "Љ",
|
|
789
|
+
ljcy: "љ",
|
|
790
|
+
NJcy: "Њ",
|
|
791
|
+
njcy: "њ",
|
|
792
|
+
TSHcy: "Ћ",
|
|
793
|
+
tshcy: "ћ",
|
|
794
|
+
KJcy: "Ќ",
|
|
795
|
+
kjcy: "ќ",
|
|
796
|
+
Ubrcy: "Ў",
|
|
797
|
+
ubrcy: "ў",
|
|
798
|
+
DZcy: "Џ",
|
|
799
|
+
dzcy: "џ"
|
|
800
|
+
}, ge = {
|
|
801
|
+
plus: "+",
|
|
802
|
+
pm: "±",
|
|
803
|
+
times: "×",
|
|
804
|
+
div: "÷",
|
|
805
|
+
divide: "÷",
|
|
806
|
+
sdot: "⋅",
|
|
807
|
+
star: "☆",
|
|
808
|
+
starf: "★",
|
|
809
|
+
bigstar: "★",
|
|
810
|
+
lowast: "∗",
|
|
811
|
+
ast: "*",
|
|
812
|
+
midast: "*",
|
|
813
|
+
compfn: "∘",
|
|
814
|
+
smallcircle: "∘",
|
|
815
|
+
bullet: "•",
|
|
816
|
+
bull: "•",
|
|
817
|
+
nbsp: "\xA0",
|
|
818
|
+
hellip: "…",
|
|
819
|
+
mldr: "…",
|
|
820
|
+
prime: "′",
|
|
821
|
+
Prime: "″",
|
|
822
|
+
tprime: "‴",
|
|
823
|
+
bprime: "‵",
|
|
824
|
+
backprime: "‵",
|
|
825
|
+
minus: "−",
|
|
826
|
+
minusd: "∸",
|
|
827
|
+
dotminus: "∸",
|
|
828
|
+
plusdo: "∔",
|
|
829
|
+
dotplus: "∔",
|
|
830
|
+
plusmn: "±",
|
|
831
|
+
minusplus: "∓",
|
|
832
|
+
mnplus: "∓",
|
|
833
|
+
mp: "∓",
|
|
834
|
+
setminus: "∖",
|
|
835
|
+
smallsetminus: "∖",
|
|
836
|
+
Backslash: "∖",
|
|
837
|
+
setmn: "∖",
|
|
838
|
+
ssetmn: "∖",
|
|
839
|
+
lowbar: "_",
|
|
840
|
+
verbar: "|",
|
|
841
|
+
vert: "|",
|
|
842
|
+
VerticalLine: "|",
|
|
843
|
+
colon: ":",
|
|
844
|
+
Colon: "∷",
|
|
845
|
+
Proportion: "∷",
|
|
846
|
+
ratio: "∶",
|
|
847
|
+
equals: "=",
|
|
848
|
+
ne: "≠",
|
|
849
|
+
nequiv: "≢",
|
|
850
|
+
equiv: "≡",
|
|
851
|
+
Congruent: "≡",
|
|
852
|
+
sim: "∼",
|
|
853
|
+
thicksim: "∼",
|
|
854
|
+
thksim: "∼",
|
|
855
|
+
sime: "≃",
|
|
856
|
+
simeq: "≃",
|
|
857
|
+
TildeEqual: "≃",
|
|
858
|
+
asymp: "≈",
|
|
859
|
+
approx: "≈",
|
|
860
|
+
thickapprox: "≈",
|
|
861
|
+
thkap: "≈",
|
|
862
|
+
TildeTilde: "≈",
|
|
863
|
+
ncong: "≇",
|
|
864
|
+
cong: "≅",
|
|
865
|
+
TildeFullEqual: "≅",
|
|
866
|
+
asympeq: "≍",
|
|
867
|
+
CupCap: "≍",
|
|
868
|
+
bump: "≎",
|
|
869
|
+
Bumpeq: "≎",
|
|
870
|
+
HumpDownHump: "≎",
|
|
871
|
+
bumpe: "≏",
|
|
872
|
+
bumpeq: "≏",
|
|
873
|
+
HumpEqual: "≏",
|
|
874
|
+
le: "≤",
|
|
875
|
+
LessEqual: "≤",
|
|
876
|
+
ge: "≥",
|
|
877
|
+
GreaterEqual: "≥",
|
|
878
|
+
lesseqgtr: "⋚",
|
|
879
|
+
lesseqqgtr: "⪋",
|
|
880
|
+
greater: ">",
|
|
881
|
+
less: "<"
|
|
882
|
+
}, _e = {
|
|
883
|
+
alefsym: "ℵ",
|
|
884
|
+
aleph: "ℵ",
|
|
885
|
+
beth: "ℶ",
|
|
886
|
+
gimel: "ℷ",
|
|
887
|
+
daleth: "ℸ",
|
|
888
|
+
forall: "∀",
|
|
889
|
+
ForAll: "∀",
|
|
890
|
+
part: "∂",
|
|
891
|
+
PartialD: "∂",
|
|
892
|
+
exist: "∃",
|
|
893
|
+
Exists: "∃",
|
|
894
|
+
nexist: "∄",
|
|
895
|
+
nexists: "∄",
|
|
896
|
+
empty: "∅",
|
|
897
|
+
emptyset: "∅",
|
|
898
|
+
emptyv: "∅",
|
|
899
|
+
varnothing: "∅",
|
|
900
|
+
nabla: "∇",
|
|
901
|
+
Del: "∇",
|
|
902
|
+
isin: "∈",
|
|
903
|
+
isinv: "∈",
|
|
904
|
+
in: "∈",
|
|
905
|
+
Element: "∈",
|
|
906
|
+
notin: "∉",
|
|
907
|
+
notinva: "∉",
|
|
908
|
+
ni: "∋",
|
|
909
|
+
niv: "∋",
|
|
910
|
+
SuchThat: "∋",
|
|
911
|
+
ReverseElement: "∋",
|
|
912
|
+
notni: "∌",
|
|
913
|
+
notniva: "∌",
|
|
914
|
+
prod: "∏",
|
|
915
|
+
Product: "∏",
|
|
916
|
+
coprod: "∐",
|
|
917
|
+
Coproduct: "∐",
|
|
918
|
+
sum: "∑",
|
|
919
|
+
Sum: "∑",
|
|
920
|
+
minus: "−",
|
|
921
|
+
mp: "∓",
|
|
922
|
+
plusdo: "∔",
|
|
923
|
+
dotplus: "∔",
|
|
924
|
+
setminus: "∖",
|
|
925
|
+
lowast: "∗",
|
|
926
|
+
radic: "√",
|
|
927
|
+
Sqrt: "√",
|
|
928
|
+
prop: "∝",
|
|
929
|
+
propto: "∝",
|
|
930
|
+
Proportional: "∝",
|
|
931
|
+
varpropto: "∝",
|
|
932
|
+
infin: "∞",
|
|
933
|
+
infintie: "⧝",
|
|
934
|
+
ang: "∠",
|
|
935
|
+
angle: "∠",
|
|
936
|
+
angmsd: "∡",
|
|
937
|
+
measuredangle: "∡",
|
|
938
|
+
angsph: "∢",
|
|
939
|
+
mid: "∣",
|
|
940
|
+
VerticalBar: "∣",
|
|
941
|
+
nmid: "∤",
|
|
942
|
+
nsmid: "∤",
|
|
943
|
+
npar: "∦",
|
|
944
|
+
parallel: "∥",
|
|
945
|
+
spar: "∥",
|
|
946
|
+
nparallel: "∦",
|
|
947
|
+
nspar: "∦",
|
|
948
|
+
and: "∧",
|
|
949
|
+
wedge: "∧",
|
|
950
|
+
or: "∨",
|
|
951
|
+
vee: "∨",
|
|
952
|
+
cap: "∩",
|
|
953
|
+
cup: "∪",
|
|
954
|
+
int: "∫",
|
|
955
|
+
Integral: "∫",
|
|
956
|
+
conint: "∮",
|
|
957
|
+
ContourIntegral: "∮",
|
|
958
|
+
Conint: "∯",
|
|
959
|
+
DoubleContourIntegral: "∯",
|
|
960
|
+
Cconint: "∰",
|
|
961
|
+
there4: "∴",
|
|
962
|
+
therefore: "∴",
|
|
963
|
+
Therefore: "∴",
|
|
964
|
+
becaus: "∵",
|
|
965
|
+
because: "∵",
|
|
966
|
+
Because: "∵",
|
|
967
|
+
ratio: "∶",
|
|
968
|
+
Proportion: "∷",
|
|
969
|
+
minusd: "∸",
|
|
970
|
+
dotminus: "∸",
|
|
971
|
+
mDDot: "∺",
|
|
972
|
+
homtht: "∻",
|
|
973
|
+
sim: "∼",
|
|
974
|
+
bsimg: "∽",
|
|
975
|
+
backsim: "∽",
|
|
976
|
+
ac: "∾",
|
|
977
|
+
mstpos: "∾",
|
|
978
|
+
acd: "∿",
|
|
979
|
+
VerticalTilde: "≀",
|
|
980
|
+
wr: "≀",
|
|
981
|
+
wreath: "≀",
|
|
982
|
+
nsime: "≄",
|
|
983
|
+
nsimeq: "≄",
|
|
984
|
+
ncong: "≇",
|
|
985
|
+
simne: "≆",
|
|
986
|
+
ncongdot: "⩭̸",
|
|
987
|
+
ngsim: "≵",
|
|
988
|
+
nsim: "≁",
|
|
989
|
+
napprox: "≉",
|
|
990
|
+
nap: "≉",
|
|
991
|
+
ngeq: "≱",
|
|
992
|
+
nge: "≱",
|
|
993
|
+
nleq: "≰",
|
|
994
|
+
nle: "≰",
|
|
995
|
+
ngtr: "≯",
|
|
996
|
+
ngt: "≯",
|
|
997
|
+
nless: "≮",
|
|
998
|
+
nlt: "≮",
|
|
999
|
+
nprec: "⊀",
|
|
1000
|
+
npr: "⊀",
|
|
1001
|
+
nsucc: "⊁",
|
|
1002
|
+
nsc: "⊁"
|
|
1003
|
+
}, ve = {
|
|
1004
|
+
larr: "←",
|
|
1005
|
+
leftarrow: "←",
|
|
1006
|
+
LeftArrow: "←",
|
|
1007
|
+
uarr: "↑",
|
|
1008
|
+
uparrow: "↑",
|
|
1009
|
+
UpArrow: "↑",
|
|
1010
|
+
rarr: "→",
|
|
1011
|
+
rightarrow: "→",
|
|
1012
|
+
RightArrow: "→",
|
|
1013
|
+
darr: "↓",
|
|
1014
|
+
downarrow: "↓",
|
|
1015
|
+
DownArrow: "↓",
|
|
1016
|
+
harr: "↔",
|
|
1017
|
+
leftrightarrow: "↔",
|
|
1018
|
+
LeftRightArrow: "↔",
|
|
1019
|
+
varr: "↕",
|
|
1020
|
+
updownarrow: "↕",
|
|
1021
|
+
UpDownArrow: "↕",
|
|
1022
|
+
nwarr: "↖",
|
|
1023
|
+
nwarrow: "↖",
|
|
1024
|
+
UpperLeftArrow: "↖",
|
|
1025
|
+
nearr: "↗",
|
|
1026
|
+
nearrow: "↗",
|
|
1027
|
+
UpperRightArrow: "↗",
|
|
1028
|
+
searr: "↘",
|
|
1029
|
+
searrow: "↘",
|
|
1030
|
+
LowerRightArrow: "↘",
|
|
1031
|
+
swarr: "↙",
|
|
1032
|
+
swarrow: "↙",
|
|
1033
|
+
LowerLeftArrow: "↙",
|
|
1034
|
+
lArr: "⇐",
|
|
1035
|
+
Leftarrow: "⇐",
|
|
1036
|
+
uArr: "⇑",
|
|
1037
|
+
Uparrow: "⇑",
|
|
1038
|
+
rArr: "⇒",
|
|
1039
|
+
Rightarrow: "⇒",
|
|
1040
|
+
dArr: "⇓",
|
|
1041
|
+
Downarrow: "⇓",
|
|
1042
|
+
hArr: "⇔",
|
|
1043
|
+
Leftrightarrow: "⇔",
|
|
1044
|
+
iff: "⇔",
|
|
1045
|
+
vArr: "⇕",
|
|
1046
|
+
Updownarrow: "⇕",
|
|
1047
|
+
lAarr: "⇚",
|
|
1048
|
+
Lleftarrow: "⇚",
|
|
1049
|
+
rAarr: "⇛",
|
|
1050
|
+
Rrightarrow: "⇛",
|
|
1051
|
+
lrarr: "⇆",
|
|
1052
|
+
leftrightarrows: "⇆",
|
|
1053
|
+
rlarr: "⇄",
|
|
1054
|
+
rightleftarrows: "⇄",
|
|
1055
|
+
lrhar: "⇋",
|
|
1056
|
+
leftrightharpoons: "⇋",
|
|
1057
|
+
ReverseEquilibrium: "⇋",
|
|
1058
|
+
rlhar: "⇌",
|
|
1059
|
+
rightleftharpoons: "⇌",
|
|
1060
|
+
Equilibrium: "⇌",
|
|
1061
|
+
udarr: "⇅",
|
|
1062
|
+
UpArrowDownArrow: "⇅",
|
|
1063
|
+
duarr: "⇵",
|
|
1064
|
+
DownArrowUpArrow: "⇵",
|
|
1065
|
+
llarr: "⇇",
|
|
1066
|
+
leftleftarrows: "⇇",
|
|
1067
|
+
rrarr: "⇉",
|
|
1068
|
+
rightrightarrows: "⇉",
|
|
1069
|
+
ddarr: "⇊",
|
|
1070
|
+
downdownarrows: "⇊",
|
|
1071
|
+
har: "↽",
|
|
1072
|
+
lhard: "↽",
|
|
1073
|
+
leftharpoondown: "↽",
|
|
1074
|
+
lharu: "↼",
|
|
1075
|
+
leftharpoonup: "↼",
|
|
1076
|
+
rhard: "⇁",
|
|
1077
|
+
rightharpoondown: "⇁",
|
|
1078
|
+
rharu: "⇀",
|
|
1079
|
+
rightharpoonup: "⇀",
|
|
1080
|
+
lsh: "↰",
|
|
1081
|
+
Lsh: "↰",
|
|
1082
|
+
rsh: "↱",
|
|
1083
|
+
Rsh: "↱",
|
|
1084
|
+
ldsh: "↲",
|
|
1085
|
+
rdsh: "↳",
|
|
1086
|
+
hookleftarrow: "↩",
|
|
1087
|
+
hookrightarrow: "↪",
|
|
1088
|
+
mapstoleft: "↤",
|
|
1089
|
+
mapstoup: "↥",
|
|
1090
|
+
map: "↦",
|
|
1091
|
+
mapsto: "↦",
|
|
1092
|
+
mapstodown: "↧",
|
|
1093
|
+
crarr: "↵",
|
|
1094
|
+
nleftarrow: "↚",
|
|
1095
|
+
nleftrightarrow: "↮",
|
|
1096
|
+
nrightarrow: "↛",
|
|
1097
|
+
nrarr: "↛",
|
|
1098
|
+
larrtl: "↢",
|
|
1099
|
+
rarrtl: "↣",
|
|
1100
|
+
leftarrowtail: "↢",
|
|
1101
|
+
rightarrowtail: "↣",
|
|
1102
|
+
twoheadleftarrow: "↞",
|
|
1103
|
+
twoheadrightarrow: "↠",
|
|
1104
|
+
Larr: "↞",
|
|
1105
|
+
Rarr: "↠",
|
|
1106
|
+
larrhk: "↩",
|
|
1107
|
+
rarrhk: "↪",
|
|
1108
|
+
larrlp: "↫",
|
|
1109
|
+
looparrowleft: "↫",
|
|
1110
|
+
rarrlp: "↬",
|
|
1111
|
+
looparrowright: "↬",
|
|
1112
|
+
harrw: "↭",
|
|
1113
|
+
leftrightsquigarrow: "↭",
|
|
1114
|
+
nrarrw: "↝̸",
|
|
1115
|
+
rarrw: "↝",
|
|
1116
|
+
rightsquigarrow: "↝",
|
|
1117
|
+
larrbfs: "⤟",
|
|
1118
|
+
rarrbfs: "⤠",
|
|
1119
|
+
nvHarr: "⤄",
|
|
1120
|
+
nvlArr: "⤂",
|
|
1121
|
+
nvrArr: "⤃",
|
|
1122
|
+
larrfs: "⤝",
|
|
1123
|
+
rarrfs: "⤞",
|
|
1124
|
+
Map: "⤅",
|
|
1125
|
+
larrsim: "⥳",
|
|
1126
|
+
rarrsim: "⥴",
|
|
1127
|
+
harrcir: "⥈",
|
|
1128
|
+
Uarrocir: "⥉",
|
|
1129
|
+
lurdshar: "⥊",
|
|
1130
|
+
ldrdhar: "⥧",
|
|
1131
|
+
ldrushar: "⥋",
|
|
1132
|
+
rdldhar: "⥩",
|
|
1133
|
+
lrhard: "⥭",
|
|
1134
|
+
uharr: "↾",
|
|
1135
|
+
uharl: "↿",
|
|
1136
|
+
dharr: "⇂",
|
|
1137
|
+
dharl: "⇃",
|
|
1138
|
+
Uarr: "↟",
|
|
1139
|
+
Darr: "↡",
|
|
1140
|
+
zigrarr: "⇝",
|
|
1141
|
+
nwArr: "⇖",
|
|
1142
|
+
neArr: "⇗",
|
|
1143
|
+
seArr: "⇘",
|
|
1144
|
+
swArr: "⇙",
|
|
1145
|
+
nharr: "↮",
|
|
1146
|
+
nhArr: "⇎",
|
|
1147
|
+
nlarr: "↚",
|
|
1148
|
+
nlArr: "⇍",
|
|
1149
|
+
nrArr: "⇏",
|
|
1150
|
+
larrb: "⇤",
|
|
1151
|
+
LeftArrowBar: "⇤",
|
|
1152
|
+
rarrb: "⇥",
|
|
1153
|
+
RightArrowBar: "⇥"
|
|
1154
|
+
}, ye = {
|
|
1155
|
+
square: "□",
|
|
1156
|
+
Square: "□",
|
|
1157
|
+
squ: "□",
|
|
1158
|
+
squf: "▪",
|
|
1159
|
+
squarf: "▪",
|
|
1160
|
+
blacksquar: "▪",
|
|
1161
|
+
blacksquare: "▪",
|
|
1162
|
+
FilledVerySmallSquare: "▪",
|
|
1163
|
+
blk34: "▓",
|
|
1164
|
+
blk12: "▒",
|
|
1165
|
+
blk14: "░",
|
|
1166
|
+
block: "█",
|
|
1167
|
+
srect: "▭",
|
|
1168
|
+
rect: "▭",
|
|
1169
|
+
sdot: "⋅",
|
|
1170
|
+
sdotb: "⊡",
|
|
1171
|
+
dotsquare: "⊡",
|
|
1172
|
+
triangle: "▵",
|
|
1173
|
+
tri: "▵",
|
|
1174
|
+
trine: "▵",
|
|
1175
|
+
utri: "▵",
|
|
1176
|
+
triangledown: "▿",
|
|
1177
|
+
dtri: "▿",
|
|
1178
|
+
tridown: "▿",
|
|
1179
|
+
triangleleft: "◃",
|
|
1180
|
+
ltri: "◃",
|
|
1181
|
+
triangleright: "▹",
|
|
1182
|
+
rtri: "▹",
|
|
1183
|
+
blacktriangle: "▴",
|
|
1184
|
+
utrif: "▴",
|
|
1185
|
+
blacktriangledown: "▾",
|
|
1186
|
+
dtrif: "▾",
|
|
1187
|
+
blacktriangleleft: "◂",
|
|
1188
|
+
ltrif: "◂",
|
|
1189
|
+
blacktriangleright: "▸",
|
|
1190
|
+
rtrif: "▸",
|
|
1191
|
+
loz: "◊",
|
|
1192
|
+
lozenge: "◊",
|
|
1193
|
+
blacklozenge: "⧫",
|
|
1194
|
+
lozf: "⧫",
|
|
1195
|
+
bigcirc: "◯",
|
|
1196
|
+
xcirc: "◯",
|
|
1197
|
+
circ: "ˆ",
|
|
1198
|
+
Circle: "○",
|
|
1199
|
+
cir: "○",
|
|
1200
|
+
o: "○",
|
|
1201
|
+
bullet: "•",
|
|
1202
|
+
bull: "•",
|
|
1203
|
+
hellip: "…",
|
|
1204
|
+
mldr: "…",
|
|
1205
|
+
nldr: "‥",
|
|
1206
|
+
boxh: "─",
|
|
1207
|
+
HorizontalLine: "─",
|
|
1208
|
+
boxv: "│",
|
|
1209
|
+
boxdr: "┌",
|
|
1210
|
+
boxdl: "┐",
|
|
1211
|
+
boxur: "└",
|
|
1212
|
+
boxul: "┘",
|
|
1213
|
+
boxvr: "├",
|
|
1214
|
+
boxvl: "┤",
|
|
1215
|
+
boxhd: "┬",
|
|
1216
|
+
boxhu: "┴",
|
|
1217
|
+
boxvh: "┼",
|
|
1218
|
+
boxH: "═",
|
|
1219
|
+
boxV: "║",
|
|
1220
|
+
boxdR: "╒",
|
|
1221
|
+
boxDr: "╓",
|
|
1222
|
+
boxDR: "╔",
|
|
1223
|
+
boxDl: "╕",
|
|
1224
|
+
boxdL: "╖",
|
|
1225
|
+
boxDL: "╗",
|
|
1226
|
+
boxuR: "╘",
|
|
1227
|
+
boxUr: "╙",
|
|
1228
|
+
boxUR: "╚",
|
|
1229
|
+
boxUl: "╜",
|
|
1230
|
+
boxuL: "╛",
|
|
1231
|
+
boxUL: "╝",
|
|
1232
|
+
boxvR: "╞",
|
|
1233
|
+
boxVr: "╟",
|
|
1234
|
+
boxVR: "╠",
|
|
1235
|
+
boxVl: "╢",
|
|
1236
|
+
boxvL: "╡",
|
|
1237
|
+
boxVL: "╣",
|
|
1238
|
+
boxHd: "╤",
|
|
1239
|
+
boxhD: "╥",
|
|
1240
|
+
boxHD: "╦",
|
|
1241
|
+
boxHu: "╧",
|
|
1242
|
+
boxhU: "╨",
|
|
1243
|
+
boxHU: "╩",
|
|
1244
|
+
boxvH: "╪",
|
|
1245
|
+
boxVh: "╫",
|
|
1246
|
+
boxVH: "╬"
|
|
1247
|
+
}, be = {
|
|
1248
|
+
excl: "!",
|
|
1249
|
+
iexcl: "¡",
|
|
1250
|
+
brvbar: "¦",
|
|
1251
|
+
sect: "§",
|
|
1252
|
+
uml: "¨",
|
|
1253
|
+
copy: "©",
|
|
1254
|
+
ordf: "ª",
|
|
1255
|
+
laquo: "«",
|
|
1256
|
+
not: "¬",
|
|
1257
|
+
shy: "",
|
|
1258
|
+
reg: "®",
|
|
1259
|
+
macr: "¯",
|
|
1260
|
+
deg: "°",
|
|
1261
|
+
plusmn: "±",
|
|
1262
|
+
sup2: "²",
|
|
1263
|
+
sup3: "³",
|
|
1264
|
+
acute: "´",
|
|
1265
|
+
micro: "µ",
|
|
1266
|
+
para: "¶",
|
|
1267
|
+
middot: "·",
|
|
1268
|
+
cedil: "¸",
|
|
1269
|
+
sup1: "¹",
|
|
1270
|
+
ordm: "º",
|
|
1271
|
+
raquo: "»",
|
|
1272
|
+
frac14: "¼",
|
|
1273
|
+
frac12: "½",
|
|
1274
|
+
frac34: "¾",
|
|
1275
|
+
iquest: "¿",
|
|
1276
|
+
nbsp: "\xA0",
|
|
1277
|
+
comma: ",",
|
|
1278
|
+
period: ".",
|
|
1279
|
+
colon: ":",
|
|
1280
|
+
semi: ";",
|
|
1281
|
+
vert: "|",
|
|
1282
|
+
Verbar: "‖",
|
|
1283
|
+
verbar: "|",
|
|
1284
|
+
dblac: "˝",
|
|
1285
|
+
circ: "ˆ",
|
|
1286
|
+
caron: "ˇ",
|
|
1287
|
+
breve: "˘",
|
|
1288
|
+
dot: "˙",
|
|
1289
|
+
ring: "˚",
|
|
1290
|
+
ogon: "˛",
|
|
1291
|
+
tilde: "˜",
|
|
1292
|
+
DiacriticalGrave: "`",
|
|
1293
|
+
DiacriticalAcute: "´",
|
|
1294
|
+
DiacriticalTilde: "˜",
|
|
1295
|
+
DiacriticalDot: "˙",
|
|
1296
|
+
DiacriticalDoubleAcute: "˝",
|
|
1297
|
+
grave: "`"
|
|
1298
|
+
}, xe = {
|
|
375
1299
|
cent: "¢",
|
|
376
1300
|
pound: "£",
|
|
377
1301
|
curren: "¤",
|
|
@@ -387,13 +1311,112 @@ var de = {
|
|
|
387
1311
|
won: "₩",
|
|
388
1312
|
yuan: "¥",
|
|
389
1313
|
cedil: "¸"
|
|
390
|
-
},
|
|
1314
|
+
}, Se = {
|
|
1315
|
+
frac12: "½",
|
|
1316
|
+
half: "½",
|
|
1317
|
+
frac13: "⅓",
|
|
1318
|
+
frac14: "¼",
|
|
1319
|
+
frac15: "⅕",
|
|
1320
|
+
frac16: "⅙",
|
|
1321
|
+
frac18: "⅛",
|
|
1322
|
+
frac23: "⅔",
|
|
1323
|
+
frac25: "⅖",
|
|
1324
|
+
frac34: "¾",
|
|
1325
|
+
frac35: "⅗",
|
|
1326
|
+
frac38: "⅜",
|
|
1327
|
+
frac45: "⅘",
|
|
1328
|
+
frac56: "⅚",
|
|
1329
|
+
frac58: "⅝",
|
|
1330
|
+
frac78: "⅞",
|
|
1331
|
+
frasl: "⁄"
|
|
1332
|
+
}, Ce = {
|
|
1333
|
+
trade: "™",
|
|
1334
|
+
TRADE: "™",
|
|
1335
|
+
telrec: "⌕",
|
|
1336
|
+
target: "⌖",
|
|
1337
|
+
ulcorn: "⌜",
|
|
1338
|
+
ulcorner: "⌜",
|
|
1339
|
+
urcorn: "⌝",
|
|
1340
|
+
urcorner: "⌝",
|
|
1341
|
+
dlcorn: "⌞",
|
|
1342
|
+
llcorner: "⌞",
|
|
1343
|
+
drcorn: "⌟",
|
|
1344
|
+
lrcorner: "⌟",
|
|
1345
|
+
intercal: "⊺",
|
|
1346
|
+
intcal: "⊺",
|
|
1347
|
+
oplus: "⊕",
|
|
1348
|
+
CirclePlus: "⊕",
|
|
1349
|
+
ominus: "⊖",
|
|
1350
|
+
CircleMinus: "⊖",
|
|
1351
|
+
otimes: "⊗",
|
|
1352
|
+
CircleTimes: "⊗",
|
|
1353
|
+
osol: "⊘",
|
|
1354
|
+
odot: "⊙",
|
|
1355
|
+
CircleDot: "⊙",
|
|
1356
|
+
oast: "⊛",
|
|
1357
|
+
circledast: "⊛",
|
|
1358
|
+
odash: "⊝",
|
|
1359
|
+
circleddash: "⊝",
|
|
1360
|
+
ocirc: "⊚",
|
|
1361
|
+
circledcirc: "⊚",
|
|
1362
|
+
boxplus: "⊞",
|
|
1363
|
+
plusb: "⊞",
|
|
1364
|
+
boxminus: "⊟",
|
|
1365
|
+
minusb: "⊟",
|
|
1366
|
+
boxtimes: "⊠",
|
|
1367
|
+
timesb: "⊠",
|
|
1368
|
+
boxdot: "⊡",
|
|
1369
|
+
sdotb: "⊡",
|
|
1370
|
+
veebar: "⊻",
|
|
1371
|
+
vee: "∨",
|
|
1372
|
+
barvee: "⊽",
|
|
1373
|
+
and: "∧",
|
|
1374
|
+
wedge: "∧",
|
|
1375
|
+
Cap: "⋒",
|
|
1376
|
+
Cup: "⋓",
|
|
1377
|
+
Fork: "⋔",
|
|
1378
|
+
pitchfork: "⋔",
|
|
1379
|
+
epar: "⋕",
|
|
1380
|
+
ltlarr: "⥶",
|
|
1381
|
+
nvap: "≍⃒",
|
|
1382
|
+
nvsim: "∼⃒",
|
|
1383
|
+
nvge: "≥⃒",
|
|
1384
|
+
nvle: "≤⃒",
|
|
1385
|
+
nvlt: "<⃒",
|
|
1386
|
+
nvgt: ">⃒",
|
|
1387
|
+
nvltrie: "⊴⃒",
|
|
1388
|
+
nvrtrie: "⊵⃒",
|
|
1389
|
+
Vdash: "⊩",
|
|
1390
|
+
dashv: "⊣",
|
|
1391
|
+
vDash: "⊨",
|
|
1392
|
+
Vvdash: "⊪",
|
|
1393
|
+
nvdash: "⊬",
|
|
1394
|
+
nvDash: "⊭",
|
|
1395
|
+
nVdash: "⊮",
|
|
1396
|
+
nVDash: "⊯"
|
|
1397
|
+
};
|
|
1398
|
+
({
|
|
1399
|
+
...de,
|
|
1400
|
+
...fe,
|
|
1401
|
+
...pe,
|
|
1402
|
+
...me,
|
|
1403
|
+
...he,
|
|
1404
|
+
...ge,
|
|
1405
|
+
..._e,
|
|
1406
|
+
...ve,
|
|
1407
|
+
...ye,
|
|
1408
|
+
...be,
|
|
1409
|
+
...xe,
|
|
1410
|
+
...Se,
|
|
1411
|
+
...Ce
|
|
1412
|
+
});
|
|
1413
|
+
var we = {
|
|
391
1414
|
amp: "&",
|
|
392
1415
|
apos: "'",
|
|
393
1416
|
gt: ">",
|
|
394
1417
|
lt: "<",
|
|
395
1418
|
quot: "\""
|
|
396
|
-
},
|
|
1419
|
+
}, Te = {
|
|
397
1420
|
nbsp: "\xA0",
|
|
398
1421
|
copy: "©",
|
|
399
1422
|
reg: "®",
|
|
@@ -418,10 +1441,10 @@ var de = {
|
|
|
418
1441
|
ALLOW: "allow",
|
|
419
1442
|
BLOCK: "block",
|
|
420
1443
|
THROW: "throw"
|
|
421
|
-
}),
|
|
422
|
-
function
|
|
1444
|
+
}), Ee = /* @__PURE__ */ new Set("!?\\\\/[]$%{}^&*()<>|+");
|
|
1445
|
+
function De(e) {
|
|
423
1446
|
if (e[0] === "#") throw Error(`[EntityReplacer] Invalid character '#' in entity name: "${e}"`);
|
|
424
|
-
for (let t of e) if (
|
|
1447
|
+
for (let t of e) if (Ee.has(t)) throw Error(`[EntityReplacer] Invalid character '${t}' in entity name: "${e}"`);
|
|
425
1448
|
return e;
|
|
426
1449
|
}
|
|
427
1450
|
function S(...e) {
|
|
@@ -436,37 +1459,37 @@ function S(...e) {
|
|
|
436
1459
|
}
|
|
437
1460
|
return t;
|
|
438
1461
|
}
|
|
439
|
-
var C = "external", w = "base",
|
|
440
|
-
function
|
|
441
|
-
return !e || e === C ?
|
|
1462
|
+
var C = "external", w = "base", T = "all";
|
|
1463
|
+
function Oe(e) {
|
|
1464
|
+
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]);
|
|
442
1465
|
}
|
|
443
|
-
var
|
|
1466
|
+
var E = Object.freeze({
|
|
444
1467
|
allow: 0,
|
|
445
1468
|
leave: 1,
|
|
446
1469
|
remove: 2,
|
|
447
1470
|
throw: 3
|
|
448
|
-
}),
|
|
1471
|
+
}), ke = new Set([
|
|
449
1472
|
9,
|
|
450
1473
|
10,
|
|
451
1474
|
13
|
|
452
1475
|
]);
|
|
453
|
-
function
|
|
1476
|
+
function Ae(e) {
|
|
454
1477
|
if (!e) return {
|
|
455
1478
|
xmlVersion: 1,
|
|
456
|
-
onLevel:
|
|
457
|
-
nullLevel:
|
|
1479
|
+
onLevel: E.allow,
|
|
1480
|
+
nullLevel: E.remove
|
|
458
1481
|
};
|
|
459
|
-
let t = e.xmlVersion === 1.1 ? 1.1 : 1, n =
|
|
1482
|
+
let t = e.xmlVersion === 1.1 ? 1.1 : 1, n = E[e.onNCR] ?? E.allow, r = E[e.nullNCR] ?? E.remove;
|
|
460
1483
|
return {
|
|
461
1484
|
xmlVersion: t,
|
|
462
1485
|
onLevel: n,
|
|
463
|
-
nullLevel: Math.max(r,
|
|
1486
|
+
nullLevel: Math.max(r, E.remove)
|
|
464
1487
|
};
|
|
465
1488
|
}
|
|
466
|
-
var
|
|
1489
|
+
var je = class {
|
|
467
1490
|
constructor(e = {}) {
|
|
468
|
-
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 =
|
|
469
|
-
let t =
|
|
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 = Oe(this._limit.applyLimitsTo ?? C), this._numericAllowed = e.numericAllowed ?? !0, this._baseMap = S(we, e.namedEntities || null), this._externalMap = Object.create(null), this._inputMap = Object.create(null), this._totalExpansions = 0, this._expandedLength = 0, this._removeSet = new Set(e.remove && Array.isArray(e.remove) ? e.remove : []), this._leaveSet = new Set(e.leave && Array.isArray(e.leave) ? e.leave : []);
|
|
1492
|
+
let t = Ae(e.ncr);
|
|
470
1493
|
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;
|
|
471
1494
|
}
|
|
472
1495
|
_applyRegistrationHook(e, t, n, r) {
|
|
@@ -477,7 +1500,7 @@ var be = class {
|
|
|
477
1500
|
return !0;
|
|
478
1501
|
}
|
|
479
1502
|
setExternalEntities(e) {
|
|
480
|
-
if (e) for (let t of Object.keys(e))
|
|
1503
|
+
if (e) for (let t of Object.keys(e)) De(t);
|
|
481
1504
|
if (!this._onExternalEntity) {
|
|
482
1505
|
this._externalMap = S(e);
|
|
483
1506
|
return;
|
|
@@ -487,7 +1510,7 @@ var be = class {
|
|
|
487
1510
|
this._externalMap = n;
|
|
488
1511
|
}
|
|
489
1512
|
addExternalEntity(e, t) {
|
|
490
|
-
|
|
1513
|
+
De(e), typeof t == "string" && t.indexOf("&") === -1 && this._applyRegistrationHook(this._onExternalEntity, e, t, "external") && (this._externalMap[e] = t);
|
|
491
1514
|
}
|
|
492
1515
|
addInputEntities(e) {
|
|
493
1516
|
if (this._totalExpansions = 0, this._expandedLength = 0, !this._onInputEntity) {
|
|
@@ -556,7 +1579,7 @@ var be = class {
|
|
|
556
1579
|
return this._postCheck(l, t);
|
|
557
1580
|
}
|
|
558
1581
|
_tierCounts(e) {
|
|
559
|
-
return this._limitTiers.has(
|
|
1582
|
+
return this._limitTiers.has(T) ? !0 : this._limitTiers.has(e);
|
|
560
1583
|
}
|
|
561
1584
|
_resolveName(e) {
|
|
562
1585
|
if (e in this._inputMap) return {
|
|
@@ -573,14 +1596,14 @@ var be = class {
|
|
|
573
1596
|
};
|
|
574
1597
|
}
|
|
575
1598
|
_classifyNCR(e) {
|
|
576
|
-
return e === 0 ? this._ncrNullLevel : e >= 55296 && e <= 57343 || this._ncrXmlVersion === 1 && e >= 1 && e <= 31 && !
|
|
1599
|
+
return e === 0 ? this._ncrNullLevel : e >= 55296 && e <= 57343 || this._ncrXmlVersion === 1 && e >= 1 && e <= 31 && !ke.has(e) ? E.remove : -1;
|
|
577
1600
|
}
|
|
578
1601
|
_applyNCRAction(e, t, n) {
|
|
579
1602
|
switch (e) {
|
|
580
|
-
case
|
|
581
|
-
case
|
|
582
|
-
case
|
|
583
|
-
case
|
|
1603
|
+
case E.allow: return String.fromCodePoint(n);
|
|
1604
|
+
case E.remove: return "";
|
|
1605
|
+
case E.leave: return;
|
|
1606
|
+
case E.throw: throw Error(`[EntityDecoder] Prohibited numeric character reference &${t}; (U+${n.toString(16).toUpperCase().padStart(4, "0")})`);
|
|
584
1607
|
default: return String.fromCodePoint(n);
|
|
585
1608
|
}
|
|
586
1609
|
}
|
|
@@ -588,11 +1611,11 @@ var be = class {
|
|
|
588
1611
|
let t = e.charCodeAt(1), n;
|
|
589
1612
|
if (n = t === 120 || t === 88 ? parseInt(e.slice(2), 16) : parseInt(e.slice(1), 10), Number.isNaN(n) || n < 0 || n > 1114111) return;
|
|
590
1613
|
let r = this._classifyNCR(n);
|
|
591
|
-
if (!this._numericAllowed && r <
|
|
1614
|
+
if (!this._numericAllowed && r < E.remove) return;
|
|
592
1615
|
let i = r === -1 ? this._ncrOnLevel : Math.max(this._ncrOnLevel, r);
|
|
593
1616
|
return this._applyNCRAction(i, e, n);
|
|
594
1617
|
}
|
|
595
|
-
},
|
|
1618
|
+
}, Me = (e) => p.includes(e) ? "__" + e : e, Ne = {
|
|
596
1619
|
preserveOrder: !1,
|
|
597
1620
|
attributeNamePrefix: "@_",
|
|
598
1621
|
attributesGroupName: !1,
|
|
@@ -635,14 +1658,14 @@ var be = class {
|
|
|
635
1658
|
maxNestedTags: 100,
|
|
636
1659
|
strictReservedNames: !0,
|
|
637
1660
|
jPath: !0,
|
|
638
|
-
onDangerousProperty:
|
|
1661
|
+
onDangerousProperty: Me
|
|
639
1662
|
};
|
|
640
|
-
function
|
|
1663
|
+
function Pe(e, t) {
|
|
641
1664
|
if (typeof e != "string") return;
|
|
642
1665
|
let n = e.toLowerCase();
|
|
643
1666
|
if (p.some((e) => n === e.toLowerCase()) || m.some((e) => n === e.toLowerCase())) throw Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);
|
|
644
1667
|
}
|
|
645
|
-
function
|
|
1668
|
+
function Fe(e, t) {
|
|
646
1669
|
return typeof e == "boolean" ? {
|
|
647
1670
|
enabled: e,
|
|
648
1671
|
maxEntitySize: 1e4,
|
|
@@ -663,10 +1686,10 @@ function we(e, t) {
|
|
|
663
1686
|
allowedTags: e.allowedTags ?? null,
|
|
664
1687
|
tagFilter: e.tagFilter ?? null,
|
|
665
1688
|
appliesTo: e.appliesTo ?? "all"
|
|
666
|
-
} :
|
|
1689
|
+
} : Fe(!0);
|
|
667
1690
|
}
|
|
668
|
-
var
|
|
669
|
-
let t = Object.assign({},
|
|
1691
|
+
var Ie = function(e) {
|
|
1692
|
+
let t = Object.assign({}, Ne, e), n = [
|
|
670
1693
|
{
|
|
671
1694
|
value: t.attributeNamePrefix,
|
|
672
1695
|
name: "attributeNamePrefix"
|
|
@@ -688,9 +1711,9 @@ var Te = function(e) {
|
|
|
688
1711
|
name: "commentPropName"
|
|
689
1712
|
}
|
|
690
1713
|
];
|
|
691
|
-
for (let { value: e, name: t } of n) e &&
|
|
692
|
-
return t.onDangerousProperty === null && (t.onDangerousProperty =
|
|
693
|
-
},
|
|
1714
|
+
for (let { value: e, name: t } of n) e && Pe(e, t);
|
|
1715
|
+
return t.onDangerousProperty === null && (t.onDangerousProperty = Me), t.processEntities = Fe(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
|
+
}, Le = typeof Symbol == "function" ? Symbol("XML Node Metadata") : "@@xmlMetadata", D = class {
|
|
694
1717
|
constructor(e) {
|
|
695
1718
|
this.tagname = e, this.child = [], this[":@"] = Object.create(null);
|
|
696
1719
|
}
|
|
@@ -701,12 +1724,12 @@ var Te = function(e) {
|
|
|
701
1724
|
e.tagname === "__proto__" && (e.tagname = "#__proto__"), e[":@"] && Object.keys(e[":@"]).length > 0 ? this.child.push({
|
|
702
1725
|
[e.tagname]: e.child,
|
|
703
1726
|
":@": e[":@"]
|
|
704
|
-
}) : this.child.push({ [e.tagname]: e.child }), t !== void 0 && (this.child[this.child.length - 1][
|
|
1727
|
+
}) : this.child.push({ [e.tagname]: e.child }), t !== void 0 && (this.child[this.child.length - 1][Le] = { startIndex: t });
|
|
705
1728
|
}
|
|
706
1729
|
static getMetaDataSymbol() {
|
|
707
|
-
return
|
|
1730
|
+
return Le;
|
|
708
1731
|
}
|
|
709
|
-
},
|
|
1732
|
+
}, Re = ":A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈--⁰-Ⰰ-、-豈-﷏ﷰ-�", ze = ":A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈--⁰-Ⰰ-、-豈-﷏ﷰ-�\\-\\.\\d·̀-ͯ‿-⁀", Be = ":A-Za-z_À-˿Ͱ-ͽͿ-҆҈--⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-", Ve = ":A-Za-z_À-˿Ͱ-ͽͿ-҆҈--⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-\\-\\.\\d·̀-ͯ҇‿-⁀", O = (e, t, n = "") => {
|
|
710
1733
|
let r = `[${e.replace(":", "")}][${t.replace(":", "")}]*`;
|
|
711
1734
|
return {
|
|
712
1735
|
name: RegExp(`^[${e}][${t}]*$`, n),
|
|
@@ -715,15 +1738,15 @@ var Te = function(e) {
|
|
|
715
1738
|
nmToken: RegExp(`^[${t}]+$`, n),
|
|
716
1739
|
nmTokens: RegExp(`^[${t}]+(?:\\s+[${t}]+)*$`, n)
|
|
717
1740
|
};
|
|
718
|
-
},
|
|
1741
|
+
}, He = O(Re, ze), Ue = O(Be, Ve, "u"), We = O(":A-Za-z_", ":A-Za-z_\\-\\.\\d"), Ge = (e = "1.0", t = !1) => t ? We : e === "1.1" ? Ue : He, Ke = (e, { xmlVersion: t = "1.0", asciiOnly: n = !1 } = {}) => Ge(t, n).qName.test(e), qe = [
|
|
719
1742
|
"name",
|
|
720
1743
|
"ncName",
|
|
721
1744
|
"qName",
|
|
722
1745
|
"nmToken",
|
|
723
1746
|
"nmTokens"
|
|
724
|
-
],
|
|
725
|
-
if (!
|
|
726
|
-
let i =
|
|
1747
|
+
], Je = (e, { xmlVersion: t = "1.0", asciiOnly: n = !1, maxCacheSize: r = 2048 } = {}) => {
|
|
1748
|
+
if (!qe.includes(e)) throw TypeError(`Unknown production "${e}". Must be one of: ${qe.join(", ")}`);
|
|
1749
|
+
let i = Ge(t, n)[e], a = /* @__PURE__ */ new Map(), o = (e) => {
|
|
727
1750
|
let t = a.get(e);
|
|
728
1751
|
if (t !== void 0) return t;
|
|
729
1752
|
let n = i.test(e);
|
|
@@ -732,7 +1755,7 @@ var Te = function(e) {
|
|
|
732
1755
|
return o.reset = () => {
|
|
733
1756
|
a = /* @__PURE__ */ new Map();
|
|
734
1757
|
}, o;
|
|
735
|
-
},
|
|
1758
|
+
}, Ye = class {
|
|
736
1759
|
constructor(e, t) {
|
|
737
1760
|
this.suppressValidationErr = !e, this.options = e, this.xmlVersion = t || 1;
|
|
738
1761
|
}
|
|
@@ -745,23 +1768,23 @@ var Te = function(e) {
|
|
|
745
1768
|
t += 9;
|
|
746
1769
|
let i = 1, a = !1, o = !1, s = "";
|
|
747
1770
|
for (; t < e.length; t++) if (e[t] === "<" && !o) {
|
|
748
|
-
if (a &&
|
|
1771
|
+
if (a && A(e, "!ENTITY", t)) {
|
|
749
1772
|
t += 7;
|
|
750
1773
|
let i, a;
|
|
751
1774
|
if ([i, a, t] = this.readEntityExp(e, t + 1, this.suppressValidationErr), a.indexOf("&") === -1) {
|
|
752
1775
|
if (this.options.enabled !== !1 && this.options.maxEntityCount != null && r >= this.options.maxEntityCount) throw Error(`Entity count (${r + 1}) exceeds maximum allowed (${this.options.maxEntityCount})`);
|
|
753
1776
|
n[i] = a, r++;
|
|
754
1777
|
}
|
|
755
|
-
} else if (a &&
|
|
1778
|
+
} else if (a && A(e, "!ELEMENT", t)) {
|
|
756
1779
|
t += 8;
|
|
757
1780
|
let { index: n } = this.readElementExp(e, t + 1);
|
|
758
1781
|
t = n;
|
|
759
|
-
} else if (a &&
|
|
760
|
-
else if (a &&
|
|
1782
|
+
} else if (a && A(e, "!ATTLIST", t)) t += 8;
|
|
1783
|
+
else if (a && A(e, "!NOTATION", t)) {
|
|
761
1784
|
t += 9;
|
|
762
1785
|
let { index: n } = this.readNotationExp(e, t + 1, this.suppressValidationErr);
|
|
763
1786
|
t = n;
|
|
764
|
-
} else if (
|
|
1787
|
+
} else if (A(e, "!--", t)) o = !0;
|
|
765
1788
|
else throw Error("Invalid DOCTYPE");
|
|
766
1789
|
i++, s = "";
|
|
767
1790
|
} else if (e[t] === ">") {
|
|
@@ -775,11 +1798,11 @@ var Te = function(e) {
|
|
|
775
1798
|
};
|
|
776
1799
|
}
|
|
777
1800
|
readEntityExp(e, t) {
|
|
778
|
-
t =
|
|
1801
|
+
t = k(e, t);
|
|
779
1802
|
let n = t;
|
|
780
1803
|
for (; t < e.length && !/\s/.test(e[t]) && e[t] !== "\"" && e[t] !== "'";) t++;
|
|
781
1804
|
let r = e.substring(n, t);
|
|
782
|
-
if (
|
|
1805
|
+
if (j(r, { xmlVersion: this.xmlVersion }), t = k(e, t), !this.suppressValidationErr) {
|
|
783
1806
|
if (e.substring(t, t + 6).toUpperCase() === "SYSTEM") throw Error("External entities are not supported");
|
|
784
1807
|
if (e[t] === "%") throw Error("Parameter entities are not supported");
|
|
785
1808
|
}
|
|
@@ -792,16 +1815,16 @@ var Te = function(e) {
|
|
|
792
1815
|
];
|
|
793
1816
|
}
|
|
794
1817
|
readNotationExp(e, t) {
|
|
795
|
-
t =
|
|
1818
|
+
t = k(e, t);
|
|
796
1819
|
let n = t;
|
|
797
1820
|
for (; t < e.length && !/\s/.test(e[t]);) t++;
|
|
798
1821
|
let r = e.substring(n, t);
|
|
799
|
-
!this.suppressValidationErr &&
|
|
1822
|
+
!this.suppressValidationErr && j(r, { xmlVersion: this.xmlVersion }), t = k(e, t);
|
|
800
1823
|
let i = e.substring(t, t + 6).toUpperCase();
|
|
801
1824
|
if (!this.suppressValidationErr && i !== "SYSTEM" && i !== "PUBLIC") throw Error(`Expected SYSTEM or PUBLIC, found "${i}"`);
|
|
802
|
-
t += i.length, t =
|
|
1825
|
+
t += i.length, t = k(e, t);
|
|
803
1826
|
let a = null, o = null;
|
|
804
|
-
if (i === "PUBLIC") [t, a] = this.readIdentifierVal(e, t, "publicIdentifier"), t =
|
|
1827
|
+
if (i === "PUBLIC") [t, a] = this.readIdentifierVal(e, t, "publicIdentifier"), t = k(e, t), (e[t] === "\"" || e[t] === "'") && ([t, o] = this.readIdentifierVal(e, t, "systemIdentifier"));
|
|
805
1828
|
else if (i === "SYSTEM" && ([t, o] = this.readIdentifierVal(e, t, "systemIdentifier"), !this.suppressValidationErr && !o)) throw Error("Missing mandatory system identifier for SYSTEM notation");
|
|
806
1829
|
return {
|
|
807
1830
|
notationName: r,
|
|
@@ -820,15 +1843,15 @@ var Te = function(e) {
|
|
|
820
1843
|
return t++, [t, r];
|
|
821
1844
|
}
|
|
822
1845
|
readElementExp(e, t) {
|
|
823
|
-
t =
|
|
1846
|
+
t = k(e, t);
|
|
824
1847
|
let n = t;
|
|
825
1848
|
for (; t < e.length && !/\s/.test(e[t]);) t++;
|
|
826
1849
|
let r = e.substring(n, t);
|
|
827
|
-
if (!this.suppressValidationErr && !
|
|
828
|
-
t =
|
|
1850
|
+
if (!this.suppressValidationErr && !Ke(r, { xmlVersion: this.xmlVersion })) throw Error(`Invalid element name: "${r}"`);
|
|
1851
|
+
t = k(e, t);
|
|
829
1852
|
let i = "";
|
|
830
|
-
if (e[t] === "E" &&
|
|
831
|
-
else if (e[t] === "A" &&
|
|
1853
|
+
if (e[t] === "E" && A(e, "MPTY", t)) t += 4;
|
|
1854
|
+
else if (e[t] === "A" && A(e, "NY", t)) t += 2;
|
|
832
1855
|
else if (e[t] === "(") {
|
|
833
1856
|
t++;
|
|
834
1857
|
let n = t;
|
|
@@ -842,25 +1865,25 @@ var Te = function(e) {
|
|
|
842
1865
|
};
|
|
843
1866
|
}
|
|
844
1867
|
readAttlistExp(e, t) {
|
|
845
|
-
t =
|
|
1868
|
+
t = k(e, t);
|
|
846
1869
|
let n = t;
|
|
847
1870
|
for (; t < e.length && !/\s/.test(e[t]);) t++;
|
|
848
1871
|
let r = e.substring(n, t);
|
|
849
|
-
for (
|
|
1872
|
+
for (j(r, { xmlVersion: this.xmlVersion }), t = k(e, t), n = t; t < e.length && !/\s/.test(e[t]);) t++;
|
|
850
1873
|
let i = e.substring(n, t);
|
|
851
|
-
if (!
|
|
852
|
-
t =
|
|
1874
|
+
if (!j(i, { xmlVersion: this.xmlVersion })) throw Error(`Invalid attribute name: "${i}"`);
|
|
1875
|
+
t = k(e, t);
|
|
853
1876
|
let a = "";
|
|
854
1877
|
if (e.substring(t, t + 8).toUpperCase() === "NOTATION") {
|
|
855
|
-
if (a = "NOTATION", t += 8, t =
|
|
1878
|
+
if (a = "NOTATION", t += 8, t = k(e, t), e[t] !== "(") throw Error(`Expected '(', found "${e[t]}"`);
|
|
856
1879
|
t++;
|
|
857
1880
|
let n = [];
|
|
858
1881
|
for (; t < e.length && e[t] !== ")";) {
|
|
859
1882
|
let r = t;
|
|
860
1883
|
for (; t < e.length && e[t] !== "|" && e[t] !== ")";) t++;
|
|
861
1884
|
let i = e.substring(r, t);
|
|
862
|
-
if (i = i.trim(), !
|
|
863
|
-
n.push(i), e[t] === "|" && (t++, t =
|
|
1885
|
+
if (i = i.trim(), !j(i, { xmlVersion: this.xmlVersion })) throw Error(`Invalid notation name: "${i}"`);
|
|
1886
|
+
n.push(i), e[t] === "|" && (t++, t = k(e, t));
|
|
864
1887
|
}
|
|
865
1888
|
if (e[t] !== ")") throw Error("Unterminated list of notations");
|
|
866
1889
|
t++, a += " (" + n.join("|") + ")";
|
|
@@ -878,7 +1901,7 @@ var Te = function(e) {
|
|
|
878
1901
|
"NMTOKENS"
|
|
879
1902
|
].includes(a.toUpperCase())) throw Error(`Invalid attribute type: "${a}"`);
|
|
880
1903
|
}
|
|
881
|
-
t =
|
|
1904
|
+
t = k(e, t);
|
|
882
1905
|
let o = "";
|
|
883
1906
|
return e.substring(t, t + 8).toUpperCase() === "#REQUIRED" ? (o = "#REQUIRED", t += 8) : e.substring(t, t + 7).toUpperCase() === "#IMPLIED" ? (o = "#IMPLIED", t += 7) : [t, o] = this.readIdentifierVal(e, t, "ATTLIST"), {
|
|
884
1907
|
elementName: r,
|
|
@@ -888,21 +1911,21 @@ var Te = function(e) {
|
|
|
888
1911
|
index: t
|
|
889
1912
|
};
|
|
890
1913
|
}
|
|
891
|
-
},
|
|
1914
|
+
}, k = (e, t) => {
|
|
892
1915
|
for (; t < e.length && /\s/.test(e[t]);) t++;
|
|
893
1916
|
return t;
|
|
894
1917
|
};
|
|
895
|
-
function
|
|
1918
|
+
function A(e, t, n) {
|
|
896
1919
|
for (let r = 0; r < t.length; r++) if (t[r] !== e[n + r + 1]) return !1;
|
|
897
1920
|
return !0;
|
|
898
1921
|
}
|
|
899
|
-
function
|
|
900
|
-
if (
|
|
1922
|
+
function j(e, t) {
|
|
1923
|
+
if (Ke(e, { xmlVersion: t })) return e;
|
|
901
1924
|
throw Error(`Invalid entity name ${e}`);
|
|
902
1925
|
}
|
|
903
1926
|
//#endregion
|
|
904
1927
|
//#region ../../node_modules/.pnpm/anynum@1.0.1/node_modules/anynum/digitTable.js
|
|
905
|
-
var
|
|
1928
|
+
var Xe = [
|
|
906
1929
|
48,
|
|
907
1930
|
1632,
|
|
908
1931
|
1776,
|
|
@@ -964,28 +1987,28 @@ var ze = [
|
|
|
964
1987
|
124144,
|
|
965
1988
|
125264,
|
|
966
1989
|
130032
|
|
967
|
-
],
|
|
968
|
-
for (let e of
|
|
1990
|
+
], M = /* @__PURE__ */ new Map(), Ze = 65535, Qe = 1632, N = new Uint8Array(63904).fill(255);
|
|
1991
|
+
for (let e of Xe) for (let t = 0; t < 10; t++) {
|
|
969
1992
|
let n = e + t;
|
|
970
|
-
n <=
|
|
1993
|
+
n <= Ze ? N[n - Qe] = t : M.set(n, t);
|
|
971
1994
|
}
|
|
972
1995
|
//#endregion
|
|
973
1996
|
//#region ../../node_modules/.pnpm/anynum@1.0.1/node_modules/anynum/anynum.js
|
|
974
|
-
var
|
|
1997
|
+
var $e = 48, et = 57, tt = 45, P = new Set([
|
|
975
1998
|
8722,
|
|
976
1999
|
65293,
|
|
977
2000
|
65123
|
|
978
2001
|
]);
|
|
979
|
-
function
|
|
2002
|
+
function nt(e) {
|
|
980
2003
|
if (typeof e != "string") return e;
|
|
981
2004
|
let t = e.length;
|
|
982
2005
|
if (t === 0) return e;
|
|
983
2006
|
let n = -1;
|
|
984
2007
|
for (let r = 0; r < t; r++) {
|
|
985
2008
|
let i = e.charCodeAt(r);
|
|
986
|
-
if (!(i >=
|
|
2009
|
+
if (!(i >= $e && i <= et || i === tt)) {
|
|
987
2010
|
if (i < 1632) {
|
|
988
|
-
if (
|
|
2011
|
+
if (P.has(i)) {
|
|
989
2012
|
n = r;
|
|
990
2013
|
break;
|
|
991
2014
|
}
|
|
@@ -996,7 +2019,7 @@ function Ge(e) {
|
|
|
996
2019
|
let t = e.charCodeAt(r + 1);
|
|
997
2020
|
if (t >= 56320 && t <= 57343) {
|
|
998
2021
|
let e = 65536 + (i - 55296 << 10) + (t - 56320);
|
|
999
|
-
if (
|
|
2022
|
+
if (M.has(e)) {
|
|
1000
2023
|
n = r;
|
|
1001
2024
|
break;
|
|
1002
2025
|
}
|
|
@@ -1004,7 +2027,7 @@ function Ge(e) {
|
|
|
1004
2027
|
}
|
|
1005
2028
|
continue;
|
|
1006
2029
|
}
|
|
1007
|
-
if (
|
|
2030
|
+
if (N[i - 1632] !== 255 || P.has(i)) {
|
|
1008
2031
|
n = r;
|
|
1009
2032
|
break;
|
|
1010
2033
|
}
|
|
@@ -1015,19 +2038,19 @@ function Ge(e) {
|
|
|
1015
2038
|
n > 0 && r.push(e.slice(0, n));
|
|
1016
2039
|
for (let i = n; i < t; i++) {
|
|
1017
2040
|
let n = e.charCodeAt(i);
|
|
1018
|
-
if (n >=
|
|
2041
|
+
if (n >= $e && n <= et || n === tt) {
|
|
1019
2042
|
r.push(e[i]);
|
|
1020
2043
|
continue;
|
|
1021
2044
|
}
|
|
1022
2045
|
if (n < 1632) {
|
|
1023
|
-
r.push(
|
|
2046
|
+
r.push(P.has(n) ? "-" : e[i]);
|
|
1024
2047
|
continue;
|
|
1025
2048
|
}
|
|
1026
2049
|
if (n >= 55296 && n <= 56319) {
|
|
1027
2050
|
if (i + 1 < t) {
|
|
1028
2051
|
let t = e.charCodeAt(i + 1);
|
|
1029
2052
|
if (t >= 56320 && t <= 57343) {
|
|
1030
|
-
let e = 65536 + (n - 55296 << 10) + (t - 56320), a =
|
|
2053
|
+
let e = 65536 + (n - 55296 << 10) + (t - 56320), a = M.get(e);
|
|
1031
2054
|
if (a !== void 0) {
|
|
1032
2055
|
r.push(String.fromCharCode(a + 48)), i++;
|
|
1033
2056
|
continue;
|
|
@@ -1037,18 +2060,18 @@ function Ge(e) {
|
|
|
1037
2060
|
r.push(e[i]);
|
|
1038
2061
|
continue;
|
|
1039
2062
|
}
|
|
1040
|
-
if (
|
|
2063
|
+
if (P.has(n)) {
|
|
1041
2064
|
r.push("-");
|
|
1042
2065
|
continue;
|
|
1043
2066
|
}
|
|
1044
|
-
let a =
|
|
2067
|
+
let a = N[n - Qe];
|
|
1045
2068
|
r.push(a === 255 ? e[i] : String.fromCharCode(a + 48));
|
|
1046
2069
|
}
|
|
1047
2070
|
return r.join("");
|
|
1048
2071
|
}
|
|
1049
2072
|
//#endregion
|
|
1050
2073
|
//#region ../../node_modules/.pnpm/strnum@2.4.1/node_modules/strnum/strnum.js
|
|
1051
|
-
var
|
|
2074
|
+
var rt = /^[-+]?0x[a-fA-F0-9]+$/, it = /^0b[01]+$/, at = /^0o[0-7]+$/, ot = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/, st = {
|
|
1052
2075
|
hex: !0,
|
|
1053
2076
|
binary: !1,
|
|
1054
2077
|
octal: !1,
|
|
@@ -1058,20 +2081,20 @@ var Ke = /^[-+]?0x[a-fA-F0-9]+$/, qe = /^0b[01]+$/, Je = /^0o[0-7]+$/, Ye = /^([
|
|
|
1058
2081
|
infinity: "original",
|
|
1059
2082
|
unicode: !1
|
|
1060
2083
|
};
|
|
1061
|
-
function
|
|
1062
|
-
if (t = Object.assign({},
|
|
2084
|
+
function ct(e, t = {}) {
|
|
2085
|
+
if (t = Object.assign({}, st, t), !e || typeof e != "string") return e;
|
|
1063
2086
|
let n = e.trim();
|
|
1064
2087
|
if (n.length === 0 || t.skipLike !== void 0 && t.skipLike.test(n)) return e;
|
|
1065
|
-
if (n === "0" || t.unicode && (n =
|
|
1066
|
-
if (t.hex &&
|
|
1067
|
-
if (t.binary &&
|
|
1068
|
-
if (t.octal &&
|
|
1069
|
-
if (!isFinite(n)) return
|
|
1070
|
-
if (n.includes("e") || n.includes("E")) return
|
|
2088
|
+
if (n === "0" || t.unicode && (n = nt(n), n === "0")) return 0;
|
|
2089
|
+
if (t.hex && rt.test(n)) return F(n, 16);
|
|
2090
|
+
if (t.binary && it.test(n)) return F(n, 2);
|
|
2091
|
+
if (t.octal && at.test(n)) return F(n, 8);
|
|
2092
|
+
if (!isFinite(n)) return ft(e, Number(n), t);
|
|
2093
|
+
if (n.includes("e") || n.includes("E")) return ut(e, n, t);
|
|
1071
2094
|
{
|
|
1072
|
-
let r =
|
|
2095
|
+
let r = ot.exec(n);
|
|
1073
2096
|
if (r) {
|
|
1074
|
-
let i = r[1] || "", a = r[2], o =
|
|
2097
|
+
let i = r[1] || "", a = r[2], o = dt(r[3]), s = i ? e[a.length + 1] === "." : e[a.length] === ".";
|
|
1075
2098
|
if (!t.leadingZeros && (a.length > 1 || a.length === 1 && !s)) return e;
|
|
1076
2099
|
{
|
|
1077
2100
|
let r = Number(n), s = String(r);
|
|
@@ -1084,26 +2107,26 @@ function Ze(e, t = {}) {
|
|
|
1084
2107
|
} else return e;
|
|
1085
2108
|
}
|
|
1086
2109
|
}
|
|
1087
|
-
var
|
|
1088
|
-
function
|
|
2110
|
+
var lt = /^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;
|
|
2111
|
+
function ut(e, t, n) {
|
|
1089
2112
|
if (!n.eNotation) return e;
|
|
1090
|
-
let r = t.match(
|
|
2113
|
+
let r = t.match(lt);
|
|
1091
2114
|
if (r) {
|
|
1092
2115
|
let i = r[1] || "", a = r[3].indexOf("e") === -1 ? "E" : "e", o = r[2], s = i ? e[o.length + 1] === a : e[o.length] === a;
|
|
1093
2116
|
return o.length > 1 && s ? e : o.length === 1 && (r[3].startsWith(`.${a}`) || r[3][0] === a) ? Number(t) : o.length > 0 ? n.leadingZeros && !s ? (t = (r[1] || "") + r[3], Number(t)) : e : Number(t);
|
|
1094
2117
|
} else return e;
|
|
1095
2118
|
}
|
|
1096
|
-
function
|
|
2119
|
+
function dt(e) {
|
|
1097
2120
|
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;
|
|
1098
2121
|
}
|
|
1099
|
-
function
|
|
2122
|
+
function F(e, t) {
|
|
1100
2123
|
let n = e.trim();
|
|
1101
2124
|
if ((t === 2 || t === 8) && (e = n.substring(2)), parseInt) return parseInt(e, t);
|
|
1102
2125
|
if (Number.parseInt) return Number.parseInt(e, t);
|
|
1103
2126
|
if (window && window.parseInt) return window.parseInt(e, t);
|
|
1104
2127
|
throw Error("parseInt, Number.parseInt, window.parseInt are not supported");
|
|
1105
2128
|
}
|
|
1106
|
-
function
|
|
2129
|
+
function ft(e, t, n) {
|
|
1107
2130
|
let r = t === Infinity;
|
|
1108
2131
|
switch (n.infinity.toLowerCase()) {
|
|
1109
2132
|
case "null": return null;
|
|
@@ -1113,15 +2136,15 @@ function tt(e, t, n) {
|
|
|
1113
2136
|
}
|
|
1114
2137
|
}
|
|
1115
2138
|
//#endregion
|
|
1116
|
-
//#region ../../node_modules/.pnpm/fast-xml-parser@5.10.
|
|
1117
|
-
function
|
|
2139
|
+
//#region ../../node_modules/.pnpm/fast-xml-parser@5.10.0/node_modules/fast-xml-parser/src/ignoreAttributes.js
|
|
2140
|
+
function pt(e) {
|
|
1118
2141
|
return typeof e == "function" ? e : Array.isArray(e) ? (t) => {
|
|
1119
2142
|
for (let n of e) if (typeof n == "string" && t === n || n instanceof RegExp && n.test(t)) return !0;
|
|
1120
2143
|
} : () => !1;
|
|
1121
2144
|
}
|
|
1122
2145
|
//#endregion
|
|
1123
2146
|
//#region ../../node_modules/.pnpm/path-expression-matcher@1.6.2/node_modules/path-expression-matcher/src/Expression.js
|
|
1124
|
-
var
|
|
2147
|
+
var I = class {
|
|
1125
2148
|
constructor(e, t = {}, n) {
|
|
1126
2149
|
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);
|
|
1127
2150
|
}
|
|
@@ -1177,7 +2200,7 @@ var F = class {
|
|
|
1177
2200
|
toString() {
|
|
1178
2201
|
return this.pattern;
|
|
1179
2202
|
}
|
|
1180
|
-
},
|
|
2203
|
+
}, mt = class {
|
|
1181
2204
|
constructor() {
|
|
1182
2205
|
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;
|
|
1183
2206
|
}
|
|
@@ -1235,7 +2258,7 @@ var F = class {
|
|
|
1235
2258
|
for (let t = 0; t < this._deepWildcards.length; t++) if (e.matches(this._deepWildcards[t])) return this._deepWildcards[t];
|
|
1236
2259
|
return null;
|
|
1237
2260
|
}
|
|
1238
|
-
},
|
|
2261
|
+
}, ht = class {
|
|
1239
2262
|
constructor(e) {
|
|
1240
2263
|
this._matcher = e;
|
|
1241
2264
|
}
|
|
@@ -1292,9 +2315,9 @@ var F = class {
|
|
|
1292
2315
|
matchesAny(e) {
|
|
1293
2316
|
return e.matchesAny(this._matcher);
|
|
1294
2317
|
}
|
|
1295
|
-
},
|
|
2318
|
+
}, L = class {
|
|
1296
2319
|
constructor(e = {}) {
|
|
1297
|
-
this.separator = e.separator || ".", this.path = [], this.siblingStacks = [], this._pathStringCache = null, this._view = new
|
|
2320
|
+
this.separator = e.separator || ".", this.path = [], this.siblingStacks = [], this._pathStringCache = null, this._view = new ht(this), this._keptAttrs = [];
|
|
1298
2321
|
}
|
|
1299
2322
|
push(e, t = null, n = null, r = null) {
|
|
1300
2323
|
this._pathStringCache = null, this.path.length > 0 && (this.path[this.path.length - 1].values = void 0);
|
|
@@ -1445,7 +2468,7 @@ var F = class {
|
|
|
1445
2468
|
readOnly() {
|
|
1446
2469
|
return this._view;
|
|
1447
2470
|
}
|
|
1448
|
-
},
|
|
2471
|
+
}, R = [
|
|
1449
2472
|
{
|
|
1450
2473
|
id: "html-script-open",
|
|
1451
2474
|
description: "<script opening tag",
|
|
@@ -1531,7 +2554,7 @@ var F = class {
|
|
|
1531
2554
|
description: "<form tag — can be used for phishing / credential harvesting injection",
|
|
1532
2555
|
pattern: /<form[\s>/]/i
|
|
1533
2556
|
}
|
|
1534
|
-
],
|
|
2557
|
+
], z = [
|
|
1535
2558
|
{
|
|
1536
2559
|
id: "xml-cdata-injection",
|
|
1537
2560
|
description: "CDATA section injection: <![CDATA[ breaks out of text node context",
|
|
@@ -1592,7 +2615,7 @@ var F = class {
|
|
|
1592
2615
|
description: "?> closes an enclosing processing instruction",
|
|
1593
2616
|
pattern: /\?>/
|
|
1594
2617
|
}
|
|
1595
|
-
],
|
|
2618
|
+
], gt = [
|
|
1596
2619
|
{
|
|
1597
2620
|
id: "svg-script-element",
|
|
1598
2621
|
description: "<script element inside SVG executes JavaScript",
|
|
@@ -1658,7 +2681,7 @@ var F = class {
|
|
|
1658
2681
|
description: "style= attribute containing javascript: (e.g. background:url(javascript:...))",
|
|
1659
2682
|
pattern: /style\s*=[\s\S]{0,60}javascript\s*:/i
|
|
1660
2683
|
}
|
|
1661
|
-
],
|
|
2684
|
+
], B = [
|
|
1662
2685
|
{
|
|
1663
2686
|
id: "sql-block-comment-open",
|
|
1664
2687
|
description: "SQL block comment open: /* ... */ — unusual in legitimate user text",
|
|
@@ -1734,7 +2757,7 @@ var F = class {
|
|
|
1734
2757
|
description: "INFORMATION_SCHEMA — reconnaissance query for table/column enumeration",
|
|
1735
2758
|
pattern: /\bINFORMATION_SCHEMA\b/i
|
|
1736
2759
|
}
|
|
1737
|
-
],
|
|
2760
|
+
], _t = [
|
|
1738
2761
|
{
|
|
1739
2762
|
id: "shell-path-traversal-unix",
|
|
1740
2763
|
description: "Unix path traversal: ../ — climbing the directory tree",
|
|
@@ -1825,7 +2848,7 @@ var F = class {
|
|
|
1825
2848
|
description: "curl/wget with URL or flags — can exfiltrate data or download payloads",
|
|
1826
2849
|
pattern: /\b(?:curl|wget)\s+(?:https?:\/\/|ftp:\/\/|-)/i
|
|
1827
2850
|
}
|
|
1828
|
-
],
|
|
2851
|
+
], vt = [
|
|
1829
2852
|
{
|
|
1830
2853
|
id: "redos-nested-quantifier-plus",
|
|
1831
2854
|
description: "Nested + quantifier inside a group with outer quantifier: (a+)+, (.+b)*, etc.",
|
|
@@ -1866,71 +2889,71 @@ var F = class {
|
|
|
1866
2889
|
description: "Long alternation with many similar branches — polynomial backtracking risk",
|
|
1867
2890
|
pattern: /\([^)]{0,200}(?:\|[^|)]{0,50}){9,}\)/
|
|
1868
2891
|
}
|
|
1869
|
-
],
|
|
2892
|
+
], V = "[\"'\\s]*:", yt = [
|
|
1870
2893
|
{
|
|
1871
2894
|
id: "nosql-where-operator",
|
|
1872
2895
|
description: "$where — executes arbitrary JavaScript server-side in MongoDB",
|
|
1873
|
-
pattern: RegExp(`\\$where${
|
|
2896
|
+
pattern: RegExp(`\\$where${V}`, "i")
|
|
1874
2897
|
},
|
|
1875
2898
|
{
|
|
1876
2899
|
id: "nosql-ne-operator",
|
|
1877
2900
|
description: "$ne — \"not equal\" operator used to bypass equality checks",
|
|
1878
|
-
pattern: RegExp(`\\$ne${
|
|
2901
|
+
pattern: RegExp(`\\$ne${V}`, "i")
|
|
1879
2902
|
},
|
|
1880
2903
|
{
|
|
1881
2904
|
id: "nosql-gt-operator",
|
|
1882
2905
|
description: "$gt — \"greater than\" used to bypass password/value checks",
|
|
1883
|
-
pattern: RegExp(`\\$gte?${
|
|
2906
|
+
pattern: RegExp(`\\$gte?${V}`, "i")
|
|
1884
2907
|
},
|
|
1885
2908
|
{
|
|
1886
2909
|
id: "nosql-lt-operator",
|
|
1887
2910
|
description: "$lt / $lte — \"less than\" bypass variants",
|
|
1888
|
-
pattern: RegExp(`\\$lte?${
|
|
2911
|
+
pattern: RegExp(`\\$lte?${V}`, "i")
|
|
1889
2912
|
},
|
|
1890
2913
|
{
|
|
1891
2914
|
id: "nosql-regex-operator",
|
|
1892
2915
|
description: "$regex — can be used to extract data character by character (blind injection)",
|
|
1893
|
-
pattern: RegExp(`\\$regex${
|
|
2916
|
+
pattern: RegExp(`\\$regex${V}`, "i")
|
|
1894
2917
|
},
|
|
1895
2918
|
{
|
|
1896
2919
|
id: "nosql-or-operator",
|
|
1897
2920
|
description: "$or — logical OR; used to create always-true conditions",
|
|
1898
|
-
pattern: RegExp(`\\$or${
|
|
2921
|
+
pattern: RegExp(`\\$or${V}\\s*\\[`, "i")
|
|
1899
2922
|
},
|
|
1900
2923
|
{
|
|
1901
2924
|
id: "nosql-and-operator",
|
|
1902
2925
|
description: "$and — logical AND operator injection",
|
|
1903
|
-
pattern: RegExp(`\\$and${
|
|
2926
|
+
pattern: RegExp(`\\$and${V}\\s*\\[`, "i")
|
|
1904
2927
|
},
|
|
1905
2928
|
{
|
|
1906
2929
|
id: "nosql-nor-operator",
|
|
1907
2930
|
description: "$nor — logical NOR operator injection",
|
|
1908
|
-
pattern: RegExp(`\\$nor${
|
|
2931
|
+
pattern: RegExp(`\\$nor${V}\\s*\\[`, "i")
|
|
1909
2932
|
},
|
|
1910
2933
|
{
|
|
1911
2934
|
id: "nosql-exists-operator",
|
|
1912
2935
|
description: "$exists — can enumerate fields to determine schema",
|
|
1913
|
-
pattern: RegExp(`\\$exists${
|
|
2936
|
+
pattern: RegExp(`\\$exists${V}`, "i")
|
|
1914
2937
|
},
|
|
1915
2938
|
{
|
|
1916
2939
|
id: "nosql-in-operator",
|
|
1917
2940
|
description: "$in — matches any value in a list; can enumerate values",
|
|
1918
|
-
pattern: RegExp(`\\$in${
|
|
2941
|
+
pattern: RegExp(`\\$in${V}\\s*\\[`, "i")
|
|
1919
2942
|
},
|
|
1920
2943
|
{
|
|
1921
2944
|
id: "nosql-expr-operator",
|
|
1922
2945
|
description: "$expr — allows aggregation expressions in queries (MongoDB 3.6+)",
|
|
1923
|
-
pattern: RegExp(`\\$expr${
|
|
2946
|
+
pattern: RegExp(`\\$expr${V}`, "i")
|
|
1924
2947
|
},
|
|
1925
2948
|
{
|
|
1926
2949
|
id: "nosql-function-operator",
|
|
1927
2950
|
description: "$function — executes arbitrary JavaScript in MongoDB 4.4+",
|
|
1928
|
-
pattern: RegExp(`\\$function${
|
|
2951
|
+
pattern: RegExp(`\\$function${V}`, "i")
|
|
1929
2952
|
},
|
|
1930
2953
|
{
|
|
1931
2954
|
id: "nosql-accumulator-operator",
|
|
1932
2955
|
description: "$accumulator — custom aggregation with arbitrary JS execution",
|
|
1933
|
-
pattern: RegExp(`\\$accumulator${
|
|
2956
|
+
pattern: RegExp(`\\$accumulator${V}`, "i")
|
|
1934
2957
|
},
|
|
1935
2958
|
{
|
|
1936
2959
|
id: "nosql-proto-pollution",
|
|
@@ -1947,7 +2970,7 @@ var F = class {
|
|
|
1947
2970
|
description: "[\"__proto__\"] — bracket-notation prototype pollution",
|
|
1948
2971
|
pattern: /\[["']__proto__["']\]/
|
|
1949
2972
|
}
|
|
1950
|
-
],
|
|
2973
|
+
], bt = [
|
|
1951
2974
|
{
|
|
1952
2975
|
id: "log-crlf-injection",
|
|
1953
2976
|
description: "CRLF injection: literal \\r or \\n embeds fake log lines",
|
|
@@ -2008,7 +3031,7 @@ var F = class {
|
|
|
2008
3031
|
description: "ANSI escape sequence: ESC[ — can manipulate terminal output when logs are tailed",
|
|
2009
3032
|
pattern: /\x1b\[/
|
|
2010
3033
|
}
|
|
2011
|
-
],
|
|
3034
|
+
], xt = [
|
|
2012
3035
|
{
|
|
2013
3036
|
id: "sql-line-comment",
|
|
2014
3037
|
description: "SQL line comment: -- followed by whitespace or end of string",
|
|
@@ -2024,22 +3047,22 @@ var F = class {
|
|
|
2024
3047
|
description: "Hex-encoded string injection: 0x41414141 style (MySQL)",
|
|
2025
3048
|
pattern: /\b0x[0-9a-f]{4,}/i
|
|
2026
3049
|
}
|
|
2027
|
-
],
|
|
2028
|
-
|
|
2029
|
-
HTML:
|
|
2030
|
-
XML:
|
|
2031
|
-
SVG:
|
|
2032
|
-
SQL:
|
|
2033
|
-
"SQL-STRICT":
|
|
2034
|
-
SHELL:
|
|
2035
|
-
REDOS:
|
|
2036
|
-
NOSQL:
|
|
2037
|
-
LOG:
|
|
3050
|
+
], St = [...B, ...xt];
|
|
3051
|
+
R.label = "HTML", z.label = "XML", gt.label = "SVG", B.label = "SQL", St.label = "SQL-STRICT", _t.label = "SHELL", vt.label = "REDOS", yt.label = "NOSQL", bt.label = "LOG", Object.freeze({
|
|
3052
|
+
HTML: R,
|
|
3053
|
+
XML: z,
|
|
3054
|
+
SVG: gt,
|
|
3055
|
+
SQL: B,
|
|
3056
|
+
"SQL-STRICT": St,
|
|
3057
|
+
SHELL: _t,
|
|
3058
|
+
REDOS: vt,
|
|
3059
|
+
NOSQL: yt,
|
|
3060
|
+
LOG: bt
|
|
2038
3061
|
});
|
|
2039
|
-
function
|
|
3062
|
+
function Ct(e) {
|
|
2040
3063
|
if (typeof e != "string") throw TypeError(`is-unsafe: first argument must be a string, got ${typeof e}`);
|
|
2041
3064
|
}
|
|
2042
|
-
function
|
|
3065
|
+
function wt(e) {
|
|
2043
3066
|
if (!(e instanceof RegExp)) {
|
|
2044
3067
|
if (Array.isArray(e)) {
|
|
2045
3068
|
if (e.length === 0) throw TypeError("is-unsafe: context must not be an empty array");
|
|
@@ -2051,7 +3074,7 @@ function pt(e) {
|
|
|
2051
3074
|
throw TypeError(`is-unsafe: second argument must be a PatternList (e.g. HTML), an array of PatternLists (e.g. [HTML, XML]), or a RegExp. Got: ${typeof e}`);
|
|
2052
3075
|
}
|
|
2053
3076
|
}
|
|
2054
|
-
function
|
|
3077
|
+
function Tt(e) {
|
|
2055
3078
|
return e instanceof RegExp ? {
|
|
2056
3079
|
lists: null,
|
|
2057
3080
|
regex: e
|
|
@@ -2063,7 +3086,7 @@ function mt(e) {
|
|
|
2063
3086
|
regex: null
|
|
2064
3087
|
};
|
|
2065
3088
|
}
|
|
2066
|
-
function
|
|
3089
|
+
function Et(e, t) {
|
|
2067
3090
|
let n = t.label ?? "CUSTOM";
|
|
2068
3091
|
for (let r of t) if (r.pattern.test(e)) return {
|
|
2069
3092
|
context: n,
|
|
@@ -2073,16 +3096,16 @@ function ht(e, t) {
|
|
|
2073
3096
|
};
|
|
2074
3097
|
return null;
|
|
2075
3098
|
}
|
|
2076
|
-
function
|
|
2077
|
-
|
|
2078
|
-
let { lists: n, regex: r } =
|
|
3099
|
+
function Dt(e, t) {
|
|
3100
|
+
Ct(e), wt(t);
|
|
3101
|
+
let { lists: n, regex: r } = Tt(t);
|
|
2079
3102
|
if (r) return r.test(e);
|
|
2080
|
-
for (let t of n) if (
|
|
3103
|
+
for (let t of n) if (Et(e, t) !== null) return !0;
|
|
2081
3104
|
return !1;
|
|
2082
3105
|
}
|
|
2083
3106
|
//#endregion
|
|
2084
|
-
//#region ../../node_modules/.pnpm/fast-xml-parser@5.10.
|
|
2085
|
-
function
|
|
3107
|
+
//#region ../../node_modules/.pnpm/fast-xml-parser@5.10.0/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js
|
|
3108
|
+
function Ot(e, t) {
|
|
2086
3109
|
if (!e) return {};
|
|
2087
3110
|
let n = t.attributesGroupName ? e[t.attributesGroupName] : e;
|
|
2088
3111
|
if (!n) return {};
|
|
@@ -2093,7 +3116,7 @@ function _t(e, t) {
|
|
|
2093
3116
|
} else r[e] = n[e];
|
|
2094
3117
|
return r;
|
|
2095
3118
|
}
|
|
2096
|
-
function
|
|
3119
|
+
function kt(e) {
|
|
2097
3120
|
if (!e || typeof e != "string") return;
|
|
2098
3121
|
let t = e.indexOf(":");
|
|
2099
3122
|
if (t !== -1 && t > 0) {
|
|
@@ -2101,14 +3124,14 @@ function vt(e) {
|
|
|
2101
3124
|
if (n !== "xmlns") return n;
|
|
2102
3125
|
}
|
|
2103
3126
|
}
|
|
2104
|
-
var
|
|
3127
|
+
var At = class {
|
|
2105
3128
|
constructor(e, t) {
|
|
2106
|
-
this.options = e, this.currentNode = null, this.tagsNodeStack = [], this.parseXml =
|
|
2107
|
-
let n = { ...
|
|
3129
|
+
this.options = e, this.currentNode = null, this.tagsNodeStack = [], this.parseXml = Ft, this.parseTextData = jt, this.resolveNameSpace = Mt, this.buildAttributesMap = Pt, this.isItStopNode = zt, this.replaceEntitiesValue = Lt, this.readStopNodeData = Ut, this.saveTextToParentTag = Rt, this.addChild = It, this.ignoreAttributesFn = pt(this.options.ignoreAttributes), this.entityExpansionCount = 0, this.currentExpandedLength = 0;
|
|
3130
|
+
let n = { ...we };
|
|
2108
3131
|
this.options.entityDecoder ? this.entityDecoder = this.options.entityDecoder : (typeof this.options.htmlEntities == "object" ? n = this.options.htmlEntities : this.options.htmlEntities === !0 && (n = {
|
|
2109
|
-
...
|
|
2110
|
-
...
|
|
2111
|
-
}), this.entityDecoder = new
|
|
3132
|
+
...Te,
|
|
3133
|
+
...xe
|
|
3134
|
+
}), this.entityDecoder = new je({
|
|
2112
3135
|
namedEntities: {
|
|
2113
3136
|
...n,
|
|
2114
3137
|
...t
|
|
@@ -2119,27 +3142,27 @@ var yt = class {
|
|
|
2119
3142
|
maxExpandedLength: this.options.processEntities.maxExpandedLength,
|
|
2120
3143
|
applyLimitsTo: this.options.processEntities.appliesTo
|
|
2121
3144
|
},
|
|
2122
|
-
onInputEntity: (e, t) =>
|
|
2123
|
-
})), this.matcher = new
|
|
3145
|
+
onInputEntity: (e, t) => Dt(t, [R, z]) ? x.BLOCK : x.ALLOW
|
|
3146
|
+
})), this.matcher = new L(), this.readonlyMatcher = this.matcher.readOnly(), this.isCurrentNodeStopNode = !1, this.stopNodeExpressionsSet = new mt();
|
|
2124
3147
|
let r = this.options.stopNodes;
|
|
2125
3148
|
if (r && r.length > 0) {
|
|
2126
3149
|
for (let e = 0; e < r.length; e++) {
|
|
2127
3150
|
let t = r[e];
|
|
2128
|
-
typeof t == "string" ? this.stopNodeExpressionsSet.add(new
|
|
3151
|
+
typeof t == "string" ? this.stopNodeExpressionsSet.add(new I(t)) : t instanceof I && this.stopNodeExpressionsSet.add(t);
|
|
2129
3152
|
}
|
|
2130
3153
|
this.stopNodeExpressionsSet.seal();
|
|
2131
3154
|
}
|
|
2132
3155
|
}
|
|
2133
3156
|
};
|
|
2134
|
-
function
|
|
3157
|
+
function jt(e, t, n, r, i, a, o) {
|
|
2135
3158
|
let s = this.options;
|
|
2136
3159
|
if (e !== void 0 && (s.trimValues && !r && (e = e.trim()), e.length > 0)) {
|
|
2137
3160
|
o || (e = this.replaceEntitiesValue(e, t, n));
|
|
2138
3161
|
let r = s.jPath ? n.toString() : n, c = s.tagValueProcessor(t, e, r, i, a);
|
|
2139
|
-
return c == null ? e : typeof c != typeof e || c !== e ? c : s.trimValues || e.trim() === e ?
|
|
3162
|
+
return c == null ? e : typeof c != typeof e || c !== e ? c : s.trimValues || e.trim() === e ? Wt(e, s.parseTagValue, s.numberParseOptions) : e;
|
|
2140
3163
|
}
|
|
2141
3164
|
}
|
|
2142
|
-
function
|
|
3165
|
+
function Mt(e) {
|
|
2143
3166
|
if (this.options.removeNSPrefix) {
|
|
2144
3167
|
let t = e.split(":"), n = e.charAt(0) === "/" ? "/" : "";
|
|
2145
3168
|
if (t[0] === "xmlns") return "";
|
|
@@ -2147,11 +3170,11 @@ function xt(e) {
|
|
|
2147
3170
|
}
|
|
2148
3171
|
return e;
|
|
2149
3172
|
}
|
|
2150
|
-
var
|
|
2151
|
-
function
|
|
3173
|
+
var Nt = /* @__PURE__ */ RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?", "gm");
|
|
3174
|
+
function Pt(e, t, n, r = !1) {
|
|
2152
3175
|
let i = this.options;
|
|
2153
3176
|
if (r === !0 || i.ignoreAttributes !== !0 && typeof e == "string") {
|
|
2154
|
-
let r = u(e,
|
|
3177
|
+
let r = u(e, Nt), a = r.length, o = {}, s = Array(a), c = !1, l = {};
|
|
2155
3178
|
for (let e = 0; e < a; e++) {
|
|
2156
3179
|
let t = this.resolveNameSpace(r[e][1]), a = r[e][4];
|
|
2157
3180
|
if (t.length && a !== void 0) {
|
|
@@ -2165,9 +3188,9 @@ function Ct(e, t, n, r = !1) {
|
|
|
2165
3188
|
let t = this.resolveNameSpace(r[e][1]);
|
|
2166
3189
|
if (this.ignoreAttributesFn(t, d)) continue;
|
|
2167
3190
|
let n = i.attributeNamePrefix + t;
|
|
2168
|
-
if (t.length) if (i.transformAttributeName && (n = i.transformAttributeName(n)), n =
|
|
3191
|
+
if (t.length) if (i.transformAttributeName && (n = i.transformAttributeName(n)), n = Kt(n, i), r[e][4] !== void 0) {
|
|
2169
3192
|
let r = s[e], a = i.attributeValueProcessor(t, r, d);
|
|
2170
|
-
a == null ? o[n] = r : typeof a != typeof r || a !== r ? o[n] = a : o[n] =
|
|
3193
|
+
a == null ? o[n] = r : typeof a != typeof r || a !== r ? o[n] = a : o[n] = Wt(r, i.parseAttributeValue, i.numberParseOptions), f = !0;
|
|
2171
3194
|
} else i.allowBooleanAttributes && (o[n] = !0, f = !0);
|
|
2172
3195
|
}
|
|
2173
3196
|
if (!f) return;
|
|
@@ -2178,25 +3201,25 @@ function Ct(e, t, n, r = !1) {
|
|
|
2178
3201
|
return o;
|
|
2179
3202
|
}
|
|
2180
3203
|
}
|
|
2181
|
-
var
|
|
3204
|
+
var Ft = function(e) {
|
|
2182
3205
|
e = e.replace(/\r\n?/g, "\n");
|
|
2183
|
-
let t = new
|
|
2184
|
-
this.matcher.reset(), this.entityDecoder.reset(), this.entityExpansionCount = 0, this.currentExpandedLength = 0
|
|
2185
|
-
let i = this.options, a = new
|
|
3206
|
+
let t = new D("!xml"), n = t, r = "";
|
|
3207
|
+
this.matcher.reset(), this.entityDecoder.reset(), this.entityExpansionCount = 0, this.currentExpandedLength = 0;
|
|
3208
|
+
let i = this.options, a = new Ye(i.processEntities), o = e.length;
|
|
2186
3209
|
for (let s = 0; s < o; s++) if (e[s] === "<") {
|
|
2187
3210
|
let c = e.charCodeAt(s + 1);
|
|
2188
3211
|
if (c === 47) {
|
|
2189
|
-
let t =
|
|
3212
|
+
let t = H(e, ">", s, "Closing Tag is not closed."), a = e.substring(s + 2, t).trim();
|
|
2190
3213
|
if (i.removeNSPrefix) {
|
|
2191
3214
|
let e = a.indexOf(":");
|
|
2192
3215
|
e !== -1 && (a = a.substr(e + 1));
|
|
2193
3216
|
}
|
|
2194
|
-
a =
|
|
3217
|
+
a = Gt(i.transformTagName, a, "", i).tagName, n && (r = this.saveTextToParentTag(r, n, this.readonlyMatcher));
|
|
2195
3218
|
let o = this.matcher.getCurrentTag();
|
|
2196
3219
|
if (a && i.unpairedTagsSet.has(a)) throw Error(`Unpaired tag can not be used as closing tag: </${a}>`);
|
|
2197
3220
|
o && i.unpairedTagsSet.has(o) && (this.matcher.pop(), this.tagsNodeStack.pop()), this.matcher.pop(), this.isCurrentNodeStopNode = !1, n = this.tagsNodeStack.pop(), r = "", s = t;
|
|
2198
3221
|
} else if (c === 63) {
|
|
2199
|
-
let t =
|
|
3222
|
+
let t = Ht(e, s, !1, "?>");
|
|
2200
3223
|
if (!t) throw Error("Pi Tag is not closed.");
|
|
2201
3224
|
r = this.saveTextToParentTag(r, n, this.readonlyMatcher);
|
|
2202
3225
|
let o = this.buildAttributesMap(t.tagExp, this.matcher, t.tagName, !0);
|
|
@@ -2205,42 +3228,40 @@ var wt = function(e) {
|
|
|
2205
3228
|
this.entityDecoder.setXmlVersion(Number(e) || 1), a.setXmlVersion(Number(e) || 1);
|
|
2206
3229
|
}
|
|
2207
3230
|
if (!(i.ignoreDeclaration && t.tagName === "?xml" || i.ignorePiTags)) {
|
|
2208
|
-
let e = new
|
|
3231
|
+
let e = new D(t.tagName);
|
|
2209
3232
|
e.add(i.textNodeName, ""), t.tagName !== t.tagExp && t.attrExpPresent && i.ignoreAttributes !== !0 && (e[":@"] = o), this.addChild(n, e, this.readonlyMatcher, s);
|
|
2210
3233
|
}
|
|
2211
3234
|
s = t.closeIndex + 1;
|
|
2212
3235
|
} else if (c === 33 && e.charCodeAt(s + 2) === 45 && e.charCodeAt(s + 3) === 45) {
|
|
2213
|
-
let t =
|
|
3236
|
+
let t = H(e, "-->", s + 4, "Comment is not closed.");
|
|
2214
3237
|
if (i.commentPropName) {
|
|
2215
3238
|
let a = e.substring(s + 4, t - 2);
|
|
2216
3239
|
r = this.saveTextToParentTag(r, n, this.readonlyMatcher), n.add(i.commentPropName, [{ [i.textNodeName]: a }]);
|
|
2217
3240
|
}
|
|
2218
3241
|
s = t;
|
|
2219
3242
|
} else if (c === 33 && e.charCodeAt(s + 2) === 68) {
|
|
2220
|
-
if (this.doctypefound) throw Error("Multiple DOCTYPE declarations found.");
|
|
2221
|
-
this.doctypefound = !0;
|
|
2222
3243
|
let t = a.readDocType(e, s);
|
|
2223
3244
|
this.entityDecoder.addInputEntities(t.entities), s = t.i;
|
|
2224
3245
|
} else if (c === 33 && e.charCodeAt(s + 2) === 91) {
|
|
2225
|
-
let t =
|
|
3246
|
+
let t = H(e, "]]>", s, "CDATA is not closed.") - 2, a = e.substring(s + 9, t);
|
|
2226
3247
|
r = this.saveTextToParentTag(r, n, this.readonlyMatcher);
|
|
2227
3248
|
let o = this.parseTextData(a, n.tagname, this.readonlyMatcher, !0, !1, !0, !0);
|
|
2228
3249
|
o ??= "", i.cdataPropName ? n.add(i.cdataPropName, [{ [i.textNodeName]: a }]) : n.add(i.textNodeName, o), s = t + 2;
|
|
2229
3250
|
} else {
|
|
2230
|
-
let a =
|
|
3251
|
+
let a = Ht(e, s, i.removeNSPrefix);
|
|
2231
3252
|
if (!a) {
|
|
2232
3253
|
let t = e.substring(Math.max(0, s - 50), Math.min(o, s + 50));
|
|
2233
3254
|
throw Error(`readTagExp returned undefined at position ${s}. Context: "${t}"`);
|
|
2234
3255
|
}
|
|
2235
3256
|
let c = a.tagName, l = a.rawTagName, u = a.tagExp, d = a.attrExpPresent, f = a.closeIndex;
|
|
2236
|
-
if ({tagName: c, tagExp: u} =
|
|
3257
|
+
if ({tagName: c, tagExp: u} = Gt(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}`);
|
|
2237
3258
|
n && r && n.tagname !== "!xml" && (r = this.saveTextToParentTag(r, n, this.readonlyMatcher, !1));
|
|
2238
3259
|
let p = n;
|
|
2239
3260
|
p && i.unpairedTagsSet.has(p.tagname) && (n = this.tagsNodeStack.pop(), this.matcher.pop());
|
|
2240
3261
|
let m = !1;
|
|
2241
3262
|
u.length > 0 && u.lastIndexOf("/") === u.length - 1 && (m = !0, c[c.length - 1] === "/" ? (c = c.substr(0, c.length - 1), u = c) : u = u.substr(0, u.length - 1), d = c !== u);
|
|
2242
3263
|
let h = null, g;
|
|
2243
|
-
g =
|
|
3264
|
+
g = kt(l), c !== t.tagname && this.matcher.push(c, {}, g), c !== u && d && (h = this.buildAttributesMap(u, this.matcher, c), h && Ot(h, i)), c !== t.tagname && (this.isCurrentNodeStopNode = this.isItStopNode());
|
|
2244
3265
|
let _ = s;
|
|
2245
3266
|
if (this.isCurrentNodeStopNode) {
|
|
2246
3267
|
let t = "";
|
|
@@ -2251,19 +3272,19 @@ var wt = function(e) {
|
|
|
2251
3272
|
if (!n) throw Error(`Unexpected end of ${l}`);
|
|
2252
3273
|
s = n.i, t = n.tagContent;
|
|
2253
3274
|
}
|
|
2254
|
-
let r = new
|
|
3275
|
+
let r = new D(c);
|
|
2255
3276
|
h && (r[":@"] = h), r.add(i.textNodeName, t), this.matcher.pop(), this.isCurrentNodeStopNode = !1, this.addChild(n, r, this.readonlyMatcher, _);
|
|
2256
3277
|
} else {
|
|
2257
3278
|
if (m) {
|
|
2258
|
-
({tagName: c, tagExp: u} =
|
|
2259
|
-
let e = new
|
|
3279
|
+
({tagName: c, tagExp: u} = Gt(i.transformTagName, c, u, i));
|
|
3280
|
+
let e = new D(c);
|
|
2260
3281
|
h && (e[":@"] = h), this.addChild(n, e, this.readonlyMatcher, _), this.matcher.pop(), this.isCurrentNodeStopNode = !1;
|
|
2261
3282
|
} else if (i.unpairedTagsSet.has(c)) {
|
|
2262
|
-
let e = new
|
|
3283
|
+
let e = new D(c);
|
|
2263
3284
|
h && (e[":@"] = h), this.addChild(n, e, this.readonlyMatcher, _), this.matcher.pop(), this.isCurrentNodeStopNode = !1, s = a.closeIndex;
|
|
2264
3285
|
continue;
|
|
2265
3286
|
} else {
|
|
2266
|
-
let e = new
|
|
3287
|
+
let e = new D(c);
|
|
2267
3288
|
if (this.tagsNodeStack.length > i.maxNestedTags) throw Error("Maximum nested tags exceeded");
|
|
2268
3289
|
this.tagsNodeStack.push(n), h && (e[":@"] = h), this.addChild(n, e, this.readonlyMatcher, _), n = e;
|
|
2269
3290
|
}
|
|
@@ -2273,12 +3294,12 @@ var wt = function(e) {
|
|
|
2273
3294
|
} else r += e[s];
|
|
2274
3295
|
return t.child;
|
|
2275
3296
|
};
|
|
2276
|
-
function
|
|
3297
|
+
function It(e, t, n, r) {
|
|
2277
3298
|
this.options.captureMetaData || (r = void 0);
|
|
2278
3299
|
let i = this.options.jPath ? n.toString() : n, a = this.options.updateTag(t.tagname, i, t[":@"]);
|
|
2279
3300
|
a === !1 || (typeof a == "string" && (t.tagname = a), e.addChild(t, r));
|
|
2280
3301
|
}
|
|
2281
|
-
function
|
|
3302
|
+
function Lt(e, t, n) {
|
|
2282
3303
|
let r = this.options.processEntities;
|
|
2283
3304
|
if (!r || !r.enabled) return e;
|
|
2284
3305
|
if (r.allowedTags) {
|
|
@@ -2291,13 +3312,13 @@ function Et(e, t, n) {
|
|
|
2291
3312
|
}
|
|
2292
3313
|
return this.entityDecoder.decode(e);
|
|
2293
3314
|
}
|
|
2294
|
-
function
|
|
3315
|
+
function Rt(e, t, n, r) {
|
|
2295
3316
|
return e &&= (r === void 0 && (r = t.child.length === 0), e = this.parseTextData(e, t.tagname, n, !1, t[":@"] ? Object.keys(t[":@"]).length !== 0 : !1, r), e !== void 0 && e !== "" && t.add(this.options.textNodeName, e), ""), e;
|
|
2296
3317
|
}
|
|
2297
|
-
function
|
|
2298
|
-
return this.stopNodeExpressionsSet.size
|
|
3318
|
+
function zt() {
|
|
3319
|
+
return this.stopNodeExpressionsSet.size === 0 ? !1 : this.matcher.matchesAny(this.stopNodeExpressionsSet);
|
|
2299
3320
|
}
|
|
2300
|
-
function
|
|
3321
|
+
function Bt(e, t, n = ">") {
|
|
2301
3322
|
let r = 0, i = e.length, a = n.charCodeAt(0), o = n.length > 1 ? n.charCodeAt(1) : -1, s = "", c = t;
|
|
2302
3323
|
for (let n = t; n < i; n++) {
|
|
2303
3324
|
let t = e.charCodeAt(n);
|
|
@@ -2315,18 +3336,18 @@ function kt(e, t, n = ">") {
|
|
|
2315
3336
|
else t === 9 && !r && (s += e.substring(c, n) + " ", c = n + 1);
|
|
2316
3337
|
}
|
|
2317
3338
|
}
|
|
2318
|
-
function
|
|
3339
|
+
function H(e, t, n, r) {
|
|
2319
3340
|
let i = e.indexOf(t, n);
|
|
2320
3341
|
if (i === -1) throw Error(r);
|
|
2321
3342
|
return i + t.length - 1;
|
|
2322
3343
|
}
|
|
2323
|
-
function
|
|
3344
|
+
function Vt(e, t, n, r) {
|
|
2324
3345
|
let i = e.indexOf(t, n);
|
|
2325
3346
|
if (i === -1) throw Error(r);
|
|
2326
3347
|
return i;
|
|
2327
3348
|
}
|
|
2328
|
-
function
|
|
2329
|
-
let i =
|
|
3349
|
+
function Ht(e, t, n, r = ">") {
|
|
3350
|
+
let i = Bt(e, t + 1, r);
|
|
2330
3351
|
if (!i) return;
|
|
2331
3352
|
let a = i.data, o = i.index, s = a.search(/\s/), c = a, l = !0;
|
|
2332
3353
|
s !== -1 && (c = a.substring(0, s), a = a.substring(s + 1).trimStart());
|
|
@@ -2343,51 +3364,51 @@ function H(e, t, n, r = ">") {
|
|
|
2343
3364
|
rawTagName: u
|
|
2344
3365
|
};
|
|
2345
3366
|
}
|
|
2346
|
-
function
|
|
3367
|
+
function Ut(e, t, n) {
|
|
2347
3368
|
let r = n, i = 1, a = e.length;
|
|
2348
3369
|
for (; n < a; n++) if (e[n] === "<") {
|
|
2349
3370
|
let a = e.charCodeAt(n + 1);
|
|
2350
3371
|
if (a === 47) {
|
|
2351
|
-
let a =
|
|
3372
|
+
let a = Vt(e, ">", n, `${t} is not closed`);
|
|
2352
3373
|
if (e.substring(n + 2, a).trim() === t && (i--, i === 0)) return {
|
|
2353
3374
|
tagContent: e.substring(r, n),
|
|
2354
3375
|
i: a
|
|
2355
3376
|
};
|
|
2356
3377
|
n = a;
|
|
2357
|
-
} else if (a === 63) n =
|
|
2358
|
-
else if (a === 33 && e.charCodeAt(n + 2) === 45 && e.charCodeAt(n + 3) === 45) n =
|
|
2359
|
-
else if (a === 33 && e.charCodeAt(n + 2) === 91) n =
|
|
3378
|
+
} else if (a === 63) n = H(e, "?>", n + 1, "StopNode is not closed.");
|
|
3379
|
+
else if (a === 33 && e.charCodeAt(n + 2) === 45 && e.charCodeAt(n + 3) === 45) n = H(e, "-->", n + 3, "StopNode is not closed.");
|
|
3380
|
+
else if (a === 33 && e.charCodeAt(n + 2) === 91) n = H(e, "]]>", n, "StopNode is not closed.") - 2;
|
|
2360
3381
|
else {
|
|
2361
|
-
let r =
|
|
3382
|
+
let r = Ht(e, n, !1);
|
|
2362
3383
|
r && ((r && r.tagName) === t && r.tagExp[r.tagExp.length - 1] !== "/" && i++, n = r.closeIndex);
|
|
2363
3384
|
}
|
|
2364
3385
|
}
|
|
2365
3386
|
}
|
|
2366
|
-
function
|
|
3387
|
+
function Wt(e, t, n) {
|
|
2367
3388
|
if (t && typeof e == "string") {
|
|
2368
3389
|
let t = e.trim();
|
|
2369
|
-
return t === "true"
|
|
3390
|
+
return t === "true" ? !0 : t === "false" ? !1 : ct(e, n);
|
|
2370
3391
|
} else if (f(e)) return e;
|
|
2371
3392
|
else return "";
|
|
2372
3393
|
}
|
|
2373
|
-
function
|
|
3394
|
+
function Gt(e, t, n, r) {
|
|
2374
3395
|
if (e) {
|
|
2375
3396
|
let r = e(t);
|
|
2376
3397
|
n === t && (n = r), t = r;
|
|
2377
3398
|
}
|
|
2378
|
-
return t =
|
|
3399
|
+
return t = Kt(t, r), {
|
|
2379
3400
|
tagName: t,
|
|
2380
3401
|
tagExp: n
|
|
2381
3402
|
};
|
|
2382
3403
|
}
|
|
2383
|
-
function
|
|
3404
|
+
function Kt(e, t) {
|
|
2384
3405
|
if (m.includes(e)) throw Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);
|
|
2385
3406
|
return p.includes(e) ? t.onDangerousProperty(e) : e;
|
|
2386
3407
|
}
|
|
2387
3408
|
//#endregion
|
|
2388
|
-
//#region ../../node_modules/.pnpm/fast-xml-parser@5.10.
|
|
2389
|
-
var
|
|
2390
|
-
function
|
|
3409
|
+
//#region ../../node_modules/.pnpm/fast-xml-parser@5.10.0/node_modules/fast-xml-parser/src/xmlparser/node2json.js
|
|
3410
|
+
var qt = D.getMetaDataSymbol();
|
|
3411
|
+
function Jt(e, t) {
|
|
2391
3412
|
if (!e || typeof e != "object") return {};
|
|
2392
3413
|
if (!t) return e;
|
|
2393
3414
|
let n = {};
|
|
@@ -2397,22 +3418,22 @@ function It(e, t) {
|
|
|
2397
3418
|
} else n[r] = e[r];
|
|
2398
3419
|
return n;
|
|
2399
3420
|
}
|
|
2400
|
-
function
|
|
2401
|
-
return
|
|
3421
|
+
function Yt(e, t, n, r) {
|
|
3422
|
+
return Xt(e, t, n, r);
|
|
2402
3423
|
}
|
|
2403
|
-
function
|
|
3424
|
+
function Xt(e, t, n, r) {
|
|
2404
3425
|
let i, a = {};
|
|
2405
3426
|
for (let o = 0; o < e.length; o++) {
|
|
2406
|
-
let s = e[o], c =
|
|
3427
|
+
let s = e[o], c = Zt(s);
|
|
2407
3428
|
if (c !== void 0 && c !== t.textNodeName) {
|
|
2408
|
-
let e =
|
|
3429
|
+
let e = Jt(s[":@"] || {}, t.attributeNamePrefix);
|
|
2409
3430
|
n.push(c, e);
|
|
2410
3431
|
}
|
|
2411
3432
|
if (c === t.textNodeName) i === void 0 ? i = s[c] : i += "" + s[c];
|
|
2412
3433
|
else if (c === void 0) continue;
|
|
2413
3434
|
else if (s[c]) {
|
|
2414
|
-
let e =
|
|
2415
|
-
if (Object.keys(e).length === 0 && t.alwaysCreateTextNode && (e[t.textNodeName] = ""), s[":@"] ?
|
|
3435
|
+
let e = Xt(s[c], t, n, r), i = $t(e, t);
|
|
3436
|
+
if (Object.keys(e).length === 0 && t.alwaysCreateTextNode && (e[t.textNodeName] = ""), s[":@"] ? Qt(e, s[":@"], r, t) : Object.keys(e).length === 1 && e[t.textNodeName] !== void 0 && !t.alwaysCreateTextNode ? e = e[t.textNodeName] : Object.keys(e).length === 0 && (t.alwaysCreateTextNode ? e[t.textNodeName] = "" : e = ""), s[qt] !== void 0 && typeof e == "object" && e && (e[qt] = s[qt]), a[c] !== void 0 && Object.prototype.hasOwnProperty.call(a, c)) Array.isArray(a[c]) || (a[c] = [a[c]]), a[c].push(e);
|
|
2416
3437
|
else {
|
|
2417
3438
|
let n = t.jPath ? r.toString() : r;
|
|
2418
3439
|
t.isArray(c, n, i) ? a[c] = [e] : a[c] = e;
|
|
@@ -2422,14 +3443,14 @@ function Rt(e, t, n, r) {
|
|
|
2422
3443
|
}
|
|
2423
3444
|
return typeof i == "string" ? i.length > 0 && (a[t.textNodeName] = i) : i !== void 0 && (a[t.textNodeName] = i), a;
|
|
2424
3445
|
}
|
|
2425
|
-
function
|
|
3446
|
+
function Zt(e) {
|
|
2426
3447
|
let t = Object.keys(e);
|
|
2427
3448
|
for (let e = 0; e < t.length; e++) {
|
|
2428
3449
|
let n = t[e];
|
|
2429
3450
|
if (n !== ":@") return n;
|
|
2430
3451
|
}
|
|
2431
3452
|
}
|
|
2432
|
-
function
|
|
3453
|
+
function Qt(e, t, n, r) {
|
|
2433
3454
|
if (t) {
|
|
2434
3455
|
let i = Object.keys(t), a = i.length;
|
|
2435
3456
|
for (let o = 0; o < a; o++) {
|
|
@@ -2438,15 +3459,15 @@ function Bt(e, t, n, r) {
|
|
|
2438
3459
|
}
|
|
2439
3460
|
}
|
|
2440
3461
|
}
|
|
2441
|
-
function
|
|
3462
|
+
function $t(e, t) {
|
|
2442
3463
|
let { textNodeName: n } = t, r = Object.keys(e).length;
|
|
2443
3464
|
return !!(r === 0 || r === 1 && (e[n] || typeof e[n] == "boolean" || e[n] === 0));
|
|
2444
3465
|
}
|
|
2445
3466
|
//#endregion
|
|
2446
|
-
//#region ../../node_modules/.pnpm/fast-xml-parser@5.10.
|
|
2447
|
-
var
|
|
3467
|
+
//#region ../../node_modules/.pnpm/fast-xml-parser@5.10.0/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js
|
|
3468
|
+
var en = class {
|
|
2448
3469
|
constructor(e) {
|
|
2449
|
-
this.externalEntities = {}, this.options =
|
|
3470
|
+
this.externalEntities = {}, this.options = Ie(e);
|
|
2450
3471
|
}
|
|
2451
3472
|
parse(e, t) {
|
|
2452
3473
|
if (typeof e != "string" && e.toString) e = e.toString();
|
|
@@ -2456,8 +3477,8 @@ var Ht = class {
|
|
|
2456
3477
|
let n = g(e, t);
|
|
2457
3478
|
if (n !== !0) throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`);
|
|
2458
3479
|
}
|
|
2459
|
-
let n = new
|
|
2460
|
-
return this.options.preserveOrder || r === void 0 ? r :
|
|
3480
|
+
let n = new At(this.options, this.externalEntities), r = n.parseXml(e);
|
|
3481
|
+
return this.options.preserveOrder || r === void 0 ? r : Yt(r, this.options, n.matcher, n.readonlyMatcher);
|
|
2461
3482
|
}
|
|
2462
3483
|
addEntity(e, t) {
|
|
2463
3484
|
if (t.indexOf("&") !== -1) throw Error("Entity value can't have '&'");
|
|
@@ -2466,15 +3487,15 @@ var Ht = class {
|
|
|
2466
3487
|
this.externalEntities[e] = t;
|
|
2467
3488
|
}
|
|
2468
3489
|
static getMetaDataSymbol() {
|
|
2469
|
-
return
|
|
3490
|
+
return D.getMetaDataSymbol();
|
|
2470
3491
|
}
|
|
2471
3492
|
};
|
|
2472
3493
|
//#endregion
|
|
2473
3494
|
//#region ../../node_modules/.pnpm/fast-xml-builder@1.3.0/node_modules/fast-xml-builder/src/util.js
|
|
2474
|
-
function
|
|
3495
|
+
function tn(e) {
|
|
2475
3496
|
return String(e).replace(/--/g, "- -").replace(/--/g, "- -").replace(/-$/, "- ");
|
|
2476
3497
|
}
|
|
2477
|
-
function
|
|
3498
|
+
function nn(e) {
|
|
2478
3499
|
return String(e).replace(/\]\]>/g, "]]]]><![CDATA[>");
|
|
2479
3500
|
}
|
|
2480
3501
|
function U(e) {
|
|
@@ -2482,11 +3503,11 @@ function U(e) {
|
|
|
2482
3503
|
}
|
|
2483
3504
|
//#endregion
|
|
2484
3505
|
//#region ../../node_modules/.pnpm/fast-xml-builder@1.3.0/node_modules/fast-xml-builder/src/orderedJs2Xml.js
|
|
2485
|
-
var
|
|
2486
|
-
function
|
|
3506
|
+
var rn = "\n";
|
|
3507
|
+
function an(e, t) {
|
|
2487
3508
|
if (!Array.isArray(e) || e.length === 0) return "1.0";
|
|
2488
3509
|
let n = e[0];
|
|
2489
|
-
if (
|
|
3510
|
+
if (fn(n) === "?xml") {
|
|
2490
3511
|
let e = n[":@"];
|
|
2491
3512
|
if (e) {
|
|
2492
3513
|
let n = t.attributeNamePrefix + "version";
|
|
@@ -2495,65 +3516,65 @@ function Kt(e, t) {
|
|
|
2495
3516
|
}
|
|
2496
3517
|
return "1.0";
|
|
2497
3518
|
}
|
|
2498
|
-
function
|
|
3519
|
+
function on(e, t, n, r, i) {
|
|
2499
3520
|
return !n.sanitizeName || i(e) ? e : n.sanitizeName(e, {
|
|
2500
3521
|
isAttribute: t,
|
|
2501
3522
|
matcher: r.readOnly()
|
|
2502
3523
|
});
|
|
2503
3524
|
}
|
|
2504
|
-
function
|
|
3525
|
+
function sn(e, t) {
|
|
2505
3526
|
let n = "";
|
|
2506
|
-
t.format && (n =
|
|
3527
|
+
t.format && (n = rn);
|
|
2507
3528
|
let r = [];
|
|
2508
3529
|
if (t.stopNodes && Array.isArray(t.stopNodes)) for (let e = 0; e < t.stopNodes.length; e++) {
|
|
2509
3530
|
let n = t.stopNodes[e];
|
|
2510
|
-
typeof n == "string" ? r.push(new
|
|
3531
|
+
typeof n == "string" ? r.push(new I(n)) : n instanceof I && r.push(n);
|
|
2511
3532
|
}
|
|
2512
|
-
let i =
|
|
2513
|
-
return
|
|
3533
|
+
let i = Je("qName", { xmlVersion: an(e, t) }), a = new L();
|
|
3534
|
+
return cn(e, t, n, a, r, i);
|
|
2514
3535
|
}
|
|
2515
|
-
function
|
|
3536
|
+
function cn(e, t, n, r, i, a) {
|
|
2516
3537
|
let o = "", s = !1;
|
|
2517
3538
|
if (t.maxNestedTags && r.getDepth() > t.maxNestedTags) throw Error("Maximum nested tags exceeded");
|
|
2518
3539
|
if (!Array.isArray(e)) {
|
|
2519
3540
|
if (e != null) {
|
|
2520
3541
|
let n = e.toString();
|
|
2521
|
-
return n =
|
|
3542
|
+
return n = hn(n, t), n;
|
|
2522
3543
|
}
|
|
2523
3544
|
return "";
|
|
2524
3545
|
}
|
|
2525
3546
|
for (let c = 0; c < e.length; c++) {
|
|
2526
|
-
let l = e[c], u =
|
|
3547
|
+
let l = e[c], u = fn(l);
|
|
2527
3548
|
if (u === void 0) continue;
|
|
2528
|
-
let d = u === t.textNodeName || u === t.cdataPropName || u === t.commentPropName || u[0] === "?" ? u :
|
|
3549
|
+
let d = u === t.textNodeName || u === t.cdataPropName || u === t.commentPropName || u[0] === "?" ? u : on(u, !1, t, r, a), f = ln(l[":@"], t);
|
|
2529
3550
|
r.push(d, f);
|
|
2530
|
-
let p =
|
|
3551
|
+
let p = mn(r, i);
|
|
2531
3552
|
if (d === t.textNodeName) {
|
|
2532
3553
|
let e = l[u];
|
|
2533
|
-
p || (e = t.tagValueProcessor(d, e), e =
|
|
3554
|
+
p || (e = t.tagValueProcessor(d, e), e = hn(e, t)), s && (o += n), o += e, s = !1, r.pop();
|
|
2534
3555
|
continue;
|
|
2535
3556
|
} else if (d === t.cdataPropName) {
|
|
2536
3557
|
s && (o += n);
|
|
2537
|
-
let e = l[u][0][t.textNodeName], i =
|
|
3558
|
+
let e = l[u][0][t.textNodeName], i = nn(e);
|
|
2538
3559
|
o += `<![CDATA[${i}]]>`, s = !1, r.pop();
|
|
2539
3560
|
continue;
|
|
2540
3561
|
} else if (d === t.commentPropName) {
|
|
2541
|
-
let e = l[u][0][t.textNodeName], i =
|
|
3562
|
+
let e = l[u][0][t.textNodeName], i = tn(e);
|
|
2542
3563
|
o += n + `<!--${i}-->`, s = !0, r.pop();
|
|
2543
3564
|
continue;
|
|
2544
3565
|
} else if (d[0] === "?") {
|
|
2545
|
-
let e =
|
|
3566
|
+
let e = pn(l[":@"], t, p, r, a);
|
|
2546
3567
|
o += (d === "?xml" ? "" : n) + `<${d}${e}?>`, s = !0, r.pop();
|
|
2547
3568
|
continue;
|
|
2548
3569
|
}
|
|
2549
3570
|
let m = n;
|
|
2550
3571
|
m !== "" && (m += t.indentBy);
|
|
2551
|
-
let h = n + `<${d}${
|
|
2552
|
-
g = p ?
|
|
3572
|
+
let h = n + `<${d}${pn(l[":@"], t, p, r, a)}`, g;
|
|
3573
|
+
g = p ? un(l[u], t) : cn(l[u], t, m, r, i, a), t.unpairedTags.indexOf(d) === -1 ? (!g || g.length === 0) && t.suppressEmptyNode ? o += h + "/>" : g && g.endsWith(">") ? o += h + `>${g}${n}</${d}>` : (o += h + ">", g && n !== "" && (g.includes("/>") || g.includes("</")) ? o += n + t.indentBy + g + n : o += g, o += `</${d}>`) : t.suppressUnpairedNode ? o += h + ">" : o += h + "/>", s = !0, r.pop();
|
|
2553
3574
|
}
|
|
2554
3575
|
return o;
|
|
2555
3576
|
}
|
|
2556
|
-
function
|
|
3577
|
+
function ln(e, t) {
|
|
2557
3578
|
if (!e || t.ignoreAttributes) return null;
|
|
2558
3579
|
let n = {}, r = !1;
|
|
2559
3580
|
for (let i in e) {
|
|
@@ -2563,23 +3584,23 @@ function Xt(e, t) {
|
|
|
2563
3584
|
}
|
|
2564
3585
|
return r ? n : null;
|
|
2565
3586
|
}
|
|
2566
|
-
function
|
|
3587
|
+
function un(e, t) {
|
|
2567
3588
|
if (!Array.isArray(e)) return e == null ? "" : e.toString();
|
|
2568
3589
|
let n = "";
|
|
2569
3590
|
for (let r = 0; r < e.length; r++) {
|
|
2570
|
-
let i = e[r], a =
|
|
3591
|
+
let i = e[r], a = fn(i);
|
|
2571
3592
|
if (a === t.textNodeName) n += i[a];
|
|
2572
3593
|
else if (a === t.cdataPropName) n += i[a][0][t.textNodeName];
|
|
2573
3594
|
else if (a === t.commentPropName) n += i[a][0][t.textNodeName];
|
|
2574
3595
|
else if (a && a[0] === "?") continue;
|
|
2575
3596
|
else if (a) {
|
|
2576
|
-
let e =
|
|
3597
|
+
let e = dn(i[":@"], t), r = un(i[a], t);
|
|
2577
3598
|
!r || r.length === 0 ? n += `<${a}${e}/>` : n += `<${a}${e}>${r}</${a}>`;
|
|
2578
3599
|
}
|
|
2579
3600
|
}
|
|
2580
3601
|
return n;
|
|
2581
3602
|
}
|
|
2582
|
-
function
|
|
3603
|
+
function dn(e, t) {
|
|
2583
3604
|
let n = "";
|
|
2584
3605
|
if (e && !t.ignoreAttributes) for (let r in e) {
|
|
2585
3606
|
if (!Object.prototype.hasOwnProperty.call(e, r)) continue;
|
|
@@ -2588,28 +3609,28 @@ function Qt(e, t) {
|
|
|
2588
3609
|
}
|
|
2589
3610
|
return n;
|
|
2590
3611
|
}
|
|
2591
|
-
function
|
|
3612
|
+
function fn(e) {
|
|
2592
3613
|
let t = Object.keys(e);
|
|
2593
3614
|
for (let n = 0; n < t.length; n++) {
|
|
2594
3615
|
let r = t[n];
|
|
2595
3616
|
if (Object.prototype.hasOwnProperty.call(e, r) && r !== ":@") return r;
|
|
2596
3617
|
}
|
|
2597
3618
|
}
|
|
2598
|
-
function
|
|
3619
|
+
function pn(e, t, n, r, i) {
|
|
2599
3620
|
let a = "";
|
|
2600
3621
|
if (e && !t.ignoreAttributes) for (let o in e) {
|
|
2601
3622
|
if (!Object.prototype.hasOwnProperty.call(e, o)) continue;
|
|
2602
|
-
let s = o.substr(t.attributeNamePrefix.length), c = n ? s :
|
|
2603
|
-
n ? l = e[o] : (l = t.attributeValueProcessor(o, e[o]), l =
|
|
3623
|
+
let s = o.substr(t.attributeNamePrefix.length), c = n ? s : on(s, !0, t, r, i), l;
|
|
3624
|
+
n ? l = e[o] : (l = t.attributeValueProcessor(o, e[o]), l = hn(l, t)), l === !0 && t.suppressBooleanAttributes ? a += ` ${c}` : a += ` ${c}="${U(l)}"`;
|
|
2604
3625
|
}
|
|
2605
3626
|
return a;
|
|
2606
3627
|
}
|
|
2607
|
-
function
|
|
3628
|
+
function mn(e, t) {
|
|
2608
3629
|
if (!t || t.length === 0) return !1;
|
|
2609
3630
|
for (let n = 0; n < t.length; n++) if (e.matches(t[n])) return !0;
|
|
2610
3631
|
return !1;
|
|
2611
3632
|
}
|
|
2612
|
-
function
|
|
3633
|
+
function hn(e, t) {
|
|
2613
3634
|
if (e && e.length > 0 && t.processEntities) for (let n = 0; n < t.entities.length; n++) {
|
|
2614
3635
|
let r = t.entities[n];
|
|
2615
3636
|
e = e.replace(r.regex, r.val);
|
|
@@ -2618,14 +3639,14 @@ function nn(e, t) {
|
|
|
2618
3639
|
}
|
|
2619
3640
|
//#endregion
|
|
2620
3641
|
//#region ../../node_modules/.pnpm/fast-xml-builder@1.3.0/node_modules/fast-xml-builder/src/ignoreAttributes.js
|
|
2621
|
-
function
|
|
3642
|
+
function gn(e) {
|
|
2622
3643
|
return typeof e == "function" ? e : Array.isArray(e) ? (t) => {
|
|
2623
3644
|
for (let n of e) if (typeof n == "string" && t === n || n instanceof RegExp && n.test(t)) return !0;
|
|
2624
3645
|
} : () => !1;
|
|
2625
3646
|
}
|
|
2626
3647
|
//#endregion
|
|
2627
3648
|
//#region ../../node_modules/.pnpm/fast-xml-builder@1.3.0/node_modules/fast-xml-builder/src/fxb.js
|
|
2628
|
-
var
|
|
3649
|
+
var _n = {
|
|
2629
3650
|
attributeNamePrefix: "@_",
|
|
2630
3651
|
attributesGroupName: !1,
|
|
2631
3652
|
textNodeName: "#text",
|
|
@@ -2675,17 +3696,17 @@ var an = {
|
|
|
2675
3696
|
sanitizeName: !1
|
|
2676
3697
|
};
|
|
2677
3698
|
function W(e) {
|
|
2678
|
-
if (this.options = Object.assign({},
|
|
3699
|
+
if (this.options = Object.assign({}, _n, e), this.options.stopNodes && Array.isArray(this.options.stopNodes) && (this.options.stopNodes = this.options.stopNodes.map((e) => typeof e == "string" && e.startsWith("*.") ? ".." + e.substring(2) : e)), this.stopNodeExpressions = [], this.options.stopNodes && Array.isArray(this.options.stopNodes)) for (let e = 0; e < this.options.stopNodes.length; e++) {
|
|
2679
3700
|
let t = this.options.stopNodes[e];
|
|
2680
|
-
typeof t == "string" ? this.stopNodeExpressions.push(new
|
|
3701
|
+
typeof t == "string" ? this.stopNodeExpressions.push(new I(t)) : t instanceof I && this.stopNodeExpressions.push(t);
|
|
2681
3702
|
}
|
|
2682
3703
|
this.options.ignoreAttributes === !0 || this.options.attributesGroupName ? this.isAttribute = function() {
|
|
2683
3704
|
return !1;
|
|
2684
|
-
} : (this.ignoreAttributesFn =
|
|
3705
|
+
} : (this.ignoreAttributesFn = gn(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = Sn), this.processTextOrObjNode = bn, this.options.format ? (this.indentate = xn, this.tagEndChar = ">\n", this.newLine = "\n") : (this.indentate = function() {
|
|
2685
3706
|
return "";
|
|
2686
3707
|
}, this.tagEndChar = ">", this.newLine = "");
|
|
2687
3708
|
}
|
|
2688
|
-
function
|
|
3709
|
+
function vn(e, t) {
|
|
2689
3710
|
let n = e["?xml"];
|
|
2690
3711
|
if (n && typeof n == "object") {
|
|
2691
3712
|
if (t.attributesGroupName && n[t.attributesGroupName]) {
|
|
@@ -2697,17 +3718,17 @@ function on(e, t) {
|
|
|
2697
3718
|
}
|
|
2698
3719
|
return "1.0";
|
|
2699
3720
|
}
|
|
2700
|
-
function
|
|
3721
|
+
function yn(e, t, n, r, i) {
|
|
2701
3722
|
return !n.sanitizeName || i(e) ? e : n.sanitizeName(e, {
|
|
2702
3723
|
isAttribute: t,
|
|
2703
3724
|
matcher: r.readOnly()
|
|
2704
3725
|
});
|
|
2705
3726
|
}
|
|
2706
3727
|
W.prototype.build = function(e) {
|
|
2707
|
-
if (this.options.preserveOrder) return
|
|
3728
|
+
if (this.options.preserveOrder) return sn(e, this.options);
|
|
2708
3729
|
{
|
|
2709
3730
|
Array.isArray(e) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (e = { [this.options.arrayNodeName]: e });
|
|
2710
|
-
let t = new
|
|
3731
|
+
let t = new L(), n = Je("qName", { xmlVersion: vn(e, this.options) });
|
|
2711
3732
|
return this.j2x(e, 0, t, n).val;
|
|
2712
3733
|
}
|
|
2713
3734
|
}, W.prototype.j2x = function(e, t, n, r) {
|
|
@@ -2716,14 +3737,14 @@ W.prototype.build = function(e) {
|
|
|
2716
3737
|
let o = this.options.jPath ? n.toString() : n, s = this.checkStopNode(n);
|
|
2717
3738
|
for (let c in e) {
|
|
2718
3739
|
if (!Object.prototype.hasOwnProperty.call(e, c)) continue;
|
|
2719
|
-
let l = c === this.options.textNodeName || c === this.options.cdataPropName || c === this.options.commentPropName || this.options.attributesGroupName && c === this.options.attributesGroupName || this.isAttribute(c) || c[0] === "?" ? c :
|
|
3740
|
+
let l = c === this.options.textNodeName || c === this.options.cdataPropName || c === this.options.commentPropName || this.options.attributesGroupName && c === this.options.attributesGroupName || this.isAttribute(c) || c[0] === "?" ? c : yn(c, !1, this.options, n, r);
|
|
2720
3741
|
if (e[c] === void 0) this.isAttribute(c) && (a += "");
|
|
2721
3742
|
else if (e[c] === null) this.isAttribute(c) || l === this.options.cdataPropName || l === this.options.commentPropName ? a += "" : l[0] === "?" ? a += this.indentate(t) + "<" + l + "?" + this.tagEndChar : a += this.indentate(t) + "<" + l + "/" + this.tagEndChar;
|
|
2722
3743
|
else if (e[c] instanceof Date) a += this.buildTextValNode(e[c], l, "", t, n);
|
|
2723
3744
|
else if (typeof e[c] != "object") {
|
|
2724
3745
|
let u = this.isAttribute(c);
|
|
2725
3746
|
if (u && !this.ignoreAttributesFn(u, o)) {
|
|
2726
|
-
let t =
|
|
3747
|
+
let t = yn(u, !0, this.options, n, r);
|
|
2727
3748
|
i += this.buildAttrPairStr(t, "" + e[c], s);
|
|
2728
3749
|
} else if (!u) if (c === this.options.textNodeName) {
|
|
2729
3750
|
let t = this.options.tagValueProcessor(c, "" + e[c]);
|
|
@@ -2762,7 +3783,7 @@ W.prototype.build = function(e) {
|
|
|
2762
3783
|
} else if (this.options.attributesGroupName && c === this.options.attributesGroupName) {
|
|
2763
3784
|
let t = Object.keys(e[c]), a = t.length;
|
|
2764
3785
|
for (let o = 0; o < a; o++) {
|
|
2765
|
-
let a =
|
|
3786
|
+
let a = yn(t[o], !0, this.options, n, r);
|
|
2766
3787
|
i += this.buildAttrPairStr(a, "" + e[c][t[o]], s);
|
|
2767
3788
|
}
|
|
2768
3789
|
} else a += this.processTextOrObjNode(e[c], l, t, n, r);
|
|
@@ -2774,7 +3795,7 @@ W.prototype.build = function(e) {
|
|
|
2774
3795
|
}, W.prototype.buildAttrPairStr = function(e, t, n) {
|
|
2775
3796
|
return n || (t = this.options.attributeValueProcessor(e, "" + t), t = this.replaceEntitiesValue(t)), this.options.suppressBooleanAttributes && t === "true" ? " " + e : " " + e + "=\"" + U(t) + "\"";
|
|
2776
3797
|
};
|
|
2777
|
-
function
|
|
3798
|
+
function bn(e, t, n, r, i) {
|
|
2778
3799
|
let a = this.extractAttributes(e);
|
|
2779
3800
|
if (r.push(t, a), this.checkStopNode(r)) {
|
|
2780
3801
|
let i = this.buildRawContent(e), a = this.buildAttributesForStopNode(e);
|
|
@@ -2844,7 +3865,7 @@ W.prototype.extractAttributes = function(e) {
|
|
|
2844
3865
|
if (t[0] === "?") return this.indentate(r) + "<" + t + n + "?" + this.tagEndChar;
|
|
2845
3866
|
{
|
|
2846
3867
|
let i = "</" + t + this.tagEndChar, a = "";
|
|
2847
|
-
return t[0] === "?" && (a = "?", i = ""), (n || n === "") && e.indexOf("<") === -1 ? this.indentate(r) + "<" + t + n + a + ">" + e + i : this.options.commentPropName !== !1 && t === this.options.commentPropName && a.length === 0 ? this.indentate(r) + `<!--${
|
|
3868
|
+
return t[0] === "?" && (a = "?", i = ""), (n || n === "") && e.indexOf("<") === -1 ? this.indentate(r) + "<" + t + n + a + ">" + e + i : this.options.commentPropName !== !1 && t === this.options.commentPropName && a.length === 0 ? this.indentate(r) + `<!--${tn(e)}-->` + this.newLine : this.indentate(r) + "<" + t + n + a + this.tagEndChar + e + this.indentate(r) + i;
|
|
2848
3869
|
}
|
|
2849
3870
|
}, W.prototype.closeTag = function(e) {
|
|
2850
3871
|
let t = "";
|
|
@@ -2855,10 +3876,10 @@ W.prototype.extractAttributes = function(e) {
|
|
|
2855
3876
|
return !1;
|
|
2856
3877
|
}, W.prototype.buildTextValNode = function(e, t, n, r, i) {
|
|
2857
3878
|
if (this.options.cdataPropName !== !1 && t === this.options.cdataPropName) {
|
|
2858
|
-
let t =
|
|
3879
|
+
let t = nn(e);
|
|
2859
3880
|
return this.indentate(r) + `<![CDATA[${t}]]>` + this.newLine;
|
|
2860
3881
|
} else if (this.options.commentPropName !== !1 && t === this.options.commentPropName) {
|
|
2861
|
-
let t =
|
|
3882
|
+
let t = tn(e);
|
|
2862
3883
|
return this.indentate(r) + `<!--${t}-->` + this.newLine;
|
|
2863
3884
|
} else if (t[0] === "?") return this.indentate(r) + "<" + t + n + "?" + this.tagEndChar;
|
|
2864
3885
|
else {
|
|
@@ -2872,40 +3893,40 @@ W.prototype.extractAttributes = function(e) {
|
|
|
2872
3893
|
}
|
|
2873
3894
|
return e;
|
|
2874
3895
|
};
|
|
2875
|
-
function
|
|
3896
|
+
function xn(e) {
|
|
2876
3897
|
return this.options.indentBy.repeat(e);
|
|
2877
3898
|
}
|
|
2878
|
-
function
|
|
3899
|
+
function Sn(e) {
|
|
2879
3900
|
return e.startsWith(this.options.attributeNamePrefix) && e !== this.options.textNodeName ? e.substr(this.attrPrefixLen) : !1;
|
|
2880
3901
|
}
|
|
2881
3902
|
//#endregion
|
|
2882
|
-
//#region ../../node_modules/.pnpm/fast-xml-parser@5.10.
|
|
2883
|
-
var
|
|
3903
|
+
//#region ../../node_modules/.pnpm/fast-xml-parser@5.10.0/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js
|
|
3904
|
+
var Cn = W, G = e.object({
|
|
2884
3905
|
created_at: e.string(),
|
|
2885
3906
|
updated_at: e.string()
|
|
2886
|
-
}),
|
|
3907
|
+
}), wn = e.object({
|
|
2887
3908
|
id: e.string(),
|
|
2888
3909
|
version: e.string().optional()
|
|
2889
|
-
}),
|
|
3910
|
+
}), Tn = e.object({
|
|
2890
3911
|
name: e.string(),
|
|
2891
3912
|
version: e.string()
|
|
2892
|
-
}),
|
|
3913
|
+
}), En = e.object({
|
|
2893
3914
|
name: e.string(),
|
|
2894
3915
|
value: e.string().optional()
|
|
2895
|
-
}),
|
|
3916
|
+
}), Dn = e.object({
|
|
2896
3917
|
name: e.string().max(255),
|
|
2897
3918
|
code: e.string().max(1e5),
|
|
2898
|
-
supported_triggers: e.array(
|
|
3919
|
+
supported_triggers: e.array(wn).optional(),
|
|
2899
3920
|
runtime: e.string().max(50).optional(),
|
|
2900
|
-
dependencies: e.array(
|
|
2901
|
-
secrets: e.array(
|
|
3921
|
+
dependencies: e.array(Tn).optional(),
|
|
3922
|
+
secrets: e.array(En).optional(),
|
|
2902
3923
|
is_system: e.boolean().optional(),
|
|
2903
3924
|
inherit: e.boolean().optional()
|
|
2904
3925
|
});
|
|
2905
|
-
|
|
3926
|
+
Dn.partial().extend({
|
|
2906
3927
|
status: e.enum(["draft", "built"]).optional(),
|
|
2907
3928
|
deployed_at: e.string().optional()
|
|
2908
|
-
}),
|
|
3929
|
+
}), Dn.extend({
|
|
2909
3930
|
id: e.string(),
|
|
2910
3931
|
tenant_id: e.string(),
|
|
2911
3932
|
status: e.enum(["draft", "built"]).default("built"),
|
|
@@ -2915,23 +3936,25 @@ hn.partial().extend({
|
|
|
2915
3936
|
value: e.string().optional()
|
|
2916
3937
|
})).optional()
|
|
2917
3938
|
}).extend(G.shape);
|
|
2918
|
-
|
|
3939
|
+
//#endregion
|
|
3940
|
+
//#region ../adapter-interfaces/dist/adapter-interfaces.mjs
|
|
3941
|
+
var On = e.string(), kn = e.enum([
|
|
2919
3942
|
"unspecified",
|
|
2920
3943
|
"pending",
|
|
2921
3944
|
"final",
|
|
2922
3945
|
"partial",
|
|
2923
3946
|
"canceled",
|
|
2924
3947
|
"suspended"
|
|
2925
|
-
]),
|
|
3948
|
+
]), An = e.object({
|
|
2926
3949
|
id: e.string(),
|
|
2927
3950
|
msg: e.string(),
|
|
2928
3951
|
url: e.string().optional()
|
|
2929
|
-
}),
|
|
3952
|
+
}), jn = e.object({
|
|
2930
3953
|
action_name: e.string(),
|
|
2931
|
-
error:
|
|
3954
|
+
error: An.nullable(),
|
|
2932
3955
|
started_at: e.string(),
|
|
2933
3956
|
ended_at: e.string()
|
|
2934
|
-
}),
|
|
3957
|
+
}), Mn = e.object({
|
|
2935
3958
|
level: e.enum([
|
|
2936
3959
|
"log",
|
|
2937
3960
|
"info",
|
|
@@ -2940,17 +3963,17 @@ var gn = e.string(), _n = e.enum([
|
|
|
2940
3963
|
"debug"
|
|
2941
3964
|
]),
|
|
2942
3965
|
message: e.string()
|
|
2943
|
-
}),
|
|
3966
|
+
}), Nn = e.array(e.object({
|
|
2944
3967
|
action_name: e.string(),
|
|
2945
|
-
lines: e.array(
|
|
3968
|
+
lines: e.array(Mn)
|
|
2946
3969
|
}));
|
|
2947
3970
|
e.object({
|
|
2948
3971
|
id: e.string(),
|
|
2949
3972
|
tenant_id: e.string(),
|
|
2950
|
-
trigger_id:
|
|
2951
|
-
status:
|
|
2952
|
-
results: e.array(
|
|
2953
|
-
logs:
|
|
3973
|
+
trigger_id: On,
|
|
3974
|
+
status: kn,
|
|
3975
|
+
results: e.array(jn),
|
|
3976
|
+
logs: Nn.optional(),
|
|
2954
3977
|
created_at: e.string(),
|
|
2955
3978
|
updated_at: e.string()
|
|
2956
3979
|
}).omit({
|
|
@@ -2961,21 +3984,21 @@ e.object({
|
|
|
2961
3984
|
action_id: e.string(),
|
|
2962
3985
|
code: e.string().max(1e5),
|
|
2963
3986
|
runtime: e.string().max(50).optional(),
|
|
2964
|
-
dependencies: e.array(
|
|
2965
|
-
secrets: e.array(
|
|
2966
|
-
supported_triggers: e.array(
|
|
3987
|
+
dependencies: e.array(Tn).optional(),
|
|
3988
|
+
secrets: e.array(En).optional(),
|
|
3989
|
+
supported_triggers: e.array(wn).optional(),
|
|
2967
3990
|
deployed: e.boolean().default(!0)
|
|
2968
3991
|
}).extend({
|
|
2969
3992
|
id: e.string(),
|
|
2970
3993
|
tenant_id: e.string(),
|
|
2971
3994
|
number: e.number().int()
|
|
2972
3995
|
}).extend(G.shape);
|
|
2973
|
-
var
|
|
3996
|
+
var Pn = e.enum([
|
|
2974
3997
|
"user_action",
|
|
2975
3998
|
"admin_action",
|
|
2976
3999
|
"system",
|
|
2977
4000
|
"api"
|
|
2978
|
-
]),
|
|
4001
|
+
]), Fn = e.object({
|
|
2979
4002
|
type: e.enum([
|
|
2980
4003
|
"user",
|
|
2981
4004
|
"admin",
|
|
@@ -2989,7 +4012,7 @@ var Sn = e.enum([
|
|
|
2989
4012
|
org_name: e.string().optional(),
|
|
2990
4013
|
scopes: e.array(e.string()).optional(),
|
|
2991
4014
|
client_id: e.string().optional()
|
|
2992
|
-
}),
|
|
4015
|
+
}), In = e.object({
|
|
2993
4016
|
type: e.string(),
|
|
2994
4017
|
id: e.string(),
|
|
2995
4018
|
before: e.record(e.string(), e.unknown()).optional(),
|
|
@@ -2998,25 +4021,26 @@ var Sn = e.enum([
|
|
|
2998
4021
|
old: e.unknown(),
|
|
2999
4022
|
new: e.unknown()
|
|
3000
4023
|
})).optional()
|
|
3001
|
-
}),
|
|
4024
|
+
}), Ln = e.object({
|
|
3002
4025
|
method: e.string(),
|
|
3003
4026
|
path: e.string(),
|
|
3004
4027
|
query: e.record(e.string(), e.string()).optional(),
|
|
3005
4028
|
body: e.unknown().optional(),
|
|
3006
4029
|
ip: e.string(),
|
|
3007
4030
|
user_agent: e.string().optional(),
|
|
3008
|
-
correlation_id: e.string().optional()
|
|
3009
|
-
|
|
4031
|
+
correlation_id: e.string().optional(),
|
|
4032
|
+
redirect_uri: e.string().optional()
|
|
4033
|
+
}), Rn = e.object({
|
|
3010
4034
|
status_code: e.number(),
|
|
3011
4035
|
body: e.unknown().optional()
|
|
3012
|
-
}),
|
|
4036
|
+
}), zn = e.object({
|
|
3013
4037
|
country_code: e.string(),
|
|
3014
4038
|
city_name: e.string(),
|
|
3015
4039
|
latitude: e.string(),
|
|
3016
4040
|
longitude: e.string(),
|
|
3017
4041
|
time_zone: e.string(),
|
|
3018
4042
|
continent_code: e.string()
|
|
3019
|
-
}),
|
|
4043
|
+
}), Bn = e.object({
|
|
3020
4044
|
name: e.string(),
|
|
3021
4045
|
version: e.string(),
|
|
3022
4046
|
env: e.record(e.string(), e.string()).optional()
|
|
@@ -3026,11 +4050,11 @@ e.object({
|
|
|
3026
4050
|
event_type: e.string(),
|
|
3027
4051
|
log_type: e.string(),
|
|
3028
4052
|
description: e.string().optional(),
|
|
3029
|
-
category:
|
|
3030
|
-
actor:
|
|
3031
|
-
target:
|
|
3032
|
-
request:
|
|
3033
|
-
response:
|
|
4053
|
+
category: Pn,
|
|
4054
|
+
actor: Fn,
|
|
4055
|
+
target: In,
|
|
4056
|
+
request: Ln,
|
|
4057
|
+
response: Rn.optional(),
|
|
3034
4058
|
connection: e.string().optional(),
|
|
3035
4059
|
connection_id: e.string().optional(),
|
|
3036
4060
|
client_name: e.string().optional(),
|
|
@@ -3038,8 +4062,8 @@ e.object({
|
|
|
3038
4062
|
strategy_type: e.string().optional(),
|
|
3039
4063
|
audience: e.string().optional(),
|
|
3040
4064
|
scope: e.string().optional(),
|
|
3041
|
-
location:
|
|
3042
|
-
auth0_client:
|
|
4065
|
+
location: zn.optional(),
|
|
4066
|
+
auth0_client: Bn.optional(),
|
|
3043
4067
|
hostname: e.string(),
|
|
3044
4068
|
is_mobile: e.boolean().optional(),
|
|
3045
4069
|
timestamp: e.string()
|
|
@@ -3054,14 +4078,14 @@ e.object({
|
|
|
3054
4078
|
"SEND_REQUEST",
|
|
3055
4079
|
"SEND_EMAIL"
|
|
3056
4080
|
]), e.enum(["VERIFY_EMAIL"]);
|
|
3057
|
-
var
|
|
4081
|
+
var Vn = e.object({
|
|
3058
4082
|
require_mx_record: e.boolean().optional(),
|
|
3059
4083
|
block_aliases: e.boolean().optional(),
|
|
3060
4084
|
block_free_emails: e.boolean().optional(),
|
|
3061
4085
|
block_disposable_emails: e.boolean().optional(),
|
|
3062
4086
|
blocklist: e.array(e.string()).optional(),
|
|
3063
4087
|
allowlist: e.array(e.string()).optional()
|
|
3064
|
-
}),
|
|
4088
|
+
}), Hn = e.object({
|
|
3065
4089
|
id: e.string(),
|
|
3066
4090
|
alias: e.string().max(100).optional(),
|
|
3067
4091
|
type: e.literal("AUTH0"),
|
|
@@ -3073,7 +4097,7 @@ var kn = e.object({
|
|
|
3073
4097
|
user_id: e.string(),
|
|
3074
4098
|
changes: e.record(e.string(), e.any())
|
|
3075
4099
|
})
|
|
3076
|
-
}),
|
|
4100
|
+
}), Un = e.object({
|
|
3077
4101
|
id: e.string(),
|
|
3078
4102
|
alias: e.string().max(100).optional(),
|
|
3079
4103
|
type: e.literal("EMAIL"),
|
|
@@ -3082,13 +4106,13 @@ var kn = e.object({
|
|
|
3082
4106
|
mask_output: e.boolean().optional(),
|
|
3083
4107
|
params: e.object({
|
|
3084
4108
|
email: e.string(),
|
|
3085
|
-
rules:
|
|
4109
|
+
rules: Vn.optional()
|
|
3086
4110
|
})
|
|
3087
|
-
}),
|
|
4111
|
+
}), Wn = e.enum([
|
|
3088
4112
|
"change-email",
|
|
3089
4113
|
"account",
|
|
3090
4114
|
"custom"
|
|
3091
|
-
]),
|
|
4115
|
+
]), Gn = e.object({
|
|
3092
4116
|
id: e.string(),
|
|
3093
4117
|
alias: e.string().max(100).optional(),
|
|
3094
4118
|
type: e.literal("REDIRECT"),
|
|
@@ -3096,17 +4120,17 @@ var kn = e.object({
|
|
|
3096
4120
|
allow_failure: e.boolean().optional(),
|
|
3097
4121
|
mask_output: e.boolean().optional(),
|
|
3098
4122
|
params: e.object({
|
|
3099
|
-
target:
|
|
4123
|
+
target: Wn.openapi({ description: "The predefined target to redirect to, or 'custom' for a custom URL" }),
|
|
3100
4124
|
custom_url: e.string().optional().openapi({ description: "Custom URL to redirect to when target is 'custom'" })
|
|
3101
4125
|
})
|
|
3102
|
-
}),
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
4126
|
+
}), Kn = e.union([
|
|
4127
|
+
Hn,
|
|
4128
|
+
Un,
|
|
4129
|
+
Gn
|
|
3106
4130
|
]);
|
|
3107
4131
|
e.object({
|
|
3108
4132
|
name: e.string().min(1).max(150).openapi({ description: "The name of the flow" }),
|
|
3109
|
-
actions: e.array(
|
|
4133
|
+
actions: e.array(Kn).optional().default([]).openapi({ description: "The list of actions to execute in sequence" })
|
|
3110
4134
|
}).extend(G.shape).extend({ id: e.string().openapi({
|
|
3111
4135
|
description: "Unique identifier for the flow",
|
|
3112
4136
|
example: "af_12tMpdJ3iek7svMyZkSh5M"
|
|
@@ -3123,7 +4147,7 @@ e.object({
|
|
|
3123
4147
|
total: e.number().optional(),
|
|
3124
4148
|
next: e.string().optional()
|
|
3125
4149
|
});
|
|
3126
|
-
var
|
|
4150
|
+
var qn = e.object({
|
|
3127
4151
|
email: e.string().optional(),
|
|
3128
4152
|
email_verified: e.boolean().optional(),
|
|
3129
4153
|
name: e.string().optional(),
|
|
@@ -3132,7 +4156,7 @@ var Fn = e.object({
|
|
|
3132
4156
|
phone_number: e.string().optional(),
|
|
3133
4157
|
phone_verified: e.boolean().optional(),
|
|
3134
4158
|
family_name: e.string().optional()
|
|
3135
|
-
}).catchall(e.any()),
|
|
4159
|
+
}).catchall(e.any()), Jn = e.object({
|
|
3136
4160
|
connection: e.string(),
|
|
3137
4161
|
user_id: e.string(),
|
|
3138
4162
|
provider: e.string(),
|
|
@@ -3145,15 +4169,15 @@ var Fn = e.object({
|
|
|
3145
4169
|
access_token: e.string().optional(),
|
|
3146
4170
|
access_token_secret: e.string().optional(),
|
|
3147
4171
|
refresh_token: e.string().optional(),
|
|
3148
|
-
profileData:
|
|
3149
|
-
}),
|
|
4172
|
+
profileData: qn.optional()
|
|
4173
|
+
}), Yn = e.object({
|
|
3150
4174
|
formatted: e.string().optional(),
|
|
3151
4175
|
street_address: e.string().optional(),
|
|
3152
4176
|
locality: e.string().optional(),
|
|
3153
4177
|
region: e.string().optional(),
|
|
3154
4178
|
postal_code: e.string().optional(),
|
|
3155
4179
|
country: e.string().optional()
|
|
3156
|
-
}).optional(),
|
|
4180
|
+
}).optional(), Xn = e.object({
|
|
3157
4181
|
email: e.string().transform((e) => e.toLowerCase()).optional(),
|
|
3158
4182
|
username: e.string().refine((e) => !e.includes("@"), { message: "Usernames must not contain \"@\". Use the email field for email addresses." }).optional(),
|
|
3159
4183
|
phone_number: e.string().optional(),
|
|
@@ -3176,9 +4200,9 @@ var Fn = e.object({
|
|
|
3176
4200
|
gender: e.string().optional(),
|
|
3177
4201
|
birthdate: e.string().optional(),
|
|
3178
4202
|
zoneinfo: e.string().optional(),
|
|
3179
|
-
address:
|
|
4203
|
+
address: Yn
|
|
3180
4204
|
});
|
|
3181
|
-
|
|
4205
|
+
Xn.extend({
|
|
3182
4206
|
email_verified: e.boolean().default(!1),
|
|
3183
4207
|
verify_email: e.boolean().optional(),
|
|
3184
4208
|
last_ip: e.string().optional(),
|
|
@@ -3187,6 +4211,7 @@ Rn.extend({
|
|
|
3187
4211
|
provider: e.string().optional(),
|
|
3188
4212
|
connection: e.string(),
|
|
3189
4213
|
is_social: e.boolean().optional(),
|
|
4214
|
+
blocked: e.boolean().optional(),
|
|
3190
4215
|
registration_completed_at: e.string().optional(),
|
|
3191
4216
|
password: e.object({
|
|
3192
4217
|
hash: e.string(),
|
|
@@ -3198,24 +4223,24 @@ Rn.extend({
|
|
|
3198
4223
|
is_social: e.boolean(),
|
|
3199
4224
|
email: e.string().optional(),
|
|
3200
4225
|
login_count: e.number().default(0),
|
|
3201
|
-
identities: e.array(
|
|
3202
|
-
}).omit({ registration_completed_at: !0 }),
|
|
4226
|
+
identities: e.array(Jn).optional()
|
|
4227
|
+
}).omit({ registration_completed_at: !0 }), Xn.extend({
|
|
3203
4228
|
login_count: e.number(),
|
|
3204
4229
|
multifactor: e.array(e.string()).optional(),
|
|
3205
4230
|
last_ip: e.string().optional(),
|
|
3206
4231
|
last_login: e.string().optional(),
|
|
3207
4232
|
user_id: e.string()
|
|
3208
4233
|
}).catchall(e.any());
|
|
3209
|
-
var
|
|
4234
|
+
var Zn = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", Qn = (e = 21) => {
|
|
3210
4235
|
let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
|
|
3211
|
-
for (; e--;) t +=
|
|
4236
|
+
for (; e--;) t += Zn[n[e] & 63];
|
|
3212
4237
|
return t;
|
|
3213
|
-
},
|
|
4238
|
+
}, $n = e.object({
|
|
3214
4239
|
client_id: e.string().optional().openapi({ description: "ID of this client. Generated server-side if omitted (Auth0 behavior)." }),
|
|
3215
4240
|
name: e.string().min(1).openapi({ description: "Name of this client (min length: 1 character, does not allow < or >)." }),
|
|
3216
4241
|
description: e.string().max(140).optional().openapi({ description: "Free text description of this client (max length: 140 characters)." }),
|
|
3217
4242
|
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)." }),
|
|
3218
|
-
client_secret: e.string().default(() =>
|
|
4243
|
+
client_secret: e.string().default(() => Qn()).optional().openapi({ description: "Client secret (which you must not make public)." }),
|
|
3219
4244
|
app_type: e.enum([
|
|
3220
4245
|
"native",
|
|
3221
4246
|
"spa",
|
|
@@ -3332,8 +4357,8 @@ var zn = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", Bn
|
|
|
3332
4357
|
e.object({
|
|
3333
4358
|
created_at: e.string(),
|
|
3334
4359
|
updated_at: e.string()
|
|
3335
|
-
}).extend(
|
|
3336
|
-
var
|
|
4360
|
+
}).extend($n.shape).extend({ client_id: e.string() });
|
|
4361
|
+
var er = e.object({
|
|
3337
4362
|
client_id: e.string().min(1).openapi({ description: "ID of the client." }),
|
|
3338
4363
|
audience: e.string().min(1).openapi({ description: "The audience (API identifier) of this client grant." }),
|
|
3339
4364
|
scope: e.array(e.string()).optional().openapi({ description: "Scopes allowed for this client grant." }),
|
|
@@ -3346,15 +4371,15 @@ var Hn = e.object({
|
|
|
3346
4371
|
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." }),
|
|
3347
4372
|
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." }),
|
|
3348
4373
|
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." })
|
|
3349
|
-
}),
|
|
4374
|
+
}), tr = e.object({ id: e.string().openapi({ description: "ID of the client grant." }) }).extend(er.shape).extend({
|
|
3350
4375
|
created_at: e.string().optional(),
|
|
3351
4376
|
updated_at: e.string().optional()
|
|
3352
4377
|
});
|
|
3353
|
-
e.array(
|
|
3354
|
-
var
|
|
4378
|
+
e.array(tr);
|
|
4379
|
+
var nr = e.enum(["iat", "rat"]), rr = e.object({
|
|
3355
4380
|
id: e.string(),
|
|
3356
4381
|
token_hash: e.string(),
|
|
3357
|
-
type:
|
|
4382
|
+
type: nr,
|
|
3358
4383
|
client_id: e.string().optional(),
|
|
3359
4384
|
sub: e.string().optional(),
|
|
3360
4385
|
constraints: e.record(e.string(), e.unknown()).optional(),
|
|
@@ -3365,23 +4390,23 @@ e.object({
|
|
|
3365
4390
|
created_at: e.string(),
|
|
3366
4391
|
used_at: e.string().optional(),
|
|
3367
4392
|
revoked_at: e.string().optional()
|
|
3368
|
-
}).extend(
|
|
4393
|
+
}).extend(rr.shape);
|
|
3369
4394
|
var K = e.object({
|
|
3370
4395
|
x: e.number(),
|
|
3371
4396
|
y: e.number()
|
|
3372
|
-
}),
|
|
4397
|
+
}), ir = /* @__PURE__ */ function(e) {
|
|
3373
4398
|
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;
|
|
3374
|
-
}({}),
|
|
4399
|
+
}({}), ar = /* @__PURE__ */ function(e) {
|
|
3375
4400
|
return e.BLOCK = "BLOCK", e.FIELD = "FIELD", e;
|
|
3376
4401
|
}({}), q = e.object({
|
|
3377
4402
|
id: e.string(),
|
|
3378
|
-
category: e.nativeEnum(
|
|
3379
|
-
type: e.nativeEnum(
|
|
3380
|
-
}),
|
|
4403
|
+
category: e.nativeEnum(ar),
|
|
4404
|
+
type: e.nativeEnum(ir)
|
|
4405
|
+
}), or = q.extend({
|
|
3381
4406
|
category: e.literal("BLOCK"),
|
|
3382
4407
|
type: e.literal("RICH_TEXT"),
|
|
3383
4408
|
config: e.object({ content: e.string() }).passthrough()
|
|
3384
|
-
}),
|
|
4409
|
+
}), sr = q.extend({
|
|
3385
4410
|
category: e.literal("BLOCK"),
|
|
3386
4411
|
type: e.union([
|
|
3387
4412
|
e.literal("NEXT_BUTTON"),
|
|
@@ -3389,13 +4414,13 @@ var K = e.object({
|
|
|
3389
4414
|
e.literal("SUBMIT_BUTTON")
|
|
3390
4415
|
]),
|
|
3391
4416
|
config: e.object({ text: e.string() }).passthrough()
|
|
3392
|
-
}),
|
|
4417
|
+
}), cr = q.extend({
|
|
3393
4418
|
category: e.literal("FIELD"),
|
|
3394
4419
|
type: e.literal("LEGAL"),
|
|
3395
4420
|
required: e.boolean().optional(),
|
|
3396
4421
|
sensitive: e.boolean().optional(),
|
|
3397
4422
|
config: e.object({ text: e.string() }).passthrough()
|
|
3398
|
-
}),
|
|
4423
|
+
}), lr = q.extend({
|
|
3399
4424
|
category: e.literal("FIELD"),
|
|
3400
4425
|
type: e.union([
|
|
3401
4426
|
e.literal("TEXT"),
|
|
@@ -3415,26 +4440,26 @@ var K = e.object({
|
|
|
3415
4440
|
label: e.string().optional(),
|
|
3416
4441
|
placeholder: e.string().optional()
|
|
3417
4442
|
}).passthrough()
|
|
3418
|
-
}),
|
|
4443
|
+
}), ur = e.object({
|
|
3419
4444
|
id: e.string(),
|
|
3420
4445
|
category: e.string(),
|
|
3421
4446
|
type: e.string()
|
|
3422
|
-
}).passthrough(),
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
]),
|
|
4447
|
+
}).passthrough(), dr = e.union([
|
|
4448
|
+
or,
|
|
4449
|
+
sr,
|
|
4450
|
+
cr,
|
|
4451
|
+
lr,
|
|
4452
|
+
ur
|
|
4453
|
+
]), fr = e.object({
|
|
3429
4454
|
id: e.string(),
|
|
3430
4455
|
type: e.literal("STEP"),
|
|
3431
4456
|
coordinates: K,
|
|
3432
4457
|
alias: e.string().optional(),
|
|
3433
4458
|
config: e.object({
|
|
3434
|
-
components: e.array(
|
|
4459
|
+
components: e.array(dr),
|
|
3435
4460
|
next_node: e.string()
|
|
3436
4461
|
}).passthrough()
|
|
3437
|
-
}),
|
|
4462
|
+
}), pr = e.object({
|
|
3438
4463
|
id: e.string(),
|
|
3439
4464
|
type: e.literal("FLOW"),
|
|
3440
4465
|
coordinates: K,
|
|
@@ -3443,7 +4468,7 @@ var K = e.object({
|
|
|
3443
4468
|
flow_id: e.string(),
|
|
3444
4469
|
next_node: e.string()
|
|
3445
4470
|
})
|
|
3446
|
-
}),
|
|
4471
|
+
}), mr = e.object({
|
|
3447
4472
|
id: e.string(),
|
|
3448
4473
|
type: e.literal("ACTION"),
|
|
3449
4474
|
coordinates: K,
|
|
@@ -3458,19 +4483,19 @@ var K = e.object({
|
|
|
3458
4483
|
custom_url: e.string().optional().openapi({ description: "Custom URL when target is 'custom'" }),
|
|
3459
4484
|
next_node: e.string().openapi({ description: "The next node to navigate to after action (for non-redirect actions)" })
|
|
3460
4485
|
}).passthrough()
|
|
3461
|
-
}),
|
|
4486
|
+
}), hr = e.object({
|
|
3462
4487
|
id: e.string(),
|
|
3463
4488
|
type: e.string(),
|
|
3464
4489
|
coordinates: K
|
|
3465
|
-
}).passthrough(),
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
]),
|
|
4490
|
+
}).passthrough(), gr = e.union([
|
|
4491
|
+
fr,
|
|
4492
|
+
pr,
|
|
4493
|
+
mr,
|
|
4494
|
+
hr
|
|
4495
|
+
]), _r = e.object({
|
|
3471
4496
|
next_node: e.string(),
|
|
3472
4497
|
coordinates: K
|
|
3473
|
-
}).passthrough(),
|
|
4498
|
+
}).passthrough(), vr = e.object({
|
|
3474
4499
|
resume_flow: e.boolean().optional(),
|
|
3475
4500
|
coordinates: K
|
|
3476
4501
|
}).passthrough();
|
|
@@ -3478,9 +4503,9 @@ e.object({
|
|
|
3478
4503
|
id: e.string(),
|
|
3479
4504
|
name: e.string(),
|
|
3480
4505
|
languages: e.object({ primary: e.string() }).passthrough(),
|
|
3481
|
-
nodes: e.array(
|
|
3482
|
-
start:
|
|
3483
|
-
ending:
|
|
4506
|
+
nodes: e.array(gr),
|
|
4507
|
+
start: _r,
|
|
4508
|
+
ending: vr,
|
|
3484
4509
|
created_at: e.string(),
|
|
3485
4510
|
updated_at: e.string(),
|
|
3486
4511
|
links: e.object({
|
|
@@ -3492,24 +4517,24 @@ e.object({
|
|
|
3492
4517
|
created_at: !0,
|
|
3493
4518
|
updated_at: !0
|
|
3494
4519
|
});
|
|
3495
|
-
var
|
|
4520
|
+
var yr = /* @__PURE__ */ function(e) {
|
|
3496
4521
|
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;
|
|
3497
|
-
}({}),
|
|
4522
|
+
}({}), br = /* @__PURE__ */ function(e) {
|
|
3498
4523
|
return e.QUERY = "query", e.FRAGMENT = "fragment", e.FORM_POST = "form_post", e.WEB_MESSAGE = "web_message", e.SAML_POST = "saml_post", e;
|
|
3499
|
-
}({}),
|
|
4524
|
+
}({}), xr = /* @__PURE__ */ function(e) {
|
|
3500
4525
|
return e.S256 = "S256", e.Plain = "plain", e;
|
|
3501
|
-
}({}),
|
|
4526
|
+
}({}), Sr = e.union([e.null(), e.object({
|
|
3502
4527
|
essential: e.boolean().optional(),
|
|
3503
4528
|
value: e.unknown().optional(),
|
|
3504
4529
|
values: e.array(e.unknown()).optional()
|
|
3505
|
-
})]).nullable(),
|
|
3506
|
-
userinfo: e.record(e.string(),
|
|
3507
|
-
id_token: e.record(e.string(),
|
|
3508
|
-
}),
|
|
4530
|
+
})]).nullable(), Cr = e.object({
|
|
4531
|
+
userinfo: e.record(e.string(), Sr).optional(),
|
|
4532
|
+
id_token: e.record(e.string(), Sr).optional()
|
|
4533
|
+
}), wr = e.object({
|
|
3509
4534
|
client_id: e.string(),
|
|
3510
4535
|
act_as: e.string().optional(),
|
|
3511
|
-
response_type: e.nativeEnum(
|
|
3512
|
-
response_mode: e.nativeEnum(
|
|
4536
|
+
response_type: e.nativeEnum(yr).optional(),
|
|
4537
|
+
response_mode: e.nativeEnum(br).optional(),
|
|
3513
4538
|
redirect_uri: e.string().optional(),
|
|
3514
4539
|
audience: e.string().optional(),
|
|
3515
4540
|
organization: e.string().optional(),
|
|
@@ -3517,13 +4542,13 @@ var sr = /* @__PURE__ */ function(e) {
|
|
|
3517
4542
|
nonce: e.string().optional(),
|
|
3518
4543
|
scope: e.string().optional(),
|
|
3519
4544
|
prompt: e.string().optional(),
|
|
3520
|
-
code_challenge_method: e.nativeEnum(
|
|
4545
|
+
code_challenge_method: e.nativeEnum(xr).optional(),
|
|
3521
4546
|
code_challenge: e.string().optional(),
|
|
3522
4547
|
username: e.string().optional(),
|
|
3523
4548
|
ui_locales: e.string().optional(),
|
|
3524
4549
|
max_age: e.number().optional(),
|
|
3525
4550
|
acr_values: e.string().optional(),
|
|
3526
|
-
claims:
|
|
4551
|
+
claims: Cr.optional(),
|
|
3527
4552
|
vendor_id: e.string().optional()
|
|
3528
4553
|
});
|
|
3529
4554
|
e.object({
|
|
@@ -3546,7 +4571,7 @@ e.object({
|
|
|
3546
4571
|
"auto"
|
|
3547
4572
|
]).optional()
|
|
3548
4573
|
});
|
|
3549
|
-
var
|
|
4574
|
+
var Tr = e.enum([
|
|
3550
4575
|
"password_reset",
|
|
3551
4576
|
"email_verification",
|
|
3552
4577
|
"otp",
|
|
@@ -3559,7 +4584,7 @@ e.object({
|
|
|
3559
4584
|
code_id: e.string().openapi({ description: "The code that will be used in for instance an email verification flow" }),
|
|
3560
4585
|
login_id: e.string().openapi({ description: "The id of the login session that the code is connected to" }),
|
|
3561
4586
|
connection_id: e.string().optional().openapi({ description: "The connection that the code is connected to" }),
|
|
3562
|
-
code_type:
|
|
4587
|
+
code_type: Tr,
|
|
3563
4588
|
code_verifier: e.string().optional().openapi({ description: "The code verifier used in PKCE in outbound flows" }),
|
|
3564
4589
|
code_challenge: e.string().optional().openapi({ description: "The code challenge used in PKCE in outbound flows" }),
|
|
3565
4590
|
code_challenge_method: e.enum(["plain", "S256"]).optional().openapi({ description: "The code challenge method used in PKCE in outbound flows" }),
|
|
@@ -3571,7 +4596,7 @@ e.object({
|
|
|
3571
4596
|
used_at: e.string().optional(),
|
|
3572
4597
|
user_id: e.string().optional()
|
|
3573
4598
|
}).extend({ created_at: e.string() });
|
|
3574
|
-
var
|
|
4599
|
+
var Er = e.object({
|
|
3575
4600
|
kid: e.string().optional(),
|
|
3576
4601
|
team_id: e.string().optional(),
|
|
3577
4602
|
realms: e.string().optional(),
|
|
@@ -3687,26 +4712,26 @@ var mr = e.object({
|
|
|
3687
4712
|
"never_on_login"
|
|
3688
4713
|
]).optional()
|
|
3689
4714
|
});
|
|
3690
|
-
function
|
|
4715
|
+
function Dr(e) {
|
|
3691
4716
|
if (e !== null) {
|
|
3692
|
-
if (Array.isArray(e)) return e.filter((e) => e !== null).map(
|
|
4717
|
+
if (Array.isArray(e)) return e.filter((e) => e !== null).map(Dr);
|
|
3693
4718
|
if (e && typeof e == "object") {
|
|
3694
4719
|
let t = {};
|
|
3695
|
-
for (let [n, r] of Object.entries(e)) r !== null && (t[n] =
|
|
4720
|
+
for (let [n, r] of Object.entries(e)) r !== null && (t[n] = Dr(r));
|
|
3696
4721
|
return t;
|
|
3697
4722
|
}
|
|
3698
4723
|
return e;
|
|
3699
4724
|
}
|
|
3700
4725
|
}
|
|
3701
|
-
var
|
|
4726
|
+
var Or = e.object({
|
|
3702
4727
|
id: e.string().optional(),
|
|
3703
4728
|
name: e.string(),
|
|
3704
4729
|
display_name: e.string().optional(),
|
|
3705
4730
|
strategy: e.string(),
|
|
3706
|
-
options: e.preprocess((e) => e === null ? {} :
|
|
4731
|
+
options: e.preprocess((e) => e === null ? {} : Dr(e), Er).default({}),
|
|
3707
4732
|
enabled_clients: e.array(e.string()).default([]).optional(),
|
|
3708
|
-
response_type: e.
|
|
3709
|
-
response_mode: e.
|
|
4733
|
+
response_type: e.nativeEnum(yr).optional(),
|
|
4734
|
+
response_mode: e.nativeEnum(br).optional(),
|
|
3710
4735
|
is_domain_connection: e.boolean().optional(),
|
|
3711
4736
|
show_as_button: e.boolean().optional(),
|
|
3712
4737
|
metadata: e.record(e.string(), e.any()).optional(),
|
|
@@ -3716,8 +4741,8 @@ e.object({
|
|
|
3716
4741
|
id: e.string(),
|
|
3717
4742
|
created_at: e.string().transform((e) => e === null ? "" : e),
|
|
3718
4743
|
updated_at: e.string().transform((e) => e === null ? "" : e)
|
|
3719
|
-
}).extend(
|
|
3720
|
-
var
|
|
4744
|
+
}).extend(Or.shape);
|
|
4745
|
+
var kr = e.object({
|
|
3721
4746
|
domain: e.string(),
|
|
3722
4747
|
custom_domain_id: e.string().optional(),
|
|
3723
4748
|
type: e.enum(["auth0_managed_certs", "self_managed_certs"]),
|
|
@@ -3731,7 +4756,7 @@ var _r = e.object({
|
|
|
3731
4756
|
"null"
|
|
3732
4757
|
]).optional(),
|
|
3733
4758
|
domain_metadata: e.record(e.string(), e.string().max(255)).optional()
|
|
3734
|
-
}),
|
|
4759
|
+
}), Ar = e.discriminatedUnion("name", [e.object({
|
|
3735
4760
|
name: e.literal("txt"),
|
|
3736
4761
|
record: e.string(),
|
|
3737
4762
|
domain: e.string()
|
|
@@ -3739,7 +4764,7 @@ var _r = e.object({
|
|
|
3739
4764
|
name: e.literal("http"),
|
|
3740
4765
|
http_body: e.string(),
|
|
3741
4766
|
http_url: e.string()
|
|
3742
|
-
})]),
|
|
4767
|
+
})]), jr = kr.extend({
|
|
3743
4768
|
custom_domain_id: e.string(),
|
|
3744
4769
|
primary: e.boolean(),
|
|
3745
4770
|
status: e.enum([
|
|
@@ -3749,28 +4774,28 @@ var _r = e.object({
|
|
|
3749
4774
|
"ready"
|
|
3750
4775
|
]),
|
|
3751
4776
|
origin_domain_name: e.string().optional(),
|
|
3752
|
-
verification: e.object({ methods: e.array(
|
|
4777
|
+
verification: e.object({ methods: e.array(Ar) }).optional(),
|
|
3753
4778
|
tls_policy: e.string().optional()
|
|
3754
4779
|
});
|
|
3755
|
-
|
|
4780
|
+
kr.pick({
|
|
3756
4781
|
tls_policy: !0,
|
|
3757
4782
|
custom_client_ip_header: !0,
|
|
3758
4783
|
domain_metadata: !0
|
|
3759
|
-
}).strict(),
|
|
4784
|
+
}).strict(), jr.extend({ tenant_id: e.string() }), e.object({
|
|
3760
4785
|
certificate: e.string().regex(/^-----BEGIN CERTIFICATE-----[\s\S]+-----END CERTIFICATE-----\s*$/, "must be PEM-encoded; include the full certificate chain in leaf-first order"),
|
|
3761
4786
|
private_key: e.string().regex(/-----BEGIN (RSA |EC |ENCRYPTED )?PRIVATE KEY-----[\s\S]+-----END \1PRIVATE KEY-----\s*$/, "must be a PEM-encoded private key")
|
|
3762
4787
|
});
|
|
3763
|
-
var
|
|
4788
|
+
var Mr = e.object({
|
|
3764
4789
|
id: e.string(),
|
|
3765
4790
|
order: e.number().optional(),
|
|
3766
4791
|
visible: e.boolean().optional().default(!0)
|
|
3767
|
-
}), J =
|
|
4792
|
+
}), J = Mr.extend({ category: e.literal("BLOCK").optional() }), Nr = J.extend({
|
|
3768
4793
|
type: e.literal("DIVIDER"),
|
|
3769
4794
|
config: e.object({ text: e.string().optional() }).optional()
|
|
3770
|
-
}),
|
|
4795
|
+
}), Pr = J.extend({
|
|
3771
4796
|
type: e.literal("HTML"),
|
|
3772
4797
|
config: e.object({ content: e.string().optional() }).optional()
|
|
3773
|
-
}),
|
|
4798
|
+
}), Fr = J.extend({
|
|
3774
4799
|
type: e.literal("IMAGE"),
|
|
3775
4800
|
config: e.object({
|
|
3776
4801
|
src: e.string().optional(),
|
|
@@ -3778,43 +4803,43 @@ var br = e.object({
|
|
|
3778
4803
|
width: e.number().optional(),
|
|
3779
4804
|
height: e.number().optional()
|
|
3780
4805
|
}).optional()
|
|
3781
|
-
}),
|
|
4806
|
+
}), Ir = J.extend({
|
|
3782
4807
|
type: e.literal("JUMP_BUTTON"),
|
|
3783
4808
|
config: e.object({
|
|
3784
4809
|
text: e.string().optional(),
|
|
3785
4810
|
target_step: e.string().optional()
|
|
3786
4811
|
})
|
|
3787
|
-
}),
|
|
4812
|
+
}), Lr = J.extend({
|
|
3788
4813
|
type: e.literal("RESEND_BUTTON"),
|
|
3789
4814
|
config: e.object({
|
|
3790
4815
|
text: e.string().optional(),
|
|
3791
4816
|
resend_action: e.string().optional()
|
|
3792
4817
|
})
|
|
3793
|
-
}),
|
|
4818
|
+
}), Rr = J.extend({
|
|
3794
4819
|
type: e.literal("NEXT_BUTTON"),
|
|
3795
4820
|
config: e.object({ text: e.string().optional() })
|
|
3796
|
-
}),
|
|
4821
|
+
}), zr = J.extend({
|
|
3797
4822
|
type: e.literal("PREVIOUS_BUTTON"),
|
|
3798
4823
|
config: e.object({ text: e.string().optional() })
|
|
3799
|
-
}),
|
|
4824
|
+
}), Br = J.extend({
|
|
3800
4825
|
type: e.literal("RICH_TEXT"),
|
|
3801
4826
|
config: e.object({ content: e.string().optional() }).optional()
|
|
3802
|
-
}),
|
|
4827
|
+
}), Vr = Mr.extend({
|
|
3803
4828
|
category: e.literal("WIDGET").optional(),
|
|
3804
4829
|
label: e.string().min(1).optional(),
|
|
3805
4830
|
hint: e.string().min(1).max(500).optional(),
|
|
3806
4831
|
required: e.boolean().optional(),
|
|
3807
4832
|
sensitive: e.boolean().optional()
|
|
3808
|
-
}),
|
|
4833
|
+
}), Hr = Vr.extend({
|
|
3809
4834
|
type: e.literal("AUTH0_VERIFIABLE_CREDENTIALS"),
|
|
3810
4835
|
config: e.object({ credential_type: e.string().optional() })
|
|
3811
|
-
}),
|
|
4836
|
+
}), Ur = Vr.extend({
|
|
3812
4837
|
type: e.literal("GMAPS_ADDRESS"),
|
|
3813
4838
|
config: e.object({ api_key: e.string().optional() })
|
|
3814
|
-
}),
|
|
4839
|
+
}), Wr = Vr.extend({
|
|
3815
4840
|
type: e.literal("RECAPTCHA"),
|
|
3816
4841
|
config: e.object({ site_key: e.string().optional() })
|
|
3817
|
-
}), Y =
|
|
4842
|
+
}), Y = Mr.extend({
|
|
3818
4843
|
category: e.literal("FIELD").optional(),
|
|
3819
4844
|
label: e.string().min(1).optional(),
|
|
3820
4845
|
hint: e.string().min(1).max(500).optional(),
|
|
@@ -3830,10 +4855,10 @@ var br = e.object({
|
|
|
3830
4855
|
})).optional(),
|
|
3831
4856
|
required: e.boolean().optional(),
|
|
3832
4857
|
sensitive: e.boolean().optional()
|
|
3833
|
-
}),
|
|
4858
|
+
}), Gr = Y.extend({
|
|
3834
4859
|
type: e.literal("BOOLEAN"),
|
|
3835
4860
|
config: e.object({ default_value: e.boolean().optional() }).optional()
|
|
3836
|
-
}),
|
|
4861
|
+
}), Kr = Y.extend({
|
|
3837
4862
|
type: e.literal("CARDS"),
|
|
3838
4863
|
config: e.object({
|
|
3839
4864
|
options: e.array(e.object({
|
|
@@ -3844,7 +4869,7 @@ var br = e.object({
|
|
|
3844
4869
|
})).optional(),
|
|
3845
4870
|
multi_select: e.boolean().optional()
|
|
3846
4871
|
}).optional()
|
|
3847
|
-
}),
|
|
4872
|
+
}), qr = Y.extend({
|
|
3848
4873
|
type: e.literal("CHOICE"),
|
|
3849
4874
|
config: e.object({
|
|
3850
4875
|
options: e.array(e.object({
|
|
@@ -3855,7 +4880,7 @@ var br = e.object({
|
|
|
3855
4880
|
multiple: e.boolean().optional(),
|
|
3856
4881
|
default_value: e.union([e.string(), e.array(e.string())]).optional()
|
|
3857
4882
|
}).optional()
|
|
3858
|
-
}),
|
|
4883
|
+
}), Jr = Y.extend({
|
|
3859
4884
|
type: e.literal("CODE"),
|
|
3860
4885
|
config: e.object({
|
|
3861
4886
|
length: e.number().int().positive().max(100).optional(),
|
|
@@ -3872,7 +4897,7 @@ var br = e.object({
|
|
|
3872
4897
|
message: "default_value is longer than the configured length",
|
|
3873
4898
|
path: ["default_value"]
|
|
3874
4899
|
}).optional()
|
|
3875
|
-
}),
|
|
4900
|
+
}), Yr = Y.extend({
|
|
3876
4901
|
type: e.literal("CUSTOM"),
|
|
3877
4902
|
config: e.object({
|
|
3878
4903
|
component: e.string().optional(),
|
|
@@ -3880,7 +4905,7 @@ var br = e.object({
|
|
|
3880
4905
|
schema: e.record(e.string(), e.any()).optional(),
|
|
3881
4906
|
code: e.string().optional()
|
|
3882
4907
|
})
|
|
3883
|
-
}),
|
|
4908
|
+
}), Xr = Y.extend({
|
|
3884
4909
|
type: e.literal("DATE"),
|
|
3885
4910
|
config: e.object({
|
|
3886
4911
|
format: e.string().optional(),
|
|
@@ -3888,7 +4913,7 @@ var br = e.object({
|
|
|
3888
4913
|
max: e.string().optional(),
|
|
3889
4914
|
default_value: e.string().optional()
|
|
3890
4915
|
}).optional()
|
|
3891
|
-
}),
|
|
4916
|
+
}), Zr = Y.extend({
|
|
3892
4917
|
type: e.literal("DROPDOWN"),
|
|
3893
4918
|
config: e.object({
|
|
3894
4919
|
options: e.array(e.object({
|
|
@@ -3900,26 +4925,26 @@ var br = e.object({
|
|
|
3900
4925
|
multiple: e.boolean().optional(),
|
|
3901
4926
|
default_value: e.union([e.string(), e.array(e.string())]).optional()
|
|
3902
4927
|
}).optional()
|
|
3903
|
-
}),
|
|
4928
|
+
}), Qr = Y.extend({
|
|
3904
4929
|
type: e.literal("EMAIL"),
|
|
3905
4930
|
config: e.object({
|
|
3906
4931
|
placeholder: e.string().optional(),
|
|
3907
4932
|
default_value: e.string().optional()
|
|
3908
4933
|
}).optional()
|
|
3909
|
-
}),
|
|
4934
|
+
}), $r = Y.extend({
|
|
3910
4935
|
type: e.literal("FILE"),
|
|
3911
4936
|
config: e.object({
|
|
3912
4937
|
accept: e.string().optional(),
|
|
3913
4938
|
max_size: e.number().optional(),
|
|
3914
4939
|
multiple: e.boolean().optional()
|
|
3915
4940
|
}).optional()
|
|
3916
|
-
}),
|
|
4941
|
+
}), ei = Y.extend({
|
|
3917
4942
|
type: e.literal("LEGAL"),
|
|
3918
4943
|
config: e.object({
|
|
3919
4944
|
text: e.string(),
|
|
3920
4945
|
html: e.boolean().optional()
|
|
3921
4946
|
}).optional()
|
|
3922
|
-
}),
|
|
4947
|
+
}), ti = Y.extend({
|
|
3923
4948
|
type: e.literal("NUMBER"),
|
|
3924
4949
|
config: e.object({
|
|
3925
4950
|
placeholder: e.string().optional(),
|
|
@@ -3928,7 +4953,7 @@ var br = e.object({
|
|
|
3928
4953
|
step: e.number().optional(),
|
|
3929
4954
|
default_value: e.string().optional()
|
|
3930
4955
|
}).optional()
|
|
3931
|
-
}),
|
|
4956
|
+
}), ni = Y.extend({
|
|
3932
4957
|
type: e.literal("PASSWORD"),
|
|
3933
4958
|
config: e.object({
|
|
3934
4959
|
placeholder: e.string().optional(),
|
|
@@ -3937,13 +4962,13 @@ var br = e.object({
|
|
|
3937
4962
|
forgot_password_link: e.string().optional(),
|
|
3938
4963
|
default_value: e.string().optional()
|
|
3939
4964
|
}).optional()
|
|
3940
|
-
}),
|
|
4965
|
+
}), ri = Y.extend({
|
|
3941
4966
|
type: e.literal("PAYMENT"),
|
|
3942
4967
|
config: e.object({
|
|
3943
4968
|
provider: e.string().optional(),
|
|
3944
4969
|
currency: e.string().optional()
|
|
3945
4970
|
}).optional()
|
|
3946
|
-
}),
|
|
4971
|
+
}), ii = Y.extend({
|
|
3947
4972
|
type: e.literal("SOCIAL"),
|
|
3948
4973
|
config: e.object({
|
|
3949
4974
|
providers: e.array(e.string()).optional(),
|
|
@@ -3952,10 +4977,12 @@ var br = e.object({
|
|
|
3952
4977
|
strategy: e.string().optional(),
|
|
3953
4978
|
display_name: e.string().optional(),
|
|
3954
4979
|
icon_url: e.string().optional(),
|
|
3955
|
-
href: e.string().optional()
|
|
4980
|
+
href: e.string().optional(),
|
|
4981
|
+
last_used: e.boolean().optional(),
|
|
4982
|
+
last_used_label: e.string().optional()
|
|
3956
4983
|
})).optional()
|
|
3957
4984
|
}).optional()
|
|
3958
|
-
}),
|
|
4985
|
+
}), ai = Y.extend({
|
|
3959
4986
|
type: e.literal("TEL"),
|
|
3960
4987
|
config: e.object({
|
|
3961
4988
|
placeholder: e.string().optional(),
|
|
@@ -3963,7 +4990,7 @@ var br = e.object({
|
|
|
3963
4990
|
default_value: e.string().optional(),
|
|
3964
4991
|
allow_email: e.boolean().optional()
|
|
3965
4992
|
}).optional()
|
|
3966
|
-
}),
|
|
4993
|
+
}), oi = Y.extend({
|
|
3967
4994
|
type: e.literal("TEXT"),
|
|
3968
4995
|
config: e.object({
|
|
3969
4996
|
placeholder: e.string().optional(),
|
|
@@ -3971,56 +4998,71 @@ var br = e.object({
|
|
|
3971
4998
|
max_length: e.number().optional(),
|
|
3972
4999
|
default_value: e.string().optional()
|
|
3973
5000
|
}).optional()
|
|
3974
|
-
}),
|
|
5001
|
+
}), si = Y.extend({
|
|
3975
5002
|
type: e.literal("COUNTRY"),
|
|
3976
5003
|
config: e.object({
|
|
3977
5004
|
placeholder: e.string().optional(),
|
|
3978
5005
|
default_value: e.string().optional()
|
|
3979
5006
|
}).optional()
|
|
3980
|
-
}),
|
|
5007
|
+
}), ci = Y.extend({
|
|
3981
5008
|
type: e.literal("URL"),
|
|
3982
5009
|
config: e.object({
|
|
3983
5010
|
placeholder: e.string().optional(),
|
|
3984
5011
|
default_value: e.string().optional()
|
|
3985
5012
|
}).optional()
|
|
3986
|
-
}),
|
|
3987
|
-
xr,
|
|
3988
|
-
Sr,
|
|
3989
|
-
Cr,
|
|
3990
|
-
wr,
|
|
3991
|
-
Tr,
|
|
3992
|
-
Er,
|
|
3993
|
-
Dr,
|
|
3994
|
-
Or
|
|
3995
|
-
]), Qr = e.discriminatedUnion("type", [
|
|
3996
|
-
Ar,
|
|
3997
|
-
jr,
|
|
3998
|
-
Mr
|
|
3999
|
-
]), $r = e.discriminatedUnion("type", [
|
|
5013
|
+
}), li = e.discriminatedUnion("type", [
|
|
4000
5014
|
Nr,
|
|
4001
5015
|
Pr,
|
|
4002
5016
|
Fr,
|
|
4003
5017
|
Ir,
|
|
4004
|
-
Yr,
|
|
4005
5018
|
Lr,
|
|
4006
5019
|
Rr,
|
|
4007
5020
|
zr,
|
|
4008
|
-
Br
|
|
4009
|
-
|
|
5021
|
+
Br
|
|
5022
|
+
]), ui = e.discriminatedUnion("type", [
|
|
4010
5023
|
Hr,
|
|
4011
5024
|
Ur,
|
|
4012
|
-
Wr
|
|
5025
|
+
Wr
|
|
5026
|
+
]), di = e.discriminatedUnion("type", [
|
|
4013
5027
|
Gr,
|
|
4014
5028
|
Kr,
|
|
4015
5029
|
qr,
|
|
4016
5030
|
Jr,
|
|
4017
|
-
|
|
4018
|
-
|
|
5031
|
+
si,
|
|
5032
|
+
Yr,
|
|
5033
|
+
Xr,
|
|
4019
5034
|
Zr,
|
|
4020
5035
|
Qr,
|
|
4021
|
-
$r
|
|
5036
|
+
$r,
|
|
5037
|
+
ei,
|
|
5038
|
+
ti,
|
|
5039
|
+
ni,
|
|
5040
|
+
ri,
|
|
5041
|
+
ii,
|
|
5042
|
+
ai,
|
|
5043
|
+
oi,
|
|
5044
|
+
ci
|
|
5045
|
+
]), fi = e.union([
|
|
5046
|
+
li,
|
|
5047
|
+
ui,
|
|
5048
|
+
di
|
|
4022
5049
|
]);
|
|
4023
|
-
|
|
5050
|
+
new Set([
|
|
5051
|
+
"BOOLEAN",
|
|
5052
|
+
"CARDS",
|
|
5053
|
+
"CHOICE",
|
|
5054
|
+
"CODE",
|
|
5055
|
+
"COUNTRY",
|
|
5056
|
+
"DATE",
|
|
5057
|
+
"DROPDOWN",
|
|
5058
|
+
"EMAIL",
|
|
5059
|
+
"LEGAL",
|
|
5060
|
+
"NUMBER",
|
|
5061
|
+
"PASSWORD",
|
|
5062
|
+
"TEL",
|
|
5063
|
+
"TEXT",
|
|
5064
|
+
"URL"
|
|
5065
|
+
]), e.object({
|
|
4024
5066
|
id: e.string(),
|
|
4025
5067
|
type: e.literal("submit"),
|
|
4026
5068
|
label: e.string(),
|
|
@@ -4033,7 +5075,7 @@ e.object({
|
|
|
4033
5075
|
var X = e.object({
|
|
4034
5076
|
x: e.number(),
|
|
4035
5077
|
y: e.number()
|
|
4036
|
-
}),
|
|
5078
|
+
}), pi = e.object({
|
|
4037
5079
|
id: e.string(),
|
|
4038
5080
|
type: e.literal("FLOW"),
|
|
4039
5081
|
coordinates: X,
|
|
@@ -4042,7 +5084,7 @@ var X = e.object({
|
|
|
4042
5084
|
flow_id: e.string().max(30),
|
|
4043
5085
|
next_node: e.string().optional()
|
|
4044
5086
|
})
|
|
4045
|
-
}),
|
|
5087
|
+
}), mi = e.object({
|
|
4046
5088
|
id: e.string(),
|
|
4047
5089
|
type: e.literal("ROUTER"),
|
|
4048
5090
|
coordinates: X,
|
|
@@ -4056,20 +5098,20 @@ var X = e.object({
|
|
|
4056
5098
|
})),
|
|
4057
5099
|
fallback: e.string()
|
|
4058
5100
|
})
|
|
4059
|
-
}),
|
|
5101
|
+
}), hi = e.object({
|
|
4060
5102
|
id: e.string(),
|
|
4061
5103
|
type: e.literal("STEP"),
|
|
4062
5104
|
coordinates: X,
|
|
4063
5105
|
alias: e.string().min(1).max(150).optional(),
|
|
4064
5106
|
config: e.object({
|
|
4065
|
-
components: e.array(
|
|
5107
|
+
components: e.array(fi),
|
|
4066
5108
|
next_node: e.string().optional()
|
|
4067
5109
|
})
|
|
4068
|
-
}),
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
]),
|
|
5110
|
+
}), gi = e.discriminatedUnion("type", [
|
|
5111
|
+
pi,
|
|
5112
|
+
mi,
|
|
5113
|
+
hi
|
|
5114
|
+
]), _i = e.object({
|
|
4073
5115
|
name: e.string().openapi({ description: "The name of the form" }),
|
|
4074
5116
|
messages: e.object({
|
|
4075
5117
|
errors: e.record(e.string(), e.any()).optional(),
|
|
@@ -4080,7 +5122,7 @@ var X = e.object({
|
|
|
4080
5122
|
default: e.string().optional()
|
|
4081
5123
|
}).optional(),
|
|
4082
5124
|
translations: e.record(e.string(), e.any()).optional(),
|
|
4083
|
-
nodes: e.array(
|
|
5125
|
+
nodes: e.array(gi).optional(),
|
|
4084
5126
|
start: e.object({
|
|
4085
5127
|
hidden_fields: e.array(e.object({
|
|
4086
5128
|
key: e.string(),
|
|
@@ -4104,8 +5146,8 @@ var X = e.object({
|
|
|
4104
5146
|
sdk_src: e.string().optional()
|
|
4105
5147
|
}).optional()
|
|
4106
5148
|
}).openapi({ description: "Schema for flow-based forms (matches Auth0 Forms structure)" });
|
|
4107
|
-
G.extend(
|
|
4108
|
-
var
|
|
5149
|
+
G.extend(_i.shape).extend({ id: e.string() });
|
|
5150
|
+
var vi = e.object({
|
|
4109
5151
|
id: e.number().optional(),
|
|
4110
5152
|
text: e.string(),
|
|
4111
5153
|
type: e.enum([
|
|
@@ -4114,7 +5156,7 @@ var oi = e.object({
|
|
|
4114
5156
|
"success",
|
|
4115
5157
|
"warning"
|
|
4116
5158
|
])
|
|
4117
|
-
}),
|
|
5159
|
+
}), yi = e.object({
|
|
4118
5160
|
id: e.string().optional(),
|
|
4119
5161
|
text: e.string(),
|
|
4120
5162
|
href: e.string(),
|
|
@@ -4126,12 +5168,12 @@ e.object({
|
|
|
4126
5168
|
method: e.enum(["POST", "GET"]),
|
|
4127
5169
|
title: e.string().optional(),
|
|
4128
5170
|
description: e.string().optional(),
|
|
4129
|
-
components: e.array(
|
|
4130
|
-
messages: e.array(
|
|
4131
|
-
links: e.array(
|
|
5171
|
+
components: e.array(fi),
|
|
5172
|
+
messages: e.array(vi).optional(),
|
|
5173
|
+
links: e.array(yi).optional(),
|
|
4132
5174
|
footer: e.string().optional()
|
|
4133
5175
|
});
|
|
4134
|
-
var
|
|
5176
|
+
var bi = e.enum([
|
|
4135
5177
|
"pre-user-registration",
|
|
4136
5178
|
"post-user-registration",
|
|
4137
5179
|
"post-user-login",
|
|
@@ -4139,24 +5181,24 @@ var ci = e.enum([
|
|
|
4139
5181
|
"validate-registration-username",
|
|
4140
5182
|
"pre-user-deletion",
|
|
4141
5183
|
"post-user-deletion"
|
|
4142
|
-
]),
|
|
5184
|
+
]), xi = e.enum([
|
|
4143
5185
|
"pre-user-registration",
|
|
4144
5186
|
"post-user-registration",
|
|
4145
5187
|
"post-user-login",
|
|
4146
5188
|
"validate-registration-username",
|
|
4147
5189
|
"pre-user-deletion",
|
|
4148
5190
|
"post-user-deletion"
|
|
4149
|
-
]),
|
|
5191
|
+
]), Si = e.enum([
|
|
4150
5192
|
"post-user-login",
|
|
4151
5193
|
"post-user-registration",
|
|
4152
5194
|
"post-user-update",
|
|
4153
5195
|
"credentials-exchange"
|
|
4154
|
-
]),
|
|
5196
|
+
]), Ci = e.enum([
|
|
4155
5197
|
"post-user-login",
|
|
4156
5198
|
"credentials-exchange",
|
|
4157
5199
|
"pre-user-registration",
|
|
4158
5200
|
"post-user-registration"
|
|
4159
|
-
]),
|
|
5201
|
+
]), wi = e.enum([
|
|
4160
5202
|
"ensure-username",
|
|
4161
5203
|
"set-preferred-username",
|
|
4162
5204
|
"account-linking"
|
|
@@ -4166,59 +5208,59 @@ var ci = e.enum([
|
|
|
4166
5208
|
priority: e.number().optional(),
|
|
4167
5209
|
hook_id: e.string().optional(),
|
|
4168
5210
|
metadata: e.record(e.string(), e.unknown()).optional()
|
|
4169
|
-
},
|
|
5211
|
+
}, Ti = e.object({
|
|
4170
5212
|
...Z,
|
|
4171
|
-
trigger_id:
|
|
5213
|
+
trigger_id: bi,
|
|
4172
5214
|
url: e.string()
|
|
4173
|
-
}),
|
|
5215
|
+
}), Ei = e.object({
|
|
4174
5216
|
...Z,
|
|
4175
|
-
trigger_id:
|
|
5217
|
+
trigger_id: xi,
|
|
4176
5218
|
form_id: e.string()
|
|
4177
|
-
}),
|
|
5219
|
+
}), Di = e.object({
|
|
4178
5220
|
...Z,
|
|
4179
|
-
trigger_id:
|
|
4180
|
-
template_id:
|
|
4181
|
-
}),
|
|
5221
|
+
trigger_id: Si,
|
|
5222
|
+
template_id: wi
|
|
5223
|
+
}), Oi = e.object({
|
|
4182
5224
|
...Z,
|
|
4183
|
-
trigger_id:
|
|
5225
|
+
trigger_id: Ci,
|
|
4184
5226
|
code_id: e.string()
|
|
4185
5227
|
});
|
|
4186
5228
|
e.union([
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
5229
|
+
Ti,
|
|
5230
|
+
Ei,
|
|
5231
|
+
Di,
|
|
5232
|
+
Oi
|
|
4191
5233
|
]);
|
|
4192
|
-
var
|
|
5234
|
+
var ki = e.object({
|
|
4193
5235
|
...Z,
|
|
4194
|
-
trigger_id:
|
|
5236
|
+
trigger_id: bi
|
|
4195
5237
|
}).extend(G.shape).extend({
|
|
4196
5238
|
hook_id: e.string(),
|
|
4197
5239
|
url: e.string()
|
|
4198
|
-
}),
|
|
5240
|
+
}), Ai = e.object({
|
|
4199
5241
|
...Z,
|
|
4200
|
-
trigger_id:
|
|
5242
|
+
trigger_id: xi
|
|
4201
5243
|
}).extend(G.shape).extend({
|
|
4202
5244
|
hook_id: e.string(),
|
|
4203
5245
|
form_id: e.string()
|
|
4204
|
-
}),
|
|
5246
|
+
}), ji = e.object({
|
|
4205
5247
|
...Z,
|
|
4206
|
-
trigger_id:
|
|
5248
|
+
trigger_id: Si
|
|
4207
5249
|
}).extend(G.shape).extend({
|
|
4208
5250
|
hook_id: e.string(),
|
|
4209
|
-
template_id:
|
|
4210
|
-
}),
|
|
5251
|
+
template_id: wi
|
|
5252
|
+
}), Mi = e.object({
|
|
4211
5253
|
...Z,
|
|
4212
|
-
trigger_id:
|
|
5254
|
+
trigger_id: Ci
|
|
4213
5255
|
}).extend(G.shape).extend({
|
|
4214
5256
|
hook_id: e.string(),
|
|
4215
5257
|
code_id: e.string()
|
|
4216
5258
|
});
|
|
4217
5259
|
e.union([
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
5260
|
+
ki,
|
|
5261
|
+
Ai,
|
|
5262
|
+
ji,
|
|
5263
|
+
Mi
|
|
4222
5264
|
]), e.object({
|
|
4223
5265
|
code: e.string().max(1e5),
|
|
4224
5266
|
secrets: e.record(e.string(), e.string()).optional()
|
|
@@ -4226,11 +5268,11 @@ e.union([
|
|
|
4226
5268
|
id: e.string(),
|
|
4227
5269
|
tenant_id: e.string()
|
|
4228
5270
|
}).extend(G.shape);
|
|
4229
|
-
var
|
|
5271
|
+
var Ni = e.object({ name: e.string().optional() }), Pi = e.object({ email: e.string().optional() }), Fi = e.object({
|
|
4230
5272
|
id: e.string().optional(),
|
|
4231
5273
|
organization_id: e.string().max(50),
|
|
4232
|
-
inviter:
|
|
4233
|
-
invitee:
|
|
5274
|
+
inviter: Ni,
|
|
5275
|
+
invitee: Pi,
|
|
4234
5276
|
invitation_url: e.string().url(),
|
|
4235
5277
|
client_id: e.string(),
|
|
4236
5278
|
connection_id: e.string().optional(),
|
|
@@ -4246,8 +5288,8 @@ e.object({
|
|
|
4246
5288
|
created_at: e.string().datetime(),
|
|
4247
5289
|
expires_at: e.string().datetime(),
|
|
4248
5290
|
ticket_id: e.string().optional()
|
|
4249
|
-
}).extend(
|
|
4250
|
-
var
|
|
5291
|
+
}).extend(Fi.omit({ id: !0 }).shape);
|
|
5292
|
+
var Ii = e.object({
|
|
4251
5293
|
alg: e.enum([
|
|
4252
5294
|
"RS256",
|
|
4253
5295
|
"RS384",
|
|
@@ -4289,7 +5331,7 @@ var wi = e.object({
|
|
|
4289
5331
|
message: `EC JWK is missing required member '${r}'`
|
|
4290
5332
|
});
|
|
4291
5333
|
});
|
|
4292
|
-
e.object({ keys: e.array(
|
|
5334
|
+
e.object({ keys: e.array(Ii) }), e.object({
|
|
4293
5335
|
issuer: e.string(),
|
|
4294
5336
|
authorization_endpoint: e.string(),
|
|
4295
5337
|
token_endpoint: e.string(),
|
|
@@ -4316,28 +5358,28 @@ e.object({ keys: e.array(wi) }), e.object({
|
|
|
4316
5358
|
backchannel_logout_supported: e.boolean().optional(),
|
|
4317
5359
|
backchannel_logout_session_supported: e.boolean().optional()
|
|
4318
5360
|
});
|
|
4319
|
-
var
|
|
5361
|
+
var Li = /* @__PURE__ */ function(e) {
|
|
4320
5362
|
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;
|
|
4321
|
-
}({}),
|
|
5363
|
+
}({}), Ri = e.nativeEnum(Li), zi = e.object({
|
|
4322
5364
|
strategy: e.string(),
|
|
4323
5365
|
strategy_type: e.string()
|
|
4324
5366
|
});
|
|
4325
5367
|
e.object({
|
|
4326
5368
|
csrf_token: e.string(),
|
|
4327
5369
|
auth0Client: e.string().optional(),
|
|
4328
|
-
authParams:
|
|
5370
|
+
authParams: wr,
|
|
4329
5371
|
expires_at: e.string(),
|
|
4330
5372
|
deleted_at: e.string().optional(),
|
|
4331
5373
|
ip: e.string().optional(),
|
|
4332
5374
|
useragent: e.string().optional(),
|
|
4333
5375
|
session_id: e.string().optional(),
|
|
4334
5376
|
authorization_url: e.string().optional(),
|
|
4335
|
-
state:
|
|
5377
|
+
state: Ri.optional().default("pending"),
|
|
4336
5378
|
state_data: e.string().optional(),
|
|
4337
5379
|
failure_reason: e.string().optional(),
|
|
4338
5380
|
user_id: e.string().optional(),
|
|
4339
5381
|
auth_connection: e.string().optional(),
|
|
4340
|
-
auth_strategy:
|
|
5382
|
+
auth_strategy: zi.optional(),
|
|
4341
5383
|
authenticated_at: e.string().optional()
|
|
4342
5384
|
}).openapi({ description: "This represents a login sesion" }).extend({
|
|
4343
5385
|
id: e.string().openapi({ description: "This is is used as the state in the universal login" }),
|
|
@@ -4504,17 +5546,17 @@ var Q = {
|
|
|
4504
5546
|
WARNING_DURING_LOGIN: "w",
|
|
4505
5547
|
WARNING_SENDING_NOTIFICATION: "wn",
|
|
4506
5548
|
WARNING_USER_MANAGEMENT: "wum"
|
|
4507
|
-
},
|
|
5549
|
+
}, Bi = e.string().refine((e) => Object.values(Q).includes(e), { message: "Invalid log type" });
|
|
4508
5550
|
Q.ACLS_SUMMARY, Q.ACTIONS_EXECUTION_FAILED, Q.API_LIMIT, Q.API_LIMIT_WARNING, Q.APPI, Q.CIBA_EXCHANGE_FAILED, Q.CIBA_EXCHANGE_SUCCEEDED, Q.CIBA_START_FAILED, Q.CIBA_START_SUCCEEDED, Q.CODE_LINK_SENT, Q.CODE_SENT, Q.DEPRECATION_NOTICE, Q.FAILED_LOGIN, Q.FAILED_BY_CONNECTOR, Q.FAILED_CHANGE_EMAIL, Q.FAILED_BY_CORS, Q.FAILED_CROSS_ORIGIN_AUTHENTICATION, Q.FAILED_CHANGE_PASSWORD, Q.FAILED_POST_CHANGE_PASSWORD_HOOK, Q.FAILED_CHANGE_PHONE_NUMBER, Q.FAILED_CHANGE_PASSWORD_REQUEST, Q.FAILED_CONNECTOR_PROVISIONING, Q.FAILED_CHANGE_USERNAME, Q.FAILED_DELEGATION, Q.FAILED_DEVICE_ACTIVATION, Q.FAILED_DEVICE_AUTHORIZATION_REQUEST, Q.USER_CANCELED_DEVICE_CONFIRMATION, Q.FAILED_USER_DELETION, Q.FAILED_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS, Q.FAILED_EXCHANGE_CUSTOM_TOKEN, Q.FAILED_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN, Q.FAILED_FEDERATED_LOGOUT, Q.FAILED_EXCHANGE_NATIVE_SOCIAL_LOGIN, Q.FAILED_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_ROTATING_REFRESH_TOKEN, Q.FAILED_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_SUBJECT_TOKEN_FOR_ACCESS_TOKEN, Q.FAILED_HOOK, Q.FAILED_IMPERSONATION, Q.FAILED_INVITE_ACCEPT, Q.FAILED_LOGOUT, Q.FLOWS_EXECUTION_COMPLETED, Q.FLOWS_EXECUTION_FAILED, Q.FAILED_SENDING_NOTIFICATION, Q.FORMS_SUBMISSION_FAILED, Q.FORMS_SUBMISSION_SUCCEEDED, Q.FAILED_LOGIN_INCORRECT_PASSWORD, Q.FAILED_PUSHED_AUTHORIZATION_REQUEST, Q.FAILED_POST_USER_REGISTRATION_HOOK, Q.FAILED_SIGNUP, Q.FAILED_SILENT_AUTH, Q.FAILED_LOGIN_INVALID_EMAIL_USERNAME, Q.FAILED_USERS_IMPORT, Q.FAILED_VERIFICATION_EMAIL, Q.FAILED_VERIFICATION_EMAIL_REQUEST, Q.EMAIL_VERIFICATION_CONFIRMED, Q.EMAIL_VERIFICATION_FAILED, Q.MFA_AUTH_FAILED, Q.MFA_AUTH_REJECTED, Q.MFA_AUTH_SUCCESS, Q.MFA_ENROLLMENT_COMPLETE, Q.TOO_MANY_MFA_FAILURES, Q.MFA_RECOVERY_FAILED, Q.MFA_RECOVERY_RATE_LIMIT_EXCEED, Q.MFA_RECOVERY_SUCCESS, Q.MFA_EMAIL_SENT, Q.EMAIL_VERIFICATION_SENT, Q.EMAIL_VERIFICATION_SEND_FAILURE, Q.PUSH_NOTIFICATION_SENT, Q.ERROR_SENDING_MFA_PUSH_NOTIFICATION, Q.MFA_SMS_SENT, Q.ERROR_SENDING_MFA_SMS, Q.MFA_VOICE_CALL_SUCCESS, Q.MFA_VOICE_CALL_FAILED, Q.SECOND_FACTOR_STARTED, Q.MFA_ENROLL_STARTED, Q.MFA_ENROLLMENT_FAILED, Q.GUARDIAN_TENANT_UPDATE, Q.UNENROLL_DEVICE_ACCOUNT, Q.UPDATE_DEVICE_ACCOUNT, Q.WEBAUTHN_CHALLENGE_FAILED, Q.WEBAUTHN_ENROLLMENT_FAILED, Q.FAILED_KMS_API_OPERATION, Q.SUCCESS_KMS_API_OPERATION, Q.KMS_KEY_STATE_CHANGED, Q.TOO_MANY_CALLS_TO_DELEGATION, Q.BLOCKED_IP_ADDRESS, Q.BLOCKED_ACCOUNT_IP, Q.BLOCKED_ACCOUNT_EMAIL, Q.INFORMATION, Q.MFA_REQUIRED, Q.MANAGEMENT_API_READ_OPERATION, Q.FAILED_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT, Q.SUCCESSFUL_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT, Q.FAILED_OIDC_BACKCHANNEL_LOGOUT, Q.SUCCESSFUL_OIDC_BACKCHANNEL_LOGOUT, Q.ORGANIZATION_MEMBER_ADDED, Q.PASSKEY_CHALLENGE_FAILED, Q.PASSKEY_CHALLENGE_STARTED, Q.PRE_LOGIN_ASSESSMENT, Q.BREACHED_PASSWORD, Q.BREACHED_PASSWORD_ON_RESET, Q.SUCCESS_RESOURCE_CLEANUP, Q.RICH_CONSENTS_ACCESS_ERROR, Q.SUCCESS_LOGIN, Q.SUCCESS_API_OPERATION, Q.FAILED_API_OPERATION, Q.SUCCESS_CHANGE_EMAIL, Q.SUCCESS_CROSS_ORIGIN_AUTHENTICATION, Q.SUCCESS_CHANGE_PASSWORD, Q.SUCCESS_CHANGE_PHONE_NUMBER, Q.SUCCESS_CHANGE_PASSWORD_REQUEST, Q.SUCCESS_CHANGE_USERNAME, Q.SUCCESS_CREDENTIAL_VALIDATION, Q.SUCCESS_DELEGATION, Q.SUCCESS_USER_DELETION, Q.SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS, Q.SUCCESS_EXCHANGE_CUSTOM_TOKEN, Q.SUCCESS_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_NATIVE_SOCIAL_LOGIN, Q.SUCCESS_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSKEY_OOB_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSKEY_OTP_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSKEY_MFA_RECOVERY_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_SUBJECT_TOKEN_FOR_ACCESS_TOKEN, Q.SUCCESS_IMPERSONATION, Q.SUCCESSFULLY_ACCEPTED_USER_INVITE, Q.BREACHED_PASSWORD_ON_SIGNUP, Q.SUCCESS_LOGOUT, Q.SUCCESS_HOOK, Q.SUCCESS_PASSWORD_MIGRATION, Q.SUCCESS_REVOCATION, Q.SUCCESS_SIGNUP, Q.FAILED_SS_SSO_OPERATION, Q.INFORMATION_FROM_SS_SSO_OPERATION, Q.SUCCESS_SS_SSO_OPERATION, Q.SUCCESS_SILENT_AUTH, Q.SUCCESSFUL_SCIM_OPERATION, Q.SUCCESSFULLY_IMPORTED_USERS, Q.SUCCESS_VERIFICATION_EMAIL, Q.SUCCESS_VERIFICATION_EMAIL_REQUEST, Q.MAX_AMOUNT_OF_AUTHENTICATORS, Q.USER_LOGIN_BLOCK_RELEASED, Q.FAILED_UNIVERSAL_LOGOUT, Q.SUCCESSFUL_UNIVERSAL_LOGOUT, Q.WARNING_DURING_LOGIN, Q.WARNING_SENDING_NOTIFICATION, Q.WARNING_USER_MANAGEMENT, (() => {
|
|
4509
5551
|
let e = {};
|
|
4510
5552
|
for (let [t, n] of Object.entries(Q)) t.startsWith("SUCCESS_") || t.startsWith("SUCCESSFUL_") || t.startsWith("SUCCESSFULLY_") || t.endsWith("_SUCCEEDED") || t.endsWith("_COMPLETED") ? e[n] = "success" : t.startsWith("FAILED_") || t.startsWith("ERROR_") || t.startsWith("BREACHED_") || t.startsWith("BLOCKED_") || t === "MFA_AUTH_FAILED" || t === "MFA_AUTH_REJECTED" || t === "MFA_RECOVERY_FAILED" || t === "MFA_ENROLLMENT_FAILED" || t === "EMAIL_VERIFICATION_FAILED" || t === "WEBAUTHN_CHALLENGE_FAILED" || t === "WEBAUTHN_ENROLLMENT_FAILED" || t === "PASSKEY_CHALLENGE_FAILED" || t === "FLOWS_EXECUTION_FAILED" || t === "FORMS_SUBMISSION_FAILED" || t === "CIBA_EXCHANGE_FAILED" || t === "CIBA_START_FAILED" || t === "ACTIONS_EXECUTION_FAILED" || t === "RICH_CONSENTS_ACCESS_ERROR" || t === "USER_CANCELED_DEVICE_CONFIRMATION" || t === "TOO_MANY_MFA_FAILURES" || t === "MFA_RECOVERY_RATE_LIMIT_EXCEED" || t === "API_LIMIT" || t === "MAX_AMOUNT_OF_AUTHENTICATORS" ? e[n] = "failure" : t.startsWith("WARNING_") || t === "API_LIMIT_WARNING" || t === "DEPRECATION_NOTICE" || t === "PRE_LOGIN_ASSESSMENT" ? e[n] = "warning" : t === "CODE_SENT" || t === "CODE_LINK_SENT" || t === "MFA_EMAIL_SENT" || t === "MFA_SMS_SENT" || t === "EMAIL_VERIFICATION_SENT" || t === "PUSH_NOTIFICATION_SENT" ? e[n] = "code_sent" : t === "INFORMATION" || t === "INFORMATION_FROM_SS_SSO_OPERATION" || t === "MANAGEMENT_API_READ_OPERATION" || t === "APPI" || t === "ACLS_SUMMARY" || t === "ORGANIZATION_MEMBER_ADDED" ? e[n] = "info" : e[n] = "other";
|
|
4511
5553
|
return e;
|
|
4512
5554
|
})();
|
|
4513
|
-
var
|
|
5555
|
+
var Vi = e.object({
|
|
4514
5556
|
name: e.string(),
|
|
4515
5557
|
version: e.string(),
|
|
4516
5558
|
env: e.object({ node: e.string().optional() }).optional()
|
|
4517
|
-
}),
|
|
5559
|
+
}), Hi = e.object({
|
|
4518
5560
|
country_code: e.string().length(2),
|
|
4519
5561
|
city_name: e.string(),
|
|
4520
5562
|
latitude: e.string(),
|
|
@@ -4523,7 +5565,7 @@ var ki = e.object({
|
|
|
4523
5565
|
continent_code: e.string()
|
|
4524
5566
|
});
|
|
4525
5567
|
e.object({
|
|
4526
|
-
type:
|
|
5568
|
+
type: Bi,
|
|
4527
5569
|
date: e.string(),
|
|
4528
5570
|
description: e.string().optional(),
|
|
4529
5571
|
ip: e.string().optional(),
|
|
@@ -4541,63 +5583,63 @@ e.object({
|
|
|
4541
5583
|
strategy: e.string().optional(),
|
|
4542
5584
|
strategy_type: e.string().optional(),
|
|
4543
5585
|
hostname: e.string().optional(),
|
|
4544
|
-
auth0_client:
|
|
5586
|
+
auth0_client: Vi.optional(),
|
|
4545
5587
|
log_id: e.string().optional(),
|
|
4546
|
-
location_info:
|
|
5588
|
+
location_info: Hi.optional()
|
|
4547
5589
|
}).extend({ log_id: e.string() });
|
|
4548
|
-
var
|
|
5590
|
+
var Ui = e.enum([
|
|
4549
5591
|
"http",
|
|
4550
5592
|
"eventbridge",
|
|
4551
5593
|
"eventgrid",
|
|
4552
5594
|
"splunk",
|
|
4553
5595
|
"datadog",
|
|
4554
5596
|
"sumo"
|
|
4555
|
-
]),
|
|
5597
|
+
]), Wi = e.enum([
|
|
4556
5598
|
"active",
|
|
4557
5599
|
"paused",
|
|
4558
5600
|
"suspended"
|
|
4559
|
-
]),
|
|
5601
|
+
]), Gi = e.object({
|
|
4560
5602
|
type: e.string(),
|
|
4561
5603
|
name: e.string()
|
|
4562
5604
|
});
|
|
4563
5605
|
e.object({
|
|
4564
5606
|
name: e.string(),
|
|
4565
|
-
type:
|
|
4566
|
-
status:
|
|
5607
|
+
type: Ui,
|
|
5608
|
+
status: Wi.optional(),
|
|
4567
5609
|
sink: e.record(e.string(), e.unknown()),
|
|
4568
|
-
filters: e.array(
|
|
5610
|
+
filters: e.array(Gi).optional(),
|
|
4569
5611
|
isPriority: e.boolean().optional()
|
|
4570
5612
|
}).extend({
|
|
4571
5613
|
id: e.string(),
|
|
4572
|
-
status:
|
|
5614
|
+
status: Wi,
|
|
4573
5615
|
created_at: e.string().optional(),
|
|
4574
5616
|
updated_at: e.string().optional()
|
|
4575
5617
|
});
|
|
4576
|
-
var
|
|
5618
|
+
var Ki = e.enum([
|
|
4577
5619
|
"auth0",
|
|
4578
5620
|
"cognito",
|
|
4579
5621
|
"okta",
|
|
4580
5622
|
"oidc"
|
|
4581
|
-
]),
|
|
5623
|
+
]), qi = e.object({
|
|
4582
5624
|
domain: e.string(),
|
|
4583
5625
|
client_id: e.string(),
|
|
4584
5626
|
client_secret: e.string(),
|
|
4585
5627
|
audience: e.string().optional(),
|
|
4586
5628
|
scope: e.string().optional()
|
|
4587
|
-
}),
|
|
5629
|
+
}), Ji = e.object({
|
|
4588
5630
|
id: e.string().optional(),
|
|
4589
5631
|
name: e.string(),
|
|
4590
|
-
provider:
|
|
5632
|
+
provider: Ki,
|
|
4591
5633
|
connection: e.string(),
|
|
4592
5634
|
enabled: e.boolean().default(!0),
|
|
4593
|
-
credentials:
|
|
5635
|
+
credentials: qi
|
|
4594
5636
|
});
|
|
4595
5637
|
e.object({
|
|
4596
5638
|
id: e.string(),
|
|
4597
5639
|
created_at: e.string(),
|
|
4598
5640
|
updated_at: e.string()
|
|
4599
|
-
}).extend(
|
|
4600
|
-
var
|
|
5641
|
+
}).extend(Ji.shape);
|
|
5642
|
+
var Yi = e.object({
|
|
4601
5643
|
enabled: e.boolean().optional(),
|
|
4602
5644
|
shields: e.array(e.string()).optional(),
|
|
4603
5645
|
admin_notification_frequency: e.array(e.string()).optional(),
|
|
@@ -4606,13 +5648,13 @@ var Li = e.object({
|
|
|
4606
5648
|
"pre-user-registration": e.object({ shields: e.array(e.string()).optional() }).optional(),
|
|
4607
5649
|
"pre-change-password": e.object({ shields: e.array(e.string()).optional() }).optional()
|
|
4608
5650
|
}).optional()
|
|
4609
|
-
}),
|
|
5651
|
+
}), Xi = e.object({
|
|
4610
5652
|
enabled: e.boolean().optional(),
|
|
4611
5653
|
shields: e.array(e.string()).optional(),
|
|
4612
5654
|
allowlist: e.array(e.string()).optional(),
|
|
4613
5655
|
mode: e.string().optional(),
|
|
4614
5656
|
max_attempts: e.number().optional()
|
|
4615
|
-
}),
|
|
5657
|
+
}), Zi = e.object({
|
|
4616
5658
|
enabled: e.boolean().optional(),
|
|
4617
5659
|
shields: e.array(e.string()).optional(),
|
|
4618
5660
|
allowlist: e.array(e.string()).optional(),
|
|
@@ -4626,10 +5668,10 @@ var Li = e.object({
|
|
|
4626
5668
|
rate: e.number().optional()
|
|
4627
5669
|
}).optional()
|
|
4628
5670
|
}).optional()
|
|
4629
|
-
}),
|
|
4630
|
-
breached_password_detection:
|
|
4631
|
-
brute_force_protection:
|
|
4632
|
-
suspicious_ip_throttling:
|
|
5671
|
+
}), Qi = e.object({
|
|
5672
|
+
breached_password_detection: Yi.optional(),
|
|
5673
|
+
brute_force_protection: Xi.optional(),
|
|
5674
|
+
suspicious_ip_throttling: Zi.optional()
|
|
4633
5675
|
});
|
|
4634
5676
|
e.object({
|
|
4635
5677
|
id: e.string().optional(),
|
|
@@ -4642,14 +5684,14 @@ e.object({
|
|
|
4642
5684
|
created_at: e.string(),
|
|
4643
5685
|
updated_at: e.string()
|
|
4644
5686
|
});
|
|
4645
|
-
var
|
|
5687
|
+
var $i = e.object({
|
|
4646
5688
|
initial_user_agent: e.string().describe("First user agent of the device from which this user logged in"),
|
|
4647
5689
|
initial_ip: e.string().describe("First IP address associated with this session"),
|
|
4648
5690
|
initial_asn: e.string().describe("First autonomous system number associated with this session"),
|
|
4649
5691
|
last_user_agent: e.string().describe("Last user agent of the device from which this user logged in"),
|
|
4650
5692
|
last_ip: e.string().describe("Last IP address from which this user logged in"),
|
|
4651
5693
|
last_asn: e.string().describe("Last autonomous system number from which this user logged in")
|
|
4652
|
-
}),
|
|
5694
|
+
}), ea = e.object({
|
|
4653
5695
|
id: e.string(),
|
|
4654
5696
|
revoked_at: e.string().optional(),
|
|
4655
5697
|
used_at: e.string().optional(),
|
|
@@ -4657,7 +5699,7 @@ var Vi = e.object({
|
|
|
4657
5699
|
expires_at: e.string().optional(),
|
|
4658
5700
|
login_session_id: e.string(),
|
|
4659
5701
|
idle_expires_at: e.string().optional(),
|
|
4660
|
-
device:
|
|
5702
|
+
device: $i.describe("Metadata related to the device used in the session"),
|
|
4661
5703
|
clients: e.array(e.string()).describe("List of client details for the session")
|
|
4662
5704
|
});
|
|
4663
5705
|
e.object({
|
|
@@ -4665,7 +5707,7 @@ e.object({
|
|
|
4665
5707
|
updated_at: e.string(),
|
|
4666
5708
|
authenticated_at: e.string(),
|
|
4667
5709
|
last_interaction_at: e.string()
|
|
4668
|
-
}).extend(
|
|
5710
|
+
}).extend(ea.shape), e.object({
|
|
4669
5711
|
kid: e.string().openapi({ description: "The key id of the signing key" }),
|
|
4670
5712
|
tenant_id: e.string().optional().openapi({ description: "The tenant the key belongs to. Omitted means the key is shared / control-plane scoped." }),
|
|
4671
5713
|
cert: e.string().openapi({ description: "The public certificate of the signing key" }),
|
|
@@ -4682,7 +5724,7 @@ e.object({
|
|
|
4682
5724
|
connection: e.string().optional().openapi({ description: "The connection identifier associated with the key" }),
|
|
4683
5725
|
type: e.enum(["jwt_signing", "saml_encryption"]).openapi({ description: "The type of the signing key" })
|
|
4684
5726
|
});
|
|
4685
|
-
var
|
|
5727
|
+
var ta = e.object({
|
|
4686
5728
|
id: e.string().optional(),
|
|
4687
5729
|
audience: e.string().optional(),
|
|
4688
5730
|
friendly_name: e.string(),
|
|
@@ -4800,7 +5842,7 @@ var Ui = e.object({
|
|
|
4800
5842
|
"shared_planetscale"
|
|
4801
5843
|
]).optional(),
|
|
4802
5844
|
d1_database_id: e.string().max(64).optional(),
|
|
4803
|
-
attack_protection:
|
|
5845
|
+
attack_protection: Qi.optional(),
|
|
4804
5846
|
mfa: e.object({
|
|
4805
5847
|
policy: e.enum(["never", "always"]).default("never").optional(),
|
|
4806
5848
|
factors: e.object({
|
|
@@ -4831,35 +5873,35 @@ var Ui = e.object({
|
|
|
4831
5873
|
e.object({
|
|
4832
5874
|
created_at: e.string().nullable().transform((e) => e ?? ""),
|
|
4833
5875
|
updated_at: e.string().nullable().transform((e) => e ?? "")
|
|
4834
|
-
}).extend(
|
|
5876
|
+
}).extend(ta.shape).extend({
|
|
4835
5877
|
id: e.string(),
|
|
4836
5878
|
is_control_plane: e.boolean().optional()
|
|
4837
5879
|
});
|
|
4838
|
-
var
|
|
5880
|
+
var na = e.enum([
|
|
4839
5881
|
"provision",
|
|
4840
5882
|
"seed",
|
|
4841
5883
|
"upgrade",
|
|
4842
5884
|
"backup",
|
|
4843
5885
|
"deprovision"
|
|
4844
|
-
]),
|
|
5886
|
+
]), ra = e.enum([
|
|
4845
5887
|
"pending",
|
|
4846
5888
|
"running",
|
|
4847
5889
|
"succeeded",
|
|
4848
5890
|
"failed",
|
|
4849
5891
|
"cancelled"
|
|
4850
|
-
]),
|
|
5892
|
+
]), ia = e.enum(["inline", "cloudflare-workflows"]);
|
|
4851
5893
|
e.object({
|
|
4852
5894
|
tenant_id: e.string().max(255).nullable().default(null),
|
|
4853
5895
|
rollout_id: e.string().max(255).nullable().optional(),
|
|
4854
|
-
kind:
|
|
4855
|
-
engine:
|
|
5896
|
+
kind: na,
|
|
5897
|
+
engine: ia,
|
|
4856
5898
|
engine_instance_id: e.string().max(100).nullable().optional(),
|
|
4857
5899
|
target_worker_version: e.string().max(255).nullable().optional(),
|
|
4858
5900
|
target_database_version: e.string().max(255).nullable().optional(),
|
|
4859
5901
|
initiated_by: e.string().max(255).nullable().optional()
|
|
4860
5902
|
}).extend({
|
|
4861
5903
|
id: e.string(),
|
|
4862
|
-
status:
|
|
5904
|
+
status: ra,
|
|
4863
5905
|
current_step: e.string().max(255).nullable().optional(),
|
|
4864
5906
|
error: e.string().nullable().optional(),
|
|
4865
5907
|
created_at: e.string(),
|
|
@@ -4874,7 +5916,7 @@ e.object({
|
|
|
4874
5916
|
error: !0,
|
|
4875
5917
|
finished_at: !0
|
|
4876
5918
|
}).partial();
|
|
4877
|
-
var
|
|
5919
|
+
var aa = e.enum([
|
|
4878
5920
|
"started",
|
|
4879
5921
|
"succeeded",
|
|
4880
5922
|
"failed",
|
|
@@ -4885,18 +5927,18 @@ var qi = e.enum([
|
|
|
4885
5927
|
e.object({
|
|
4886
5928
|
operation_id: e.string().max(255),
|
|
4887
5929
|
step: e.string().max(255),
|
|
4888
|
-
outcome:
|
|
5930
|
+
outcome: aa,
|
|
4889
5931
|
detail: e.record(e.string(), e.unknown()).nullable().optional(),
|
|
4890
5932
|
attempt: e.number().int().min(1).default(1)
|
|
4891
5933
|
}).extend({
|
|
4892
5934
|
id: e.string(),
|
|
4893
5935
|
created_at: e.string()
|
|
4894
5936
|
});
|
|
4895
|
-
var
|
|
5937
|
+
var oa = e.enum([
|
|
4896
5938
|
"upgrade",
|
|
4897
5939
|
"reseed",
|
|
4898
5940
|
"backup"
|
|
4899
|
-
]),
|
|
5941
|
+
]), sa = e.enum([
|
|
4900
5942
|
"pending",
|
|
4901
5943
|
"canary",
|
|
4902
5944
|
"rolling",
|
|
@@ -4905,7 +5947,7 @@ var Ji = e.enum([
|
|
|
4905
5947
|
"failed"
|
|
4906
5948
|
]);
|
|
4907
5949
|
e.object({
|
|
4908
|
-
kind:
|
|
5950
|
+
kind: oa,
|
|
4909
5951
|
target_worker_version: e.string().max(255).nullable().optional(),
|
|
4910
5952
|
target_database_version: e.string().max(255).nullable().optional(),
|
|
4911
5953
|
wave_size: e.number().int().min(1).default(10),
|
|
@@ -4914,7 +5956,7 @@ e.object({
|
|
|
4914
5956
|
initiated_by: e.string().max(255).nullable().optional()
|
|
4915
5957
|
}).extend({
|
|
4916
5958
|
id: e.string(),
|
|
4917
|
-
status:
|
|
5959
|
+
status: sa,
|
|
4918
5960
|
created_at: e.string(),
|
|
4919
5961
|
updated_at: e.string(),
|
|
4920
5962
|
finished_at: e.string().nullable().optional()
|
|
@@ -4936,7 +5978,7 @@ e.object({
|
|
|
4936
5978
|
code: e.string(),
|
|
4937
5979
|
state: e.string().optional()
|
|
4938
5980
|
});
|
|
4939
|
-
var
|
|
5981
|
+
var ca = e.object({
|
|
4940
5982
|
button_border_radius: e.number(),
|
|
4941
5983
|
button_border_weight: e.number(),
|
|
4942
5984
|
buttons_style: e.enum([
|
|
@@ -4954,7 +5996,7 @@ var Xi = e.object({
|
|
|
4954
5996
|
show_widget_shadow: e.boolean(),
|
|
4955
5997
|
widget_border_weight: e.number(),
|
|
4956
5998
|
widget_corner_radius: e.number()
|
|
4957
|
-
}),
|
|
5999
|
+
}), la = e.object({
|
|
4958
6000
|
base_focus_color: e.string(),
|
|
4959
6001
|
base_hover_color: e.string(),
|
|
4960
6002
|
body_text: e.string(),
|
|
@@ -4981,7 +6023,7 @@ var Xi = e.object({
|
|
|
4981
6023
|
}), $ = e.object({
|
|
4982
6024
|
bold: e.boolean(),
|
|
4983
6025
|
size: e.number()
|
|
4984
|
-
}),
|
|
6026
|
+
}), ua = e.object({
|
|
4985
6027
|
body_text: $,
|
|
4986
6028
|
buttons_text: $,
|
|
4987
6029
|
font_url: e.string(),
|
|
@@ -4991,7 +6033,7 @@ var Xi = e.object({
|
|
|
4991
6033
|
reference_text_size: e.number(),
|
|
4992
6034
|
subtitle: $,
|
|
4993
6035
|
title: $
|
|
4994
|
-
}),
|
|
6036
|
+
}), da = e.object({
|
|
4995
6037
|
background_color: e.string(),
|
|
4996
6038
|
background_image_url: e.string(),
|
|
4997
6039
|
page_layout: e.enum([
|
|
@@ -5004,7 +6046,7 @@ var Xi = e.object({
|
|
|
5004
6046
|
"chip",
|
|
5005
6047
|
"none"
|
|
5006
6048
|
]).optional()
|
|
5007
|
-
}),
|
|
6049
|
+
}), fa = e.object({
|
|
5008
6050
|
header_text_alignment: e.enum([
|
|
5009
6051
|
"center",
|
|
5010
6052
|
"left",
|
|
@@ -5021,50 +6063,80 @@ var Xi = e.object({
|
|
|
5021
6063
|
social_buttons_layout: e.enum(["bottom", "top"])
|
|
5022
6064
|
});
|
|
5023
6065
|
e.object({
|
|
5024
|
-
borders:
|
|
5025
|
-
colors:
|
|
6066
|
+
borders: ca,
|
|
6067
|
+
colors: la,
|
|
5026
6068
|
displayName: e.string(),
|
|
5027
|
-
fonts:
|
|
5028
|
-
page_background:
|
|
5029
|
-
widget:
|
|
6069
|
+
fonts: ua,
|
|
6070
|
+
page_background: da,
|
|
6071
|
+
widget: fa
|
|
5030
6072
|
}).extend({ themeId: e.string() }), e.object({
|
|
5031
6073
|
universal_login_experience: e.enum(["new", "classic"]).default("new"),
|
|
5032
6074
|
identifier_first: e.boolean().default(!0),
|
|
5033
6075
|
password_first: e.boolean().default(!1),
|
|
6076
|
+
show_last_used_connection: e.boolean().default(!1),
|
|
5034
6077
|
webauthn_platform_first_factor: e.boolean()
|
|
5035
6078
|
});
|
|
5036
|
-
var
|
|
6079
|
+
var pa = e.object({
|
|
5037
6080
|
hosts: e.array(e.string()).optional(),
|
|
5038
6081
|
methods: e.array(e.string()).optional(),
|
|
5039
6082
|
path: e.string().default("/*"),
|
|
5040
6083
|
headers: e.record(e.string(), e.string()).optional(),
|
|
5041
6084
|
query: e.record(e.string(), e.string()).optional()
|
|
5042
|
-
}),
|
|
6085
|
+
}), ma = e.object({
|
|
5043
6086
|
type: e.string(),
|
|
5044
6087
|
options: e.record(e.string(), e.unknown()).default({})
|
|
5045
|
-
}),
|
|
6088
|
+
}), ha = e.object({
|
|
5046
6089
|
id: e.string().optional(),
|
|
5047
6090
|
custom_domain_id: e.string(),
|
|
5048
6091
|
priority: e.number().int().default(100),
|
|
5049
|
-
match:
|
|
5050
|
-
handlers: e.array(
|
|
6092
|
+
match: pa,
|
|
6093
|
+
handlers: e.array(ma).min(1)
|
|
5051
6094
|
});
|
|
5052
|
-
|
|
6095
|
+
ha.extend({
|
|
5053
6096
|
id: e.string(),
|
|
5054
6097
|
tenant_id: e.string(),
|
|
5055
6098
|
created_at: e.string(),
|
|
5056
6099
|
updated_at: e.string()
|
|
5057
|
-
}),
|
|
6100
|
+
}), ha.partial().omit({
|
|
5058
6101
|
id: !0,
|
|
5059
6102
|
custom_domain_id: !0
|
|
5060
|
-
})
|
|
6103
|
+
});
|
|
6104
|
+
var ga = e.object({
|
|
6105
|
+
scim: e.string(),
|
|
6106
|
+
auth0: e.string()
|
|
6107
|
+
}), _a = e.object({
|
|
6108
|
+
connection_id: e.string(),
|
|
6109
|
+
user_id_attribute: e.string().default("externalId"),
|
|
6110
|
+
mapping: e.array(ga).default([])
|
|
6111
|
+
});
|
|
6112
|
+
e.object({
|
|
6113
|
+
created_at: e.string(),
|
|
6114
|
+
updated_at: e.string()
|
|
6115
|
+
}).extend(_a.shape);
|
|
6116
|
+
var va = e.object({
|
|
6117
|
+
token_id: e.string(),
|
|
6118
|
+
connection_id: e.string(),
|
|
6119
|
+
token_hash: e.string(),
|
|
6120
|
+
scopes: e.array(e.string()).default([]),
|
|
6121
|
+
valid_until: e.string().optional()
|
|
6122
|
+
});
|
|
6123
|
+
e.object({
|
|
6124
|
+
created_at: e.string(),
|
|
6125
|
+
last_used_at: e.string().optional()
|
|
6126
|
+
}).extend(va.shape);
|
|
6127
|
+
var ya = e.object({
|
|
6128
|
+
connection_id: e.string(),
|
|
6129
|
+
external_id: e.string(),
|
|
6130
|
+
user_id: e.string()
|
|
6131
|
+
});
|
|
6132
|
+
e.object({ created_at: e.string() }).extend(ya.shape), e.object({
|
|
5061
6133
|
name: e.string(),
|
|
5062
6134
|
enabled: e.boolean().optional().default(!0),
|
|
5063
6135
|
default_from_address: e.string().optional(),
|
|
5064
6136
|
credentials: e.record(e.string(), e.unknown()),
|
|
5065
6137
|
settings: e.object({}).optional()
|
|
5066
6138
|
});
|
|
5067
|
-
var
|
|
6139
|
+
var ba = e.enum([
|
|
5068
6140
|
"verify_email",
|
|
5069
6141
|
"verify_email_by_code",
|
|
5070
6142
|
"reset_email",
|
|
@@ -5079,7 +6151,7 @@ var ia = e.enum([
|
|
|
5079
6151
|
"user_invitation"
|
|
5080
6152
|
]);
|
|
5081
6153
|
e.object({
|
|
5082
|
-
template:
|
|
6154
|
+
template: ba,
|
|
5083
6155
|
body: e.string(),
|
|
5084
6156
|
from: e.string(),
|
|
5085
6157
|
subject: e.string(),
|
|
@@ -5096,7 +6168,7 @@ e.object({
|
|
|
5096
6168
|
expires_at: e.string().optional(),
|
|
5097
6169
|
idle_expires_at: e.string().optional(),
|
|
5098
6170
|
last_exchanged_at: e.string().optional(),
|
|
5099
|
-
device:
|
|
6171
|
+
device: $i,
|
|
5100
6172
|
resource_servers: e.array(e.object({
|
|
5101
6173
|
audience: e.string(),
|
|
5102
6174
|
scopes: e.string()
|
|
@@ -5117,10 +6189,10 @@ e.object({
|
|
|
5117
6189
|
name: e.string(),
|
|
5118
6190
|
options: e.object({})
|
|
5119
6191
|
});
|
|
5120
|
-
var
|
|
6192
|
+
var xa = e.object({
|
|
5121
6193
|
value: e.string(),
|
|
5122
6194
|
description: e.string().optional()
|
|
5123
|
-
}),
|
|
6195
|
+
}), Sa = e.object({
|
|
5124
6196
|
token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
|
|
5125
6197
|
enforce_policies: e.boolean().optional(),
|
|
5126
6198
|
allow_skipping_userinfo: e.boolean().optional(),
|
|
@@ -5128,11 +6200,11 @@ var aa = e.object({
|
|
|
5128
6200
|
persist_client_authorization: e.boolean().optional(),
|
|
5129
6201
|
enable_introspection_endpoint: e.boolean().optional(),
|
|
5130
6202
|
mtls: e.object({ bound_access_tokens: e.boolean().optional() }).optional()
|
|
5131
|
-
}),
|
|
6203
|
+
}), Ca = e.object({
|
|
5132
6204
|
id: e.string().optional(),
|
|
5133
6205
|
name: e.string(),
|
|
5134
6206
|
identifier: e.string(),
|
|
5135
|
-
scopes: e.array(
|
|
6207
|
+
scopes: e.array(xa).optional(),
|
|
5136
6208
|
signing_alg: e.string().optional(),
|
|
5137
6209
|
signing_secret: e.string().optional(),
|
|
5138
6210
|
token_lifetime: e.number().default(86400),
|
|
@@ -5140,20 +6212,20 @@ var aa = e.object({
|
|
|
5140
6212
|
skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
|
|
5141
6213
|
allow_offline_access: e.boolean().optional(),
|
|
5142
6214
|
verificationKey: e.string().optional(),
|
|
5143
|
-
options:
|
|
6215
|
+
options: Sa.optional(),
|
|
5144
6216
|
is_system: e.boolean().optional(),
|
|
5145
6217
|
metadata: e.record(e.string(), e.any()).optional()
|
|
5146
6218
|
}).extend({
|
|
5147
6219
|
created_at: e.string().optional(),
|
|
5148
6220
|
updated_at: e.string().optional()
|
|
5149
6221
|
});
|
|
5150
|
-
e.array(
|
|
5151
|
-
var
|
|
6222
|
+
e.array(Ca);
|
|
6223
|
+
var wa = e.object({
|
|
5152
6224
|
role_id: e.string(),
|
|
5153
6225
|
resource_server_identifier: e.string(),
|
|
5154
6226
|
permission_name: e.string()
|
|
5155
6227
|
}).extend({ created_at: e.string() });
|
|
5156
|
-
e.array(
|
|
6228
|
+
e.array(wa), e.object({
|
|
5157
6229
|
user_id: e.string().openapi({ description: "The id of the user that granted the consent" }),
|
|
5158
6230
|
clientID: e.string().openapi({ description: "The id of the client the grant was issued to" }),
|
|
5159
6231
|
audience: e.string().optional().openapi({ description: "The audience the grant applies to" }),
|
|
@@ -5166,7 +6238,7 @@ e.array(ca), e.object({
|
|
|
5166
6238
|
failed_logins: e.array(e.string()).optional(),
|
|
5167
6239
|
last_password_reset: e.string().optional()
|
|
5168
6240
|
});
|
|
5169
|
-
var
|
|
6241
|
+
var Ta = e.object({
|
|
5170
6242
|
user_id: e.string(),
|
|
5171
6243
|
resource_server_identifier: e.string(),
|
|
5172
6244
|
permission_name: e.string(),
|
|
@@ -5175,8 +6247,8 @@ var la = e.object({
|
|
|
5175
6247
|
tenant_id: e.string(),
|
|
5176
6248
|
created_at: e.string().optional()
|
|
5177
6249
|
});
|
|
5178
|
-
e.array(
|
|
5179
|
-
var
|
|
6250
|
+
e.array(Ta);
|
|
6251
|
+
var Ea = e.object({
|
|
5180
6252
|
user_id: e.string(),
|
|
5181
6253
|
resource_server_identifier: e.string(),
|
|
5182
6254
|
resource_server_name: e.string(),
|
|
@@ -5185,8 +6257,8 @@ var ua = e.object({
|
|
|
5185
6257
|
created_at: e.string().optional(),
|
|
5186
6258
|
organization_id: e.string().optional()
|
|
5187
6259
|
});
|
|
5188
|
-
e.array(
|
|
5189
|
-
var
|
|
6260
|
+
e.array(Ea);
|
|
6261
|
+
var Da = e.object({
|
|
5190
6262
|
user_id: e.string(),
|
|
5191
6263
|
role_id: e.string(),
|
|
5192
6264
|
organization_id: e.string().optional()
|
|
@@ -5194,8 +6266,8 @@ var da = e.object({
|
|
|
5194
6266
|
tenant_id: e.string(),
|
|
5195
6267
|
created_at: e.string().optional()
|
|
5196
6268
|
});
|
|
5197
|
-
e.array(
|
|
5198
|
-
var
|
|
6269
|
+
e.array(Da);
|
|
6270
|
+
var Oa = e.object({
|
|
5199
6271
|
id: e.string().optional().openapi({ description: "The unique identifier of the role. If not provided, one will be generated." }),
|
|
5200
6272
|
name: e.string().min(1).max(50).openapi({ description: "The name of the role. Cannot include '<' or '>'" }),
|
|
5201
6273
|
description: e.string().max(255).optional().openapi({ description: "The description of the role" }),
|
|
@@ -5206,19 +6278,19 @@ var fa = e.object({
|
|
|
5206
6278
|
created_at: e.string().optional(),
|
|
5207
6279
|
updated_at: e.string().optional()
|
|
5208
6280
|
});
|
|
5209
|
-
e.array(
|
|
5210
|
-
var
|
|
6281
|
+
e.array(Oa);
|
|
6282
|
+
var ka = e.object({
|
|
5211
6283
|
logo_url: e.string().optional().openapi({ description: "URL of the organization's logo" }),
|
|
5212
6284
|
colors: e.object({
|
|
5213
6285
|
primary: e.string().optional().openapi({ description: "Primary color in hex format (e.g., #FF0000)" }),
|
|
5214
6286
|
page_background: e.string().optional().openapi({ description: "Page background color in hex format (e.g., #FFFFFF)" })
|
|
5215
6287
|
}).optional()
|
|
5216
|
-
}).optional(),
|
|
6288
|
+
}).optional(), Aa = e.object({
|
|
5217
6289
|
connection_id: e.string().openapi({ description: "ID of the connection" }),
|
|
5218
6290
|
assign_membership_on_login: e.boolean().default(!1).openapi({ description: "Whether to assign membership to the organization on login" }),
|
|
5219
6291
|
show_as_button: e.boolean().default(!0).openapi({ description: "Whether to show this connection as a button in the login screen" }),
|
|
5220
6292
|
is_signup_enabled: e.boolean().default(!0).openapi({ description: "Whether signup is enabled for this connection" })
|
|
5221
|
-
}),
|
|
6293
|
+
}), ja = e.object({ client_credentials: e.object({
|
|
5222
6294
|
enforce: e.boolean().default(!1).openapi({ description: "Whether to enforce token quota limits" }),
|
|
5223
6295
|
per_day: e.number().min(0).default(0).openapi({ description: "Maximum tokens per day (0 = unlimited)" }),
|
|
5224
6296
|
per_hour: e.number().min(0).default(0).openapi({ description: "Maximum tokens per hour (0 = unlimited)" })
|
|
@@ -5227,15 +6299,15 @@ e.object({
|
|
|
5227
6299
|
id: e.string().optional(),
|
|
5228
6300
|
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." }),
|
|
5229
6301
|
display_name: e.string().optional().openapi({ description: "The display name of the organization" }),
|
|
5230
|
-
branding:
|
|
6302
|
+
branding: ka,
|
|
5231
6303
|
metadata: e.record(e.string(), e.any()).default({}).optional().openapi({ description: "Custom metadata for the organization" }),
|
|
5232
|
-
enabled_connections: e.array(
|
|
5233
|
-
token_quota:
|
|
6304
|
+
enabled_connections: e.array(Aa).default([]).optional().openapi({ description: "List of enabled connections for the organization" }),
|
|
6305
|
+
token_quota: ja
|
|
5234
6306
|
}).extend(G.shape).extend({
|
|
5235
6307
|
id: e.string(),
|
|
5236
6308
|
name: e.string().min(1).openapi({ description: "The name of the organization" })
|
|
5237
6309
|
});
|
|
5238
|
-
var
|
|
6310
|
+
var Ma = e.object({
|
|
5239
6311
|
connection_id: e.string().openapi({ description: "ID of the tenant-level connection to enable for the org." }),
|
|
5240
6312
|
assign_membership_on_login: e.boolean().optional().default(!1),
|
|
5241
6313
|
show_as_button: e.boolean().optional().default(!0),
|
|
@@ -5248,7 +6320,7 @@ var ga = e.object({
|
|
|
5248
6320
|
created_at: e.string().optional(),
|
|
5249
6321
|
updated_at: e.string().optional()
|
|
5250
6322
|
});
|
|
5251
|
-
e.array(
|
|
6323
|
+
e.array(Ma), e.object({
|
|
5252
6324
|
user_id: e.string().openapi({ description: "ID of the user" }),
|
|
5253
6325
|
organization_id: e.string().openapi({ description: "ID of the organization" })
|
|
5254
6326
|
}).extend(G.shape).extend({ id: e.string() }), e.object({
|
|
@@ -5387,22 +6459,22 @@ e.array(ga), e.object({
|
|
|
5387
6459
|
"passwordless",
|
|
5388
6460
|
"enterprise"
|
|
5389
6461
|
]);
|
|
5390
|
-
var
|
|
6462
|
+
var Na = e.object({
|
|
5391
6463
|
name: e.string(),
|
|
5392
6464
|
type: e.string()
|
|
5393
|
-
}),
|
|
6465
|
+
}), Pa = e.object({
|
|
5394
6466
|
elapsed: e.number(),
|
|
5395
6467
|
rows_read: e.number().optional(),
|
|
5396
6468
|
bytes_read: e.number().optional()
|
|
5397
6469
|
});
|
|
5398
6470
|
e.object({
|
|
5399
|
-
meta: e.array(
|
|
6471
|
+
meta: e.array(Na),
|
|
5400
6472
|
data: e.array(e.record(e.string(), e.any())),
|
|
5401
6473
|
rows: e.number(),
|
|
5402
6474
|
rows_before_limit_at_least: e.number().optional(),
|
|
5403
|
-
statistics:
|
|
6475
|
+
statistics: Pa.optional()
|
|
5404
6476
|
});
|
|
5405
|
-
var
|
|
6477
|
+
var Fa = 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(".")), Ia = e.record(e.string(), e.record(e.string(), e.string())).openapi({
|
|
5406
6478
|
type: "object",
|
|
5407
6479
|
additionalProperties: {
|
|
5408
6480
|
type: "object",
|
|
@@ -5410,11 +6482,11 @@ var ya = e.enum(/* @__PURE__ */ "login.login-id.login-password.signup.signup-id.
|
|
|
5410
6482
|
}
|
|
5411
6483
|
});
|
|
5412
6484
|
e.object({
|
|
5413
|
-
prompt:
|
|
6485
|
+
prompt: Fa,
|
|
5414
6486
|
language: e.string(),
|
|
5415
|
-
custom_text:
|
|
6487
|
+
custom_text: Ia
|
|
5416
6488
|
});
|
|
5417
|
-
var
|
|
6489
|
+
var La = e.enum([
|
|
5418
6490
|
"phone",
|
|
5419
6491
|
"totp",
|
|
5420
6492
|
"email",
|
|
@@ -5422,9 +6494,9 @@ var xa = e.enum([
|
|
|
5422
6494
|
"webauthn-roaming",
|
|
5423
6495
|
"webauthn-platform",
|
|
5424
6496
|
"passkey"
|
|
5425
|
-
]),
|
|
6497
|
+
]), Ra = e.object({
|
|
5426
6498
|
user_id: e.string(),
|
|
5427
|
-
type:
|
|
6499
|
+
type: La,
|
|
5428
6500
|
phone_number: e.string().optional(),
|
|
5429
6501
|
totp_secret: e.string().optional(),
|
|
5430
6502
|
credential_id: e.string().optional(),
|
|
@@ -5435,7 +6507,7 @@ var xa = e.enum([
|
|
|
5435
6507
|
friendly_name: e.string().optional(),
|
|
5436
6508
|
confirmed: e.boolean().default(!1)
|
|
5437
6509
|
});
|
|
5438
|
-
function
|
|
6510
|
+
function za(t, n) {
|
|
5439
6511
|
t.type === "phone" && !t.phone_number && n.addIssue({
|
|
5440
6512
|
code: e.ZodIssueCode.custom,
|
|
5441
6513
|
message: "phone_number is required when type is 'phone'",
|
|
@@ -5458,51 +6530,51 @@ function Ca(t, n) {
|
|
|
5458
6530
|
path: ["public_key"]
|
|
5459
6531
|
}));
|
|
5460
6532
|
}
|
|
5461
|
-
|
|
6533
|
+
Ra.superRefine(za), Ra.extend({
|
|
5462
6534
|
id: e.string(),
|
|
5463
6535
|
created_at: e.string(),
|
|
5464
6536
|
updated_at: e.string()
|
|
5465
|
-
}).superRefine(
|
|
6537
|
+
}).superRefine(za), e.object({
|
|
5466
6538
|
id: e.string().optional(),
|
|
5467
6539
|
created_at: e.string().datetime({ offset: !0 }).optional(),
|
|
5468
6540
|
updated_at: e.string().datetime({ offset: !0 }).optional()
|
|
5469
6541
|
});
|
|
5470
|
-
function
|
|
6542
|
+
function Ba(e) {
|
|
5471
6543
|
let t = atob(e), n = new Uint8Array(t.length);
|
|
5472
6544
|
for (let e = 0; e < t.length; e++) n[e] = t.charCodeAt(e);
|
|
5473
6545
|
return n;
|
|
5474
6546
|
}
|
|
5475
6547
|
//#endregion
|
|
5476
|
-
//#region ../../node_modules/.pnpm/nanoid@5.1.
|
|
5477
|
-
var
|
|
6548
|
+
//#region ../../node_modules/.pnpm/nanoid@5.1.11/node_modules/nanoid/url-alphabet/index.js
|
|
6549
|
+
var Va = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", Ha = (e = 21) => {
|
|
5478
6550
|
let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
|
|
5479
|
-
for (; e--;) t +=
|
|
6551
|
+
for (; e--;) t += Va[n[e] & 63];
|
|
5480
6552
|
return t;
|
|
5481
6553
|
};
|
|
5482
6554
|
//#endregion
|
|
5483
6555
|
//#region src/helpers.ts
|
|
5484
|
-
async function
|
|
6556
|
+
async function Ua(e) {
|
|
5485
6557
|
let t = new DecompressionStream("deflate-raw"), n = new Uint8Array(e), r = new Blob([n]).stream().pipeThrough(t);
|
|
5486
6558
|
return new Uint8Array(await new Response(r).arrayBuffer());
|
|
5487
6559
|
}
|
|
5488
|
-
async function
|
|
5489
|
-
let t =
|
|
6560
|
+
async function Wa(e) {
|
|
6561
|
+
let t = Ba(e.replace(/ /g, "+"));
|
|
5490
6562
|
try {
|
|
5491
|
-
let e = await
|
|
6563
|
+
let e = await Ua(t);
|
|
5492
6564
|
return new TextDecoder().decode(e);
|
|
5493
6565
|
} catch (e) {
|
|
5494
6566
|
return console.warn("Decompression failed, assuming data is not compressed:", e), new TextDecoder().decode(t);
|
|
5495
6567
|
}
|
|
5496
6568
|
}
|
|
5497
|
-
async function
|
|
5498
|
-
let t = await
|
|
6569
|
+
async function Ga(e) {
|
|
6570
|
+
let t = await Wa(e), n = new en({
|
|
5499
6571
|
attributeNamePrefix: "@_",
|
|
5500
6572
|
alwaysCreateTextNode: !0,
|
|
5501
6573
|
ignoreAttributes: !1
|
|
5502
6574
|
}).parse(t);
|
|
5503
6575
|
return r.parse(n);
|
|
5504
6576
|
}
|
|
5505
|
-
function
|
|
6577
|
+
function Ka(e) {
|
|
5506
6578
|
let t = e.certificates.map((e) => ({
|
|
5507
6579
|
"@_use": "signing",
|
|
5508
6580
|
KeyInfo: {
|
|
@@ -5568,7 +6640,7 @@ function Aa(e) {
|
|
|
5568
6640
|
]
|
|
5569
6641
|
}
|
|
5570
6642
|
} };
|
|
5571
|
-
return new
|
|
6643
|
+
return new Cn({
|
|
5572
6644
|
ignoreAttributes: !1,
|
|
5573
6645
|
suppressEmptyNode: !0,
|
|
5574
6646
|
preserveOrder: !1,
|
|
@@ -5576,8 +6648,8 @@ function Aa(e) {
|
|
|
5576
6648
|
attributeNamePrefix: "@_"
|
|
5577
6649
|
}).build(n);
|
|
5578
6650
|
}
|
|
5579
|
-
async function
|
|
5580
|
-
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 || `_${
|
|
6651
|
+
async function qa(e, t) {
|
|
6652
|
+
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 || `_${Ha()}`, s = e.assertionId || `_${Ha()}`, c = [{
|
|
5581
6653
|
"samlp:Response": [
|
|
5582
6654
|
{ "saml:Issuer": [{ "#text": e.issuer }] },
|
|
5583
6655
|
{ "samlp:Status": [{
|
|
@@ -5749,7 +6821,7 @@ async function ja(e, t) {
|
|
|
5749
6821
|
"@_IssueInstant": i,
|
|
5750
6822
|
"@_Version": "2.0"
|
|
5751
6823
|
}
|
|
5752
|
-
}], l = new
|
|
6824
|
+
}], l = new Cn({
|
|
5753
6825
|
ignoreAttributes: !1,
|
|
5754
6826
|
suppressEmptyNode: !0,
|
|
5755
6827
|
preserveOrder: !0
|
|
@@ -5758,7 +6830,7 @@ async function ja(e, t) {
|
|
|
5758
6830
|
}
|
|
5759
6831
|
//#endregion
|
|
5760
6832
|
//#region src/signers/local.ts
|
|
5761
|
-
var
|
|
6833
|
+
var Ja = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256", Ya = "http://www.w3.org/2001/04/xmlenc#sha256", Xa = "http://www.w3.org/2001/10/xml-exc-c14n#", Za = class {
|
|
5762
6834
|
async signSAML(e, t, n) {
|
|
5763
6835
|
try {
|
|
5764
6836
|
let r = await import("xml-crypto"), i = r.SignedXml || r.default?.SignedXml;
|
|
@@ -5767,11 +6839,11 @@ var Ma = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256", Na = "http://www.w
|
|
|
5767
6839
|
privateKey: t,
|
|
5768
6840
|
publicCert: n
|
|
5769
6841
|
});
|
|
5770
|
-
a.canonicalizationAlgorithm =
|
|
6842
|
+
a.canonicalizationAlgorithm = Xa, a.addReference({
|
|
5771
6843
|
xpath: "(/*[local-name()='Response']/*[local-name()='Assertion'])[1]",
|
|
5772
|
-
digestAlgorithm:
|
|
5773
|
-
transforms: ["http://www.w3.org/2000/09/xmldsig#enveloped-signature",
|
|
5774
|
-
}), a.signatureAlgorithm =
|
|
6844
|
+
digestAlgorithm: Ya,
|
|
6845
|
+
transforms: ["http://www.w3.org/2000/09/xmldsig#enveloped-signature", Xa]
|
|
6846
|
+
}), a.signatureAlgorithm = Ja;
|
|
5775
6847
|
let o = n.replace(/-----BEGIN CERTIFICATE-----|-----END CERTIFICATE-----/g, "").replace(/\s/g, "");
|
|
5776
6848
|
return a.keyInfoProvider = { getKeyInfo: () => `<X509Data><X509Certificate>${o}</X509Certificate></X509Data>` }, a.computeSignature(e, { location: {
|
|
5777
6849
|
reference: "/*[local-name()='Response']/*[local-name()='Assertion']/*[local-name()='Issuer']",
|
|
@@ -5781,7 +6853,7 @@ var Ma = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256", Na = "http://www.w
|
|
|
5781
6853
|
throw Error(`Failed to sign SAML locally. Make sure xml-crypto is installed. Error: ${e}`);
|
|
5782
6854
|
}
|
|
5783
6855
|
}
|
|
5784
|
-
},
|
|
6856
|
+
}, Qa = class {
|
|
5785
6857
|
signUrl;
|
|
5786
6858
|
constructor(e) {
|
|
5787
6859
|
this.signUrl = e;
|
|
@@ -5801,4 +6873,4 @@ var Ma = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256", Na = "http://www.w
|
|
|
5801
6873
|
}
|
|
5802
6874
|
};
|
|
5803
6875
|
//#endregion
|
|
5804
|
-
export {
|
|
6876
|
+
export { Qa as HttpSamlSigner, Za as LocalSamlSigner, Ka as createSamlMetadata, qa as createSamlResponse, s as dsSignatureSchema, Wa as inflateDecompress, Ua as inflateRaw, Ga as parseSamlRequestQuery, n as samlIssuerSchema, i as samlMetadataResponseSchema, r as samlRequestSchema, c as samlResponseJsonSchema };
|