@authhero/kysely-adapter 0.6.1 → 0.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -71,7 +71,7 @@ function tr(n) {
71
71
  return;
72
72
  n.ZodType.prototype.openapi = function(s, a) {
73
73
  var o, c, d, u, l, T;
74
- const A = typeof s == "string" ? a : s, L = A ?? {}, { param: Q } = L, se = Xn(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 ? {
74
+ const E = typeof s == "string" ? a : s, L = E ?? {}, { param: Q } = L, se = Xn(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 ? {
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")) {
@@ -1603,13 +1603,13 @@ B.create = (n, e) => new B({
1603
1603
  ...O(e)
1604
1604
  });
1605
1605
  function Me(n) {
1606
- if (n instanceof E) {
1606
+ if (n instanceof N) {
1607
1607
  const e = {};
1608
1608
  for (const t in n.shape) {
1609
1609
  const r = n.shape[t];
1610
1610
  e[t] = G.create(Me(r));
1611
1611
  }
1612
- return new E({
1612
+ return new N({
1613
1613
  ...n._def,
1614
1614
  shape: () => e
1615
1615
  });
@@ -1618,7 +1618,7 @@ function Me(n) {
1618
1618
  type: Me(n.element)
1619
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 E extends Z {
1621
+ class N 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 E extends Z {
1695
1695
  return this._def.shape();
1696
1696
  }
1697
1697
  strict(e) {
1698
- return y.errToObj, new E({
1698
+ return y.errToObj, new N({
1699
1699
  ...this._def,
1700
1700
  unknownKeys: "strict",
1701
1701
  ...e !== void 0 ? {
@@ -1712,13 +1712,13 @@ class E extends Z {
1712
1712
  });
1713
1713
  }
1714
1714
  strip() {
1715
- return new E({
1715
+ return new N({
1716
1716
  ...this._def,
1717
1717
  unknownKeys: "strip"
1718
1718
  });
1719
1719
  }
1720
1720
  passthrough() {
1721
- return new E({
1721
+ return new N({
1722
1722
  ...this._def,
1723
1723
  unknownKeys: "passthrough"
1724
1724
  });
@@ -1741,7 +1741,7 @@ class E extends Z {
1741
1741
  // }) as any;
1742
1742
  // };
1743
1743
  extend(e) {
1744
- return new E({
1744
+ return new N({
1745
1745
  ...this._def,
1746
1746
  shape: () => ({
1747
1747
  ...this._def.shape(),
@@ -1755,7 +1755,7 @@ class E extends Z {
1755
1755
  * upgrade if you are experiencing issues.
1756
1756
  */
1757
1757
  merge(e) {
1758
- return new E({
1758
+ return new N({
1759
1759
  unknownKeys: e._def.unknownKeys,
1760
1760
  catchall: e._def.catchall,
1761
1761
  shape: () => ({
@@ -1825,7 +1825,7 @@ class E extends Z {
1825
1825
  // return merged;
1826
1826
  // }
1827
1827
  catchall(e) {
1828
- return new E({
1828
+ return new N({
1829
1829
  ...this._def,
1830
1830
  catchall: e
1831
1831
  });
@@ -1834,7 +1834,7 @@ class E 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 E({
1837
+ }), new N({
1838
1838
  ...this._def,
1839
1839
  shape: () => t
1840
1840
  });
@@ -1843,7 +1843,7 @@ class E 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 E({
1846
+ }), new N({
1847
1847
  ...this._def,
1848
1848
  shape: () => t
1849
1849
  });
@@ -1859,7 +1859,7 @@ class E extends Z {
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 E({
1862
+ }), new N({
1863
1863
  ...this._def,
1864
1864
  shape: () => t
1865
1865
  });
@@ -1875,7 +1875,7 @@ class E extends Z {
1875
1875
  s = s._def.innerType;
1876
1876
  t[r] = s;
1877
1877
  }
1878
- }), new E({
1878
+ }), new N({
1879
1879
  ...this._def,
1880
1880
  shape: () => t
1881
1881
  });
@@ -1884,21 +1884,21 @@ class E extends Z {
1884
1884
  return Zn(I.objectKeys(this.shape));
1885
1885
  }
1886
1886
  }
1887
- E.create = (n, e) => new E({
1887
+ N.create = (n, e) => new N({
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
- E.strictCreate = (n, e) => new E({
1894
+ N.strictCreate = (n, e) => new N({
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
- E.lazycreate = (n, e) => new E({
1901
+ N.lazycreate = (n, e) => new N({
1902
1902
  shape: n,
1903
1903
  unknownKeys: "strip",
1904
1904
  catchall: ie.create(),
@@ -2356,11 +2356,11 @@ class Ue extends Z {
2356
2356
  if (this._def.returns instanceof qe) {
2357
2357
  const c = this;
2358
2358
  return D(async function(...d) {
2359
- const u = new V([]), l = await c._def.args.parseAsync(d, a).catch((A) => {
2360
- throw u.addIssue(r(d, A)), u;
2359
+ const u = new V([]), l = await c._def.args.parseAsync(d, a).catch((E) => {
2360
+ throw u.addIssue(r(d, E)), u;
2361
2361
  }), T = await Reflect.apply(o, this, l);
2362
- return await c._def.returns._def.type.parseAsync(T, a).catch((A) => {
2363
- throw u.addIssue(s(T, A)), u;
2362
+ return await c._def.returns._def.type.parseAsync(T, a).catch((E) => {
2363
+ throw u.addIssue(s(T, E)), u;
2364
2364
  });
2365
2365
  });
2366
2366
  } else {
@@ -2841,7 +2841,7 @@ function jn(n, e = {}, t) {
2841
2841
  }) : Be.create();
2842
2842
  }
2843
2843
  const kr = {
2844
- object: E.lazycreate
2844
+ object: N.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 = 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 = {
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 = N.create, $r = N.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({
@@ -2898,7 +2898,7 @@ var i = /* @__PURE__ */ Object.freeze({
2898
2898
  ZodNever: ie,
2899
2899
  ZodVoid: Mt,
2900
2900
  ZodArray: B,
2901
- ZodObject: E,
2901
+ ZodObject: N,
2902
2902
  ZodUnion: it,
2903
2903
  ZodDiscriminatedUnion: Qt,
2904
2904
  ZodIntersection: ot,
@@ -3177,7 +3177,9 @@ const fs = i.object({
3177
3177
  trigger_id: i.enum(["post-user-registration", "post-user-login"]),
3178
3178
  enabled: i.boolean().default(!1),
3179
3179
  url: i.string(),
3180
- hook_id: i.string().optional()
3180
+ hook_id: i.string().optional(),
3181
+ synchronous: i.boolean().default(!1),
3182
+ priority: i.number().optional()
3181
3183
  });
3182
3184
  fs.extend({
3183
3185
  ...ln.shape,
@@ -3602,7 +3604,7 @@ function As(n) {
3602
3604
  }
3603
3605
  const a = await r.offset(t.page * t.per_page).limit(t.per_page).selectAll().execute(), o = a.map((l) => l.user_id), c = o.length ? await n.selectFrom("users").selectAll().where("users.tenant_id", "=", e).where("users.linked_to", "in", o).execute() : [], d = a.map((l) => {
3604
3606
  const T = c.filter(
3605
- (A) => A.linked_to === l.user_id
3607
+ (E) => E.linked_to === l.user_id
3606
3608
  );
3607
3609
  return R({
3608
3610
  ...l,
@@ -3925,10 +3927,10 @@ function oa(n) {
3925
3927
  response_type: u,
3926
3928
  redirect_uri: l,
3927
3929
  client_id: T,
3928
- ...A
3930
+ ...E
3929
3931
  } = a;
3930
3932
  return {
3931
- ...A,
3933
+ ...E,
3932
3934
  // TODO: this will be removed in the next version of the adapter
3933
3935
  client_id: T,
3934
3936
  authParams: {
@@ -4060,7 +4062,7 @@ function wa(n) {
4060
4062
  nonce: u,
4061
4063
  scope: l,
4062
4064
  code_challenge_method: T,
4063
- code_challenge: A,
4065
+ code_challenge: E,
4064
4066
  username: L,
4065
4067
  vendor_id: Q,
4066
4068
  ...se
@@ -4079,7 +4081,7 @@ function wa(n) {
4079
4081
  scope: l,
4080
4082
  // @ts-ignore
4081
4083
  code_challenge_method: T,
4082
- code_challenge: A,
4084
+ code_challenge: E,
4083
4085
  username: L
4084
4086
  }
4085
4087
  };
@@ -4315,7 +4317,7 @@ function Ba(n) {
4315
4317
  }
4316
4318
  function qa(n) {
4317
4319
  return async (e, t) => {
4318
- var o, c, d, u, l, T, A, L, Q, se, ce, de, ue, $e, Pe, J, H, Y;
4320
+ var o, c, d, u, l, T, E, L, Q, se, ce, de, ue, $e, Pe, J, H, Y;
4319
4321
  const { colors: r, font: s, ...a } = t;
4320
4322
  try {
4321
4323
  await n.insertInto("branding").values({
@@ -4324,7 +4326,7 @@ function qa(n) {
4324
4326
  colors_page_background_type: (c = (o = t.colors) == null ? void 0 : o.page_background) == null ? void 0 : c.type,
4325
4327
  colors_page_background_start: (u = (d = t.colors) == null ? void 0 : d.page_background) == null ? void 0 : u.start,
4326
4328
  colors_page_background_end: (T = (l = t.colors) == null ? void 0 : l.page_background) == null ? void 0 : T.end,
4327
- colors_page_background_angle_dev: (L = (A = t.colors) == null ? void 0 : A.page_background) == null ? void 0 : L.angle_deg,
4329
+ colors_page_background_angle_dev: (L = (E = t.colors) == null ? void 0 : E.page_background) == null ? void 0 : L.angle_deg,
4328
4330
  font_url: (Q = t.font) == null ? void 0 : Q.url,
4329
4331
  tenant_id: e
4330
4332
  }).execute();
@@ -4397,10 +4399,11 @@ function Ha(n) {
4397
4399
  const a = await r.offset(t.page * t.per_page).limit(t.per_page).selectAll().execute(), { count: o } = await r.select((d) => d.fn.countAll().as("count")).executeTakeFirstOrThrow();
4398
4400
  return {
4399
4401
  hooks: a.map((d) => {
4400
- const { tenant_id: u, enabled: l, ...T } = d;
4402
+ const { tenant_id: u, enabled: l, synchronous: T, ...E } = d;
4401
4403
  return R({
4402
- ...T,
4403
- enabled: !!l
4404
+ ...E,
4405
+ enabled: !!l,
4406
+ synchronous: !!T
4404
4407
  });
4405
4408
  }),
4406
4409
  start: t.page * t.per_page,
@@ -4412,7 +4415,7 @@ function Ha(n) {
4412
4415
  function Ya(n) {
4413
4416
  return async (e, t) => {
4414
4417
  const r = await n.selectFrom("hooks").where("hooks.tenant_id", "=", e).where("hooks.hook_id", "=", t).selectAll().executeTakeFirst();
4415
- return r ? (r.enabled = !!r.enabled, R(r)) : null;
4418
+ return r ? (r.enabled = !!r.enabled, r.synchronous = !!r.synchronous, R(r)) : null;
4416
4419
  };
4417
4420
  }
4418
4421
  function Ga(n) {
@@ -4426,7 +4429,10 @@ function Xa(n) {
4426
4429
  created_at: (/* @__PURE__ */ new Date()).toISOString(),
4427
4430
  updated_at: (/* @__PURE__ */ new Date()).toISOString()
4428
4431
  };
4429
- return await n.insertInto("hooks").values({ ...r, tenant_id: e }).execute(), r;
4432
+ return await n.insertInto("hooks").values({
4433
+ ...r,
4434
+ tenant_id: e
4435
+ }).execute(), r;
4430
4436
  };
4431
4437
  }
4432
4438
  function ei(n) {
@@ -4471,7 +4477,7 @@ function si(n) {
4471
4477
  return;
4472
4478
  n.ZodType.prototype.openapi = function(s, a) {
4473
4479
  var o, c, d, u, l, T;
4474
- const A = typeof s == "string" ? a : s, L = A ?? {}, { param: Q } = L, se = ni(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 ? {
4480
+ const E = typeof s == "string" ? a : s, L = E ?? {}, { param: Q } = L, se = ni(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 ? {
4475
4481
  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)
4476
4482
  } : 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) }));
4477
4483
  if (ri(this, "ZodObject")) {
@@ -6003,13 +6009,13 @@ q.create = (n, e) => new q({
6003
6009
  ...S(e)
6004
6010
  });
6005
6011
  function Le(n) {
6006
- if (n instanceof N) {
6012
+ if (n instanceof A) {
6007
6013
  const e = {};
6008
6014
  for (const t in n.shape) {
6009
6015
  const r = n.shape[t];
6010
6016
  e[t] = X.create(Le(r));
6011
6017
  }
6012
- return new N({
6018
+ return new A({
6013
6019
  ...n._def,
6014
6020
  shape: () => e
6015
6021
  });
@@ -6018,7 +6024,7 @@ function Le(n) {
6018
6024
  type: Le(n.element)
6019
6025
  }) : 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;
6020
6026
  }
6021
- class N extends j {
6027
+ class A extends j {
6022
6028
  constructor() {
6023
6029
  super(...arguments), this._cached = null, this.nonstrict = this.passthrough, this.augment = this.extend;
6024
6030
  }
@@ -6081,10 +6087,10 @@ class N extends j {
6081
6087
  return s.common.async ? Promise.resolve().then(async () => {
6082
6088
  const u = [];
6083
6089
  for (const l of d) {
6084
- const T = await l.key, A = await l.value;
6090
+ const T = await l.key, E = await l.value;
6085
6091
  u.push({
6086
6092
  key: T,
6087
- value: A,
6093
+ value: E,
6088
6094
  alwaysSet: l.alwaysSet
6089
6095
  });
6090
6096
  }
@@ -6095,7 +6101,7 @@ class N extends j {
6095
6101
  return this._def.shape();
6096
6102
  }
6097
6103
  strict(e) {
6098
- return v.errToObj, new N({
6104
+ return v.errToObj, new A({
6099
6105
  ...this._def,
6100
6106
  unknownKeys: "strict",
6101
6107
  ...e !== void 0 ? {
@@ -6112,13 +6118,13 @@ class N extends j {
6112
6118
  });
6113
6119
  }
6114
6120
  strip() {
6115
- return new N({
6121
+ return new A({
6116
6122
  ...this._def,
6117
6123
  unknownKeys: "strip"
6118
6124
  });
6119
6125
  }
6120
6126
  passthrough() {
6121
- return new N({
6127
+ return new A({
6122
6128
  ...this._def,
6123
6129
  unknownKeys: "passthrough"
6124
6130
  });
@@ -6141,7 +6147,7 @@ class N extends j {
6141
6147
  // }) as any;
6142
6148
  // };
6143
6149
  extend(e) {
6144
- return new N({
6150
+ return new A({
6145
6151
  ...this._def,
6146
6152
  shape: () => ({
6147
6153
  ...this._def.shape(),
@@ -6155,7 +6161,7 @@ class N extends j {
6155
6161
  * upgrade if you are experiencing issues.
6156
6162
  */
6157
6163
  merge(e) {
6158
- return new N({
6164
+ return new A({
6159
6165
  unknownKeys: e._def.unknownKeys,
6160
6166
  catchall: e._def.catchall,
6161
6167
  shape: () => ({
@@ -6225,7 +6231,7 @@ class N extends j {
6225
6231
  // return merged;
6226
6232
  // }
6227
6233
  catchall(e) {
6228
- return new N({
6234
+ return new A({
6229
6235
  ...this._def,
6230
6236
  catchall: e
6231
6237
  });
@@ -6234,7 +6240,7 @@ class N extends j {
6234
6240
  const t = {};
6235
6241
  return C.objectKeys(e).forEach((r) => {
6236
6242
  e[r] && this.shape[r] && (t[r] = this.shape[r]);
6237
- }), new N({
6243
+ }), new A({
6238
6244
  ...this._def,
6239
6245
  shape: () => t
6240
6246
  });
@@ -6243,7 +6249,7 @@ class N extends j {
6243
6249
  const t = {};
6244
6250
  return C.objectKeys(this.shape).forEach((r) => {
6245
6251
  e[r] || (t[r] = this.shape[r]);
6246
- }), new N({
6252
+ }), new A({
6247
6253
  ...this._def,
6248
6254
  shape: () => t
6249
6255
  });
@@ -6259,7 +6265,7 @@ class N extends j {
6259
6265
  return C.objectKeys(this.shape).forEach((r) => {
6260
6266
  const s = this.shape[r];
6261
6267
  e && !e[r] ? t[r] = s : t[r] = s.optional();
6262
- }), new N({
6268
+ }), new A({
6263
6269
  ...this._def,
6264
6270
  shape: () => t
6265
6271
  });
@@ -6275,7 +6281,7 @@ class N extends j {
6275
6281
  a = a._def.innerType;
6276
6282
  t[r] = a;
6277
6283
  }
6278
- }), new N({
6284
+ }), new A({
6279
6285
  ...this._def,
6280
6286
  shape: () => t
6281
6287
  });
@@ -6284,21 +6290,21 @@ class N extends j {
6284
6290
  return qn(C.objectKeys(this.shape));
6285
6291
  }
6286
6292
  }
6287
- N.create = (n, e) => new N({
6293
+ A.create = (n, e) => new A({
6288
6294
  shape: () => n,
6289
6295
  unknownKeys: "strip",
6290
6296
  catchall: oe.create(),
6291
6297
  typeName: k.ZodObject,
6292
6298
  ...S(e)
6293
6299
  });
6294
- N.strictCreate = (n, e) => new N({
6300
+ A.strictCreate = (n, e) => new A({
6295
6301
  shape: () => n,
6296
6302
  unknownKeys: "strict",
6297
6303
  catchall: oe.create(),
6298
6304
  typeName: k.ZodObject,
6299
6305
  ...S(e)
6300
6306
  });
6301
- N.lazycreate = (n, e) => new N({
6307
+ A.lazycreate = (n, e) => new A({
6302
6308
  shape: n,
6303
6309
  unknownKeys: "strip",
6304
6310
  catchall: oe.create(),
@@ -7241,7 +7247,7 @@ function Wn(n, e = {}, t) {
7241
7247
  }) : Ke.create();
7242
7248
  }
7243
7249
  const Ti = {
7244
- object: N.lazycreate
7250
+ object: A.lazycreate
7245
7251
  };
7246
7252
  var k;
7247
7253
  (function(n) {
@@ -7249,7 +7255,7 @@ var k;
7249
7255
  })(k || (k = {}));
7250
7256
  const Oi = (n, e = {
7251
7257
  message: `Input not instance of ${n.name}`
7252
- }) => Wn((t) => t instanceof n, e), Kn = z.create, Qn = ve.create, Si = Kt.create, Zi = we.create, Jn = gt.create, ji = Ee.create, Ii = Bt.create, Ci = yt.create, Ei = vt.create, Ni = Ke.create, Ai = je.create, Ri = oe.create, $i = qt.create, Pi = q.create, Di = N.create, Mi = N.strictCreate, Li = wt.create, Vi = Ht.create, Ui = kt.create, Fi = re.create, zi = xt.create, Bi = Wt.create, qi = Ne.create, Wi = Fe.create, Ki = bt.create, Qi = Tt.create, Ji = ke.create, Hi = Ot.create, Yi = Qe.create, kn = K.create, Gi = X.create, Xi = xe.create, eo = K.createWithPreprocess, to = Ct.create, no = () => Kn().optional(), ro = () => Qn().optional(), so = () => Jn().optional(), ao = {
7258
+ }) => Wn((t) => t instanceof n, e), Kn = z.create, Qn = ve.create, Si = Kt.create, Zi = we.create, Jn = gt.create, ji = Ee.create, Ii = Bt.create, Ci = yt.create, Ei = vt.create, Ni = Ke.create, Ai = je.create, Ri = oe.create, $i = qt.create, Pi = q.create, Di = A.create, Mi = A.strictCreate, Li = wt.create, Vi = Ht.create, Ui = kt.create, Fi = re.create, zi = xt.create, Bi = Wt.create, qi = Ne.create, Wi = Fe.create, Ki = bt.create, Qi = Tt.create, Ji = ke.create, Hi = Ot.create, Yi = Qe.create, kn = K.create, Gi = X.create, Xi = xe.create, eo = K.createWithPreprocess, to = Ct.create, no = () => Kn().optional(), ro = () => Qn().optional(), so = () => Jn().optional(), ao = {
7253
7259
  string: (n) => z.create({ ...n, coerce: !0 }),
7254
7260
  number: (n) => ve.create({ ...n, coerce: !0 }),
7255
7261
  boolean: (n) => gt.create({
@@ -7298,7 +7304,7 @@ var oo = /* @__PURE__ */ Object.freeze({
7298
7304
  ZodNever: oe,
7299
7305
  ZodVoid: qt,
7300
7306
  ZodArray: q,
7301
- ZodObject: N,
7307
+ ZodObject: A,
7302
7308
  ZodUnion: wt,
7303
7309
  ZodDiscriminatedUnion: Ht,
7304
7310
  ZodIntersection: kt,
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "type": "git",
12
12
  "url": "https://github.com/markusahlstrand/authhero"
13
13
  },
14
- "version": "0.6.1",
14
+ "version": "0.6.3",
15
15
  "files": [
16
16
  "dist"
17
17
  ],
@@ -40,7 +40,7 @@
40
40
  "kysely-bun-sqlite": "^0.3.2",
41
41
  "kysely-planetscale": "^1.4.0",
42
42
  "nanoid": "^5.0.7",
43
- "@authhero/adapter-interfaces": "^0.10.1"
43
+ "@authhero/adapter-interfaces": "^0.10.3"
44
44
  },
45
45
  "scripts": {
46
46
  "build": "tsc && vite build && dts-bundle-generator --config ./dts-bundle-generator.config.ts"