@authhero/kysely-adapter 0.5.2 → 0.5.4

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.
@@ -1,11 +1,11 @@
1
1
  var Hn = Object.defineProperty;
2
2
  var Yn = (n, e, t) => e in n ? Hn(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
- var Ht = (n, e, t) => Yn(n, typeof e != "symbol" ? e + "" : e, t);
3
+ var Yt = (n, e, t) => Yn(n, typeof e != "symbol" ? e + "" : e, t);
4
4
  var Nt = class extends Error {
5
5
  constructor(e = 500, t) {
6
6
  super(t == null ? void 0 : t.message, { cause: t == null ? void 0 : t.cause });
7
- Ht(this, "res");
8
- Ht(this, "status");
7
+ Yt(this, "res");
8
+ Yt(this, "status");
9
9
  this.res = t == null ? void 0 : t.res, this.status = e;
10
10
  }
11
11
  getResponse() {
@@ -75,10 +75,10 @@ function tr(n) {
75
75
  param: Object.assign(Object.assign({}, (T = (l = this._def.openapi) === null || l === void 0 ? void 0 : l.metadata) === null || T === void 0 ? void 0 : T.param), Q)
76
76
  } : void 0), ue = new this.constructor(Object.assign(Object.assign({}, this._def), { openapi: Object.assign(Object.assign({}, Object.keys(ce).length > 0 ? { _internal: ce } : void 0), Object.keys(de).length > 0 ? { metadata: de } : void 0) }));
77
77
  if (er(this, "ZodObject")) {
78
- const Re = this.extend;
79
- ue.extend = function(...$e) {
78
+ const $e = this.extend;
79
+ ue.extend = function(...Pe) {
80
80
  var J, H, Y, le, Te, Oe;
81
- const Se = Re.apply(this, $e);
81
+ const Se = $e.apply(this, Pe);
82
82
  return Se._def.openapi = {
83
83
  _internal: {
84
84
  extendedFrom: !((H = (J = this._def.openapi) === null || J === void 0 ? void 0 : J._internal) === null || H === void 0) && H.refId ? { refId: (le = (Y = this._def.openapi) === null || Y === void 0 ? void 0 : Y._internal) === null || le === void 0 ? void 0 : le.refId, schema: this } : (Te = this._def.openapi) === null || Te === void 0 ? void 0 : Te._internal.extendedFrom
@@ -145,14 +145,14 @@ var I;
145
145
  }
146
146
  n.joinValues = r, n.jsonStringifyReplacer = (s, a) => typeof a == "bigint" ? a.toString() : a;
147
147
  })(I || (I = {}));
148
- var en;
148
+ var tn;
149
149
  (function(n) {
150
150
  n.mergeShapes = (e, t) => ({
151
151
  ...e,
152
152
  ...t
153
153
  // second overwrites first
154
154
  });
155
- })(en || (en = {}));
155
+ })(tn || (tn = {}));
156
156
  const _ = I.arrayToEnum([
157
157
  "string",
158
158
  "nan",
@@ -273,7 +273,7 @@ class V extends Error {
273
273
  }
274
274
  }
275
275
  V.create = (n) => new V(n);
276
- const Fe = (n, e) => {
276
+ const ze = (n, e) => {
277
277
  let t;
278
278
  switch (n.code) {
279
279
  case p.invalid_type:
@@ -329,14 +329,14 @@ const Fe = (n, e) => {
329
329
  }
330
330
  return { message: t };
331
331
  };
332
- let xn = Fe;
332
+ let xn = ze;
333
333
  function rr(n) {
334
334
  xn = n;
335
335
  }
336
- function Et() {
336
+ function At() {
337
337
  return xn;
338
338
  }
339
- const At = (n) => {
339
+ const Rt = (n) => {
340
340
  const { data: e, path: t, errorMaps: r, issueData: s } = n, a = [...t, ...s.path || []], o = {
341
341
  ...s,
342
342
  path: a
@@ -358,7 +358,7 @@ const At = (n) => {
358
358
  };
359
359
  }, sr = [];
360
360
  function f(n, e) {
361
- const t = Et(), r = At({
361
+ const t = At(), r = Rt({
362
362
  issueData: e,
363
363
  data: n.data,
364
364
  path: n.path,
@@ -366,7 +366,7 @@ function f(n, e) {
366
366
  n.common.contextualErrorMap,
367
367
  n.schemaErrorMap,
368
368
  t,
369
- t === Fe ? void 0 : Fe
369
+ t === ze ? void 0 : ze
370
370
  // then global default map
371
371
  ].filter((s) => !!s)
372
372
  });
@@ -415,8 +415,8 @@ class $ {
415
415
  }
416
416
  const b = Object.freeze({
417
417
  status: "aborted"
418
- }), Rt = (n) => ({ status: "dirty", value: n }), D = (n) => ({ status: "valid", value: n }), tn = (n) => n.status === "aborted", nn = (n) => n.status === "dirty", tt = (n) => n.status === "valid", nt = (n) => typeof Promise < "u" && n instanceof Promise;
419
- function $t(n, e, t, r) {
418
+ }), $t = (n) => ({ status: "dirty", value: n }), D = (n) => ({ status: "valid", value: n }), nn = (n) => n.status === "aborted", rn = (n) => n.status === "dirty", tt = (n) => n.status === "valid", nt = (n) => typeof Promise < "u" && n instanceof Promise;
419
+ function Pt(n, e, t, r) {
420
420
  if (typeof e == "function" ? n !== e || !r : !e.has(n)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
421
421
  return e.get(n);
422
422
  }
@@ -586,7 +586,7 @@ class Z {
586
586
  return B.create(this, this._def);
587
587
  }
588
588
  promise() {
589
- return Be.create(this, this._def);
589
+ return qe.create(this, this._def);
590
590
  }
591
591
  or(e) {
592
592
  return it.create([this, e], this._def);
@@ -612,7 +612,7 @@ class Z {
612
612
  });
613
613
  }
614
614
  brand() {
615
- return new dn({
615
+ return new un({
616
616
  typeName: w.ZodBranded,
617
617
  type: this,
618
618
  ...O(this._def)
@@ -648,7 +648,7 @@ class Z {
648
648
  }
649
649
  }
650
650
  const ar = /^c[^\s-]{8,}$/i, ir = /^[0-9a-z]+$/, or = /^[0-9A-HJKMNP-TV-Z]{26}$/, cr = /^[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, dr = /^[a-z0-9_-]{21}$/i, ur = /^[-+]?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)?)??$/, lr = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, pr = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
651
- let Yt;
651
+ let Gt;
652
652
  const hr = /^(?:(?: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])$/, fr = /^(([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})))$/, mr = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, Tn = "((\\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])))", _r = new RegExp(`^${Tn}$`);
653
653
  function On(n) {
654
654
  let e = "([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";
@@ -720,7 +720,7 @@ class F extends Z {
720
720
  message: s.message
721
721
  }), t.dirty());
722
722
  else if (s.kind === "emoji")
723
- Yt || (Yt = new RegExp(pr, "u")), Yt.test(e.data) || (r = this._getOrReturnCtx(e, r), f(r, {
723
+ Gt || (Gt = new RegExp(pr, "u")), Gt.test(e.data) || (r = this._getOrReturnCtx(e, r), f(r, {
724
724
  validation: "emoji",
725
725
  code: p.invalid_string,
726
726
  message: s.message
@@ -1423,7 +1423,7 @@ Ie.create = (n) => new Ie({
1423
1423
  typeName: w.ZodDate,
1424
1424
  ...O(n)
1425
1425
  });
1426
- class Pt extends Z {
1426
+ class Dt extends Z {
1427
1427
  _parse(e) {
1428
1428
  if (this._getType(e) !== _.symbol) {
1429
1429
  const t = this._getOrReturnCtx(e);
@@ -1436,7 +1436,7 @@ class Pt extends Z {
1436
1436
  return D(e.data);
1437
1437
  }
1438
1438
  }
1439
- Pt.create = (n) => new Pt({
1439
+ Dt.create = (n) => new Dt({
1440
1440
  typeName: w.ZodSymbol,
1441
1441
  ...O(n)
1442
1442
  });
@@ -1474,7 +1474,7 @@ at.create = (n) => new at({
1474
1474
  typeName: w.ZodNull,
1475
1475
  ...O(n)
1476
1476
  });
1477
- class ze extends Z {
1477
+ class Be extends Z {
1478
1478
  constructor() {
1479
1479
  super(...arguments), this._any = !0;
1480
1480
  }
@@ -1482,7 +1482,7 @@ class ze extends Z {
1482
1482
  return D(e.data);
1483
1483
  }
1484
1484
  }
1485
- ze.create = (n) => new ze({
1485
+ Be.create = (n) => new Be({
1486
1486
  typeName: w.ZodAny,
1487
1487
  ...O(n)
1488
1488
  });
@@ -1512,7 +1512,7 @@ ie.create = (n) => new ie({
1512
1512
  typeName: w.ZodNever,
1513
1513
  ...O(n)
1514
1514
  });
1515
- class Dt extends Z {
1515
+ class Mt extends Z {
1516
1516
  _parse(e) {
1517
1517
  if (this._getType(e) !== _.undefined) {
1518
1518
  const t = this._getOrReturnCtx(e);
@@ -1525,7 +1525,7 @@ class Dt extends Z {
1525
1525
  return D(e.data);
1526
1526
  }
1527
1527
  }
1528
- Dt.create = (n) => new Dt({
1528
+ Mt.create = (n) => new Mt({
1529
1529
  typeName: w.ZodVoid,
1530
1530
  ...O(n)
1531
1531
  });
@@ -1602,23 +1602,23 @@ B.create = (n, e) => new B({
1602
1602
  typeName: w.ZodArray,
1603
1603
  ...O(e)
1604
1604
  });
1605
- function De(n) {
1606
- if (n instanceof N) {
1605
+ function Me(n) {
1606
+ if (n instanceof E) {
1607
1607
  const e = {};
1608
1608
  for (const t in n.shape) {
1609
1609
  const r = n.shape[t];
1610
- e[t] = G.create(De(r));
1610
+ e[t] = G.create(Me(r));
1611
1611
  }
1612
- return new N({
1612
+ return new E({
1613
1613
  ...n._def,
1614
1614
  shape: () => e
1615
1615
  });
1616
1616
  } else return n instanceof B ? new B({
1617
1617
  ...n._def,
1618
- type: De(n.element)
1619
- }) : n instanceof G ? G.create(De(n.unwrap())) : n instanceof ye ? ye.create(De(n.unwrap())) : n instanceof te ? te.create(n.items.map((e) => De(e))) : n;
1618
+ type: Me(n.element)
1619
+ }) : n instanceof G ? G.create(Me(n.unwrap())) : n instanceof ye ? ye.create(Me(n.unwrap())) : n instanceof te ? te.create(n.items.map((e) => Me(e))) : n;
1620
1620
  }
1621
- class N extends Z {
1621
+ class E extends Z {
1622
1622
  constructor() {
1623
1623
  super(...arguments), this._cached = null, this.nonstrict = this.passthrough, this.augment = this.extend;
1624
1624
  }
@@ -1695,7 +1695,7 @@ class N extends Z {
1695
1695
  return this._def.shape();
1696
1696
  }
1697
1697
  strict(e) {
1698
- return y.errToObj, new N({
1698
+ return y.errToObj, new E({
1699
1699
  ...this._def,
1700
1700
  unknownKeys: "strict",
1701
1701
  ...e !== void 0 ? {
@@ -1712,13 +1712,13 @@ class N extends Z {
1712
1712
  });
1713
1713
  }
1714
1714
  strip() {
1715
- return new N({
1715
+ return new E({
1716
1716
  ...this._def,
1717
1717
  unknownKeys: "strip"
1718
1718
  });
1719
1719
  }
1720
1720
  passthrough() {
1721
- return new N({
1721
+ return new E({
1722
1722
  ...this._def,
1723
1723
  unknownKeys: "passthrough"
1724
1724
  });
@@ -1741,7 +1741,7 @@ class N extends Z {
1741
1741
  // }) as any;
1742
1742
  // };
1743
1743
  extend(e) {
1744
- return new N({
1744
+ return new E({
1745
1745
  ...this._def,
1746
1746
  shape: () => ({
1747
1747
  ...this._def.shape(),
@@ -1755,7 +1755,7 @@ class N extends Z {
1755
1755
  * upgrade if you are experiencing issues.
1756
1756
  */
1757
1757
  merge(e) {
1758
- return new N({
1758
+ return new E({
1759
1759
  unknownKeys: e._def.unknownKeys,
1760
1760
  catchall: e._def.catchall,
1761
1761
  shape: () => ({
@@ -1825,7 +1825,7 @@ class N extends Z {
1825
1825
  // return merged;
1826
1826
  // }
1827
1827
  catchall(e) {
1828
- return new N({
1828
+ return new E({
1829
1829
  ...this._def,
1830
1830
  catchall: e
1831
1831
  });
@@ -1834,7 +1834,7 @@ class N extends Z {
1834
1834
  const t = {};
1835
1835
  return I.objectKeys(e).forEach((r) => {
1836
1836
  e[r] && this.shape[r] && (t[r] = this.shape[r]);
1837
- }), new N({
1837
+ }), new E({
1838
1838
  ...this._def,
1839
1839
  shape: () => t
1840
1840
  });
@@ -1843,7 +1843,7 @@ class N extends Z {
1843
1843
  const t = {};
1844
1844
  return I.objectKeys(this.shape).forEach((r) => {
1845
1845
  e[r] || (t[r] = this.shape[r]);
1846
- }), new N({
1846
+ }), new E({
1847
1847
  ...this._def,
1848
1848
  shape: () => t
1849
1849
  });
@@ -1852,14 +1852,14 @@ class N extends Z {
1852
1852
  * @deprecated
1853
1853
  */
1854
1854
  deepPartial() {
1855
- return De(this);
1855
+ return Me(this);
1856
1856
  }
1857
1857
  partial(e) {
1858
1858
  const t = {};
1859
1859
  return I.objectKeys(this.shape).forEach((r) => {
1860
1860
  const s = this.shape[r];
1861
1861
  e && !e[r] ? t[r] = s : t[r] = s.optional();
1862
- }), new N({
1862
+ }), new E({
1863
1863
  ...this._def,
1864
1864
  shape: () => t
1865
1865
  });
@@ -1875,7 +1875,7 @@ class N extends Z {
1875
1875
  s = s._def.innerType;
1876
1876
  t[r] = s;
1877
1877
  }
1878
- }), new N({
1878
+ }), new E({
1879
1879
  ...this._def,
1880
1880
  shape: () => t
1881
1881
  });
@@ -1884,21 +1884,21 @@ class N extends Z {
1884
1884
  return Zn(I.objectKeys(this.shape));
1885
1885
  }
1886
1886
  }
1887
- N.create = (n, e) => new N({
1887
+ E.create = (n, e) => new E({
1888
1888
  shape: () => n,
1889
1889
  unknownKeys: "strip",
1890
1890
  catchall: ie.create(),
1891
1891
  typeName: w.ZodObject,
1892
1892
  ...O(e)
1893
1893
  });
1894
- N.strictCreate = (n, e) => new N({
1894
+ E.strictCreate = (n, e) => new E({
1895
1895
  shape: () => n,
1896
1896
  unknownKeys: "strict",
1897
1897
  catchall: ie.create(),
1898
1898
  typeName: w.ZodObject,
1899
1899
  ...O(e)
1900
1900
  });
1901
- N.lazycreate = (n, e) => new N({
1901
+ E.lazycreate = (n, e) => new E({
1902
1902
  shape: n,
1903
1903
  unknownKeys: "strip",
1904
1904
  catchall: ie.create(),
@@ -1978,8 +1978,8 @@ it.create = (n, e) => new it({
1978
1978
  typeName: w.ZodUnion,
1979
1979
  ...O(e)
1980
1980
  });
1981
- const pe = (n) => n instanceof dt ? pe(n.schema) : n instanceof W ? pe(n.innerType()) : n instanceof ut ? [n.value] : n instanceof ge ? n.options : n instanceof lt ? I.objectValues(n.enum) : n instanceof pt ? pe(n._def.innerType) : n instanceof st ? [void 0] : n instanceof at ? [null] : n instanceof G ? [void 0, ...pe(n.unwrap())] : n instanceof ye ? [null, ...pe(n.unwrap())] : n instanceof dn || n instanceof ft ? pe(n.unwrap()) : n instanceof ht ? pe(n._def.innerType) : [];
1982
- class Kt extends Z {
1981
+ const pe = (n) => n instanceof dt ? pe(n.schema) : n instanceof W ? pe(n.innerType()) : n instanceof ut ? [n.value] : n instanceof ge ? n.options : n instanceof lt ? I.objectValues(n.enum) : n instanceof pt ? pe(n._def.innerType) : n instanceof st ? [void 0] : n instanceof at ? [null] : n instanceof G ? [void 0, ...pe(n.unwrap())] : n instanceof ye ? [null, ...pe(n.unwrap())] : n instanceof un || n instanceof ft ? pe(n.unwrap()) : n instanceof ht ? pe(n._def.innerType) : [];
1982
+ class Qt extends Z {
1983
1983
  _parse(e) {
1984
1984
  const { ctx: t } = this._processInputParams(e);
1985
1985
  if (t.parsedType !== _.object)
@@ -2032,7 +2032,7 @@ class Kt extends Z {
2032
2032
  s.set(c, a);
2033
2033
  }
2034
2034
  }
2035
- return new Kt({
2035
+ return new Qt({
2036
2036
  typeName: w.ZodDiscriminatedUnion,
2037
2037
  discriminator: e,
2038
2038
  options: t,
@@ -2041,14 +2041,14 @@ class Kt extends Z {
2041
2041
  });
2042
2042
  }
2043
2043
  }
2044
- function rn(n, e) {
2044
+ function sn(n, e) {
2045
2045
  const t = he(n), r = he(e);
2046
2046
  if (n === e)
2047
2047
  return { valid: !0, data: n };
2048
2048
  if (t === _.object && r === _.object) {
2049
2049
  const s = I.objectKeys(e), a = I.objectKeys(n).filter((c) => s.indexOf(c) !== -1), o = { ...n, ...e };
2050
2050
  for (const c of a) {
2051
- const d = rn(n[c], e[c]);
2051
+ const d = sn(n[c], e[c]);
2052
2052
  if (!d.valid)
2053
2053
  return { valid: !1 };
2054
2054
  o[c] = d.data;
@@ -2059,7 +2059,7 @@ function rn(n, e) {
2059
2059
  return { valid: !1 };
2060
2060
  const s = [];
2061
2061
  for (let a = 0; a < n.length; a++) {
2062
- const o = n[a], c = e[a], d = rn(o, c);
2062
+ const o = n[a], c = e[a], d = sn(o, c);
2063
2063
  if (!d.valid)
2064
2064
  return { valid: !1 };
2065
2065
  s.push(d.data);
@@ -2070,10 +2070,10 @@ function rn(n, e) {
2070
2070
  class ot extends Z {
2071
2071
  _parse(e) {
2072
2072
  const { status: t, ctx: r } = this._processInputParams(e), s = (a, o) => {
2073
- if (tn(a) || tn(o))
2073
+ if (nn(a) || nn(o))
2074
2074
  return b;
2075
- const c = rn(a.value, o.value);
2076
- return c.valid ? ((nn(a) || nn(o)) && t.dirty(), { status: t.value, value: c.data }) : (f(r, {
2075
+ const c = sn(a.value, o.value);
2076
+ return c.valid ? ((rn(a) || rn(o)) && t.dirty(), { status: t.value, value: c.data }) : (f(r, {
2077
2077
  code: p.invalid_intersection_types
2078
2078
  }), b);
2079
2079
  };
@@ -2196,7 +2196,7 @@ class ct extends Z {
2196
2196
  });
2197
2197
  }
2198
2198
  }
2199
- class Mt extends Z {
2199
+ class Lt extends Z {
2200
2200
  get keySchema() {
2201
2201
  return this._def.keyType;
2202
2202
  }
@@ -2238,7 +2238,7 @@ class Mt extends Z {
2238
2238
  }
2239
2239
  }
2240
2240
  }
2241
- Mt.create = (n, e, t) => new Mt({
2241
+ Lt.create = (n, e, t) => new Lt({
2242
2242
  valueType: e,
2243
2243
  keyType: n,
2244
2244
  typeName: w.ZodMap,
@@ -2308,7 +2308,7 @@ Ce.create = (n, e) => new Ce({
2308
2308
  typeName: w.ZodSet,
2309
2309
  ...O(e)
2310
2310
  });
2311
- class Ve extends Z {
2311
+ class Ue extends Z {
2312
2312
  constructor() {
2313
2313
  super(...arguments), this.validate = this.implement;
2314
2314
  }
@@ -2321,14 +2321,14 @@ class Ve extends Z {
2321
2321
  received: t.parsedType
2322
2322
  }), b;
2323
2323
  function r(c, d) {
2324
- return At({
2324
+ return Rt({
2325
2325
  data: c,
2326
2326
  path: t.path,
2327
2327
  errorMaps: [
2328
2328
  t.common.contextualErrorMap,
2329
2329
  t.schemaErrorMap,
2330
- Et(),
2331
- Fe
2330
+ At(),
2331
+ ze
2332
2332
  ].filter((u) => !!u),
2333
2333
  issueData: {
2334
2334
  code: p.invalid_arguments,
@@ -2337,14 +2337,14 @@ class Ve extends Z {
2337
2337
  });
2338
2338
  }
2339
2339
  function s(c, d) {
2340
- return At({
2340
+ return Rt({
2341
2341
  data: c,
2342
2342
  path: t.path,
2343
2343
  errorMaps: [
2344
2344
  t.common.contextualErrorMap,
2345
2345
  t.schemaErrorMap,
2346
- Et(),
2347
- Fe
2346
+ At(),
2347
+ ze
2348
2348
  ].filter((u) => !!u),
2349
2349
  issueData: {
2350
2350
  code: p.invalid_return_type,
@@ -2353,7 +2353,7 @@ class Ve extends Z {
2353
2353
  });
2354
2354
  }
2355
2355
  const a = { errorMap: t.common.contextualErrorMap }, o = t.data;
2356
- if (this._def.returns instanceof Be) {
2356
+ if (this._def.returns instanceof qe) {
2357
2357
  const c = this;
2358
2358
  return D(async function(...d) {
2359
2359
  const u = new V([]), l = await c._def.args.parseAsync(d, a).catch((A) => {
@@ -2383,13 +2383,13 @@ class Ve extends Z {
2383
2383
  return this._def.returns;
2384
2384
  }
2385
2385
  args(...e) {
2386
- return new Ve({
2386
+ return new Ue({
2387
2387
  ...this._def,
2388
2388
  args: te.create(e).rest(Ze.create())
2389
2389
  });
2390
2390
  }
2391
2391
  returns(e) {
2392
- return new Ve({
2392
+ return new Ue({
2393
2393
  ...this._def,
2394
2394
  returns: e
2395
2395
  });
@@ -2401,7 +2401,7 @@ class Ve extends Z {
2401
2401
  return this.parse(e);
2402
2402
  }
2403
2403
  static create(e, t, r) {
2404
- return new Ve({
2404
+ return new Ue({
2405
2405
  args: e || te.create([]).rest(Ze.create()),
2406
2406
  returns: t || Ze.create(),
2407
2407
  typeName: w.ZodFunction,
@@ -2464,7 +2464,7 @@ class ge extends Z {
2464
2464
  code: p.invalid_type
2465
2465
  }), b;
2466
2466
  }
2467
- if ($t(this, Ye) || bn(this, Ye, new Set(this._def.values)), !$t(this, Ye).has(e.data)) {
2467
+ if (Pt(this, Ye) || bn(this, Ye, new Set(this._def.values)), !Pt(this, Ye).has(e.data)) {
2468
2468
  const t = this._getOrReturnCtx(e), r = this._def.values;
2469
2469
  return f(t, {
2470
2470
  received: t.data,
@@ -2524,7 +2524,7 @@ class lt extends Z {
2524
2524
  code: p.invalid_type
2525
2525
  }), b;
2526
2526
  }
2527
- if ($t(this, Ge) || bn(this, Ge, new Set(I.getValidEnumValues(this._def.values))), !$t(this, Ge).has(e.data)) {
2527
+ if (Pt(this, Ge) || bn(this, Ge, new Set(I.getValidEnumValues(this._def.values))), !Pt(this, Ge).has(e.data)) {
2528
2528
  const s = I.objectValues(t);
2529
2529
  return f(r, {
2530
2530
  received: r.data,
@@ -2544,7 +2544,7 @@ lt.create = (n, e) => new lt({
2544
2544
  typeName: w.ZodNativeEnum,
2545
2545
  ...O(e)
2546
2546
  });
2547
- class Be extends Z {
2547
+ class qe extends Z {
2548
2548
  unwrap() {
2549
2549
  return this._def.type;
2550
2550
  }
@@ -2563,7 +2563,7 @@ class Be extends Z {
2563
2563
  })));
2564
2564
  }
2565
2565
  }
2566
- Be.create = (n, e) => new Be({
2566
+ qe.create = (n, e) => new qe({
2567
2567
  type: n,
2568
2568
  typeName: w.ZodPromise,
2569
2569
  ...O(e)
@@ -2595,7 +2595,7 @@ class W extends Z {
2595
2595
  path: r.path,
2596
2596
  parent: r
2597
2597
  });
2598
- return d.status === "aborted" ? b : d.status === "dirty" || t.value === "dirty" ? Rt(d.value) : d;
2598
+ return d.status === "aborted" ? b : d.status === "dirty" || t.value === "dirty" ? $t(d.value) : d;
2599
2599
  });
2600
2600
  {
2601
2601
  if (t.value === "aborted")
@@ -2605,7 +2605,7 @@ class W extends Z {
2605
2605
  path: r.path,
2606
2606
  parent: r
2607
2607
  });
2608
- return c.status === "aborted" ? b : c.status === "dirty" || t.value === "dirty" ? Rt(c.value) : c;
2608
+ return c.status === "aborted" ? b : c.status === "dirty" || t.value === "dirty" ? $t(c.value) : c;
2609
2609
  }
2610
2610
  }
2611
2611
  if (s.type === "refinement") {
@@ -2746,7 +2746,7 @@ ht.create = (n, e) => new ht({
2746
2746
  catchValue: typeof e.catch == "function" ? e.catch : () => e.catch,
2747
2747
  ...O(e)
2748
2748
  });
2749
- class Lt extends Z {
2749
+ class Vt extends Z {
2750
2750
  _parse(e) {
2751
2751
  if (this._getType(e) !== _.nan) {
2752
2752
  const t = this._getOrReturnCtx(e);
@@ -2759,12 +2759,12 @@ class Lt extends Z {
2759
2759
  return { status: "valid", value: e.data };
2760
2760
  }
2761
2761
  }
2762
- Lt.create = (n) => new Lt({
2762
+ Vt.create = (n) => new Vt({
2763
2763
  typeName: w.ZodNaN,
2764
2764
  ...O(n)
2765
2765
  });
2766
2766
  const wr = Symbol("zod_brand");
2767
- class dn extends Z {
2767
+ class un extends Z {
2768
2768
  _parse(e) {
2769
2769
  const { ctx: t } = this._processInputParams(e), r = t.data;
2770
2770
  return this._def.type._parse({
@@ -2787,7 +2787,7 @@ class It extends Z {
2787
2787
  path: r.path,
2788
2788
  parent: r
2789
2789
  });
2790
- return s.status === "aborted" ? b : s.status === "dirty" ? (t.dirty(), Rt(s.value)) : this._def.out._parseAsync({
2790
+ return s.status === "aborted" ? b : s.status === "dirty" ? (t.dirty(), $t(s.value)) : this._def.out._parseAsync({
2791
2791
  data: s.value,
2792
2792
  path: r.path,
2793
2793
  parent: r
@@ -2832,16 +2832,16 @@ ft.create = (n, e) => new ft({
2832
2832
  ...O(e)
2833
2833
  });
2834
2834
  function jn(n, e = {}, t) {
2835
- return n ? ze.create().superRefine((r, s) => {
2835
+ return n ? Be.create().superRefine((r, s) => {
2836
2836
  var a, o;
2837
2837
  if (!n(r)) {
2838
2838
  const c = typeof e == "function" ? e(r) : typeof e == "string" ? { message: e } : e, d = (o = (a = c.fatal) !== null && a !== void 0 ? a : t) !== null && o !== void 0 ? o : !0, u = typeof c == "string" ? { message: c } : c;
2839
2839
  s.addIssue({ code: "custom", ...u, fatal: d });
2840
2840
  }
2841
- }) : ze.create();
2841
+ }) : Be.create();
2842
2842
  }
2843
2843
  const kr = {
2844
- object: N.lazycreate
2844
+ object: E.lazycreate
2845
2845
  };
2846
2846
  var w;
2847
2847
  (function(n) {
@@ -2849,7 +2849,7 @@ var w;
2849
2849
  })(w || (w = {}));
2850
2850
  const xr = (n, e = {
2851
2851
  message: `Input not instance of ${n.name}`
2852
- }) => jn((t) => t instanceof n, e), In = F.create, Cn = me.create, br = Lt.create, Tr = _e.create, Nn = rt.create, Or = Ie.create, Sr = Pt.create, Zr = st.create, jr = at.create, Ir = ze.create, Cr = Ze.create, Nr = ie.create, Er = Dt.create, Ar = B.create, Rr = N.create, $r = N.strictCreate, Pr = it.create, Dr = Kt.create, Mr = ot.create, Lr = te.create, Vr = ct.create, Ur = Mt.create, Fr = Ce.create, zr = Ve.create, Br = dt.create, qr = ut.create, Wr = ge.create, Kr = lt.create, Qr = Be.create, gn = W.create, Jr = G.create, Hr = ye.create, Yr = W.createWithPreprocess, Gr = It.create, Xr = () => In().optional(), es = () => Cn().optional(), ts = () => Nn().optional(), ns = {
2852
+ }) => jn((t) => t instanceof n, e), In = F.create, Cn = me.create, br = Vt.create, Tr = _e.create, En = rt.create, Or = Ie.create, Sr = Dt.create, Zr = st.create, jr = at.create, Ir = Be.create, Cr = Ze.create, Er = ie.create, Nr = Mt.create, Ar = B.create, Rr = E.create, $r = E.strictCreate, Pr = it.create, Dr = Qt.create, Mr = ot.create, Lr = te.create, Vr = ct.create, Ur = Lt.create, Fr = Ce.create, zr = Ue.create, Br = dt.create, qr = ut.create, Wr = ge.create, Kr = lt.create, Qr = qe.create, gn = W.create, Jr = G.create, Hr = ye.create, Yr = W.createWithPreprocess, Gr = It.create, Xr = () => In().optional(), es = () => Cn().optional(), ts = () => En().optional(), ns = {
2853
2853
  string: (n) => F.create({ ...n, coerce: !0 }),
2854
2854
  number: (n) => me.create({ ...n, coerce: !0 }),
2855
2855
  boolean: (n) => rt.create({
@@ -2861,25 +2861,25 @@ const xr = (n, e = {
2861
2861
  }, rs = b;
2862
2862
  var i = /* @__PURE__ */ Object.freeze({
2863
2863
  __proto__: null,
2864
- defaultErrorMap: Fe,
2864
+ defaultErrorMap: ze,
2865
2865
  setErrorMap: rr,
2866
- getErrorMap: Et,
2867
- makeIssue: At,
2866
+ getErrorMap: At,
2867
+ makeIssue: Rt,
2868
2868
  EMPTY_PATH: sr,
2869
2869
  addIssueToContext: f,
2870
2870
  ParseStatus: $,
2871
2871
  INVALID: b,
2872
- DIRTY: Rt,
2872
+ DIRTY: $t,
2873
2873
  OK: D,
2874
- isAborted: tn,
2875
- isDirty: nn,
2874
+ isAborted: nn,
2875
+ isDirty: rn,
2876
2876
  isValid: tt,
2877
2877
  isAsync: nt,
2878
2878
  get util() {
2879
2879
  return I;
2880
2880
  },
2881
2881
  get objectUtil() {
2882
- return en;
2882
+ return tn;
2883
2883
  },
2884
2884
  ZodParsedType: _,
2885
2885
  getParsedType: he,
@@ -2890,37 +2890,37 @@ var i = /* @__PURE__ */ Object.freeze({
2890
2890
  ZodBigInt: _e,
2891
2891
  ZodBoolean: rt,
2892
2892
  ZodDate: Ie,
2893
- ZodSymbol: Pt,
2893
+ ZodSymbol: Dt,
2894
2894
  ZodUndefined: st,
2895
2895
  ZodNull: at,
2896
- ZodAny: ze,
2896
+ ZodAny: Be,
2897
2897
  ZodUnknown: Ze,
2898
2898
  ZodNever: ie,
2899
- ZodVoid: Dt,
2899
+ ZodVoid: Mt,
2900
2900
  ZodArray: B,
2901
- ZodObject: N,
2901
+ ZodObject: E,
2902
2902
  ZodUnion: it,
2903
- ZodDiscriminatedUnion: Kt,
2903
+ ZodDiscriminatedUnion: Qt,
2904
2904
  ZodIntersection: ot,
2905
2905
  ZodTuple: te,
2906
2906
  ZodRecord: ct,
2907
- ZodMap: Mt,
2907
+ ZodMap: Lt,
2908
2908
  ZodSet: Ce,
2909
- ZodFunction: Ve,
2909
+ ZodFunction: Ue,
2910
2910
  ZodLazy: dt,
2911
2911
  ZodLiteral: ut,
2912
2912
  ZodEnum: ge,
2913
2913
  ZodNativeEnum: lt,
2914
- ZodPromise: Be,
2914
+ ZodPromise: qe,
2915
2915
  ZodEffects: W,
2916
2916
  ZodTransformer: W,
2917
2917
  ZodOptional: G,
2918
2918
  ZodNullable: ye,
2919
2919
  ZodDefault: pt,
2920
2920
  ZodCatch: ht,
2921
- ZodNaN: Lt,
2921
+ ZodNaN: Vt,
2922
2922
  BRAND: wr,
2923
- ZodBranded: dn,
2923
+ ZodBranded: un,
2924
2924
  ZodPipeline: It,
2925
2925
  ZodReadonly: ft,
2926
2926
  custom: jn,
@@ -2934,7 +2934,7 @@ var i = /* @__PURE__ */ Object.freeze({
2934
2934
  any: Ir,
2935
2935
  array: Ar,
2936
2936
  bigint: Tr,
2937
- boolean: Nn,
2937
+ boolean: En,
2938
2938
  date: Or,
2939
2939
  discriminatedUnion: Dr,
2940
2940
  effect: gn,
@@ -2947,7 +2947,7 @@ var i = /* @__PURE__ */ Object.freeze({
2947
2947
  map: Ur,
2948
2948
  nan: br,
2949
2949
  nativeEnum: Kr,
2950
- never: Nr,
2950
+ never: Er,
2951
2951
  null: jr,
2952
2952
  nullable: Hr,
2953
2953
  number: Cn,
@@ -2969,7 +2969,7 @@ var i = /* @__PURE__ */ Object.freeze({
2969
2969
  undefined: Zr,
2970
2970
  union: Pr,
2971
2971
  unknown: Cr,
2972
- void: Er,
2972
+ void: Nr,
2973
2973
  NEVER: rs,
2974
2974
  ZodIssueCode: p,
2975
2975
  quotelessJson: nr,
@@ -2981,7 +2981,7 @@ i.object({
2981
2981
  limit: i.number(),
2982
2982
  length: i.number()
2983
2983
  });
2984
- const un = i.object({
2984
+ const ln = i.object({
2985
2985
  created_at: i.string(),
2986
2986
  updated_at: i.string()
2987
2987
  }), ss = i.object({
@@ -3002,7 +3002,7 @@ const un = i.object({
3002
3002
  access_token_secret: i.string().optional(),
3003
3003
  refresh_token: i.string().optional(),
3004
3004
  profileData: ss.optional()
3005
- }), En = i.object({
3005
+ }), Nn = i.object({
3006
3006
  email: i.string().optional(),
3007
3007
  username: i.string().optional(),
3008
3008
  given_name: i.string().optional(),
@@ -3014,7 +3014,7 @@ const un = i.object({
3014
3014
  linked_to: i.string().optional(),
3015
3015
  profileData: i.string().optional(),
3016
3016
  user_id: i.string().optional()
3017
- }), is = En.extend({
3017
+ }), is = Nn.extend({
3018
3018
  email_verified: i.boolean().default(!1),
3019
3019
  verify_email: i.boolean().optional(),
3020
3020
  last_ip: i.string().optional(),
@@ -3023,7 +3023,7 @@ const un = i.object({
3023
3023
  provider: i.string().default("email"),
3024
3024
  connection: i.string().default("email")
3025
3025
  });
3026
- is.extend(un.shape).extend({
3026
+ is.extend(ln.shape).extend({
3027
3027
  user_id: i.string(),
3028
3028
  // TODO: this not might be correct if you use the username
3029
3029
  email: i.string(),
@@ -3031,7 +3031,7 @@ is.extend(un.shape).extend({
3031
3031
  login_count: i.number(),
3032
3032
  identities: i.array(as).optional()
3033
3033
  });
3034
- En.extend({
3034
+ Nn.extend({
3035
3035
  email: i.string(),
3036
3036
  login_count: i.number(),
3037
3037
  multifactor: i.array(i.string()).optional(),
@@ -3054,7 +3054,7 @@ i.object({
3054
3054
  updated_at: i.string().transform((n) => n === null ? "" : n)
3055
3055
  }).extend(os.shape);
3056
3056
  var An = /* @__PURE__ */ ((n) => (n.TOKEN = "token", n.TOKEN_ID_TOKEN = "token id_token", n.CODE = "code", n))(An || {}), Rn = /* @__PURE__ */ ((n) => (n.QUERY = "query", n.FRAGMENT = "fragment", n.FORM_POST = "form_post", n.WEB_MESSAGE = "web_message", n))(Rn || {}), $n = /* @__PURE__ */ ((n) => (n.S265 = "S256", n.plain = "plain", n))($n || {});
3057
- const Qt = i.object({
3057
+ const Jt = i.object({
3058
3058
  client_id: i.string(),
3059
3059
  vendor_id: i.string().optional(),
3060
3060
  response_type: i.nativeEnum(An).optional(),
@@ -3099,7 +3099,7 @@ const cs = i.object({
3099
3099
  token_exchange_basic_auth: i.boolean().optional(),
3100
3100
  userinfo_endpoint: i.string().optional(),
3101
3101
  scope: i.string().optional()
3102
- }), ln = i.object({
3102
+ }), pn = i.object({
3103
3103
  id: i.string(),
3104
3104
  created_at: i.string().transform((n) => n === null ? "" : n),
3105
3105
  updated_at: i.string().transform((n) => n === null ? "" : n)
@@ -3137,10 +3137,10 @@ const cs = i.object({
3137
3137
  })
3138
3138
  });
3139
3139
  Pn.extend({
3140
- connections: i.array(ln)
3140
+ connections: i.array(pn)
3141
3141
  });
3142
3142
  Pn.extend({
3143
- connections: i.array(ln.partial())
3143
+ connections: i.array(pn.partial())
3144
3144
  });
3145
3145
  const us = i.enum([
3146
3146
  "password_reset",
@@ -3167,7 +3167,7 @@ const us = i.enum([
3167
3167
  email_api_key: i.string().optional(),
3168
3168
  email_service: i.enum(["mailgun", "mailchannels"])
3169
3169
  });
3170
- un.extend({
3170
+ ln.extend({
3171
3171
  ...ps.shape,
3172
3172
  id: i.string()
3173
3173
  });
@@ -3178,7 +3178,7 @@ const hs = i.object({
3178
3178
  hook_id: i.string().optional()
3179
3179
  });
3180
3180
  hs.extend({
3181
- ...un.shape,
3181
+ ...ln.shape,
3182
3182
  hook_id: i.string()
3183
3183
  });
3184
3184
  const fs = i.object({
@@ -3219,19 +3219,17 @@ const ms = i.object({
3219
3219
  description: "This is is used as the state in the universal login"
3220
3220
  }),
3221
3221
  auth0Client: i.string().optional(),
3222
- authParams: Qt,
3222
+ authParams: Jt,
3223
3223
  expires_at: i.string(),
3224
3224
  deleted_at: i.string(),
3225
3225
  ip: i.string().optional()
3226
3226
  }).openapi({
3227
3227
  description: "This represents a login sesion"
3228
- });
3229
- i.object({
3228
+ }), _s = i.object({
3230
3229
  ...ms.shape,
3231
3230
  created_at: i.string(),
3232
3231
  updated_at: i.string()
3233
- });
3234
- const _s = i.enum([
3232
+ }), gs = i.enum([
3235
3233
  "sapi",
3236
3234
  // SUCCESS_API_OPERATION
3237
3235
  "ssa",
@@ -3263,7 +3261,7 @@ const _s = i.enum([
3263
3261
  "seacft",
3264
3262
  // SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN
3265
3263
  "serft"
3266
- ]), gs = i.object({
3264
+ ]), ys = i.object({
3267
3265
  name: i.string(),
3268
3266
  version: i.string(),
3269
3267
  env: i.object({
@@ -3271,7 +3269,7 @@ const _s = i.enum([
3271
3269
  }).optional()
3272
3270
  });
3273
3271
  i.object({
3274
- type: _s,
3272
+ type: gs,
3275
3273
  date: i.string(),
3276
3274
  description: i.string().optional(),
3277
3275
  log_id: i.string().optional(),
@@ -3292,19 +3290,19 @@ i.object({
3292
3290
  strategy: i.string().optional(),
3293
3291
  strategy_type: i.string().optional(),
3294
3292
  hostname: i.string().optional(),
3295
- auth0_client: gs.optional()
3293
+ auth0_client: ys.optional()
3296
3294
  });
3297
- const ys = i.object({
3295
+ const vs = i.object({
3298
3296
  user_id: i.string(),
3299
3297
  password: i.string(),
3300
3298
  algorithm: i.enum(["bcrypt", "argon2id"]).default("argon2id")
3301
3299
  });
3302
3300
  i.object({
3303
- ...ys.shape,
3301
+ ...vs.shape,
3304
3302
  created_at: i.string(),
3305
3303
  updated_at: i.string()
3306
3304
  });
3307
- const vs = i.object({
3305
+ const ws = i.object({
3308
3306
  session_id: i.string(),
3309
3307
  client_id: i.string(),
3310
3308
  expires_at: i.string(),
@@ -3314,7 +3312,7 @@ const vs = i.object({
3314
3312
  });
3315
3313
  i.object({
3316
3314
  created_at: i.string(),
3317
- ...vs.shape
3315
+ ...ws.shape
3318
3316
  });
3319
3317
  i.object({
3320
3318
  private_key: i.string(),
@@ -3343,7 +3341,7 @@ i.object({
3343
3341
  revoked: i.boolean().optional().openapi({ description: "True if the key is revoked" }),
3344
3342
  revoked_at: i.string().optional().openapi({ description: "The date and time when the key was revoked" })
3345
3343
  });
3346
- const ws = i.object({
3344
+ const ks = i.object({
3347
3345
  name: i.string(),
3348
3346
  audience: i.string(),
3349
3347
  sender_email: i.string().email(),
@@ -3354,7 +3352,7 @@ const ws = i.object({
3354
3352
  secondary_color: i.string().optional(),
3355
3353
  language: i.string().optional()
3356
3354
  });
3357
- ws.extend({
3355
+ ks.extend({
3358
3356
  created_at: i.string().transform((n) => n === null ? "" : n),
3359
3357
  updated_at: i.string().transform((n) => n === null ? "" : n)
3360
3358
  });
@@ -3377,9 +3375,9 @@ i.object({
3377
3375
  manageSubscriptionsUrl: i.string().optional()
3378
3376
  });
3379
3377
  var Dn = /* @__PURE__ */ ((n) => (n.RefreshToken = "refresh_token", n.AuthorizationCode = "authorization_code", n.ClientCredential = "client_credentials", n.Passwordless = "passwordless", n.Password = "password", n))(Dn || {});
3380
- const pn = i.nativeEnum(Dn);
3378
+ const hn = i.nativeEnum(Dn);
3381
3379
  i.object({
3382
- grant_type: pn.refine(
3380
+ grant_type: hn.refine(
3383
3381
  (n) => n === "authorization_code"
3384
3382
  /* AuthorizationCode */
3385
3383
  ),
@@ -3388,7 +3386,7 @@ i.object({
3388
3386
  client_id: i.string()
3389
3387
  });
3390
3388
  i.object({
3391
- grant_type: pn.refine(
3389
+ grant_type: hn.refine(
3392
3390
  (n) => n === "authorization_code"
3393
3391
  /* AuthorizationCode */
3394
3392
  ),
@@ -3398,7 +3396,7 @@ i.object({
3398
3396
  redirect_uri: i.string()
3399
3397
  });
3400
3398
  i.object({
3401
- grant_type: pn.refine(
3399
+ grant_type: hn.refine(
3402
3400
  (n) => n === "client_credentials"
3403
3401
  /* ClientCredential */
3404
3402
  ),
@@ -3420,7 +3418,7 @@ i.object({
3420
3418
  code: i.string(),
3421
3419
  state: i.string().optional()
3422
3420
  });
3423
- const ks = i.object({
3421
+ const xs = i.object({
3424
3422
  button_border_radius: i.number(),
3425
3423
  button_border_weight: i.number(),
3426
3424
  buttons_style: i.enum(["pill"]),
@@ -3430,7 +3428,7 @@ const ks = i.object({
3430
3428
  show_widget_shadow: i.boolean(),
3431
3429
  widget_border_weight: i.number(),
3432
3430
  widget_corner_radius: i.number()
3433
- }), xs = i.object({
3431
+ }), bs = i.object({
3434
3432
  base_focus_color: i.string(),
3435
3433
  base_hover_color: i.string(),
3436
3434
  body_text: i.string(),
@@ -3450,68 +3448,68 @@ const ks = i.object({
3450
3448
  success: i.string(),
3451
3449
  widget_background: i.string(),
3452
3450
  widget_border: i.string()
3453
- }), Pe = i.object({
3451
+ }), De = i.object({
3454
3452
  bold: i.boolean(),
3455
3453
  size: i.number()
3456
- }), bs = i.object({
3457
- body_text: Pe,
3458
- buttons_text: Pe,
3454
+ }), Ts = i.object({
3455
+ body_text: De,
3456
+ buttons_text: De,
3459
3457
  font_url: i.string(),
3460
- input_labels: Pe,
3461
- links: Pe,
3458
+ input_labels: De,
3459
+ links: De,
3462
3460
  links_style: i.enum(["normal"]),
3463
3461
  reference_text_size: i.number(),
3464
- subtitle: Pe,
3465
- title: Pe
3466
- }), Ts = i.object({
3462
+ subtitle: De,
3463
+ title: De
3464
+ }), Os = i.object({
3467
3465
  background_color: i.string(),
3468
3466
  background_image_url: i.string(),
3469
3467
  page_layout: i.enum(["center"])
3470
- }), Os = i.object({
3468
+ }), Ss = i.object({
3471
3469
  header_text_alignment: i.enum(["center"]),
3472
3470
  logo_height: i.number(),
3473
3471
  logo_position: i.enum(["center"]),
3474
3472
  logo_url: i.string(),
3475
3473
  social_buttons_layout: i.enum(["bottom"])
3476
- }), Ss = i.object({
3477
- borders: ks,
3478
- colors: xs,
3474
+ }), Zs = i.object({
3475
+ borders: xs,
3476
+ colors: bs,
3479
3477
  displayName: i.string(),
3480
- fonts: bs,
3481
- page_background: Ts,
3482
- widget: Os
3478
+ fonts: Ts,
3479
+ page_background: Os,
3480
+ widget: Ss
3483
3481
  });
3484
- Ss.extend({
3482
+ Zs.extend({
3485
3483
  themeId: i.string()
3486
3484
  });
3487
- const Zs = i.object({
3485
+ const js = i.object({
3488
3486
  id: i.string(),
3489
3487
  expires_at: i.string(),
3490
3488
  auth0Client: i.string().optional(),
3491
- authParams: Qt
3489
+ authParams: Jt
3492
3490
  });
3493
3491
  i.object({
3494
- ...Zs.shape,
3492
+ ...js.shape,
3495
3493
  created_at: i.string(),
3496
3494
  updated_at: i.string()
3497
3495
  });
3498
- const js = i.object({
3496
+ const Is = i.object({
3499
3497
  id: i.string(),
3500
3498
  email: i.string(),
3501
3499
  code: i.string(),
3502
3500
  ip: i.string().optional(),
3503
3501
  send: i.enum(["code", "link"]),
3504
- authParams: Qt,
3502
+ authParams: Jt,
3505
3503
  expires_at: i.string(),
3506
3504
  used_at: i.string().optional(),
3507
3505
  user_id: i.string().optional()
3508
3506
  });
3509
3507
  i.object({
3510
3508
  created_at: i.string(),
3511
- ...js.shape
3509
+ ...Is.shape
3512
3510
  });
3513
- const Is = i.object({
3514
- authParams: Qt,
3511
+ const Cs = i.object({
3512
+ authParams: Jt,
3515
3513
  code: i.string(),
3516
3514
  user_id: i.string(),
3517
3515
  created_at: i.string(),
@@ -3519,10 +3517,10 @@ const Is = i.object({
3519
3517
  used_at: i.string().optional()
3520
3518
  });
3521
3519
  i.object({
3522
- ...Is.shape,
3520
+ ...Cs.shape,
3523
3521
  created_at: i.string()
3524
3522
  });
3525
- function hn(n) {
3523
+ function fn(n) {
3526
3524
  const [e, t] = n.split("|");
3527
3525
  if (!e || !t)
3528
3526
  throw new Error(`Invalid user_id: ${n}`);
@@ -3538,7 +3536,7 @@ function Mn(n) {
3538
3536
  return {
3539
3537
  connection: n.connection,
3540
3538
  provider: n.provider,
3541
- user_id: hn(n.user_id).id,
3539
+ user_id: fn(n.user_id).id,
3542
3540
  isSocial: !!n.is_social,
3543
3541
  profileData: {
3544
3542
  email: n.email,
@@ -3547,7 +3545,7 @@ function Mn(n) {
3547
3545
  }
3548
3546
  };
3549
3547
  }
3550
- function Cs(n) {
3548
+ function Es(n) {
3551
3549
  return async (e, t) => {
3552
3550
  const [r, s] = await Promise.all([
3553
3551
  n.selectFrom("users").where("users.tenant_id", "=", e).where("users.user_id", "=", t).selectAll().executeTakeFirst(),
@@ -3564,7 +3562,7 @@ function Cs(n) {
3564
3562
  {
3565
3563
  connection: r.connection,
3566
3564
  provider: r.provider,
3567
- user_id: hn(r.user_id).id,
3565
+ user_id: fn(r.user_id).id,
3568
3566
  isSocial: !!r.is_social
3569
3567
  },
3570
3568
  ...s.map(Mn)
@@ -3612,7 +3610,7 @@ function Ns(n) {
3612
3610
  {
3613
3611
  connection: l.connection,
3614
3612
  provider: l.provider,
3615
- user_id: hn(l.user_id).id,
3613
+ user_id: fn(l.user_id).id,
3616
3614
  isSocial: !!l.is_social
3617
3615
  },
3618
3616
  ...T.map(Mn)
@@ -3627,51 +3625,51 @@ function Ns(n) {
3627
3625
  };
3628
3626
  };
3629
3627
  }
3630
- function Es(n) {
3628
+ function As(n) {
3631
3629
  return async (e, t) => (await n.deleteFrom("users").where("users.tenant_id", "=", e).where("users.linked_to", "=", t).execute(), (await n.deleteFrom("users").where("users.tenant_id", "=", e).where("users.user_id", "=", t).execute()).length === 1);
3632
3630
  }
3633
- function As(n) {
3631
+ function Rs(n) {
3634
3632
  if (n.email_verified !== void 0)
3635
3633
  return n.email_verified ? 1 : 0;
3636
3634
  }
3637
- function Rs(n) {
3635
+ function $s(n) {
3638
3636
  return async (e, t, r) => {
3639
3637
  const s = {
3640
3638
  ...r,
3641
- email_verified: As(r),
3639
+ email_verified: Rs(r),
3642
3640
  updated_at: (/* @__PURE__ */ new Date()).toISOString()
3643
3641
  };
3644
3642
  return (await n.updateTable("users").set(s).where("users.tenant_id", "=", e).where("users.user_id", "=", t).execute()).length === 1;
3645
3643
  };
3646
3644
  }
3647
- function $s(n) {
3645
+ function Ps(n) {
3648
3646
  return async (e, t, r, s) => {
3649
3647
  const a = { linked_to: null };
3650
3648
  return (await n.updateTable("users").set(a).where("users.tenant_id", "=", e).where("users.user_id", "=", `${r}|${s}`).where("users.linked_to", "=", `${t}`).execute()).length === 1;
3651
3649
  };
3652
3650
  }
3653
- function Ps(n) {
3651
+ function Ds(n) {
3654
3652
  return {
3655
3653
  create: Gn(n),
3656
- remove: Es(n),
3657
- get: Cs(n),
3654
+ remove: As(n),
3655
+ get: Es(n),
3658
3656
  list: Ns(n),
3659
- update: Rs(n),
3657
+ update: $s(n),
3660
3658
  // TODO - think about this more when other issues fixed
3661
- unlink: $s(n)
3659
+ unlink: Ps(n)
3662
3660
  };
3663
3661
  }
3664
- const Ds = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
3665
- let Qe = (n = 21) => {
3662
+ const Ms = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
3663
+ let Re = (n = 21) => {
3666
3664
  let e = "", t = crypto.getRandomValues(new Uint8Array(n));
3667
3665
  for (; n--; )
3668
- e += Ds[t[n] & 63];
3666
+ e += Ms[t[n] & 63];
3669
3667
  return e;
3670
3668
  };
3671
- function Ms(n) {
3669
+ function Ls(n) {
3672
3670
  return async (e) => {
3673
3671
  const t = {
3674
- id: e.id || Qe(),
3672
+ id: e.id || Re(),
3675
3673
  created_at: (/* @__PURE__ */ new Date()).toISOString(),
3676
3674
  updated_at: (/* @__PURE__ */ new Date()).toISOString(),
3677
3675
  ...e
@@ -3679,13 +3677,13 @@ function Ms(n) {
3679
3677
  return await n.insertInto("tenants").values(t).execute(), t;
3680
3678
  };
3681
3679
  }
3682
- function Ls(n) {
3680
+ function Vs(n) {
3683
3681
  return async (e) => {
3684
3682
  const t = await n.selectFrom("tenants").where("tenants.id", "=", e).selectAll().executeTakeFirst();
3685
3683
  return t ? R(t) : null;
3686
3684
  };
3687
3685
  }
3688
- function Vs(n) {
3686
+ function Us(n) {
3689
3687
  return async (e) => {
3690
3688
  let t = n.selectFrom("tenants");
3691
3689
  if (e.sort && e.sort.sort_by) {
@@ -3707,7 +3705,7 @@ function Vs(n) {
3707
3705
  };
3708
3706
  };
3709
3707
  }
3710
- function Us(n) {
3708
+ function Fs(n) {
3711
3709
  return async (e, t) => {
3712
3710
  const r = {
3713
3711
  ...t,
@@ -3717,29 +3715,29 @@ function Us(n) {
3717
3715
  await n.updateTable("tenants").set(r).where("id", "=", e).execute();
3718
3716
  };
3719
3717
  }
3720
- function Fs(n) {
3718
+ function zs(n) {
3721
3719
  return async (e) => (await n.deleteFrom("tenants").where("tenants.id", "=", e).execute()).length === 1;
3722
3720
  }
3723
- function zs(n) {
3721
+ function Bs(n) {
3724
3722
  return {
3725
- create: Ms(n),
3726
- get: Ls(n),
3727
- list: Vs(n),
3728
- update: Us(n),
3729
- remove: Fs(n)
3723
+ create: Ls(n),
3724
+ get: Vs(n),
3725
+ list: Us(n),
3726
+ update: Fs(n),
3727
+ remove: zs(n)
3730
3728
  };
3731
3729
  }
3732
3730
  function yn(n) {
3733
3731
  return n ? JSON.stringify(n) : void 0;
3734
3732
  }
3735
- const Bs = 1024;
3736
- function qs(n) {
3733
+ const qs = 1024;
3734
+ function Ws(n) {
3737
3735
  return async (e, t) => {
3738
3736
  var s, a;
3739
3737
  const r = {
3740
- id: Qe(),
3738
+ id: Re(),
3741
3739
  ...t,
3742
- user_agent: t.user_agent.slice(0, Bs)
3740
+ user_agent: t.user_agent.slice(0, qs)
3743
3741
  };
3744
3742
  return await n.insertInto("logs").values({
3745
3743
  ...r,
@@ -3773,7 +3771,7 @@ function Ln(n) {
3773
3771
  _id: n.id
3774
3772
  };
3775
3773
  }
3776
- function Ws(n) {
3774
+ function Ks(n) {
3777
3775
  return async (e, t) => {
3778
3776
  let r = n.selectFrom("logs").where("logs.tenant_id", "=", e);
3779
3777
  t.q && (r = Ae(n, r, t.q, ["user_id", "ip"]));
@@ -3795,23 +3793,23 @@ function Ws(n) {
3795
3793
  };
3796
3794
  };
3797
3795
  }
3798
- function Ks(n) {
3796
+ function Qs(n) {
3799
3797
  return async (e, t) => {
3800
3798
  const r = await n.selectFrom("logs").where("logs.tenant_id", "=", e).where("logs.id", "=", t).selectAll().executeTakeFirst();
3801
3799
  return r ? Ln(r) : null;
3802
3800
  };
3803
3801
  }
3804
- function Qs(n) {
3802
+ function Js(n) {
3805
3803
  return {
3806
- create: qs(n),
3807
- list: Ws(n),
3808
- get: Ks(n)
3804
+ create: Ws(n),
3805
+ list: Ks(n),
3806
+ get: Qs(n)
3809
3807
  };
3810
3808
  }
3811
- function Js(n) {
3809
+ function Hs(n) {
3812
3810
  return async (e, t) => await n.selectFrom("sessions").where("sessions.tenant_id", "=", e).where("sessions.session_id", "=", t).where("sessions.deleted_at", "is", null).selectAll().executeTakeFirst() ?? null;
3813
3811
  }
3814
- function Hs(n) {
3812
+ function Ys(n) {
3815
3813
  return async (e, t) => {
3816
3814
  const r = {
3817
3815
  ...t,
@@ -3821,13 +3819,13 @@ function Hs(n) {
3821
3819
  return await n.insertInto("sessions").values({ ...r, tenant_id: e }).execute(), { ...t, ...r };
3822
3820
  };
3823
3821
  }
3824
- function Ys(n) {
3822
+ function Gs(n) {
3825
3823
  return async (e, t) => !!(await n.updateTable("sessions").set({ deleted_at: (/* @__PURE__ */ new Date()).toISOString() }).where("tenant_id", "=", e).where("sessions.session_id", "=", t).where("sessions.deleted_at", "is", null).execute()).length;
3826
3824
  }
3827
- function Gs(n) {
3825
+ function Xs(n) {
3828
3826
  return async (e, t, r) => !!(await n.updateTable("sessions").set(r).where("tenant_id", "=", e).where("sessions.session_id", "=", t).where("sessions.deleted_at", "is", null).execute()).length;
3829
3827
  }
3830
- function Xs(n) {
3828
+ function ea(n) {
3831
3829
  return async (e, t) => {
3832
3830
  let r = n.selectFrom("sessions").where("sessions.tenant_id", "=", e);
3833
3831
  t.q && (r = Ae(n, r, t.q, ["user_id", "session_id"]));
@@ -3849,16 +3847,16 @@ function Xs(n) {
3849
3847
  };
3850
3848
  };
3851
3849
  }
3852
- function ea(n) {
3850
+ function ta(n) {
3853
3851
  return {
3854
- create: Hs(n),
3855
- get: Js(n),
3856
- list: Xs(n),
3857
- remove: Ys(n),
3858
- update: Gs(n)
3852
+ create: Ys(n),
3853
+ get: Hs(n),
3854
+ list: ea(n),
3855
+ remove: Gs(n),
3856
+ update: Xs(n)
3859
3857
  };
3860
3858
  }
3861
- function ta(n) {
3859
+ function na(n) {
3862
3860
  return async (e, t) => {
3863
3861
  const r = await n.selectFrom("tickets").where("tickets.tenant_id", "=", e).where("tickets.id", "=", t).where("tickets.used_at", "is", null).selectAll().executeTakeFirst();
3864
3862
  if (!r)
@@ -3888,7 +3886,7 @@ function ta(n) {
3888
3886
  };
3889
3887
  };
3890
3888
  }
3891
- function na(n) {
3889
+ function ra(n) {
3892
3890
  return async (e) => {
3893
3891
  const { authParams: t, ...r } = e, s = {
3894
3892
  ...r,
@@ -3900,21 +3898,21 @@ function na(n) {
3900
3898
  await n.insertInto("tickets").values(s).execute();
3901
3899
  };
3902
3900
  }
3903
- function ra(n) {
3901
+ function sa(n) {
3904
3902
  return async (e, t) => {
3905
3903
  await n.updateTable("tickets").set({
3906
3904
  used_at: (/* @__PURE__ */ new Date()).toISOString()
3907
3905
  }).where("tickets.tenant_id", "=", e).where("tickets.id", "=", t).execute();
3908
3906
  };
3909
3907
  }
3910
- function sa(n) {
3908
+ function aa(n) {
3911
3909
  return {
3912
- create: na(n),
3913
- get: ta(n),
3914
- remove: ra(n)
3910
+ create: ra(n),
3911
+ get: na(n),
3912
+ remove: sa(n)
3915
3913
  };
3916
3914
  }
3917
- function aa(n) {
3915
+ function ia(n) {
3918
3916
  return async (e, t) => {
3919
3917
  const r = (/* @__PURE__ */ new Date()).toISOString();
3920
3918
  return (await n.selectFrom("otps").where("otps.tenant_id", "=", e).where("otps.email", "=", t).where("otps.expires_at", ">", r).where("otps.used_at", "is", null).selectAll().execute()).map((a) => {
@@ -3945,7 +3943,7 @@ function aa(n) {
3945
3943
  });
3946
3944
  };
3947
3945
  }
3948
- function ia(n) {
3946
+ function oa(n) {
3949
3947
  return async (e, t) => {
3950
3948
  const { authParams: r, ...s } = t;
3951
3949
  await n.insertInto("otps").values({
@@ -3958,25 +3956,25 @@ function ia(n) {
3958
3956
  }).execute();
3959
3957
  };
3960
3958
  }
3961
- function oa(n) {
3959
+ function ca(n) {
3962
3960
  return async (e, t) => (await n.updateTable("otps").set({
3963
3961
  used_at: (/* @__PURE__ */ new Date()).toISOString()
3964
3962
  }).where("otps.tenant_id", "=", e).where("otps.id", "=", t).execute()).length > 0;
3965
3963
  }
3966
- function ca(n) {
3964
+ function da(n) {
3967
3965
  return {
3968
- create: ia(n),
3969
- list: aa(n),
3970
- remove: oa(n)
3966
+ create: oa(n),
3967
+ list: ia(n),
3968
+ remove: ca(n)
3971
3969
  };
3972
3970
  }
3973
- function da(n) {
3971
+ function ua(n) {
3974
3972
  return async (e, t) => {
3975
3973
  const r = await n.selectFrom("passwords").where("passwords.tenant_id", "=", e).where("passwords.user_id", "=", t).selectAll().executeTakeFirstOrThrow(), { tenant_id: s, ...a } = r;
3976
3974
  return a;
3977
3975
  };
3978
3976
  }
3979
- function ua(n) {
3977
+ function la(n) {
3980
3978
  return async (e, t) => {
3981
3979
  const r = {
3982
3980
  ...t,
@@ -3989,20 +3987,20 @@ function ua(n) {
3989
3987
  }).execute(), r;
3990
3988
  };
3991
3989
  }
3992
- function la(n) {
3990
+ function pa(n) {
3993
3991
  return async (e, t) => (await n.updateTable("passwords").set({
3994
3992
  password: t.password,
3995
3993
  updated_at: (/* @__PURE__ */ new Date()).toISOString()
3996
3994
  }).where("tenant_id", "=", e).where("user_id", "=", t.user_id).execute()).length === 1;
3997
3995
  }
3998
- function pa(n) {
3996
+ function ha(n) {
3999
3997
  return {
4000
- create: ua(n),
4001
- update: la(n),
4002
- get: da(n)
3998
+ create: la(n),
3999
+ update: pa(n),
4000
+ get: ua(n)
4003
4001
  };
4004
4002
  }
4005
- function ha(n) {
4003
+ function fa(n) {
4006
4004
  return async (e, t) => {
4007
4005
  let r = n.selectFrom("codes").where("codes.tenant_id", "=", e);
4008
4006
  t.q && (r = Ae(n, r, t.q, ["code", "login_id"]));
@@ -4018,7 +4016,7 @@ function ha(n) {
4018
4016
  };
4019
4017
  };
4020
4018
  }
4021
- function fa(n) {
4019
+ function ma(n) {
4022
4020
  return async (e, t) => {
4023
4021
  const r = {
4024
4022
  ...t,
@@ -4032,24 +4030,24 @@ function fa(n) {
4032
4030
  }).execute(), r;
4033
4031
  };
4034
4032
  }
4035
- function ma(n) {
4033
+ function _a(n) {
4036
4034
  return async (e, t) => (await n.deleteFrom("codes").where("codes.tenant_id", "=", e).where("codes.code_id", "=", t).executeTakeFirst()).numDeletedRows > 0;
4037
4035
  }
4038
- function _a(n) {
4036
+ function ga(n) {
4039
4037
  return async (e, t, r) => {
4040
4038
  const s = await n.selectFrom("codes").where("codes.tenant_id", "=", e).where("codes.code_id", "=", t).where("codes.code_type", "=", r).selectAll().executeTakeFirst();
4041
4039
  return s ? R(s) : null;
4042
4040
  };
4043
4041
  }
4044
- function ga(n) {
4042
+ function ya(n) {
4045
4043
  return {
4046
- create: fa(n),
4047
- list: ha(n),
4048
- remove: ma(n),
4049
- get: _a(n)
4044
+ create: ma(n),
4045
+ list: fa(n),
4046
+ remove: _a(n),
4047
+ get: ga(n)
4050
4048
  };
4051
4049
  }
4052
- function ya(n) {
4050
+ function va(n) {
4053
4051
  return async (e) => {
4054
4052
  const t = (/* @__PURE__ */ new Date()).toISOString(), r = await n.selectFrom("universal_login_sessions").where("universal_login_sessions.expires_at", ">", t).where("universal_login_sessions.id", "=", e).selectAll().executeTakeFirst();
4055
4053
  if (!r) return null;
@@ -4087,7 +4085,7 @@ function ya(n) {
4087
4085
  };
4088
4086
  };
4089
4087
  }
4090
- function va(n) {
4088
+ function wa(n) {
4091
4089
  return async (e, t) => {
4092
4090
  const { authParams: r, ...s } = t, a = {
4093
4091
  created_at: (/* @__PURE__ */ new Date()).toISOString(),
@@ -4096,20 +4094,20 @@ function va(n) {
4096
4094
  return await n.insertInto("universal_login_sessions").values({ ...r, ...s, ...a, tenant_id: e }).execute(), { ...t, ...a };
4097
4095
  };
4098
4096
  }
4099
- function wa(n) {
4097
+ function ka(n) {
4100
4098
  return async (e, t, r) => {
4101
4099
  const { authParams: s, ...a } = r;
4102
4100
  return (await n.updateTable("universal_login_sessions").set({ ...s, ...a }).where("id", "=", t).where("tenant_id", "=", e).execute()).length === 1;
4103
4101
  };
4104
4102
  }
4105
- function ka(n) {
4103
+ function xa(n) {
4106
4104
  return {
4107
- create: va(n),
4108
- get: ya(n),
4109
- update: wa(n)
4105
+ create: wa(n),
4106
+ get: va(n),
4107
+ update: ka(n)
4110
4108
  };
4111
4109
  }
4112
- function xa(n) {
4110
+ function ba(n) {
4113
4111
  return async (e, t) => {
4114
4112
  const r = {
4115
4113
  created_at: (/* @__PURE__ */ new Date()).toISOString(),
@@ -4120,21 +4118,21 @@ function xa(n) {
4120
4118
  return await n.insertInto("applications").values({ ...r, tenant_id: e }).execute(), r;
4121
4119
  };
4122
4120
  }
4123
- function ba(n) {
4121
+ function Ta(n) {
4124
4122
  return async (e) => ({
4125
4123
  applications: await n.selectFrom("applications").where("applications.tenant_id", "=", e).selectAll().execute()
4126
4124
  });
4127
4125
  }
4128
- function Ta(n) {
4126
+ function Oa(n) {
4129
4127
  return async (e, t) => {
4130
4128
  const r = await n.selectFrom("applications").where("applications.tenant_id", "=", e).where("applications.id", "=", t).selectAll().executeTakeFirst();
4131
4129
  return r ? (r.disable_sign_ups = !!r.disable_sign_ups, R(r)) : null;
4132
4130
  };
4133
4131
  }
4134
- function Oa(n) {
4132
+ function Sa(n) {
4135
4133
  return async (e, t) => (await n.deleteFrom("applications").where("applications.tenant_id", "=", e).where("applications.id", "=", t).executeTakeFirst()).numDeletedRows > 0;
4136
4134
  }
4137
- function Sa(n) {
4135
+ function Za(n) {
4138
4136
  return async (e, t, r) => {
4139
4137
  const s = {
4140
4138
  ...r,
@@ -4143,19 +4141,19 @@ function Sa(n) {
4143
4141
  return await n.updateTable("applications").set(s).where("applications.id", "=", t).where("applications.tenant_id", "=", e).execute(), !0;
4144
4142
  };
4145
4143
  }
4146
- function Za(n) {
4144
+ function ja(n) {
4147
4145
  return {
4148
- create: xa(n),
4149
- list: ba(n),
4150
- get: Ta(n),
4151
- remove: Oa(n),
4152
- update: Sa(n)
4146
+ create: ba(n),
4147
+ list: Ta(n),
4148
+ get: Oa(n),
4149
+ remove: Sa(n),
4150
+ update: Za(n)
4153
4151
  };
4154
4152
  }
4155
- function ja(n) {
4153
+ function Ia(n) {
4156
4154
  return async (e, t) => {
4157
4155
  const r = {
4158
- id: Qe(),
4156
+ id: Re(),
4159
4157
  ...t,
4160
4158
  created_at: (/* @__PURE__ */ new Date()).toISOString(),
4161
4159
  updated_at: (/* @__PURE__ */ new Date()).toISOString()
@@ -4163,7 +4161,7 @@ function ja(n) {
4163
4161
  return await n.insertInto("connections").values({ ...r, tenant_id: e }).execute(), r;
4164
4162
  };
4165
4163
  }
4166
- function Ia(n) {
4164
+ function Ca(n) {
4167
4165
  return async (e, t) => {
4168
4166
  let r = n.selectFrom("connections").where("connections.tenant_id", "=", e);
4169
4167
  t.q && (r = Ae(n, r, t.q, ["user_id", "ip"]));
@@ -4176,7 +4174,7 @@ function Ia(n) {
4176
4174
  };
4177
4175
  };
4178
4176
  }
4179
- function Ca(n) {
4177
+ function Ea(n) {
4180
4178
  return async (e, t) => (await n.deleteFrom("connections").where("connections.tenant_id", "=", e).where("connections.id", "=", t).executeTakeFirst()).numDeletedRows > 0;
4181
4179
  }
4182
4180
  function Na(n) {
@@ -4185,7 +4183,7 @@ function Na(n) {
4185
4183
  return r ? R(r) : null;
4186
4184
  };
4187
4185
  }
4188
- function Ea(n) {
4186
+ function Aa(n) {
4189
4187
  return async (e, t, r) => {
4190
4188
  const s = {
4191
4189
  ...r,
@@ -4194,19 +4192,19 @@ function Ea(n) {
4194
4192
  return await n.updateTable("connections").set(s).where("connections.id", "=", t).where("connections.tenant_id", "=", e).execute(), !0;
4195
4193
  };
4196
4194
  }
4197
- function Aa(n) {
4195
+ function Ra(n) {
4198
4196
  return {
4199
- create: ja(n),
4197
+ create: Ia(n),
4200
4198
  get: Na(n),
4201
- list: Ia(n),
4202
- remove: Ca(n),
4203
- update: Ea(n)
4199
+ list: Ca(n),
4200
+ remove: Ea(n),
4201
+ update: Aa(n)
4204
4202
  };
4205
4203
  }
4206
- function Gt(n) {
4204
+ function Xt(n) {
4207
4205
  return n != null && n.length ? n.split(",").map((e) => e.trim()) : [];
4208
4206
  }
4209
- function Ra(n) {
4207
+ function $a(n) {
4210
4208
  return {
4211
4209
  get: async (e) => {
4212
4210
  const t = await n.selectFrom("applications").selectAll().where("id", "=", e).executeTakeFirst();
@@ -4220,13 +4218,13 @@ function Ra(n) {
4220
4218
  id: t.id,
4221
4219
  name: t.name,
4222
4220
  connections: s.map(
4223
- (c) => ln.parse(R(c))
4221
+ (c) => pn.parse(R(c))
4224
4222
  ),
4225
4223
  domains: a,
4226
4224
  tenant_id: r.id,
4227
- allowed_callback_urls: Gt(t.allowed_callback_urls),
4228
- allowed_logout_urls: Gt(t.allowed_logout_urls),
4229
- allowed_web_origins: Gt(t.allowed_web_origins),
4225
+ allowed_callback_urls: Xt(t.allowed_callback_urls),
4226
+ allowed_logout_urls: Xt(t.allowed_logout_urls),
4227
+ allowed_web_origins: Xt(t.allowed_web_origins),
4230
4228
  email_validation: t.email_validation,
4231
4229
  client_secret: t.client_secret,
4232
4230
  tenant: R(r),
@@ -4236,37 +4234,37 @@ function Ra(n) {
4236
4234
  }
4237
4235
  };
4238
4236
  }
4239
- function $a(n) {
4237
+ function Pa(n) {
4240
4238
  return async () => await n.selectFrom("keys").where("revoked_at", "is", null).selectAll().execute();
4241
4239
  }
4242
- function Pa(n) {
4240
+ function Da(n) {
4243
4241
  return async (e) => {
4244
4242
  await n.insertInto("keys").values(e).execute();
4245
4243
  };
4246
4244
  }
4247
- function Da(n) {
4245
+ function Ma(n) {
4248
4246
  return async (e, t) => !!(await n.updateTable("keys").set({ revoked_at: t.toISOString() }).where("kid", "=", e).execute()).length;
4249
4247
  }
4250
- function Ma(n) {
4248
+ function La(n) {
4251
4249
  return {
4252
- create: Pa(n),
4253
- list: $a(n),
4254
- revoke: Da(n)
4250
+ create: Da(n),
4251
+ list: Pa(n),
4252
+ revoke: Ma(n)
4255
4253
  };
4256
4254
  }
4257
- function La(n) {
4255
+ function Va(n) {
4258
4256
  return async (e, t) => {
4259
4257
  const r = {
4260
4258
  created_at: (/* @__PURE__ */ new Date()).toISOString(),
4261
4259
  updated_at: (/* @__PURE__ */ new Date()).toISOString(),
4262
4260
  tenant_id: e,
4263
- id: Qe(),
4261
+ id: Re(),
4264
4262
  ...t
4265
4263
  };
4266
4264
  return await n.insertInto("domains").values(r).execute(), r;
4267
4265
  };
4268
4266
  }
4269
- function Va(n) {
4267
+ function Ua(n) {
4270
4268
  return async (e, t) => {
4271
4269
  let r = n.selectFrom("domains").where("domains.tenant_id", "=", e);
4272
4270
  t.q && (r = Ae(n, r, t.q, ["user_id", "ip"]));
@@ -4279,13 +4277,13 @@ function Va(n) {
4279
4277
  };
4280
4278
  };
4281
4279
  }
4282
- function Ua(n) {
4280
+ function Fa(n) {
4283
4281
  return {
4284
- create: La(n),
4285
- list: Va(n)
4282
+ create: Va(n),
4283
+ list: Ua(n)
4286
4284
  };
4287
4285
  }
4288
- function Fa(n) {
4286
+ function za(n) {
4289
4287
  return async (e) => {
4290
4288
  const [t] = await n.selectFrom("branding").where("branding.tenant_id", "=", e).selectAll().execute();
4291
4289
  if (!t)
@@ -4315,9 +4313,9 @@ function Fa(n) {
4315
4313
  });
4316
4314
  };
4317
4315
  }
4318
- function za(n) {
4316
+ function Ba(n) {
4319
4317
  return async (e, t) => {
4320
- var o, c, d, u, l, T, A, L, Q, se, ce, de, ue, Re, $e, J, H, Y;
4318
+ var o, c, d, u, l, T, A, L, Q, se, ce, de, ue, $e, Pe, J, H, Y;
4321
4319
  const { colors: r, font: s, ...a } = t;
4322
4320
  try {
4323
4321
  await n.insertInto("branding").values({
@@ -4336,20 +4334,20 @@ function za(n) {
4336
4334
  colors_primary: r == null ? void 0 : r.primary,
4337
4335
  colors_page_background_type: (ce = (se = t.colors) == null ? void 0 : se.page_background) == null ? void 0 : ce.type,
4338
4336
  colors_page_background_start: (ue = (de = t.colors) == null ? void 0 : de.page_background) == null ? void 0 : ue.start,
4339
- colors_page_background_end: ($e = (Re = t.colors) == null ? void 0 : Re.page_background) == null ? void 0 : $e.end,
4337
+ colors_page_background_end: (Pe = ($e = t.colors) == null ? void 0 : $e.page_background) == null ? void 0 : Pe.end,
4340
4338
  colors_page_background_angle_dev: (H = (J = t.colors) == null ? void 0 : J.page_background) == null ? void 0 : H.angle_deg,
4341
4339
  font_url: (Y = t.font) == null ? void 0 : Y.url
4342
4340
  }).where("tenant_id", "=", e).execute();
4343
4341
  }
4344
4342
  };
4345
4343
  }
4346
- function Ba(n) {
4344
+ function qa(n) {
4347
4345
  return {
4348
- get: Fa(n),
4349
- set: za(n)
4346
+ get: za(n),
4347
+ set: Ba(n)
4350
4348
  };
4351
4349
  }
4352
- function qa(n) {
4350
+ function Wa(n) {
4353
4351
  return async (e, t) => {
4354
4352
  const r = await n.selectFrom("authentication_codes").where("tenant_id", "=", e).where("code", "=", t).selectAll().executeTakeFirst();
4355
4353
  if (!r)
@@ -4376,7 +4374,7 @@ function qa(n) {
4376
4374
  };
4377
4375
  };
4378
4376
  }
4379
- function Wa(n) {
4377
+ function Ka(n) {
4380
4378
  return async (e, t) => {
4381
4379
  const { authParams: r, ...s } = t;
4382
4380
  await n.insertInto("authentication_codes").values({
@@ -4386,13 +4384,13 @@ function Wa(n) {
4386
4384
  }).execute();
4387
4385
  };
4388
4386
  }
4389
- function Ka(n) {
4387
+ function Qa(n) {
4390
4388
  return {
4391
- create: Wa(n),
4392
- get: qa(n)
4389
+ create: Ka(n),
4390
+ get: Wa(n)
4393
4391
  };
4394
4392
  }
4395
- function Qa(n) {
4393
+ function Ja(n) {
4396
4394
  return async (e, t) => {
4397
4395
  let r = n.selectFrom("hooks").where("hooks.tenant_id", "=", e);
4398
4396
  t.q && (r = Ae(n, r, t.q, ["url"]));
@@ -4411,19 +4409,19 @@ function Qa(n) {
4411
4409
  };
4412
4410
  };
4413
4411
  }
4414
- function Ja(n) {
4412
+ function Ha(n) {
4415
4413
  return async (e, t) => {
4416
4414
  const r = await n.selectFrom("hooks").where("hooks.tenant_id", "=", e).where("hooks.hook_id", "=", t).selectAll().executeTakeFirst();
4417
4415
  return r ? (r.enabled = !!r.enabled, R(r)) : null;
4418
4416
  };
4419
4417
  }
4420
- function Ha(n) {
4418
+ function Ya(n) {
4421
4419
  return async (e, t) => (await n.deleteFrom("hooks").where("hooks.tenant_id", "=", e).where("hooks.hook_id", "=", t).executeTakeFirst()).numDeletedRows > 0;
4422
4420
  }
4423
- function Ya(n) {
4421
+ function Ga(n) {
4424
4422
  return async (e, t) => {
4425
4423
  const r = {
4426
- hook_id: Qe(),
4424
+ hook_id: Re(),
4427
4425
  ...t,
4428
4426
  created_at: (/* @__PURE__ */ new Date()).toISOString(),
4429
4427
  updated_at: (/* @__PURE__ */ new Date()).toISOString()
@@ -4431,7 +4429,7 @@ function Ya(n) {
4431
4429
  return await n.insertInto("hooks").values({ ...r, tenant_id: e }).execute(), r;
4432
4430
  };
4433
4431
  }
4434
- function Ga(n) {
4432
+ function Xa(n) {
4435
4433
  return async (e, t, r) => {
4436
4434
  const s = {
4437
4435
  ...r,
@@ -4440,16 +4438,16 @@ function Ga(n) {
4440
4438
  return await n.updateTable("hooks").set(s).where("hooks.hook_id", "=", t).where("hooks.tenant_id", "=", e).execute(), !0;
4441
4439
  };
4442
4440
  }
4443
- function Xa(n) {
4441
+ function ei(n) {
4444
4442
  return {
4445
- create: Ya(n),
4446
- get: Ja(n),
4447
- list: Qa(n),
4448
- update: Ga(n),
4449
- remove: Ha(n)
4443
+ create: Ga(n),
4444
+ get: Ha(n),
4445
+ list: Ja(n),
4446
+ update: Xa(n),
4447
+ remove: Ya(n)
4450
4448
  };
4451
4449
  }
4452
- function ei(n, e) {
4450
+ function ti(n, e) {
4453
4451
  var t = {};
4454
4452
  for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && e.indexOf(r) < 0 && (t[r] = n[r]);
4455
4453
  if (n != null && typeof Object.getOwnPropertySymbols == "function")
@@ -4457,7 +4455,7 @@ function ei(n, e) {
4457
4455
  e.indexOf(r[s]) < 0 && Object.prototype.propertyIsEnumerable.call(n, r[s]) && (t[r[s]] = n[r[s]]);
4458
4456
  return t;
4459
4457
  }
4460
- function ti(n, e) {
4458
+ function ni(n, e) {
4461
4459
  var t;
4462
4460
  return ((t = n == null ? void 0 : n._def) === null || t === void 0 ? void 0 : t.typeName) === e;
4463
4461
  }
@@ -4468,19 +4466,19 @@ function He(n, e) {
4468
4466
  return s._def.openapi = this._def.openapi, s;
4469
4467
  };
4470
4468
  }
4471
- function ni(n) {
4469
+ function ri(n) {
4472
4470
  if (typeof n.ZodType.prototype.openapi < "u")
4473
4471
  return;
4474
4472
  n.ZodType.prototype.openapi = function(s, a) {
4475
4473
  var o, c, d, u, l, T;
4476
- const A = typeof s == "string" ? a : s, L = A ?? {}, { param: Q } = L, se = ei(L, ["param"]), ce = Object.assign(Object.assign({}, (o = this._def.openapi) === null || o === void 0 ? void 0 : o._internal), typeof s == "string" ? { refId: s } : void 0), de = Object.assign(Object.assign(Object.assign({}, (c = this._def.openapi) === null || c === void 0 ? void 0 : c.metadata), se), !((u = (d = this._def.openapi) === null || d === void 0 ? void 0 : d.metadata) === null || u === void 0) && u.param || Q ? {
4474
+ const A = typeof s == "string" ? a : s, L = A ?? {}, { param: Q } = L, se = ti(L, ["param"]), ce = Object.assign(Object.assign({}, (o = this._def.openapi) === null || o === void 0 ? void 0 : o._internal), typeof s == "string" ? { refId: s } : void 0), de = Object.assign(Object.assign(Object.assign({}, (c = this._def.openapi) === null || c === void 0 ? void 0 : c.metadata), se), !((u = (d = this._def.openapi) === null || d === void 0 ? void 0 : d.metadata) === null || u === void 0) && u.param || Q ? {
4477
4475
  param: Object.assign(Object.assign({}, (T = (l = this._def.openapi) === null || l === void 0 ? void 0 : l.metadata) === null || T === void 0 ? void 0 : T.param), Q)
4478
4476
  } : void 0), ue = new this.constructor(Object.assign(Object.assign({}, this._def), { openapi: Object.assign(Object.assign({}, Object.keys(ce).length > 0 ? { _internal: ce } : void 0), Object.keys(de).length > 0 ? { metadata: de } : void 0) }));
4479
- if (ti(this, "ZodObject")) {
4480
- const Re = this.extend;
4481
- ue.extend = function(...$e) {
4477
+ if (ni(this, "ZodObject")) {
4478
+ const $e = this.extend;
4479
+ ue.extend = function(...Pe) {
4482
4480
  var J, H, Y, le, Te, Oe;
4483
- const Se = Re.apply(this, $e);
4481
+ const Se = $e.apply(this, Pe);
4484
4482
  return Se._def.openapi = {
4485
4483
  _internal: {
4486
4484
  extendedFrom: !((H = (J = this._def.openapi) === null || J === void 0 ? void 0 : J._internal) === null || H === void 0) && H.refId ? { refId: (le = (Y = this._def.openapi) === null || Y === void 0 ? void 0 : Y._internal) === null || le === void 0 ? void 0 : le.refId, schema: this } : (Te = this._def.openapi) === null || Te === void 0 ? void 0 : Te._internal.extendedFrom
@@ -4547,14 +4545,14 @@ var C;
4547
4545
  }
4548
4546
  n.joinValues = r, n.jsonStringifyReplacer = (s, a) => typeof a == "bigint" ? a.toString() : a;
4549
4547
  })(C || (C = {}));
4550
- var sn;
4548
+ var an;
4551
4549
  (function(n) {
4552
4550
  n.mergeShapes = (e, t) => ({
4553
4551
  ...e,
4554
4552
  ...t
4555
4553
  // second overwrites first
4556
4554
  });
4557
- })(sn || (sn = {}));
4555
+ })(an || (an = {}));
4558
4556
  const g = C.arrayToEnum([
4559
4557
  "string",
4560
4558
  "nan",
@@ -4614,7 +4612,7 @@ const g = C.arrayToEnum([
4614
4612
  "invalid_intersection_types",
4615
4613
  "not_multiple_of",
4616
4614
  "not_finite"
4617
- ]), ri = (n) => JSON.stringify(n, null, 2).replace(/"([^"]+)":/g, "$1:");
4615
+ ]), si = (n) => JSON.stringify(n, null, 2).replace(/"([^"]+)":/g, "$1:");
4618
4616
  class U extends Error {
4619
4617
  constructor(e) {
4620
4618
  super(), this.issues = [], this.addIssue = (r) => {
@@ -4675,7 +4673,7 @@ class U extends Error {
4675
4673
  }
4676
4674
  }
4677
4675
  U.create = (n) => new U(n);
4678
- const qe = (n, e) => {
4676
+ const We = (n, e) => {
4679
4677
  let t;
4680
4678
  switch (n.code) {
4681
4679
  case h.invalid_type:
@@ -4731,14 +4729,14 @@ const qe = (n, e) => {
4731
4729
  }
4732
4730
  return { message: t };
4733
4731
  };
4734
- let Vn = qe;
4735
- function si(n) {
4732
+ let Vn = We;
4733
+ function ai(n) {
4736
4734
  Vn = n;
4737
4735
  }
4738
- function Vt() {
4736
+ function Ut() {
4739
4737
  return Vn;
4740
4738
  }
4741
- const Ut = (n) => {
4739
+ const Ft = (n) => {
4742
4740
  const { data: e, path: t, errorMaps: r, issueData: s } = n, a = [...t, ...s.path || []], o = {
4743
4741
  ...s,
4744
4742
  path: a
@@ -4758,9 +4756,9 @@ const Ut = (n) => {
4758
4756
  path: a,
4759
4757
  message: c
4760
4758
  };
4761
- }, ai = [];
4759
+ }, ii = [];
4762
4760
  function m(n, e) {
4763
- const t = Vt(), r = Ut({
4761
+ const t = Ut(), r = Ft({
4764
4762
  issueData: e,
4765
4763
  data: n.data,
4766
4764
  path: n.path,
@@ -4768,7 +4766,7 @@ function m(n, e) {
4768
4766
  n.common.contextualErrorMap,
4769
4767
  n.schemaErrorMap,
4770
4768
  t,
4771
- t === qe ? void 0 : qe
4769
+ t === We ? void 0 : We
4772
4770
  // then global default map
4773
4771
  ].filter((s) => !!s)
4774
4772
  });
@@ -4817,8 +4815,8 @@ class P {
4817
4815
  }
4818
4816
  const x = Object.freeze({
4819
4817
  status: "aborted"
4820
- }), Le = (n) => ({ status: "dirty", value: n }), M = (n) => ({ status: "valid", value: n }), an = (n) => n.status === "aborted", on = (n) => n.status === "dirty", mt = (n) => n.status === "valid", _t = (n) => typeof Promise < "u" && n instanceof Promise;
4821
- function Ft(n, e, t, r) {
4818
+ }), Ve = (n) => ({ status: "dirty", value: n }), M = (n) => ({ status: "valid", value: n }), on = (n) => n.status === "aborted", cn = (n) => n.status === "dirty", mt = (n) => n.status === "valid", _t = (n) => typeof Promise < "u" && n instanceof Promise;
4819
+ function zt(n, e, t, r) {
4822
4820
  if (typeof e == "function" ? n !== e || !r : !e.has(n)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
4823
4821
  return e.get(n);
4824
4822
  }
@@ -4988,7 +4986,7 @@ class j {
4988
4986
  return q.create(this, this._def);
4989
4987
  }
4990
4988
  promise() {
4991
- return Ke.create(this, this._def);
4989
+ return Qe.create(this, this._def);
4992
4990
  }
4993
4991
  or(e) {
4994
4992
  return wt.create([this, e], this._def);
@@ -5014,7 +5012,7 @@ class j {
5014
5012
  });
5015
5013
  }
5016
5014
  brand() {
5017
- return new fn({
5015
+ return new mn({
5018
5016
  typeName: k.ZodBranded,
5019
5017
  type: this,
5020
5018
  ...S(this._def)
@@ -5049,14 +5047,14 @@ class j {
5049
5047
  return this.safeParse(null).success;
5050
5048
  }
5051
5049
  }
5052
- const ii = /^c[^\s-]{8,}$/i, oi = /^[0-9a-z]+$/, ci = /^[0-9A-HJKMNP-TV-Z]{26}$/, di = /^[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, ui = /^[a-z0-9_-]{21}$/i, li = /^[-+]?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)?)??$/, pi = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, hi = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
5053
- let Xt;
5054
- const fi = /^(?:(?: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])$/, mi = /^(([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})))$/, _i = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, Fn = "((\\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])))", gi = new RegExp(`^${Fn}$`);
5050
+ const oi = /^c[^\s-]{8,}$/i, ci = /^[0-9a-z]+$/, di = /^[0-9A-HJKMNP-TV-Z]{26}$/, ui = /^[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, li = /^[a-z0-9_-]{21}$/i, pi = /^[-+]?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)?)??$/, hi = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, fi = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
5051
+ let en;
5052
+ const mi = /^(?:(?: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])$/, _i = /^(([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})))$/, gi = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, Fn = "((\\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])))", yi = new RegExp(`^${Fn}$`);
5055
5053
  function zn(n) {
5056
5054
  let e = "([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";
5057
5055
  return n.precision ? e = `${e}\\.\\d{${n.precision}}` : n.precision == null && (e = `${e}(\\.\\d+)?`), e;
5058
5056
  }
5059
- function yi(n) {
5057
+ function vi(n) {
5060
5058
  return new RegExp(`^${zn(n)}$`);
5061
5059
  }
5062
5060
  function Bn(n) {
@@ -5064,8 +5062,8 @@ function Bn(n) {
5064
5062
  const t = [];
5065
5063
  return t.push(n.local ? "Z?" : "Z"), n.offset && t.push("([+-]\\d{2}:?\\d{2})"), e = `${e}(${t.join("|")})`, new RegExp(`^${e}$`);
5066
5064
  }
5067
- function vi(n, e) {
5068
- return !!((e === "v4" || !e) && fi.test(n) || (e === "v6" || !e) && mi.test(n));
5065
+ function wi(n, e) {
5066
+ return !!((e === "v4" || !e) && mi.test(n) || (e === "v6" || !e) && _i.test(n));
5069
5067
  }
5070
5068
  class z extends j {
5071
5069
  _parse(e) {
@@ -5116,43 +5114,43 @@ class z extends j {
5116
5114
  message: a.message
5117
5115
  }), r.dirty());
5118
5116
  } else if (a.kind === "email")
5119
- pi.test(e.data) || (s = this._getOrReturnCtx(e, s), m(s, {
5117
+ hi.test(e.data) || (s = this._getOrReturnCtx(e, s), m(s, {
5120
5118
  validation: "email",
5121
5119
  code: h.invalid_string,
5122
5120
  message: a.message
5123
5121
  }), r.dirty());
5124
5122
  else if (a.kind === "emoji")
5125
- Xt || (Xt = new RegExp(hi, "u")), Xt.test(e.data) || (s = this._getOrReturnCtx(e, s), m(s, {
5123
+ en || (en = new RegExp(fi, "u")), en.test(e.data) || (s = this._getOrReturnCtx(e, s), m(s, {
5126
5124
  validation: "emoji",
5127
5125
  code: h.invalid_string,
5128
5126
  message: a.message
5129
5127
  }), r.dirty());
5130
5128
  else if (a.kind === "uuid")
5131
- di.test(e.data) || (s = this._getOrReturnCtx(e, s), m(s, {
5129
+ ui.test(e.data) || (s = this._getOrReturnCtx(e, s), m(s, {
5132
5130
  validation: "uuid",
5133
5131
  code: h.invalid_string,
5134
5132
  message: a.message
5135
5133
  }), r.dirty());
5136
5134
  else if (a.kind === "nanoid")
5137
- ui.test(e.data) || (s = this._getOrReturnCtx(e, s), m(s, {
5135
+ li.test(e.data) || (s = this._getOrReturnCtx(e, s), m(s, {
5138
5136
  validation: "nanoid",
5139
5137
  code: h.invalid_string,
5140
5138
  message: a.message
5141
5139
  }), r.dirty());
5142
5140
  else if (a.kind === "cuid")
5143
- ii.test(e.data) || (s = this._getOrReturnCtx(e, s), m(s, {
5141
+ oi.test(e.data) || (s = this._getOrReturnCtx(e, s), m(s, {
5144
5142
  validation: "cuid",
5145
5143
  code: h.invalid_string,
5146
5144
  message: a.message
5147
5145
  }), r.dirty());
5148
5146
  else if (a.kind === "cuid2")
5149
- oi.test(e.data) || (s = this._getOrReturnCtx(e, s), m(s, {
5147
+ ci.test(e.data) || (s = this._getOrReturnCtx(e, s), m(s, {
5150
5148
  validation: "cuid2",
5151
5149
  code: h.invalid_string,
5152
5150
  message: a.message
5153
5151
  }), r.dirty());
5154
5152
  else if (a.kind === "ulid")
5155
- ci.test(e.data) || (s = this._getOrReturnCtx(e, s), m(s, {
5153
+ di.test(e.data) || (s = this._getOrReturnCtx(e, s), m(s, {
5156
5154
  validation: "ulid",
5157
5155
  code: h.invalid_string,
5158
5156
  message: a.message
@@ -5187,23 +5185,23 @@ class z extends j {
5187
5185
  code: h.invalid_string,
5188
5186
  validation: "datetime",
5189
5187
  message: a.message
5190
- }), r.dirty()) : a.kind === "date" ? gi.test(e.data) || (s = this._getOrReturnCtx(e, s), m(s, {
5188
+ }), r.dirty()) : a.kind === "date" ? yi.test(e.data) || (s = this._getOrReturnCtx(e, s), m(s, {
5191
5189
  code: h.invalid_string,
5192
5190
  validation: "date",
5193
5191
  message: a.message
5194
- }), r.dirty()) : a.kind === "time" ? yi(a).test(e.data) || (s = this._getOrReturnCtx(e, s), m(s, {
5192
+ }), r.dirty()) : a.kind === "time" ? vi(a).test(e.data) || (s = this._getOrReturnCtx(e, s), m(s, {
5195
5193
  code: h.invalid_string,
5196
5194
  validation: "time",
5197
5195
  message: a.message
5198
- }), r.dirty()) : a.kind === "duration" ? li.test(e.data) || (s = this._getOrReturnCtx(e, s), m(s, {
5196
+ }), r.dirty()) : a.kind === "duration" ? pi.test(e.data) || (s = this._getOrReturnCtx(e, s), m(s, {
5199
5197
  validation: "duration",
5200
5198
  code: h.invalid_string,
5201
5199
  message: a.message
5202
- }), r.dirty()) : a.kind === "ip" ? vi(e.data, a.version) || (s = this._getOrReturnCtx(e, s), m(s, {
5200
+ }), r.dirty()) : a.kind === "ip" ? wi(e.data, a.version) || (s = this._getOrReturnCtx(e, s), m(s, {
5203
5201
  validation: "ip",
5204
5202
  code: h.invalid_string,
5205
5203
  message: a.message
5206
- }), r.dirty()) : a.kind === "base64" ? _i.test(e.data) || (s = this._getOrReturnCtx(e, s), m(s, {
5204
+ }), r.dirty()) : a.kind === "base64" ? gi.test(e.data) || (s = this._getOrReturnCtx(e, s), m(s, {
5207
5205
  validation: "base64",
5208
5206
  code: h.invalid_string,
5209
5207
  message: a.message
@@ -5425,7 +5423,7 @@ z.create = (n) => {
5425
5423
  ...S(n)
5426
5424
  });
5427
5425
  };
5428
- function wi(n, e) {
5426
+ function ki(n, e) {
5429
5427
  const t = (n.toString().split(".")[1] || "").length, r = (e.toString().split(".")[1] || "").length, s = t > r ? t : r, a = parseInt(n.toFixed(s).replace(".", "")), o = parseInt(e.toFixed(s).replace(".", ""));
5430
5428
  return a % o / Math.pow(10, s);
5431
5429
  }
@@ -5464,7 +5462,7 @@ class ve extends j {
5464
5462
  inclusive: a.inclusive,
5465
5463
  exact: !1,
5466
5464
  message: a.message
5467
- }), s.dirty()) : a.kind === "multipleOf" ? wi(e.data, a.value) !== 0 && (r = this._getOrReturnCtx(e, r), m(r, {
5465
+ }), s.dirty()) : a.kind === "multipleOf" ? ki(e.data, a.value) !== 0 && (r = this._getOrReturnCtx(e, r), m(r, {
5468
5466
  code: h.not_multiple_of,
5469
5467
  multipleOf: a.value,
5470
5468
  message: a.message
@@ -5747,7 +5745,7 @@ gt.create = (n) => new gt({
5747
5745
  coerce: (n == null ? void 0 : n.coerce) || !1,
5748
5746
  ...S(n)
5749
5747
  });
5750
- class Ne extends j {
5748
+ class Ee extends j {
5751
5749
  _parse(e) {
5752
5750
  if (this._def.coerce && (e.data = new Date(e.data)), this._getType(e) !== g.date) {
5753
5751
  const a = this._getOrReturnCtx(e);
@@ -5787,7 +5785,7 @@ class Ne extends j {
5787
5785
  };
5788
5786
  }
5789
5787
  _addCheck(e) {
5790
- return new Ne({
5788
+ return new Ee({
5791
5789
  ...this._def,
5792
5790
  checks: [...this._def.checks, e]
5793
5791
  });
@@ -5819,13 +5817,13 @@ class Ne extends j {
5819
5817
  return e != null ? new Date(e) : null;
5820
5818
  }
5821
5819
  }
5822
- Ne.create = (n) => new Ne({
5820
+ Ee.create = (n) => new Ee({
5823
5821
  checks: [],
5824
5822
  coerce: (n == null ? void 0 : n.coerce) || !1,
5825
5823
  typeName: k.ZodDate,
5826
5824
  ...S(n)
5827
5825
  });
5828
- class zt extends j {
5826
+ class Bt extends j {
5829
5827
  _parse(e) {
5830
5828
  if (this._getType(e) !== g.symbol) {
5831
5829
  const r = this._getOrReturnCtx(e);
@@ -5838,7 +5836,7 @@ class zt extends j {
5838
5836
  return M(e.data);
5839
5837
  }
5840
5838
  }
5841
- zt.create = (n) => new zt({
5839
+ Bt.create = (n) => new Bt({
5842
5840
  typeName: k.ZodSymbol,
5843
5841
  ...S(n)
5844
5842
  });
@@ -5876,7 +5874,7 @@ vt.create = (n) => new vt({
5876
5874
  typeName: k.ZodNull,
5877
5875
  ...S(n)
5878
5876
  });
5879
- class We extends j {
5877
+ class Ke extends j {
5880
5878
  constructor() {
5881
5879
  super(...arguments), this._any = !0;
5882
5880
  }
@@ -5884,7 +5882,7 @@ class We extends j {
5884
5882
  return M(e.data);
5885
5883
  }
5886
5884
  }
5887
- We.create = (n) => new We({
5885
+ Ke.create = (n) => new Ke({
5888
5886
  typeName: k.ZodAny,
5889
5887
  ...S(n)
5890
5888
  });
@@ -5914,7 +5912,7 @@ oe.create = (n) => new oe({
5914
5912
  typeName: k.ZodNever,
5915
5913
  ...S(n)
5916
5914
  });
5917
- class Bt extends j {
5915
+ class qt extends j {
5918
5916
  _parse(e) {
5919
5917
  if (this._getType(e) !== g.undefined) {
5920
5918
  const r = this._getOrReturnCtx(e);
@@ -5927,7 +5925,7 @@ class Bt extends j {
5927
5925
  return M(e.data);
5928
5926
  }
5929
5927
  }
5930
- Bt.create = (n) => new Bt({
5928
+ qt.create = (n) => new qt({
5931
5929
  typeName: k.ZodVoid,
5932
5930
  ...S(n)
5933
5931
  });
@@ -6004,23 +6002,23 @@ q.create = (n, e) => new q({
6004
6002
  typeName: k.ZodArray,
6005
6003
  ...S(e)
6006
6004
  });
6007
- function Me(n) {
6008
- if (n instanceof E) {
6005
+ function Le(n) {
6006
+ if (n instanceof N) {
6009
6007
  const e = {};
6010
6008
  for (const t in n.shape) {
6011
6009
  const r = n.shape[t];
6012
- e[t] = X.create(Me(r));
6010
+ e[t] = X.create(Le(r));
6013
6011
  }
6014
- return new E({
6012
+ return new N({
6015
6013
  ...n._def,
6016
6014
  shape: () => e
6017
6015
  });
6018
6016
  } else return n instanceof q ? new q({
6019
6017
  ...n._def,
6020
- type: Me(n.element)
6021
- }) : n instanceof X ? X.create(Me(n.unwrap())) : n instanceof xe ? xe.create(Me(n.unwrap())) : n instanceof re ? re.create(n.items.map((e) => Me(e))) : n;
6018
+ type: Le(n.element)
6019
+ }) : n instanceof X ? X.create(Le(n.unwrap())) : n instanceof xe ? xe.create(Le(n.unwrap())) : n instanceof re ? re.create(n.items.map((e) => Le(e))) : n;
6022
6020
  }
6023
- class E extends j {
6021
+ class N extends j {
6024
6022
  constructor() {
6025
6023
  super(...arguments), this._cached = null, this.nonstrict = this.passthrough, this.augment = this.extend;
6026
6024
  }
@@ -6097,7 +6095,7 @@ class E extends j {
6097
6095
  return this._def.shape();
6098
6096
  }
6099
6097
  strict(e) {
6100
- return v.errToObj, new E({
6098
+ return v.errToObj, new N({
6101
6099
  ...this._def,
6102
6100
  unknownKeys: "strict",
6103
6101
  ...e !== void 0 ? {
@@ -6114,13 +6112,13 @@ class E extends j {
6114
6112
  });
6115
6113
  }
6116
6114
  strip() {
6117
- return new E({
6115
+ return new N({
6118
6116
  ...this._def,
6119
6117
  unknownKeys: "strip"
6120
6118
  });
6121
6119
  }
6122
6120
  passthrough() {
6123
- return new E({
6121
+ return new N({
6124
6122
  ...this._def,
6125
6123
  unknownKeys: "passthrough"
6126
6124
  });
@@ -6143,7 +6141,7 @@ class E extends j {
6143
6141
  // }) as any;
6144
6142
  // };
6145
6143
  extend(e) {
6146
- return new E({
6144
+ return new N({
6147
6145
  ...this._def,
6148
6146
  shape: () => ({
6149
6147
  ...this._def.shape(),
@@ -6157,7 +6155,7 @@ class E extends j {
6157
6155
  * upgrade if you are experiencing issues.
6158
6156
  */
6159
6157
  merge(e) {
6160
- return new E({
6158
+ return new N({
6161
6159
  unknownKeys: e._def.unknownKeys,
6162
6160
  catchall: e._def.catchall,
6163
6161
  shape: () => ({
@@ -6227,7 +6225,7 @@ class E extends j {
6227
6225
  // return merged;
6228
6226
  // }
6229
6227
  catchall(e) {
6230
- return new E({
6228
+ return new N({
6231
6229
  ...this._def,
6232
6230
  catchall: e
6233
6231
  });
@@ -6236,7 +6234,7 @@ class E extends j {
6236
6234
  const t = {};
6237
6235
  return C.objectKeys(e).forEach((r) => {
6238
6236
  e[r] && this.shape[r] && (t[r] = this.shape[r]);
6239
- }), new E({
6237
+ }), new N({
6240
6238
  ...this._def,
6241
6239
  shape: () => t
6242
6240
  });
@@ -6245,7 +6243,7 @@ class E extends j {
6245
6243
  const t = {};
6246
6244
  return C.objectKeys(this.shape).forEach((r) => {
6247
6245
  e[r] || (t[r] = this.shape[r]);
6248
- }), new E({
6246
+ }), new N({
6249
6247
  ...this._def,
6250
6248
  shape: () => t
6251
6249
  });
@@ -6254,14 +6252,14 @@ class E extends j {
6254
6252
  * @deprecated
6255
6253
  */
6256
6254
  deepPartial() {
6257
- return Me(this);
6255
+ return Le(this);
6258
6256
  }
6259
6257
  partial(e) {
6260
6258
  const t = {};
6261
6259
  return C.objectKeys(this.shape).forEach((r) => {
6262
6260
  const s = this.shape[r];
6263
6261
  e && !e[r] ? t[r] = s : t[r] = s.optional();
6264
- }), new E({
6262
+ }), new N({
6265
6263
  ...this._def,
6266
6264
  shape: () => t
6267
6265
  });
@@ -6277,7 +6275,7 @@ class E extends j {
6277
6275
  a = a._def.innerType;
6278
6276
  t[r] = a;
6279
6277
  }
6280
- }), new E({
6278
+ }), new N({
6281
6279
  ...this._def,
6282
6280
  shape: () => t
6283
6281
  });
@@ -6286,21 +6284,21 @@ class E extends j {
6286
6284
  return qn(C.objectKeys(this.shape));
6287
6285
  }
6288
6286
  }
6289
- E.create = (n, e) => new E({
6287
+ N.create = (n, e) => new N({
6290
6288
  shape: () => n,
6291
6289
  unknownKeys: "strip",
6292
6290
  catchall: oe.create(),
6293
6291
  typeName: k.ZodObject,
6294
6292
  ...S(e)
6295
6293
  });
6296
- E.strictCreate = (n, e) => new E({
6294
+ N.strictCreate = (n, e) => new N({
6297
6295
  shape: () => n,
6298
6296
  unknownKeys: "strict",
6299
6297
  catchall: oe.create(),
6300
6298
  typeName: k.ZodObject,
6301
6299
  ...S(e)
6302
6300
  });
6303
- E.lazycreate = (n, e) => new E({
6301
+ N.lazycreate = (n, e) => new N({
6304
6302
  shape: n,
6305
6303
  unknownKeys: "strip",
6306
6304
  catchall: oe.create(),
@@ -6380,8 +6378,8 @@ wt.create = (n, e) => new wt({
6380
6378
  typeName: k.ZodUnion,
6381
6379
  ...S(e)
6382
6380
  });
6383
- const ae = (n) => n instanceof bt ? ae(n.schema) : n instanceof K ? ae(n.innerType()) : n instanceof Tt ? [n.value] : n instanceof ke ? n.options : n instanceof Ot ? C.objectValues(n.enum) : n instanceof St ? ae(n._def.innerType) : n instanceof yt ? [void 0] : n instanceof vt ? [null] : n instanceof X ? [void 0, ...ae(n.unwrap())] : n instanceof xe ? [null, ...ae(n.unwrap())] : n instanceof fn || n instanceof jt ? ae(n.unwrap()) : n instanceof Zt ? ae(n._def.innerType) : [];
6384
- class Jt extends j {
6381
+ const ae = (n) => n instanceof bt ? ae(n.schema) : n instanceof K ? ae(n.innerType()) : n instanceof Tt ? [n.value] : n instanceof ke ? n.options : n instanceof Ot ? C.objectValues(n.enum) : n instanceof St ? ae(n._def.innerType) : n instanceof yt ? [void 0] : n instanceof vt ? [null] : n instanceof X ? [void 0, ...ae(n.unwrap())] : n instanceof xe ? [null, ...ae(n.unwrap())] : n instanceof mn || n instanceof jt ? ae(n.unwrap()) : n instanceof Zt ? ae(n._def.innerType) : [];
6382
+ class Ht extends j {
6385
6383
  _parse(e) {
6386
6384
  const { ctx: t } = this._processInputParams(e);
6387
6385
  if (t.parsedType !== g.object)
@@ -6434,7 +6432,7 @@ class Jt extends j {
6434
6432
  s.set(c, a);
6435
6433
  }
6436
6434
  }
6437
- return new Jt({
6435
+ return new Ht({
6438
6436
  typeName: k.ZodDiscriminatedUnion,
6439
6437
  discriminator: e,
6440
6438
  options: t,
@@ -6443,14 +6441,14 @@ class Jt extends j {
6443
6441
  });
6444
6442
  }
6445
6443
  }
6446
- function cn(n, e) {
6444
+ function dn(n, e) {
6447
6445
  const t = fe(n), r = fe(e);
6448
6446
  if (n === e)
6449
6447
  return { valid: !0, data: n };
6450
6448
  if (t === g.object && r === g.object) {
6451
6449
  const s = C.objectKeys(e), a = C.objectKeys(n).filter((c) => s.indexOf(c) !== -1), o = { ...n, ...e };
6452
6450
  for (const c of a) {
6453
- const d = cn(n[c], e[c]);
6451
+ const d = dn(n[c], e[c]);
6454
6452
  if (!d.valid)
6455
6453
  return { valid: !1 };
6456
6454
  o[c] = d.data;
@@ -6461,7 +6459,7 @@ function cn(n, e) {
6461
6459
  return { valid: !1 };
6462
6460
  const s = [];
6463
6461
  for (let a = 0; a < n.length; a++) {
6464
- const o = n[a], c = e[a], d = cn(o, c);
6462
+ const o = n[a], c = e[a], d = dn(o, c);
6465
6463
  if (!d.valid)
6466
6464
  return { valid: !1 };
6467
6465
  s.push(d.data);
@@ -6472,10 +6470,10 @@ function cn(n, e) {
6472
6470
  class kt extends j {
6473
6471
  _parse(e) {
6474
6472
  const { status: t, ctx: r } = this._processInputParams(e), s = (a, o) => {
6475
- if (an(a) || an(o))
6473
+ if (on(a) || on(o))
6476
6474
  return x;
6477
- const c = cn(a.value, o.value);
6478
- return c.valid ? ((on(a) || on(o)) && t.dirty(), { status: t.value, value: c.data }) : (m(r, {
6475
+ const c = dn(a.value, o.value);
6476
+ return c.valid ? ((cn(a) || cn(o)) && t.dirty(), { status: t.value, value: c.data }) : (m(r, {
6479
6477
  code: h.invalid_intersection_types
6480
6478
  }), x);
6481
6479
  };
@@ -6598,7 +6596,7 @@ class xt extends j {
6598
6596
  });
6599
6597
  }
6600
6598
  }
6601
- class qt extends j {
6599
+ class Wt extends j {
6602
6600
  get keySchema() {
6603
6601
  return this._def.keyType;
6604
6602
  }
@@ -6640,13 +6638,13 @@ class qt extends j {
6640
6638
  }
6641
6639
  }
6642
6640
  }
6643
- qt.create = (n, e, t) => new qt({
6641
+ Wt.create = (n, e, t) => new Wt({
6644
6642
  valueType: e,
6645
6643
  keyType: n,
6646
6644
  typeName: k.ZodMap,
6647
6645
  ...S(t)
6648
6646
  });
6649
- class Ee extends j {
6647
+ class Ne extends j {
6650
6648
  _parse(e) {
6651
6649
  const { status: t, ctx: r } = this._processInputParams(e);
6652
6650
  if (r.parsedType !== g.set)
@@ -6685,13 +6683,13 @@ class Ee extends j {
6685
6683
  return r.common.async ? Promise.all(c).then((d) => o(d)) : o(c);
6686
6684
  }
6687
6685
  min(e, t) {
6688
- return new Ee({
6686
+ return new Ne({
6689
6687
  ...this._def,
6690
6688
  minSize: { value: e, message: v.toString(t) }
6691
6689
  });
6692
6690
  }
6693
6691
  max(e, t) {
6694
- return new Ee({
6692
+ return new Ne({
6695
6693
  ...this._def,
6696
6694
  maxSize: { value: e, message: v.toString(t) }
6697
6695
  });
@@ -6703,14 +6701,14 @@ class Ee extends j {
6703
6701
  return this.min(1, e);
6704
6702
  }
6705
6703
  }
6706
- Ee.create = (n, e) => new Ee({
6704
+ Ne.create = (n, e) => new Ne({
6707
6705
  valueType: n,
6708
6706
  minSize: null,
6709
6707
  maxSize: null,
6710
6708
  typeName: k.ZodSet,
6711
6709
  ...S(e)
6712
6710
  });
6713
- class Ue extends j {
6711
+ class Fe extends j {
6714
6712
  constructor() {
6715
6713
  super(...arguments), this.validate = this.implement;
6716
6714
  }
@@ -6723,14 +6721,14 @@ class Ue extends j {
6723
6721
  received: t.parsedType
6724
6722
  }), x;
6725
6723
  function r(c, d) {
6726
- return Ut({
6724
+ return Ft({
6727
6725
  data: c,
6728
6726
  path: t.path,
6729
6727
  errorMaps: [
6730
6728
  t.common.contextualErrorMap,
6731
6729
  t.schemaErrorMap,
6732
- Vt(),
6733
- qe
6730
+ Ut(),
6731
+ We
6734
6732
  ].filter((u) => !!u),
6735
6733
  issueData: {
6736
6734
  code: h.invalid_arguments,
@@ -6739,14 +6737,14 @@ class Ue extends j {
6739
6737
  });
6740
6738
  }
6741
6739
  function s(c, d) {
6742
- return Ut({
6740
+ return Ft({
6743
6741
  data: c,
6744
6742
  path: t.path,
6745
6743
  errorMaps: [
6746
6744
  t.common.contextualErrorMap,
6747
6745
  t.schemaErrorMap,
6748
- Vt(),
6749
- qe
6746
+ Ut(),
6747
+ We
6750
6748
  ].filter((u) => !!u),
6751
6749
  issueData: {
6752
6750
  code: h.invalid_return_type,
@@ -6755,7 +6753,7 @@ class Ue extends j {
6755
6753
  });
6756
6754
  }
6757
6755
  const a = { errorMap: t.common.contextualErrorMap }, o = t.data;
6758
- if (this._def.returns instanceof Ke) {
6756
+ if (this._def.returns instanceof Qe) {
6759
6757
  const c = this;
6760
6758
  return M(async function(...d) {
6761
6759
  const u = new U([]), l = await c._def.args.parseAsync(d, a).catch((L) => {
@@ -6785,13 +6783,13 @@ class Ue extends j {
6785
6783
  return this._def.returns;
6786
6784
  }
6787
6785
  args(...e) {
6788
- return new Ue({
6786
+ return new Fe({
6789
6787
  ...this._def,
6790
6788
  args: re.create(e).rest(je.create())
6791
6789
  });
6792
6790
  }
6793
6791
  returns(e) {
6794
- return new Ue({
6792
+ return new Fe({
6795
6793
  ...this._def,
6796
6794
  returns: e
6797
6795
  });
@@ -6803,7 +6801,7 @@ class Ue extends j {
6803
6801
  return this.parse(e);
6804
6802
  }
6805
6803
  static create(e, t, r) {
6806
- return new Ue({
6804
+ return new Fe({
6807
6805
  args: e || re.create([]).rest(je.create()),
6808
6806
  returns: t || je.create(),
6809
6807
  typeName: k.ZodFunction,
@@ -6866,7 +6864,7 @@ class ke extends j {
6866
6864
  code: h.invalid_type
6867
6865
  }), x;
6868
6866
  }
6869
- if (Ft(this, Xe) || Un(this, Xe, new Set(this._def.values)), !Ft(this, Xe).has(e.data)) {
6867
+ if (zt(this, Xe) || Un(this, Xe, new Set(this._def.values)), !zt(this, Xe).has(e.data)) {
6870
6868
  const t = this._getOrReturnCtx(e), r = this._def.values;
6871
6869
  return m(t, {
6872
6870
  received: t.data,
@@ -6926,7 +6924,7 @@ class Ot extends j {
6926
6924
  code: h.invalid_type
6927
6925
  }), x;
6928
6926
  }
6929
- if (Ft(this, et) || Un(this, et, new Set(C.getValidEnumValues(this._def.values))), !Ft(this, et).has(e.data)) {
6927
+ if (zt(this, et) || Un(this, et, new Set(C.getValidEnumValues(this._def.values))), !zt(this, et).has(e.data)) {
6930
6928
  const s = C.objectValues(t);
6931
6929
  return m(r, {
6932
6930
  received: r.data,
@@ -6946,7 +6944,7 @@ Ot.create = (n, e) => new Ot({
6946
6944
  typeName: k.ZodNativeEnum,
6947
6945
  ...S(e)
6948
6946
  });
6949
- class Ke extends j {
6947
+ class Qe extends j {
6950
6948
  unwrap() {
6951
6949
  return this._def.type;
6952
6950
  }
@@ -6965,7 +6963,7 @@ class Ke extends j {
6965
6963
  })));
6966
6964
  }
6967
6965
  }
6968
- Ke.create = (n, e) => new Ke({
6966
+ Qe.create = (n, e) => new Qe({
6969
6967
  type: n,
6970
6968
  typeName: k.ZodPromise,
6971
6969
  ...S(e)
@@ -6997,7 +6995,7 @@ class K extends j {
6997
6995
  path: r.path,
6998
6996
  parent: r
6999
6997
  });
7000
- return d.status === "aborted" ? x : d.status === "dirty" || t.value === "dirty" ? Le(d.value) : d;
6998
+ return d.status === "aborted" ? x : d.status === "dirty" || t.value === "dirty" ? Ve(d.value) : d;
7001
6999
  });
7002
7000
  {
7003
7001
  if (t.value === "aborted")
@@ -7007,7 +7005,7 @@ class K extends j {
7007
7005
  path: r.path,
7008
7006
  parent: r
7009
7007
  });
7010
- return c.status === "aborted" ? x : c.status === "dirty" || t.value === "dirty" ? Le(c.value) : c;
7008
+ return c.status === "aborted" ? x : c.status === "dirty" || t.value === "dirty" ? Ve(c.value) : c;
7011
7009
  }
7012
7010
  }
7013
7011
  if (s.type === "refinement") {
@@ -7148,7 +7146,7 @@ Zt.create = (n, e) => new Zt({
7148
7146
  catchValue: typeof e.catch == "function" ? e.catch : () => e.catch,
7149
7147
  ...S(e)
7150
7148
  });
7151
- class Wt extends j {
7149
+ class Kt extends j {
7152
7150
  _parse(e) {
7153
7151
  if (this._getType(e) !== g.nan) {
7154
7152
  const r = this._getOrReturnCtx(e);
@@ -7161,12 +7159,12 @@ class Wt extends j {
7161
7159
  return { status: "valid", value: e.data };
7162
7160
  }
7163
7161
  }
7164
- Wt.create = (n) => new Wt({
7162
+ Kt.create = (n) => new Kt({
7165
7163
  typeName: k.ZodNaN,
7166
7164
  ...S(n)
7167
7165
  });
7168
- const ki = Symbol("zod_brand");
7169
- class fn extends j {
7166
+ const xi = Symbol("zod_brand");
7167
+ class mn extends j {
7170
7168
  _parse(e) {
7171
7169
  const { ctx: t } = this._processInputParams(e), r = t.data;
7172
7170
  return this._def.type._parse({
@@ -7189,7 +7187,7 @@ class Ct extends j {
7189
7187
  path: r.path,
7190
7188
  parent: r
7191
7189
  });
7192
- return a.status === "aborted" ? x : a.status === "dirty" ? (t.dirty(), Le(a.value)) : this._def.out._parseAsync({
7190
+ return a.status === "aborted" ? x : a.status === "dirty" ? (t.dirty(), Ve(a.value)) : this._def.out._parseAsync({
7193
7191
  data: a.value,
7194
7192
  path: r.path,
7195
7193
  parent: r
@@ -7234,24 +7232,24 @@ jt.create = (n, e) => new jt({
7234
7232
  ...S(e)
7235
7233
  });
7236
7234
  function Wn(n, e = {}, t) {
7237
- return n ? We.create().superRefine((r, s) => {
7235
+ return n ? Ke.create().superRefine((r, s) => {
7238
7236
  var a, o;
7239
7237
  if (!n(r)) {
7240
7238
  const c = typeof e == "function" ? e(r) : typeof e == "string" ? { message: e } : e, d = (o = (a = c.fatal) !== null && a !== void 0 ? a : t) !== null && o !== void 0 ? o : !0, u = typeof c == "string" ? { message: c } : c;
7241
7239
  s.addIssue({ code: "custom", ...u, fatal: d });
7242
7240
  }
7243
- }) : We.create();
7241
+ }) : Ke.create();
7244
7242
  }
7245
- const xi = {
7246
- object: E.lazycreate
7243
+ const bi = {
7244
+ object: N.lazycreate
7247
7245
  };
7248
7246
  var k;
7249
7247
  (function(n) {
7250
7248
  n.ZodString = "ZodString", n.ZodNumber = "ZodNumber", n.ZodNaN = "ZodNaN", n.ZodBigInt = "ZodBigInt", n.ZodBoolean = "ZodBoolean", n.ZodDate = "ZodDate", n.ZodSymbol = "ZodSymbol", n.ZodUndefined = "ZodUndefined", n.ZodNull = "ZodNull", n.ZodAny = "ZodAny", n.ZodUnknown = "ZodUnknown", n.ZodNever = "ZodNever", n.ZodVoid = "ZodVoid", n.ZodArray = "ZodArray", n.ZodObject = "ZodObject", n.ZodUnion = "ZodUnion", n.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", n.ZodIntersection = "ZodIntersection", n.ZodTuple = "ZodTuple", n.ZodRecord = "ZodRecord", n.ZodMap = "ZodMap", n.ZodSet = "ZodSet", n.ZodFunction = "ZodFunction", n.ZodLazy = "ZodLazy", n.ZodLiteral = "ZodLiteral", n.ZodEnum = "ZodEnum", n.ZodEffects = "ZodEffects", n.ZodNativeEnum = "ZodNativeEnum", n.ZodOptional = "ZodOptional", n.ZodNullable = "ZodNullable", n.ZodDefault = "ZodDefault", n.ZodCatch = "ZodCatch", n.ZodPromise = "ZodPromise", n.ZodBranded = "ZodBranded", n.ZodPipeline = "ZodPipeline", n.ZodReadonly = "ZodReadonly";
7251
7249
  })(k || (k = {}));
7252
- const bi = (n, e = {
7250
+ const Ti = (n, e = {
7253
7251
  message: `Input not instance of ${n.name}`
7254
- }) => Wn((t) => t instanceof n, e), Kn = z.create, Qn = ve.create, Ti = Wt.create, Oi = we.create, Jn = gt.create, Si = Ne.create, Zi = zt.create, ji = yt.create, Ii = vt.create, Ci = We.create, Ni = je.create, Ei = oe.create, Ai = Bt.create, Ri = q.create, $i = E.create, Pi = E.strictCreate, Di = wt.create, Mi = Jt.create, Li = kt.create, Vi = re.create, Ui = xt.create, Fi = qt.create, zi = Ee.create, Bi = Ue.create, qi = bt.create, Wi = Tt.create, Ki = ke.create, Qi = Ot.create, Ji = Ke.create, kn = K.create, Hi = X.create, Yi = xe.create, Gi = K.createWithPreprocess, Xi = Ct.create, eo = () => Kn().optional(), to = () => Qn().optional(), no = () => Jn().optional(), ro = {
7252
+ }) => Wn((t) => t instanceof n, e), Kn = z.create, Qn = ve.create, Oi = Kt.create, Si = we.create, Jn = gt.create, Zi = Ee.create, ji = Bt.create, Ii = yt.create, Ci = vt.create, Ei = Ke.create, Ni = je.create, Ai = oe.create, Ri = qt.create, $i = q.create, Pi = N.create, Di = N.strictCreate, Mi = wt.create, Li = Ht.create, Vi = kt.create, Ui = re.create, Fi = xt.create, zi = Wt.create, Bi = Ne.create, qi = Fe.create, Wi = bt.create, Ki = Tt.create, Qi = ke.create, Ji = Ot.create, Hi = Qe.create, kn = K.create, Yi = X.create, Gi = xe.create, Xi = K.createWithPreprocess, eo = Ct.create, to = () => Kn().optional(), no = () => Qn().optional(), ro = () => Jn().optional(), so = {
7255
7253
  string: (n) => z.create({ ...n, coerce: !0 }),
7256
7254
  number: (n) => ve.create({ ...n, coerce: !0 }),
7257
7255
  boolean: (n) => gt.create({
@@ -7259,29 +7257,29 @@ const bi = (n, e = {
7259
7257
  coerce: !0
7260
7258
  }),
7261
7259
  bigint: (n) => we.create({ ...n, coerce: !0 }),
7262
- date: (n) => Ne.create({ ...n, coerce: !0 })
7263
- }, so = x;
7264
- var ao = /* @__PURE__ */ Object.freeze({
7260
+ date: (n) => Ee.create({ ...n, coerce: !0 })
7261
+ }, ao = x;
7262
+ var io = /* @__PURE__ */ Object.freeze({
7265
7263
  __proto__: null,
7266
- defaultErrorMap: qe,
7267
- setErrorMap: si,
7268
- getErrorMap: Vt,
7269
- makeIssue: Ut,
7270
- EMPTY_PATH: ai,
7264
+ defaultErrorMap: We,
7265
+ setErrorMap: ai,
7266
+ getErrorMap: Ut,
7267
+ makeIssue: Ft,
7268
+ EMPTY_PATH: ii,
7271
7269
  addIssueToContext: m,
7272
7270
  ParseStatus: P,
7273
7271
  INVALID: x,
7274
- DIRTY: Le,
7272
+ DIRTY: Ve,
7275
7273
  OK: M,
7276
- isAborted: an,
7277
- isDirty: on,
7274
+ isAborted: on,
7275
+ isDirty: cn,
7278
7276
  isValid: mt,
7279
7277
  isAsync: _t,
7280
7278
  get util() {
7281
7279
  return C;
7282
7280
  },
7283
7281
  get objectUtil() {
7284
- return sn;
7282
+ return an;
7285
7283
  },
7286
7284
  ZodParsedType: g,
7287
7285
  getParsedType: fe,
@@ -7291,160 +7289,210 @@ var ao = /* @__PURE__ */ Object.freeze({
7291
7289
  ZodNumber: ve,
7292
7290
  ZodBigInt: we,
7293
7291
  ZodBoolean: gt,
7294
- ZodDate: Ne,
7295
- ZodSymbol: zt,
7292
+ ZodDate: Ee,
7293
+ ZodSymbol: Bt,
7296
7294
  ZodUndefined: yt,
7297
7295
  ZodNull: vt,
7298
- ZodAny: We,
7296
+ ZodAny: Ke,
7299
7297
  ZodUnknown: je,
7300
7298
  ZodNever: oe,
7301
- ZodVoid: Bt,
7299
+ ZodVoid: qt,
7302
7300
  ZodArray: q,
7303
- ZodObject: E,
7301
+ ZodObject: N,
7304
7302
  ZodUnion: wt,
7305
- ZodDiscriminatedUnion: Jt,
7303
+ ZodDiscriminatedUnion: Ht,
7306
7304
  ZodIntersection: kt,
7307
7305
  ZodTuple: re,
7308
7306
  ZodRecord: xt,
7309
- ZodMap: qt,
7310
- ZodSet: Ee,
7311
- ZodFunction: Ue,
7307
+ ZodMap: Wt,
7308
+ ZodSet: Ne,
7309
+ ZodFunction: Fe,
7312
7310
  ZodLazy: bt,
7313
7311
  ZodLiteral: Tt,
7314
7312
  ZodEnum: ke,
7315
7313
  ZodNativeEnum: Ot,
7316
- ZodPromise: Ke,
7314
+ ZodPromise: Qe,
7317
7315
  ZodEffects: K,
7318
7316
  ZodTransformer: K,
7319
7317
  ZodOptional: X,
7320
7318
  ZodNullable: xe,
7321
7319
  ZodDefault: St,
7322
7320
  ZodCatch: Zt,
7323
- ZodNaN: Wt,
7324
- BRAND: ki,
7325
- ZodBranded: fn,
7321
+ ZodNaN: Kt,
7322
+ BRAND: xi,
7323
+ ZodBranded: mn,
7326
7324
  ZodPipeline: Ct,
7327
7325
  ZodReadonly: jt,
7328
7326
  custom: Wn,
7329
7327
  Schema: j,
7330
7328
  ZodSchema: j,
7331
- late: xi,
7329
+ late: bi,
7332
7330
  get ZodFirstPartyTypeKind() {
7333
7331
  return k;
7334
7332
  },
7335
- coerce: ro,
7336
- any: Ci,
7337
- array: Ri,
7338
- bigint: Oi,
7333
+ coerce: so,
7334
+ any: Ei,
7335
+ array: $i,
7336
+ bigint: Si,
7339
7337
  boolean: Jn,
7340
- date: Si,
7341
- discriminatedUnion: Mi,
7338
+ date: Zi,
7339
+ discriminatedUnion: Li,
7342
7340
  effect: kn,
7343
- enum: Ki,
7344
- function: Bi,
7345
- instanceof: bi,
7346
- intersection: Li,
7347
- lazy: qi,
7348
- literal: Wi,
7349
- map: Fi,
7350
- nan: Ti,
7351
- nativeEnum: Qi,
7352
- never: Ei,
7353
- null: Ii,
7354
- nullable: Yi,
7341
+ enum: Qi,
7342
+ function: qi,
7343
+ instanceof: Ti,
7344
+ intersection: Vi,
7345
+ lazy: Wi,
7346
+ literal: Ki,
7347
+ map: zi,
7348
+ nan: Oi,
7349
+ nativeEnum: Ji,
7350
+ never: Ai,
7351
+ null: Ci,
7352
+ nullable: Gi,
7355
7353
  number: Qn,
7356
- object: $i,
7357
- oboolean: no,
7358
- onumber: to,
7359
- optional: Hi,
7360
- ostring: eo,
7361
- pipeline: Xi,
7362
- preprocess: Gi,
7363
- promise: Ji,
7364
- record: Ui,
7365
- set: zi,
7366
- strictObject: Pi,
7354
+ object: Pi,
7355
+ oboolean: ro,
7356
+ onumber: no,
7357
+ optional: Yi,
7358
+ ostring: to,
7359
+ pipeline: eo,
7360
+ preprocess: Xi,
7361
+ promise: Hi,
7362
+ record: Fi,
7363
+ set: Bi,
7364
+ strictObject: Di,
7367
7365
  string: Kn,
7368
- symbol: Zi,
7366
+ symbol: ji,
7369
7367
  transformer: kn,
7370
- tuple: Vi,
7371
- undefined: ji,
7372
- union: Di,
7368
+ tuple: Ui,
7369
+ undefined: Ii,
7370
+ union: Mi,
7373
7371
  unknown: Ni,
7374
- void: Ai,
7375
- NEVER: so,
7372
+ void: Ri,
7373
+ NEVER: ao,
7376
7374
  ZodIssueCode: h,
7377
- quotelessJson: ri,
7375
+ quotelessJson: si,
7378
7376
  ZodError: U
7379
7377
  });
7380
- ni(ao);
7381
- function mn(n, e = "", t = {}) {
7378
+ ri(io);
7379
+ function Et(n, e = "", t = {}) {
7382
7380
  for (let r in n)
7383
7381
  if (Object.prototype.hasOwnProperty.call(n, r)) {
7384
7382
  const s = e ? `${e}_${r}` : r;
7385
- typeof n[r] == "object" && n[r] !== null && !Array.isArray(n[r]) ? mn(n[r], s, t) : t[s] = n[r];
7383
+ typeof n[r] == "object" && n[r] !== null && !Array.isArray(n[r]) ? Et(n[r], s, t) : t[s] = n[r];
7386
7384
  }
7387
7385
  return t;
7388
7386
  }
7389
- function io(n) {
7387
+ function oo(n, e) {
7388
+ const t = {};
7389
+ for (const [r, s] of Object.entries(n)) {
7390
+ let a = t;
7391
+ const o = r.split("_");
7392
+ let c = !1;
7393
+ if (o.forEach((d, u) => {
7394
+ const l = o.slice(0, u + 1).join("_");
7395
+ e.includes(l) && u < o.length - 1 ? (c = !0, a[d] || (a[d] = {}), a = a[d]) : u === o.length - 1 ? a[d] = s : (a[d] || (a[d] = {}), a = a[d]);
7396
+ }), !c && o.length > 1) {
7397
+ let d = t;
7398
+ o.forEach((u) => {
7399
+ d[u] || (d[u] = {}), d = d[u];
7400
+ }), d[o.at(-1)] = s;
7401
+ }
7402
+ }
7403
+ return t;
7404
+ }
7405
+ function co(n) {
7390
7406
  return async (e, t) => {
7391
7407
  const r = {
7392
- themeId: Qe(),
7408
+ themeId: Re(),
7393
7409
  ...t,
7394
7410
  created_at: (/* @__PURE__ */ new Date()).toISOString(),
7395
7411
  updated_at: (/* @__PURE__ */ new Date()).toISOString()
7396
7412
  };
7397
- return await n.insertInto("themes").values({ ...mn(r), tenant_id: e }).execute(), r;
7413
+ return await n.insertInto("themes").values({ ...Et(r), tenant_id: e }).execute(), r;
7398
7414
  };
7399
7415
  }
7400
- function oo(n) {
7416
+ function uo(n) {
7401
7417
  return async (e, t) => (await n.deleteFrom("themes").where("themes.tenant_id", "=", e).where("themes.theme_id", "=", t).executeTakeFirst()).numDeletedRows > 0;
7402
7418
  }
7403
- function co(n) {
7419
+ function lo(n) {
7404
7420
  return async (e, t) => {
7405
7421
  const r = await n.selectFrom("themes").where("themes.tenant_id", "=", e).where("themes.theme_id", "=", t).selectAll().executeTakeFirst();
7406
7422
  return r ? R(r) : null;
7407
7423
  };
7408
7424
  }
7409
- function uo(n) {
7425
+ function po(n) {
7410
7426
  return async (e, t, r) => {
7411
- const s = mn({
7427
+ const s = Et({
7412
7428
  ...r,
7413
7429
  updated_at: (/* @__PURE__ */ new Date()).toISOString()
7414
7430
  });
7415
7431
  return await n.updateTable("themes").set(s).where("themes.id", "=", t).where("themes.tenant_id", "=", e).execute(), !0;
7416
7432
  };
7417
7433
  }
7418
- function lo(n) {
7434
+ function ho(n) {
7419
7435
  return {
7420
- create: io(n),
7421
- get: co(n),
7422
- remove: oo(n),
7423
- update: uo(n)
7436
+ create: co(n),
7437
+ get: lo(n),
7438
+ remove: uo(n),
7439
+ update: po(n)
7424
7440
  };
7425
7441
  }
7426
- function ho(n) {
7442
+ function fo(n) {
7443
+ return async (e, t) => {
7444
+ const r = (/* @__PURE__ */ new Date()).toISOString(), s = await n.selectFrom("logins").where("logins.tenant_id", "=", e).where("logins.expires_at", ">", r).where("logins.id", "=", t).selectAll().executeTakeFirst();
7445
+ return s ? _s.parse(oo(s, ["authParams"])) : null;
7446
+ };
7447
+ }
7448
+ function mo(n) {
7449
+ return async (e, t) => {
7450
+ const r = {
7451
+ id: Re(),
7452
+ ...t,
7453
+ created_at: (/* @__PURE__ */ new Date()).toISOString(),
7454
+ updated_at: (/* @__PURE__ */ new Date()).toISOString()
7455
+ };
7456
+ return await n.insertInto("logins").values({ ...Et(r), tenant_id: e }).execute(), r;
7457
+ };
7458
+ }
7459
+ function _o(n) {
7460
+ return async (e, t, r) => (await n.updateTable("logins").set(Et(r)).where("id", "=", t).where("tenant_id", "=", e).execute()).length === 1;
7461
+ }
7462
+ function go(n) {
7463
+ return async (e, t) => (await n.deleteFrom("logins").where("logins.tenant_id", "=", e).where("logins.id", "=", t).execute()).length > 0;
7464
+ }
7465
+ function yo(n) {
7466
+ return {
7467
+ create: mo(n),
7468
+ get: fo(n),
7469
+ update: _o(n),
7470
+ remove: go(n)
7471
+ };
7472
+ }
7473
+ function wo(n) {
7427
7474
  return {
7428
- applications: Za(n),
7429
- authenticationCodes: Ka(n),
7430
- branding: Ba(n),
7431
- clients: Ra(n),
7432
- codes: ga(n),
7433
- connections: Aa(n),
7434
- domains: Ua(n),
7435
- hooks: Xa(n),
7436
- keys: Ma(n),
7437
- logs: Qs(n),
7438
- OTP: ca(n),
7439
- passwords: pa(n),
7440
- users: Ps(n),
7441
- sessions: ea(n),
7442
- tenants: zs(n),
7443
- themes: lo(n),
7444
- tickets: sa(n),
7445
- universalLoginSessions: ka(n)
7475
+ applications: ja(n),
7476
+ authenticationCodes: Qa(n),
7477
+ branding: qa(n),
7478
+ clients: $a(n),
7479
+ codes: ya(n),
7480
+ connections: Ra(n),
7481
+ domains: Fa(n),
7482
+ hooks: ei(n),
7483
+ keys: La(n),
7484
+ login: yo(n),
7485
+ logs: Js(n),
7486
+ OTP: da(n),
7487
+ passwords: ha(n),
7488
+ users: Ds(n),
7489
+ sessions: ta(n),
7490
+ tenants: Bs(n),
7491
+ themes: ho(n),
7492
+ tickets: aa(n),
7493
+ universalLoginSessions: xa(n)
7446
7494
  };
7447
7495
  }
7448
7496
  export {
7449
- ho as default
7497
+ wo as default
7450
7498
  };