@authhero/adapter-interfaces 0.11.2 → 0.11.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapter-interfaces.cjs +1 -1
- package/dist/adapter-interfaces.d.ts +537 -318
- package/dist/adapter-interfaces.iife.js +1 -1
- package/dist/adapter-interfaces.mjs +264 -254
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function dt(t, e) {
|
|
2
2
|
var n = {};
|
|
3
3
|
for (var s in t) Object.prototype.hasOwnProperty.call(t, s) && e.indexOf(s) < 0 && (n[s] = t[s]);
|
|
4
4
|
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -6,7 +6,7 @@ function ut(t, e) {
|
|
|
6
6
|
e.indexOf(s[a]) < 0 && Object.prototype.propertyIsEnumerable.call(t, s[a]) && (n[s[a]] = t[s[a]]);
|
|
7
7
|
return n;
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function lt(t, e) {
|
|
10
10
|
var n;
|
|
11
11
|
return ((n = t == null ? void 0 : t._def) === null || n === void 0 ? void 0 : n.typeName) === e;
|
|
12
12
|
}
|
|
@@ -17,22 +17,22 @@ function J(t, e) {
|
|
|
17
17
|
return a._def.openapi = this._def.openapi, a;
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function ut(t) {
|
|
21
21
|
if (typeof t.ZodType.prototype.openapi < "u")
|
|
22
22
|
return;
|
|
23
23
|
t.ZodType.prototype.openapi = function(a, i) {
|
|
24
24
|
var o, c, u, l, m, x;
|
|
25
|
-
const z = typeof a == "string" ? i : a, B = z ?? {}, { param: $e } = B,
|
|
25
|
+
const z = typeof a == "string" ? i : a, B = z ?? {}, { param: $e } = B, it = dt(B, ["param"]), Ve = Object.assign(Object.assign({}, (o = this._def.openapi) === null || o === void 0 ? void 0 : o._internal), typeof a == "string" ? { refId: a } : void 0), Le = Object.assign(Object.assign(Object.assign({}, (c = this._def.openapi) === null || c === void 0 ? void 0 : c.metadata), it), !((l = (u = this._def.openapi) === null || u === void 0 ? void 0 : u.metadata) === null || l === void 0) && l.param || $e ? {
|
|
26
26
|
param: Object.assign(Object.assign({}, (x = (m = this._def.openapi) === null || m === void 0 ? void 0 : m.metadata) === null || x === void 0 ? void 0 : x.param), $e)
|
|
27
27
|
} : void 0), ze = new this.constructor(Object.assign(Object.assign({}, this._def), { openapi: Object.assign(Object.assign({}, Object.keys(Ve).length > 0 ? { _internal: Ve } : void 0), Object.keys(Le).length > 0 ? { metadata: Le } : void 0) }));
|
|
28
|
-
if (
|
|
29
|
-
const
|
|
30
|
-
ze.extend = function(...
|
|
31
|
-
var Se, Te,
|
|
32
|
-
const Ie =
|
|
28
|
+
if (lt(this, "ZodObject")) {
|
|
29
|
+
const ot = this.extend;
|
|
30
|
+
ze.extend = function(...ct) {
|
|
31
|
+
var Se, Te, Ce, Ee, Oe, je;
|
|
32
|
+
const Ie = ot.apply(this, ct);
|
|
33
33
|
return Ie._def.openapi = {
|
|
34
34
|
_internal: {
|
|
35
|
-
extendedFrom: !((Te = (Se = this._def.openapi) === null || Se === void 0 ? void 0 : Se._internal) === null || Te === void 0) && Te.refId ? { refId: (
|
|
35
|
+
extendedFrom: !((Te = (Se = this._def.openapi) === null || Se === void 0 ? void 0 : Se._internal) === null || Te === void 0) && Te.refId ? { refId: (Ee = (Ce = this._def.openapi) === null || Ce === void 0 ? void 0 : Ce._internal) === null || Ee === void 0 ? void 0 : Ee.refId, schema: this } : (Oe = this._def.openapi) === null || Oe === void 0 ? void 0 : Oe._internal.extendedFrom
|
|
36
36
|
},
|
|
37
37
|
metadata: (je = Ie._def.openapi) === null || je === void 0 ? void 0 : je.metadata
|
|
38
38
|
}, Ie;
|
|
@@ -163,7 +163,7 @@ const h = b.arrayToEnum([
|
|
|
163
163
|
"invalid_intersection_types",
|
|
164
164
|
"not_multiple_of",
|
|
165
165
|
"not_finite"
|
|
166
|
-
]),
|
|
166
|
+
]), pt = (t) => JSON.stringify(t, null, 2).replace(/"([^"]+)":/g, "$1:");
|
|
167
167
|
class T extends Error {
|
|
168
168
|
constructor(e) {
|
|
169
169
|
super(), this.issues = [], this.addIssue = (s) => {
|
|
@@ -281,7 +281,7 @@ const F = (t, e) => {
|
|
|
281
281
|
return { message: n };
|
|
282
282
|
};
|
|
283
283
|
let Ge = F;
|
|
284
|
-
function
|
|
284
|
+
function ht(t) {
|
|
285
285
|
Ge = t;
|
|
286
286
|
}
|
|
287
287
|
function me() {
|
|
@@ -307,7 +307,7 @@ const _e = (t) => {
|
|
|
307
307
|
path: i,
|
|
308
308
|
message: c
|
|
309
309
|
};
|
|
310
|
-
},
|
|
310
|
+
}, ft = [];
|
|
311
311
|
function p(t, e) {
|
|
312
312
|
const n = me(), s = _e({
|
|
313
313
|
issueData: e,
|
|
@@ -534,7 +534,7 @@ class v {
|
|
|
534
534
|
return this.nullable().optional();
|
|
535
535
|
}
|
|
536
536
|
array() {
|
|
537
|
-
return
|
|
537
|
+
return E.create(this, this._def);
|
|
538
538
|
}
|
|
539
539
|
promise() {
|
|
540
540
|
return K.create(this, this._def);
|
|
@@ -598,14 +598,14 @@ class v {
|
|
|
598
598
|
return this.safeParse(null).success;
|
|
599
599
|
}
|
|
600
600
|
}
|
|
601
|
-
const
|
|
601
|
+
const mt = /^c[^\s-]{8,}$/i, _t = /^[0-9a-z]+$/, gt = /^[0-9A-HJKMNP-TV-Z]{26}$/, yt = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, vt = /^[a-z0-9_-]{21}$/i, bt = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, kt = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, xt = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
602
602
|
let Ne;
|
|
603
|
-
const
|
|
603
|
+
const wt = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, St = /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/, Tt = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, qe = "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", Ct = new RegExp(`^${qe}$`);
|
|
604
604
|
function Fe(t) {
|
|
605
605
|
let e = "([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";
|
|
606
606
|
return t.precision ? e = `${e}\\.\\d{${t.precision}}` : t.precision == null && (e = `${e}(\\.\\d+)?`), e;
|
|
607
607
|
}
|
|
608
|
-
function
|
|
608
|
+
function Et(t) {
|
|
609
609
|
return new RegExp(`^${Fe(t)}$`);
|
|
610
610
|
}
|
|
611
611
|
function Ye(t) {
|
|
@@ -613,10 +613,10 @@ function Ye(t) {
|
|
|
613
613
|
const n = [];
|
|
614
614
|
return n.push(t.local ? "Z?" : "Z"), t.offset && n.push("([+-]\\d{2}:?\\d{2})"), e = `${e}(${n.join("|")})`, new RegExp(`^${e}$`);
|
|
615
615
|
}
|
|
616
|
-
function
|
|
617
|
-
return !!((e === "v4" || !e) &&
|
|
616
|
+
function Ot(t, e) {
|
|
617
|
+
return !!((e === "v4" || !e) && wt.test(t) || (e === "v6" || !e) && St.test(t));
|
|
618
618
|
}
|
|
619
|
-
class
|
|
619
|
+
class C extends v {
|
|
620
620
|
_parse(e) {
|
|
621
621
|
if (this._def.coerce && (e.data = String(e.data)), this._getType(e) !== h.string) {
|
|
622
622
|
const i = this._getOrReturnCtx(e);
|
|
@@ -665,43 +665,43 @@ class E extends v {
|
|
|
665
665
|
message: i.message
|
|
666
666
|
}), s.dirty());
|
|
667
667
|
} else if (i.kind === "email")
|
|
668
|
-
|
|
668
|
+
kt.test(e.data) || (a = this._getOrReturnCtx(e, a), p(a, {
|
|
669
669
|
validation: "email",
|
|
670
670
|
code: d.invalid_string,
|
|
671
671
|
message: i.message
|
|
672
672
|
}), s.dirty());
|
|
673
673
|
else if (i.kind === "emoji")
|
|
674
|
-
Ne || (Ne = new RegExp(
|
|
674
|
+
Ne || (Ne = new RegExp(xt, "u")), Ne.test(e.data) || (a = this._getOrReturnCtx(e, a), p(a, {
|
|
675
675
|
validation: "emoji",
|
|
676
676
|
code: d.invalid_string,
|
|
677
677
|
message: i.message
|
|
678
678
|
}), s.dirty());
|
|
679
679
|
else if (i.kind === "uuid")
|
|
680
|
-
|
|
680
|
+
yt.test(e.data) || (a = this._getOrReturnCtx(e, a), p(a, {
|
|
681
681
|
validation: "uuid",
|
|
682
682
|
code: d.invalid_string,
|
|
683
683
|
message: i.message
|
|
684
684
|
}), s.dirty());
|
|
685
685
|
else if (i.kind === "nanoid")
|
|
686
|
-
|
|
686
|
+
vt.test(e.data) || (a = this._getOrReturnCtx(e, a), p(a, {
|
|
687
687
|
validation: "nanoid",
|
|
688
688
|
code: d.invalid_string,
|
|
689
689
|
message: i.message
|
|
690
690
|
}), s.dirty());
|
|
691
691
|
else if (i.kind === "cuid")
|
|
692
|
-
|
|
692
|
+
mt.test(e.data) || (a = this._getOrReturnCtx(e, a), p(a, {
|
|
693
693
|
validation: "cuid",
|
|
694
694
|
code: d.invalid_string,
|
|
695
695
|
message: i.message
|
|
696
696
|
}), s.dirty());
|
|
697
697
|
else if (i.kind === "cuid2")
|
|
698
|
-
|
|
698
|
+
_t.test(e.data) || (a = this._getOrReturnCtx(e, a), p(a, {
|
|
699
699
|
validation: "cuid2",
|
|
700
700
|
code: d.invalid_string,
|
|
701
701
|
message: i.message
|
|
702
702
|
}), s.dirty());
|
|
703
703
|
else if (i.kind === "ulid")
|
|
704
|
-
|
|
704
|
+
gt.test(e.data) || (a = this._getOrReturnCtx(e, a), p(a, {
|
|
705
705
|
validation: "ulid",
|
|
706
706
|
code: d.invalid_string,
|
|
707
707
|
message: i.message
|
|
@@ -736,23 +736,23 @@ class E extends v {
|
|
|
736
736
|
code: d.invalid_string,
|
|
737
737
|
validation: "datetime",
|
|
738
738
|
message: i.message
|
|
739
|
-
}), s.dirty()) : i.kind === "date" ?
|
|
739
|
+
}), s.dirty()) : i.kind === "date" ? Ct.test(e.data) || (a = this._getOrReturnCtx(e, a), p(a, {
|
|
740
740
|
code: d.invalid_string,
|
|
741
741
|
validation: "date",
|
|
742
742
|
message: i.message
|
|
743
|
-
}), s.dirty()) : i.kind === "time" ?
|
|
743
|
+
}), s.dirty()) : i.kind === "time" ? Et(i).test(e.data) || (a = this._getOrReturnCtx(e, a), p(a, {
|
|
744
744
|
code: d.invalid_string,
|
|
745
745
|
validation: "time",
|
|
746
746
|
message: i.message
|
|
747
|
-
}), s.dirty()) : i.kind === "duration" ?
|
|
747
|
+
}), s.dirty()) : i.kind === "duration" ? bt.test(e.data) || (a = this._getOrReturnCtx(e, a), p(a, {
|
|
748
748
|
validation: "duration",
|
|
749
749
|
code: d.invalid_string,
|
|
750
750
|
message: i.message
|
|
751
|
-
}), s.dirty()) : i.kind === "ip" ?
|
|
751
|
+
}), s.dirty()) : i.kind === "ip" ? Ot(e.data, i.version) || (a = this._getOrReturnCtx(e, a), p(a, {
|
|
752
752
|
validation: "ip",
|
|
753
753
|
code: d.invalid_string,
|
|
754
754
|
message: i.message
|
|
755
|
-
}), s.dirty()) : i.kind === "base64" ?
|
|
755
|
+
}), s.dirty()) : i.kind === "base64" ? Tt.test(e.data) || (a = this._getOrReturnCtx(e, a), p(a, {
|
|
756
756
|
validation: "base64",
|
|
757
757
|
code: d.invalid_string,
|
|
758
758
|
message: i.message
|
|
@@ -767,7 +767,7 @@ class E extends v {
|
|
|
767
767
|
});
|
|
768
768
|
}
|
|
769
769
|
_addCheck(e) {
|
|
770
|
-
return new
|
|
770
|
+
return new C({
|
|
771
771
|
...this._def,
|
|
772
772
|
checks: [...this._def.checks, e]
|
|
773
773
|
});
|
|
@@ -893,19 +893,19 @@ class E extends v {
|
|
|
893
893
|
return this.min(1, f.errToObj(e));
|
|
894
894
|
}
|
|
895
895
|
trim() {
|
|
896
|
-
return new
|
|
896
|
+
return new C({
|
|
897
897
|
...this._def,
|
|
898
898
|
checks: [...this._def.checks, { kind: "trim" }]
|
|
899
899
|
});
|
|
900
900
|
}
|
|
901
901
|
toLowerCase() {
|
|
902
|
-
return new
|
|
902
|
+
return new C({
|
|
903
903
|
...this._def,
|
|
904
904
|
checks: [...this._def.checks, { kind: "toLowerCase" }]
|
|
905
905
|
});
|
|
906
906
|
}
|
|
907
907
|
toUpperCase() {
|
|
908
|
-
return new
|
|
908
|
+
return new C({
|
|
909
909
|
...this._def,
|
|
910
910
|
checks: [...this._def.checks, { kind: "toUpperCase" }]
|
|
911
911
|
});
|
|
@@ -965,16 +965,16 @@ class E extends v {
|
|
|
965
965
|
return e;
|
|
966
966
|
}
|
|
967
967
|
}
|
|
968
|
-
|
|
968
|
+
C.create = (t) => {
|
|
969
969
|
var e;
|
|
970
|
-
return new
|
|
970
|
+
return new C({
|
|
971
971
|
checks: [],
|
|
972
972
|
typeName: _.ZodString,
|
|
973
973
|
coerce: (e = t == null ? void 0 : t.coerce) !== null && e !== void 0 ? e : !1,
|
|
974
974
|
...y(t)
|
|
975
975
|
});
|
|
976
976
|
};
|
|
977
|
-
function
|
|
977
|
+
function jt(t, e) {
|
|
978
978
|
const n = (t.toString().split(".")[1] || "").length, s = (e.toString().split(".")[1] || "").length, a = n > s ? n : s, i = parseInt(t.toFixed(a).replace(".", "")), o = parseInt(e.toFixed(a).replace(".", ""));
|
|
979
979
|
return i % o / Math.pow(10, a);
|
|
980
980
|
}
|
|
@@ -1013,7 +1013,7 @@ class P extends v {
|
|
|
1013
1013
|
inclusive: i.inclusive,
|
|
1014
1014
|
exact: !1,
|
|
1015
1015
|
message: i.message
|
|
1016
|
-
}), a.dirty()) : i.kind === "multipleOf" ?
|
|
1016
|
+
}), a.dirty()) : i.kind === "multipleOf" ? jt(e.data, i.value) !== 0 && (s = this._getOrReturnCtx(e, s), p(s, {
|
|
1017
1017
|
code: d.not_multiple_of,
|
|
1018
1018
|
multipleOf: i.value,
|
|
1019
1019
|
message: i.message
|
|
@@ -1480,7 +1480,7 @@ ve.create = (t) => new ve({
|
|
|
1480
1480
|
typeName: _.ZodVoid,
|
|
1481
1481
|
...y(t)
|
|
1482
1482
|
});
|
|
1483
|
-
class
|
|
1483
|
+
class E extends v {
|
|
1484
1484
|
_parse(e) {
|
|
1485
1485
|
const { ctx: n, status: s } = this._processInputParams(e), a = this._def;
|
|
1486
1486
|
if (n.parsedType !== h.array)
|
|
@@ -1524,19 +1524,19 @@ class C extends v {
|
|
|
1524
1524
|
return this._def.type;
|
|
1525
1525
|
}
|
|
1526
1526
|
min(e, n) {
|
|
1527
|
-
return new
|
|
1527
|
+
return new E({
|
|
1528
1528
|
...this._def,
|
|
1529
1529
|
minLength: { value: e, message: f.toString(n) }
|
|
1530
1530
|
});
|
|
1531
1531
|
}
|
|
1532
1532
|
max(e, n) {
|
|
1533
|
-
return new
|
|
1533
|
+
return new E({
|
|
1534
1534
|
...this._def,
|
|
1535
1535
|
maxLength: { value: e, message: f.toString(n) }
|
|
1536
1536
|
});
|
|
1537
1537
|
}
|
|
1538
1538
|
length(e, n) {
|
|
1539
|
-
return new
|
|
1539
|
+
return new E({
|
|
1540
1540
|
...this._def,
|
|
1541
1541
|
exactLength: { value: e, message: f.toString(n) }
|
|
1542
1542
|
});
|
|
@@ -1545,7 +1545,7 @@ class C extends v {
|
|
|
1545
1545
|
return this.min(1, e);
|
|
1546
1546
|
}
|
|
1547
1547
|
}
|
|
1548
|
-
|
|
1548
|
+
E.create = (t, e) => new E({
|
|
1549
1549
|
type: t,
|
|
1550
1550
|
minLength: null,
|
|
1551
1551
|
maxLength: null,
|
|
@@ -1564,7 +1564,7 @@ function G(t) {
|
|
|
1564
1564
|
...t._def,
|
|
1565
1565
|
shape: () => e
|
|
1566
1566
|
});
|
|
1567
|
-
} else return t instanceof
|
|
1567
|
+
} else return t instanceof E ? new E({
|
|
1568
1568
|
...t._def,
|
|
1569
1569
|
type: G(t.element)
|
|
1570
1570
|
}) : t instanceof j ? j.create(G(t.unwrap())) : t instanceof U ? U.create(G(t.unwrap())) : t instanceof N ? N.create(t.items.map((e) => G(e))) : t;
|
|
@@ -2140,7 +2140,7 @@ class oe extends v {
|
|
|
2140
2140
|
typeName: _.ZodRecord,
|
|
2141
2141
|
...y(s)
|
|
2142
2142
|
}) : new oe({
|
|
2143
|
-
keyType:
|
|
2143
|
+
keyType: C.create(),
|
|
2144
2144
|
valueType: e,
|
|
2145
2145
|
typeName: _.ZodRecord,
|
|
2146
2146
|
...y(n)
|
|
@@ -2714,7 +2714,7 @@ ke.create = (t) => new ke({
|
|
|
2714
2714
|
typeName: _.ZodNaN,
|
|
2715
2715
|
...y(t)
|
|
2716
2716
|
});
|
|
2717
|
-
const
|
|
2717
|
+
const It = Symbol("zod_brand");
|
|
2718
2718
|
class Me extends v {
|
|
2719
2719
|
_parse(e) {
|
|
2720
2720
|
const { ctx: n } = this._processInputParams(e), s = n.data;
|
|
@@ -2791,17 +2791,17 @@ function Je(t, e = {}, n) {
|
|
|
2791
2791
|
}
|
|
2792
2792
|
}) : Y.create();
|
|
2793
2793
|
}
|
|
2794
|
-
const
|
|
2794
|
+
const Nt = {
|
|
2795
2795
|
object: k.lazycreate
|
|
2796
2796
|
};
|
|
2797
2797
|
var _;
|
|
2798
2798
|
(function(t) {
|
|
2799
2799
|
t.ZodString = "ZodString", t.ZodNumber = "ZodNumber", t.ZodNaN = "ZodNaN", t.ZodBigInt = "ZodBigInt", t.ZodBoolean = "ZodBoolean", t.ZodDate = "ZodDate", t.ZodSymbol = "ZodSymbol", t.ZodUndefined = "ZodUndefined", t.ZodNull = "ZodNull", t.ZodAny = "ZodAny", t.ZodUnknown = "ZodUnknown", t.ZodNever = "ZodNever", t.ZodVoid = "ZodVoid", t.ZodArray = "ZodArray", t.ZodObject = "ZodObject", t.ZodUnion = "ZodUnion", t.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", t.ZodIntersection = "ZodIntersection", t.ZodTuple = "ZodTuple", t.ZodRecord = "ZodRecord", t.ZodMap = "ZodMap", t.ZodSet = "ZodSet", t.ZodFunction = "ZodFunction", t.ZodLazy = "ZodLazy", t.ZodLiteral = "ZodLiteral", t.ZodEnum = "ZodEnum", t.ZodEffects = "ZodEffects", t.ZodNativeEnum = "ZodNativeEnum", t.ZodOptional = "ZodOptional", t.ZodNullable = "ZodNullable", t.ZodDefault = "ZodDefault", t.ZodCatch = "ZodCatch", t.ZodPromise = "ZodPromise", t.ZodBranded = "ZodBranded", t.ZodPipeline = "ZodPipeline", t.ZodReadonly = "ZodReadonly";
|
|
2800
2800
|
})(_ || (_ = {}));
|
|
2801
|
-
const
|
|
2801
|
+
const Zt = (t, e = {
|
|
2802
2802
|
message: `Input not instance of ${t.name}`
|
|
2803
|
-
}) => Je((n) => n instanceof t, e), Qe =
|
|
2804
|
-
string: (t) =>
|
|
2803
|
+
}) => Je((n) => n instanceof t, e), Qe = C.create, Xe = P.create, Rt = ke.create, At = M.create, et = ne.create, Pt = V.create, Mt = ye.create, Dt = re.create, Ut = se.create, $t = Y.create, Vt = $.create, Lt = R.create, zt = ve.create, Bt = E.create, Wt = k.create, Gt = k.strictCreate, Ht = ae.create, qt = xe.create, Ft = ie.create, Yt = N.create, Kt = oe.create, Jt = be.create, Qt = L.create, Xt = q.create, en = ce.create, tn = de.create, nn = D.create, rn = le.create, sn = K.create, We = O.create, an = j.create, on = U.create, cn = O.createWithPreprocess, dn = fe.create, ln = () => Qe().optional(), un = () => Xe().optional(), pn = () => et().optional(), hn = {
|
|
2804
|
+
string: (t) => C.create({ ...t, coerce: !0 }),
|
|
2805
2805
|
number: (t) => P.create({ ...t, coerce: !0 }),
|
|
2806
2806
|
boolean: (t) => ne.create({
|
|
2807
2807
|
...t,
|
|
@@ -2809,14 +2809,14 @@ const At = (t, e = {
|
|
|
2809
2809
|
}),
|
|
2810
2810
|
bigint: (t) => M.create({ ...t, coerce: !0 }),
|
|
2811
2811
|
date: (t) => V.create({ ...t, coerce: !0 })
|
|
2812
|
-
},
|
|
2812
|
+
}, fn = g;
|
|
2813
2813
|
var r = /* @__PURE__ */ Object.freeze({
|
|
2814
2814
|
__proto__: null,
|
|
2815
2815
|
defaultErrorMap: F,
|
|
2816
|
-
setErrorMap:
|
|
2816
|
+
setErrorMap: ht,
|
|
2817
2817
|
getErrorMap: me,
|
|
2818
2818
|
makeIssue: _e,
|
|
2819
|
-
EMPTY_PATH:
|
|
2819
|
+
EMPTY_PATH: ft,
|
|
2820
2820
|
addIssueToContext: p,
|
|
2821
2821
|
ParseStatus: w,
|
|
2822
2822
|
INVALID: g,
|
|
@@ -2836,7 +2836,7 @@ var r = /* @__PURE__ */ Object.freeze({
|
|
|
2836
2836
|
getParsedType: A,
|
|
2837
2837
|
ZodType: v,
|
|
2838
2838
|
datetimeRegex: Ye,
|
|
2839
|
-
ZodString:
|
|
2839
|
+
ZodString: C,
|
|
2840
2840
|
ZodNumber: P,
|
|
2841
2841
|
ZodBigInt: M,
|
|
2842
2842
|
ZodBoolean: ne,
|
|
@@ -2848,7 +2848,7 @@ var r = /* @__PURE__ */ Object.freeze({
|
|
|
2848
2848
|
ZodUnknown: $,
|
|
2849
2849
|
ZodNever: R,
|
|
2850
2850
|
ZodVoid: ve,
|
|
2851
|
-
ZodArray:
|
|
2851
|
+
ZodArray: E,
|
|
2852
2852
|
ZodObject: k,
|
|
2853
2853
|
ZodUnion: ae,
|
|
2854
2854
|
ZodDiscriminatedUnion: xe,
|
|
@@ -2870,71 +2870,71 @@ var r = /* @__PURE__ */ Object.freeze({
|
|
|
2870
2870
|
ZodDefault: ue,
|
|
2871
2871
|
ZodCatch: pe,
|
|
2872
2872
|
ZodNaN: ke,
|
|
2873
|
-
BRAND:
|
|
2873
|
+
BRAND: It,
|
|
2874
2874
|
ZodBranded: Me,
|
|
2875
2875
|
ZodPipeline: fe,
|
|
2876
2876
|
ZodReadonly: he,
|
|
2877
2877
|
custom: Je,
|
|
2878
2878
|
Schema: v,
|
|
2879
2879
|
ZodSchema: v,
|
|
2880
|
-
late:
|
|
2880
|
+
late: Nt,
|
|
2881
2881
|
get ZodFirstPartyTypeKind() {
|
|
2882
2882
|
return _;
|
|
2883
2883
|
},
|
|
2884
|
-
coerce:
|
|
2885
|
-
any:
|
|
2886
|
-
array:
|
|
2887
|
-
bigint:
|
|
2884
|
+
coerce: hn,
|
|
2885
|
+
any: $t,
|
|
2886
|
+
array: Bt,
|
|
2887
|
+
bigint: At,
|
|
2888
2888
|
boolean: et,
|
|
2889
|
-
date:
|
|
2890
|
-
discriminatedUnion:
|
|
2889
|
+
date: Pt,
|
|
2890
|
+
discriminatedUnion: qt,
|
|
2891
2891
|
effect: We,
|
|
2892
|
-
enum:
|
|
2893
|
-
function:
|
|
2894
|
-
instanceof:
|
|
2895
|
-
intersection:
|
|
2896
|
-
lazy:
|
|
2897
|
-
literal:
|
|
2898
|
-
map:
|
|
2899
|
-
nan:
|
|
2900
|
-
nativeEnum:
|
|
2901
|
-
never:
|
|
2902
|
-
null:
|
|
2903
|
-
nullable:
|
|
2892
|
+
enum: nn,
|
|
2893
|
+
function: Xt,
|
|
2894
|
+
instanceof: Zt,
|
|
2895
|
+
intersection: Ft,
|
|
2896
|
+
lazy: en,
|
|
2897
|
+
literal: tn,
|
|
2898
|
+
map: Jt,
|
|
2899
|
+
nan: Rt,
|
|
2900
|
+
nativeEnum: rn,
|
|
2901
|
+
never: Lt,
|
|
2902
|
+
null: Ut,
|
|
2903
|
+
nullable: on,
|
|
2904
2904
|
number: Xe,
|
|
2905
|
-
object:
|
|
2906
|
-
oboolean:
|
|
2907
|
-
onumber:
|
|
2908
|
-
optional:
|
|
2909
|
-
ostring:
|
|
2910
|
-
pipeline:
|
|
2911
|
-
preprocess:
|
|
2912
|
-
promise:
|
|
2913
|
-
record:
|
|
2914
|
-
set:
|
|
2915
|
-
strictObject:
|
|
2905
|
+
object: Wt,
|
|
2906
|
+
oboolean: pn,
|
|
2907
|
+
onumber: un,
|
|
2908
|
+
optional: an,
|
|
2909
|
+
ostring: ln,
|
|
2910
|
+
pipeline: dn,
|
|
2911
|
+
preprocess: cn,
|
|
2912
|
+
promise: sn,
|
|
2913
|
+
record: Kt,
|
|
2914
|
+
set: Qt,
|
|
2915
|
+
strictObject: Gt,
|
|
2916
2916
|
string: Qe,
|
|
2917
|
-
symbol:
|
|
2917
|
+
symbol: Mt,
|
|
2918
2918
|
transformer: We,
|
|
2919
|
-
tuple:
|
|
2920
|
-
undefined:
|
|
2921
|
-
union:
|
|
2922
|
-
unknown:
|
|
2923
|
-
void:
|
|
2924
|
-
NEVER:
|
|
2919
|
+
tuple: Yt,
|
|
2920
|
+
undefined: Dt,
|
|
2921
|
+
union: Ht,
|
|
2922
|
+
unknown: Vt,
|
|
2923
|
+
void: zt,
|
|
2924
|
+
NEVER: fn,
|
|
2925
2925
|
ZodIssueCode: d,
|
|
2926
|
-
quotelessJson:
|
|
2926
|
+
quotelessJson: pt,
|
|
2927
2927
|
ZodError: T
|
|
2928
2928
|
});
|
|
2929
|
-
|
|
2930
|
-
const
|
|
2929
|
+
ut(r);
|
|
2930
|
+
const qn = r.object({
|
|
2931
2931
|
start: r.number(),
|
|
2932
2932
|
limit: r.number(),
|
|
2933
2933
|
length: r.number()
|
|
2934
2934
|
}), De = r.object({
|
|
2935
2935
|
created_at: r.string(),
|
|
2936
2936
|
updated_at: r.string()
|
|
2937
|
-
}),
|
|
2937
|
+
}), mn = r.object({
|
|
2938
2938
|
email: r.string().optional(),
|
|
2939
2939
|
email_verified: r.boolean().optional(),
|
|
2940
2940
|
name: r.string().optional(),
|
|
@@ -2943,7 +2943,7 @@ const Hn = r.object({
|
|
|
2943
2943
|
phone_number: r.string().optional(),
|
|
2944
2944
|
phone_verified: r.boolean().optional(),
|
|
2945
2945
|
family_name: r.string().optional()
|
|
2946
|
-
}).catchall(r.any()),
|
|
2946
|
+
}).catchall(r.any()), _n = r.object({
|
|
2947
2947
|
connection: r.string(),
|
|
2948
2948
|
user_id: r.string(),
|
|
2949
2949
|
provider: r.string(),
|
|
@@ -2951,7 +2951,7 @@ const Hn = r.object({
|
|
|
2951
2951
|
access_token: r.string().optional(),
|
|
2952
2952
|
access_token_secret: r.string().optional(),
|
|
2953
2953
|
refresh_token: r.string().optional(),
|
|
2954
|
-
profileData:
|
|
2954
|
+
profileData: mn.optional()
|
|
2955
2955
|
}), tt = r.object({
|
|
2956
2956
|
email: r.string().optional(),
|
|
2957
2957
|
username: r.string().optional(),
|
|
@@ -2964,7 +2964,7 @@ const Hn = r.object({
|
|
|
2964
2964
|
linked_to: r.string().optional(),
|
|
2965
2965
|
profileData: r.string().optional(),
|
|
2966
2966
|
user_id: r.string().optional()
|
|
2967
|
-
}),
|
|
2967
|
+
}), gn = tt.extend({
|
|
2968
2968
|
email_verified: r.boolean().default(!1),
|
|
2969
2969
|
verify_email: r.boolean().optional(),
|
|
2970
2970
|
last_ip: r.string().optional(),
|
|
@@ -2972,21 +2972,38 @@ const Hn = r.object({
|
|
|
2972
2972
|
user_id: r.string().optional(),
|
|
2973
2973
|
provider: r.string().default("email"),
|
|
2974
2974
|
connection: r.string().default("email")
|
|
2975
|
-
}),
|
|
2975
|
+
}), yn = gn.extend(De.shape).extend({
|
|
2976
2976
|
user_id: r.string(),
|
|
2977
2977
|
// TODO: this not might be correct if you use the username
|
|
2978
2978
|
email: r.string(),
|
|
2979
2979
|
is_social: r.boolean(),
|
|
2980
2980
|
login_count: r.number(),
|
|
2981
|
-
identities: r.array(
|
|
2982
|
-
}),
|
|
2981
|
+
identities: r.array(_n).optional()
|
|
2982
|
+
}), Fn = yn, Yn = tt.extend({
|
|
2983
2983
|
email: r.string(),
|
|
2984
2984
|
login_count: r.number(),
|
|
2985
2985
|
multifactor: r.array(r.string()).optional(),
|
|
2986
2986
|
last_ip: r.string().optional(),
|
|
2987
2987
|
last_login: r.string().optional(),
|
|
2988
2988
|
user_id: r.string()
|
|
2989
|
-
}).catchall(r.any()),
|
|
2989
|
+
}).catchall(r.any()), vn = r.object({
|
|
2990
|
+
audience: r.string().optional(),
|
|
2991
|
+
recipient: r.string().optional(),
|
|
2992
|
+
createUpnClaim: r.boolean().optional(),
|
|
2993
|
+
mapUnknownClaimsAsIs: r.boolean().optional(),
|
|
2994
|
+
passthroughClaimsWithNoMapping: r.boolean().optional(),
|
|
2995
|
+
mapIdentities: r.boolean().optional(),
|
|
2996
|
+
signatureAlgorithm: r.string().optional(),
|
|
2997
|
+
digestAlgorithm: r.string().optional(),
|
|
2998
|
+
issuer: r.string().optional(),
|
|
2999
|
+
destination: r.string().optional(),
|
|
3000
|
+
lifetimeInSeconds: r.number().optional(),
|
|
3001
|
+
signResponse: r.boolean().optional(),
|
|
3002
|
+
nameIdentifierFormat: r.string().optional(),
|
|
3003
|
+
nameIdentifierProbes: r.array(r.string()).optional(),
|
|
3004
|
+
authnContextClassRef: r.string().optional(),
|
|
3005
|
+
mappings: r.record(r.string()).optional()
|
|
3006
|
+
}), bn = r.object({
|
|
2990
3007
|
id: r.string(),
|
|
2991
3008
|
name: r.string(),
|
|
2992
3009
|
callbacks: r.array(r.string()).openapi({
|
|
@@ -3001,7 +3018,9 @@ const Hn = r.object({
|
|
|
3001
3018
|
allowed_logout_urls: r.array(r.string()).openapi({
|
|
3002
3019
|
description: "Comma-separated list of URLs that are valid to redirect to after logout from Auth0. Wildcards are allowed for subdomains."
|
|
3003
3020
|
}),
|
|
3004
|
-
addons: r.
|
|
3021
|
+
addons: r.object({
|
|
3022
|
+
samlp: vn.optional()
|
|
3023
|
+
}).optional().openapi({
|
|
3005
3024
|
description: "Addons associated with the client. The key is the addon's package name and the value is an object with the configuration for the addon."
|
|
3006
3025
|
}),
|
|
3007
3026
|
email_validation: r.enum(["enabled", "disabled", "enforced"]).default("enforced").openapi({
|
|
@@ -3011,10 +3030,11 @@ const Hn = r.object({
|
|
|
3011
3030
|
disable_sign_ups: r.boolean().default(!1).openapi({
|
|
3012
3031
|
description: "Prevents users from signing up using the hosted login page. This is not available in auth0"
|
|
3013
3032
|
})
|
|
3014
|
-
}),
|
|
3033
|
+
}), kn = r.object({
|
|
3015
3034
|
created_at: r.string().transform((t) => t === null ? "" : t),
|
|
3016
|
-
updated_at: r.string().transform((t) => t === null ? "" : t)
|
|
3017
|
-
|
|
3035
|
+
updated_at: r.string().transform((t) => t === null ? "" : t),
|
|
3036
|
+
...bn.shape
|
|
3037
|
+
});
|
|
3018
3038
|
var nt = /* @__PURE__ */ ((t) => (t.TOKEN = "token", t.TOKEN_ID_TOKEN = "token id_token", t.CODE = "code", t))(nt || {}), rt = /* @__PURE__ */ ((t) => (t.QUERY = "query", t.FRAGMENT = "fragment", t.FORM_POST = "form_post", t.WEB_MESSAGE = "web_message", t.SAML_POST = "saml_post", t))(rt || {}), st = /* @__PURE__ */ ((t) => (t.S265 = "S256", t.plain = "plain", t))(st || {});
|
|
3019
3039
|
const we = r.object({
|
|
3020
3040
|
client_id: r.string(),
|
|
@@ -3029,7 +3049,7 @@ const we = r.object({
|
|
|
3029
3049
|
code_challenge_method: r.nativeEnum(st).optional(),
|
|
3030
3050
|
code_challenge: r.string().optional(),
|
|
3031
3051
|
username: r.string().optional()
|
|
3032
|
-
}),
|
|
3052
|
+
}), Kn = r.object({
|
|
3033
3053
|
colors: r.object({
|
|
3034
3054
|
primary: r.string(),
|
|
3035
3055
|
page_background: r.object({
|
|
@@ -3044,7 +3064,7 @@ const we = r.object({
|
|
|
3044
3064
|
font: r.object({
|
|
3045
3065
|
url: r.string()
|
|
3046
3066
|
}).optional()
|
|
3047
|
-
}),
|
|
3067
|
+
}), xn = r.object({
|
|
3048
3068
|
id: r.string().optional(),
|
|
3049
3069
|
name: r.string(),
|
|
3050
3070
|
client_id: r.string().optional(),
|
|
@@ -3059,64 +3079,85 @@ const we = r.object({
|
|
|
3059
3079
|
token_exchange_basic_auth: r.boolean().optional(),
|
|
3060
3080
|
userinfo_endpoint: r.string().optional(),
|
|
3061
3081
|
scope: r.string().optional()
|
|
3062
|
-
}),
|
|
3082
|
+
}), wn = r.object({
|
|
3063
3083
|
id: r.string(),
|
|
3064
3084
|
created_at: r.string().transform((t) => t === null ? "" : t),
|
|
3065
3085
|
updated_at: r.string().transform((t) => t === null ? "" : t)
|
|
3066
|
-
}).extend(
|
|
3086
|
+
}).extend(xn.shape), Sn = r.object({
|
|
3087
|
+
name: r.string(),
|
|
3088
|
+
audience: r.string(),
|
|
3089
|
+
sender_email: r.string().email(),
|
|
3090
|
+
sender_name: r.string(),
|
|
3091
|
+
support_url: r.string().url().optional(),
|
|
3092
|
+
logo: r.string().url().optional(),
|
|
3093
|
+
primary_color: r.string().optional(),
|
|
3094
|
+
secondary_color: r.string().optional(),
|
|
3095
|
+
language: r.string().optional()
|
|
3096
|
+
}), Tn = r.object({
|
|
3097
|
+
created_at: r.string().transform((t) => t === null ? "" : t),
|
|
3098
|
+
updated_at: r.string().transform((t) => t === null ? "" : t),
|
|
3099
|
+
id: r.string(),
|
|
3100
|
+
...Sn.shape
|
|
3101
|
+
}), Jn = r.object({
|
|
3102
|
+
logoUrl: r.string(),
|
|
3103
|
+
loginBackgroundImage: r.string().nullish(),
|
|
3104
|
+
style: r.object({
|
|
3105
|
+
primaryColor: r.string(),
|
|
3106
|
+
buttonTextColor: r.string(),
|
|
3107
|
+
primaryHoverColor: r.string()
|
|
3108
|
+
}),
|
|
3109
|
+
supportEmail: r.string().nullable(),
|
|
3110
|
+
supportUrl: r.string().nullable(),
|
|
3111
|
+
name: r.string(),
|
|
3112
|
+
showGreyishBackground: r.boolean().optional(),
|
|
3113
|
+
termsAndConditionsUrl: r.string().nullable(),
|
|
3114
|
+
companyName: r.string().optional(),
|
|
3115
|
+
checkoutHideSocial: r.boolean().optional(),
|
|
3116
|
+
siteUrl: r.string().nullable(),
|
|
3117
|
+
manageSubscriptionsUrl: r.string().optional()
|
|
3118
|
+
}), Cn = r.object({
|
|
3067
3119
|
domain: r.string(),
|
|
3068
3120
|
dkim_private_key: r.string().optional(),
|
|
3069
3121
|
dkim_public_key: r.string().optional(),
|
|
3070
3122
|
email_api_key: r.string().optional(),
|
|
3071
3123
|
email_service: r.union([r.literal("mailgun"), r.literal("mailchannels")]).optional()
|
|
3072
|
-
})
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
secondary_color: r.string().optional(),
|
|
3081
|
-
sender_email: r.string(),
|
|
3082
|
-
sender_name: r.string(),
|
|
3083
|
-
support_url: r.string().optional(),
|
|
3084
|
-
language: r.string().length(2).optional()
|
|
3085
|
-
})
|
|
3086
|
-
}), Kn = it.extend({
|
|
3087
|
-
connections: r.array(at)
|
|
3088
|
-
}), Jn = it.extend({
|
|
3089
|
-
connections: r.array(at.partial())
|
|
3090
|
-
}), Tn = r.enum([
|
|
3124
|
+
});
|
|
3125
|
+
r.object({
|
|
3126
|
+
...kn.shape,
|
|
3127
|
+
domains: r.array(Cn),
|
|
3128
|
+
tenant: Tn,
|
|
3129
|
+
connections: r.array(wn)
|
|
3130
|
+
});
|
|
3131
|
+
const En = r.enum([
|
|
3091
3132
|
"password_reset",
|
|
3092
3133
|
"email_verification",
|
|
3093
3134
|
"otp",
|
|
3094
3135
|
"oauth2",
|
|
3095
3136
|
"oauth2_state",
|
|
3096
3137
|
"ticket"
|
|
3097
|
-
]),
|
|
3138
|
+
]), On = r.object({
|
|
3098
3139
|
code_id: r.string().openapi({
|
|
3099
3140
|
description: "The code that will be used in for instance an email verification flow"
|
|
3100
3141
|
}),
|
|
3101
3142
|
login_id: r.string().openapi({
|
|
3102
3143
|
description: "The id of the login session that the code is connected to"
|
|
3103
3144
|
}),
|
|
3104
|
-
code_type:
|
|
3145
|
+
code_type: En,
|
|
3105
3146
|
expires_at: r.string(),
|
|
3106
3147
|
used_at: r.string().optional()
|
|
3107
3148
|
}), Qn = r.object({
|
|
3108
|
-
...
|
|
3149
|
+
...On.shape,
|
|
3109
3150
|
created_at: r.string()
|
|
3110
|
-
}),
|
|
3151
|
+
}), jn = r.object({
|
|
3111
3152
|
domain: r.string(),
|
|
3112
3153
|
dkim_private_key: r.string().optional(),
|
|
3113
3154
|
dkim_public_key: r.string().optional(),
|
|
3114
3155
|
email_api_key: r.string().optional(),
|
|
3115
3156
|
email_service: r.enum(["mailgun", "mailchannels"])
|
|
3116
3157
|
}), Xn = De.extend({
|
|
3117
|
-
...
|
|
3158
|
+
...jn.shape,
|
|
3118
3159
|
id: r.string()
|
|
3119
|
-
}),
|
|
3160
|
+
}), In = r.object({
|
|
3120
3161
|
trigger_id: r.enum([
|
|
3121
3162
|
"pre-user-signup",
|
|
3122
3163
|
"post-user-registration",
|
|
@@ -3127,10 +3168,10 @@ const we = r.object({
|
|
|
3127
3168
|
hook_id: r.string().optional(),
|
|
3128
3169
|
synchronous: r.boolean().default(!1),
|
|
3129
3170
|
priority: r.number().optional()
|
|
3130
|
-
}), er =
|
|
3171
|
+
}), er = In.extend({
|
|
3131
3172
|
...De.shape,
|
|
3132
3173
|
hook_id: r.string()
|
|
3133
|
-
}),
|
|
3174
|
+
}), Nn = r.object({
|
|
3134
3175
|
alg: r.string(),
|
|
3135
3176
|
e: r.string(),
|
|
3136
3177
|
kid: r.string(),
|
|
@@ -3138,7 +3179,7 @@ const we = r.object({
|
|
|
3138
3179
|
n: r.string(),
|
|
3139
3180
|
use: r.string().optional()
|
|
3140
3181
|
}), tr = r.object({
|
|
3141
|
-
keys: r.array(
|
|
3182
|
+
keys: r.array(Nn)
|
|
3142
3183
|
}), nr = r.object({
|
|
3143
3184
|
issuer: r.string(),
|
|
3144
3185
|
authorization_endpoint: r.string(),
|
|
@@ -3160,7 +3201,7 @@ const we = r.object({
|
|
|
3160
3201
|
request_uri_parameter_supported: r.boolean(),
|
|
3161
3202
|
request_parameter_supported: r.boolean(),
|
|
3162
3203
|
token_endpoint_auth_signing_alg_values_supported: r.array(r.string())
|
|
3163
|
-
}),
|
|
3204
|
+
}), Zn = r.object({
|
|
3164
3205
|
auth0Client: r.string().optional(),
|
|
3165
3206
|
authParams: we,
|
|
3166
3207
|
expires_at: r.string(),
|
|
@@ -3169,15 +3210,15 @@ const we = r.object({
|
|
|
3169
3210
|
}).openapi({
|
|
3170
3211
|
description: "This represents a login sesion"
|
|
3171
3212
|
}), rr = r.object({
|
|
3172
|
-
...
|
|
3213
|
+
...Zn.shape,
|
|
3173
3214
|
login_id: r.string().openapi({
|
|
3174
3215
|
description: "This is is used as the state in the universal login"
|
|
3175
3216
|
}),
|
|
3176
3217
|
created_at: r.string(),
|
|
3177
3218
|
updated_at: r.string()
|
|
3178
3219
|
});
|
|
3179
|
-
var
|
|
3180
|
-
const
|
|
3220
|
+
var Rn = /* @__PURE__ */ ((t) => (t.FAILED_SILENT_AUTH = "fsa", t.FAILED_SIGNUP = "fs", t.FAILED_LOGIN = "f", t.FAILED_LOGIN_INCORRECT_PASSWORD = "fp", t.FAILED_CHANGE_PASSWORD = "fcp", t.FAILED_BY_CONNECTOR = "fc", t.FAILED_LOGIN_INVALID_EMAIL_USERNAME = "fu", t.FAILED_HOOK = "fh", t.FAILED_CROSS_ORIGIN_AUTHENTICATION = "fcoa", t.SUCCESS_API_OPERATION = "sapi", t.SUCCESS_CHANGE_PASSWORD = "scp", t.SUCCESS_CHANGE_PASSWORD_REQUEST = "scpr", t.SUCCESS_CHANGE_USERNAME = "scu", t.SUCCESS_CROSS_ORIGIN_AUTHENTICATION = "scoa", t.SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN = "seacft", t.SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN = "serft", t.SUCCESS_LOGIN = "s", t.SUCCESS_LOGOUT = "slo", t.SUCCESS_SIGNUP = "ss", t.SUCCESS_SILENT_AUTH = "ssa", t.SUCCESS_VERIFICATION_EMAIL = "sv", t.SUCCESS_VERIFICATION_EMAIL_REQUEST = "svr", t.CODE_LINK_SENT = "cls", t))(Rn || {});
|
|
3221
|
+
const An = r.enum([
|
|
3181
3222
|
"cls",
|
|
3182
3223
|
// CODE_LINK_SENT
|
|
3183
3224
|
"fsa",
|
|
@@ -3226,14 +3267,14 @@ const Zn = r.enum([
|
|
|
3226
3267
|
// SUCCESS_VERIFICATION_EMAIL
|
|
3227
3268
|
"svr"
|
|
3228
3269
|
// SUCCESS_VERIFICATION_EMAIL_REQUEST
|
|
3229
|
-
]),
|
|
3270
|
+
]), Pn = r.object({
|
|
3230
3271
|
name: r.string(),
|
|
3231
3272
|
version: r.string(),
|
|
3232
3273
|
env: r.object({
|
|
3233
3274
|
node: r.string().optional()
|
|
3234
3275
|
}).optional()
|
|
3235
3276
|
}), sr = r.object({
|
|
3236
|
-
type:
|
|
3277
|
+
type: An,
|
|
3237
3278
|
date: r.string(),
|
|
3238
3279
|
description: r.string().optional(),
|
|
3239
3280
|
log_id: r.string().optional(),
|
|
@@ -3254,16 +3295,16 @@ const Zn = r.enum([
|
|
|
3254
3295
|
strategy: r.string().optional(),
|
|
3255
3296
|
strategy_type: r.string().optional(),
|
|
3256
3297
|
hostname: r.string().optional(),
|
|
3257
|
-
auth0_client:
|
|
3258
|
-
}),
|
|
3298
|
+
auth0_client: Pn.optional()
|
|
3299
|
+
}), Mn = r.object({
|
|
3259
3300
|
user_id: r.string(),
|
|
3260
3301
|
password: r.string(),
|
|
3261
3302
|
algorithm: r.enum(["bcrypt", "argon2id"]).default("argon2id")
|
|
3262
3303
|
}), ar = r.object({
|
|
3263
|
-
...
|
|
3304
|
+
...Mn.shape,
|
|
3264
3305
|
created_at: r.string(),
|
|
3265
3306
|
updated_at: r.string()
|
|
3266
|
-
}),
|
|
3307
|
+
}), Dn = r.object({
|
|
3267
3308
|
session_id: r.string(),
|
|
3268
3309
|
client_id: r.string(),
|
|
3269
3310
|
expires_at: r.string(),
|
|
@@ -3272,7 +3313,7 @@ const Zn = r.enum([
|
|
|
3272
3313
|
user_id: r.string()
|
|
3273
3314
|
}), ir = r.object({
|
|
3274
3315
|
created_at: r.string(),
|
|
3275
|
-
...
|
|
3316
|
+
...Dn.shape
|
|
3276
3317
|
}), or = r.object({
|
|
3277
3318
|
private_key: r.string(),
|
|
3278
3319
|
public_key: r.string(),
|
|
@@ -3298,39 +3339,9 @@ const Zn = r.enum([
|
|
|
3298
3339
|
}),
|
|
3299
3340
|
revoked: r.boolean().optional().openapi({ description: "True if the key is revoked" }),
|
|
3300
3341
|
revoked_at: r.string().optional().openapi({ description: "The date and time when the key was revoked" })
|
|
3301
|
-
}), Mn = r.object({
|
|
3302
|
-
name: r.string(),
|
|
3303
|
-
audience: r.string(),
|
|
3304
|
-
sender_email: r.string().email(),
|
|
3305
|
-
sender_name: r.string(),
|
|
3306
|
-
support_url: r.string().url().optional(),
|
|
3307
|
-
logo: r.string().url().optional(),
|
|
3308
|
-
primary_color: r.string().optional(),
|
|
3309
|
-
secondary_color: r.string().optional(),
|
|
3310
|
-
language: r.string().optional()
|
|
3311
|
-
}), dr = Mn.extend({
|
|
3312
|
-
created_at: r.string().transform((t) => t === null ? "" : t),
|
|
3313
|
-
updated_at: r.string().transform((t) => t === null ? "" : t)
|
|
3314
|
-
}), lr = r.object({
|
|
3315
|
-
logoUrl: r.string(),
|
|
3316
|
-
loginBackgroundImage: r.string().nullish(),
|
|
3317
|
-
style: r.object({
|
|
3318
|
-
primaryColor: r.string(),
|
|
3319
|
-
buttonTextColor: r.string(),
|
|
3320
|
-
primaryHoverColor: r.string()
|
|
3321
|
-
}),
|
|
3322
|
-
supportEmail: r.string().nullable(),
|
|
3323
|
-
supportUrl: r.string().nullable(),
|
|
3324
|
-
name: r.string(),
|
|
3325
|
-
showGreyishBackground: r.boolean().optional(),
|
|
3326
|
-
termsAndConditionsUrl: r.string().nullable(),
|
|
3327
|
-
companyName: r.string().optional(),
|
|
3328
|
-
checkoutHideSocial: r.boolean().optional(),
|
|
3329
|
-
siteUrl: r.string().nullable(),
|
|
3330
|
-
manageSubscriptionsUrl: r.string().optional()
|
|
3331
3342
|
});
|
|
3332
|
-
var
|
|
3333
|
-
const Ue = r.nativeEnum(
|
|
3343
|
+
var at = /* @__PURE__ */ ((t) => (t.RefreshToken = "refresh_token", t.AuthorizationCode = "authorization_code", t.ClientCredential = "client_credentials", t.Passwordless = "passwordless", t.Password = "password", t))(at || {});
|
|
3344
|
+
const Ue = r.nativeEnum(at), dr = r.object({
|
|
3334
3345
|
grant_type: Ue.refine(
|
|
3335
3346
|
(t) => t === "authorization_code"
|
|
3336
3347
|
/* AuthorizationCode */
|
|
@@ -3338,7 +3349,7 @@ const Ue = r.nativeEnum(ot), ur = r.object({
|
|
|
3338
3349
|
code: r.string(),
|
|
3339
3350
|
client_secret: r.string(),
|
|
3340
3351
|
client_id: r.string()
|
|
3341
|
-
}),
|
|
3352
|
+
}), lr = r.object({
|
|
3342
3353
|
grant_type: Ue.refine(
|
|
3343
3354
|
(t) => t === "authorization_code"
|
|
3344
3355
|
/* AuthorizationCode */
|
|
@@ -3347,7 +3358,7 @@ const Ue = r.nativeEnum(ot), ur = r.object({
|
|
|
3347
3358
|
code_verifier: r.string(),
|
|
3348
3359
|
client_id: r.string().optional(),
|
|
3349
3360
|
redirect_uri: r.string()
|
|
3350
|
-
}),
|
|
3361
|
+
}), ur = r.object({
|
|
3351
3362
|
grant_type: Ue.refine(
|
|
3352
3363
|
(t) => t === "client_credentials"
|
|
3353
3364
|
/* ClientCredential */
|
|
@@ -3370,7 +3381,7 @@ r.object({
|
|
|
3370
3381
|
code: r.string(),
|
|
3371
3382
|
state: r.string().optional()
|
|
3372
3383
|
});
|
|
3373
|
-
const
|
|
3384
|
+
const Un = r.object({
|
|
3374
3385
|
button_border_radius: r.number(),
|
|
3375
3386
|
button_border_weight: r.number(),
|
|
3376
3387
|
buttons_style: r.enum(["pill"]),
|
|
@@ -3380,7 +3391,7 @@ const Dn = r.object({
|
|
|
3380
3391
|
show_widget_shadow: r.boolean(),
|
|
3381
3392
|
widget_border_weight: r.number(),
|
|
3382
3393
|
widget_corner_radius: r.number()
|
|
3383
|
-
}),
|
|
3394
|
+
}), $n = r.object({
|
|
3384
3395
|
base_focus_color: r.string(),
|
|
3385
3396
|
base_hover_color: r.string(),
|
|
3386
3397
|
body_text: r.string(),
|
|
@@ -3403,7 +3414,7 @@ const Dn = r.object({
|
|
|
3403
3414
|
}), W = r.object({
|
|
3404
3415
|
bold: r.boolean(),
|
|
3405
3416
|
size: r.number()
|
|
3406
|
-
}),
|
|
3417
|
+
}), Vn = r.object({
|
|
3407
3418
|
body_text: W,
|
|
3408
3419
|
buttons_text: W,
|
|
3409
3420
|
font_url: r.string(),
|
|
@@ -3413,35 +3424,35 @@ const Dn = r.object({
|
|
|
3413
3424
|
reference_text_size: r.number(),
|
|
3414
3425
|
subtitle: W,
|
|
3415
3426
|
title: W
|
|
3416
|
-
}),
|
|
3427
|
+
}), Ln = r.object({
|
|
3417
3428
|
background_color: r.string(),
|
|
3418
3429
|
background_image_url: r.string(),
|
|
3419
3430
|
page_layout: r.enum(["center"])
|
|
3420
|
-
}),
|
|
3431
|
+
}), zn = r.object({
|
|
3421
3432
|
header_text_alignment: r.enum(["center"]),
|
|
3422
3433
|
logo_height: r.number(),
|
|
3423
3434
|
logo_position: r.enum(["center"]),
|
|
3424
3435
|
logo_url: r.string(),
|
|
3425
3436
|
social_buttons_layout: r.enum(["bottom"])
|
|
3426
|
-
}),
|
|
3427
|
-
borders:
|
|
3428
|
-
colors:
|
|
3437
|
+
}), Bn = r.object({
|
|
3438
|
+
borders: Un,
|
|
3439
|
+
colors: $n,
|
|
3429
3440
|
displayName: r.string(),
|
|
3430
|
-
fonts:
|
|
3431
|
-
page_background:
|
|
3432
|
-
widget:
|
|
3433
|
-
}),
|
|
3441
|
+
fonts: Vn,
|
|
3442
|
+
page_background: Ln,
|
|
3443
|
+
widget: zn
|
|
3444
|
+
}), pr = Bn.extend({
|
|
3434
3445
|
themeId: r.string()
|
|
3435
|
-
}),
|
|
3446
|
+
}), Wn = r.object({
|
|
3436
3447
|
id: r.string(),
|
|
3437
3448
|
expires_at: r.string(),
|
|
3438
3449
|
auth0Client: r.string().optional(),
|
|
3439
3450
|
authParams: we
|
|
3440
|
-
}),
|
|
3441
|
-
...
|
|
3451
|
+
}), hr = r.object({
|
|
3452
|
+
...Wn.shape,
|
|
3442
3453
|
created_at: r.string(),
|
|
3443
3454
|
updated_at: r.string()
|
|
3444
|
-
}),
|
|
3455
|
+
}), Gn = r.object({
|
|
3445
3456
|
id: r.string(),
|
|
3446
3457
|
email: r.string(),
|
|
3447
3458
|
code: r.string(),
|
|
@@ -3451,87 +3462,86 @@ const Dn = r.object({
|
|
|
3451
3462
|
expires_at: r.string(),
|
|
3452
3463
|
used_at: r.string().optional(),
|
|
3453
3464
|
user_id: r.string().optional()
|
|
3454
|
-
}),
|
|
3465
|
+
}), fr = r.object({
|
|
3455
3466
|
created_at: r.string(),
|
|
3456
|
-
...
|
|
3457
|
-
}),
|
|
3467
|
+
...Gn.shape
|
|
3468
|
+
}), Hn = r.object({
|
|
3458
3469
|
authParams: we,
|
|
3459
3470
|
code: r.string(),
|
|
3460
3471
|
user_id: r.string(),
|
|
3461
3472
|
created_at: r.string(),
|
|
3462
3473
|
expires_at: r.string(),
|
|
3463
3474
|
used_at: r.string().optional()
|
|
3464
|
-
}),
|
|
3465
|
-
...
|
|
3475
|
+
}), mr = r.object({
|
|
3476
|
+
...Hn.shape,
|
|
3466
3477
|
created_at: r.string()
|
|
3467
3478
|
});
|
|
3468
|
-
function
|
|
3479
|
+
function _r(t) {
|
|
3469
3480
|
const [e, n] = t.split("|");
|
|
3470
3481
|
if (!e || !n)
|
|
3471
3482
|
throw new Error(`Invalid user_id: ${t}`);
|
|
3472
3483
|
return { connection: e, id: n };
|
|
3473
3484
|
}
|
|
3474
3485
|
export {
|
|
3475
|
-
|
|
3486
|
+
Pn as Auth0Client,
|
|
3476
3487
|
rt as AuthorizationResponseMode,
|
|
3477
3488
|
nt as AuthorizationResponseType,
|
|
3478
|
-
Kn as ClientSchema,
|
|
3479
3489
|
st as CodeChallengeMethod,
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
kn as
|
|
3484
|
-
|
|
3485
|
-
qn as auth0UserResponseSchema,
|
|
3490
|
+
at as GrantType,
|
|
3491
|
+
Rn as LogTypes,
|
|
3492
|
+
bn as applicationInsertSchema,
|
|
3493
|
+
kn as applicationSchema,
|
|
3494
|
+
Fn as auth0UserResponseSchema,
|
|
3486
3495
|
we as authParamsSchema,
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3496
|
+
Hn as authenticationCodeInsertSchema,
|
|
3497
|
+
mr as authenticationCodeSchema,
|
|
3498
|
+
dr as authorizationCodeGrantTypeParamsSchema,
|
|
3490
3499
|
tt as baseUserSchema,
|
|
3491
|
-
|
|
3492
|
-
|
|
3500
|
+
Un as bordersSchema,
|
|
3501
|
+
Kn as brandingSchema,
|
|
3493
3502
|
or as certificateSchema,
|
|
3494
|
-
|
|
3495
|
-
|
|
3503
|
+
ur as clientCredentialGrantTypeParamsSchema,
|
|
3504
|
+
On as codeInsertSchema,
|
|
3496
3505
|
Qn as codeSchema,
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3506
|
+
En as codeTypeSchema,
|
|
3507
|
+
$n as colorsSchema,
|
|
3508
|
+
xn as connectionInsertSchema,
|
|
3509
|
+
wn as connectionSchema,
|
|
3510
|
+
jn as domainInsertSchema,
|
|
3502
3511
|
Xn as domainSchema,
|
|
3503
3512
|
W as fontDetailsSchema,
|
|
3504
|
-
|
|
3505
|
-
|
|
3513
|
+
Vn as fontsSchema,
|
|
3514
|
+
In as hookInsertSchema,
|
|
3506
3515
|
er as hookSchema,
|
|
3507
|
-
|
|
3516
|
+
_n as identitySchema,
|
|
3508
3517
|
tr as jwksKeySchema,
|
|
3509
|
-
|
|
3518
|
+
Nn as jwksSchema,
|
|
3510
3519
|
sr as logSchema,
|
|
3511
|
-
|
|
3520
|
+
Zn as loginInsertSchema,
|
|
3512
3521
|
rr as loginSchema,
|
|
3513
3522
|
nr as openIDConfigurationSchema,
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3523
|
+
Gn as otpInsertSchema,
|
|
3524
|
+
fr as otpSchema,
|
|
3525
|
+
Ln as pageBackgroundSchema,
|
|
3526
|
+
_r as parseUserId,
|
|
3527
|
+
Mn as passwordInsertSchema,
|
|
3519
3528
|
ar as passwordSchema,
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3529
|
+
lr as pkceAuthorizationCodeGrantTypeParamsSchema,
|
|
3530
|
+
mn as profileDataSchema,
|
|
3531
|
+
vn as samlpAddon,
|
|
3532
|
+
Dn as sessionInsertSchema,
|
|
3523
3533
|
ir as sessionSchema,
|
|
3524
3534
|
cr as signingKeySchema,
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3535
|
+
Sn as tenantInsertSchema,
|
|
3536
|
+
Tn as tenantSchema,
|
|
3537
|
+
Bn as themeInsertSchema,
|
|
3538
|
+
pr as themeSchema,
|
|
3539
|
+
qn as totalsSchema,
|
|
3540
|
+
Wn as universalLoginSessionInsertSchema,
|
|
3541
|
+
hr as universalLoginSessionSchema,
|
|
3542
|
+
gn as userInsertSchema,
|
|
3543
|
+
Yn as userResponseSchema,
|
|
3544
|
+
yn as userSchema,
|
|
3545
|
+
Jn as vendorSettingsSchema,
|
|
3546
|
+
zn as widgetSchema
|
|
3537
3547
|
};
|