@authhero/adapter-interfaces 0.11.1 → 0.11.3
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 +100 -299
- package/dist/adapter-interfaces.iife.js +1 -1
- package/dist/adapter-interfaces.mjs +245 -270
- 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,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 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(...
|
|
28
|
+
if (lt(this, "ZodObject")) {
|
|
29
|
+
const ot = this.extend;
|
|
30
|
+
ze.extend = function(...ct) {
|
|
31
31
|
var Se, Te, Ee, Ce, Oe, je;
|
|
32
|
-
const Ie =
|
|
32
|
+
const Ie = ot.apply(this, ct);
|
|
33
33
|
return Ie._def.openapi = {
|
|
34
34
|
_internal: {
|
|
35
35
|
extendedFrom: !((Te = (Se = this._def.openapi) === null || Se === void 0 ? void 0 : Se._internal) === null || Te === void 0) && Te.refId ? { refId: (Ce = (Ee = this._def.openapi) === null || Ee === void 0 ? void 0 : Ee._internal) === null || Ce === void 0 ? void 0 : Ce.refId, schema: this } : (Oe = this._def.openapi) === null || Oe === void 0 ? void 0 : Oe._internal.extendedFrom
|
|
@@ -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,
|
|
@@ -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])))", Et = 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 Ct(t) {
|
|
609
609
|
return new RegExp(`^${Fe(t)}$`);
|
|
610
610
|
}
|
|
611
611
|
function Ye(t) {
|
|
@@ -613,8 +613,8 @@ 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
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
|
+
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" ? Et.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" ? Ct(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
|
|
@@ -974,7 +974,7 @@ E.create = (t) => {
|
|
|
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
|
|
@@ -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,16 +2791,16 @@ 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 = E.create, Xe = P.create,
|
|
2803
|
+
}) => Je((n) => n instanceof t, e), Qe = E.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 = C.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
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 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,
|
|
@@ -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 Hn = 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 Gn = 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 Gn = 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 Gn = 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,41 +2972,38 @@ const Gn = 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
|
+
}), qn = yn, Fn = 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
2990
|
id: r.string(),
|
|
2991
2991
|
name: r.string(),
|
|
2992
|
-
callbacks: r.
|
|
2992
|
+
callbacks: r.array(r.string()).openapi({
|
|
2993
2993
|
description: "Comma-separated list of URLs whitelisted to use as a callback to the client after authentication."
|
|
2994
2994
|
}),
|
|
2995
|
-
allowed_origins: r.
|
|
2995
|
+
allowed_origins: r.array(r.string()).openapi({
|
|
2996
2996
|
description: "Comma-separated list of URLs allowed to make requests from JavaScript to Auth0 API (typically used with CORS). By default, all your callback URLs will be allowed. This field allows you to enter other origins if necessary. You can also use wildcards at the subdomain level. Query strings and hash information are not taken into account when validating these URLs."
|
|
2997
2997
|
}),
|
|
2998
|
-
web_origins: r.
|
|
2998
|
+
web_origins: r.array(r.string()).openapi({
|
|
2999
2999
|
description: "Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode."
|
|
3000
3000
|
}),
|
|
3001
|
-
allowed_logout_urls: r.
|
|
3001
|
+
allowed_logout_urls: r.array(r.string()).openapi({
|
|
3002
3002
|
description: "Comma-separated list of URLs that are valid to redirect to after logout from Auth0. Wildcards are allowed for subdomains."
|
|
3003
3003
|
}),
|
|
3004
3004
|
addons: r.record(r.string(), r.record(r.string(), r.union([r.string(), r.number()]))).optional().openapi({
|
|
3005
3005
|
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
3006
|
}),
|
|
3007
|
-
// @deprecated. Renamed to match the auth0 API
|
|
3008
|
-
allowed_web_origins: r.string().transform((t) => t === null ? "" : t).default(""),
|
|
3009
|
-
allowed_callback_urls: r.string().transform((t) => t === null ? "" : t).default(""),
|
|
3010
3007
|
email_validation: r.enum(["enabled", "disabled", "enforced"]).default("enforced").openapi({
|
|
3011
3008
|
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"
|
|
3012
3009
|
}),
|
|
@@ -3014,10 +3011,11 @@ const Gn = r.object({
|
|
|
3014
3011
|
disable_sign_ups: r.boolean().default(!1).openapi({
|
|
3015
3012
|
description: "Prevents users from signing up using the hosted login page. This is not available in auth0"
|
|
3016
3013
|
})
|
|
3017
|
-
}),
|
|
3014
|
+
}), bn = r.object({
|
|
3018
3015
|
created_at: r.string().transform((t) => t === null ? "" : t),
|
|
3019
|
-
updated_at: r.string().transform((t) => t === null ? "" : t)
|
|
3020
|
-
|
|
3016
|
+
updated_at: r.string().transform((t) => t === null ? "" : t),
|
|
3017
|
+
...vn.shape
|
|
3018
|
+
});
|
|
3021
3019
|
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 || {});
|
|
3022
3020
|
const we = r.object({
|
|
3023
3021
|
client_id: r.string(),
|
|
@@ -3047,7 +3045,7 @@ const we = r.object({
|
|
|
3047
3045
|
font: r.object({
|
|
3048
3046
|
url: r.string()
|
|
3049
3047
|
}).optional()
|
|
3050
|
-
}),
|
|
3048
|
+
}), kn = r.object({
|
|
3051
3049
|
id: r.string().optional(),
|
|
3052
3050
|
name: r.string(),
|
|
3053
3051
|
client_id: r.string().optional(),
|
|
@@ -3062,76 +3060,85 @@ const we = r.object({
|
|
|
3062
3060
|
token_exchange_basic_auth: r.boolean().optional(),
|
|
3063
3061
|
userinfo_endpoint: r.string().optional(),
|
|
3064
3062
|
scope: r.string().optional()
|
|
3065
|
-
}),
|
|
3063
|
+
}), xn = r.object({
|
|
3066
3064
|
id: r.string(),
|
|
3067
3065
|
created_at: r.string().transform((t) => t === null ? "" : t),
|
|
3068
3066
|
updated_at: r.string().transform((t) => t === null ? "" : t)
|
|
3069
|
-
}).extend(
|
|
3067
|
+
}).extend(kn.shape), wn = r.object({
|
|
3068
|
+
name: r.string(),
|
|
3069
|
+
audience: r.string(),
|
|
3070
|
+
sender_email: r.string().email(),
|
|
3071
|
+
sender_name: r.string(),
|
|
3072
|
+
support_url: r.string().url().optional(),
|
|
3073
|
+
logo: r.string().url().optional(),
|
|
3074
|
+
primary_color: r.string().optional(),
|
|
3075
|
+
secondary_color: r.string().optional(),
|
|
3076
|
+
language: r.string().optional()
|
|
3077
|
+
}), Sn = r.object({
|
|
3078
|
+
created_at: r.string().transform((t) => t === null ? "" : t),
|
|
3079
|
+
updated_at: r.string().transform((t) => t === null ? "" : t),
|
|
3080
|
+
id: r.string(),
|
|
3081
|
+
...wn.shape
|
|
3082
|
+
}), Kn = r.object({
|
|
3083
|
+
logoUrl: r.string(),
|
|
3084
|
+
loginBackgroundImage: r.string().nullish(),
|
|
3085
|
+
style: r.object({
|
|
3086
|
+
primaryColor: r.string(),
|
|
3087
|
+
buttonTextColor: r.string(),
|
|
3088
|
+
primaryHoverColor: r.string()
|
|
3089
|
+
}),
|
|
3090
|
+
supportEmail: r.string().nullable(),
|
|
3091
|
+
supportUrl: r.string().nullable(),
|
|
3092
|
+
name: r.string(),
|
|
3093
|
+
showGreyishBackground: r.boolean().optional(),
|
|
3094
|
+
termsAndConditionsUrl: r.string().nullable(),
|
|
3095
|
+
companyName: r.string().optional(),
|
|
3096
|
+
checkoutHideSocial: r.boolean().optional(),
|
|
3097
|
+
siteUrl: r.string().nullable(),
|
|
3098
|
+
manageSubscriptionsUrl: r.string().optional()
|
|
3099
|
+
}), Tn = r.object({
|
|
3070
3100
|
domain: r.string(),
|
|
3071
3101
|
dkim_private_key: r.string().optional(),
|
|
3072
3102
|
dkim_public_key: r.string().optional(),
|
|
3073
3103
|
email_api_key: r.string().optional(),
|
|
3074
3104
|
email_service: r.union([r.literal("mailgun"), r.literal("mailchannels")]).optional()
|
|
3075
|
-
})
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
domains: r.array(
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
r.literal("enabled"),
|
|
3084
|
-
r.literal("disabled"),
|
|
3085
|
-
r.literal("enforced")
|
|
3086
|
-
]),
|
|
3087
|
-
tenant_id: r.string(),
|
|
3088
|
-
client_secret: r.string(),
|
|
3089
|
-
disable_sign_ups: r.boolean(),
|
|
3090
|
-
tenant: r.object({
|
|
3091
|
-
name: r.string(),
|
|
3092
|
-
audience: r.string().optional(),
|
|
3093
|
-
logo: r.string().optional(),
|
|
3094
|
-
primary_color: r.string().optional(),
|
|
3095
|
-
secondary_color: r.string().optional(),
|
|
3096
|
-
sender_email: r.string(),
|
|
3097
|
-
sender_name: r.string(),
|
|
3098
|
-
support_url: r.string().optional(),
|
|
3099
|
-
language: r.string().length(2).optional()
|
|
3100
|
-
})
|
|
3101
|
-
}), Kn = it.extend({
|
|
3102
|
-
connections: r.array(at)
|
|
3103
|
-
}), Jn = it.extend({
|
|
3104
|
-
connections: r.array(at.partial())
|
|
3105
|
-
}), Sn = r.enum([
|
|
3105
|
+
});
|
|
3106
|
+
r.object({
|
|
3107
|
+
...bn.shape,
|
|
3108
|
+
domains: r.array(Tn),
|
|
3109
|
+
tenant: Sn,
|
|
3110
|
+
connections: r.array(xn)
|
|
3111
|
+
});
|
|
3112
|
+
const En = r.enum([
|
|
3106
3113
|
"password_reset",
|
|
3107
3114
|
"email_verification",
|
|
3108
3115
|
"otp",
|
|
3109
3116
|
"oauth2",
|
|
3110
3117
|
"oauth2_state",
|
|
3111
3118
|
"ticket"
|
|
3112
|
-
]),
|
|
3119
|
+
]), Cn = r.object({
|
|
3113
3120
|
code_id: r.string().openapi({
|
|
3114
3121
|
description: "The code that will be used in for instance an email verification flow"
|
|
3115
3122
|
}),
|
|
3116
3123
|
login_id: r.string().openapi({
|
|
3117
3124
|
description: "The id of the login session that the code is connected to"
|
|
3118
3125
|
}),
|
|
3119
|
-
code_type:
|
|
3126
|
+
code_type: En,
|
|
3120
3127
|
expires_at: r.string(),
|
|
3121
3128
|
used_at: r.string().optional()
|
|
3122
|
-
}),
|
|
3123
|
-
...
|
|
3129
|
+
}), Jn = r.object({
|
|
3130
|
+
...Cn.shape,
|
|
3124
3131
|
created_at: r.string()
|
|
3125
|
-
}),
|
|
3132
|
+
}), On = r.object({
|
|
3126
3133
|
domain: r.string(),
|
|
3127
3134
|
dkim_private_key: r.string().optional(),
|
|
3128
3135
|
dkim_public_key: r.string().optional(),
|
|
3129
3136
|
email_api_key: r.string().optional(),
|
|
3130
3137
|
email_service: r.enum(["mailgun", "mailchannels"])
|
|
3131
|
-
}),
|
|
3132
|
-
...
|
|
3138
|
+
}), Qn = De.extend({
|
|
3139
|
+
...On.shape,
|
|
3133
3140
|
id: r.string()
|
|
3134
|
-
}),
|
|
3141
|
+
}), jn = r.object({
|
|
3135
3142
|
trigger_id: r.enum([
|
|
3136
3143
|
"pre-user-signup",
|
|
3137
3144
|
"post-user-registration",
|
|
@@ -3142,19 +3149,19 @@ const we = r.object({
|
|
|
3142
3149
|
hook_id: r.string().optional(),
|
|
3143
3150
|
synchronous: r.boolean().default(!1),
|
|
3144
3151
|
priority: r.number().optional()
|
|
3145
|
-
}),
|
|
3152
|
+
}), Xn = jn.extend({
|
|
3146
3153
|
...De.shape,
|
|
3147
3154
|
hook_id: r.string()
|
|
3148
|
-
}),
|
|
3155
|
+
}), In = r.object({
|
|
3149
3156
|
alg: r.string(),
|
|
3150
3157
|
e: r.string(),
|
|
3151
3158
|
kid: r.string(),
|
|
3152
3159
|
kty: r.string(),
|
|
3153
3160
|
n: r.string(),
|
|
3154
3161
|
use: r.string().optional()
|
|
3162
|
+
}), er = r.object({
|
|
3163
|
+
keys: r.array(In)
|
|
3155
3164
|
}), tr = r.object({
|
|
3156
|
-
keys: r.array(On)
|
|
3157
|
-
}), nr = r.object({
|
|
3158
3165
|
issuer: r.string(),
|
|
3159
3166
|
authorization_endpoint: r.string(),
|
|
3160
3167
|
token_endpoint: r.string(),
|
|
@@ -3175,7 +3182,7 @@ const we = r.object({
|
|
|
3175
3182
|
request_uri_parameter_supported: r.boolean(),
|
|
3176
3183
|
request_parameter_supported: r.boolean(),
|
|
3177
3184
|
token_endpoint_auth_signing_alg_values_supported: r.array(r.string())
|
|
3178
|
-
}),
|
|
3185
|
+
}), Nn = r.object({
|
|
3179
3186
|
auth0Client: r.string().optional(),
|
|
3180
3187
|
authParams: we,
|
|
3181
3188
|
expires_at: r.string(),
|
|
@@ -3183,16 +3190,16 @@ const we = r.object({
|
|
|
3183
3190
|
ip: r.string().optional()
|
|
3184
3191
|
}).openapi({
|
|
3185
3192
|
description: "This represents a login sesion"
|
|
3186
|
-
}),
|
|
3187
|
-
...
|
|
3193
|
+
}), nr = r.object({
|
|
3194
|
+
...Nn.shape,
|
|
3188
3195
|
login_id: r.string().openapi({
|
|
3189
3196
|
description: "This is is used as the state in the universal login"
|
|
3190
3197
|
}),
|
|
3191
3198
|
created_at: r.string(),
|
|
3192
3199
|
updated_at: r.string()
|
|
3193
3200
|
});
|
|
3194
|
-
var
|
|
3195
|
-
const
|
|
3201
|
+
var Zn = /* @__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))(Zn || {});
|
|
3202
|
+
const Rn = r.enum([
|
|
3196
3203
|
"cls",
|
|
3197
3204
|
// CODE_LINK_SENT
|
|
3198
3205
|
"fsa",
|
|
@@ -3241,14 +3248,14 @@ const Nn = r.enum([
|
|
|
3241
3248
|
// SUCCESS_VERIFICATION_EMAIL
|
|
3242
3249
|
"svr"
|
|
3243
3250
|
// SUCCESS_VERIFICATION_EMAIL_REQUEST
|
|
3244
|
-
]),
|
|
3251
|
+
]), An = r.object({
|
|
3245
3252
|
name: r.string(),
|
|
3246
3253
|
version: r.string(),
|
|
3247
3254
|
env: r.object({
|
|
3248
3255
|
node: r.string().optional()
|
|
3249
3256
|
}).optional()
|
|
3250
|
-
}),
|
|
3251
|
-
type:
|
|
3257
|
+
}), rr = r.object({
|
|
3258
|
+
type: Rn,
|
|
3252
3259
|
date: r.string(),
|
|
3253
3260
|
description: r.string().optional(),
|
|
3254
3261
|
log_id: r.string().optional(),
|
|
@@ -3269,32 +3276,32 @@ const Nn = r.enum([
|
|
|
3269
3276
|
strategy: r.string().optional(),
|
|
3270
3277
|
strategy_type: r.string().optional(),
|
|
3271
3278
|
hostname: r.string().optional(),
|
|
3272
|
-
auth0_client:
|
|
3273
|
-
}),
|
|
3279
|
+
auth0_client: An.optional()
|
|
3280
|
+
}), Pn = r.object({
|
|
3274
3281
|
user_id: r.string(),
|
|
3275
3282
|
password: r.string(),
|
|
3276
3283
|
algorithm: r.enum(["bcrypt", "argon2id"]).default("argon2id")
|
|
3277
|
-
}),
|
|
3278
|
-
...
|
|
3284
|
+
}), sr = r.object({
|
|
3285
|
+
...Pn.shape,
|
|
3279
3286
|
created_at: r.string(),
|
|
3280
3287
|
updated_at: r.string()
|
|
3281
|
-
}),
|
|
3288
|
+
}), Mn = r.object({
|
|
3282
3289
|
session_id: r.string(),
|
|
3283
3290
|
client_id: r.string(),
|
|
3284
3291
|
expires_at: r.string(),
|
|
3285
3292
|
used_at: r.string(),
|
|
3286
3293
|
deleted_at: r.string().optional(),
|
|
3287
3294
|
user_id: r.string()
|
|
3288
|
-
}),
|
|
3295
|
+
}), ar = r.object({
|
|
3289
3296
|
created_at: r.string(),
|
|
3290
|
-
...
|
|
3291
|
-
}),
|
|
3297
|
+
...Mn.shape
|
|
3298
|
+
}), ir = r.object({
|
|
3292
3299
|
private_key: r.string(),
|
|
3293
3300
|
public_key: r.string(),
|
|
3294
3301
|
kid: r.string(),
|
|
3295
3302
|
created_at: r.string(),
|
|
3296
3303
|
revoked_at: r.string().optional()
|
|
3297
|
-
}),
|
|
3304
|
+
}), or = r.object({
|
|
3298
3305
|
kid: r.string().openapi({ description: "The key id of the signing key" }),
|
|
3299
3306
|
cert: r.string().openapi({ description: "The public certificate of the signing key" }),
|
|
3300
3307
|
fingerprint: r.string().openapi({ description: "The cert fingerprint" }),
|
|
@@ -3313,39 +3320,9 @@ const Nn = r.enum([
|
|
|
3313
3320
|
}),
|
|
3314
3321
|
revoked: r.boolean().optional().openapi({ description: "True if the key is revoked" }),
|
|
3315
3322
|
revoked_at: r.string().optional().openapi({ description: "The date and time when the key was revoked" })
|
|
3316
|
-
}), Pn = r.object({
|
|
3317
|
-
name: r.string(),
|
|
3318
|
-
audience: r.string(),
|
|
3319
|
-
sender_email: r.string().email(),
|
|
3320
|
-
sender_name: r.string(),
|
|
3321
|
-
support_url: r.string().url().optional(),
|
|
3322
|
-
logo: r.string().url().optional(),
|
|
3323
|
-
primary_color: r.string().optional(),
|
|
3324
|
-
secondary_color: r.string().optional(),
|
|
3325
|
-
language: r.string().optional()
|
|
3326
|
-
}), dr = Pn.extend({
|
|
3327
|
-
created_at: r.string().transform((t) => t === null ? "" : t),
|
|
3328
|
-
updated_at: r.string().transform((t) => t === null ? "" : t)
|
|
3329
|
-
}), lr = r.object({
|
|
3330
|
-
logoUrl: r.string(),
|
|
3331
|
-
loginBackgroundImage: r.string().nullish(),
|
|
3332
|
-
style: r.object({
|
|
3333
|
-
primaryColor: r.string(),
|
|
3334
|
-
buttonTextColor: r.string(),
|
|
3335
|
-
primaryHoverColor: r.string()
|
|
3336
|
-
}),
|
|
3337
|
-
supportEmail: r.string().nullable(),
|
|
3338
|
-
supportUrl: r.string().nullable(),
|
|
3339
|
-
name: r.string(),
|
|
3340
|
-
showGreyishBackground: r.boolean().optional(),
|
|
3341
|
-
termsAndConditionsUrl: r.string().nullable(),
|
|
3342
|
-
companyName: r.string().optional(),
|
|
3343
|
-
checkoutHideSocial: r.boolean().optional(),
|
|
3344
|
-
siteUrl: r.string().nullable(),
|
|
3345
|
-
manageSubscriptionsUrl: r.string().optional()
|
|
3346
3323
|
});
|
|
3347
|
-
var
|
|
3348
|
-
const Ue = r.nativeEnum(
|
|
3324
|
+
var at = /* @__PURE__ */ ((t) => (t.RefreshToken = "refresh_token", t.AuthorizationCode = "authorization_code", t.ClientCredential = "client_credentials", t.Passwordless = "passwordless", t.Password = "password", t))(at || {});
|
|
3325
|
+
const Ue = r.nativeEnum(at), cr = r.object({
|
|
3349
3326
|
grant_type: Ue.refine(
|
|
3350
3327
|
(t) => t === "authorization_code"
|
|
3351
3328
|
/* AuthorizationCode */
|
|
@@ -3353,7 +3330,7 @@ const Ue = r.nativeEnum(ot), ur = r.object({
|
|
|
3353
3330
|
code: r.string(),
|
|
3354
3331
|
client_secret: r.string(),
|
|
3355
3332
|
client_id: r.string()
|
|
3356
|
-
}),
|
|
3333
|
+
}), dr = r.object({
|
|
3357
3334
|
grant_type: Ue.refine(
|
|
3358
3335
|
(t) => t === "authorization_code"
|
|
3359
3336
|
/* AuthorizationCode */
|
|
@@ -3362,7 +3339,7 @@ const Ue = r.nativeEnum(ot), ur = r.object({
|
|
|
3362
3339
|
code_verifier: r.string(),
|
|
3363
3340
|
client_id: r.string().optional(),
|
|
3364
3341
|
redirect_uri: r.string()
|
|
3365
|
-
}),
|
|
3342
|
+
}), lr = r.object({
|
|
3366
3343
|
grant_type: Ue.refine(
|
|
3367
3344
|
(t) => t === "client_credentials"
|
|
3368
3345
|
/* ClientCredential */
|
|
@@ -3385,7 +3362,7 @@ r.object({
|
|
|
3385
3362
|
code: r.string(),
|
|
3386
3363
|
state: r.string().optional()
|
|
3387
3364
|
});
|
|
3388
|
-
const
|
|
3365
|
+
const Dn = r.object({
|
|
3389
3366
|
button_border_radius: r.number(),
|
|
3390
3367
|
button_border_weight: r.number(),
|
|
3391
3368
|
buttons_style: r.enum(["pill"]),
|
|
@@ -3395,7 +3372,7 @@ const Mn = r.object({
|
|
|
3395
3372
|
show_widget_shadow: r.boolean(),
|
|
3396
3373
|
widget_border_weight: r.number(),
|
|
3397
3374
|
widget_corner_radius: r.number()
|
|
3398
|
-
}),
|
|
3375
|
+
}), Un = r.object({
|
|
3399
3376
|
base_focus_color: r.string(),
|
|
3400
3377
|
base_hover_color: r.string(),
|
|
3401
3378
|
body_text: r.string(),
|
|
@@ -3418,7 +3395,7 @@ const Mn = r.object({
|
|
|
3418
3395
|
}), W = r.object({
|
|
3419
3396
|
bold: r.boolean(),
|
|
3420
3397
|
size: r.number()
|
|
3421
|
-
}),
|
|
3398
|
+
}), $n = r.object({
|
|
3422
3399
|
body_text: W,
|
|
3423
3400
|
buttons_text: W,
|
|
3424
3401
|
font_url: r.string(),
|
|
@@ -3428,35 +3405,35 @@ const Mn = r.object({
|
|
|
3428
3405
|
reference_text_size: r.number(),
|
|
3429
3406
|
subtitle: W,
|
|
3430
3407
|
title: W
|
|
3431
|
-
}),
|
|
3408
|
+
}), Vn = r.object({
|
|
3432
3409
|
background_color: r.string(),
|
|
3433
3410
|
background_image_url: r.string(),
|
|
3434
3411
|
page_layout: r.enum(["center"])
|
|
3435
|
-
}),
|
|
3412
|
+
}), Ln = r.object({
|
|
3436
3413
|
header_text_alignment: r.enum(["center"]),
|
|
3437
3414
|
logo_height: r.number(),
|
|
3438
3415
|
logo_position: r.enum(["center"]),
|
|
3439
3416
|
logo_url: r.string(),
|
|
3440
3417
|
social_buttons_layout: r.enum(["bottom"])
|
|
3441
|
-
}),
|
|
3442
|
-
borders:
|
|
3443
|
-
colors:
|
|
3418
|
+
}), zn = r.object({
|
|
3419
|
+
borders: Dn,
|
|
3420
|
+
colors: Un,
|
|
3444
3421
|
displayName: r.string(),
|
|
3445
|
-
fonts:
|
|
3446
|
-
page_background:
|
|
3447
|
-
widget:
|
|
3448
|
-
}),
|
|
3422
|
+
fonts: $n,
|
|
3423
|
+
page_background: Vn,
|
|
3424
|
+
widget: Ln
|
|
3425
|
+
}), ur = zn.extend({
|
|
3449
3426
|
themeId: r.string()
|
|
3450
|
-
}),
|
|
3427
|
+
}), Bn = r.object({
|
|
3451
3428
|
id: r.string(),
|
|
3452
3429
|
expires_at: r.string(),
|
|
3453
3430
|
auth0Client: r.string().optional(),
|
|
3454
3431
|
authParams: we
|
|
3455
|
-
}),
|
|
3456
|
-
...
|
|
3432
|
+
}), pr = r.object({
|
|
3433
|
+
...Bn.shape,
|
|
3457
3434
|
created_at: r.string(),
|
|
3458
3435
|
updated_at: r.string()
|
|
3459
|
-
}),
|
|
3436
|
+
}), Wn = r.object({
|
|
3460
3437
|
id: r.string(),
|
|
3461
3438
|
email: r.string(),
|
|
3462
3439
|
code: r.string(),
|
|
@@ -3466,87 +3443,85 @@ const Mn = r.object({
|
|
|
3466
3443
|
expires_at: r.string(),
|
|
3467
3444
|
used_at: r.string().optional(),
|
|
3468
3445
|
user_id: r.string().optional()
|
|
3469
|
-
}),
|
|
3446
|
+
}), hr = r.object({
|
|
3470
3447
|
created_at: r.string(),
|
|
3471
|
-
...
|
|
3472
|
-
}),
|
|
3448
|
+
...Wn.shape
|
|
3449
|
+
}), Gn = r.object({
|
|
3473
3450
|
authParams: we,
|
|
3474
3451
|
code: r.string(),
|
|
3475
3452
|
user_id: r.string(),
|
|
3476
3453
|
created_at: r.string(),
|
|
3477
3454
|
expires_at: r.string(),
|
|
3478
3455
|
used_at: r.string().optional()
|
|
3479
|
-
}),
|
|
3480
|
-
...
|
|
3456
|
+
}), fr = r.object({
|
|
3457
|
+
...Gn.shape,
|
|
3481
3458
|
created_at: r.string()
|
|
3482
3459
|
});
|
|
3483
|
-
function
|
|
3460
|
+
function mr(t) {
|
|
3484
3461
|
const [e, n] = t.split("|");
|
|
3485
3462
|
if (!e || !n)
|
|
3486
3463
|
throw new Error(`Invalid user_id: ${t}`);
|
|
3487
3464
|
return { connection: e, id: n };
|
|
3488
3465
|
}
|
|
3489
3466
|
export {
|
|
3490
|
-
|
|
3467
|
+
An as Auth0Client,
|
|
3491
3468
|
rt as AuthorizationResponseMode,
|
|
3492
3469
|
nt as AuthorizationResponseType,
|
|
3493
|
-
Kn as ClientSchema,
|
|
3494
3470
|
st as CodeChallengeMethod,
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
Hn as auth0UserResponseSchema,
|
|
3471
|
+
at as GrantType,
|
|
3472
|
+
Zn as LogTypes,
|
|
3473
|
+
vn as applicationInsertSchema,
|
|
3474
|
+
bn as applicationSchema,
|
|
3475
|
+
qn as auth0UserResponseSchema,
|
|
3501
3476
|
we as authParamsSchema,
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3477
|
+
Gn as authenticationCodeInsertSchema,
|
|
3478
|
+
fr as authenticationCodeSchema,
|
|
3479
|
+
cr as authorizationCodeGrantTypeParamsSchema,
|
|
3505
3480
|
tt as baseUserSchema,
|
|
3506
|
-
|
|
3481
|
+
Dn as bordersSchema,
|
|
3507
3482
|
Yn as brandingSchema,
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3483
|
+
ir as certificateSchema,
|
|
3484
|
+
lr as clientCredentialGrantTypeParamsSchema,
|
|
3485
|
+
Cn as codeInsertSchema,
|
|
3486
|
+
Jn as codeSchema,
|
|
3487
|
+
En as codeTypeSchema,
|
|
3488
|
+
Un as colorsSchema,
|
|
3489
|
+
kn as connectionInsertSchema,
|
|
3490
|
+
xn as connectionSchema,
|
|
3491
|
+
On as domainInsertSchema,
|
|
3492
|
+
Qn as domainSchema,
|
|
3518
3493
|
W as fontDetailsSchema,
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3494
|
+
$n as fontsSchema,
|
|
3495
|
+
jn as hookInsertSchema,
|
|
3496
|
+
Xn as hookSchema,
|
|
3497
|
+
_n as identitySchema,
|
|
3498
|
+
er as jwksKeySchema,
|
|
3499
|
+
In as jwksSchema,
|
|
3500
|
+
rr as logSchema,
|
|
3501
|
+
Nn as loginInsertSchema,
|
|
3502
|
+
nr as loginSchema,
|
|
3503
|
+
tr as openIDConfigurationSchema,
|
|
3504
|
+
Wn as otpInsertSchema,
|
|
3505
|
+
hr as otpSchema,
|
|
3506
|
+
Vn as pageBackgroundSchema,
|
|
3507
|
+
mr as parseUserId,
|
|
3508
|
+
Pn as passwordInsertSchema,
|
|
3509
|
+
sr as passwordSchema,
|
|
3510
|
+
dr as pkceAuthorizationCodeGrantTypeParamsSchema,
|
|
3511
|
+
mn as profileDataSchema,
|
|
3512
|
+
Mn as sessionInsertSchema,
|
|
3513
|
+
ar as sessionSchema,
|
|
3514
|
+
or as signingKeySchema,
|
|
3515
|
+
wn as tenantInsertSchema,
|
|
3516
|
+
Sn as tenantSchema,
|
|
3517
|
+
zn as themeInsertSchema,
|
|
3518
|
+
ur as themeSchema,
|
|
3519
|
+
Hn as totalsSchema,
|
|
3520
|
+
Bn as universalLoginSessionInsertSchema,
|
|
3521
|
+
pr as universalLoginSessionSchema,
|
|
3522
|
+
gn as userInsertSchema,
|
|
3523
|
+
Fn as userResponseSchema,
|
|
3524
|
+
yn as userSchema,
|
|
3525
|
+
Kn as vendorSettingsSchema,
|
|
3526
|
+
Ln as widgetSchema
|
|
3552
3527
|
};
|