@authhero/adapter-interfaces 0.2.2 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -22,12 +22,12 @@ function pt(t) {
|
|
|
22
22
|
return;
|
|
23
23
|
t.ZodType.prototype.openapi = function(a, i) {
|
|
24
24
|
var o, d, u, l, m, x;
|
|
25
|
-
const z = typeof a == "string" ? i : a, B = z ?? {}, { param:
|
|
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),
|
|
25
|
+
const z = typeof a == "string" ? i : a, B = z ?? {}, { param: De } = B, ot = lt(B, ["param"]), Ue = Object.assign(Object.assign({}, (o = this._def.openapi) === null || o === void 0 ? void 0 : o._internal), typeof a == "string" ? { refId: a } : void 0), Ve = Object.assign(Object.assign(Object.assign({}, (d = this._def.openapi) === null || d === void 0 ? void 0 : d.metadata), ot), !((l = (u = this._def.openapi) === null || u === void 0 ? void 0 : u.metadata) === null || l === void 0) && l.param || De ? {
|
|
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), De)
|
|
27
|
+
} : void 0), Le = new this.constructor(Object.assign(Object.assign({}, this._def), { openapi: Object.assign(Object.assign({}, Object.keys(Ue).length > 0 ? { _internal: Ue } : void 0), Object.keys(Ve).length > 0 ? { metadata: Ve } : void 0) }));
|
|
28
28
|
if (ut(this, "ZodObject")) {
|
|
29
29
|
const dt = this.extend;
|
|
30
|
-
|
|
30
|
+
Le.extend = function(...ct) {
|
|
31
31
|
var xe, we, Se, Te, Oe, Ee;
|
|
32
32
|
const Ce = dt.apply(this, ct);
|
|
33
33
|
return Ce._def.openapi = {
|
|
@@ -38,7 +38,7 @@ function pt(t) {
|
|
|
38
38
|
}, Ce;
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
|
-
return
|
|
41
|
+
return Le;
|
|
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() {
|
|
@@ -280,12 +280,12 @@ const H = (t, e) => {
|
|
|
280
280
|
}
|
|
281
281
|
return { message: n };
|
|
282
282
|
};
|
|
283
|
-
let
|
|
283
|
+
let We = H;
|
|
284
284
|
function ht(t) {
|
|
285
|
-
|
|
285
|
+
We = t;
|
|
286
286
|
}
|
|
287
287
|
function he() {
|
|
288
|
-
return
|
|
288
|
+
return We;
|
|
289
289
|
}
|
|
290
290
|
const me = (t) => {
|
|
291
291
|
const { data: e, path: n, errorMaps: r, issueData: a } = t, i = [...n, ...a.path || []], o = {
|
|
@@ -371,7 +371,7 @@ function _e(t, e, n, r) {
|
|
|
371
371
|
if (typeof e == "function" ? t !== e || !r : !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 qe(t, e, n, r, 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 Z {
|
|
|
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 ze = (t, e) => {
|
|
392
392
|
if (Q(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 ze(a, i);
|
|
482
482
|
}
|
|
483
483
|
async parseAsync(e, n) {
|
|
484
484
|
const r = 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: r.path, parent: r }), i = await (ee(a) ? a : Promise.resolve(a));
|
|
502
|
-
return
|
|
502
|
+
return ze(r, i);
|
|
503
503
|
}
|
|
504
504
|
refine(e, n) {
|
|
505
505
|
const r = (a) => typeof n == "string" || typeof n > "u" ? { message: n } : typeof n == "function" ? n(a) : n;
|
|
@@ -600,16 +600,16 @@ class v {
|
|
|
600
600
|
}
|
|
601
601
|
const _t = /^c[^\s-]{8,}$/i, gt = /^[0-9a-z]+$/, yt = /^[0-9A-HJKMNP-TV-Z]{26}$/, vt = /^[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, bt = /^[a-z0-9_-]{21}$/i, kt = /^[-+]?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)?)??$/, xt = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, wt = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
602
602
|
let je;
|
|
603
|
-
const St = /^(?:(?: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])$/, Tt = /^(([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})))$/, Ot = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,
|
|
604
|
-
function
|
|
603
|
+
const St = /^(?:(?: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])$/, Tt = /^(([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})))$/, Ot = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, Ge = "((\\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(`^${Ge}$`);
|
|
604
|
+
function He(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
608
|
function Ct(t) {
|
|
609
|
-
return new RegExp(`^${
|
|
609
|
+
return new RegExp(`^${He(t)}$`);
|
|
610
610
|
}
|
|
611
|
-
function
|
|
612
|
-
let e = `${
|
|
611
|
+
function Ke(t) {
|
|
612
|
+
let e = `${Ge}T${He(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
|
}
|
|
@@ -732,7 +732,7 @@ class O extends v {
|
|
|
732
732
|
code: c.invalid_string,
|
|
733
733
|
validation: { endsWith: i.value },
|
|
734
734
|
message: i.message
|
|
735
|
-
}), r.dirty()) : i.kind === "datetime" ?
|
|
735
|
+
}), r.dirty()) : i.kind === "datetime" ? Ke(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
|
|
@@ -1832,7 +1832,7 @@ class k extends v {
|
|
|
1832
1832
|
});
|
|
1833
1833
|
}
|
|
1834
1834
|
keyof() {
|
|
1835
|
-
return
|
|
1835
|
+
return Ye(b.objectKeys(this.shape));
|
|
1836
1836
|
}
|
|
1837
1837
|
}
|
|
1838
1838
|
k.create = (t, e) => new k({
|
|
@@ -2395,7 +2395,7 @@ de.create = (t, e) => new de({
|
|
|
2395
2395
|
typeName: _.ZodLiteral,
|
|
2396
2396
|
...y(e)
|
|
2397
2397
|
});
|
|
2398
|
-
function
|
|
2398
|
+
function Ye(t, e) {
|
|
2399
2399
|
return new $({
|
|
2400
2400
|
values: t,
|
|
2401
2401
|
typeName: _.ZodEnum,
|
|
@@ -2415,7 +2415,7 @@ class $ extends v {
|
|
|
2415
2415
|
code: c.invalid_type
|
|
2416
2416
|
}), g;
|
|
2417
2417
|
}
|
|
2418
|
-
if (_e(this, F) ||
|
|
2418
|
+
if (_e(this, F) || qe(this, F, new Set(this._def.values)), !_e(this, F).has(e.data)) {
|
|
2419
2419
|
const n = this._getOrReturnCtx(e), r = this._def.values;
|
|
2420
2420
|
return p(n, {
|
|
2421
2421
|
received: n.data,
|
|
@@ -2460,7 +2460,7 @@ class $ extends v {
|
|
|
2460
2460
|
}
|
|
2461
2461
|
}
|
|
2462
2462
|
F = /* @__PURE__ */ new WeakMap();
|
|
2463
|
-
$.create =
|
|
2463
|
+
$.create = Ye;
|
|
2464
2464
|
class ce extends v {
|
|
2465
2465
|
constructor() {
|
|
2466
2466
|
super(...arguments), X.set(this, void 0);
|
|
@@ -2475,7 +2475,7 @@ class ce extends v {
|
|
|
2475
2475
|
code: c.invalid_type
|
|
2476
2476
|
}), g;
|
|
2477
2477
|
}
|
|
2478
|
-
if (_e(this, X) ||
|
|
2478
|
+
if (_e(this, X) || qe(this, X, new Set(b.getValidEnumValues(this._def.values))), !_e(this, X).has(e.data)) {
|
|
2479
2479
|
const a = b.objectValues(n);
|
|
2480
2480
|
return p(r, {
|
|
2481
2481
|
received: r.data,
|
|
@@ -2782,7 +2782,7 @@ pe.create = (t, e) => new pe({
|
|
|
2782
2782
|
typeName: _.ZodReadonly,
|
|
2783
2783
|
...y(e)
|
|
2784
2784
|
});
|
|
2785
|
-
function
|
|
2785
|
+
function Je(t, e = {}, n) {
|
|
2786
2786
|
return t ? K.create().superRefine((r, a) => {
|
|
2787
2787
|
var i, o;
|
|
2788
2788
|
if (!t(r)) {
|
|
@@ -2800,7 +2800,7 @@ var _;
|
|
|
2800
2800
|
})(_ || (_ = {}));
|
|
2801
2801
|
const Rt = (t, e = {
|
|
2802
2802
|
message: `Input not instance of ${t.name}`
|
|
2803
|
-
}) =>
|
|
2803
|
+
}) => Je((n) => n instanceof t, e), Fe = O.create, Xe = P.create, At = be.create, Pt = M.create, Qe = te.create, Mt = V.create, $t = ge.create, Dt = ne.create, Ut = re.create, Vt = K.create, Lt = U.create, zt = R.create, Bt = ye.create, Wt = E.create, qt = k.create, Gt = k.strictCreate, Ht = se.create, Kt = ke.create, Yt = ae.create, Jt = N.create, Ft = ie.create, Xt = ve.create, Qt = L.create, en = G.create, tn = oe.create, nn = de.create, rn = $.create, sn = ce.create, an = Y.create, Be = C.create, on = j.create, dn = D.create, cn = C.createWithPreprocess, ln = fe.create, un = () => Fe().optional(), pn = () => Xe().optional(), fn = () => Qe().optional(), hn = {
|
|
2804
2804
|
string: (t) => O.create({ ...t, coerce: !0 }),
|
|
2805
2805
|
number: (t) => P.create({ ...t, coerce: !0 }),
|
|
2806
2806
|
boolean: (t) => te.create({
|
|
@@ -2835,7 +2835,7 @@ var s = /* @__PURE__ */ Object.freeze({
|
|
|
2835
2835
|
ZodParsedType: f,
|
|
2836
2836
|
getParsedType: A,
|
|
2837
2837
|
ZodType: v,
|
|
2838
|
-
datetimeRegex:
|
|
2838
|
+
datetimeRegex: Ke,
|
|
2839
2839
|
ZodString: O,
|
|
2840
2840
|
ZodNumber: P,
|
|
2841
2841
|
ZodBigInt: M,
|
|
@@ -2874,7 +2874,7 @@ var s = /* @__PURE__ */ Object.freeze({
|
|
|
2874
2874
|
ZodBranded: Ae,
|
|
2875
2875
|
ZodPipeline: fe,
|
|
2876
2876
|
ZodReadonly: pe,
|
|
2877
|
-
custom:
|
|
2877
|
+
custom: Je,
|
|
2878
2878
|
Schema: v,
|
|
2879
2879
|
ZodSchema: v,
|
|
2880
2880
|
late: It,
|
|
@@ -2885,10 +2885,10 @@ var s = /* @__PURE__ */ Object.freeze({
|
|
|
2885
2885
|
any: Vt,
|
|
2886
2886
|
array: Wt,
|
|
2887
2887
|
bigint: Pt,
|
|
2888
|
-
boolean:
|
|
2888
|
+
boolean: Qe,
|
|
2889
2889
|
date: Mt,
|
|
2890
2890
|
discriminatedUnion: Kt,
|
|
2891
|
-
effect:
|
|
2891
|
+
effect: Be,
|
|
2892
2892
|
enum: rn,
|
|
2893
2893
|
function: en,
|
|
2894
2894
|
instanceof: Rt,
|
|
@@ -2901,7 +2901,7 @@ var s = /* @__PURE__ */ Object.freeze({
|
|
|
2901
2901
|
never: zt,
|
|
2902
2902
|
null: Ut,
|
|
2903
2903
|
nullable: dn,
|
|
2904
|
-
number:
|
|
2904
|
+
number: Xe,
|
|
2905
2905
|
object: qt,
|
|
2906
2906
|
oboolean: fn,
|
|
2907
2907
|
onumber: pn,
|
|
@@ -2913,9 +2913,9 @@ var s = /* @__PURE__ */ Object.freeze({
|
|
|
2913
2913
|
record: Ft,
|
|
2914
2914
|
set: Qt,
|
|
2915
2915
|
strictObject: Gt,
|
|
2916
|
-
string:
|
|
2916
|
+
string: Fe,
|
|
2917
2917
|
symbol: $t,
|
|
2918
|
-
transformer:
|
|
2918
|
+
transformer: Be,
|
|
2919
2919
|
tuple: Jt,
|
|
2920
2920
|
undefined: Dt,
|
|
2921
2921
|
union: Ht,
|
|
@@ -2927,7 +2927,7 @@ var s = /* @__PURE__ */ Object.freeze({
|
|
|
2927
2927
|
ZodError: T
|
|
2928
2928
|
});
|
|
2929
2929
|
pt(s);
|
|
2930
|
-
const
|
|
2930
|
+
const Rn = s.object({
|
|
2931
2931
|
start: s.number(),
|
|
2932
2932
|
limit: s.number(),
|
|
2933
2933
|
length: s.number()
|
|
@@ -2952,7 +2952,7 @@ const In = s.object({
|
|
|
2952
2952
|
access_token_secret: s.string().optional(),
|
|
2953
2953
|
refresh_token: s.string().optional(),
|
|
2954
2954
|
profileData: _n.optional()
|
|
2955
|
-
}),
|
|
2955
|
+
}), et = s.object({
|
|
2956
2956
|
email: s.string().optional(),
|
|
2957
2957
|
username: s.string().optional(),
|
|
2958
2958
|
given_name: s.string().optional(),
|
|
@@ -2964,7 +2964,7 @@ const In = s.object({
|
|
|
2964
2964
|
linked_to: s.string().optional(),
|
|
2965
2965
|
profileData: s.string().optional(),
|
|
2966
2966
|
user_id: s.string().optional()
|
|
2967
|
-
}), yn =
|
|
2967
|
+
}), yn = et.extend({
|
|
2968
2968
|
email_verified: s.boolean().default(!1),
|
|
2969
2969
|
verify_email: s.boolean().optional(),
|
|
2970
2970
|
last_ip: s.string().optional(),
|
|
@@ -2979,7 +2979,7 @@ const In = s.object({
|
|
|
2979
2979
|
is_social: s.boolean(),
|
|
2980
2980
|
login_count: s.number(),
|
|
2981
2981
|
identities: s.array(gn).optional()
|
|
2982
|
-
}),
|
|
2982
|
+
}), An = vn, Pn = et.extend({
|
|
2983
2983
|
email: s.string(),
|
|
2984
2984
|
login_count: s.number(),
|
|
2985
2985
|
multifactor: s.array(s.string()).optional(),
|
|
@@ -3026,7 +3026,7 @@ const kn = s.enum([
|
|
|
3026
3026
|
env: s.object({
|
|
3027
3027
|
node: s.string().optional()
|
|
3028
3028
|
}).optional()
|
|
3029
|
-
}),
|
|
3029
|
+
}), Mn = s.object({
|
|
3030
3030
|
type: kn,
|
|
3031
3031
|
date: s.string(),
|
|
3032
3032
|
description: s.string().optional(),
|
|
@@ -3058,33 +3058,33 @@ const kn = s.enum([
|
|
|
3058
3058
|
email_validation: s.enum(["enabled", "disabled", "enforced"]).default("enforced"),
|
|
3059
3059
|
client_secret: s.string().default(""),
|
|
3060
3060
|
disable_sign_ups: s.boolean().default(!1)
|
|
3061
|
-
}),
|
|
3061
|
+
}), $n = s.object({
|
|
3062
3062
|
created_at: s.string().transform((t) => t === null ? "" : t),
|
|
3063
3063
|
updated_at: s.string().transform((t) => t === null ? "" : t)
|
|
3064
3064
|
}).extend(wn.shape);
|
|
3065
|
-
var
|
|
3066
|
-
const
|
|
3065
|
+
var tt = /* @__PURE__ */ ((t) => (t.TOKEN = "token", t.TOKEN_ID_TOKEN = "token id_token", t.CODE = "code", t))(tt || {}), nt = /* @__PURE__ */ ((t) => (t.QUERY = "query", t.FRAGMENT = "fragment", t.FORM_POST = "form_post", t.WEB_MESSAGE = "web_message", t))(nt || {}), rt = /* @__PURE__ */ ((t) => (t.S265 = "S256", t.plain = "plain", t))(rt || {});
|
|
3066
|
+
const Me = s.object({
|
|
3067
3067
|
client_id: s.string(),
|
|
3068
3068
|
vendor_id: s.string().optional(),
|
|
3069
|
-
response_type: s.nativeEnum(
|
|
3070
|
-
response_mode: s.nativeEnum(
|
|
3069
|
+
response_type: s.nativeEnum(tt).optional(),
|
|
3070
|
+
response_mode: s.nativeEnum(nt).optional(),
|
|
3071
3071
|
redirect_uri: s.string().optional(),
|
|
3072
3072
|
audience: s.string().optional(),
|
|
3073
3073
|
state: s.string().optional(),
|
|
3074
3074
|
nonce: s.string().optional(),
|
|
3075
3075
|
scope: s.string().optional(),
|
|
3076
|
-
code_challenge_method: s.nativeEnum(
|
|
3076
|
+
code_challenge_method: s.nativeEnum(rt).optional(),
|
|
3077
3077
|
code_challenge: s.string().optional(),
|
|
3078
3078
|
username: s.string().optional()
|
|
3079
|
-
}),
|
|
3080
|
-
authParams:
|
|
3079
|
+
}), Dn = s.object({
|
|
3080
|
+
authParams: Me,
|
|
3081
3081
|
nonce: s.string().optional(),
|
|
3082
3082
|
code: s.string(),
|
|
3083
3083
|
user_id: s.string(),
|
|
3084
3084
|
created_at: s.string(),
|
|
3085
3085
|
expires_at: s.string(),
|
|
3086
3086
|
used_at: s.string().optional()
|
|
3087
|
-
}),
|
|
3087
|
+
}), Un = s.object({
|
|
3088
3088
|
colors: s.object({
|
|
3089
3089
|
primary: s.string(),
|
|
3090
3090
|
page_background: s.object({
|
|
@@ -3150,9 +3150,9 @@ const rt = s.object({
|
|
|
3150
3150
|
support_url: s.string().optional(),
|
|
3151
3151
|
language: s.string().length(2).optional()
|
|
3152
3152
|
})
|
|
3153
|
-
}), Un = at.extend({
|
|
3154
|
-
connections: s.array(st)
|
|
3155
3153
|
}), Vn = at.extend({
|
|
3154
|
+
connections: s.array(st)
|
|
3155
|
+
}), Ln = at.extend({
|
|
3156
3156
|
connections: s.array(st.partial())
|
|
3157
3157
|
}), On = s.object({
|
|
3158
3158
|
domain: s.string(),
|
|
@@ -3160,7 +3160,7 @@ const rt = s.object({
|
|
|
3160
3160
|
dkim_public_key: s.string().optional(),
|
|
3161
3161
|
email_api_key: s.string().optional(),
|
|
3162
3162
|
email_service: s.enum(["mailgun", "mailchannels"])
|
|
3163
|
-
}),
|
|
3163
|
+
}), zn = Pe.extend({
|
|
3164
3164
|
...On.shape,
|
|
3165
3165
|
id: s.string()
|
|
3166
3166
|
}), En = s.object({
|
|
@@ -3168,7 +3168,7 @@ const rt = s.object({
|
|
|
3168
3168
|
enabled: s.boolean().default(!1),
|
|
3169
3169
|
url: s.string(),
|
|
3170
3170
|
hook_id: s.string().optional()
|
|
3171
|
-
}),
|
|
3171
|
+
}), Bn = En.extend({
|
|
3172
3172
|
...Pe.shape,
|
|
3173
3173
|
hook_id: s.string()
|
|
3174
3174
|
}), Cn = s.object({
|
|
@@ -3178,9 +3178,9 @@ const rt = s.object({
|
|
|
3178
3178
|
kty: s.string(),
|
|
3179
3179
|
n: s.string(),
|
|
3180
3180
|
use: s.string().optional()
|
|
3181
|
-
}), Bn = s.object({
|
|
3182
|
-
keys: s.array(Cn)
|
|
3183
3181
|
}), Wn = s.object({
|
|
3182
|
+
keys: s.array(Cn)
|
|
3183
|
+
}), qn = s.object({
|
|
3184
3184
|
issuer: s.string(),
|
|
3185
3185
|
authorization_endpoint: s.string(),
|
|
3186
3186
|
token_endpoint: s.string(),
|
|
@@ -3202,6 +3202,21 @@ const rt = s.object({
|
|
|
3202
3202
|
request_parameter_supported: s.boolean(),
|
|
3203
3203
|
token_endpoint_auth_signing_alg_values_supported: s.array(s.string())
|
|
3204
3204
|
}), jn = s.object({
|
|
3205
|
+
id: s.string(),
|
|
3206
|
+
tenant_id: s.string(),
|
|
3207
|
+
client_id: s.string(),
|
|
3208
|
+
email: s.string(),
|
|
3209
|
+
code: s.string(),
|
|
3210
|
+
ip: s.string().optional(),
|
|
3211
|
+
send: s.string().optional(),
|
|
3212
|
+
authParams: Me,
|
|
3213
|
+
expires_at: s.string(),
|
|
3214
|
+
used_at: s.string().optional(),
|
|
3215
|
+
user_id: s.string().optional()
|
|
3216
|
+
}), Gn = s.object({
|
|
3217
|
+
created_at: s.string(),
|
|
3218
|
+
...jn.shape
|
|
3219
|
+
}), Zn = s.object({
|
|
3205
3220
|
session_id: s.string(),
|
|
3206
3221
|
client_id: s.string(),
|
|
3207
3222
|
expires_at: s.string(),
|
|
@@ -3211,15 +3226,15 @@ const rt = s.object({
|
|
|
3211
3226
|
});
|
|
3212
3227
|
s.object({
|
|
3213
3228
|
created_at: s.string(),
|
|
3214
|
-
...
|
|
3229
|
+
...Zn.shape
|
|
3215
3230
|
});
|
|
3216
|
-
const
|
|
3231
|
+
const Hn = s.object({
|
|
3217
3232
|
private_key: s.string(),
|
|
3218
3233
|
public_key: s.string(),
|
|
3219
3234
|
kid: s.string(),
|
|
3220
3235
|
created_at: s.string(),
|
|
3221
3236
|
revoked_at: s.string().optional()
|
|
3222
|
-
}),
|
|
3237
|
+
}), Kn = s.object({
|
|
3223
3238
|
kid: s.string().openapi({ description: "The key id of the signing key" }),
|
|
3224
3239
|
cert: s.string().openapi({ description: "The public certificate of the signing key" }),
|
|
3225
3240
|
fingerprint: s.string().openapi({ description: "The cert fingerprint" }),
|
|
@@ -3238,7 +3253,7 @@ const qn = s.object({
|
|
|
3238
3253
|
}),
|
|
3239
3254
|
revoked: s.boolean().optional().openapi({ description: "True if the key is revoked" }),
|
|
3240
3255
|
revoked_at: s.string().optional().openapi({ description: "The date and time when the key was revoked" })
|
|
3241
|
-
}),
|
|
3256
|
+
}), Nn = s.object({
|
|
3242
3257
|
name: s.string(),
|
|
3243
3258
|
audience: s.string(),
|
|
3244
3259
|
sender_email: s.string().email(),
|
|
@@ -3248,10 +3263,10 @@ const qn = s.object({
|
|
|
3248
3263
|
primary_color: s.string().optional(),
|
|
3249
3264
|
secondary_color: s.string().optional(),
|
|
3250
3265
|
language: s.string().optional()
|
|
3251
|
-
}),
|
|
3266
|
+
}), Yn = Nn.extend({
|
|
3252
3267
|
created_at: s.string().transform((t) => t === null ? "" : t),
|
|
3253
3268
|
updated_at: s.string().transform((t) => t === null ? "" : t)
|
|
3254
|
-
}),
|
|
3269
|
+
}), Jn = s.object({
|
|
3255
3270
|
logoUrl: s.string(),
|
|
3256
3271
|
loginBackgroundImage: s.string().nullish(),
|
|
3257
3272
|
style: s.object({
|
|
@@ -3270,16 +3285,16 @@ const qn = s.object({
|
|
|
3270
3285
|
manageSubscriptionsUrl: s.string().optional()
|
|
3271
3286
|
});
|
|
3272
3287
|
var it = /* @__PURE__ */ ((t) => (t.RefreshToken = "refresh_token", t.AuthorizationCode = "authorization_code", t.ClientCredential = "client_credentials", t.Passwordless = "passwordless", t.Password = "password", t))(it || {});
|
|
3273
|
-
const
|
|
3274
|
-
grant_type:
|
|
3288
|
+
const $e = s.nativeEnum(it), Fn = s.object({
|
|
3289
|
+
grant_type: $e.refine(
|
|
3275
3290
|
(t) => t === "authorization_code"
|
|
3276
3291
|
/* AuthorizationCode */
|
|
3277
3292
|
),
|
|
3278
3293
|
code: s.string(),
|
|
3279
3294
|
client_secret: s.string(),
|
|
3280
3295
|
client_id: s.string()
|
|
3281
|
-
}),
|
|
3282
|
-
grant_type:
|
|
3296
|
+
}), Xn = s.object({
|
|
3297
|
+
grant_type: $e.refine(
|
|
3283
3298
|
(t) => t === "authorization_code"
|
|
3284
3299
|
/* AuthorizationCode */
|
|
3285
3300
|
),
|
|
@@ -3287,8 +3302,8 @@ const Me = s.nativeEnum(it), Yn = s.object({
|
|
|
3287
3302
|
code_verifier: s.string(),
|
|
3288
3303
|
client_id: s.string().optional(),
|
|
3289
3304
|
redirect_uri: s.string()
|
|
3290
|
-
}),
|
|
3291
|
-
grant_type:
|
|
3305
|
+
}), Qn = s.object({
|
|
3306
|
+
grant_type: $e.refine(
|
|
3292
3307
|
(t) => t === "client_credentials"
|
|
3293
3308
|
/* ClientCredential */
|
|
3294
3309
|
),
|
|
@@ -3310,56 +3325,58 @@ s.object({
|
|
|
3310
3325
|
code: s.string(),
|
|
3311
3326
|
state: s.string().optional()
|
|
3312
3327
|
});
|
|
3313
|
-
const
|
|
3328
|
+
const In = s.object({
|
|
3314
3329
|
id: s.string(),
|
|
3315
3330
|
expires_at: s.string(),
|
|
3316
3331
|
auth0Client: s.string().optional(),
|
|
3317
|
-
authParams:
|
|
3318
|
-
}),
|
|
3319
|
-
...
|
|
3332
|
+
authParams: Me
|
|
3333
|
+
}), er = s.object({
|
|
3334
|
+
...In.shape,
|
|
3320
3335
|
created_at: s.string(),
|
|
3321
3336
|
updated_at: s.string()
|
|
3322
|
-
}),
|
|
3337
|
+
}), tr = "tmp";
|
|
3323
3338
|
export {
|
|
3324
3339
|
xn as Auth0Client,
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3340
|
+
nt as AuthorizationResponseMode,
|
|
3341
|
+
tt as AuthorizationResponseType,
|
|
3342
|
+
Vn as ClientSchema,
|
|
3343
|
+
rt as CodeChallengeMethod,
|
|
3329
3344
|
it as GrantType,
|
|
3330
3345
|
bn as LogTypes,
|
|
3331
|
-
|
|
3346
|
+
Ln as PartialClientSchema,
|
|
3332
3347
|
wn as applicationInsertSchema,
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3348
|
+
$n as applicationSchema,
|
|
3349
|
+
An as auth0UserResponseSchema,
|
|
3350
|
+
Me as authParamsSchema,
|
|
3351
|
+
Dn as authenticationCodeSchema,
|
|
3352
|
+
Fn as authorizationCodeGrantTypeParamsSchema,
|
|
3353
|
+
et as baseUserSchema,
|
|
3354
|
+
Un as brandingSchema,
|
|
3355
|
+
Hn as certificateSchema,
|
|
3356
|
+
Qn as clientCredentialGrantTypeParamsSchema,
|
|
3342
3357
|
Sn as connectionInsertSchema,
|
|
3343
3358
|
st as connectionSchema,
|
|
3344
3359
|
On as domainInsertSchema,
|
|
3345
|
-
|
|
3360
|
+
zn as domainSchema,
|
|
3346
3361
|
En as hookInsertSchema,
|
|
3347
|
-
|
|
3348
|
-
|
|
3362
|
+
Bn as hookSchema,
|
|
3363
|
+
Wn as jwksKeySchema,
|
|
3349
3364
|
Cn as jwksSchema,
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
Zn as
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3365
|
+
Mn as logSchema,
|
|
3366
|
+
qn as openIDConfigurationSchema,
|
|
3367
|
+
jn as otpInsertSchema,
|
|
3368
|
+
Gn as otpSchema,
|
|
3369
|
+
Xn as pkceAuthorizationCodeGrantTypeParamsSchema,
|
|
3370
|
+
Zn as sessionInsertSchema,
|
|
3371
|
+
Kn as signingKeySchema,
|
|
3372
|
+
Nn as tenantInsertSchema,
|
|
3373
|
+
Yn as tenantSchema,
|
|
3374
|
+
tr as tmp,
|
|
3375
|
+
Rn as totalsSchema,
|
|
3376
|
+
In as universalLoginSessionInsertSchema,
|
|
3377
|
+
er as universalLoginSessionSchema,
|
|
3361
3378
|
yn as userInsertSchema,
|
|
3362
|
-
|
|
3379
|
+
Pn as userResponseSchema,
|
|
3363
3380
|
vn as userSchema,
|
|
3364
|
-
|
|
3381
|
+
Jn as vendorSettingsSchema
|
|
3365
3382
|
};
|