@authhero/adapter-interfaces 0.10.3 → 0.10.5

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.
@@ -10,7 +10,7 @@ function pt(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
  }
13
- function F(t, e) {
13
+ function J(t, e) {
14
14
  const n = t.ZodType.prototype[e];
15
15
  t.ZodType.prototype[e] = function(...s) {
16
16
  const a = n.apply(this, s);
@@ -28,18 +28,18 @@ function ht(t) {
28
28
  if (pt(this, "ZodObject")) {
29
29
  const dt = this.extend;
30
30
  ze.extend = function(...lt) {
31
- var Se, Te, je, Oe, Ee, Ce;
32
- const Ze = dt.apply(this, lt);
33
- return Ze._def.openapi = {
31
+ var Se, Te, Ee, Ce, Oe, je;
32
+ const Ie = dt.apply(this, lt);
33
+ return Ie._def.openapi = {
34
34
  _internal: {
35
- extendedFrom: !((Te = (Se = this._def.openapi) === null || Se === void 0 ? void 0 : Se._internal) === null || Te === void 0) && Te.refId ? { refId: (Oe = (je = this._def.openapi) === null || je === void 0 ? void 0 : je._internal) === null || Oe === void 0 ? void 0 : Oe.refId, schema: this } : (Ee = this._def.openapi) === null || Ee === void 0 ? void 0 : Ee._internal.extendedFrom
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
36
36
  },
37
- metadata: (Ce = Ze._def.openapi) === null || Ce === void 0 ? void 0 : Ce.metadata
38
- }, Ze;
37
+ metadata: (je = Ie._def.openapi) === null || je === void 0 ? void 0 : je.metadata
38
+ }, Ie;
39
39
  };
40
40
  }
41
41
  return ze;
42
- }, F(t, "optional"), F(t, "nullable"), F(t, "default"), F(t, "transform"), F(t, "refine");
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() {
45
45
  const a = this._def.shape(), i = e.apply(this), o = i._def.shape();
@@ -96,14 +96,14 @@ var b;
96
96
  }
97
97
  t.joinValues = s, t.jsonStringifyReplacer = (a, i) => typeof i == "bigint" ? i.toString() : i;
98
98
  })(b || (b = {}));
99
- var Ie;
99
+ var Ze;
100
100
  (function(t) {
101
101
  t.mergeShapes = (e, n) => ({
102
102
  ...e,
103
103
  ...n
104
104
  // second overwrites first
105
105
  });
106
- })(Ie || (Ie = {}));
106
+ })(Ze || (Ze = {}));
107
107
  const h = b.arrayToEnum([
108
108
  "string",
109
109
  "nan",
@@ -224,7 +224,7 @@ class T extends Error {
224
224
  }
225
225
  }
226
226
  T.create = (t) => new T(t);
227
- const K = (t, e) => {
227
+ const F = (t, e) => {
228
228
  let n;
229
229
  switch (t.code) {
230
230
  case d.invalid_type:
@@ -280,12 +280,12 @@ const K = (t, e) => {
280
280
  }
281
281
  return { message: n };
282
282
  };
283
- let qe = K;
283
+ let Ge = F;
284
284
  function mt(t) {
285
- qe = t;
285
+ Ge = t;
286
286
  }
287
287
  function me() {
288
- return qe;
288
+ return Ge;
289
289
  }
290
290
  const _e = (t) => {
291
291
  const { data: e, path: n, errorMaps: s, issueData: a } = t, i = [...n, ...a.path || []], o = {
@@ -317,7 +317,7 @@ function p(t, e) {
317
317
  t.common.contextualErrorMap,
318
318
  t.schemaErrorMap,
319
319
  n,
320
- n === K ? void 0 : K
320
+ n === F ? void 0 : F
321
321
  // then global default map
322
322
  ].filter((a) => !!a)
323
323
  });
@@ -366,12 +366,12 @@ class w {
366
366
  }
367
367
  const g = Object.freeze({
368
368
  status: "aborted"
369
- }), G = (t) => ({ status: "dirty", value: t }), S = (t) => ({ status: "valid", value: t }), Re = (t) => t.status === "aborted", Ae = (t) => t.status === "dirty", ee = (t) => t.status === "valid", te = (t) => typeof Promise < "u" && t instanceof Promise;
369
+ }), H = (t) => ({ status: "dirty", value: t }), S = (t) => ({ status: "valid", value: t }), Re = (t) => t.status === "aborted", Ae = (t) => t.status === "dirty", ee = (t) => t.status === "valid", te = (t) => typeof Promise < "u" && t instanceof Promise;
370
370
  function ge(t, e, n, s) {
371
371
  if (typeof e == "function" ? t !== e || !s : !e.has(t)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
372
372
  return e.get(t);
373
373
  }
374
- function Ge(t, e, n, s, a) {
374
+ function He(t, e, n, s, a) {
375
375
  if (typeof e == "function" ? t !== e || !a : !e.has(t)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
376
376
  return e.set(t, n), n;
377
377
  }
@@ -379,8 +379,8 @@ var f;
379
379
  (function(t) {
380
380
  t.errToObj = (e) => typeof e == "string" ? { message: e } : e || {}, t.toString = (e) => typeof e == "string" ? e : e == null ? void 0 : e.message;
381
381
  })(f || (f = {}));
382
- var X, Q;
383
- class Z {
382
+ var Q, X;
383
+ class I {
384
384
  constructor(e, n, s, a) {
385
385
  this._cachedPath = [], this.parent = e, this.data = n, this._path = s, this._key = a;
386
386
  }
@@ -515,7 +515,7 @@ class v {
515
515
  return this._refinement((s, a) => e(s) ? !0 : (a.addIssue(typeof n == "function" ? n(s, a) : n), !1));
516
516
  }
517
517
  _refinement(e) {
518
- return new E({
518
+ return new O({
519
519
  schema: this,
520
520
  typeName: _.ZodEffects,
521
521
  effect: { type: "refinement", refinement: e }
@@ -525,19 +525,19 @@ class v {
525
525
  return this._refinement(e);
526
526
  }
527
527
  optional() {
528
- return C.create(this, this._def);
528
+ return j.create(this, this._def);
529
529
  }
530
530
  nullable() {
531
- return D.create(this, this._def);
531
+ return $.create(this, this._def);
532
532
  }
533
533
  nullish() {
534
534
  return this.nullable().optional();
535
535
  }
536
536
  array() {
537
- return O.create(this, this._def);
537
+ return C.create(this, this._def);
538
538
  }
539
539
  promise() {
540
- return J.create(this, this._def);
540
+ return Y.create(this, this._def);
541
541
  }
542
542
  or(e) {
543
543
  return ae.create([this, e], this._def);
@@ -546,7 +546,7 @@ class v {
546
546
  return ie.create(this, e, this._def);
547
547
  }
548
548
  transform(e) {
549
- return new E({
549
+ return new O({
550
550
  ...y(this._def),
551
551
  schema: this,
552
552
  typeName: _.ZodEffects,
@@ -600,23 +600,23 @@ class v {
600
600
  }
601
601
  const gt = /^c[^\s-]{8,}$/i, yt = /^[0-9a-z]+$/, vt = /^[0-9A-HJKMNP-TV-Z]{26}$/, bt = /^[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, kt = /^[a-z0-9_-]{21}$/i, xt = /^[-+]?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)?)??$/, wt = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, St = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
602
602
  let Ne;
603
- const Tt = /^(?:(?: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])$/, jt = /^(([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}=))?$/, He = "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", Et = new RegExp(`^${He}$`);
604
- function Ke(t) {
603
+ const Tt = /^(?:(?: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])$/, Et = /^(([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})))$/, Ct = /^([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])))", Ot = new RegExp(`^${qe}$`);
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 Ct(t) {
609
- return new RegExp(`^${Ke(t)}$`);
608
+ function jt(t) {
609
+ return new RegExp(`^${Fe(t)}$`);
610
610
  }
611
- function Ye(t) {
612
- let e = `${He}T${Ke(t)}`;
611
+ function Ke(t) {
612
+ let e = `${qe}T${Fe(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 Zt(t, e) {
617
- return !!((e === "v4" || !e) && Tt.test(t) || (e === "v6" || !e) && jt.test(t));
616
+ function It(t, e) {
617
+ return !!((e === "v4" || !e) && Tt.test(t) || (e === "v6" || !e) && Et.test(t));
618
618
  }
619
- class j extends v {
619
+ class E extends v {
620
620
  _parse(e) {
621
621
  if (this._def.coerce && (e.data = String(e.data)), this._getType(e) !== h.string) {
622
622
  const i = this._getOrReturnCtx(e);
@@ -732,15 +732,15 @@ class j extends v {
732
732
  code: d.invalid_string,
733
733
  validation: { endsWith: i.value },
734
734
  message: i.message
735
- }), s.dirty()) : i.kind === "datetime" ? Ye(i).test(e.data) || (a = this._getOrReturnCtx(e, a), p(a, {
735
+ }), s.dirty()) : i.kind === "datetime" ? Ke(i).test(e.data) || (a = this._getOrReturnCtx(e, a), p(a, {
736
736
  code: d.invalid_string,
737
737
  validation: "datetime",
738
738
  message: i.message
739
- }), s.dirty()) : i.kind === "date" ? Et.test(e.data) || (a = this._getOrReturnCtx(e, a), p(a, {
739
+ }), s.dirty()) : i.kind === "date" ? Ot.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" ? Ct(i).test(e.data) || (a = this._getOrReturnCtx(e, a), p(a, {
743
+ }), s.dirty()) : i.kind === "time" ? jt(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
@@ -748,11 +748,11 @@ class j extends v {
748
748
  validation: "duration",
749
749
  code: d.invalid_string,
750
750
  message: i.message
751
- }), s.dirty()) : i.kind === "ip" ? Zt(e.data, i.version) || (a = this._getOrReturnCtx(e, a), p(a, {
751
+ }), s.dirty()) : i.kind === "ip" ? It(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" ? Ot.test(e.data) || (a = this._getOrReturnCtx(e, a), p(a, {
755
+ }), s.dirty()) : i.kind === "base64" ? Ct.test(e.data) || (a = this._getOrReturnCtx(e, a), p(a, {
756
756
  validation: "base64",
757
757
  code: d.invalid_string,
758
758
  message: i.message
@@ -767,7 +767,7 @@ class j extends v {
767
767
  });
768
768
  }
769
769
  _addCheck(e) {
770
- return new j({
770
+ return new E({
771
771
  ...this._def,
772
772
  checks: [...this._def.checks, e]
773
773
  });
@@ -893,19 +893,19 @@ class j extends v {
893
893
  return this.min(1, f.errToObj(e));
894
894
  }
895
895
  trim() {
896
- return new j({
896
+ return new E({
897
897
  ...this._def,
898
898
  checks: [...this._def.checks, { kind: "trim" }]
899
899
  });
900
900
  }
901
901
  toLowerCase() {
902
- return new j({
902
+ return new E({
903
903
  ...this._def,
904
904
  checks: [...this._def.checks, { kind: "toLowerCase" }]
905
905
  });
906
906
  }
907
907
  toUpperCase() {
908
- return new j({
908
+ return new E({
909
909
  ...this._def,
910
910
  checks: [...this._def.checks, { kind: "toUpperCase" }]
911
911
  });
@@ -965,9 +965,9 @@ class j extends v {
965
965
  return e;
966
966
  }
967
967
  }
968
- j.create = (t) => {
968
+ E.create = (t) => {
969
969
  var e;
970
- return new j({
970
+ return new E({
971
971
  checks: [],
972
972
  typeName: _.ZodString,
973
973
  coerce: (e = t == null ? void 0 : t.coerce) !== null && e !== void 0 ? e : !1,
@@ -1425,7 +1425,7 @@ se.create = (t) => new se({
1425
1425
  typeName: _.ZodNull,
1426
1426
  ...y(t)
1427
1427
  });
1428
- class Y extends v {
1428
+ class K extends v {
1429
1429
  constructor() {
1430
1430
  super(...arguments), this._any = !0;
1431
1431
  }
@@ -1433,7 +1433,7 @@ class Y extends v {
1433
1433
  return S(e.data);
1434
1434
  }
1435
1435
  }
1436
- Y.create = (t) => new Y({
1436
+ K.create = (t) => new K({
1437
1437
  typeName: _.ZodAny,
1438
1438
  ...y(t)
1439
1439
  });
@@ -1480,7 +1480,7 @@ ve.create = (t) => new ve({
1480
1480
  typeName: _.ZodVoid,
1481
1481
  ...y(t)
1482
1482
  });
1483
- class O extends v {
1483
+ class C extends v {
1484
1484
  _parse(e) {
1485
1485
  const { ctx: n, status: s } = this._processInputParams(e), a = this._def;
1486
1486
  if (n.parsedType !== h.array)
@@ -1516,27 +1516,27 @@ class O extends v {
1516
1516
  exact: !1,
1517
1517
  message: a.maxLength.message
1518
1518
  }), s.dirty()), n.common.async)
1519
- return Promise.all([...n.data].map((o, c) => a.type._parseAsync(new Z(n, o, n.path, c)))).then((o) => w.mergeArray(s, o));
1520
- const i = [...n.data].map((o, c) => a.type._parseSync(new Z(n, o, n.path, c)));
1519
+ return Promise.all([...n.data].map((o, c) => a.type._parseAsync(new I(n, o, n.path, c)))).then((o) => w.mergeArray(s, o));
1520
+ const i = [...n.data].map((o, c) => a.type._parseSync(new I(n, o, n.path, c)));
1521
1521
  return w.mergeArray(s, i);
1522
1522
  }
1523
1523
  get element() {
1524
1524
  return this._def.type;
1525
1525
  }
1526
1526
  min(e, n) {
1527
- return new O({
1527
+ return new C({
1528
1528
  ...this._def,
1529
1529
  minLength: { value: e, message: f.toString(n) }
1530
1530
  });
1531
1531
  }
1532
1532
  max(e, n) {
1533
- return new O({
1533
+ return new C({
1534
1534
  ...this._def,
1535
1535
  maxLength: { value: e, message: f.toString(n) }
1536
1536
  });
1537
1537
  }
1538
1538
  length(e, n) {
1539
- return new O({
1539
+ return new C({
1540
1540
  ...this._def,
1541
1541
  exactLength: { value: e, message: f.toString(n) }
1542
1542
  });
@@ -1545,7 +1545,7 @@ class O extends v {
1545
1545
  return this.min(1, e);
1546
1546
  }
1547
1547
  }
1548
- O.create = (t, e) => new O({
1548
+ C.create = (t, e) => new C({
1549
1549
  type: t,
1550
1550
  minLength: null,
1551
1551
  maxLength: null,
@@ -1553,21 +1553,21 @@ O.create = (t, e) => new O({
1553
1553
  typeName: _.ZodArray,
1554
1554
  ...y(e)
1555
1555
  });
1556
- function q(t) {
1556
+ function G(t) {
1557
1557
  if (t instanceof k) {
1558
1558
  const e = {};
1559
1559
  for (const n in t.shape) {
1560
1560
  const s = t.shape[n];
1561
- e[n] = C.create(q(s));
1561
+ e[n] = j.create(G(s));
1562
1562
  }
1563
1563
  return new k({
1564
1564
  ...t._def,
1565
1565
  shape: () => e
1566
1566
  });
1567
- } else return t instanceof O ? new O({
1567
+ } else return t instanceof C ? new C({
1568
1568
  ...t._def,
1569
- type: q(t.element)
1570
- }) : t instanceof C ? C.create(q(t.unwrap())) : t instanceof D ? D.create(q(t.unwrap())) : t instanceof N ? N.create(t.items.map((e) => q(e))) : t;
1569
+ type: G(t.element)
1570
+ }) : t instanceof j ? j.create(G(t.unwrap())) : t instanceof $ ? $.create(G(t.unwrap())) : t instanceof N ? N.create(t.items.map((e) => G(e))) : t;
1571
1571
  }
1572
1572
  class k extends v {
1573
1573
  constructor() {
@@ -1597,7 +1597,7 @@ class k extends v {
1597
1597
  const m = i[l], x = a.data[l];
1598
1598
  u.push({
1599
1599
  key: { status: "valid", value: l },
1600
- value: m._parse(new Z(a, x, a.path, l)),
1600
+ value: m._parse(new I(a, x, a.path, l)),
1601
1601
  alwaysSet: l in a.data
1602
1602
  });
1603
1603
  }
@@ -1622,7 +1622,7 @@ class k extends v {
1622
1622
  u.push({
1623
1623
  key: { status: "valid", value: m },
1624
1624
  value: l._parse(
1625
- new Z(a, x, a.path, m)
1625
+ new I(a, x, a.path, m)
1626
1626
  //, ctx.child(key), value, getParsedType(value)
1627
1627
  ),
1628
1628
  alwaysSet: m in a.data
@@ -1803,7 +1803,7 @@ class k extends v {
1803
1803
  * @deprecated
1804
1804
  */
1805
1805
  deepPartial() {
1806
- return q(this);
1806
+ return G(this);
1807
1807
  }
1808
1808
  partial(e) {
1809
1809
  const n = {};
@@ -1822,7 +1822,7 @@ class k extends v {
1822
1822
  n[s] = this.shape[s];
1823
1823
  else {
1824
1824
  let i = this.shape[s];
1825
- for (; i instanceof C; )
1825
+ for (; i instanceof j; )
1826
1826
  i = i._def.innerType;
1827
1827
  n[s] = i;
1828
1828
  }
@@ -1832,7 +1832,7 @@ class k extends v {
1832
1832
  });
1833
1833
  }
1834
1834
  keyof() {
1835
- return Je(b.objectKeys(this.shape));
1835
+ return Ye(b.objectKeys(this.shape));
1836
1836
  }
1837
1837
  }
1838
1838
  k.create = (t, e) => new k({
@@ -1929,7 +1929,7 @@ ae.create = (t, e) => new ae({
1929
1929
  typeName: _.ZodUnion,
1930
1930
  ...y(e)
1931
1931
  });
1932
- const I = (t) => t instanceof ce ? I(t.schema) : t instanceof E ? I(t.innerType()) : t instanceof de ? [t.value] : t instanceof $ ? t.options : t instanceof le ? b.objectValues(t.enum) : t instanceof ue ? I(t._def.innerType) : t instanceof re ? [void 0] : t instanceof se ? [null] : t instanceof C ? [void 0, ...I(t.unwrap())] : t instanceof D ? [null, ...I(t.unwrap())] : t instanceof Me || t instanceof he ? I(t.unwrap()) : t instanceof pe ? I(t._def.innerType) : [];
1932
+ const Z = (t) => t instanceof ce ? Z(t.schema) : t instanceof O ? Z(t.innerType()) : t instanceof de ? [t.value] : t instanceof D ? t.options : t instanceof le ? b.objectValues(t.enum) : t instanceof ue ? Z(t._def.innerType) : t instanceof re ? [void 0] : t instanceof se ? [null] : t instanceof j ? [void 0, ...Z(t.unwrap())] : t instanceof $ ? [null, ...Z(t.unwrap())] : t instanceof Me || t instanceof he ? Z(t.unwrap()) : t instanceof pe ? Z(t._def.innerType) : [];
1933
1933
  class xe extends v {
1934
1934
  _parse(e) {
1935
1935
  const { ctx: n } = this._processInputParams(e);
@@ -1974,7 +1974,7 @@ class xe extends v {
1974
1974
  static create(e, n, s) {
1975
1975
  const a = /* @__PURE__ */ new Map();
1976
1976
  for (const i of n) {
1977
- const o = I(i.shape[e]);
1977
+ const o = Z(i.shape[e]);
1978
1978
  if (!o.length)
1979
1979
  throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);
1980
1980
  for (const c of o) {
@@ -2082,7 +2082,7 @@ class N extends v {
2082
2082
  }), n.dirty());
2083
2083
  const i = [...s.data].map((o, c) => {
2084
2084
  const u = this._def.items[c] || this._def.rest;
2085
- return u ? u._parse(new Z(s, o, s.path, c)) : null;
2085
+ return u ? u._parse(new I(s, o, s.path, c)) : null;
2086
2086
  }).filter((o) => !!o);
2087
2087
  return s.common.async ? Promise.all(i).then((o) => w.mergeArray(n, o)) : w.mergeArray(n, i);
2088
2088
  }
@@ -2124,8 +2124,8 @@ class oe extends v {
2124
2124
  const a = [], i = this._def.keyType, o = this._def.valueType;
2125
2125
  for (const c in s.data)
2126
2126
  a.push({
2127
- key: i._parse(new Z(s, c, s.path, c)),
2128
- value: o._parse(new Z(s, s.data[c], s.path, c)),
2127
+ key: i._parse(new I(s, c, s.path, c)),
2128
+ value: o._parse(new I(s, s.data[c], s.path, c)),
2129
2129
  alwaysSet: c in s.data
2130
2130
  });
2131
2131
  return s.common.async ? w.mergeObjectAsync(n, a) : w.mergeObjectSync(n, a);
@@ -2140,7 +2140,7 @@ class oe extends v {
2140
2140
  typeName: _.ZodRecord,
2141
2141
  ...y(s)
2142
2142
  }) : new oe({
2143
- keyType: j.create(),
2143
+ keyType: E.create(),
2144
2144
  valueType: e,
2145
2145
  typeName: _.ZodRecord,
2146
2146
  ...y(n)
@@ -2163,8 +2163,8 @@ class be extends v {
2163
2163
  received: s.parsedType
2164
2164
  }), g;
2165
2165
  const a = this._def.keyType, i = this._def.valueType, o = [...s.data.entries()].map(([c, u], l) => ({
2166
- key: a._parse(new Z(s, c, s.path, [l, "key"])),
2167
- value: i._parse(new Z(s, u, s.path, [l, "value"]))
2166
+ key: a._parse(new I(s, c, s.path, [l, "key"])),
2167
+ value: i._parse(new I(s, u, s.path, [l, "value"]))
2168
2168
  }));
2169
2169
  if (s.common.async) {
2170
2170
  const c = /* @__PURE__ */ new Map();
@@ -2230,7 +2230,7 @@ class L extends v {
2230
2230
  }
2231
2231
  return { status: n.value, value: l };
2232
2232
  }
2233
- const c = [...s.data.values()].map((u, l) => i._parse(new Z(s, u, s.path, l)));
2233
+ const c = [...s.data.values()].map((u, l) => i._parse(new I(s, u, s.path, l)));
2234
2234
  return s.common.async ? Promise.all(c).then((u) => o(u)) : o(c);
2235
2235
  }
2236
2236
  min(e, n) {
@@ -2259,7 +2259,7 @@ L.create = (t, e) => new L({
2259
2259
  typeName: _.ZodSet,
2260
2260
  ...y(e)
2261
2261
  });
2262
- class H extends v {
2262
+ class q extends v {
2263
2263
  constructor() {
2264
2264
  super(...arguments), this.validate = this.implement;
2265
2265
  }
@@ -2279,7 +2279,7 @@ class H extends v {
2279
2279
  n.common.contextualErrorMap,
2280
2280
  n.schemaErrorMap,
2281
2281
  me(),
2282
- K
2282
+ F
2283
2283
  ].filter((l) => !!l),
2284
2284
  issueData: {
2285
2285
  code: d.invalid_arguments,
@@ -2295,7 +2295,7 @@ class H extends v {
2295
2295
  n.common.contextualErrorMap,
2296
2296
  n.schemaErrorMap,
2297
2297
  me(),
2298
- K
2298
+ F
2299
2299
  ].filter((l) => !!l),
2300
2300
  issueData: {
2301
2301
  code: d.invalid_return_type,
@@ -2304,7 +2304,7 @@ class H extends v {
2304
2304
  });
2305
2305
  }
2306
2306
  const i = { errorMap: n.common.contextualErrorMap }, o = n.data;
2307
- if (this._def.returns instanceof J) {
2307
+ if (this._def.returns instanceof Y) {
2308
2308
  const c = this;
2309
2309
  return S(async function(...u) {
2310
2310
  const l = new T([]), m = await c._def.args.parseAsync(u, i).catch((B) => {
@@ -2334,13 +2334,13 @@ class H extends v {
2334
2334
  return this._def.returns;
2335
2335
  }
2336
2336
  args(...e) {
2337
- return new H({
2337
+ return new q({
2338
2338
  ...this._def,
2339
2339
  args: N.create(e).rest(U.create())
2340
2340
  });
2341
2341
  }
2342
2342
  returns(e) {
2343
- return new H({
2343
+ return new q({
2344
2344
  ...this._def,
2345
2345
  returns: e
2346
2346
  });
@@ -2352,7 +2352,7 @@ class H extends v {
2352
2352
  return this.parse(e);
2353
2353
  }
2354
2354
  static create(e, n, s) {
2355
- return new H({
2355
+ return new q({
2356
2356
  args: e || N.create([]).rest(U.create()),
2357
2357
  returns: n || U.create(),
2358
2358
  typeName: _.ZodFunction,
@@ -2395,16 +2395,16 @@ de.create = (t, e) => new de({
2395
2395
  typeName: _.ZodLiteral,
2396
2396
  ...y(e)
2397
2397
  });
2398
- function Je(t, e) {
2399
- return new $({
2398
+ function Ye(t, e) {
2399
+ return new D({
2400
2400
  values: t,
2401
2401
  typeName: _.ZodEnum,
2402
2402
  ...y(e)
2403
2403
  });
2404
2404
  }
2405
- class $ extends v {
2405
+ class D extends v {
2406
2406
  constructor() {
2407
- super(...arguments), X.set(this, void 0);
2407
+ super(...arguments), Q.set(this, void 0);
2408
2408
  }
2409
2409
  _parse(e) {
2410
2410
  if (typeof e.data != "string") {
@@ -2415,7 +2415,7 @@ class $ extends v {
2415
2415
  code: d.invalid_type
2416
2416
  }), g;
2417
2417
  }
2418
- if (ge(this, X) || Ge(this, X, new Set(this._def.values)), !ge(this, X).has(e.data)) {
2418
+ if (ge(this, Q) || He(this, Q, new Set(this._def.values)), !ge(this, Q).has(e.data)) {
2419
2419
  const n = this._getOrReturnCtx(e), s = this._def.values;
2420
2420
  return p(n, {
2421
2421
  received: n.data,
@@ -2447,23 +2447,23 @@ class $ extends v {
2447
2447
  return e;
2448
2448
  }
2449
2449
  extract(e, n = this._def) {
2450
- return $.create(e, {
2450
+ return D.create(e, {
2451
2451
  ...this._def,
2452
2452
  ...n
2453
2453
  });
2454
2454
  }
2455
2455
  exclude(e, n = this._def) {
2456
- return $.create(this.options.filter((s) => !e.includes(s)), {
2456
+ return D.create(this.options.filter((s) => !e.includes(s)), {
2457
2457
  ...this._def,
2458
2458
  ...n
2459
2459
  });
2460
2460
  }
2461
2461
  }
2462
- X = /* @__PURE__ */ new WeakMap();
2463
- $.create = Je;
2462
+ Q = /* @__PURE__ */ new WeakMap();
2463
+ D.create = Ye;
2464
2464
  class le extends v {
2465
2465
  constructor() {
2466
- super(...arguments), Q.set(this, void 0);
2466
+ super(...arguments), X.set(this, void 0);
2467
2467
  }
2468
2468
  _parse(e) {
2469
2469
  const n = b.getValidEnumValues(this._def.values), s = this._getOrReturnCtx(e);
@@ -2475,7 +2475,7 @@ class le extends v {
2475
2475
  code: d.invalid_type
2476
2476
  }), g;
2477
2477
  }
2478
- if (ge(this, Q) || Ge(this, Q, new Set(b.getValidEnumValues(this._def.values))), !ge(this, Q).has(e.data)) {
2478
+ if (ge(this, X) || He(this, X, new Set(b.getValidEnumValues(this._def.values))), !ge(this, X).has(e.data)) {
2479
2479
  const a = b.objectValues(n);
2480
2480
  return p(s, {
2481
2481
  received: s.data,
@@ -2489,13 +2489,13 @@ class le extends v {
2489
2489
  return this._def.values;
2490
2490
  }
2491
2491
  }
2492
- Q = /* @__PURE__ */ new WeakMap();
2492
+ X = /* @__PURE__ */ new WeakMap();
2493
2493
  le.create = (t, e) => new le({
2494
2494
  values: t,
2495
2495
  typeName: _.ZodNativeEnum,
2496
2496
  ...y(e)
2497
2497
  });
2498
- class J extends v {
2498
+ class Y extends v {
2499
2499
  unwrap() {
2500
2500
  return this._def.type;
2501
2501
  }
@@ -2514,12 +2514,12 @@ class J extends v {
2514
2514
  })));
2515
2515
  }
2516
2516
  }
2517
- J.create = (t, e) => new J({
2517
+ Y.create = (t, e) => new Y({
2518
2518
  type: t,
2519
2519
  typeName: _.ZodPromise,
2520
2520
  ...y(e)
2521
2521
  });
2522
- class E extends v {
2522
+ class O extends v {
2523
2523
  innerType() {
2524
2524
  return this._def.schema;
2525
2525
  }
@@ -2546,7 +2546,7 @@ class E extends v {
2546
2546
  path: s.path,
2547
2547
  parent: s
2548
2548
  });
2549
- return u.status === "aborted" ? g : u.status === "dirty" || n.value === "dirty" ? G(u.value) : u;
2549
+ return u.status === "aborted" ? g : u.status === "dirty" || n.value === "dirty" ? H(u.value) : u;
2550
2550
  });
2551
2551
  {
2552
2552
  if (n.value === "aborted")
@@ -2556,7 +2556,7 @@ class E extends v {
2556
2556
  path: s.path,
2557
2557
  parent: s
2558
2558
  });
2559
- return c.status === "aborted" ? g : c.status === "dirty" || n.value === "dirty" ? G(c.value) : c;
2559
+ return c.status === "aborted" ? g : c.status === "dirty" || n.value === "dirty" ? H(c.value) : c;
2560
2560
  }
2561
2561
  }
2562
2562
  if (a.type === "refinement") {
@@ -2596,19 +2596,19 @@ class E extends v {
2596
2596
  b.assertNever(a);
2597
2597
  }
2598
2598
  }
2599
- E.create = (t, e, n) => new E({
2599
+ O.create = (t, e, n) => new O({
2600
2600
  schema: t,
2601
2601
  typeName: _.ZodEffects,
2602
2602
  effect: e,
2603
2603
  ...y(n)
2604
2604
  });
2605
- E.createWithPreprocess = (t, e, n) => new E({
2605
+ O.createWithPreprocess = (t, e, n) => new O({
2606
2606
  schema: e,
2607
2607
  effect: { type: "preprocess", transform: t },
2608
2608
  typeName: _.ZodEffects,
2609
2609
  ...y(n)
2610
2610
  });
2611
- class C extends v {
2611
+ class j extends v {
2612
2612
  _parse(e) {
2613
2613
  return this._getType(e) === h.undefined ? S(void 0) : this._def.innerType._parse(e);
2614
2614
  }
@@ -2616,12 +2616,12 @@ class C extends v {
2616
2616
  return this._def.innerType;
2617
2617
  }
2618
2618
  }
2619
- C.create = (t, e) => new C({
2619
+ j.create = (t, e) => new j({
2620
2620
  innerType: t,
2621
2621
  typeName: _.ZodOptional,
2622
2622
  ...y(e)
2623
2623
  });
2624
- class D extends v {
2624
+ class $ extends v {
2625
2625
  _parse(e) {
2626
2626
  return this._getType(e) === h.null ? S(null) : this._def.innerType._parse(e);
2627
2627
  }
@@ -2629,7 +2629,7 @@ class D extends v {
2629
2629
  return this._def.innerType;
2630
2630
  }
2631
2631
  }
2632
- D.create = (t, e) => new D({
2632
+ $.create = (t, e) => new $({
2633
2633
  innerType: t,
2634
2634
  typeName: _.ZodNullable,
2635
2635
  ...y(e)
@@ -2714,7 +2714,7 @@ ke.create = (t) => new ke({
2714
2714
  typeName: _.ZodNaN,
2715
2715
  ...y(t)
2716
2716
  });
2717
- const It = Symbol("zod_brand");
2717
+ const Zt = Symbol("zod_brand");
2718
2718
  class Me extends v {
2719
2719
  _parse(e) {
2720
2720
  const { ctx: n } = this._processInputParams(e), s = n.data;
@@ -2738,7 +2738,7 @@ class fe extends v {
2738
2738
  path: s.path,
2739
2739
  parent: s
2740
2740
  });
2741
- return i.status === "aborted" ? g : i.status === "dirty" ? (n.dirty(), G(i.value)) : this._def.out._parseAsync({
2741
+ return i.status === "aborted" ? g : i.status === "dirty" ? (n.dirty(), H(i.value)) : this._def.out._parseAsync({
2742
2742
  data: i.value,
2743
2743
  path: s.path,
2744
2744
  parent: s
@@ -2782,14 +2782,14 @@ he.create = (t, e) => new he({
2782
2782
  typeName: _.ZodReadonly,
2783
2783
  ...y(e)
2784
2784
  });
2785
- function Fe(t, e = {}, n) {
2786
- return t ? Y.create().superRefine((s, a) => {
2785
+ function Je(t, e = {}, n) {
2786
+ return t ? K.create().superRefine((s, a) => {
2787
2787
  var i, o;
2788
2788
  if (!t(s)) {
2789
2789
  const c = typeof e == "function" ? e(s) : typeof e == "string" ? { message: e } : e, u = (o = (i = c.fatal) !== null && i !== void 0 ? i : n) !== null && o !== void 0 ? o : !0, l = typeof c == "string" ? { message: c } : c;
2790
2790
  a.addIssue({ code: "custom", ...l, fatal: u });
2791
2791
  }
2792
- }) : Y.create();
2792
+ }) : K.create();
2793
2793
  }
2794
2794
  const Rt = {
2795
2795
  object: k.lazycreate
@@ -2800,8 +2800,8 @@ var _;
2800
2800
  })(_ || (_ = {}));
2801
2801
  const At = (t, e = {
2802
2802
  message: `Input not instance of ${t.name}`
2803
- }) => Fe((n) => n instanceof t, e), Xe = j.create, Qe = P.create, Pt = ke.create, Mt = M.create, et = ne.create, $t = V.create, Dt = ye.create, Ut = re.create, Vt = se.create, Lt = Y.create, zt = U.create, Bt = R.create, Wt = ve.create, qt = O.create, Gt = k.create, Ht = k.strictCreate, Kt = ae.create, Yt = xe.create, Jt = ie.create, Ft = N.create, Xt = oe.create, Qt = be.create, en = L.create, tn = H.create, nn = ce.create, rn = de.create, sn = $.create, an = le.create, on = J.create, We = E.create, cn = C.create, dn = D.create, ln = E.createWithPreprocess, un = fe.create, pn = () => Xe().optional(), hn = () => Qe().optional(), fn = () => et().optional(), mn = {
2804
- string: (t) => j.create({ ...t, coerce: !0 }),
2803
+ }) => Je((n) => n instanceof t, e), Qe = E.create, Xe = P.create, Pt = ke.create, Mt = M.create, et = ne.create, Dt = V.create, $t = ye.create, Ut = re.create, Vt = se.create, Lt = K.create, zt = U.create, Bt = R.create, Wt = ve.create, Gt = C.create, Ht = k.create, qt = k.strictCreate, Ft = ae.create, Kt = xe.create, Yt = ie.create, Jt = N.create, Qt = oe.create, Xt = be.create, en = L.create, tn = q.create, nn = ce.create, rn = de.create, sn = D.create, an = le.create, on = Y.create, We = O.create, cn = j.create, dn = $.create, ln = O.createWithPreprocess, un = fe.create, pn = () => Qe().optional(), hn = () => Xe().optional(), fn = () => et().optional(), mn = {
2804
+ string: (t) => E.create({ ...t, coerce: !0 }),
2805
2805
  number: (t) => P.create({ ...t, coerce: !0 }),
2806
2806
  boolean: (t) => ne.create({
2807
2807
  ...t,
@@ -2812,7 +2812,7 @@ const At = (t, e = {
2812
2812
  }, _n = g;
2813
2813
  var r = /* @__PURE__ */ Object.freeze({
2814
2814
  __proto__: null,
2815
- defaultErrorMap: K,
2815
+ defaultErrorMap: F,
2816
2816
  setErrorMap: mt,
2817
2817
  getErrorMap: me,
2818
2818
  makeIssue: _e,
@@ -2820,7 +2820,7 @@ var r = /* @__PURE__ */ Object.freeze({
2820
2820
  addIssueToContext: p,
2821
2821
  ParseStatus: w,
2822
2822
  INVALID: g,
2823
- DIRTY: G,
2823
+ DIRTY: H,
2824
2824
  OK: S,
2825
2825
  isAborted: Re,
2826
2826
  isDirty: Ae,
@@ -2830,13 +2830,13 @@ var r = /* @__PURE__ */ Object.freeze({
2830
2830
  return b;
2831
2831
  },
2832
2832
  get objectUtil() {
2833
- return Ie;
2833
+ return Ze;
2834
2834
  },
2835
2835
  ZodParsedType: h,
2836
2836
  getParsedType: A,
2837
2837
  ZodType: v,
2838
- datetimeRegex: Ye,
2839
- ZodString: j,
2838
+ datetimeRegex: Ke,
2839
+ ZodString: E,
2840
2840
  ZodNumber: P,
2841
2841
  ZodBigInt: M,
2842
2842
  ZodBoolean: ne,
@@ -2844,11 +2844,11 @@ var r = /* @__PURE__ */ Object.freeze({
2844
2844
  ZodSymbol: ye,
2845
2845
  ZodUndefined: re,
2846
2846
  ZodNull: se,
2847
- ZodAny: Y,
2847
+ ZodAny: K,
2848
2848
  ZodUnknown: U,
2849
2849
  ZodNever: R,
2850
2850
  ZodVoid: ve,
2851
- ZodArray: O,
2851
+ ZodArray: C,
2852
2852
  ZodObject: k,
2853
2853
  ZodUnion: ae,
2854
2854
  ZodDiscriminatedUnion: xe,
@@ -2857,24 +2857,24 @@ var r = /* @__PURE__ */ Object.freeze({
2857
2857
  ZodRecord: oe,
2858
2858
  ZodMap: be,
2859
2859
  ZodSet: L,
2860
- ZodFunction: H,
2860
+ ZodFunction: q,
2861
2861
  ZodLazy: ce,
2862
2862
  ZodLiteral: de,
2863
- ZodEnum: $,
2863
+ ZodEnum: D,
2864
2864
  ZodNativeEnum: le,
2865
- ZodPromise: J,
2866
- ZodEffects: E,
2867
- ZodTransformer: E,
2868
- ZodOptional: C,
2869
- ZodNullable: D,
2865
+ ZodPromise: Y,
2866
+ ZodEffects: O,
2867
+ ZodTransformer: O,
2868
+ ZodOptional: j,
2869
+ ZodNullable: $,
2870
2870
  ZodDefault: ue,
2871
2871
  ZodCatch: pe,
2872
2872
  ZodNaN: ke,
2873
- BRAND: It,
2873
+ BRAND: Zt,
2874
2874
  ZodBranded: Me,
2875
2875
  ZodPipeline: fe,
2876
2876
  ZodReadonly: he,
2877
- custom: Fe,
2877
+ custom: Je,
2878
2878
  Schema: v,
2879
2879
  ZodSchema: v,
2880
2880
  late: Rt,
@@ -2883,26 +2883,26 @@ var r = /* @__PURE__ */ Object.freeze({
2883
2883
  },
2884
2884
  coerce: mn,
2885
2885
  any: Lt,
2886
- array: qt,
2886
+ array: Gt,
2887
2887
  bigint: Mt,
2888
2888
  boolean: et,
2889
- date: $t,
2890
- discriminatedUnion: Yt,
2889
+ date: Dt,
2890
+ discriminatedUnion: Kt,
2891
2891
  effect: We,
2892
2892
  enum: sn,
2893
2893
  function: tn,
2894
2894
  instanceof: At,
2895
- intersection: Jt,
2895
+ intersection: Yt,
2896
2896
  lazy: nn,
2897
2897
  literal: rn,
2898
- map: Qt,
2898
+ map: Xt,
2899
2899
  nan: Pt,
2900
2900
  nativeEnum: an,
2901
2901
  never: Bt,
2902
2902
  null: Vt,
2903
2903
  nullable: dn,
2904
- number: Qe,
2905
- object: Gt,
2904
+ number: Xe,
2905
+ object: Ht,
2906
2906
  oboolean: fn,
2907
2907
  onumber: hn,
2908
2908
  optional: cn,
@@ -2910,15 +2910,15 @@ var r = /* @__PURE__ */ Object.freeze({
2910
2910
  pipeline: un,
2911
2911
  preprocess: ln,
2912
2912
  promise: on,
2913
- record: Xt,
2913
+ record: Qt,
2914
2914
  set: en,
2915
- strictObject: Ht,
2916
- string: Xe,
2917
- symbol: Dt,
2915
+ strictObject: qt,
2916
+ string: Qe,
2917
+ symbol: $t,
2918
2918
  transformer: We,
2919
- tuple: Ft,
2919
+ tuple: Jt,
2920
2920
  undefined: Ut,
2921
- union: Kt,
2921
+ union: Ft,
2922
2922
  unknown: zt,
2923
2923
  void: Wt,
2924
2924
  NEVER: _n,
@@ -2927,11 +2927,11 @@ var r = /* @__PURE__ */ Object.freeze({
2927
2927
  ZodError: T
2928
2928
  });
2929
2929
  ht(r);
2930
- const qn = r.object({
2930
+ const Gn = r.object({
2931
2931
  start: r.number(),
2932
2932
  limit: r.number(),
2933
2933
  length: r.number()
2934
- }), $e = r.object({
2934
+ }), De = r.object({
2935
2935
  created_at: r.string(),
2936
2936
  updated_at: r.string()
2937
2937
  }), gn = r.object({
@@ -2972,14 +2972,14 @@ const qn = r.object({
2972
2972
  user_id: r.string().optional(),
2973
2973
  provider: r.string().default("email"),
2974
2974
  connection: r.string().default("email")
2975
- }), bn = vn.extend($e.shape).extend({
2975
+ }), bn = vn.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
2981
  identities: r.array(yn).optional()
2982
- }), Gn = bn, Hn = tt.extend({
2982
+ }), Hn = bn, qn = tt.extend({
2983
2983
  email: r.string(),
2984
2984
  login_count: r.number(),
2985
2985
  multifactor: r.array(r.string()).optional(),
@@ -2995,7 +2995,7 @@ const qn = r.object({
2995
2995
  email_validation: r.enum(["enabled", "disabled", "enforced"]).default("enforced"),
2996
2996
  client_secret: r.string().default(""),
2997
2997
  disable_sign_ups: r.boolean().default(!1)
2998
- }), Kn = r.object({
2998
+ }), Fn = r.object({
2999
2999
  created_at: r.string().transform((t) => t === null ? "" : t),
3000
3000
  updated_at: r.string().transform((t) => t === null ? "" : t)
3001
3001
  }).extend(kn.shape);
@@ -3013,7 +3013,7 @@ const we = r.object({
3013
3013
  code_challenge_method: r.nativeEnum(st).optional(),
3014
3014
  code_challenge: r.string().optional(),
3015
3015
  username: r.string().optional()
3016
- }), Yn = r.object({
3016
+ }), Kn = r.object({
3017
3017
  colors: r.object({
3018
3018
  primary: r.string(),
3019
3019
  page_background: r.object({
@@ -3079,9 +3079,9 @@ const we = r.object({
3079
3079
  support_url: r.string().optional(),
3080
3080
  language: r.string().length(2).optional()
3081
3081
  })
3082
- }), Jn = it.extend({
3082
+ }), Yn = it.extend({
3083
3083
  connections: r.array(at)
3084
- }), Fn = it.extend({
3084
+ }), Jn = it.extend({
3085
3085
  connections: r.array(at.partial())
3086
3086
  }), Sn = r.enum([
3087
3087
  "password_reset",
@@ -3100,29 +3100,33 @@ const we = r.object({
3100
3100
  code_type: Sn,
3101
3101
  expires_at: r.string(),
3102
3102
  used_at: r.string().optional()
3103
- }), Xn = r.object({
3103
+ }), Qn = r.object({
3104
3104
  ...Tn.shape,
3105
3105
  created_at: r.string()
3106
- }), jn = r.object({
3106
+ }), En = r.object({
3107
3107
  domain: r.string(),
3108
3108
  dkim_private_key: r.string().optional(),
3109
3109
  dkim_public_key: r.string().optional(),
3110
3110
  email_api_key: r.string().optional(),
3111
3111
  email_service: r.enum(["mailgun", "mailchannels"])
3112
- }), Qn = $e.extend({
3113
- ...jn.shape,
3112
+ }), Xn = De.extend({
3113
+ ...En.shape,
3114
3114
  id: r.string()
3115
- }), On = r.object({
3116
- trigger_id: r.enum(["post-user-registration", "post-user-login"]),
3115
+ }), Cn = r.object({
3116
+ trigger_id: r.enum([
3117
+ "pre-user-signup",
3118
+ "post-user-registration",
3119
+ "post-user-login"
3120
+ ]),
3117
3121
  enabled: r.boolean().default(!1),
3118
3122
  url: r.string(),
3119
3123
  hook_id: r.string().optional(),
3120
3124
  synchronous: r.boolean().default(!1),
3121
3125
  priority: r.number().optional()
3122
- }), er = On.extend({
3123
- ...$e.shape,
3126
+ }), er = Cn.extend({
3127
+ ...De.shape,
3124
3128
  hook_id: r.string()
3125
- }), En = r.object({
3129
+ }), On = r.object({
3126
3130
  alg: r.string(),
3127
3131
  e: r.string(),
3128
3132
  kid: r.string(),
@@ -3130,7 +3134,7 @@ const we = r.object({
3130
3134
  n: r.string(),
3131
3135
  use: r.string().optional()
3132
3136
  }), tr = r.object({
3133
- keys: r.array(En)
3137
+ keys: r.array(On)
3134
3138
  }), nr = r.object({
3135
3139
  issuer: r.string(),
3136
3140
  authorization_endpoint: r.string(),
@@ -3152,7 +3156,7 @@ const we = r.object({
3152
3156
  request_uri_parameter_supported: r.boolean(),
3153
3157
  request_parameter_supported: r.boolean(),
3154
3158
  token_endpoint_auth_signing_alg_values_supported: r.array(r.string())
3155
- }), Cn = r.object({
3159
+ }), jn = r.object({
3156
3160
  auth0Client: r.string().optional(),
3157
3161
  authParams: we,
3158
3162
  expires_at: r.string(),
@@ -3161,47 +3165,64 @@ const we = r.object({
3161
3165
  }).openapi({
3162
3166
  description: "This represents a login sesion"
3163
3167
  }), rr = r.object({
3164
- ...Cn.shape,
3168
+ ...jn.shape,
3165
3169
  login_id: r.string().openapi({
3166
3170
  description: "This is is used as the state in the universal login"
3167
3171
  }),
3168
3172
  created_at: r.string(),
3169
3173
  updated_at: r.string()
3170
3174
  });
3171
- var Zn = /* @__PURE__ */ ((t) => (t.SUCCESS_API_OPERATION = "sapi", t.SUCCESS_SILENT_AUTH = "ssa", t.FAILED_SILENT_AUTH = "fsa", t.SUCCESS_SIGNUP = "ss", t.FAILED_SIGNUP = "fs", t.SUCCESS_LOGIN = "s", t.FAILED_LOGIN = "f", t.FAILED_LOGIN_INCORRECT_PASSWORD = "fp", t.SUCCESS_LOGOUT = "slo", t.SUCCESS_CROSS_ORIGIN_AUTHENTICATION = "scoa", t.FAILED_CROSS_ORIGIN_AUTHENTICATION = "fcoa", t.SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN = "seacft", t.SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN = "serft", t.CODE_LINK_SENT = "cls", t.NOT_IMPLEMENTED_1 = "seccft", t))(Zn || {});
3175
+ var In = /* @__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))(In || {});
3172
3176
  const Nn = r.enum([
3173
- "sapi",
3174
- // SUCCESS_API_OPERATION
3175
- "ssa",
3176
- // SUCCESS_SILENT_AUTH - omitted for brevity and since it's clear from context
3177
+ "cls",
3178
+ // CODE_LINK_SENT
3177
3179
  "fsa",
3178
3180
  // FAILED_SILENT_AUTH
3179
- "ss",
3180
- // SUCCESS_SIGNUP
3181
- "ssa",
3182
- /// SUCCESS_SILENT_AUTH
3183
3181
  "fs",
3184
- "s",
3185
- // SUCCESS_LOGIN
3182
+ // FAILED_SIGNUP
3186
3183
  "f",
3187
3184
  // FAILED_LOGIN
3185
+ "fc",
3186
+ // FAILED_BY_CONNECTOR
3187
+ "fcoa",
3188
+ // FAILED_CROSS_ORIGIN_AUTHENTICATION
3189
+ "fcp",
3190
+ // FAILED_CHANGE_PASSWORD
3191
+ "fh",
3192
+ // FAILED_HOOK
3188
3193
  "fp",
3189
3194
  // FAILED_LOGIN_INCORRECT_PASSWORD
3190
- // FAILED_LOGIN_INVALID_EMAIL_USERNAME = "fu", - we don't have this in the logs yet
3191
- "slo",
3192
- // SUCCESS_LOGOUT
3195
+ "fs",
3196
+ // FAILED_SIGNUP
3197
+ "fu",
3198
+ // FAILED_LOGIN_INVALID_EMAIL_USERNAME
3199
+ "s",
3200
+ // SUCCESS_LOGIN
3201
+ "sapi",
3202
+ // SUCCESS_API_OPERATION
3193
3203
  "scoa",
3194
3204
  // SUCCESS_CROSS_ORIGIN_AUTHENTICATION
3195
- "fcoa",
3196
- // FAILED_CROSS_ORIGIN_AUTHENTICATION
3197
- "seccft",
3198
- // NOT_IMPLEMENTED_1 - not implemented - just for completion as we do get this in our latest auth0 logs
3199
- "cls",
3200
- // NOT_IMPLEMENTED_2
3205
+ "scp",
3206
+ // SUCCESS_CHANGE_PASSWORD
3207
+ "scpr",
3208
+ // SUCCESS_CHANGE_PASSWORD_REQUEST
3209
+ "scu",
3210
+ // SUCCESS_CHANGE_USERNAME
3201
3211
  "seacft",
3202
3212
  // SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN
3203
- "serft"
3204
- ]), In = r.object({
3213
+ "serft",
3214
+ // SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN
3215
+ "slo",
3216
+ // SUCCESS_LOGOUT
3217
+ "ss",
3218
+ // SUCCESS_SIGNUP
3219
+ "ssa",
3220
+ // SUCCESS_SILENT_AUTH,
3221
+ "sv",
3222
+ // SUCCESS_VERIFICATION_EMAIL
3223
+ "svr"
3224
+ // SUCCESS_VERIFICATION_EMAIL_REQUEST
3225
+ ]), Zn = r.object({
3205
3226
  name: r.string(),
3206
3227
  version: r.string(),
3207
3228
  env: r.object({
@@ -3229,7 +3250,7 @@ const Nn = r.enum([
3229
3250
  strategy: r.string().optional(),
3230
3251
  strategy_type: r.string().optional(),
3231
3252
  hostname: r.string().optional(),
3232
- auth0_client: In.optional()
3253
+ auth0_client: Zn.optional()
3233
3254
  }), Rn = r.object({
3234
3255
  user_id: r.string(),
3235
3256
  password: r.string(),
@@ -3305,8 +3326,8 @@ const Nn = r.enum([
3305
3326
  manageSubscriptionsUrl: r.string().optional()
3306
3327
  });
3307
3328
  var ot = /* @__PURE__ */ ((t) => (t.RefreshToken = "refresh_token", t.AuthorizationCode = "authorization_code", t.ClientCredential = "client_credentials", t.Passwordless = "passwordless", t.Password = "password", t))(ot || {});
3308
- const De = r.nativeEnum(ot), ur = r.object({
3309
- grant_type: De.refine(
3329
+ const $e = r.nativeEnum(ot), ur = r.object({
3330
+ grant_type: $e.refine(
3310
3331
  (t) => t === "authorization_code"
3311
3332
  /* AuthorizationCode */
3312
3333
  ),
@@ -3314,7 +3335,7 @@ const De = r.nativeEnum(ot), ur = r.object({
3314
3335
  client_secret: r.string(),
3315
3336
  client_id: r.string()
3316
3337
  }), pr = r.object({
3317
- grant_type: De.refine(
3338
+ grant_type: $e.refine(
3318
3339
  (t) => t === "authorization_code"
3319
3340
  /* AuthorizationCode */
3320
3341
  ),
@@ -3323,7 +3344,7 @@ const De = r.nativeEnum(ot), ur = r.object({
3323
3344
  client_id: r.string().optional(),
3324
3345
  redirect_uri: r.string()
3325
3346
  }), hr = r.object({
3326
- grant_type: De.refine(
3347
+ grant_type: $e.refine(
3327
3348
  (t) => t === "client_credentials"
3328
3349
  /* ClientCredential */
3329
3350
  ),
@@ -3355,7 +3376,7 @@ const Mn = r.object({
3355
3376
  show_widget_shadow: r.boolean(),
3356
3377
  widget_border_weight: r.number(),
3357
3378
  widget_corner_radius: r.number()
3358
- }), $n = r.object({
3379
+ }), Dn = r.object({
3359
3380
  base_focus_color: r.string(),
3360
3381
  base_hover_color: r.string(),
3361
3382
  body_text: r.string(),
@@ -3378,7 +3399,7 @@ const Mn = r.object({
3378
3399
  }), W = r.object({
3379
3400
  bold: r.boolean(),
3380
3401
  size: r.number()
3381
- }), Dn = r.object({
3402
+ }), $n = r.object({
3382
3403
  body_text: W,
3383
3404
  buttons_text: W,
3384
3405
  font_url: r.string(),
@@ -3400,9 +3421,9 @@ const Mn = r.object({
3400
3421
  social_buttons_layout: r.enum(["bottom"])
3401
3422
  }), Ln = r.object({
3402
3423
  borders: Mn,
3403
- colors: $n,
3424
+ colors: Dn,
3404
3425
  displayName: r.string(),
3405
- fonts: Dn,
3426
+ fonts: $n,
3406
3427
  page_background: Un,
3407
3428
  widget: Vn
3408
3429
  }), fr = Ln.extend({
@@ -3447,43 +3468,43 @@ function yr(t) {
3447
3468
  return { connection: e, id: n };
3448
3469
  }
3449
3470
  export {
3450
- In as Auth0Client,
3471
+ Zn as Auth0Client,
3451
3472
  rt as AuthorizationResponseMode,
3452
3473
  nt as AuthorizationResponseType,
3453
- Jn as ClientSchema,
3474
+ Yn as ClientSchema,
3454
3475
  st as CodeChallengeMethod,
3455
3476
  ot as GrantType,
3456
- Zn as LogTypes,
3457
- Fn as PartialClientSchema,
3477
+ In as LogTypes,
3478
+ Jn as PartialClientSchema,
3458
3479
  kn as applicationInsertSchema,
3459
- Kn as applicationSchema,
3460
- Gn as auth0UserResponseSchema,
3480
+ Fn as applicationSchema,
3481
+ Hn as auth0UserResponseSchema,
3461
3482
  we as authParamsSchema,
3462
3483
  Wn as authenticationCodeInsertSchema,
3463
3484
  gr as authenticationCodeSchema,
3464
3485
  ur as authorizationCodeGrantTypeParamsSchema,
3465
3486
  tt as baseUserSchema,
3466
3487
  Mn as bordersSchema,
3467
- Yn as brandingSchema,
3488
+ Kn as brandingSchema,
3468
3489
  or as certificateSchema,
3469
3490
  hr as clientCredentialGrantTypeParamsSchema,
3470
3491
  Tn as codeInsertSchema,
3471
- Xn as codeSchema,
3492
+ Qn as codeSchema,
3472
3493
  Sn as codeTypeSchema,
3473
- $n as colorsSchema,
3494
+ Dn as colorsSchema,
3474
3495
  xn as connectionInsertSchema,
3475
3496
  at as connectionSchema,
3476
- jn as domainInsertSchema,
3477
- Qn as domainSchema,
3497
+ En as domainInsertSchema,
3498
+ Xn as domainSchema,
3478
3499
  W as fontDetailsSchema,
3479
- Dn as fontsSchema,
3480
- On as hookInsertSchema,
3500
+ $n as fontsSchema,
3501
+ Cn as hookInsertSchema,
3481
3502
  er as hookSchema,
3482
3503
  yn as identitySchema,
3483
3504
  tr as jwksKeySchema,
3484
- En as jwksSchema,
3505
+ On as jwksSchema,
3485
3506
  sr as logSchema,
3486
- Cn as loginInsertSchema,
3507
+ jn as loginInsertSchema,
3487
3508
  rr as loginSchema,
3488
3509
  nr as openIDConfigurationSchema,
3489
3510
  Bn as otpInsertSchema,
@@ -3501,11 +3522,11 @@ export {
3501
3522
  dr as tenantSchema,
3502
3523
  Ln as themeInsertSchema,
3503
3524
  fr as themeSchema,
3504
- qn as totalsSchema,
3525
+ Gn as totalsSchema,
3505
3526
  zn as universalLoginSessionInsertSchema,
3506
3527
  mr as universalLoginSessionSchema,
3507
3528
  vn as userInsertSchema,
3508
- Hn as userResponseSchema,
3529
+ qn as userResponseSchema,
3509
3530
  bn as userSchema,
3510
3531
  lr as vendorSettingsSchema,
3511
3532
  Vn as widgetSchema