@gatwech/auth 1.0.0-beta.20 → 1.0.0-beta.21

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 (133) hide show
  1. package/dist/adapters/drizzle-adapter/index.mjs +11 -2
  2. package/dist/adapters/index.d.mts +2 -2
  3. package/dist/adapters/kysely-adapter/index.mjs +1 -1
  4. package/dist/adapters/memory-adapter/index.d.mts +1 -1
  5. package/dist/adapters/memory-adapter/index.mjs +2 -2
  6. package/dist/api/index.d.mts +2 -2
  7. package/dist/api/index.mjs +1 -1
  8. package/dist/{audit-log-DKsUWR8O.mjs → audit-log-DgqHJ-uv.mjs} +132 -63
  9. package/dist/{auth-vfCyIIeV.mjs → auth-BoEA9bN7.mjs} +14 -1
  10. package/dist/client/index.d.mts +2 -2
  11. package/dist/client/plugins/index.d.mts +47 -47
  12. package/dist/client/plugins/index.mjs +2 -2
  13. package/dist/client/react/index.d.mts +2 -2
  14. package/dist/{client-F67q-Lbi.d.mts → client-B00gkznv.d.mts} +1 -1
  15. package/dist/{client-4QEb0rUr.mjs → client-CMsC6-rl.mjs} +1 -1
  16. package/dist/{client-C_qmyez2.d.mts → client-Da7tq8m6.d.mts} +1 -1
  17. package/dist/cookies/index.d.mts +3 -3
  18. package/dist/db/index.d.mts +2 -2
  19. package/dist/db/index.mjs +1 -1
  20. package/dist/{db-7vHnL1XA.mjs → db-CV59HpEF.mjs} +2 -2
  21. package/dist/{index-BX7rl07Z.d.mts → index-BECNG13R.d.mts} +13 -13
  22. package/dist/{index-D57DuhZR.d.mts → index-BKy-8t2n.d.mts} +179 -126
  23. package/dist/{index-Df0KhQRf-BEa5tdwJ.d.mts → index-BL_t8cRp-C4QYBsac.d.mts} +56 -17
  24. package/dist/{index-D6ku0rUC.d.mts → index-BWYXZVsV.d.mts} +5 -5
  25. package/dist/{index-DwPAddfE.d.mts → index-Bhc37y9F.d.mts} +3 -3
  26. package/dist/{index-BNhJglHC.d.mts → index-BjCQ3jmE.d.mts} +119 -119
  27. package/dist/{index-CzpdkTdv.d.mts → index-Bxive_YT.d.mts} +9 -9
  28. package/dist/{index-DGeoJ4gu.d.mts → index-C-IDh5yy.d.mts} +2 -2
  29. package/dist/{index-Dnd8S4S4.d.mts → index-CM1rFdwV.d.mts} +9 -9
  30. package/dist/{index-CNd5jqLl.d.mts → index-CMG4Pnen.d.mts} +4 -4
  31. package/dist/{index-4I1YhYhk.d.mts → index-CTqynuxm.d.mts} +4 -4
  32. package/dist/{index-CP8x1TFq.d.mts → index-CbBQdS-u.d.mts} +6 -6
  33. package/dist/{index-DyXi7S2M.d.mts → index-CpH-1sse.d.mts} +10 -10
  34. package/dist/{index-CC920PPp.d.mts → index-D1OZ2e4m.d.mts} +14 -14
  35. package/dist/{index-CofuaNMl.d.mts → index-Dt2I0G4X.d.mts} +7 -7
  36. package/dist/{index-XfE0WjTN.d.mts → index-IX1to9TB.d.mts} +34 -34
  37. package/dist/{index-KhbNmMmG.d.mts → index-TrOnY3pM.d.mts} +170 -170
  38. package/dist/{index-CsxtcAO0.d.mts → index-VUyESU4p.d.mts} +1 -1
  39. package/dist/{index-CBiGsvDd.d.mts → index-WV7VzW2H.d.mts} +8 -8
  40. package/dist/{index-Bml-PCqP.d.mts → index-YeXSxzhX.d.mts} +19 -19
  41. package/dist/{index-BsSKcKgO.d.mts → index-cPt-00xm.d.mts} +6 -6
  42. package/dist/{index-sb-UFLuo.d.mts → index-iRoaTsOj.d.mts} +2 -2
  43. package/dist/{index-DFSRYWFI.d.mts → index-jEkJ2Zfk.d.mts} +6 -6
  44. package/dist/{index-DTkcY7xH.d.mts → index-oNlp4SvD.d.mts} +10 -10
  45. package/dist/index.d.mts +2 -2
  46. package/dist/index.mjs +3 -3
  47. package/dist/integrations/next-js.d.mts +4 -4
  48. package/dist/integrations/node.d.mts +2 -2
  49. package/dist/integrations/react-start.d.mts +4 -4
  50. package/dist/{kysely-adapter-Bkm1liPW.mjs → kysely-adapter-BidlNTiV.mjs} +4 -2
  51. package/dist/oauth2/index.d.mts +2 -2
  52. package/dist/oauth2/index.mjs +1 -1
  53. package/dist/{organization-CkTKs7bx.mjs → organization-D4QMpChF.mjs} +1 -1
  54. package/dist/plugins/admin/index.d.mts +3 -3
  55. package/dist/plugins/admin/index.mjs +1 -1
  56. package/dist/plugins/anonymous/index.d.mts +3 -3
  57. package/dist/plugins/anonymous/index.mjs +1 -1
  58. package/dist/plugins/audit-log/client.d.mts +24 -24
  59. package/dist/plugins/audit-log/index.d.mts +23 -23
  60. package/dist/plugins/audit-log/index.mjs +2 -2
  61. package/dist/plugins/bearer/index.d.mts +1 -1
  62. package/dist/plugins/captcha/index.d.mts +1 -1
  63. package/dist/plugins/custom-session/index.d.mts +3 -3
  64. package/dist/plugins/custom-session/index.mjs +1 -1
  65. package/dist/plugins/device-authorization/index.d.mts +1 -1
  66. package/dist/plugins/device-authorization/index.mjs +1 -1
  67. package/dist/plugins/email-otp/index.d.mts +2 -2
  68. package/dist/plugins/email-otp/index.mjs +1 -1
  69. package/dist/plugins/generic-oauth/index.d.mts +3 -3
  70. package/dist/plugins/generic-oauth/index.mjs +1 -1
  71. package/dist/plugins/haveibeenpwned/index.d.mts +1 -1
  72. package/dist/plugins/haveibeenpwned/index.mjs +1 -1
  73. package/dist/plugins/index.d.mts +23 -23
  74. package/dist/plugins/index.mjs +5 -5
  75. package/dist/plugins/jwt/index.d.mts +3 -3
  76. package/dist/plugins/jwt/index.mjs +1 -1
  77. package/dist/plugins/magic-link/index.d.mts +1 -1
  78. package/dist/plugins/magic-link/index.mjs +1 -1
  79. package/dist/plugins/multi-session/index.d.mts +2 -2
  80. package/dist/plugins/multi-session/index.mjs +1 -1
  81. package/dist/plugins/oauth-proxy/index.d.mts +1 -1
  82. package/dist/plugins/oauth-proxy/index.mjs +1 -1
  83. package/dist/plugins/one-tap/index.d.mts +1 -1
  84. package/dist/plugins/one-tap/index.mjs +1 -1
  85. package/dist/plugins/one-time-token/index.d.mts +3 -3
  86. package/dist/plugins/one-time-token/index.mjs +5 -5
  87. package/dist/plugins/organization/index.d.mts +3 -3
  88. package/dist/plugins/organization/index.mjs +2 -2
  89. package/dist/plugins/passkey/index.d.mts +3 -3
  90. package/dist/plugins/passkey/index.mjs +1 -1
  91. package/dist/plugins/phone-number/index.d.mts +3 -3
  92. package/dist/plugins/phone-number/index.mjs +1 -1
  93. package/dist/plugins/sentinel/client.d.mts +24 -24
  94. package/dist/plugins/sentinel/client.mjs +2 -2
  95. package/dist/plugins/sentinel/index.d.mts +23 -23
  96. package/dist/plugins/sentinel/index.mjs +3 -3
  97. package/dist/plugins/two-factor/index.d.mts +3 -3
  98. package/dist/plugins/two-factor/index.mjs +1 -1
  99. package/dist/plugins/username/index.d.mts +1 -1
  100. package/dist/plugins/username/index.mjs +1 -1
  101. package/dist/{pow-OK01yPG3.mjs → pow-DvkUopsK.mjs} +17 -1
  102. package/dist/{sentinel-DiPqydKG.mjs → sentinel-B4Wo79HK.mjs} +295 -92
  103. package/dist/src/adapters/memory-adapter/memory-adapter.d.ts +1 -1
  104. package/dist/src/adapters/prisma-adapter/test/auth.d.ts +1 -1
  105. package/dist/src/adapters/tests/auth-flow.d.ts +3 -3
  106. package/dist/src/adapters/tests/normal.d.ts +10 -2
  107. package/dist/src/adapters/tests/number-id.d.ts +4 -4
  108. package/dist/src/adapters/tests/performance.d.ts +3 -3
  109. package/dist/src/adapters/tests/transactions.d.ts +3 -3
  110. package/dist/src/api/index.d.ts +8 -8
  111. package/dist/src/plugins/admin/admin.d.ts +2 -2
  112. package/dist/src/plugins/api-key/index.d.ts +2 -2
  113. package/dist/src/plugins/audit-log/index.d.ts +5 -14
  114. package/dist/src/plugins/audit-log/remote.d.ts +4 -4
  115. package/dist/src/plugins/audit-log/types.d.ts +22 -0
  116. package/dist/src/plugins/email-otp/index.d.ts +1 -1
  117. package/dist/src/plugins/multi-session/index.d.ts +8 -8
  118. package/dist/src/plugins/organization/routes/crud-access-control.d.ts +8 -8
  119. package/dist/src/plugins/organization/routes/crud-invites.d.ts +46 -46
  120. package/dist/src/plugins/organization/routes/crud-members.d.ts +40 -40
  121. package/dist/src/plugins/organization/routes/crud-org.d.ts +36 -36
  122. package/dist/src/plugins/organization/routes/crud-team.d.ts +50 -50
  123. package/dist/src/plugins/sentinel/index.d.ts +10 -1
  124. package/dist/src/plugins/sentinel/intel.d.ts +8 -1
  125. package/dist/src/plugins/sentinel/memory-cache.d.ts +12 -0
  126. package/dist/src/plugins/sentinel/schema.d.ts +4 -0
  127. package/dist/src/plugins/sentinel/store.d.ts +7 -0
  128. package/dist/src/plugins/sentinel/types.d.ts +29 -1
  129. package/dist/src/test-utils/test-instance.d.ts +25 -25
  130. package/dist/test-utils/index.d.mts +1045 -1045
  131. package/dist/test-utils/index.mjs +7 -7
  132. package/dist/types/index.d.mts +2 -2
  133. package/package.json +3 -3
@@ -1,6 +1,6 @@
1
1
  import { t as InferOptionSchema } from "./plugins-Dy_FrD4Y.mjs";
2
- import * as _gatwech_core2 from "@gatwech/core";
3
- import * as better_call25 from "better-call";
2
+ import * as _gatwech_core1 from "@gatwech/core";
3
+ import * as better_call100 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_core2.AuthContext<_gatwech_core2.PayvoAuthOptions>): {
109
+ init(ctx: _gatwech_core1.AuthContext<_gatwech_core1.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_core2.GenericEndpointContext<_gatwech_core2.PayvoAuthOptions> | undefined): Promise<{
122
+ } & Record<string, unknown>, context: _gatwech_core1.GenericEndpointContext<_gatwech_core1.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_core2.GenericEndpointContext<_gatwech_core2.PayvoAuthOptions> | undefined): Promise<{
145
+ }> & Record<string, unknown>, context: _gatwech_core1.GenericEndpointContext<_gatwech_core1.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_call25.Middleware[];
185
+ use?: better_call100.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_call25.Middleware[];
294
+ use?: better_call100.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_core2.HookEndpointContext): boolean;
344
- handler: (inputContext: better_call25.MiddlewareInputContext<better_call25.MiddlewareOptions>) => Promise<void>;
343
+ matcher(context: _gatwech_core1.HookEndpointContext): boolean;
344
+ handler: (inputContext: better_call100.MiddlewareInputContext<better_call100.MiddlewareOptions>) => Promise<void>;
345
345
  }[];
346
346
  };
347
347
  $ERROR_CODES: {
@@ -1,4 +1,4 @@
1
- import * as _gatwech_core9 from "@gatwech/core";
1
+ import * as _gatwech_core48 from "@gatwech/core";
2
2
 
3
3
  //#region src/plugins/captcha/constants.d.ts
4
4
  declare const Providers: {
@@ -34,7 +34,7 @@ type CaptchaOptions = GoogleRecaptchaOptions | CloudflareTurnstileOptions | HCap
34
34
  //#region src/plugins/captcha/index.d.ts
35
35
  declare const captcha: (options: CaptchaOptions) => {
36
36
  id: "captcha";
37
- onRequest: (request: Request, ctx: _gatwech_core9.AuthContext<_gatwech_core9.PayvoAuthOptions>) => Promise<{
37
+ onRequest: (request: Request, ctx: _gatwech_core48.AuthContext<_gatwech_core48.PayvoAuthOptions>) => Promise<{
38
38
  response: Response;
39
39
  } | undefined>;
40
40
  };
@@ -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-BNhJglHC.mjs";
2
+ import { On as index_d_exports, g as User, h as Session } from "./index-BjCQ3jmE.mjs";
3
3
  import { t as InferOptionSchema } from "./plugins-Dy_FrD4Y.mjs";
4
- import * as _gatwech_core48 from "@gatwech/core";
4
+ import * as _gatwech_core10 from "@gatwech/core";
5
5
  import { GenericEndpointContext } from "@gatwech/core";
6
- import * as better_call114 from "better-call";
6
+ import * as better_call120 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_call114.Middleware[];
253
+ use?: better_call120.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_call114.Middleware[];
358
+ use?: better_call120.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_call114.MiddlewareInputContext<better_call114.MiddlewareOptions>) => Promise<{
374
+ use: ((inputContext: better_call120.MiddlewareInputContext<better_call120.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_call114.Middleware[];
443
+ use?: better_call120.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_core48.HookEndpointContext): boolean;
480
- handler: (inputContext: better_call114.MiddlewareInputContext<better_call114.MiddlewareOptions>) => Promise<void>;
479
+ matcher(context: _gatwech_core10.HookEndpointContext): boolean;
480
+ handler: (inputContext: better_call120.MiddlewareInputContext<better_call120.MiddlewareOptions>) => Promise<void>;
481
481
  }[];
482
482
  };
483
483
  schema: {
@@ -1,8 +1,8 @@
1
- import { g as User, h as Session } from "./index-BNhJglHC.mjs";
1
+ import { g as User, h as Session } from "./index-BjCQ3jmE.mjs";
2
2
  import { t as InferOptionSchema } from "./plugins-Dy_FrD4Y.mjs";
3
3
  import * as _gatwech_core0 from "@gatwech/core";
4
4
  import { AuthContext, GenericEndpointContext } from "@gatwech/core";
5
- import * as better_call0 from "better-call";
5
+ import * as better_call97 from "better-call";
6
6
  import { EndpointContext } from "better-call";
7
7
 
8
8
  //#region src/plugins/anonymous/index.d.ts
@@ -77,7 +77,7 @@ declare const anonymous: (options?: AnonymousOptions | undefined) => {
77
77
  } & {
78
78
  asResponse?: boolean;
79
79
  returnHeaders?: boolean;
80
- use?: better_call0.Middleware[];
80
+ use?: better_call97.Middleware[];
81
81
  path?: string;
82
82
  } & {
83
83
  asResponse?: AsResponse | undefined;
@@ -142,7 +142,7 @@ declare const anonymous: (options?: AnonymousOptions | undefined) => {
142
142
  hooks: {
143
143
  after: {
144
144
  matcher(ctx: _gatwech_core0.HookEndpointContext): boolean;
145
- handler: (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<void>;
145
+ handler: (inputContext: better_call97.MiddlewareInputContext<better_call97.MiddlewareOptions>) => Promise<void>;
146
146
  }[];
147
147
  };
148
148
  schema: {
@@ -1,4 +1,4 @@
1
- import * as better_call131 from "better-call";
1
+ import * as better_call179 from "better-call";
2
2
  import * as z$1 from "zod";
3
3
 
4
4
  //#region src/plugins/magic-link/index.d.ts
@@ -89,7 +89,7 @@ declare const magicLink: (options: MagicLinkopts) => {
89
89
  } & {
90
90
  asResponse?: boolean;
91
91
  returnHeaders?: boolean;
92
- use?: better_call131.Middleware[];
92
+ use?: better_call179.Middleware[];
93
93
  path?: string;
94
94
  } & {
95
95
  asResponse?: AsResponse | undefined;
@@ -175,7 +175,7 @@ declare const magicLink: (options: MagicLinkopts) => {
175
175
  } & {
176
176
  asResponse?: boolean;
177
177
  returnHeaders?: boolean;
178
- use?: better_call131.Middleware[];
178
+ use?: better_call179.Middleware[];
179
179
  path?: string;
180
180
  } & {
181
181
  asResponse?: AsResponse | undefined;
@@ -214,7 +214,7 @@ declare const magicLink: (options: MagicLinkopts) => {
214
214
  errorCallbackURL: z$1.ZodOptional<z$1.ZodString>;
215
215
  newUserCallbackURL: z$1.ZodOptional<z$1.ZodString>;
216
216
  }, z$1.core.$strip>;
217
- use: ((inputContext: better_call131.MiddlewareInputContext<better_call131.MiddlewareOptions>) => Promise<void>)[];
217
+ use: ((inputContext: better_call179.MiddlewareInputContext<better_call179.MiddlewareOptions>) => Promise<void>)[];
218
218
  requireHeaders: true;
219
219
  metadata: {
220
220
  openapi: {
@@ -1,5 +1,5 @@
1
- import * as _gatwech_core46 from "@gatwech/core";
2
- import * as better_call105 from "better-call";
1
+ import * as _gatwech_core12 from "@gatwech/core";
2
+ import * as better_call130 from "better-call";
3
3
 
4
4
  //#region src/plugins/bearer/index.d.ts
5
5
  interface BearerOptions {
@@ -19,16 +19,16 @@ declare const bearer: (options?: BearerOptions | undefined) => {
19
19
  id: "bearer";
20
20
  hooks: {
21
21
  before: {
22
- matcher(context: _gatwech_core46.HookEndpointContext): boolean;
23
- handler: (inputContext: better_call105.MiddlewareInputContext<better_call105.MiddlewareOptions>) => Promise<{
22
+ matcher(context: _gatwech_core12.HookEndpointContext): boolean;
23
+ handler: (inputContext: better_call130.MiddlewareInputContext<better_call130.MiddlewareOptions>) => Promise<{
24
24
  context: {
25
25
  headers: Headers;
26
26
  };
27
27
  } | undefined>;
28
28
  }[];
29
29
  after: {
30
- matcher(context: _gatwech_core46.HookEndpointContext): true;
31
- handler: (inputContext: better_call105.MiddlewareInputContext<better_call105.MiddlewareOptions>) => Promise<void>;
30
+ matcher(context: _gatwech_core12.HookEndpointContext): true;
31
+ handler: (inputContext: better_call130.MiddlewareInputContext<better_call130.MiddlewareOptions>) => Promise<void>;
32
32
  }[];
33
33
  };
34
34
  };
@@ -1,6 +1,6 @@
1
- import { o as Session, s as User } from "./index-Df0KhQRf-BEa5tdwJ.mjs";
2
- import * as _gatwech_core30 from "@gatwech/core";
3
- import * as better_call83 from "better-call";
1
+ import { o as Session, s as User } from "./index-BL_t8cRp-C4QYBsac.mjs";
2
+ import * as _gatwech_core8 from "@gatwech/core";
3
+ import * as better_call104 from "better-call";
4
4
  import * as z$1 from "zod";
5
5
 
6
6
  //#region src/plugins/multi-session/index.d.ts
@@ -46,7 +46,7 @@ declare const multiSession: (options?: MultiSessionConfig | undefined) => {
46
46
  } & {
47
47
  asResponse?: boolean;
48
48
  returnHeaders?: boolean;
49
- use?: better_call83.Middleware[];
49
+ use?: better_call104.Middleware[];
50
50
  path?: string;
51
51
  } & {
52
52
  asResponse?: AsResponse | undefined;
@@ -102,7 +102,7 @@ declare const multiSession: (options?: MultiSessionConfig | undefined) => {
102
102
  } & {
103
103
  asResponse?: boolean;
104
104
  returnHeaders?: boolean;
105
- use?: better_call83.Middleware[];
105
+ use?: better_call104.Middleware[];
106
106
  path?: string;
107
107
  } & {
108
108
  asResponse?: AsResponse | undefined;
@@ -123,7 +123,7 @@ declare const multiSession: (options?: MultiSessionConfig | undefined) => {
123
123
  sessionToken: z$1.ZodString;
124
124
  }, z$1.core.$strip>;
125
125
  requireHeaders: true;
126
- use: ((inputContext: better_call83.MiddlewareInputContext<better_call83.MiddlewareOptions>) => Promise<{
126
+ use: ((inputContext: better_call104.MiddlewareInputContext<better_call104.MiddlewareOptions>) => Promise<{
127
127
  session: {
128
128
  session: Record<string, any> & {
129
129
  id: string;
@@ -206,7 +206,7 @@ declare const multiSession: (options?: MultiSessionConfig | undefined) => {
206
206
  } & {
207
207
  asResponse?: boolean;
208
208
  returnHeaders?: boolean;
209
- use?: better_call83.Middleware[];
209
+ use?: better_call104.Middleware[];
210
210
  path?: string;
211
211
  } & {
212
212
  asResponse?: AsResponse | undefined;
@@ -225,7 +225,7 @@ declare const multiSession: (options?: MultiSessionConfig | undefined) => {
225
225
  sessionToken: z$1.ZodString;
226
226
  }, z$1.core.$strip>;
227
227
  requireHeaders: true;
228
- use: ((inputContext: better_call83.MiddlewareInputContext<better_call83.MiddlewareOptions>) => Promise<{
228
+ use: ((inputContext: better_call104.MiddlewareInputContext<better_call104.MiddlewareOptions>) => Promise<{
229
229
  session: {
230
230
  session: Record<string, any> & {
231
231
  id: string;
@@ -278,8 +278,8 @@ declare const multiSession: (options?: MultiSessionConfig | undefined) => {
278
278
  };
279
279
  hooks: {
280
280
  after: {
281
- matcher: (context: _gatwech_core30.HookEndpointContext) => boolean;
282
- handler: (inputContext: better_call83.MiddlewareInputContext<better_call83.MiddlewareOptions>) => Promise<void>;
281
+ matcher: (context: _gatwech_core8.HookEndpointContext) => boolean;
282
+ handler: (inputContext: better_call104.MiddlewareInputContext<better_call104.MiddlewareOptions>) => Promise<void>;
283
283
  }[];
284
284
  };
285
285
  $ERROR_CODES: {
@@ -1,6 +1,6 @@
1
- import { s as User } from "./index-Df0KhQRf-BEa5tdwJ.mjs";
2
- import * as _gatwech_core49 from "@gatwech/core";
3
- import * as better_call121 from "better-call";
1
+ import { s as User } from "./index-BL_t8cRp-C4QYBsac.mjs";
2
+ import * as _gatwech_core24 from "@gatwech/core";
3
+ import * as better_call156 from "better-call";
4
4
  import * as z$1 from "zod";
5
5
 
6
6
  //#region src/plugins/email-otp/index.d.ts
@@ -71,7 +71,7 @@ interface EmailOTPOptions {
71
71
  }
72
72
  declare const emailOTP: (options: EmailOTPOptions) => {
73
73
  id: "email-otp";
74
- init(ctx: _gatwech_core49.AuthContext<_gatwech_core49.PayvoAuthOptions>): {
74
+ init(ctx: _gatwech_core24.AuthContext<_gatwech_core24.PayvoAuthOptions>): {
75
75
  options: {
76
76
  emailVerification: {
77
77
  sendVerificationEmail(data: {
@@ -102,7 +102,7 @@ declare const emailOTP: (options: EmailOTPOptions) => {
102
102
  } & {
103
103
  asResponse?: boolean;
104
104
  returnHeaders?: boolean;
105
- use?: better_call121.Middleware[];
105
+ use?: better_call156.Middleware[];
106
106
  path?: string;
107
107
  } & {
108
108
  asResponse?: AsResponse | undefined;
@@ -175,7 +175,7 @@ declare const emailOTP: (options: EmailOTPOptions) => {
175
175
  } & {
176
176
  asResponse?: boolean;
177
177
  returnHeaders?: boolean;
178
- use?: better_call121.Middleware[];
178
+ use?: better_call156.Middleware[];
179
179
  path?: string;
180
180
  } & {
181
181
  asResponse?: AsResponse | undefined;
@@ -265,7 +265,7 @@ declare const emailOTP: (options: EmailOTPOptions) => {
265
265
  } & {
266
266
  asResponse?: boolean;
267
267
  returnHeaders?: boolean;
268
- use?: better_call121.Middleware[];
268
+ use?: better_call156.Middleware[];
269
269
  path?: string;
270
270
  } & {
271
271
  asResponse?: AsResponse | undefined;
@@ -350,7 +350,7 @@ declare const emailOTP: (options: EmailOTPOptions) => {
350
350
  } & {
351
351
  asResponse?: boolean;
352
352
  returnHeaders?: boolean;
353
- use?: better_call121.Middleware[];
353
+ use?: better_call156.Middleware[];
354
354
  path?: string;
355
355
  } & {
356
356
  asResponse?: AsResponse | undefined;
@@ -485,7 +485,7 @@ declare const emailOTP: (options: EmailOTPOptions) => {
485
485
  } & {
486
486
  asResponse?: boolean;
487
487
  returnHeaders?: boolean;
488
- use?: better_call121.Middleware[];
488
+ use?: better_call156.Middleware[];
489
489
  path?: string;
490
490
  } & {
491
491
  asResponse?: AsResponse | undefined;
@@ -587,7 +587,7 @@ declare const emailOTP: (options: EmailOTPOptions) => {
587
587
  } & {
588
588
  asResponse?: boolean;
589
589
  returnHeaders?: boolean;
590
- use?: better_call121.Middleware[];
590
+ use?: better_call156.Middleware[];
591
591
  path?: string;
592
592
  } & {
593
593
  asResponse?: AsResponse | undefined;
@@ -668,7 +668,7 @@ declare const emailOTP: (options: EmailOTPOptions) => {
668
668
  } & {
669
669
  asResponse?: boolean;
670
670
  returnHeaders?: boolean;
671
- use?: better_call121.Middleware[];
671
+ use?: better_call156.Middleware[];
672
672
  path?: string;
673
673
  } & {
674
674
  asResponse?: AsResponse | undefined;
@@ -749,7 +749,7 @@ declare const emailOTP: (options: EmailOTPOptions) => {
749
749
  } & {
750
750
  asResponse?: boolean;
751
751
  returnHeaders?: boolean;
752
- use?: better_call121.Middleware[];
752
+ use?: better_call156.Middleware[];
753
753
  path?: string;
754
754
  } & {
755
755
  asResponse?: AsResponse | undefined;
@@ -802,8 +802,8 @@ declare const emailOTP: (options: EmailOTPOptions) => {
802
802
  };
803
803
  hooks: {
804
804
  after: {
805
- matcher(context: _gatwech_core49.HookEndpointContext): boolean;
806
- handler: (inputContext: better_call121.MiddlewareInputContext<better_call121.MiddlewareOptions>) => Promise<void>;
805
+ matcher(context: _gatwech_core24.HookEndpointContext): boolean;
806
+ handler: (inputContext: better_call156.MiddlewareInputContext<better_call156.MiddlewareOptions>) => Promise<void>;
807
807
  }[];
808
808
  };
809
809
  $ERROR_CODES: {
@@ -1,6 +1,6 @@
1
- import { g as User } from "./index-BNhJglHC.mjs";
1
+ import { g as User } from "./index-BjCQ3jmE.mjs";
2
2
  import { t as InferOptionSchema } from "./plugins-Dy_FrD4Y.mjs";
3
- import * as better_call76 from "better-call";
3
+ import * as better_call113 from "better-call";
4
4
  import * as z$1 from "zod";
5
5
 
6
6
  //#region src/plugins/phone-number/index.d.ts
@@ -136,7 +136,7 @@ declare const phoneNumber: (options?: PhoneNumberOptions | undefined) => {
136
136
  } & {
137
137
  asResponse?: boolean;
138
138
  returnHeaders?: boolean;
139
- use?: better_call76.Middleware[];
139
+ use?: better_call113.Middleware[];
140
140
  path?: string;
141
141
  } & {
142
142
  asResponse?: AsResponse | undefined;
@@ -225,7 +225,7 @@ declare const phoneNumber: (options?: PhoneNumberOptions | undefined) => {
225
225
  } & {
226
226
  asResponse?: boolean;
227
227
  returnHeaders?: boolean;
228
- use?: better_call76.Middleware[];
228
+ use?: better_call113.Middleware[];
229
229
  path?: string;
230
230
  } & {
231
231
  asResponse?: AsResponse | undefined;
@@ -307,7 +307,7 @@ declare const phoneNumber: (options?: PhoneNumberOptions | undefined) => {
307
307
  } & {
308
308
  asResponse?: boolean;
309
309
  returnHeaders?: boolean;
310
- use?: better_call76.Middleware[];
310
+ use?: better_call113.Middleware[];
311
311
  path?: string;
312
312
  } & {
313
313
  asResponse?: AsResponse | undefined;
@@ -449,7 +449,7 @@ declare const phoneNumber: (options?: PhoneNumberOptions | undefined) => {
449
449
  } & {
450
450
  asResponse?: boolean;
451
451
  returnHeaders?: boolean;
452
- use?: better_call76.Middleware[];
452
+ use?: better_call113.Middleware[];
453
453
  path?: string;
454
454
  } & {
455
455
  asResponse?: AsResponse | undefined;
@@ -517,7 +517,7 @@ declare const phoneNumber: (options?: PhoneNumberOptions | undefined) => {
517
517
  } & {
518
518
  asResponse?: boolean;
519
519
  returnHeaders?: boolean;
520
- use?: better_call76.Middleware[];
520
+ use?: better_call113.Middleware[];
521
521
  path?: string;
522
522
  } & {
523
523
  asResponse?: AsResponse | undefined;