@authhero/adapter-interfaces 0.25.0 → 0.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapter-interfaces.cjs +1 -1
- package/dist/adapter-interfaces.d.ts +28 -76
- package/dist/adapter-interfaces.mjs +242 -272
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function at(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 dt(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 it(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,19 +17,19 @@ function J(t, e) {
|
|
|
17
17
|
return a._def.openapi = this._def.openapi, a;
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function ot(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, d, u, l, m, x;
|
|
25
|
-
const
|
|
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),
|
|
27
|
-
} : void 0),
|
|
28
|
-
if (
|
|
29
|
-
const
|
|
30
|
-
|
|
25
|
+
const B = typeof a == "string" ? i : a, z = B ?? {}, { param: Ue } = z, nt = at(z, ["param"]), De = Object.assign(Object.assign({}, (o = this._def.openapi) === null || o === void 0 ? void 0 : o._internal), typeof a == "string" ? { refId: a } : void 0), $e = Object.assign(Object.assign(Object.assign({}, (d = this._def.openapi) === null || d === void 0 ? void 0 : d.metadata), nt), !((l = (u = this._def.openapi) === null || u === void 0 ? void 0 : u.metadata) === null || l === void 0) && l.param || Ue ? {
|
|
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), Ue)
|
|
27
|
+
} : void 0), Ve = new this.constructor(Object.assign(Object.assign({}, this._def), { openapi: Object.assign(Object.assign({}, Object.keys(De).length > 0 ? { _internal: De } : void 0), Object.keys($e).length > 0 ? { metadata: $e } : void 0) }));
|
|
28
|
+
if (it(this, "ZodObject")) {
|
|
29
|
+
const rt = this.extend;
|
|
30
|
+
Ve.extend = function(...st) {
|
|
31
31
|
var we, Se, Te, Ee, Ce, Oe;
|
|
32
|
-
const je =
|
|
32
|
+
const je = rt.apply(this, st);
|
|
33
33
|
return je._def.openapi = {
|
|
34
34
|
_internal: {
|
|
35
35
|
extendedFrom: !((Se = (we = this._def.openapi) === null || we === void 0 ? void 0 : we._internal) === null || Se === void 0) && Se.refId ? { refId: (Ee = (Te = this._def.openapi) === null || Te === void 0 ? void 0 : Te._internal) === null || Ee === void 0 ? void 0 : Ee.refId, schema: this } : (Ce = this._def.openapi) === null || Ce === void 0 ? void 0 : Ce._internal.extendedFrom
|
|
@@ -38,7 +38,7 @@ function lt(t) {
|
|
|
38
38
|
}, je;
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
|
-
return
|
|
41
|
+
return Ve;
|
|
42
42
|
}, J(t, "optional"), J(t, "nullable"), J(t, "default"), J(t, "transform"), J(t, "refine");
|
|
43
43
|
const e = t.ZodObject.prototype.deepPartial;
|
|
44
44
|
t.ZodObject.prototype.deepPartial = function() {
|
|
@@ -163,7 +163,7 @@ const f = b.arrayToEnum([
|
|
|
163
163
|
"invalid_intersection_types",
|
|
164
164
|
"not_multiple_of",
|
|
165
165
|
"not_finite"
|
|
166
|
-
]),
|
|
166
|
+
]), dt = (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) => {
|
|
@@ -280,12 +280,12 @@ const F = (t, e) => {
|
|
|
280
280
|
}
|
|
281
281
|
return { message: n };
|
|
282
282
|
};
|
|
283
|
-
let
|
|
284
|
-
function
|
|
285
|
-
|
|
283
|
+
let ze = F;
|
|
284
|
+
function ct(t) {
|
|
285
|
+
ze = t;
|
|
286
286
|
}
|
|
287
287
|
function me() {
|
|
288
|
-
return
|
|
288
|
+
return ze;
|
|
289
289
|
}
|
|
290
290
|
const _e = (t) => {
|
|
291
291
|
const { data: e, path: n, errorMaps: s, issueData: a } = t, i = [...n, ...a.path || []], o = {
|
|
@@ -307,7 +307,7 @@ const _e = (t) => {
|
|
|
307
307
|
path: i,
|
|
308
308
|
message: d
|
|
309
309
|
};
|
|
310
|
-
},
|
|
310
|
+
}, lt = [];
|
|
311
311
|
function p(t, e) {
|
|
312
312
|
const n = me(), s = _e({
|
|
313
313
|
issueData: e,
|
|
@@ -371,7 +371,7 @@ function ge(t, e, n, s) {
|
|
|
371
371
|
if (typeof e == "function" ? t !== e || !s : !e.has(t)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
372
372
|
return e.get(t);
|
|
373
373
|
}
|
|
374
|
-
function
|
|
374
|
+
function We(t, e, n, s, a) {
|
|
375
375
|
if (typeof e == "function" ? t !== e || !a : !e.has(t)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
376
376
|
return e.set(t, n), n;
|
|
377
377
|
}
|
|
@@ -388,7 +388,7 @@ class I {
|
|
|
388
388
|
return this._cachedPath.length || (this._key instanceof Array ? this._cachedPath.push(...this._path, ...this._key) : this._cachedPath.push(...this._path, this._key)), this._cachedPath;
|
|
389
389
|
}
|
|
390
390
|
}
|
|
391
|
-
const
|
|
391
|
+
const Le = (t, e) => {
|
|
392
392
|
if (ee(e))
|
|
393
393
|
return { success: !0, data: e.value };
|
|
394
394
|
if (!t.common.issues.length)
|
|
@@ -478,7 +478,7 @@ class v {
|
|
|
478
478
|
data: e,
|
|
479
479
|
parsedType: A(e)
|
|
480
480
|
}, i = this._parseSync({ data: e, path: a.path, parent: a });
|
|
481
|
-
return
|
|
481
|
+
return Le(a, i);
|
|
482
482
|
}
|
|
483
483
|
async parseAsync(e, n) {
|
|
484
484
|
const s = await this.safeParseAsync(e, n);
|
|
@@ -499,7 +499,7 @@ class v {
|
|
|
499
499
|
data: e,
|
|
500
500
|
parsedType: A(e)
|
|
501
501
|
}, a = this._parse({ data: e, path: s.path, parent: s }), i = await (te(a) ? a : Promise.resolve(a));
|
|
502
|
-
return
|
|
502
|
+
return Le(s, i);
|
|
503
503
|
}
|
|
504
504
|
refine(e, n) {
|
|
505
505
|
const s = (a) => typeof n == "string" || typeof n > "u" ? { message: n } : typeof n == "function" ? n(a) : n;
|
|
@@ -598,23 +598,23 @@ class v {
|
|
|
598
598
|
return this.safeParse(null).success;
|
|
599
599
|
}
|
|
600
600
|
}
|
|
601
|
-
const
|
|
601
|
+
const ut = /^c[^\s-]{8,}$/i, pt = /^[0-9a-z]+$/, ft = /^[0-9A-HJKMNP-TV-Z]{26}$/, ht = /^[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, mt = /^[a-z0-9_-]{21}$/i, _t = /^[-+]?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)?)??$/, gt = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, yt = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
602
602
|
let Ie;
|
|
603
|
-
const
|
|
604
|
-
function
|
|
603
|
+
const vt = /^(?:(?: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])$/, bt = /^(([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})))$/, kt = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, He = "((\\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])))", xt = new RegExp(`^${He}$`);
|
|
604
|
+
function qe(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
|
|
609
|
-
return new RegExp(`^${
|
|
608
|
+
function wt(t) {
|
|
609
|
+
return new RegExp(`^${qe(t)}$`);
|
|
610
610
|
}
|
|
611
|
-
function
|
|
612
|
-
let e = `${
|
|
611
|
+
function Ge(t) {
|
|
612
|
+
let e = `${He}T${qe(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 St(t, e) {
|
|
617
|
+
return !!((e === "v4" || !e) && vt.test(t) || (e === "v6" || !e) && bt.test(t));
|
|
618
618
|
}
|
|
619
619
|
class E extends v {
|
|
620
620
|
_parse(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
|
+
gt.test(e.data) || (a = this._getOrReturnCtx(e, a), p(a, {
|
|
669
669
|
validation: "email",
|
|
670
670
|
code: c.invalid_string,
|
|
671
671
|
message: i.message
|
|
672
672
|
}), s.dirty());
|
|
673
673
|
else if (i.kind === "emoji")
|
|
674
|
-
Ie || (Ie = new RegExp(
|
|
674
|
+
Ie || (Ie = new RegExp(yt, "u")), Ie.test(e.data) || (a = this._getOrReturnCtx(e, a), p(a, {
|
|
675
675
|
validation: "emoji",
|
|
676
676
|
code: c.invalid_string,
|
|
677
677
|
message: i.message
|
|
678
678
|
}), s.dirty());
|
|
679
679
|
else if (i.kind === "uuid")
|
|
680
|
-
|
|
680
|
+
ht.test(e.data) || (a = this._getOrReturnCtx(e, a), p(a, {
|
|
681
681
|
validation: "uuid",
|
|
682
682
|
code: c.invalid_string,
|
|
683
683
|
message: i.message
|
|
684
684
|
}), s.dirty());
|
|
685
685
|
else if (i.kind === "nanoid")
|
|
686
|
-
|
|
686
|
+
mt.test(e.data) || (a = this._getOrReturnCtx(e, a), p(a, {
|
|
687
687
|
validation: "nanoid",
|
|
688
688
|
code: c.invalid_string,
|
|
689
689
|
message: i.message
|
|
690
690
|
}), s.dirty());
|
|
691
691
|
else if (i.kind === "cuid")
|
|
692
|
-
|
|
692
|
+
ut.test(e.data) || (a = this._getOrReturnCtx(e, a), p(a, {
|
|
693
693
|
validation: "cuid",
|
|
694
694
|
code: c.invalid_string,
|
|
695
695
|
message: i.message
|
|
696
696
|
}), s.dirty());
|
|
697
697
|
else if (i.kind === "cuid2")
|
|
698
|
-
|
|
698
|
+
pt.test(e.data) || (a = this._getOrReturnCtx(e, a), p(a, {
|
|
699
699
|
validation: "cuid2",
|
|
700
700
|
code: c.invalid_string,
|
|
701
701
|
message: i.message
|
|
702
702
|
}), s.dirty());
|
|
703
703
|
else if (i.kind === "ulid")
|
|
704
|
-
|
|
704
|
+
ft.test(e.data) || (a = this._getOrReturnCtx(e, a), p(a, {
|
|
705
705
|
validation: "ulid",
|
|
706
706
|
code: c.invalid_string,
|
|
707
707
|
message: i.message
|
|
@@ -732,27 +732,27 @@ class E extends v {
|
|
|
732
732
|
code: c.invalid_string,
|
|
733
733
|
validation: { endsWith: i.value },
|
|
734
734
|
message: i.message
|
|
735
|
-
}), s.dirty()) : i.kind === "datetime" ?
|
|
735
|
+
}), s.dirty()) : i.kind === "datetime" ? Ge(i).test(e.data) || (a = this._getOrReturnCtx(e, a), p(a, {
|
|
736
736
|
code: c.invalid_string,
|
|
737
737
|
validation: "datetime",
|
|
738
738
|
message: i.message
|
|
739
|
-
}), s.dirty()) : i.kind === "date" ?
|
|
739
|
+
}), s.dirty()) : i.kind === "date" ? xt.test(e.data) || (a = this._getOrReturnCtx(e, a), p(a, {
|
|
740
740
|
code: c.invalid_string,
|
|
741
741
|
validation: "date",
|
|
742
742
|
message: i.message
|
|
743
|
-
}), s.dirty()) : i.kind === "time" ?
|
|
743
|
+
}), s.dirty()) : i.kind === "time" ? wt(i).test(e.data) || (a = this._getOrReturnCtx(e, a), p(a, {
|
|
744
744
|
code: c.invalid_string,
|
|
745
745
|
validation: "time",
|
|
746
746
|
message: i.message
|
|
747
|
-
}), s.dirty()) : i.kind === "duration" ?
|
|
747
|
+
}), s.dirty()) : i.kind === "duration" ? _t.test(e.data) || (a = this._getOrReturnCtx(e, a), p(a, {
|
|
748
748
|
validation: "duration",
|
|
749
749
|
code: c.invalid_string,
|
|
750
750
|
message: i.message
|
|
751
|
-
}), s.dirty()) : i.kind === "ip" ?
|
|
751
|
+
}), s.dirty()) : i.kind === "ip" ? St(e.data, i.version) || (a = this._getOrReturnCtx(e, a), p(a, {
|
|
752
752
|
validation: "ip",
|
|
753
753
|
code: c.invalid_string,
|
|
754
754
|
message: i.message
|
|
755
|
-
}), s.dirty()) : i.kind === "base64" ?
|
|
755
|
+
}), s.dirty()) : i.kind === "base64" ? kt.test(e.data) || (a = this._getOrReturnCtx(e, a), p(a, {
|
|
756
756
|
validation: "base64",
|
|
757
757
|
code: c.invalid_string,
|
|
758
758
|
message: i.message
|
|
@@ -974,7 +974,7 @@ E.create = (t) => {
|
|
|
974
974
|
...y(t)
|
|
975
975
|
});
|
|
976
976
|
};
|
|
977
|
-
function
|
|
977
|
+
function Tt(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" ? Tt(e.data, i.value) !== 0 && (s = this._getOrReturnCtx(e, s), p(s, {
|
|
1017
1017
|
code: c.not_multiple_of,
|
|
1018
1018
|
multipleOf: i.value,
|
|
1019
1019
|
message: i.message
|
|
@@ -1632,10 +1632,10 @@ class k extends v {
|
|
|
1632
1632
|
return a.common.async ? Promise.resolve().then(async () => {
|
|
1633
1633
|
const l = [];
|
|
1634
1634
|
for (const m of u) {
|
|
1635
|
-
const x = await m.key,
|
|
1635
|
+
const x = await m.key, B = await m.value;
|
|
1636
1636
|
l.push({
|
|
1637
1637
|
key: x,
|
|
1638
|
-
value:
|
|
1638
|
+
value: B,
|
|
1639
1639
|
alwaysSet: m.alwaysSet
|
|
1640
1640
|
});
|
|
1641
1641
|
}
|
|
@@ -1832,7 +1832,7 @@ class k extends v {
|
|
|
1832
1832
|
});
|
|
1833
1833
|
}
|
|
1834
1834
|
keyof() {
|
|
1835
|
-
return
|
|
1835
|
+
return Fe(b.objectKeys(this.shape));
|
|
1836
1836
|
}
|
|
1837
1837
|
}
|
|
1838
1838
|
k.create = (t, e) => new k({
|
|
@@ -2307,11 +2307,11 @@ class G extends v {
|
|
|
2307
2307
|
if (this._def.returns instanceof Y) {
|
|
2308
2308
|
const d = this;
|
|
2309
2309
|
return S(async function(...u) {
|
|
2310
|
-
const l = new T([]), m = await d._def.args.parseAsync(u, i).catch((
|
|
2311
|
-
throw l.addIssue(s(u,
|
|
2310
|
+
const l = new T([]), m = await d._def.args.parseAsync(u, i).catch((z) => {
|
|
2311
|
+
throw l.addIssue(s(u, z)), l;
|
|
2312
2312
|
}), x = await Reflect.apply(o, this, m);
|
|
2313
|
-
return await d._def.returns._def.type.parseAsync(x, i).catch((
|
|
2314
|
-
throw l.addIssue(a(x,
|
|
2313
|
+
return await d._def.returns._def.type.parseAsync(x, i).catch((z) => {
|
|
2314
|
+
throw l.addIssue(a(x, z)), l;
|
|
2315
2315
|
});
|
|
2316
2316
|
});
|
|
2317
2317
|
} else {
|
|
@@ -2395,7 +2395,7 @@ ce.create = (t, e) => new ce({
|
|
|
2395
2395
|
typeName: _.ZodLiteral,
|
|
2396
2396
|
...y(e)
|
|
2397
2397
|
});
|
|
2398
|
-
function
|
|
2398
|
+
function Fe(t, e) {
|
|
2399
2399
|
return new U({
|
|
2400
2400
|
values: t,
|
|
2401
2401
|
typeName: _.ZodEnum,
|
|
@@ -2415,7 +2415,7 @@ class U extends v {
|
|
|
2415
2415
|
code: c.invalid_type
|
|
2416
2416
|
}), g;
|
|
2417
2417
|
}
|
|
2418
|
-
if (ge(this, Q) ||
|
|
2418
|
+
if (ge(this, Q) || We(this, Q, new Set(this._def.values)), !ge(this, Q).has(e.data)) {
|
|
2419
2419
|
const n = this._getOrReturnCtx(e), s = this._def.values;
|
|
2420
2420
|
return p(n, {
|
|
2421
2421
|
received: n.data,
|
|
@@ -2460,7 +2460,7 @@ class U extends v {
|
|
|
2460
2460
|
}
|
|
2461
2461
|
}
|
|
2462
2462
|
Q = /* @__PURE__ */ new WeakMap();
|
|
2463
|
-
U.create =
|
|
2463
|
+
U.create = Fe;
|
|
2464
2464
|
class le extends v {
|
|
2465
2465
|
constructor() {
|
|
2466
2466
|
super(...arguments), X.set(this, void 0);
|
|
@@ -2475,7 +2475,7 @@ class le extends v {
|
|
|
2475
2475
|
code: c.invalid_type
|
|
2476
2476
|
}), g;
|
|
2477
2477
|
}
|
|
2478
|
-
if (ge(this, X) ||
|
|
2478
|
+
if (ge(this, X) || We(this, X, new Set(b.getValidEnumValues(this._def.values))), !ge(this, X).has(e.data)) {
|
|
2479
2479
|
const a = b.objectValues(n);
|
|
2480
2480
|
return p(s, {
|
|
2481
2481
|
received: s.data,
|
|
@@ -2714,7 +2714,7 @@ ke.create = (t) => new ke({
|
|
|
2714
2714
|
typeName: _.ZodNaN,
|
|
2715
2715
|
...y(t)
|
|
2716
2716
|
});
|
|
2717
|
-
const
|
|
2717
|
+
const Et = Symbol("zod_brand");
|
|
2718
2718
|
class Pe extends v {
|
|
2719
2719
|
_parse(e) {
|
|
2720
2720
|
const { ctx: n } = this._processInputParams(e), s = n.data;
|
|
@@ -2782,7 +2782,7 @@ fe.create = (t, e) => new fe({
|
|
|
2782
2782
|
typeName: _.ZodReadonly,
|
|
2783
2783
|
...y(e)
|
|
2784
2784
|
});
|
|
2785
|
-
function
|
|
2785
|
+
function Ke(t, e = {}, n) {
|
|
2786
2786
|
return t ? K.create().superRefine((s, a) => {
|
|
2787
2787
|
var i, o;
|
|
2788
2788
|
if (!t(s)) {
|
|
@@ -2791,16 +2791,16 @@ function Ye(t, e = {}, n) {
|
|
|
2791
2791
|
}
|
|
2792
2792
|
}) : K.create();
|
|
2793
2793
|
}
|
|
2794
|
-
const
|
|
2794
|
+
const Ct = {
|
|
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 Ot = (t, e = {
|
|
2802
2802
|
message: `Input not instance of ${t.name}`
|
|
2803
|
-
}) =>
|
|
2803
|
+
}) => Ke((n) => n instanceof t, e), Ye = E.create, Je = P.create, jt = ke.create, It = M.create, Qe = ne.create, Nt = V.create, Zt = ye.create, Rt = re.create, At = se.create, Pt = K.create, Mt = $.create, Ut = R.create, Dt = ve.create, $t = C.create, Vt = k.create, Lt = k.strictCreate, Bt = ae.create, zt = xe.create, Wt = ie.create, Ht = N.create, qt = oe.create, Gt = be.create, Ft = L.create, Kt = G.create, Yt = de.create, Jt = ce.create, Qt = U.create, Xt = le.create, en = Y.create, Be = O.create, tn = j.create, nn = D.create, rn = O.createWithPreprocess, sn = he.create, an = () => Ye().optional(), on = () => Je().optional(), dn = () => Qe().optional(), cn = {
|
|
2804
2804
|
string: (t) => E.create({ ...t, coerce: !0 }),
|
|
2805
2805
|
number: (t) => P.create({ ...t, coerce: !0 }),
|
|
2806
2806
|
boolean: (t) => ne.create({
|
|
@@ -2809,14 +2809,14 @@ const Nt = (t, e = {
|
|
|
2809
2809
|
}),
|
|
2810
2810
|
bigint: (t) => M.create({ ...t, coerce: !0 }),
|
|
2811
2811
|
date: (t) => V.create({ ...t, coerce: !0 })
|
|
2812
|
-
},
|
|
2812
|
+
}, ln = g;
|
|
2813
2813
|
var r = /* @__PURE__ */ Object.freeze({
|
|
2814
2814
|
__proto__: null,
|
|
2815
2815
|
defaultErrorMap: F,
|
|
2816
|
-
setErrorMap:
|
|
2816
|
+
setErrorMap: ct,
|
|
2817
2817
|
getErrorMap: me,
|
|
2818
2818
|
makeIssue: _e,
|
|
2819
|
-
EMPTY_PATH:
|
|
2819
|
+
EMPTY_PATH: lt,
|
|
2820
2820
|
addIssueToContext: p,
|
|
2821
2821
|
ParseStatus: w,
|
|
2822
2822
|
INVALID: g,
|
|
@@ -2835,7 +2835,7 @@ var r = /* @__PURE__ */ Object.freeze({
|
|
|
2835
2835
|
ZodParsedType: f,
|
|
2836
2836
|
getParsedType: A,
|
|
2837
2837
|
ZodType: v,
|
|
2838
|
-
datetimeRegex:
|
|
2838
|
+
datetimeRegex: Ge,
|
|
2839
2839
|
ZodString: E,
|
|
2840
2840
|
ZodNumber: P,
|
|
2841
2841
|
ZodBigInt: M,
|
|
@@ -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: Et,
|
|
2874
2874
|
ZodBranded: Pe,
|
|
2875
2875
|
ZodPipeline: he,
|
|
2876
2876
|
ZodReadonly: fe,
|
|
2877
|
-
custom:
|
|
2877
|
+
custom: Ke,
|
|
2878
2878
|
Schema: v,
|
|
2879
2879
|
ZodSchema: v,
|
|
2880
|
-
late:
|
|
2880
|
+
late: Ct,
|
|
2881
2881
|
get ZodFirstPartyTypeKind() {
|
|
2882
2882
|
return _;
|
|
2883
2883
|
},
|
|
2884
|
-
coerce:
|
|
2885
|
-
any:
|
|
2886
|
-
array:
|
|
2887
|
-
bigint:
|
|
2888
|
-
boolean:
|
|
2889
|
-
date:
|
|
2890
|
-
discriminatedUnion:
|
|
2884
|
+
coerce: cn,
|
|
2885
|
+
any: Pt,
|
|
2886
|
+
array: $t,
|
|
2887
|
+
bigint: It,
|
|
2888
|
+
boolean: Qe,
|
|
2889
|
+
date: Nt,
|
|
2890
|
+
discriminatedUnion: zt,
|
|
2891
2891
|
effect: Be,
|
|
2892
|
-
enum:
|
|
2893
|
-
function:
|
|
2894
|
-
instanceof:
|
|
2895
|
-
intersection:
|
|
2896
|
-
lazy:
|
|
2897
|
-
literal:
|
|
2898
|
-
map:
|
|
2899
|
-
nan:
|
|
2900
|
-
nativeEnum:
|
|
2901
|
-
never:
|
|
2902
|
-
null:
|
|
2903
|
-
nullable:
|
|
2904
|
-
number:
|
|
2905
|
-
object:
|
|
2906
|
-
oboolean:
|
|
2907
|
-
onumber:
|
|
2908
|
-
optional:
|
|
2909
|
-
ostring:
|
|
2910
|
-
pipeline:
|
|
2911
|
-
preprocess:
|
|
2912
|
-
promise:
|
|
2913
|
-
record:
|
|
2914
|
-
set:
|
|
2915
|
-
strictObject:
|
|
2916
|
-
string:
|
|
2917
|
-
symbol:
|
|
2892
|
+
enum: Qt,
|
|
2893
|
+
function: Kt,
|
|
2894
|
+
instanceof: Ot,
|
|
2895
|
+
intersection: Wt,
|
|
2896
|
+
lazy: Yt,
|
|
2897
|
+
literal: Jt,
|
|
2898
|
+
map: Gt,
|
|
2899
|
+
nan: jt,
|
|
2900
|
+
nativeEnum: Xt,
|
|
2901
|
+
never: Ut,
|
|
2902
|
+
null: At,
|
|
2903
|
+
nullable: nn,
|
|
2904
|
+
number: Je,
|
|
2905
|
+
object: Vt,
|
|
2906
|
+
oboolean: dn,
|
|
2907
|
+
onumber: on,
|
|
2908
|
+
optional: tn,
|
|
2909
|
+
ostring: an,
|
|
2910
|
+
pipeline: sn,
|
|
2911
|
+
preprocess: rn,
|
|
2912
|
+
promise: en,
|
|
2913
|
+
record: qt,
|
|
2914
|
+
set: Ft,
|
|
2915
|
+
strictObject: Lt,
|
|
2916
|
+
string: Ye,
|
|
2917
|
+
symbol: Zt,
|
|
2918
2918
|
transformer: Be,
|
|
2919
|
-
tuple:
|
|
2920
|
-
undefined:
|
|
2921
|
-
union:
|
|
2922
|
-
unknown:
|
|
2923
|
-
void:
|
|
2924
|
-
NEVER:
|
|
2919
|
+
tuple: Ht,
|
|
2920
|
+
undefined: Rt,
|
|
2921
|
+
union: Bt,
|
|
2922
|
+
unknown: Mt,
|
|
2923
|
+
void: Dt,
|
|
2924
|
+
NEVER: ln,
|
|
2925
2925
|
ZodIssueCode: c,
|
|
2926
|
-
quotelessJson:
|
|
2926
|
+
quotelessJson: dt,
|
|
2927
2927
|
ZodError: T
|
|
2928
2928
|
});
|
|
2929
|
-
|
|
2930
|
-
const
|
|
2929
|
+
ot(r);
|
|
2930
|
+
const Hn = r.object({
|
|
2931
2931
|
start: r.number(),
|
|
2932
2932
|
limit: r.number(),
|
|
2933
2933
|
length: r.number()
|
|
2934
2934
|
}), Me = r.object({
|
|
2935
2935
|
created_at: r.string(),
|
|
2936
2936
|
updated_at: r.string()
|
|
2937
|
-
}),
|
|
2937
|
+
}), un = 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 qn = 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()), pn = r.object({
|
|
2947
2947
|
connection: r.string(),
|
|
2948
2948
|
user_id: r.string(),
|
|
2949
2949
|
provider: r.string(),
|
|
@@ -2951,8 +2951,8 @@ const qn = 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:
|
|
2955
|
-
}),
|
|
2954
|
+
profileData: un.optional()
|
|
2955
|
+
}), Xe = r.object({
|
|
2956
2956
|
email: r.string().optional(),
|
|
2957
2957
|
username: r.string().optional(),
|
|
2958
2958
|
given_name: r.string().optional(),
|
|
@@ -2966,7 +2966,7 @@ const qn = r.object({
|
|
|
2966
2966
|
user_id: r.string().optional(),
|
|
2967
2967
|
app_metadata: r.any().default({}).optional(),
|
|
2968
2968
|
user_metadata: r.any().default({}).optional()
|
|
2969
|
-
}),
|
|
2969
|
+
}), fn = Xe.extend({
|
|
2970
2970
|
email_verified: r.boolean().default(!1),
|
|
2971
2971
|
verify_email: r.boolean().optional(),
|
|
2972
2972
|
last_ip: r.string().optional(),
|
|
@@ -2974,30 +2974,30 @@ const qn = r.object({
|
|
|
2974
2974
|
user_id: r.string().optional(),
|
|
2975
2975
|
provider: r.string().default("email"),
|
|
2976
2976
|
connection: r.string().default("email")
|
|
2977
|
-
}),
|
|
2978
|
-
...
|
|
2977
|
+
}), hn = r.object({
|
|
2978
|
+
...fn.shape,
|
|
2979
2979
|
...Me.shape,
|
|
2980
2980
|
user_id: r.string(),
|
|
2981
2981
|
// TODO: this not might be correct if you use the username
|
|
2982
2982
|
email: r.string(),
|
|
2983
2983
|
is_social: r.boolean(),
|
|
2984
2984
|
login_count: r.number(),
|
|
2985
|
-
identities: r.array(
|
|
2986
|
-
}),
|
|
2985
|
+
identities: r.array(pn).optional()
|
|
2986
|
+
}), qn = hn, Gn = Xe.extend({
|
|
2987
2987
|
email: r.string(),
|
|
2988
2988
|
login_count: r.number(),
|
|
2989
2989
|
multifactor: r.array(r.string()).optional(),
|
|
2990
2990
|
last_ip: r.string().optional(),
|
|
2991
2991
|
last_login: r.string().optional(),
|
|
2992
2992
|
user_id: r.string()
|
|
2993
|
-
}).catchall(r.any()),
|
|
2994
|
-
let
|
|
2993
|
+
}).catchall(r.any()), mn = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
2994
|
+
let _n = (t = 21) => {
|
|
2995
2995
|
let e = "", n = crypto.getRandomValues(new Uint8Array(t));
|
|
2996
2996
|
for (; t--; )
|
|
2997
|
-
e +=
|
|
2997
|
+
e += mn[n[t] & 63];
|
|
2998
2998
|
return e;
|
|
2999
2999
|
};
|
|
3000
|
-
const
|
|
3000
|
+
const gn = r.object({
|
|
3001
3001
|
audience: r.string().optional(),
|
|
3002
3002
|
recipient: r.string().optional(),
|
|
3003
3003
|
createUpnClaim: r.boolean().optional(),
|
|
@@ -3014,7 +3014,7 @@ const bn = r.object({
|
|
|
3014
3014
|
nameIdentifierProbes: r.array(r.string()).optional(),
|
|
3015
3015
|
authnContextClassRef: r.string().optional(),
|
|
3016
3016
|
mappings: r.record(r.string()).optional()
|
|
3017
|
-
}),
|
|
3017
|
+
}), yn = r.object({
|
|
3018
3018
|
id: r.string(),
|
|
3019
3019
|
name: r.string(),
|
|
3020
3020
|
callbacks: r.array(r.string()).default([]).optional().openapi({
|
|
@@ -3033,40 +3033,40 @@ const bn = r.object({
|
|
|
3033
3033
|
description: "Ids of clients that will be allowed to perform delegation requests. Clients that will be allowed to make delegation request. By default, all your clients will be allowed. This field allows you to specify specific clients"
|
|
3034
3034
|
}),
|
|
3035
3035
|
addons: r.object({
|
|
3036
|
-
samlp:
|
|
3036
|
+
samlp: gn.optional()
|
|
3037
3037
|
}).default({}).optional().openapi({
|
|
3038
3038
|
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."
|
|
3039
3039
|
}),
|
|
3040
3040
|
email_validation: r.enum(["enabled", "disabled", "enforced"]).default("enforced").optional().openapi({
|
|
3041
3041
|
description: "Defines if it possible to sign in with an unverified email and if verification emails will be sent. This is not available in auth0"
|
|
3042
3042
|
}),
|
|
3043
|
-
client_secret: r.string().default(() =>
|
|
3043
|
+
client_secret: r.string().default(() => _n()).optional(),
|
|
3044
3044
|
disable_sign_ups: r.boolean().optional().default(!1).openapi({
|
|
3045
3045
|
description: "Prevents users from signing up using the hosted login page. This is not available in auth0"
|
|
3046
3046
|
})
|
|
3047
|
-
}),
|
|
3047
|
+
}), vn = r.object({
|
|
3048
3048
|
created_at: r.string().transform((t) => t === null ? "" : t),
|
|
3049
3049
|
updated_at: r.string().transform((t) => t === null ? "" : t),
|
|
3050
|
-
...
|
|
3050
|
+
...yn.shape
|
|
3051
3051
|
});
|
|
3052
|
-
var
|
|
3053
|
-
const
|
|
3052
|
+
var et = /* @__PURE__ */ ((t) => (t.TOKEN = "token", t.TOKEN_ID_TOKEN = "token id_token", t.CODE = "code", t))(et || {}), tt = /* @__PURE__ */ ((t) => (t.QUERY = "query", t.FRAGMENT = "fragment", t.FORM_POST = "form_post", t.WEB_MESSAGE = "web_message", t.SAML_POST = "saml_post", t))(tt || {}), bn = /* @__PURE__ */ ((t) => (t.S265 = "S256", t.plain = "plain", t))(bn || {});
|
|
3053
|
+
const kn = r.object({
|
|
3054
3054
|
client_id: r.string(),
|
|
3055
3055
|
vendor_id: r.string().optional(),
|
|
3056
3056
|
act_as: r.string().optional(),
|
|
3057
|
-
response_type: r.nativeEnum(
|
|
3058
|
-
response_mode: r.nativeEnum(
|
|
3057
|
+
response_type: r.nativeEnum(et).optional(),
|
|
3058
|
+
response_mode: r.nativeEnum(tt).optional(),
|
|
3059
3059
|
redirect_uri: r.string().optional(),
|
|
3060
3060
|
audience: r.string().optional(),
|
|
3061
3061
|
state: r.string().optional(),
|
|
3062
3062
|
nonce: r.string().optional(),
|
|
3063
3063
|
scope: r.string().optional(),
|
|
3064
3064
|
prompt: r.string().optional(),
|
|
3065
|
-
code_challenge_method: r.
|
|
3065
|
+
code_challenge_method: r.enum(["plain", "S256"]).optional(),
|
|
3066
3066
|
code_challenge: r.string().optional(),
|
|
3067
3067
|
username: r.string().optional(),
|
|
3068
3068
|
ui_locales: r.string().optional()
|
|
3069
|
-
}),
|
|
3069
|
+
}), Fn = r.object({
|
|
3070
3070
|
colors: r.object({
|
|
3071
3071
|
primary: r.string(),
|
|
3072
3072
|
page_background: r.object({
|
|
@@ -3081,7 +3081,7 @@ const wn = r.object({
|
|
|
3081
3081
|
font: r.object({
|
|
3082
3082
|
url: r.string()
|
|
3083
3083
|
}).optional()
|
|
3084
|
-
}),
|
|
3084
|
+
}), xn = r.object({
|
|
3085
3085
|
id: r.string().optional(),
|
|
3086
3086
|
name: r.string(),
|
|
3087
3087
|
strategy: r.enum([
|
|
@@ -3117,11 +3117,11 @@ const wn = r.object({
|
|
|
3117
3117
|
enabled_clients: r.array(r.string()).default([]).optional(),
|
|
3118
3118
|
response_type: r.custom().optional(),
|
|
3119
3119
|
response_mode: r.custom().optional()
|
|
3120
|
-
}),
|
|
3120
|
+
}), wn = r.object({
|
|
3121
3121
|
id: r.string(),
|
|
3122
3122
|
created_at: r.string().transform((t) => t === null ? "" : t),
|
|
3123
3123
|
updated_at: r.string().transform((t) => t === null ? "" : t)
|
|
3124
|
-
}).extend(
|
|
3124
|
+
}).extend(xn.shape), Sn = r.object({
|
|
3125
3125
|
name: r.string(),
|
|
3126
3126
|
audience: r.string(),
|
|
3127
3127
|
sender_email: r.string().email(),
|
|
@@ -3131,12 +3131,12 @@ const wn = r.object({
|
|
|
3131
3131
|
primary_color: r.string().optional(),
|
|
3132
3132
|
secondary_color: r.string().optional(),
|
|
3133
3133
|
language: r.string().optional()
|
|
3134
|
-
}),
|
|
3134
|
+
}), Tn = r.object({
|
|
3135
3135
|
created_at: r.string().transform((t) => t === null ? "" : t),
|
|
3136
3136
|
updated_at: r.string().transform((t) => t === null ? "" : t),
|
|
3137
3137
|
id: r.string(),
|
|
3138
|
-
...
|
|
3139
|
-
}),
|
|
3138
|
+
...Sn.shape
|
|
3139
|
+
}), Kn = r.object({
|
|
3140
3140
|
logoUrl: r.string(),
|
|
3141
3141
|
loginBackgroundImage: r.string().nullish(),
|
|
3142
3142
|
style: r.object({
|
|
@@ -3153,7 +3153,7 @@ const wn = r.object({
|
|
|
3153
3153
|
checkoutHideSocial: r.boolean().optional(),
|
|
3154
3154
|
siteUrl: r.string().nullable(),
|
|
3155
3155
|
manageSubscriptionsUrl: r.string().optional()
|
|
3156
|
-
}),
|
|
3156
|
+
}), En = r.object({
|
|
3157
3157
|
domain: r.string(),
|
|
3158
3158
|
dkim_private_key: r.string().optional(),
|
|
3159
3159
|
dkim_public_key: r.string().optional(),
|
|
@@ -3161,19 +3161,19 @@ const wn = r.object({
|
|
|
3161
3161
|
email_service: r.union([r.literal("mailgun"), r.literal("mailchannels")]).optional()
|
|
3162
3162
|
});
|
|
3163
3163
|
r.object({
|
|
3164
|
-
...
|
|
3165
|
-
domains: r.array(
|
|
3166
|
-
tenant:
|
|
3167
|
-
connections: r.array(
|
|
3164
|
+
...vn.shape,
|
|
3165
|
+
domains: r.array(En),
|
|
3166
|
+
tenant: Tn,
|
|
3167
|
+
connections: r.array(wn)
|
|
3168
3168
|
});
|
|
3169
|
-
const
|
|
3169
|
+
const Cn = r.enum([
|
|
3170
3170
|
"password_reset",
|
|
3171
3171
|
"email_verification",
|
|
3172
3172
|
"otp",
|
|
3173
3173
|
"authorization_code",
|
|
3174
3174
|
"oauth2_state",
|
|
3175
3175
|
"ticket"
|
|
3176
|
-
]),
|
|
3176
|
+
]), On = r.object({
|
|
3177
3177
|
code_id: r.string().openapi({
|
|
3178
3178
|
description: "The code that will be used in for instance an email verification flow"
|
|
3179
3179
|
}),
|
|
@@ -3183,24 +3183,23 @@ const jn = r.enum([
|
|
|
3183
3183
|
connection_id: r.string().optional().openapi({
|
|
3184
3184
|
description: "The connection that the code is connected to"
|
|
3185
3185
|
}),
|
|
3186
|
-
code_type:
|
|
3187
|
-
code_verifier: r.string().optional(),
|
|
3186
|
+
code_type: Cn,
|
|
3188
3187
|
expires_at: r.string(),
|
|
3189
3188
|
used_at: r.string().optional(),
|
|
3190
3189
|
user_id: r.string().optional()
|
|
3191
|
-
}),
|
|
3192
|
-
...
|
|
3190
|
+
}), Yn = r.object({
|
|
3191
|
+
...On.shape,
|
|
3193
3192
|
created_at: r.string()
|
|
3194
|
-
}),
|
|
3193
|
+
}), jn = r.object({
|
|
3195
3194
|
domain: r.string(),
|
|
3196
3195
|
dkim_private_key: r.string().optional(),
|
|
3197
3196
|
dkim_public_key: r.string().optional(),
|
|
3198
3197
|
email_api_key: r.string().optional(),
|
|
3199
3198
|
email_service: r.enum(["mailgun", "mailchannels"])
|
|
3200
|
-
}),
|
|
3201
|
-
...
|
|
3199
|
+
}), Jn = Me.extend({
|
|
3200
|
+
...jn.shape,
|
|
3202
3201
|
id: r.string()
|
|
3203
|
-
}),
|
|
3202
|
+
}), In = r.object({
|
|
3204
3203
|
trigger_id: r.enum([
|
|
3205
3204
|
"pre-user-signup",
|
|
3206
3205
|
"post-user-registration",
|
|
@@ -3211,10 +3210,10 @@ const jn = r.enum([
|
|
|
3211
3210
|
hook_id: r.string().optional(),
|
|
3212
3211
|
synchronous: r.boolean().default(!1),
|
|
3213
3212
|
priority: r.number().optional()
|
|
3214
|
-
}),
|
|
3213
|
+
}), Qn = In.extend({
|
|
3215
3214
|
...Me.shape,
|
|
3216
3215
|
hook_id: r.string()
|
|
3217
|
-
}),
|
|
3216
|
+
}), Nn = r.object({
|
|
3218
3217
|
alg: r.enum([
|
|
3219
3218
|
"RS256",
|
|
3220
3219
|
"RS384",
|
|
@@ -3233,9 +3232,9 @@ const jn = r.enum([
|
|
|
3233
3232
|
x5t: r.string().optional(),
|
|
3234
3233
|
x5c: r.array(r.string()).optional(),
|
|
3235
3234
|
use: r.enum(["sig", "enc"]).optional()
|
|
3235
|
+
}), Xn = r.object({
|
|
3236
|
+
keys: r.array(Nn)
|
|
3236
3237
|
}), er = r.object({
|
|
3237
|
-
keys: r.array(Rn)
|
|
3238
|
-
}), tr = r.object({
|
|
3239
3238
|
issuer: r.string(),
|
|
3240
3239
|
authorization_endpoint: r.string(),
|
|
3241
3240
|
token_endpoint: r.string(),
|
|
@@ -3256,24 +3255,25 @@ const jn = r.enum([
|
|
|
3256
3255
|
request_uri_parameter_supported: r.boolean(),
|
|
3257
3256
|
request_parameter_supported: r.boolean(),
|
|
3258
3257
|
token_endpoint_auth_signing_alg_values_supported: r.array(r.string())
|
|
3259
|
-
}),
|
|
3258
|
+
}), Zn = r.object({
|
|
3260
3259
|
auth0Client: r.string().optional(),
|
|
3261
|
-
authParams:
|
|
3260
|
+
authParams: kn,
|
|
3262
3261
|
expires_at: r.string(),
|
|
3263
3262
|
deleted_at: r.string().optional(),
|
|
3264
|
-
ip: r.string().optional()
|
|
3263
|
+
ip: r.string().optional(),
|
|
3264
|
+
useragent: r.string().optional()
|
|
3265
3265
|
}).openapi({
|
|
3266
3266
|
description: "This represents a login sesion"
|
|
3267
|
-
}),
|
|
3268
|
-
...
|
|
3267
|
+
}), tr = r.object({
|
|
3268
|
+
...Zn.shape,
|
|
3269
3269
|
login_id: r.string().openapi({
|
|
3270
3270
|
description: "This is is used as the state in the universal login"
|
|
3271
3271
|
}),
|
|
3272
3272
|
created_at: r.string(),
|
|
3273
3273
|
updated_at: r.string()
|
|
3274
3274
|
});
|
|
3275
|
-
var
|
|
3276
|
-
const
|
|
3275
|
+
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 || {});
|
|
3276
|
+
const An = r.enum([
|
|
3277
3277
|
"cls",
|
|
3278
3278
|
// CODE_LINK_SENT
|
|
3279
3279
|
"fsa",
|
|
@@ -3322,14 +3322,14 @@ const Mn = r.enum([
|
|
|
3322
3322
|
// SUCCESS_VERIFICATION_EMAIL
|
|
3323
3323
|
"svr"
|
|
3324
3324
|
// SUCCESS_VERIFICATION_EMAIL_REQUEST
|
|
3325
|
-
]),
|
|
3325
|
+
]), Pn = r.object({
|
|
3326
3326
|
name: r.string(),
|
|
3327
3327
|
version: r.string(),
|
|
3328
3328
|
env: r.object({
|
|
3329
3329
|
node: r.string().optional()
|
|
3330
3330
|
}).optional()
|
|
3331
|
-
}),
|
|
3332
|
-
type:
|
|
3331
|
+
}), nr = r.object({
|
|
3332
|
+
type: An,
|
|
3333
3333
|
date: r.string(),
|
|
3334
3334
|
description: r.string().optional(),
|
|
3335
3335
|
log_id: r.string().optional(),
|
|
@@ -3350,26 +3350,26 @@ const Mn = r.enum([
|
|
|
3350
3350
|
strategy: r.string().optional(),
|
|
3351
3351
|
strategy_type: r.string().optional(),
|
|
3352
3352
|
hostname: r.string().optional(),
|
|
3353
|
-
auth0_client:
|
|
3354
|
-
}),
|
|
3353
|
+
auth0_client: Pn.optional()
|
|
3354
|
+
}), Mn = r.object({
|
|
3355
3355
|
user_id: r.string(),
|
|
3356
3356
|
password: r.string(),
|
|
3357
3357
|
algorithm: r.enum(["bcrypt", "argon2id"]).default("argon2id")
|
|
3358
|
-
}),
|
|
3359
|
-
...
|
|
3358
|
+
}), rr = r.object({
|
|
3359
|
+
...Mn.shape,
|
|
3360
3360
|
created_at: r.string(),
|
|
3361
3361
|
updated_at: r.string()
|
|
3362
|
-
}),
|
|
3362
|
+
}), Un = r.object({
|
|
3363
3363
|
session_id: r.string(),
|
|
3364
3364
|
client_id: r.string(),
|
|
3365
3365
|
expires_at: r.string(),
|
|
3366
3366
|
used_at: r.string(),
|
|
3367
3367
|
deleted_at: r.string().optional(),
|
|
3368
3368
|
user_id: r.string()
|
|
3369
|
-
}),
|
|
3369
|
+
}), sr = r.object({
|
|
3370
3370
|
created_at: r.string(),
|
|
3371
|
-
|
|
3372
|
-
}),
|
|
3371
|
+
...Un.shape
|
|
3372
|
+
}), ar = r.object({
|
|
3373
3373
|
kid: r.string().openapi({ description: "The key id of the signing key" }),
|
|
3374
3374
|
cert: r.string().openapi({ description: "The public certificate of the signing key" }),
|
|
3375
3375
|
fingerprint: r.string().openapi({ description: "The cert fingerprint" }),
|
|
@@ -3389,34 +3389,7 @@ const Mn = r.enum([
|
|
|
3389
3389
|
revoked: r.boolean().optional().openapi({ description: "True if the key is revoked" }),
|
|
3390
3390
|
revoked_at: r.string().optional().openapi({ description: "The date and time when the key was revoked" })
|
|
3391
3391
|
});
|
|
3392
|
-
var
|
|
3393
|
-
const Ue = r.nativeEnum(st), or = r.object({
|
|
3394
|
-
grant_type: Ue.refine(
|
|
3395
|
-
(t) => t === "authorization_code"
|
|
3396
|
-
/* AuthorizationCode */
|
|
3397
|
-
),
|
|
3398
|
-
code: r.string(),
|
|
3399
|
-
client_secret: r.string(),
|
|
3400
|
-
client_id: r.string()
|
|
3401
|
-
}), dr = r.object({
|
|
3402
|
-
grant_type: Ue.refine(
|
|
3403
|
-
(t) => t === "authorization_code"
|
|
3404
|
-
/* AuthorizationCode */
|
|
3405
|
-
),
|
|
3406
|
-
code: r.string(),
|
|
3407
|
-
code_verifier: r.string(),
|
|
3408
|
-
client_id: r.string().optional(),
|
|
3409
|
-
redirect_uri: r.string()
|
|
3410
|
-
}), cr = r.object({
|
|
3411
|
-
grant_type: Ue.refine(
|
|
3412
|
-
(t) => t === "client_credentials"
|
|
3413
|
-
/* ClientCredential */
|
|
3414
|
-
),
|
|
3415
|
-
scope: r.string().optional(),
|
|
3416
|
-
client_secret: r.string(),
|
|
3417
|
-
client_id: r.string(),
|
|
3418
|
-
audience: r.string().optional()
|
|
3419
|
-
});
|
|
3392
|
+
var Dn = /* @__PURE__ */ ((t) => (t.RefreshToken = "refresh_token", t.AuthorizationCode = "authorization_code", t.ClientCredential = "client_credentials", t.Passwordless = "passwordless", t.Password = "password", t))(Dn || {});
|
|
3420
3393
|
r.object({
|
|
3421
3394
|
access_token: r.string(),
|
|
3422
3395
|
id_token: r.string().optional(),
|
|
@@ -3430,7 +3403,7 @@ r.object({
|
|
|
3430
3403
|
code: r.string(),
|
|
3431
3404
|
state: r.string().optional()
|
|
3432
3405
|
});
|
|
3433
|
-
const
|
|
3406
|
+
const $n = r.object({
|
|
3434
3407
|
button_border_radius: r.number(),
|
|
3435
3408
|
button_border_weight: r.number(),
|
|
3436
3409
|
buttons_style: r.enum(["pill"]),
|
|
@@ -3440,7 +3413,7 @@ const Vn = r.object({
|
|
|
3440
3413
|
show_widget_shadow: r.boolean(),
|
|
3441
3414
|
widget_border_weight: r.number(),
|
|
3442
3415
|
widget_corner_radius: r.number()
|
|
3443
|
-
}),
|
|
3416
|
+
}), Vn = r.object({
|
|
3444
3417
|
base_focus_color: r.string(),
|
|
3445
3418
|
base_hover_color: r.string(),
|
|
3446
3419
|
body_text: r.string(),
|
|
@@ -3463,7 +3436,7 @@ const Vn = r.object({
|
|
|
3463
3436
|
}), W = r.object({
|
|
3464
3437
|
bold: r.boolean(),
|
|
3465
3438
|
size: r.number()
|
|
3466
|
-
}),
|
|
3439
|
+
}), Ln = r.object({
|
|
3467
3440
|
body_text: W,
|
|
3468
3441
|
buttons_text: W,
|
|
3469
3442
|
font_url: r.string(),
|
|
@@ -3477,27 +3450,27 @@ const Vn = r.object({
|
|
|
3477
3450
|
background_color: r.string(),
|
|
3478
3451
|
background_image_url: r.string(),
|
|
3479
3452
|
page_layout: r.enum(["center"])
|
|
3480
|
-
}),
|
|
3453
|
+
}), zn = r.object({
|
|
3481
3454
|
header_text_alignment: r.enum(["center"]),
|
|
3482
3455
|
logo_height: r.number(),
|
|
3483
3456
|
logo_position: r.enum(["center"]),
|
|
3484
3457
|
logo_url: r.string(),
|
|
3485
3458
|
social_buttons_layout: r.enum(["bottom"])
|
|
3486
|
-
}),
|
|
3487
|
-
borders:
|
|
3488
|
-
colors:
|
|
3459
|
+
}), Wn = r.object({
|
|
3460
|
+
borders: $n,
|
|
3461
|
+
colors: Vn,
|
|
3489
3462
|
displayName: r.string(),
|
|
3490
|
-
fonts:
|
|
3463
|
+
fonts: Ln,
|
|
3491
3464
|
page_background: Bn,
|
|
3492
|
-
widget:
|
|
3493
|
-
}),
|
|
3465
|
+
widget: zn
|
|
3466
|
+
}), ir = Wn.extend({
|
|
3494
3467
|
themeId: r.string()
|
|
3495
|
-
}),
|
|
3468
|
+
}), or = r.object({
|
|
3496
3469
|
universal_login_experience: r.enum(["new", "classic"]).default("new"),
|
|
3497
3470
|
identifier_first: r.boolean().default(!0),
|
|
3498
3471
|
password_first: r.boolean().default(!1),
|
|
3499
3472
|
webauthn_platform_first_factor: r.boolean()
|
|
3500
|
-
}),
|
|
3473
|
+
}), dr = r.object({
|
|
3501
3474
|
name: r.string(),
|
|
3502
3475
|
enabled: r.boolean().optional().default(!0),
|
|
3503
3476
|
default_from_address: r.string().optional(),
|
|
@@ -3528,67 +3501,64 @@ const Vn = r.object({
|
|
|
3528
3501
|
]),
|
|
3529
3502
|
settings: r.object({}).optional()
|
|
3530
3503
|
});
|
|
3531
|
-
function
|
|
3504
|
+
function cr(t) {
|
|
3532
3505
|
const [e, n] = t.split("|");
|
|
3533
3506
|
if (!e || !n)
|
|
3534
3507
|
throw new Error(`Invalid user_id: ${t}`);
|
|
3535
3508
|
return { connection: e, id: n };
|
|
3536
3509
|
}
|
|
3537
3510
|
export {
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
Qn as domainSchema,
|
|
3561
|
-
pr as emailProviderSchema,
|
|
3511
|
+
Pn as Auth0Client,
|
|
3512
|
+
tt as AuthorizationResponseMode,
|
|
3513
|
+
et as AuthorizationResponseType,
|
|
3514
|
+
bn as CodeChallengeMethod,
|
|
3515
|
+
Dn as GrantType,
|
|
3516
|
+
Rn as LogTypes,
|
|
3517
|
+
yn as applicationInsertSchema,
|
|
3518
|
+
vn as applicationSchema,
|
|
3519
|
+
qn as auth0UserResponseSchema,
|
|
3520
|
+
kn as authParamsSchema,
|
|
3521
|
+
Xe as baseUserSchema,
|
|
3522
|
+
$n as bordersSchema,
|
|
3523
|
+
Fn as brandingSchema,
|
|
3524
|
+
On as codeInsertSchema,
|
|
3525
|
+
Yn as codeSchema,
|
|
3526
|
+
Cn as codeTypeSchema,
|
|
3527
|
+
Vn as colorsSchema,
|
|
3528
|
+
xn as connectionInsertSchema,
|
|
3529
|
+
wn as connectionSchema,
|
|
3530
|
+
jn as domainInsertSchema,
|
|
3531
|
+
Jn as domainSchema,
|
|
3532
|
+
dr as emailProviderSchema,
|
|
3562
3533
|
W as fontDetailsSchema,
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3534
|
+
Ln as fontsSchema,
|
|
3535
|
+
In as hookInsertSchema,
|
|
3536
|
+
Qn as hookSchema,
|
|
3537
|
+
pn as identitySchema,
|
|
3538
|
+
Xn as jwksKeySchema,
|
|
3539
|
+
Nn as jwksSchema,
|
|
3540
|
+
nr as logSchema,
|
|
3541
|
+
Zn as loginInsertSchema,
|
|
3542
|
+
tr as loginSchema,
|
|
3543
|
+
er as openIDConfigurationSchema,
|
|
3573
3544
|
Bn as pageBackgroundSchema,
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
ar as
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
Wn as widgetSchema
|
|
3545
|
+
cr as parseUserId,
|
|
3546
|
+
Mn as passwordInsertSchema,
|
|
3547
|
+
rr as passwordSchema,
|
|
3548
|
+
un as profileDataSchema,
|
|
3549
|
+
or as promptSettingSchema,
|
|
3550
|
+
gn as samlpAddon,
|
|
3551
|
+
Un as sessionInsertSchema,
|
|
3552
|
+
sr as sessionSchema,
|
|
3553
|
+
ar as signingKeySchema,
|
|
3554
|
+
Sn as tenantInsertSchema,
|
|
3555
|
+
Tn as tenantSchema,
|
|
3556
|
+
Wn as themeInsertSchema,
|
|
3557
|
+
ir as themeSchema,
|
|
3558
|
+
Hn as totalsSchema,
|
|
3559
|
+
fn as userInsertSchema,
|
|
3560
|
+
Gn as userResponseSchema,
|
|
3561
|
+
hn as userSchema,
|
|
3562
|
+
Kn as vendorSettingsSchema,
|
|
3563
|
+
zn as widgetSchema
|
|
3594
3564
|
};
|