@gatwech/auth 1.0.0-beta.24 → 1.0.0-beta.25

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.
Files changed (90) hide show
  1. package/dist/adapters/index.d.mts +1 -1
  2. package/dist/api/index.d.mts +1 -1
  3. package/dist/{audit-log-DhRRCMrv.mjs → audit-log-CQnf8nrN.mjs} +442 -46
  4. package/dist/client/index.d.mts +1 -1
  5. package/dist/client/plugins/index.d.mts +46 -46
  6. package/dist/client/plugins/index.mjs +2 -2
  7. package/dist/client/react/index.d.mts +15 -15
  8. package/dist/{client-CMsC6-rl.mjs → client-BkpNva-h.mjs} +3 -2
  9. package/dist/{client-CGV_kj99.d.mts → client-g0OAVuPQ.d.mts} +1 -1
  10. package/dist/{client-CT-acJeN.d.mts → client-zkWmSxqy.d.mts} +7 -4
  11. package/dist/cookies/index.d.mts +2 -2
  12. package/dist/db/index.d.mts +1 -1
  13. package/dist/{index-Czr_eQFE.d.mts → index-B4HTudhm.d.mts} +6 -6
  14. package/dist/{index-DYqQWdEv.d.mts → index-BHiF_ZfZ.d.mts} +13 -13
  15. package/dist/{index-Dmjw6re9.d.mts → index-BX55rZO5.d.mts} +2 -2
  16. package/dist/{index-Clwezlxm.d.mts → index-BfwCJQfM.d.mts} +8 -8
  17. package/dist/{index-DGRGLg16.d.mts → index-BhbilPfs.d.mts} +2 -2
  18. package/dist/{index-JzSy-vFn.d.mts → index-Bi-vEjDm.d.mts} +166 -166
  19. package/dist/{index-Cl9ITXy1.d.mts → index-BifhxQ8O.d.mts} +10 -10
  20. package/dist/{index-DWGj7du8.d.mts → index-BiomZttP.d.mts} +19 -19
  21. package/dist/{index-Hoybqpnt.d.mts → index-BoHrBgTB.d.mts} +9 -9
  22. package/dist/{index-UDzaYKxq.d.mts → index-C5W_sTlp.d.mts} +9 -9
  23. package/dist/{index-CLhlur69.d.mts → index-CNyQFga7.d.mts} +6 -6
  24. package/dist/{index-CZtQ0rUe.d.mts → index-CTjXncwM.d.mts} +113 -113
  25. package/dist/{index-CGGitykk.d.mts → index-CUUaJp3R.d.mts} +7 -7
  26. package/dist/{index-D85KXOKz.d.mts → index-CcJjgkwe.d.mts} +3 -3
  27. package/dist/{index-B-i2ob-C.d.mts → index-Cdfh66xb.d.mts} +9 -9
  28. package/dist/{index-CHMYUshk.d.mts → index-DBtm_waB.d.mts} +13 -13
  29. package/dist/{index-DWSbFJWU.d.mts → index-DD_pxX-h.d.mts} +662 -354
  30. package/dist/{index-BYxt8qOP.d.mts → index-DRoa3BGG.d.mts} +33 -33
  31. package/dist/{index-D5cyFBEb.d.mts → index-M0IQ_DTL.d.mts} +4 -4
  32. package/dist/{index-rcUKPBBy.d.mts → index-gRLqvVoc.d.mts} +6 -6
  33. package/dist/{index-Dt6JhAV4.d.mts → index-i1L-uguJ.d.mts} +6 -6
  34. package/dist/{index-B6to9CaK.d.mts → index-kBEBsEUr.d.mts} +1 -1
  35. package/dist/{index-BRUQHEUF.d.mts → index-mDmrBYrk.d.mts} +5 -5
  36. package/dist/index.d.mts +1 -1
  37. package/dist/integrations/next-js.d.mts +4 -4
  38. package/dist/integrations/node.d.mts +1 -1
  39. package/dist/integrations/react-start.d.mts +2 -2
  40. package/dist/oauth2/index.d.mts +1 -1
  41. package/dist/plugins/admin/index.d.mts +2 -2
  42. package/dist/plugins/anonymous/index.d.mts +2 -2
  43. package/dist/plugins/audit-log/client.d.mts +23 -23
  44. package/dist/plugins/audit-log/index.d.mts +23 -23
  45. package/dist/plugins/audit-log/index.mjs +3 -3
  46. package/dist/plugins/bearer/index.d.mts +1 -1
  47. package/dist/plugins/captcha/index.d.mts +1 -1
  48. package/dist/plugins/custom-session/index.d.mts +2 -2
  49. package/dist/plugins/device-authorization/index.d.mts +1 -1
  50. package/dist/plugins/email-otp/index.d.mts +1 -1
  51. package/dist/plugins/generic-oauth/index.d.mts +2 -2
  52. package/dist/plugins/haveibeenpwned/index.d.mts +1 -1
  53. package/dist/plugins/index.d.mts +23 -23
  54. package/dist/plugins/index.mjs +5 -5
  55. package/dist/plugins/jwt/index.d.mts +2 -2
  56. package/dist/plugins/magic-link/index.d.mts +1 -1
  57. package/dist/plugins/multi-session/index.d.mts +1 -1
  58. package/dist/plugins/oauth-proxy/index.d.mts +1 -1
  59. package/dist/plugins/one-tap/index.d.mts +1 -1
  60. package/dist/plugins/one-time-token/index.d.mts +2 -2
  61. package/dist/plugins/one-time-token/index.mjs +4 -4
  62. package/dist/plugins/organization/index.d.mts +2 -2
  63. package/dist/plugins/passkey/index.d.mts +2 -2
  64. package/dist/plugins/phone-number/index.d.mts +2 -2
  65. package/dist/plugins/sentinel/client.d.mts +23 -23
  66. package/dist/plugins/sentinel/client.mjs +2 -2
  67. package/dist/plugins/sentinel/index.d.mts +22 -22
  68. package/dist/plugins/sentinel/index.mjs +3 -3
  69. package/dist/plugins/two-factor/index.d.mts +2 -2
  70. package/dist/plugins/username/index.d.mts +1 -1
  71. package/dist/{registry-GztLf62p.mjs → registry-BjYhRF79.mjs} +69 -2
  72. package/dist/{sentinel-b8XEetew.mjs → sentinel-BttZLWPD.mjs} +70 -14
  73. package/dist/src/plugins/audit-log/error-codes.d.ts +7 -0
  74. package/dist/src/plugins/audit-log/events.d.ts +13 -0
  75. package/dist/src/plugins/audit-log/index.d.ts +114 -8
  76. package/dist/src/plugins/audit-log/integrity.d.ts +20 -0
  77. package/dist/src/plugins/audit-log/redact.d.ts +18 -0
  78. package/dist/src/plugins/audit-log/remote.d.ts +1 -0
  79. package/dist/src/plugins/audit-log/schema.d.ts +25 -0
  80. package/dist/src/plugins/audit-log/types.d.ts +73 -13
  81. package/dist/src/plugins/sentinel/actions.d.ts +0 -6
  82. package/dist/src/plugins/sentinel/client.d.ts +3 -0
  83. package/dist/src/plugins/sentinel/error-codes.d.ts +6 -0
  84. package/dist/src/plugins/sentinel/index.d.ts +80 -3
  85. package/dist/src/plugins/sentinel/types.d.ts +1 -1
  86. package/dist/test-utils/index.d.mts +2 -2
  87. package/dist/test-utils/index.mjs +4 -4
  88. package/dist/types/index.d.mts +1 -1
  89. package/package.json +3 -3
  90. /package/dist/{pow-DvkUopsK.mjs → pow-Vna_j4hx.mjs} +0 -0
@@ -1,5 +1,5 @@
1
- import * as _gatwech_core30 from "@gatwech/core";
2
- import * as better_call179 from "better-call";
1
+ import * as _gatwech_core47 from "@gatwech/core";
2
+ import * as better_call226 from "better-call";
3
3
  import * as z$1 from "zod";
4
4
 
5
5
  //#region src/plugins/oauth-proxy/index.d.ts
@@ -48,7 +48,7 @@ declare const oAuthProxy: (opts?: OAuthProxyOptions | undefined) => {
48
48
  } & {
49
49
  asResponse?: boolean;
50
50
  returnHeaders?: boolean;
51
- use?: better_call179.Middleware[];
51
+ use?: better_call226.Middleware[];
52
52
  path?: string;
53
53
  } & {
54
54
  asResponse?: AsResponse | undefined;
@@ -63,7 +63,7 @@ declare const oAuthProxy: (opts?: OAuthProxyOptions | undefined) => {
63
63
  callbackURL: z$1.ZodString;
64
64
  cookies: z$1.ZodString;
65
65
  }, z$1.core.$strip>;
66
- use: ((inputContext: better_call179.MiddlewareInputContext<better_call179.MiddlewareOptions>) => Promise<void>)[];
66
+ use: ((inputContext: better_call226.MiddlewareInputContext<better_call226.MiddlewareOptions>) => Promise<void>)[];
67
67
  metadata: {
68
68
  openapi: {
69
69
  description: string;
@@ -96,12 +96,12 @@ declare const oAuthProxy: (opts?: OAuthProxyOptions | undefined) => {
96
96
  };
97
97
  hooks: {
98
98
  after: {
99
- matcher(context: _gatwech_core30.HookEndpointContext): boolean;
100
- handler: (inputContext: better_call179.MiddlewareInputContext<better_call179.MiddlewareOptions>) => Promise<void>;
99
+ matcher(context: _gatwech_core47.HookEndpointContext): boolean;
100
+ handler: (inputContext: better_call226.MiddlewareInputContext<better_call226.MiddlewareOptions>) => Promise<void>;
101
101
  }[];
102
102
  before: ({
103
103
  matcher(): true;
104
- handler: (inputContext: better_call179.MiddlewareInputContext<better_call179.MiddlewareOptions>) => Promise<{
104
+ handler: (inputContext: better_call226.MiddlewareInputContext<better_call226.MiddlewareOptions>) => Promise<{
105
105
  context: {
106
106
  context: {
107
107
  oauthConfig: {
@@ -111,9 +111,9 @@ declare const oAuthProxy: (opts?: OAuthProxyOptions | undefined) => {
111
111
  };
112
112
  } | undefined>;
113
113
  } | {
114
- matcher(context: _gatwech_core30.HookEndpointContext): boolean;
115
- handler: (inputContext: better_call179.MiddlewareInputContext<better_call179.MiddlewareOptions>) => Promise<{
116
- context: better_call179.MiddlewareContext<better_call179.MiddlewareOptions, _gatwech_core30.AuthContext<_gatwech_core30.PayvoAuthOptions> & {
114
+ matcher(context: _gatwech_core47.HookEndpointContext): boolean;
115
+ handler: (inputContext: better_call226.MiddlewareInputContext<better_call226.MiddlewareOptions>) => Promise<{
116
+ context: better_call226.MiddlewareContext<better_call226.MiddlewareOptions, _gatwech_core47.AuthContext<_gatwech_core47.PayvoAuthOptions> & {
117
117
  returned?: unknown | undefined;
118
118
  responseHeaders?: Headers | undefined;
119
119
  }>;
@@ -1,9 +1,9 @@
1
1
  import { o as LiteralString } from "./helper-BgOIGHsu.mjs";
2
- import { g as User } from "./index-CZtQ0rUe.mjs";
2
+ import { g as User } from "./index-CTjXncwM.mjs";
3
3
  import { t as InferOptionSchema } from "./plugins-Dy_FrD4Y.mjs";
4
- import * as _gatwech_core29 from "@gatwech/core";
4
+ import * as _gatwech_core42 from "@gatwech/core";
5
5
  import { PayvoAuthPlugin } from "@gatwech/core";
6
- import * as better_call159 from "better-call";
6
+ import * as better_call196 from "better-call";
7
7
  import * as z$1 from "zod";
8
8
  import * as _better_fetch_fetch19 from "@better-fetch/fetch";
9
9
 
@@ -274,7 +274,7 @@ declare const twoFactor: (options?: TwoFactorOptions | undefined) => {
274
274
  } & {
275
275
  asResponse?: boolean;
276
276
  returnHeaders?: boolean;
277
- use?: better_call159.Middleware[];
277
+ use?: better_call196.Middleware[];
278
278
  path?: string;
279
279
  } & {
280
280
  asResponse?: AsResponse | undefined;
@@ -295,7 +295,7 @@ declare const twoFactor: (options?: TwoFactorOptions | undefined) => {
295
295
  password: z$1.ZodString;
296
296
  issuer: z$1.ZodOptional<z$1.ZodString>;
297
297
  }, z$1.core.$strip>;
298
- use: ((inputContext: better_call159.MiddlewareInputContext<better_call159.MiddlewareOptions>) => Promise<{
298
+ use: ((inputContext: better_call196.MiddlewareInputContext<better_call196.MiddlewareOptions>) => Promise<{
299
299
  session: {
300
300
  session: Record<string, any> & {
301
301
  id: string;
@@ -387,7 +387,7 @@ declare const twoFactor: (options?: TwoFactorOptions | undefined) => {
387
387
  } & {
388
388
  asResponse?: boolean;
389
389
  returnHeaders?: boolean;
390
- use?: better_call159.Middleware[];
390
+ use?: better_call196.Middleware[];
391
391
  path?: string;
392
392
  } & {
393
393
  asResponse?: AsResponse | undefined;
@@ -405,7 +405,7 @@ declare const twoFactor: (options?: TwoFactorOptions | undefined) => {
405
405
  body: z$1.ZodObject<{
406
406
  password: z$1.ZodString;
407
407
  }, z$1.core.$strip>;
408
- use: ((inputContext: better_call159.MiddlewareInputContext<better_call159.MiddlewareOptions>) => Promise<{
408
+ use: ((inputContext: better_call196.MiddlewareInputContext<better_call196.MiddlewareOptions>) => Promise<{
409
409
  session: {
410
410
  session: Record<string, any> & {
411
411
  id: string;
@@ -476,7 +476,7 @@ declare const twoFactor: (options?: TwoFactorOptions | undefined) => {
476
476
  } & {
477
477
  asResponse?: boolean;
478
478
  returnHeaders?: boolean;
479
- use?: better_call159.Middleware[];
479
+ use?: better_call196.Middleware[];
480
480
  path?: string;
481
481
  } & {
482
482
  asResponse?: AsResponse | undefined;
@@ -629,7 +629,7 @@ declare const twoFactor: (options?: TwoFactorOptions | undefined) => {
629
629
  } & {
630
630
  asResponse?: boolean;
631
631
  returnHeaders?: boolean;
632
- use?: better_call159.Middleware[];
632
+ use?: better_call196.Middleware[];
633
633
  path?: string;
634
634
  } & {
635
635
  asResponse?: AsResponse | undefined;
@@ -649,7 +649,7 @@ declare const twoFactor: (options?: TwoFactorOptions | undefined) => {
649
649
  body: z$1.ZodObject<{
650
650
  password: z$1.ZodString;
651
651
  }, z$1.core.$strip>;
652
- use: ((inputContext: better_call159.MiddlewareInputContext<better_call159.MiddlewareOptions>) => Promise<{
652
+ use: ((inputContext: better_call196.MiddlewareInputContext<better_call196.MiddlewareOptions>) => Promise<{
653
653
  session: {
654
654
  session: Record<string, any> & {
655
655
  id: string;
@@ -727,7 +727,7 @@ declare const twoFactor: (options?: TwoFactorOptions | undefined) => {
727
727
  } & {
728
728
  asResponse?: boolean;
729
729
  returnHeaders?: boolean;
730
- use?: better_call159.Middleware[];
730
+ use?: better_call196.Middleware[];
731
731
  path?: string;
732
732
  } & {
733
733
  asResponse?: AsResponse | undefined;
@@ -773,7 +773,7 @@ declare const twoFactor: (options?: TwoFactorOptions | undefined) => {
773
773
  } & {
774
774
  asResponse?: boolean;
775
775
  returnHeaders?: boolean;
776
- use?: better_call159.Middleware[];
776
+ use?: better_call196.Middleware[];
777
777
  path?: string;
778
778
  } & {
779
779
  asResponse?: AsResponse | undefined;
@@ -838,7 +838,7 @@ declare const twoFactor: (options?: TwoFactorOptions | undefined) => {
838
838
  } & {
839
839
  asResponse?: boolean;
840
840
  returnHeaders?: boolean;
841
- use?: better_call159.Middleware[];
841
+ use?: better_call196.Middleware[];
842
842
  path?: string;
843
843
  } & {
844
844
  asResponse?: AsResponse | undefined;
@@ -966,7 +966,7 @@ declare const twoFactor: (options?: TwoFactorOptions | undefined) => {
966
966
  } & {
967
967
  asResponse?: boolean;
968
968
  returnHeaders?: boolean;
969
- use?: better_call159.Middleware[];
969
+ use?: better_call196.Middleware[];
970
970
  path?: string;
971
971
  } & {
972
972
  asResponse?: AsResponse | undefined;
@@ -1031,7 +1031,7 @@ declare const twoFactor: (options?: TwoFactorOptions | undefined) => {
1031
1031
  } & {
1032
1032
  asResponse?: boolean;
1033
1033
  returnHeaders?: boolean;
1034
- use?: better_call159.Middleware[];
1034
+ use?: better_call196.Middleware[];
1035
1035
  path?: string;
1036
1036
  } & {
1037
1037
  asResponse?: AsResponse | undefined;
@@ -1046,7 +1046,7 @@ declare const twoFactor: (options?: TwoFactorOptions | undefined) => {
1046
1046
  }>;
1047
1047
  options: {
1048
1048
  method: "POST";
1049
- use: ((inputContext: better_call159.MiddlewareInputContext<better_call159.MiddlewareOptions>) => Promise<{
1049
+ use: ((inputContext: better_call196.MiddlewareInputContext<better_call196.MiddlewareOptions>) => Promise<{
1050
1050
  session: {
1051
1051
  session: Record<string, any> & {
1052
1052
  id: string;
@@ -1119,7 +1119,7 @@ declare const twoFactor: (options?: TwoFactorOptions | undefined) => {
1119
1119
  } & {
1120
1120
  asResponse?: boolean;
1121
1121
  returnHeaders?: boolean;
1122
- use?: better_call159.Middleware[];
1122
+ use?: better_call196.Middleware[];
1123
1123
  path?: string;
1124
1124
  } & {
1125
1125
  asResponse?: AsResponse | undefined;
@@ -1188,8 +1188,8 @@ declare const twoFactor: (options?: TwoFactorOptions | undefined) => {
1188
1188
  options: TwoFactorOptions | undefined;
1189
1189
  hooks: {
1190
1190
  after: {
1191
- matcher(context: _gatwech_core29.HookEndpointContext): boolean;
1192
- handler: (inputContext: better_call159.MiddlewareInputContext<better_call159.MiddlewareOptions>) => Promise<{
1191
+ matcher(context: _gatwech_core42.HookEndpointContext): boolean;
1192
+ handler: (inputContext: better_call196.MiddlewareInputContext<better_call196.MiddlewareOptions>) => Promise<{
1193
1193
  twoFactorRedirect: boolean;
1194
1194
  } | undefined>;
1195
1195
  }[];
@@ -1,6 +1,6 @@
1
1
  import { t as InferOptionSchema } from "./plugins-Dy_FrD4Y.mjs";
2
- import * as _gatwech_core22 from "@gatwech/core";
3
- import * as better_call58 from "better-call";
2
+ import * as _gatwech_core16 from "@gatwech/core";
3
+ import * as better_call157 from "better-call";
4
4
  import * as z$1 from "zod";
5
5
  import * as _gatwech_core_db1 from "@gatwech/core/db";
6
6
 
@@ -106,7 +106,7 @@ type UsernameOptions = {
106
106
  };
107
107
  declare const username: (options?: UsernameOptions | undefined) => {
108
108
  id: "username";
109
- init(ctx: _gatwech_core22.AuthContext<_gatwech_core22.PayvoAuthOptions>): {
109
+ init(ctx: _gatwech_core16.AuthContext<_gatwech_core16.PayvoAuthOptions>): {
110
110
  options: {
111
111
  databaseHooks: {
112
112
  user: {
@@ -119,7 +119,7 @@ declare const username: (options?: UsernameOptions | undefined) => {
119
119
  emailVerified: boolean;
120
120
  name: string;
121
121
  image?: string | null | undefined;
122
- } & Record<string, unknown>, context: _gatwech_core22.GenericEndpointContext<_gatwech_core22.PayvoAuthOptions> | undefined): Promise<{
122
+ } & Record<string, unknown>, context: _gatwech_core16.GenericEndpointContext<_gatwech_core16.PayvoAuthOptions> | undefined): Promise<{
123
123
  data: {
124
124
  displayUsername?: string | undefined;
125
125
  username?: string | undefined;
@@ -142,7 +142,7 @@ declare const username: (options?: UsernameOptions | undefined) => {
142
142
  emailVerified: boolean;
143
143
  name: string;
144
144
  image?: string | null | undefined;
145
- }> & Record<string, unknown>, context: _gatwech_core22.GenericEndpointContext<_gatwech_core22.PayvoAuthOptions> | undefined): Promise<{
145
+ }> & Record<string, unknown>, context: _gatwech_core16.GenericEndpointContext<_gatwech_core16.PayvoAuthOptions> | undefined): Promise<{
146
146
  data: {
147
147
  displayUsername?: string | undefined;
148
148
  username?: string | undefined;
@@ -182,7 +182,7 @@ declare const username: (options?: UsernameOptions | undefined) => {
182
182
  } & {
183
183
  asResponse?: boolean;
184
184
  returnHeaders?: boolean;
185
- use?: better_call58.Middleware[];
185
+ use?: better_call157.Middleware[];
186
186
  path?: string;
187
187
  } & {
188
188
  asResponse?: AsResponse | undefined;
@@ -291,7 +291,7 @@ declare const username: (options?: UsernameOptions | undefined) => {
291
291
  } & {
292
292
  asResponse?: boolean;
293
293
  returnHeaders?: boolean;
294
- use?: better_call58.Middleware[];
294
+ use?: better_call157.Middleware[];
295
295
  path?: string;
296
296
  } & {
297
297
  asResponse?: AsResponse | undefined;
@@ -340,8 +340,8 @@ declare const username: (options?: UsernameOptions | undefined) => {
340
340
  };
341
341
  hooks: {
342
342
  before: {
343
- matcher(context: _gatwech_core22.HookEndpointContext): boolean;
344
- handler: (inputContext: better_call58.MiddlewareInputContext<better_call58.MiddlewareOptions>) => Promise<void>;
343
+ matcher(context: _gatwech_core16.HookEndpointContext): boolean;
344
+ handler: (inputContext: better_call157.MiddlewareInputContext<better_call157.MiddlewareOptions>) => Promise<void>;
345
345
  }[];
346
346
  };
347
347
  $ERROR_CODES: {
@@ -1,9 +1,9 @@
1
1
  import { t as Awaitable } from "./helper-BgOIGHsu.mjs";
2
- import { On as index_d_exports, g as User, h as Session } from "./index-CZtQ0rUe.mjs";
2
+ import { On as index_d_exports, g as User, h as Session } from "./index-CTjXncwM.mjs";
3
3
  import { t as InferOptionSchema } from "./plugins-Dy_FrD4Y.mjs";
4
- import * as _gatwech_core2 from "@gatwech/core";
4
+ import * as _gatwech_core44 from "@gatwech/core";
5
5
  import { GenericEndpointContext } from "@gatwech/core";
6
- import * as better_call15 from "better-call";
6
+ import * as better_call219 from "better-call";
7
7
  import * as z$1 from "zod";
8
8
  import * as jose0 from "jose";
9
9
  import { JSONWebKeySet, JWTPayload } from "jose";
@@ -250,7 +250,7 @@ declare const jwt: (options?: JwtOptions | undefined) => {
250
250
  } & {
251
251
  asResponse?: boolean;
252
252
  returnHeaders?: boolean;
253
- use?: better_call15.Middleware[];
253
+ use?: better_call219.Middleware[];
254
254
  path?: string;
255
255
  } & {
256
256
  asResponse?: AsResponse | undefined;
@@ -355,7 +355,7 @@ declare const jwt: (options?: JwtOptions | undefined) => {
355
355
  } & {
356
356
  asResponse?: boolean;
357
357
  returnHeaders?: boolean;
358
- use?: better_call15.Middleware[];
358
+ use?: better_call219.Middleware[];
359
359
  path?: string;
360
360
  } & {
361
361
  asResponse?: AsResponse | undefined;
@@ -371,7 +371,7 @@ declare const jwt: (options?: JwtOptions | undefined) => {
371
371
  options: {
372
372
  method: "GET";
373
373
  requireHeaders: true;
374
- use: ((inputContext: better_call15.MiddlewareInputContext<better_call15.MiddlewareOptions>) => Promise<{
374
+ use: ((inputContext: better_call219.MiddlewareInputContext<better_call219.MiddlewareOptions>) => Promise<{
375
375
  session: {
376
376
  session: Record<string, any> & {
377
377
  id: string;
@@ -440,7 +440,7 @@ declare const jwt: (options?: JwtOptions | undefined) => {
440
440
  } & {
441
441
  asResponse?: boolean;
442
442
  returnHeaders?: boolean;
443
- use?: better_call15.Middleware[];
443
+ use?: better_call219.Middleware[];
444
444
  path?: string;
445
445
  } & {
446
446
  asResponse?: AsResponse | undefined;
@@ -476,8 +476,8 @@ declare const jwt: (options?: JwtOptions | undefined) => {
476
476
  };
477
477
  hooks: {
478
478
  after: {
479
- matcher(context: _gatwech_core2.HookEndpointContext): boolean;
480
- handler: (inputContext: better_call15.MiddlewareInputContext<better_call15.MiddlewareOptions>) => Promise<void>;
479
+ matcher(context: _gatwech_core44.HookEndpointContext): boolean;
480
+ handler: (inputContext: better_call219.MiddlewareInputContext<better_call219.MiddlewareOptions>) => Promise<void>;
481
481
  }[];
482
482
  };
483
483
  schema: {
@@ -1,7 +1,7 @@
1
- import { f as InferSession, p as InferUser } from "./index-CZtQ0rUe.mjs";
2
- import * as _gatwech_core1 from "@gatwech/core";
1
+ import { f as InferSession, p as InferUser } from "./index-CTjXncwM.mjs";
2
+ import * as _gatwech_core10 from "@gatwech/core";
3
3
  import { GenericEndpointContext, PayvoAuthOptions } from "@gatwech/core";
4
- import * as better_call12 from "better-call";
4
+ import * as better_call139 from "better-call";
5
5
  import * as z$1 from "zod";
6
6
 
7
7
  //#region src/plugins/custom-session/index.d.ts
@@ -19,8 +19,8 @@ declare const customSession: <Returns extends Record<string, any>, O extends Pay
19
19
  id: "custom-session";
20
20
  hooks: {
21
21
  after: {
22
- matcher: (ctx: _gatwech_core1.HookEndpointContext) => boolean;
23
- handler: (inputContext: better_call12.MiddlewareInputContext<better_call12.MiddlewareOptions>) => Promise<Awaited<Returns>[] | undefined>;
22
+ matcher: (ctx: _gatwech_core10.HookEndpointContext) => boolean;
23
+ handler: (inputContext: better_call139.MiddlewareInputContext<better_call139.MiddlewareOptions>) => Promise<Awaited<Returns>[] | undefined>;
24
24
  }[];
25
25
  };
26
26
  endpoints: {
@@ -43,7 +43,7 @@ declare const customSession: <Returns extends Record<string, any>, O extends Pay
43
43
  } & {
44
44
  asResponse?: boolean;
45
45
  returnHeaders?: boolean;
46
- use?: better_call12.Middleware[];
46
+ use?: better_call139.Middleware[];
47
47
  path?: string;
48
48
  } & {
49
49
  asResponse?: AsResponse | undefined;