@authhero/kysely-adapter 0.15.0 → 0.17.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/kysely-adapter.cjs +1 -1
- package/dist/kysely-adapter.d.ts +36 -3
- package/dist/kysely-adapter.iife.js +1 -1
- package/dist/kysely-adapter.mjs +176 -163
- package/package.json +1 -1
package/dist/kysely-adapter.mjs
CHANGED
|
@@ -1033,7 +1033,7 @@ function va(t, e) {
|
|
|
1033
1033
|
const n = (t.toString().split(".")[1] || "").length, r = (e.toString().split(".")[1] || "").length, a = n > r ? n : r, s = parseInt(t.toFixed(a).replace(".", "")), o = parseInt(e.toFixed(a).replace(".", ""));
|
|
1034
1034
|
return s % o / Math.pow(10, a);
|
|
1035
1035
|
}
|
|
1036
|
-
class
|
|
1036
|
+
class ke extends j {
|
|
1037
1037
|
constructor() {
|
|
1038
1038
|
super(...arguments), this.min = this.gte, this.max = this.lte, this.step = this.multipleOf;
|
|
1039
1039
|
}
|
|
@@ -1091,7 +1091,7 @@ class Ne extends j {
|
|
|
1091
1091
|
return this.setLimit("max", e, !1, b.toString(n));
|
|
1092
1092
|
}
|
|
1093
1093
|
setLimit(e, n, r, a) {
|
|
1094
|
-
return new
|
|
1094
|
+
return new ke({
|
|
1095
1095
|
...this._def,
|
|
1096
1096
|
checks: [
|
|
1097
1097
|
...this._def.checks,
|
|
@@ -1105,7 +1105,7 @@ class Ne extends j {
|
|
|
1105
1105
|
});
|
|
1106
1106
|
}
|
|
1107
1107
|
_addCheck(e) {
|
|
1108
|
-
return new
|
|
1108
|
+
return new ke({
|
|
1109
1109
|
...this._def,
|
|
1110
1110
|
checks: [...this._def.checks, e]
|
|
1111
1111
|
});
|
|
@@ -1199,7 +1199,7 @@ class Ne extends j {
|
|
|
1199
1199
|
return Number.isFinite(n) && Number.isFinite(e);
|
|
1200
1200
|
}
|
|
1201
1201
|
}
|
|
1202
|
-
|
|
1202
|
+
ke.create = (t) => new ke({
|
|
1203
1203
|
checks: [],
|
|
1204
1204
|
typeName: x.ZodNumber,
|
|
1205
1205
|
coerce: (t == null ? void 0 : t.coerce) || !1,
|
|
@@ -1333,7 +1333,7 @@ Te.create = (t) => {
|
|
|
1333
1333
|
...O(t)
|
|
1334
1334
|
});
|
|
1335
1335
|
};
|
|
1336
|
-
class
|
|
1336
|
+
class Nt extends j {
|
|
1337
1337
|
_parse(e) {
|
|
1338
1338
|
if (this._def.coerce && (e.data = !!e.data), this._getType(e) !== g.boolean) {
|
|
1339
1339
|
const n = this._getOrReturnCtx(e);
|
|
@@ -1346,7 +1346,7 @@ class kt extends j {
|
|
|
1346
1346
|
return V(e.data);
|
|
1347
1347
|
}
|
|
1348
1348
|
}
|
|
1349
|
-
|
|
1349
|
+
Nt.create = (t) => new Nt({
|
|
1350
1350
|
typeName: x.ZodBoolean,
|
|
1351
1351
|
coerce: (t == null ? void 0 : t.coerce) || !1,
|
|
1352
1352
|
...O(t)
|
|
@@ -1446,7 +1446,7 @@ sn.create = (t) => new sn({
|
|
|
1446
1446
|
typeName: x.ZodSymbol,
|
|
1447
1447
|
...O(t)
|
|
1448
1448
|
});
|
|
1449
|
-
class
|
|
1449
|
+
class kt extends j {
|
|
1450
1450
|
_parse(e) {
|
|
1451
1451
|
if (this._getType(e) !== g.undefined) {
|
|
1452
1452
|
const n = this._getOrReturnCtx(e);
|
|
@@ -1459,7 +1459,7 @@ class Nt extends j {
|
|
|
1459
1459
|
return V(e.data);
|
|
1460
1460
|
}
|
|
1461
1461
|
}
|
|
1462
|
-
|
|
1462
|
+
kt.create = (t) => new kt({
|
|
1463
1463
|
typeName: x.ZodUndefined,
|
|
1464
1464
|
...O(t)
|
|
1465
1465
|
});
|
|
@@ -1984,7 +1984,7 @@ Ct.create = (t, e) => new Ct({
|
|
|
1984
1984
|
typeName: x.ZodUnion,
|
|
1985
1985
|
...O(e)
|
|
1986
1986
|
});
|
|
1987
|
-
const we = (t) => t instanceof jt ? we(t.schema) : t instanceof Y ? we(t.innerType()) : t instanceof It ? [t.value] : t instanceof Ce ? t.options : t instanceof Zt ? E.objectValues(t.enum) : t instanceof Et ? we(t._def.innerType) : t instanceof
|
|
1987
|
+
const we = (t) => t instanceof jt ? we(t.schema) : t instanceof Y ? we(t.innerType()) : t instanceof It ? [t.value] : t instanceof Ce ? t.options : t instanceof Zt ? E.objectValues(t.enum) : t instanceof Et ? we(t._def.innerType) : t instanceof kt ? [void 0] : t instanceof Tt ? [null] : t instanceof ae ? [void 0, ...we(t.unwrap())] : t instanceof Oe ? [null, ...we(t.unwrap())] : t instanceof zn || t instanceof At ? we(t.unwrap()) : t instanceof $t ? we(t._def.innerType) : [];
|
|
1988
1988
|
class yn extends j {
|
|
1989
1989
|
_parse(e) {
|
|
1990
1990
|
const { ctx: n } = this._processInputParams(e);
|
|
@@ -2855,10 +2855,10 @@ var x;
|
|
|
2855
2855
|
})(x || (x = {}));
|
|
2856
2856
|
const xa = (t, e = {
|
|
2857
2857
|
message: `Input not instance of ${t.name}`
|
|
2858
|
-
}) => ir((n) => n instanceof t, e), or = q.create, dr =
|
|
2858
|
+
}) => ir((n) => n instanceof t, e), or = q.create, dr = ke.create, Na = cn.create, ka = Te.create, cr = Nt.create, Ta = ze.create, Ca = sn.create, Oa = kt.create, Sa = Tt.create, ja = it.create, Ia = Me.create, Za = me.create, Ea = on.create, $a = G.create, Aa = P.create, Pa = P.strictCreate, Da = Ct.create, Ra = yn.create, Ma = Ot.create, La = oe.create, za = St.create, Ua = dn.create, Fa = Ue.create, Va = nt.create, Ba = jt.create, Ka = It.create, Wa = Ce.create, Ja = Zt.create, qa = ot.create, Jn = Y.create, Qa = ae.create, Ga = Oe.create, Ha = Y.createWithPreprocess, Ya = Ht.create, Xa = () => or().optional(), es = () => dr().optional(), ts = () => cr().optional(), ns = {
|
|
2859
2859
|
string: (t) => q.create({ ...t, coerce: !0 }),
|
|
2860
|
-
number: (t) =>
|
|
2861
|
-
boolean: (t) =>
|
|
2860
|
+
number: (t) => ke.create({ ...t, coerce: !0 }),
|
|
2861
|
+
boolean: (t) => Nt.create({
|
|
2862
2862
|
...t,
|
|
2863
2863
|
coerce: !0
|
|
2864
2864
|
}),
|
|
@@ -2892,12 +2892,12 @@ var i = /* @__PURE__ */ Object.freeze({
|
|
|
2892
2892
|
ZodType: j,
|
|
2893
2893
|
datetimeRegex: ar,
|
|
2894
2894
|
ZodString: q,
|
|
2895
|
-
ZodNumber:
|
|
2895
|
+
ZodNumber: ke,
|
|
2896
2896
|
ZodBigInt: Te,
|
|
2897
|
-
ZodBoolean:
|
|
2897
|
+
ZodBoolean: Nt,
|
|
2898
2898
|
ZodDate: ze,
|
|
2899
2899
|
ZodSymbol: sn,
|
|
2900
|
-
ZodUndefined:
|
|
2900
|
+
ZodUndefined: kt,
|
|
2901
2901
|
ZodNull: Tt,
|
|
2902
2902
|
ZodAny: it,
|
|
2903
2903
|
ZodUnknown: Me,
|
|
@@ -2939,7 +2939,7 @@ var i = /* @__PURE__ */ Object.freeze({
|
|
|
2939
2939
|
coerce: ns,
|
|
2940
2940
|
any: ja,
|
|
2941
2941
|
array: $a,
|
|
2942
|
-
bigint:
|
|
2942
|
+
bigint: ka,
|
|
2943
2943
|
boolean: cr,
|
|
2944
2944
|
date: Ta,
|
|
2945
2945
|
discriminatedUnion: Ra,
|
|
@@ -2951,7 +2951,7 @@ var i = /* @__PURE__ */ Object.freeze({
|
|
|
2951
2951
|
lazy: Ba,
|
|
2952
2952
|
literal: Ka,
|
|
2953
2953
|
map: Ua,
|
|
2954
|
-
nan:
|
|
2954
|
+
nan: Na,
|
|
2955
2955
|
nativeEnum: Ja,
|
|
2956
2956
|
never: Za,
|
|
2957
2957
|
null: Sa,
|
|
@@ -3321,7 +3321,7 @@ i.object({
|
|
|
3321
3321
|
request_parameter_supported: i.boolean(),
|
|
3322
3322
|
token_endpoint_auth_signing_alg_values_supported: i.array(i.string())
|
|
3323
3323
|
});
|
|
3324
|
-
const
|
|
3324
|
+
const Ns = i.object({
|
|
3325
3325
|
auth0Client: i.string().optional(),
|
|
3326
3326
|
authParams: hs,
|
|
3327
3327
|
expires_at: i.string(),
|
|
@@ -3329,8 +3329,8 @@ const ks = i.object({
|
|
|
3329
3329
|
ip: i.string().optional()
|
|
3330
3330
|
}).openapi({
|
|
3331
3331
|
description: "This represents a login sesion"
|
|
3332
|
-
}),
|
|
3333
|
-
...
|
|
3332
|
+
}), ks = i.object({
|
|
3333
|
+
...Ns.shape,
|
|
3334
3334
|
login_id: i.string().openapi({
|
|
3335
3335
|
description: "This is is used as the state in the universal login"
|
|
3336
3336
|
}),
|
|
@@ -4117,10 +4117,10 @@ function xi(t) {
|
|
|
4117
4117
|
}) : null;
|
|
4118
4118
|
};
|
|
4119
4119
|
}
|
|
4120
|
-
function
|
|
4120
|
+
function Ni(t) {
|
|
4121
4121
|
return async (e, n) => (await t.deleteFrom("applications").where("applications.tenant_id", "=", e).where("applications.id", "=", n).executeTakeFirst()).numDeletedRows > 0;
|
|
4122
4122
|
}
|
|
4123
|
-
function
|
|
4123
|
+
function ki(t) {
|
|
4124
4124
|
return async (e, n, r) => {
|
|
4125
4125
|
const a = {
|
|
4126
4126
|
...r,
|
|
@@ -4141,8 +4141,8 @@ function Ti(t) {
|
|
|
4141
4141
|
create: bi(t),
|
|
4142
4142
|
list: wi(t),
|
|
4143
4143
|
get: xi(t),
|
|
4144
|
-
remove:
|
|
4145
|
-
update:
|
|
4144
|
+
remove: Ni(t),
|
|
4145
|
+
update: ki(t)
|
|
4146
4146
|
};
|
|
4147
4147
|
}
|
|
4148
4148
|
function Ci(t) {
|
|
@@ -4288,7 +4288,7 @@ const y = $.arrayToEnum([
|
|
|
4288
4288
|
"never",
|
|
4289
4289
|
"map",
|
|
4290
4290
|
"set"
|
|
4291
|
-
]),
|
|
4291
|
+
]), Ne = (t) => {
|
|
4292
4292
|
switch (typeof t) {
|
|
4293
4293
|
case "undefined":
|
|
4294
4294
|
return y.undefined;
|
|
@@ -4500,7 +4500,7 @@ class F {
|
|
|
4500
4500
|
const r = [];
|
|
4501
4501
|
for (const a of n) {
|
|
4502
4502
|
if (a.status === "aborted")
|
|
4503
|
-
return
|
|
4503
|
+
return k;
|
|
4504
4504
|
a.status === "dirty" && e.dirty(), r.push(a.value);
|
|
4505
4505
|
}
|
|
4506
4506
|
return { status: e.value, value: r };
|
|
@@ -4521,13 +4521,13 @@ class F {
|
|
|
4521
4521
|
for (const a of n) {
|
|
4522
4522
|
const { key: s, value: o } = a;
|
|
4523
4523
|
if (s.status === "aborted" || o.status === "aborted")
|
|
4524
|
-
return
|
|
4524
|
+
return k;
|
|
4525
4525
|
s.status === "dirty" && e.dirty(), o.status === "dirty" && e.dirty(), s.value !== "__proto__" && (typeof o.value < "u" || a.alwaysSet) && (r[s.value] = o.value);
|
|
4526
4526
|
}
|
|
4527
4527
|
return { status: e.value, value: r };
|
|
4528
4528
|
}
|
|
4529
4529
|
}
|
|
4530
|
-
const
|
|
4530
|
+
const k = Object.freeze({
|
|
4531
4531
|
status: "aborted"
|
|
4532
4532
|
}), tt = (t) => ({ status: "dirty", value: t }), B = (t) => ({ status: "valid", value: t }), En = (t) => t.status === "aborted", $n = (t) => t.status === "dirty", Pt = (t) => t.status === "valid", Dt = (t) => typeof Promise < "u" && t instanceof Promise;
|
|
4533
4533
|
function hn(t, e, n, r) {
|
|
@@ -4586,13 +4586,13 @@ class I {
|
|
|
4586
4586
|
return this._def.description;
|
|
4587
4587
|
}
|
|
4588
4588
|
_getType(e) {
|
|
4589
|
-
return
|
|
4589
|
+
return Ne(e.data);
|
|
4590
4590
|
}
|
|
4591
4591
|
_getOrReturnCtx(e, n) {
|
|
4592
4592
|
return n || {
|
|
4593
4593
|
common: e.parent.common,
|
|
4594
4594
|
data: e.data,
|
|
4595
|
-
parsedType:
|
|
4595
|
+
parsedType: Ne(e.data),
|
|
4596
4596
|
schemaErrorMap: this._def.errorMap,
|
|
4597
4597
|
path: e.path,
|
|
4598
4598
|
parent: e.parent
|
|
@@ -4604,7 +4604,7 @@ class I {
|
|
|
4604
4604
|
ctx: {
|
|
4605
4605
|
common: e.parent.common,
|
|
4606
4606
|
data: e.data,
|
|
4607
|
-
parsedType:
|
|
4607
|
+
parsedType: Ne(e.data),
|
|
4608
4608
|
schemaErrorMap: this._def.errorMap,
|
|
4609
4609
|
path: e.path,
|
|
4610
4610
|
parent: e.parent
|
|
@@ -4639,7 +4639,7 @@ class I {
|
|
|
4639
4639
|
schemaErrorMap: this._def.errorMap,
|
|
4640
4640
|
parent: null,
|
|
4641
4641
|
data: e,
|
|
4642
|
-
parsedType:
|
|
4642
|
+
parsedType: Ne(e)
|
|
4643
4643
|
}, s = this._parseSync({ data: e, path: a.path, parent: a });
|
|
4644
4644
|
return Gn(a, s);
|
|
4645
4645
|
}
|
|
@@ -4660,7 +4660,7 @@ class I {
|
|
|
4660
4660
|
schemaErrorMap: this._def.errorMap,
|
|
4661
4661
|
parent: null,
|
|
4662
4662
|
data: e,
|
|
4663
|
-
parsedType:
|
|
4663
|
+
parsedType: Ne(e)
|
|
4664
4664
|
}, a = this._parse({ data: e, path: r.path, parent: r }), s = await (Dt(a) ? a : Promise.resolve(a));
|
|
4665
4665
|
return Gn(r, s);
|
|
4666
4666
|
}
|
|
@@ -4680,7 +4680,7 @@ class I {
|
|
|
4680
4680
|
_refinement(e) {
|
|
4681
4681
|
return new X({
|
|
4682
4682
|
schema: this,
|
|
4683
|
-
typeName:
|
|
4683
|
+
typeName: N.ZodEffects,
|
|
4684
4684
|
effect: { type: "refinement", refinement: e }
|
|
4685
4685
|
});
|
|
4686
4686
|
}
|
|
@@ -4712,7 +4712,7 @@ class I {
|
|
|
4712
4712
|
return new X({
|
|
4713
4713
|
...S(this._def),
|
|
4714
4714
|
schema: this,
|
|
4715
|
-
typeName:
|
|
4715
|
+
typeName: N.ZodEffects,
|
|
4716
4716
|
effect: { type: "transform", transform: e }
|
|
4717
4717
|
});
|
|
4718
4718
|
}
|
|
@@ -4722,12 +4722,12 @@ class I {
|
|
|
4722
4722
|
...S(this._def),
|
|
4723
4723
|
innerType: this,
|
|
4724
4724
|
defaultValue: n,
|
|
4725
|
-
typeName:
|
|
4725
|
+
typeName: N.ZodDefault
|
|
4726
4726
|
});
|
|
4727
4727
|
}
|
|
4728
4728
|
brand() {
|
|
4729
4729
|
return new Bn({
|
|
4730
|
-
typeName:
|
|
4730
|
+
typeName: N.ZodBranded,
|
|
4731
4731
|
type: this,
|
|
4732
4732
|
...S(this._def)
|
|
4733
4733
|
});
|
|
@@ -4738,7 +4738,7 @@ class I {
|
|
|
4738
4738
|
...S(this._def),
|
|
4739
4739
|
innerType: this,
|
|
4740
4740
|
catchValue: n,
|
|
4741
|
-
typeName:
|
|
4741
|
+
typeName: N.ZodCatch
|
|
4742
4742
|
});
|
|
4743
4743
|
}
|
|
4744
4744
|
describe(e) {
|
|
@@ -4787,7 +4787,7 @@ class Q extends I {
|
|
|
4787
4787
|
code: p.invalid_type,
|
|
4788
4788
|
expected: y.string,
|
|
4789
4789
|
received: s.parsedType
|
|
4790
|
-
}),
|
|
4790
|
+
}), k;
|
|
4791
4791
|
}
|
|
4792
4792
|
const r = new F();
|
|
4793
4793
|
let a;
|
|
@@ -5132,7 +5132,7 @@ Q.create = (t) => {
|
|
|
5132
5132
|
var e;
|
|
5133
5133
|
return new Q({
|
|
5134
5134
|
checks: [],
|
|
5135
|
-
typeName:
|
|
5135
|
+
typeName: N.ZodString,
|
|
5136
5136
|
coerce: (e = t == null ? void 0 : t.coerce) !== null && e !== void 0 ? e : !1,
|
|
5137
5137
|
...S(t)
|
|
5138
5138
|
});
|
|
@@ -5152,7 +5152,7 @@ class Se extends I {
|
|
|
5152
5152
|
code: p.invalid_type,
|
|
5153
5153
|
expected: y.number,
|
|
5154
5154
|
received: s.parsedType
|
|
5155
|
-
}),
|
|
5155
|
+
}), k;
|
|
5156
5156
|
}
|
|
5157
5157
|
let r;
|
|
5158
5158
|
const a = new F();
|
|
@@ -5309,7 +5309,7 @@ class Se extends I {
|
|
|
5309
5309
|
}
|
|
5310
5310
|
Se.create = (t) => new Se({
|
|
5311
5311
|
checks: [],
|
|
5312
|
-
typeName:
|
|
5312
|
+
typeName: N.ZodNumber,
|
|
5313
5313
|
coerce: (t == null ? void 0 : t.coerce) || !1,
|
|
5314
5314
|
...S(t)
|
|
5315
5315
|
});
|
|
@@ -5324,7 +5324,7 @@ class je extends I {
|
|
|
5324
5324
|
code: p.invalid_type,
|
|
5325
5325
|
expected: y.bigint,
|
|
5326
5326
|
received: s.parsedType
|
|
5327
|
-
}),
|
|
5327
|
+
}), k;
|
|
5328
5328
|
}
|
|
5329
5329
|
let r;
|
|
5330
5330
|
const a = new F();
|
|
@@ -5436,7 +5436,7 @@ je.create = (t) => {
|
|
|
5436
5436
|
var e;
|
|
5437
5437
|
return new je({
|
|
5438
5438
|
checks: [],
|
|
5439
|
-
typeName:
|
|
5439
|
+
typeName: N.ZodBigInt,
|
|
5440
5440
|
coerce: (e = t == null ? void 0 : t.coerce) !== null && e !== void 0 ? e : !1,
|
|
5441
5441
|
...S(t)
|
|
5442
5442
|
});
|
|
@@ -5449,13 +5449,13 @@ class Rt extends I {
|
|
|
5449
5449
|
code: p.invalid_type,
|
|
5450
5450
|
expected: y.boolean,
|
|
5451
5451
|
received: r.parsedType
|
|
5452
|
-
}),
|
|
5452
|
+
}), k;
|
|
5453
5453
|
}
|
|
5454
5454
|
return B(e.data);
|
|
5455
5455
|
}
|
|
5456
5456
|
}
|
|
5457
5457
|
Rt.create = (t) => new Rt({
|
|
5458
|
-
typeName:
|
|
5458
|
+
typeName: N.ZodBoolean,
|
|
5459
5459
|
coerce: (t == null ? void 0 : t.coerce) || !1,
|
|
5460
5460
|
...S(t)
|
|
5461
5461
|
});
|
|
@@ -5467,13 +5467,13 @@ class Fe extends I {
|
|
|
5467
5467
|
code: p.invalid_type,
|
|
5468
5468
|
expected: y.date,
|
|
5469
5469
|
received: s.parsedType
|
|
5470
|
-
}),
|
|
5470
|
+
}), k;
|
|
5471
5471
|
}
|
|
5472
5472
|
if (isNaN(e.data.getTime())) {
|
|
5473
5473
|
const s = this._getOrReturnCtx(e);
|
|
5474
5474
|
return _(s, {
|
|
5475
5475
|
code: p.invalid_date
|
|
5476
|
-
}),
|
|
5476
|
+
}), k;
|
|
5477
5477
|
}
|
|
5478
5478
|
const r = new F();
|
|
5479
5479
|
let a;
|
|
@@ -5534,7 +5534,7 @@ class Fe extends I {
|
|
|
5534
5534
|
Fe.create = (t) => new Fe({
|
|
5535
5535
|
checks: [],
|
|
5536
5536
|
coerce: (t == null ? void 0 : t.coerce) || !1,
|
|
5537
|
-
typeName:
|
|
5537
|
+
typeName: N.ZodDate,
|
|
5538
5538
|
...S(t)
|
|
5539
5539
|
});
|
|
5540
5540
|
class pn extends I {
|
|
@@ -5545,13 +5545,13 @@ class pn extends I {
|
|
|
5545
5545
|
code: p.invalid_type,
|
|
5546
5546
|
expected: y.symbol,
|
|
5547
5547
|
received: r.parsedType
|
|
5548
|
-
}),
|
|
5548
|
+
}), k;
|
|
5549
5549
|
}
|
|
5550
5550
|
return B(e.data);
|
|
5551
5551
|
}
|
|
5552
5552
|
}
|
|
5553
5553
|
pn.create = (t) => new pn({
|
|
5554
|
-
typeName:
|
|
5554
|
+
typeName: N.ZodSymbol,
|
|
5555
5555
|
...S(t)
|
|
5556
5556
|
});
|
|
5557
5557
|
class Mt extends I {
|
|
@@ -5562,13 +5562,13 @@ class Mt extends I {
|
|
|
5562
5562
|
code: p.invalid_type,
|
|
5563
5563
|
expected: y.undefined,
|
|
5564
5564
|
received: r.parsedType
|
|
5565
|
-
}),
|
|
5565
|
+
}), k;
|
|
5566
5566
|
}
|
|
5567
5567
|
return B(e.data);
|
|
5568
5568
|
}
|
|
5569
5569
|
}
|
|
5570
5570
|
Mt.create = (t) => new Mt({
|
|
5571
|
-
typeName:
|
|
5571
|
+
typeName: N.ZodUndefined,
|
|
5572
5572
|
...S(t)
|
|
5573
5573
|
});
|
|
5574
5574
|
class Lt extends I {
|
|
@@ -5579,13 +5579,13 @@ class Lt extends I {
|
|
|
5579
5579
|
code: p.invalid_type,
|
|
5580
5580
|
expected: y.null,
|
|
5581
5581
|
received: r.parsedType
|
|
5582
|
-
}),
|
|
5582
|
+
}), k;
|
|
5583
5583
|
}
|
|
5584
5584
|
return B(e.data);
|
|
5585
5585
|
}
|
|
5586
5586
|
}
|
|
5587
5587
|
Lt.create = (t) => new Lt({
|
|
5588
|
-
typeName:
|
|
5588
|
+
typeName: N.ZodNull,
|
|
5589
5589
|
...S(t)
|
|
5590
5590
|
});
|
|
5591
5591
|
class ct extends I {
|
|
@@ -5597,7 +5597,7 @@ class ct extends I {
|
|
|
5597
5597
|
}
|
|
5598
5598
|
}
|
|
5599
5599
|
ct.create = (t) => new ct({
|
|
5600
|
-
typeName:
|
|
5600
|
+
typeName: N.ZodAny,
|
|
5601
5601
|
...S(t)
|
|
5602
5602
|
});
|
|
5603
5603
|
class Le extends I {
|
|
@@ -5609,7 +5609,7 @@ class Le extends I {
|
|
|
5609
5609
|
}
|
|
5610
5610
|
}
|
|
5611
5611
|
Le.create = (t) => new Le({
|
|
5612
|
-
typeName:
|
|
5612
|
+
typeName: N.ZodUnknown,
|
|
5613
5613
|
...S(t)
|
|
5614
5614
|
});
|
|
5615
5615
|
class fe extends I {
|
|
@@ -5619,11 +5619,11 @@ class fe extends I {
|
|
|
5619
5619
|
code: p.invalid_type,
|
|
5620
5620
|
expected: y.never,
|
|
5621
5621
|
received: n.parsedType
|
|
5622
|
-
}),
|
|
5622
|
+
}), k;
|
|
5623
5623
|
}
|
|
5624
5624
|
}
|
|
5625
5625
|
fe.create = (t) => new fe({
|
|
5626
|
-
typeName:
|
|
5626
|
+
typeName: N.ZodNever,
|
|
5627
5627
|
...S(t)
|
|
5628
5628
|
});
|
|
5629
5629
|
class mn extends I {
|
|
@@ -5634,13 +5634,13 @@ class mn extends I {
|
|
|
5634
5634
|
code: p.invalid_type,
|
|
5635
5635
|
expected: y.void,
|
|
5636
5636
|
received: r.parsedType
|
|
5637
|
-
}),
|
|
5637
|
+
}), k;
|
|
5638
5638
|
}
|
|
5639
5639
|
return B(e.data);
|
|
5640
5640
|
}
|
|
5641
5641
|
}
|
|
5642
5642
|
mn.create = (t) => new mn({
|
|
5643
|
-
typeName:
|
|
5643
|
+
typeName: N.ZodVoid,
|
|
5644
5644
|
...S(t)
|
|
5645
5645
|
});
|
|
5646
5646
|
class H extends I {
|
|
@@ -5651,7 +5651,7 @@ class H extends I {
|
|
|
5651
5651
|
code: p.invalid_type,
|
|
5652
5652
|
expected: y.array,
|
|
5653
5653
|
received: n.parsedType
|
|
5654
|
-
}),
|
|
5654
|
+
}), k;
|
|
5655
5655
|
if (a.exactLength !== null) {
|
|
5656
5656
|
const o = n.data.length > a.exactLength.value, d = n.data.length < a.exactLength.value;
|
|
5657
5657
|
(o || d) && (_(n, {
|
|
@@ -5713,7 +5713,7 @@ H.create = (t, e) => new H({
|
|
|
5713
5713
|
minLength: null,
|
|
5714
5714
|
maxLength: null,
|
|
5715
5715
|
exactLength: null,
|
|
5716
|
-
typeName:
|
|
5716
|
+
typeName: N.ZodArray,
|
|
5717
5717
|
...S(e)
|
|
5718
5718
|
});
|
|
5719
5719
|
function He(t) {
|
|
@@ -5749,7 +5749,7 @@ class D extends I {
|
|
|
5749
5749
|
code: p.invalid_type,
|
|
5750
5750
|
expected: y.object,
|
|
5751
5751
|
received: l.parsedType
|
|
5752
|
-
}),
|
|
5752
|
+
}), k;
|
|
5753
5753
|
}
|
|
5754
5754
|
const { status: r, ctx: a } = this._processInputParams(e), { shape: s, keys: o } = this._getCached(), d = [];
|
|
5755
5755
|
if (!(this._def.catchall instanceof fe && this._def.unknownKeys === "strip"))
|
|
@@ -5876,7 +5876,7 @@ class D extends I {
|
|
|
5876
5876
|
...this._def.shape(),
|
|
5877
5877
|
...e._def.shape()
|
|
5878
5878
|
}),
|
|
5879
|
-
typeName:
|
|
5879
|
+
typeName: N.ZodObject
|
|
5880
5880
|
});
|
|
5881
5881
|
}
|
|
5882
5882
|
// merge<
|
|
@@ -5995,28 +5995,28 @@ class D extends I {
|
|
|
5995
5995
|
});
|
|
5996
5996
|
}
|
|
5997
5997
|
keyof() {
|
|
5998
|
-
return
|
|
5998
|
+
return Nr($.objectKeys(this.shape));
|
|
5999
5999
|
}
|
|
6000
6000
|
}
|
|
6001
6001
|
D.create = (t, e) => new D({
|
|
6002
6002
|
shape: () => t,
|
|
6003
6003
|
unknownKeys: "strip",
|
|
6004
6004
|
catchall: fe.create(),
|
|
6005
|
-
typeName:
|
|
6005
|
+
typeName: N.ZodObject,
|
|
6006
6006
|
...S(e)
|
|
6007
6007
|
});
|
|
6008
6008
|
D.strictCreate = (t, e) => new D({
|
|
6009
6009
|
shape: () => t,
|
|
6010
6010
|
unknownKeys: "strict",
|
|
6011
6011
|
catchall: fe.create(),
|
|
6012
|
-
typeName:
|
|
6012
|
+
typeName: N.ZodObject,
|
|
6013
6013
|
...S(e)
|
|
6014
6014
|
});
|
|
6015
6015
|
D.lazycreate = (t, e) => new D({
|
|
6016
6016
|
shape: t,
|
|
6017
6017
|
unknownKeys: "strip",
|
|
6018
6018
|
catchall: fe.create(),
|
|
6019
|
-
typeName:
|
|
6019
|
+
typeName: N.ZodObject,
|
|
6020
6020
|
...S(e)
|
|
6021
6021
|
});
|
|
6022
6022
|
class zt extends I {
|
|
@@ -6033,7 +6033,7 @@ class zt extends I {
|
|
|
6033
6033
|
return _(n, {
|
|
6034
6034
|
code: p.invalid_union,
|
|
6035
6035
|
unionErrors: o
|
|
6036
|
-
}),
|
|
6036
|
+
}), k;
|
|
6037
6037
|
}
|
|
6038
6038
|
if (n.common.async)
|
|
6039
6039
|
return Promise.all(r.map(async (s) => {
|
|
@@ -6080,7 +6080,7 @@ class zt extends I {
|
|
|
6080
6080
|
return _(n, {
|
|
6081
6081
|
code: p.invalid_union,
|
|
6082
6082
|
unionErrors: d
|
|
6083
|
-
}),
|
|
6083
|
+
}), k;
|
|
6084
6084
|
}
|
|
6085
6085
|
}
|
|
6086
6086
|
get options() {
|
|
@@ -6089,7 +6089,7 @@ class zt extends I {
|
|
|
6089
6089
|
}
|
|
6090
6090
|
zt.create = (t, e) => new zt({
|
|
6091
6091
|
options: t,
|
|
6092
|
-
typeName:
|
|
6092
|
+
typeName: N.ZodUnion,
|
|
6093
6093
|
...S(e)
|
|
6094
6094
|
});
|
|
6095
6095
|
const le = (t) => t instanceof Vt ? le(t.schema) : t instanceof X ? le(t.innerType()) : t instanceof Bt ? [t.value] : t instanceof Ie ? t.options : t instanceof Kt ? $.objectValues(t.enum) : t instanceof Wt ? le(t._def.innerType) : t instanceof Mt ? [void 0] : t instanceof Lt ? [null] : t instanceof se ? [void 0, ...le(t.unwrap())] : t instanceof Ze ? [null, ...le(t.unwrap())] : t instanceof Bn || t instanceof qt ? le(t.unwrap()) : t instanceof Jt ? le(t._def.innerType) : [];
|
|
@@ -6101,7 +6101,7 @@ class vn extends I {
|
|
|
6101
6101
|
code: p.invalid_type,
|
|
6102
6102
|
expected: y.object,
|
|
6103
6103
|
received: n.parsedType
|
|
6104
|
-
}),
|
|
6104
|
+
}), k;
|
|
6105
6105
|
const r = this.discriminator, a = n.data[r], s = this.optionsMap.get(a);
|
|
6106
6106
|
return s ? n.common.async ? s._parseAsync({
|
|
6107
6107
|
data: n.data,
|
|
@@ -6115,7 +6115,7 @@ class vn extends I {
|
|
|
6115
6115
|
code: p.invalid_union_discriminator,
|
|
6116
6116
|
options: Array.from(this.optionsMap.keys()),
|
|
6117
6117
|
path: [r]
|
|
6118
|
-
}),
|
|
6118
|
+
}), k);
|
|
6119
6119
|
}
|
|
6120
6120
|
get discriminator() {
|
|
6121
6121
|
return this._def.discriminator;
|
|
@@ -6147,7 +6147,7 @@ class vn extends I {
|
|
|
6147
6147
|
}
|
|
6148
6148
|
}
|
|
6149
6149
|
return new vn({
|
|
6150
|
-
typeName:
|
|
6150
|
+
typeName: N.ZodDiscriminatedUnion,
|
|
6151
6151
|
discriminator: e,
|
|
6152
6152
|
options: n,
|
|
6153
6153
|
optionsMap: a,
|
|
@@ -6156,7 +6156,7 @@ class vn extends I {
|
|
|
6156
6156
|
}
|
|
6157
6157
|
}
|
|
6158
6158
|
function An(t, e) {
|
|
6159
|
-
const n =
|
|
6159
|
+
const n = Ne(t), r = Ne(e);
|
|
6160
6160
|
if (t === e)
|
|
6161
6161
|
return { valid: !0, data: t };
|
|
6162
6162
|
if (n === y.object && r === y.object) {
|
|
@@ -6185,11 +6185,11 @@ class Ut extends I {
|
|
|
6185
6185
|
_parse(e) {
|
|
6186
6186
|
const { status: n, ctx: r } = this._processInputParams(e), a = (s, o) => {
|
|
6187
6187
|
if (En(s) || En(o))
|
|
6188
|
-
return
|
|
6188
|
+
return k;
|
|
6189
6189
|
const d = An(s.value, o.value);
|
|
6190
6190
|
return d.valid ? (($n(s) || $n(o)) && n.dirty(), { status: n.value, value: d.data }) : (_(r, {
|
|
6191
6191
|
code: p.invalid_intersection_types
|
|
6192
|
-
}),
|
|
6192
|
+
}), k);
|
|
6193
6193
|
};
|
|
6194
6194
|
return r.common.async ? Promise.all([
|
|
6195
6195
|
this._def.left._parseAsync({
|
|
@@ -6216,7 +6216,7 @@ class Ut extends I {
|
|
|
6216
6216
|
Ut.create = (t, e, n) => new Ut({
|
|
6217
6217
|
left: t,
|
|
6218
6218
|
right: e,
|
|
6219
|
-
typeName:
|
|
6219
|
+
typeName: N.ZodIntersection,
|
|
6220
6220
|
...S(n)
|
|
6221
6221
|
});
|
|
6222
6222
|
class ce extends I {
|
|
@@ -6227,7 +6227,7 @@ class ce extends I {
|
|
|
6227
6227
|
code: p.invalid_type,
|
|
6228
6228
|
expected: y.array,
|
|
6229
6229
|
received: r.parsedType
|
|
6230
|
-
}),
|
|
6230
|
+
}), k;
|
|
6231
6231
|
if (r.data.length < this._def.items.length)
|
|
6232
6232
|
return _(r, {
|
|
6233
6233
|
code: p.too_small,
|
|
@@ -6235,7 +6235,7 @@ class ce extends I {
|
|
|
6235
6235
|
inclusive: !0,
|
|
6236
6236
|
exact: !1,
|
|
6237
6237
|
type: "array"
|
|
6238
|
-
}),
|
|
6238
|
+
}), k;
|
|
6239
6239
|
!this._def.rest && r.data.length > this._def.items.length && (_(r, {
|
|
6240
6240
|
code: p.too_big,
|
|
6241
6241
|
maximum: this._def.items.length,
|
|
@@ -6264,7 +6264,7 @@ ce.create = (t, e) => {
|
|
|
6264
6264
|
throw new Error("You must pass an array of schemas to z.tuple([ ... ])");
|
|
6265
6265
|
return new ce({
|
|
6266
6266
|
items: t,
|
|
6267
|
-
typeName:
|
|
6267
|
+
typeName: N.ZodTuple,
|
|
6268
6268
|
rest: null,
|
|
6269
6269
|
...S(e)
|
|
6270
6270
|
});
|
|
@@ -6283,7 +6283,7 @@ class Ft extends I {
|
|
|
6283
6283
|
code: p.invalid_type,
|
|
6284
6284
|
expected: y.object,
|
|
6285
6285
|
received: r.parsedType
|
|
6286
|
-
}),
|
|
6286
|
+
}), k;
|
|
6287
6287
|
const a = [], s = this._def.keyType, o = this._def.valueType;
|
|
6288
6288
|
for (const d in r.data)
|
|
6289
6289
|
a.push({
|
|
@@ -6300,12 +6300,12 @@ class Ft extends I {
|
|
|
6300
6300
|
return n instanceof I ? new Ft({
|
|
6301
6301
|
keyType: e,
|
|
6302
6302
|
valueType: n,
|
|
6303
|
-
typeName:
|
|
6303
|
+
typeName: N.ZodRecord,
|
|
6304
6304
|
...S(r)
|
|
6305
6305
|
}) : new Ft({
|
|
6306
6306
|
keyType: Q.create(),
|
|
6307
6307
|
valueType: e,
|
|
6308
|
-
typeName:
|
|
6308
|
+
typeName: N.ZodRecord,
|
|
6309
6309
|
...S(n)
|
|
6310
6310
|
});
|
|
6311
6311
|
}
|
|
@@ -6324,7 +6324,7 @@ class fn extends I {
|
|
|
6324
6324
|
code: p.invalid_type,
|
|
6325
6325
|
expected: y.map,
|
|
6326
6326
|
received: r.parsedType
|
|
6327
|
-
}),
|
|
6327
|
+
}), k;
|
|
6328
6328
|
const a = this._def.keyType, s = this._def.valueType, o = [...r.data.entries()].map(([d, c], l) => ({
|
|
6329
6329
|
key: a._parse(new de(r, d, r.path, [l, "key"])),
|
|
6330
6330
|
value: s._parse(new de(r, c, r.path, [l, "value"]))
|
|
@@ -6335,7 +6335,7 @@ class fn extends I {
|
|
|
6335
6335
|
for (const c of o) {
|
|
6336
6336
|
const l = await c.key, u = await c.value;
|
|
6337
6337
|
if (l.status === "aborted" || u.status === "aborted")
|
|
6338
|
-
return
|
|
6338
|
+
return k;
|
|
6339
6339
|
(l.status === "dirty" || u.status === "dirty") && n.dirty(), d.set(l.value, u.value);
|
|
6340
6340
|
}
|
|
6341
6341
|
return { status: n.value, value: d };
|
|
@@ -6345,7 +6345,7 @@ class fn extends I {
|
|
|
6345
6345
|
for (const c of o) {
|
|
6346
6346
|
const l = c.key, u = c.value;
|
|
6347
6347
|
if (l.status === "aborted" || u.status === "aborted")
|
|
6348
|
-
return
|
|
6348
|
+
return k;
|
|
6349
6349
|
(l.status === "dirty" || u.status === "dirty") && n.dirty(), d.set(l.value, u.value);
|
|
6350
6350
|
}
|
|
6351
6351
|
return { status: n.value, value: d };
|
|
@@ -6355,7 +6355,7 @@ class fn extends I {
|
|
|
6355
6355
|
fn.create = (t, e, n) => new fn({
|
|
6356
6356
|
valueType: e,
|
|
6357
6357
|
keyType: t,
|
|
6358
|
-
typeName:
|
|
6358
|
+
typeName: N.ZodMap,
|
|
6359
6359
|
...S(n)
|
|
6360
6360
|
});
|
|
6361
6361
|
class Ve extends I {
|
|
@@ -6366,7 +6366,7 @@ class Ve extends I {
|
|
|
6366
6366
|
code: p.invalid_type,
|
|
6367
6367
|
expected: y.set,
|
|
6368
6368
|
received: r.parsedType
|
|
6369
|
-
}),
|
|
6369
|
+
}), k;
|
|
6370
6370
|
const a = this._def;
|
|
6371
6371
|
a.minSize !== null && r.data.size < a.minSize.value && (_(r, {
|
|
6372
6372
|
code: p.too_small,
|
|
@@ -6388,7 +6388,7 @@ class Ve extends I {
|
|
|
6388
6388
|
const l = /* @__PURE__ */ new Set();
|
|
6389
6389
|
for (const u of c) {
|
|
6390
6390
|
if (u.status === "aborted")
|
|
6391
|
-
return
|
|
6391
|
+
return k;
|
|
6392
6392
|
u.status === "dirty" && n.dirty(), l.add(u.value);
|
|
6393
6393
|
}
|
|
6394
6394
|
return { status: n.value, value: l };
|
|
@@ -6419,7 +6419,7 @@ Ve.create = (t, e) => new Ve({
|
|
|
6419
6419
|
valueType: t,
|
|
6420
6420
|
minSize: null,
|
|
6421
6421
|
maxSize: null,
|
|
6422
|
-
typeName:
|
|
6422
|
+
typeName: N.ZodSet,
|
|
6423
6423
|
...S(e)
|
|
6424
6424
|
});
|
|
6425
6425
|
class rt extends I {
|
|
@@ -6433,7 +6433,7 @@ class rt extends I {
|
|
|
6433
6433
|
code: p.invalid_type,
|
|
6434
6434
|
expected: y.function,
|
|
6435
6435
|
received: n.parsedType
|
|
6436
|
-
}),
|
|
6436
|
+
}), k;
|
|
6437
6437
|
function r(d, c) {
|
|
6438
6438
|
return un({
|
|
6439
6439
|
data: d,
|
|
@@ -6518,7 +6518,7 @@ class rt extends I {
|
|
|
6518
6518
|
return new rt({
|
|
6519
6519
|
args: e || ce.create([]).rest(Le.create()),
|
|
6520
6520
|
returns: n || Le.create(),
|
|
6521
|
-
typeName:
|
|
6521
|
+
typeName: N.ZodFunction,
|
|
6522
6522
|
...S(r)
|
|
6523
6523
|
});
|
|
6524
6524
|
}
|
|
@@ -6534,7 +6534,7 @@ class Vt extends I {
|
|
|
6534
6534
|
}
|
|
6535
6535
|
Vt.create = (t, e) => new Vt({
|
|
6536
6536
|
getter: t,
|
|
6537
|
-
typeName:
|
|
6537
|
+
typeName: N.ZodLazy,
|
|
6538
6538
|
...S(e)
|
|
6539
6539
|
});
|
|
6540
6540
|
class Bt extends I {
|
|
@@ -6545,7 +6545,7 @@ class Bt extends I {
|
|
|
6545
6545
|
received: n.data,
|
|
6546
6546
|
code: p.invalid_literal,
|
|
6547
6547
|
expected: this._def.value
|
|
6548
|
-
}),
|
|
6548
|
+
}), k;
|
|
6549
6549
|
}
|
|
6550
6550
|
return { status: "valid", value: e.data };
|
|
6551
6551
|
}
|
|
@@ -6555,13 +6555,13 @@ class Bt extends I {
|
|
|
6555
6555
|
}
|
|
6556
6556
|
Bt.create = (t, e) => new Bt({
|
|
6557
6557
|
value: t,
|
|
6558
|
-
typeName:
|
|
6558
|
+
typeName: N.ZodLiteral,
|
|
6559
6559
|
...S(e)
|
|
6560
6560
|
});
|
|
6561
|
-
function
|
|
6561
|
+
function Nr(t, e) {
|
|
6562
6562
|
return new Ie({
|
|
6563
6563
|
values: t,
|
|
6564
|
-
typeName:
|
|
6564
|
+
typeName: N.ZodEnum,
|
|
6565
6565
|
...S(e)
|
|
6566
6566
|
});
|
|
6567
6567
|
}
|
|
@@ -6576,7 +6576,7 @@ class Ie extends I {
|
|
|
6576
6576
|
expected: $.joinValues(r),
|
|
6577
6577
|
received: n.parsedType,
|
|
6578
6578
|
code: p.invalid_type
|
|
6579
|
-
}),
|
|
6579
|
+
}), k;
|
|
6580
6580
|
}
|
|
6581
6581
|
if (hn(this, gt) || vr(this, gt, new Set(this._def.values)), !hn(this, gt).has(e.data)) {
|
|
6582
6582
|
const n = this._getOrReturnCtx(e), r = this._def.values;
|
|
@@ -6584,7 +6584,7 @@ class Ie extends I {
|
|
|
6584
6584
|
received: n.data,
|
|
6585
6585
|
code: p.invalid_enum_value,
|
|
6586
6586
|
options: r
|
|
6587
|
-
}),
|
|
6587
|
+
}), k;
|
|
6588
6588
|
}
|
|
6589
6589
|
return B(e.data);
|
|
6590
6590
|
}
|
|
@@ -6623,7 +6623,7 @@ class Ie extends I {
|
|
|
6623
6623
|
}
|
|
6624
6624
|
}
|
|
6625
6625
|
gt = /* @__PURE__ */ new WeakMap();
|
|
6626
|
-
Ie.create =
|
|
6626
|
+
Ie.create = Nr;
|
|
6627
6627
|
class Kt extends I {
|
|
6628
6628
|
constructor() {
|
|
6629
6629
|
super(...arguments), yt.set(this, void 0);
|
|
@@ -6636,7 +6636,7 @@ class Kt extends I {
|
|
|
6636
6636
|
expected: $.joinValues(a),
|
|
6637
6637
|
received: r.parsedType,
|
|
6638
6638
|
code: p.invalid_type
|
|
6639
|
-
}),
|
|
6639
|
+
}), k;
|
|
6640
6640
|
}
|
|
6641
6641
|
if (hn(this, yt) || vr(this, yt, new Set($.getValidEnumValues(this._def.values))), !hn(this, yt).has(e.data)) {
|
|
6642
6642
|
const a = $.objectValues(n);
|
|
@@ -6644,7 +6644,7 @@ class Kt extends I {
|
|
|
6644
6644
|
received: r.data,
|
|
6645
6645
|
code: p.invalid_enum_value,
|
|
6646
6646
|
options: a
|
|
6647
|
-
}),
|
|
6647
|
+
}), k;
|
|
6648
6648
|
}
|
|
6649
6649
|
return B(e.data);
|
|
6650
6650
|
}
|
|
@@ -6655,7 +6655,7 @@ class Kt extends I {
|
|
|
6655
6655
|
yt = /* @__PURE__ */ new WeakMap();
|
|
6656
6656
|
Kt.create = (t, e) => new Kt({
|
|
6657
6657
|
values: t,
|
|
6658
|
-
typeName:
|
|
6658
|
+
typeName: N.ZodNativeEnum,
|
|
6659
6659
|
...S(e)
|
|
6660
6660
|
});
|
|
6661
6661
|
class lt extends I {
|
|
@@ -6669,7 +6669,7 @@ class lt extends I {
|
|
|
6669
6669
|
code: p.invalid_type,
|
|
6670
6670
|
expected: y.promise,
|
|
6671
6671
|
received: n.parsedType
|
|
6672
|
-
}),
|
|
6672
|
+
}), k;
|
|
6673
6673
|
const r = n.parsedType === y.promise ? n.data : Promise.resolve(n.data);
|
|
6674
6674
|
return B(r.then((a) => this._def.type.parseAsync(a, {
|
|
6675
6675
|
path: n.path,
|
|
@@ -6679,7 +6679,7 @@ class lt extends I {
|
|
|
6679
6679
|
}
|
|
6680
6680
|
lt.create = (t, e) => new lt({
|
|
6681
6681
|
type: t,
|
|
6682
|
-
typeName:
|
|
6682
|
+
typeName: N.ZodPromise,
|
|
6683
6683
|
...S(e)
|
|
6684
6684
|
});
|
|
6685
6685
|
class X extends I {
|
|
@@ -6687,7 +6687,7 @@ class X extends I {
|
|
|
6687
6687
|
return this._def.schema;
|
|
6688
6688
|
}
|
|
6689
6689
|
sourceType() {
|
|
6690
|
-
return this._def.schema._def.typeName ===
|
|
6690
|
+
return this._def.schema._def.typeName === N.ZodEffects ? this._def.schema.sourceType() : this._def.schema;
|
|
6691
6691
|
}
|
|
6692
6692
|
_parse(e) {
|
|
6693
6693
|
const { status: n, ctx: r } = this._processInputParams(e), a = this._def.effect || null, s = {
|
|
@@ -6703,23 +6703,23 @@ class X extends I {
|
|
|
6703
6703
|
if (r.common.async)
|
|
6704
6704
|
return Promise.resolve(o).then(async (d) => {
|
|
6705
6705
|
if (n.value === "aborted")
|
|
6706
|
-
return
|
|
6706
|
+
return k;
|
|
6707
6707
|
const c = await this._def.schema._parseAsync({
|
|
6708
6708
|
data: d,
|
|
6709
6709
|
path: r.path,
|
|
6710
6710
|
parent: r
|
|
6711
6711
|
});
|
|
6712
|
-
return c.status === "aborted" ?
|
|
6712
|
+
return c.status === "aborted" ? k : c.status === "dirty" || n.value === "dirty" ? tt(c.value) : c;
|
|
6713
6713
|
});
|
|
6714
6714
|
{
|
|
6715
6715
|
if (n.value === "aborted")
|
|
6716
|
-
return
|
|
6716
|
+
return k;
|
|
6717
6717
|
const d = this._def.schema._parseSync({
|
|
6718
6718
|
data: o,
|
|
6719
6719
|
path: r.path,
|
|
6720
6720
|
parent: r
|
|
6721
6721
|
});
|
|
6722
|
-
return d.status === "aborted" ?
|
|
6722
|
+
return d.status === "aborted" ? k : d.status === "dirty" || n.value === "dirty" ? tt(d.value) : d;
|
|
6723
6723
|
}
|
|
6724
6724
|
}
|
|
6725
6725
|
if (a.type === "refinement") {
|
|
@@ -6737,9 +6737,9 @@ class X extends I {
|
|
|
6737
6737
|
path: r.path,
|
|
6738
6738
|
parent: r
|
|
6739
6739
|
});
|
|
6740
|
-
return d.status === "aborted" ?
|
|
6740
|
+
return d.status === "aborted" ? k : (d.status === "dirty" && n.dirty(), o(d.value), { status: n.value, value: d.value });
|
|
6741
6741
|
} else
|
|
6742
|
-
return this._def.schema._parseAsync({ data: r.data, path: r.path, parent: r }).then((d) => d.status === "aborted" ?
|
|
6742
|
+
return this._def.schema._parseAsync({ data: r.data, path: r.path, parent: r }).then((d) => d.status === "aborted" ? k : (d.status === "dirty" && n.dirty(), o(d.value).then(() => ({ status: n.value, value: d.value }))));
|
|
6743
6743
|
}
|
|
6744
6744
|
if (a.type === "transform")
|
|
6745
6745
|
if (r.common.async === !1) {
|
|
@@ -6761,14 +6761,14 @@ class X extends I {
|
|
|
6761
6761
|
}
|
|
6762
6762
|
X.create = (t, e, n) => new X({
|
|
6763
6763
|
schema: t,
|
|
6764
|
-
typeName:
|
|
6764
|
+
typeName: N.ZodEffects,
|
|
6765
6765
|
effect: e,
|
|
6766
6766
|
...S(n)
|
|
6767
6767
|
});
|
|
6768
6768
|
X.createWithPreprocess = (t, e, n) => new X({
|
|
6769
6769
|
schema: e,
|
|
6770
6770
|
effect: { type: "preprocess", transform: t },
|
|
6771
|
-
typeName:
|
|
6771
|
+
typeName: N.ZodEffects,
|
|
6772
6772
|
...S(n)
|
|
6773
6773
|
});
|
|
6774
6774
|
class se extends I {
|
|
@@ -6781,7 +6781,7 @@ class se extends I {
|
|
|
6781
6781
|
}
|
|
6782
6782
|
se.create = (t, e) => new se({
|
|
6783
6783
|
innerType: t,
|
|
6784
|
-
typeName:
|
|
6784
|
+
typeName: N.ZodOptional,
|
|
6785
6785
|
...S(e)
|
|
6786
6786
|
});
|
|
6787
6787
|
class Ze extends I {
|
|
@@ -6794,7 +6794,7 @@ class Ze extends I {
|
|
|
6794
6794
|
}
|
|
6795
6795
|
Ze.create = (t, e) => new Ze({
|
|
6796
6796
|
innerType: t,
|
|
6797
|
-
typeName:
|
|
6797
|
+
typeName: N.ZodNullable,
|
|
6798
6798
|
...S(e)
|
|
6799
6799
|
});
|
|
6800
6800
|
class Wt extends I {
|
|
@@ -6813,7 +6813,7 @@ class Wt extends I {
|
|
|
6813
6813
|
}
|
|
6814
6814
|
Wt.create = (t, e) => new Wt({
|
|
6815
6815
|
innerType: t,
|
|
6816
|
-
typeName:
|
|
6816
|
+
typeName: N.ZodDefault,
|
|
6817
6817
|
defaultValue: typeof e.default == "function" ? e.default : () => e.default,
|
|
6818
6818
|
...S(e)
|
|
6819
6819
|
});
|
|
@@ -6856,7 +6856,7 @@ class Jt extends I {
|
|
|
6856
6856
|
}
|
|
6857
6857
|
Jt.create = (t, e) => new Jt({
|
|
6858
6858
|
innerType: t,
|
|
6859
|
-
typeName:
|
|
6859
|
+
typeName: N.ZodCatch,
|
|
6860
6860
|
catchValue: typeof e.catch == "function" ? e.catch : () => e.catch,
|
|
6861
6861
|
...S(e)
|
|
6862
6862
|
});
|
|
@@ -6868,13 +6868,13 @@ class _n extends I {
|
|
|
6868
6868
|
code: p.invalid_type,
|
|
6869
6869
|
expected: y.nan,
|
|
6870
6870
|
received: r.parsedType
|
|
6871
|
-
}),
|
|
6871
|
+
}), k;
|
|
6872
6872
|
}
|
|
6873
6873
|
return { status: "valid", value: e.data };
|
|
6874
6874
|
}
|
|
6875
6875
|
}
|
|
6876
6876
|
_n.create = (t) => new _n({
|
|
6877
|
-
typeName:
|
|
6877
|
+
typeName: N.ZodNaN,
|
|
6878
6878
|
...S(t)
|
|
6879
6879
|
});
|
|
6880
6880
|
const qi = Symbol("zod_brand");
|
|
@@ -6901,7 +6901,7 @@ class Yt extends I {
|
|
|
6901
6901
|
path: r.path,
|
|
6902
6902
|
parent: r
|
|
6903
6903
|
});
|
|
6904
|
-
return s.status === "aborted" ?
|
|
6904
|
+
return s.status === "aborted" ? k : s.status === "dirty" ? (n.dirty(), tt(s.value)) : this._def.out._parseAsync({
|
|
6905
6905
|
data: s.value,
|
|
6906
6906
|
path: r.path,
|
|
6907
6907
|
parent: r
|
|
@@ -6913,7 +6913,7 @@ class Yt extends I {
|
|
|
6913
6913
|
path: r.path,
|
|
6914
6914
|
parent: r
|
|
6915
6915
|
});
|
|
6916
|
-
return a.status === "aborted" ?
|
|
6916
|
+
return a.status === "aborted" ? k : a.status === "dirty" ? (n.dirty(), {
|
|
6917
6917
|
status: "dirty",
|
|
6918
6918
|
value: a.value
|
|
6919
6919
|
}) : this._def.out._parseSync({
|
|
@@ -6927,7 +6927,7 @@ class Yt extends I {
|
|
|
6927
6927
|
return new Yt({
|
|
6928
6928
|
in: e,
|
|
6929
6929
|
out: n,
|
|
6930
|
-
typeName:
|
|
6930
|
+
typeName: N.ZodPipeline
|
|
6931
6931
|
});
|
|
6932
6932
|
}
|
|
6933
6933
|
}
|
|
@@ -6942,10 +6942,10 @@ class qt extends I {
|
|
|
6942
6942
|
}
|
|
6943
6943
|
qt.create = (t, e) => new qt({
|
|
6944
6944
|
innerType: t,
|
|
6945
|
-
typeName:
|
|
6945
|
+
typeName: N.ZodReadonly,
|
|
6946
6946
|
...S(e)
|
|
6947
6947
|
});
|
|
6948
|
-
function
|
|
6948
|
+
function kr(t, e = {}, n) {
|
|
6949
6949
|
return t ? ct.create().superRefine((r, a) => {
|
|
6950
6950
|
var s, o;
|
|
6951
6951
|
if (!t(r)) {
|
|
@@ -6957,13 +6957,13 @@ function Nr(t, e = {}, n) {
|
|
|
6957
6957
|
const Qi = {
|
|
6958
6958
|
object: D.lazycreate
|
|
6959
6959
|
};
|
|
6960
|
-
var
|
|
6960
|
+
var N;
|
|
6961
6961
|
(function(t) {
|
|
6962
6962
|
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";
|
|
6963
|
-
})(
|
|
6963
|
+
})(N || (N = {}));
|
|
6964
6964
|
const Gi = (t, e = {
|
|
6965
6965
|
message: `Input not instance of ${t.name}`
|
|
6966
|
-
}) =>
|
|
6966
|
+
}) => kr((n) => n instanceof t, e), Tr = Q.create, Cr = Se.create, Hi = _n.create, Yi = je.create, Or = Rt.create, Xi = Fe.create, eo = pn.create, to = Mt.create, no = Lt.create, ro = ct.create, ao = Le.create, so = fe.create, io = mn.create, oo = H.create, co = D.create, lo = D.strictCreate, uo = zt.create, ho = vn.create, po = Ut.create, mo = ce.create, fo = Ft.create, _o = fn.create, go = Ve.create, yo = rt.create, vo = Vt.create, bo = Bt.create, wo = Ie.create, xo = Kt.create, No = lt.create, Hn = X.create, ko = se.create, To = Ze.create, Co = X.createWithPreprocess, Oo = Yt.create, So = () => Tr().optional(), jo = () => Cr().optional(), Io = () => Or().optional(), Zo = {
|
|
6967
6967
|
string: (t) => Q.create({ ...t, coerce: !0 }),
|
|
6968
6968
|
number: (t) => Se.create({ ...t, coerce: !0 }),
|
|
6969
6969
|
boolean: (t) => Rt.create({
|
|
@@ -6972,7 +6972,7 @@ const Gi = (t, e = {
|
|
|
6972
6972
|
}),
|
|
6973
6973
|
bigint: (t) => je.create({ ...t, coerce: !0 }),
|
|
6974
6974
|
date: (t) => Fe.create({ ...t, coerce: !0 })
|
|
6975
|
-
}, Eo =
|
|
6975
|
+
}, Eo = k;
|
|
6976
6976
|
var $o = /* @__PURE__ */ Object.freeze({
|
|
6977
6977
|
__proto__: null,
|
|
6978
6978
|
defaultErrorMap: dt,
|
|
@@ -6982,7 +6982,7 @@ var $o = /* @__PURE__ */ Object.freeze({
|
|
|
6982
6982
|
EMPTY_PATH: Ei,
|
|
6983
6983
|
addIssueToContext: _,
|
|
6984
6984
|
ParseStatus: F,
|
|
6985
|
-
INVALID:
|
|
6985
|
+
INVALID: k,
|
|
6986
6986
|
DIRTY: tt,
|
|
6987
6987
|
OK: B,
|
|
6988
6988
|
isAborted: En,
|
|
@@ -6996,7 +6996,7 @@ var $o = /* @__PURE__ */ Object.freeze({
|
|
|
6996
6996
|
return Zn;
|
|
6997
6997
|
},
|
|
6998
6998
|
ZodParsedType: y,
|
|
6999
|
-
getParsedType:
|
|
6999
|
+
getParsedType: Ne,
|
|
7000
7000
|
ZodType: I,
|
|
7001
7001
|
datetimeRegex: xr,
|
|
7002
7002
|
ZodString: Q,
|
|
@@ -7037,12 +7037,12 @@ var $o = /* @__PURE__ */ Object.freeze({
|
|
|
7037
7037
|
ZodBranded: Bn,
|
|
7038
7038
|
ZodPipeline: Yt,
|
|
7039
7039
|
ZodReadonly: qt,
|
|
7040
|
-
custom:
|
|
7040
|
+
custom: kr,
|
|
7041
7041
|
Schema: I,
|
|
7042
7042
|
ZodSchema: I,
|
|
7043
7043
|
late: Qi,
|
|
7044
7044
|
get ZodFirstPartyTypeKind() {
|
|
7045
|
-
return
|
|
7045
|
+
return N;
|
|
7046
7046
|
},
|
|
7047
7047
|
coerce: Zo,
|
|
7048
7048
|
any: ro,
|
|
@@ -7068,11 +7068,11 @@ var $o = /* @__PURE__ */ Object.freeze({
|
|
|
7068
7068
|
object: co,
|
|
7069
7069
|
oboolean: Io,
|
|
7070
7070
|
onumber: jo,
|
|
7071
|
-
optional:
|
|
7071
|
+
optional: ko,
|
|
7072
7072
|
ostring: So,
|
|
7073
7073
|
pipeline: Oo,
|
|
7074
7074
|
preprocess: Co,
|
|
7075
|
-
promise:
|
|
7075
|
+
promise: No,
|
|
7076
7076
|
record: fo,
|
|
7077
7077
|
set: go,
|
|
7078
7078
|
strictObject: lo,
|
|
@@ -7199,7 +7199,12 @@ function Lo(t) {
|
|
|
7199
7199
|
};
|
|
7200
7200
|
}
|
|
7201
7201
|
function zo(t) {
|
|
7202
|
-
return async () => await t.selectFrom("keys").where(
|
|
7202
|
+
return async () => await t.selectFrom("keys").where(
|
|
7203
|
+
(n) => n.or([
|
|
7204
|
+
n("revoked_at", ">", (/* @__PURE__ */ new Date()).toISOString()),
|
|
7205
|
+
n("revoked_at", "is", null)
|
|
7206
|
+
])
|
|
7207
|
+
).selectAll().execute();
|
|
7203
7208
|
}
|
|
7204
7209
|
function Uo(t) {
|
|
7205
7210
|
return async (e) => {
|
|
@@ -7334,7 +7339,11 @@ function Go(t) {
|
|
|
7334
7339
|
function Ho(t) {
|
|
7335
7340
|
return async (e, n) => {
|
|
7336
7341
|
const r = await t.selectFrom("hooks").where("hooks.tenant_id", "=", e).where("hooks.hook_id", "=", n).selectAll().executeTakeFirst();
|
|
7337
|
-
return r ?
|
|
7342
|
+
return r ? M({
|
|
7343
|
+
...r,
|
|
7344
|
+
enabled: !!r.enabled,
|
|
7345
|
+
synchronous: !!r.synchronous
|
|
7346
|
+
}) : null;
|
|
7338
7347
|
};
|
|
7339
7348
|
}
|
|
7340
7349
|
function Yo(t) {
|
|
@@ -7350,7 +7359,9 @@ function Xo(t) {
|
|
|
7350
7359
|
};
|
|
7351
7360
|
return await t.insertInto("hooks").values({
|
|
7352
7361
|
...r,
|
|
7353
|
-
tenant_id: e
|
|
7362
|
+
tenant_id: e,
|
|
7363
|
+
enabled: n.enabled ? 1 : 0,
|
|
7364
|
+
synchronous: n.synchronous ? 1 : 0
|
|
7354
7365
|
}).execute(), r;
|
|
7355
7366
|
};
|
|
7356
7367
|
}
|
|
@@ -7358,7 +7369,9 @@ function ed(t) {
|
|
|
7358
7369
|
return async (e, n, r) => {
|
|
7359
7370
|
const a = {
|
|
7360
7371
|
...r,
|
|
7361
|
-
updated_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
7372
|
+
updated_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
7373
|
+
enabled: r.enabled !== void 0 ? r.enabled ? 1 : 0 : void 0,
|
|
7374
|
+
synchronous: r.enabled !== void 0 ? r.synchronous ? 1 : 0 : void 0
|
|
7362
7375
|
};
|
|
7363
7376
|
return await t.updateTable("hooks").set(a).where("hooks.hook_id", "=", n).where("hooks.tenant_id", "=", e).execute(), !0;
|
|
7364
7377
|
};
|
|
@@ -7412,7 +7425,7 @@ function id(t) {
|
|
|
7412
7425
|
function od(t) {
|
|
7413
7426
|
return async (e, n) => {
|
|
7414
7427
|
const r = (/* @__PURE__ */ new Date()).toISOString(), a = await t.selectFrom("logins").where("logins.expires_at", ">", r).where("logins.login_id", "=", n).selectAll().executeTakeFirst();
|
|
7415
|
-
return a ?
|
|
7428
|
+
return a ? ks.parse(
|
|
7416
7429
|
Sr(M(a), ["authParams"])
|
|
7417
7430
|
) : null;
|
|
7418
7431
|
};
|
|
@@ -7525,7 +7538,7 @@ const en = z({
|
|
|
7525
7538
|
alias: e
|
|
7526
7539
|
});
|
|
7527
7540
|
}
|
|
7528
|
-
}),
|
|
7541
|
+
}), Nn = z({
|
|
7529
7542
|
is(t) {
|
|
7530
7543
|
return t.kind === "TableNode";
|
|
7531
7544
|
},
|
|
@@ -8433,7 +8446,7 @@ class vd extends gd {
|
|
|
8433
8446
|
const r = super.transformReferences(n);
|
|
8434
8447
|
return r.table.table.schema ? r : {
|
|
8435
8448
|
...r,
|
|
8436
|
-
table:
|
|
8449
|
+
table: Nn.createWithSchema(v(this, at), r.table.table.identifier.name)
|
|
8437
8450
|
};
|
|
8438
8451
|
}
|
|
8439
8452
|
}
|
|
@@ -8452,7 +8465,7 @@ at = new WeakMap(), De = new WeakMap(), Re = new WeakMap(), L = new WeakSet(), j
|
|
|
8452
8465
|
const r = /* @__PURE__ */ new Set();
|
|
8453
8466
|
return "with" in n && n.with && C(this, L, Er).call(this, n.with, r), r;
|
|
8454
8467
|
}, Ye = function(n, r) {
|
|
8455
|
-
const a =
|
|
8468
|
+
const a = Nn.is(n) ? n : _d.is(n) && Nn.is(n.node) ? n.node : null;
|
|
8456
8469
|
a && C(this, L, Dn).call(this, a.table, r);
|
|
8457
8470
|
}, Dn = function(n, r) {
|
|
8458
8471
|
const a = n.identifier.name;
|
|
@@ -8485,7 +8498,7 @@ class wd {
|
|
|
8485
8498
|
return e.result;
|
|
8486
8499
|
}
|
|
8487
8500
|
}
|
|
8488
|
-
const xd = "kysely_migration", Xn = "kysely_migration_lock",
|
|
8501
|
+
const xd = "kysely_migration", Xn = "kysely_migration_lock", Nd = !1, kn = "migration_lock", kd = z({ __noMigrations__: !0 });
|
|
8489
8502
|
var A, m, vt, ue, he, Xe, Ar, pe, Pr, Dr, Rr, Mr, Lr, Rn, et, Mn, zr, Ur, Fr, Ln, Vr, Br, Kr, Wr, Jr, bt;
|
|
8490
8503
|
class $r {
|
|
8491
8504
|
constructor(e) {
|
|
@@ -8584,7 +8597,7 @@ class $r {
|
|
|
8584
8597
|
*/
|
|
8585
8598
|
async migrateTo(e) {
|
|
8586
8599
|
return C(this, m, vt).call(this, ({ migrations: n, executedMigrations: r, pendingMigrations: a }) => {
|
|
8587
|
-
if (e ===
|
|
8600
|
+
if (e === kd)
|
|
8588
8601
|
return { direction: "Down", step: 1 / 0 };
|
|
8589
8602
|
if (!n.find((d) => d.name === e))
|
|
8590
8603
|
throw new Error(`migration "${e}" doesn't exist`);
|
|
@@ -8647,7 +8660,7 @@ A = new WeakMap(), m = new WeakSet(), vt = async function(e) {
|
|
|
8647
8660
|
}, Xe = function() {
|
|
8648
8661
|
return v(this, A).migrationLockTableName ?? Xn;
|
|
8649
8662
|
}, Ar = function() {
|
|
8650
|
-
return v(this, A).allowUnorderedMigrations ??
|
|
8663
|
+
return v(this, A).allowUnorderedMigrations ?? Nd;
|
|
8651
8664
|
}, pe = function() {
|
|
8652
8665
|
return v(this, m, ue) ? new bd(v(this, m, ue)) : new wd();
|
|
8653
8666
|
}, Pr = async function() {
|
|
@@ -8679,7 +8692,7 @@ A = new WeakMap(), m = new WeakSet(), vt = async function(e) {
|
|
|
8679
8692
|
}, Lr = async function() {
|
|
8680
8693
|
if (!await C(this, m, Mn).call(this))
|
|
8681
8694
|
try {
|
|
8682
|
-
await v(this, A).db.withPlugin(v(this, m, pe)).insertInto(v(this, m, Xe)).values({ id:
|
|
8695
|
+
await v(this, A).db.withPlugin(v(this, m, pe)).insertInto(v(this, m, Xe)).values({ id: kn, is_locked: 0 }).execute();
|
|
8683
8696
|
} catch (e) {
|
|
8684
8697
|
if (!await C(this, m, Mn).call(this))
|
|
8685
8698
|
throw e;
|
|
@@ -8692,11 +8705,11 @@ A = new WeakMap(), m = new WeakSet(), vt = async function(e) {
|
|
|
8692
8705
|
withInternalKyselyTables: !0
|
|
8693
8706
|
})).some((a) => a.name === e && (!n || a.schema === n));
|
|
8694
8707
|
}, Mn = async function() {
|
|
8695
|
-
return !!await v(this, A).db.withPlugin(v(this, m, pe)).selectFrom(v(this, m, Xe)).where("id", "=",
|
|
8708
|
+
return !!await v(this, A).db.withPlugin(v(this, m, pe)).selectFrom(v(this, m, Xe)).where("id", "=", kn).select("id").executeTakeFirst();
|
|
8696
8709
|
}, zr = async function(e) {
|
|
8697
8710
|
const n = v(this, A).db.getExecutor().adapter, r = z({
|
|
8698
8711
|
lockTable: v(this, A).migrationLockTableName ?? Xn,
|
|
8699
|
-
lockRowId:
|
|
8712
|
+
lockRowId: kn,
|
|
8700
8713
|
lockTableSchema: v(this, A).migrationTableSchema
|
|
8701
8714
|
}), a = async (s) => {
|
|
8702
8715
|
try {
|
|
@@ -9113,11 +9126,11 @@ const wc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9113
9126
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
9114
9127
|
async function xc(t) {
|
|
9115
9128
|
}
|
|
9116
|
-
async function
|
|
9129
|
+
async function Nc(t) {
|
|
9117
9130
|
}
|
|
9118
|
-
const
|
|
9131
|
+
const kc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9119
9132
|
__proto__: null,
|
|
9120
|
-
down:
|
|
9133
|
+
down: Nc,
|
|
9121
9134
|
up: xc
|
|
9122
9135
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
9123
9136
|
async function Tc(t) {
|
|
@@ -9309,12 +9322,12 @@ async function xl(t) {
|
|
|
9309
9322
|
(e) => e.references("applications.id").onDelete("cascade").notNull()
|
|
9310
9323
|
).addColumn("user_id", "varchar(255)", (e) => e.notNull()).addColumn("nonce", "varchar(255)").addColumn("state", "varchar(8192)").addColumn("scope", "varchar(1024)").addColumn("response_type", "varchar(256)").addColumn("response_mode", "varchar(256)").addColumn("redirect_uri", "varchar(1024)").addColumn("created_at", "varchar(255)", (e) => e.notNull()).addColumn("expires_at", "varchar(255)", (e) => e.notNull()).addColumn("used_at", "varchar(255)").execute();
|
|
9311
9324
|
}
|
|
9312
|
-
async function
|
|
9325
|
+
async function Nl(t) {
|
|
9313
9326
|
await t.schema.dropTable("authentication_codes").execute();
|
|
9314
9327
|
}
|
|
9315
|
-
const
|
|
9328
|
+
const kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9316
9329
|
__proto__: null,
|
|
9317
|
-
down:
|
|
9330
|
+
down: Nl,
|
|
9318
9331
|
up: xl
|
|
9319
9332
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
9320
9333
|
async function Tl(t) {
|
|
@@ -9540,7 +9553,7 @@ const wu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9540
9553
|
async function xu(t) {
|
|
9541
9554
|
await t.schema.dropTable("otps").execute(), await t.schema.dropTable("authentication_codes").execute();
|
|
9542
9555
|
}
|
|
9543
|
-
async function
|
|
9556
|
+
async function Nu(t) {
|
|
9544
9557
|
await t.schema.alterTable("keys").addColumn("private_key", "varchar(2048)").addColumn("public_key", "varchar(2048)").execute(), await t.schema.createTable("otps").addColumn(
|
|
9545
9558
|
"tenant_id",
|
|
9546
9559
|
"varchar(255)",
|
|
@@ -9559,9 +9572,9 @@ async function ku(t) {
|
|
|
9559
9572
|
(e) => e.references("applications.id").onDelete("cascade").notNull()
|
|
9560
9573
|
).addColumn("user_id", "varchar(255)", (e) => e.notNull()).addColumn("nonce", "varchar(255)").addColumn("state", "varchar(8192)").addColumn("scope", "varchar(1024)").addColumn("response_type", "varchar(256)").addColumn("response_mode", "varchar(256)").addColumn("redirect_uri", "varchar(1024)").addColumn("created_at", "varchar(255)", (e) => e.notNull()).addColumn("expires_at", "varchar(255)", (e) => e.notNull()).addColumn("used_at", "varchar(255)").execute();
|
|
9561
9574
|
}
|
|
9562
|
-
const
|
|
9575
|
+
const ku = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9563
9576
|
__proto__: null,
|
|
9564
|
-
down:
|
|
9577
|
+
down: Nu,
|
|
9565
9578
|
up: xu
|
|
9566
9579
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
9567
9580
|
async function Tu(t) {
|
|
@@ -9686,7 +9699,7 @@ const Hu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9686
9699
|
n15_userEmailIndex: fc,
|
|
9687
9700
|
n16_userLocale: yc,
|
|
9688
9701
|
n17_signingKeys: wc,
|
|
9689
|
-
n18_logsFields:
|
|
9702
|
+
n18_logsFields: kc,
|
|
9690
9703
|
n19_connectionsUserinfo: Oc,
|
|
9691
9704
|
n20_missingFields: Ic,
|
|
9692
9705
|
n21_sessionDeletedAt: $c,
|
|
@@ -9704,7 +9717,7 @@ const Hu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9704
9717
|
n33_vendorIdInUniversalLoginSession: fl,
|
|
9705
9718
|
n34_auth0ClientInUniversalLoginSession: yl,
|
|
9706
9719
|
n35_increaseUniversalSessionStateLength: wl,
|
|
9707
|
-
n36_authenticationCodes:
|
|
9720
|
+
n36_authenticationCodes: kl,
|
|
9708
9721
|
n37_disableSignUps: Ol,
|
|
9709
9722
|
n38_otpIpAddress: Il,
|
|
9710
9723
|
n39_increaseUserAgentLength: $l,
|
|
@@ -9722,7 +9735,7 @@ const Hu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9722
9735
|
n51_connectionid: fu,
|
|
9723
9736
|
n52_cert: yu,
|
|
9724
9737
|
n53_codes_primary_key: wu,
|
|
9725
|
-
n54_cleanup_tables:
|
|
9738
|
+
n54_cleanup_tables: ku,
|
|
9726
9739
|
n55_logs_index: Ou,
|
|
9727
9740
|
n56_application_fields: Iu,
|
|
9728
9741
|
n57_prompt_settings: $u,
|