@gatwech/auth 1.0.0-beta.18 → 1.0.0-beta.19

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 (224) hide show
  1. package/README.md +8 -14
  2. package/dist/{access-C6O_osEz.mjs → access-CrwEFPHE.mjs} +1 -1
  3. package/dist/{access-DT1f6l5k.mjs → access-bhklJd7m.mjs} +1 -1
  4. package/dist/{adapter-factory-BZ2Qiqpn.mjs → adapter-factory-xbLUJt85.mjs} +2 -2
  5. package/dist/adapters/drizzle-adapter/index.mjs +6 -5
  6. package/dist/adapters/index.d.mts +5 -5
  7. package/dist/adapters/index.mjs +6 -5
  8. package/dist/adapters/kysely-adapter/index.d.mts +1 -1
  9. package/dist/adapters/kysely-adapter/index.mjs +8 -7
  10. package/dist/adapters/memory-adapter/index.d.mts +1 -1
  11. package/dist/adapters/memory-adapter/index.mjs +6 -5
  12. package/dist/adapters/mongodb-adapter/index.mjs +6 -5
  13. package/dist/adapters/prisma-adapter/index.mjs +6 -5
  14. package/dist/adapters/test.mjs +4 -3
  15. package/dist/{admin-Bcq53Nwj.mjs → admin-BzUJL6tr.mjs} +6 -6
  16. package/dist/{anonymous-CRt1imBW.mjs → anonymous-BjlTk4gl.mjs} +5 -5
  17. package/dist/api/index.d.mts +5 -5
  18. package/dist/api/index.mjs +12 -11
  19. package/dist/{api-0pR_I-Nx.mjs → api-Dk8Yj_J5.mjs} +15 -5
  20. package/dist/audit-log-DKsUWR8O.mjs +772 -0
  21. package/dist/{auth-CBUoBX6o.mjs → auth-vfCyIIeV.mjs} +8 -8
  22. package/dist/{bearer-Djf_awfo.mjs → bearer-DvQLM00l.mjs} +2 -2
  23. package/dist/client/index.d.mts +21 -21
  24. package/dist/client/index.mjs +4 -4
  25. package/dist/client/plugins/index.d.mts +53 -45
  26. package/dist/client/plugins/index.mjs +16 -12
  27. package/dist/client/react/index.d.mts +19 -19
  28. package/dist/client/react/index.mjs +2 -2
  29. package/dist/client-4QEb0rUr.mjs +95 -0
  30. package/dist/client-CSOs1YN7.d.mts +14 -0
  31. package/dist/client-DZHNfxuR.d.mts +75 -0
  32. package/dist/client-DzOqXJUm.mjs +15 -0
  33. package/dist/{client-aExCkfwm.mjs → client-xga7yFIX.mjs} +2 -2
  34. package/dist/cookies/index.d.mts +6 -6
  35. package/dist/cookies/index.mjs +2 -2
  36. package/dist/{cookies-cJObLwn1.mjs → cookies-BuvlgcA-.mjs} +1 -1
  37. package/dist/crypto/index.mjs +2 -1
  38. package/dist/{crypto-Bb42eMrH.mjs → crypto-CCyta8xj.mjs} +1 -6
  39. package/dist/{custom-session-L3t7ecsd.mjs → custom-session-DN_-pfi_.mjs} +2 -2
  40. package/dist/db/index.d.mts +5 -5
  41. package/dist/db/index.mjs +9 -8
  42. package/dist/{db-BrstmDhc.mjs → db-7vHnL1XA.mjs} +15 -9
  43. package/dist/{device-authorization-V4s3h4Mj.mjs → device-authorization-BKnNhlsz.mjs} +4 -4
  44. package/dist/{dialect-CeddeGHf.mjs → dialect-HsWUfpYY.mjs} +2 -2
  45. package/dist/{email-otp-BtDHSw14.mjs → email-otp-Dw0DypjQ.mjs} +7 -6
  46. package/dist/{generic-oauth-CL5X27ZI.mjs → generic-oauth-DFj27JY8.mjs} +4 -4
  47. package/dist/{has-permission-BpAr7uCn.mjs → has-permission-Bvg8de8g.mjs} +1 -1
  48. package/dist/{haveibeenpwned-cMpJvmzI.mjs → haveibeenpwned-CzNda7Tn.mjs} +28 -15
  49. package/dist/{client-CNY0tn9g.d.mts → index-BAVzFqII.d.mts} +21 -21
  50. package/dist/{index-DaBcikv9.d.mts → index-BNDRYfTF.d.mts} +2 -2
  51. package/dist/{index-Cxi7TbLE.d.mts → index-BNhJglHC.d.mts} +122 -122
  52. package/dist/{index-BYMI9r_d.d.mts → index-Blmhq6eA.d.mts} +4 -4
  53. package/dist/{index-BHoQlf7a.d.mts → index-CKnPAS5n.d.mts} +178 -178
  54. package/dist/{index-34ONrP8l.d.mts → index-COGe8UJx.d.mts} +11 -11
  55. package/dist/{index-Buhn3hkR.d.mts → index-CP3FNbOZ.d.mts} +8 -8
  56. package/dist/{index-D_k662QG.d.mts → index-CUknVRZp.d.mts} +14 -14
  57. package/dist/{index-DKNNV1kb.d.mts → index-CaqpCfE5.d.mts} +8 -8
  58. package/dist/{index-BBm8nQ9Q.d.mts → index-CgeC2eGC.d.mts} +2 -2
  59. package/dist/{index-DR0xXno9.d.mts → index-CsxtcAO0.d.mts} +1 -1
  60. package/dist/{index-CuFzhoS6.d.mts → index-Cv9iMevV.d.mts} +10 -10
  61. package/dist/{index-C7fQuk-V.d.mts → index-CxlWnL9c.d.mts} +1 -1
  62. package/dist/{index-zjjNBRY2.d.mts → index-DG-X1PK5.d.mts} +6 -6
  63. package/dist/index-DRM35ir1.d.mts +3769 -0
  64. package/dist/{index-BqhKCbPH.d.mts → index-DS-R7st3.d.mts} +6 -6
  65. package/dist/{index-C-u1h_WX.d.mts → index-DXVU0HGr.d.mts} +5 -5
  66. package/dist/{index-DoXZYQpq.d.mts → index-Db8jqUq2.d.mts} +10 -10
  67. package/dist/{index-65G5U5DB-DSdjzreF.d.mts → index-Df0KhQRf-BEa5tdwJ.d.mts} +3 -2
  68. package/dist/{index-B-XKqFvY.d.mts → index-Df4SvZaE.d.mts} +11 -4
  69. package/dist/{index-G6V0Z_Mn.d.mts → index-DyH_CgmX.d.mts} +10 -10
  70. package/dist/{admin-DtfO1PLg.d.mts → index-EABwA_BH.d.mts} +36 -36
  71. package/dist/{index-z0KSvE5i.d.mts → index-QmocqGM-.d.mts} +1 -1
  72. package/dist/{index-DlaMq1nb.d.mts → index-mxEUX2Gs.d.mts} +14 -14
  73. package/dist/{client-BOX93C3d.d.mts → index-xoYsoOiR.d.mts} +52 -52
  74. package/dist/{index-B3n8e37d.d.mts → index-zBdYQGaS.d.mts} +7 -7
  75. package/dist/index.d.mts +5 -5
  76. package/dist/index.mjs +16 -15
  77. package/dist/integrations/next-js.mjs +2 -2
  78. package/dist/integrations/node.d.mts +5 -5
  79. package/dist/integrations/react-start.d.mts +4 -4
  80. package/dist/integrations/react-start.mjs +2 -2
  81. package/dist/{jwt-lHV4QHpD.mjs → jwt-DBN2mu0r.mjs} +4 -4
  82. package/dist/{kysely-adapter-DpzYO8Yf.mjs → kysely-adapter-Bkm1liPW.mjs} +1 -1
  83. package/dist/{magic-link-Bk-ueorR.mjs → magic-link-D9Em1aOR.mjs} +3 -3
  84. package/dist/{multi-session-DRrLKrg9.mjs → multi-session-Dno_8DxC.mjs} +5 -5
  85. package/dist/{oauth-proxy-D1sWh9B_.mjs → oauth-proxy-DW-zt8wv.mjs} +2 -2
  86. package/dist/oauth2/index.d.mts +5 -5
  87. package/dist/oauth2/index.mjs +12 -11
  88. package/dist/{one-tap-DMswkTEc.mjs → one-tap-CodeyQb8.mjs} +2 -2
  89. package/dist/{organization-BArHO_5v.mjs → organization-CkTKs7bx.mjs} +9 -9
  90. package/dist/{passkey-CcD4CnhM.mjs → passkey-JNQTz5a0.mjs} +5 -5
  91. package/dist/{phone-number-rHDIlh-2.mjs → phone-number-Dqz8aeyF.mjs} +4 -4
  92. package/dist/plugins/access/index.d.mts +2 -2
  93. package/dist/plugins/access/index.mjs +1 -1
  94. package/dist/plugins/admin/access/index.d.mts +2 -2
  95. package/dist/plugins/admin/access/index.mjs +2 -2
  96. package/dist/plugins/admin/index.d.mts +7 -8
  97. package/dist/plugins/admin/index.mjs +17 -16
  98. package/dist/plugins/anonymous/index.d.mts +6 -6
  99. package/dist/plugins/anonymous/index.mjs +13 -12
  100. package/dist/plugins/audit-log/client.d.mts +30 -0
  101. package/dist/plugins/audit-log/client.mjs +3 -0
  102. package/dist/plugins/audit-log/index.d.mts +29 -0
  103. package/dist/plugins/audit-log/index.mjs +20 -0
  104. package/dist/plugins/bearer/index.d.mts +1 -1
  105. package/dist/plugins/bearer/index.mjs +3 -3
  106. package/dist/plugins/captcha/index.d.mts +1 -1
  107. package/dist/plugins/captcha/index.mjs +1 -1
  108. package/dist/plugins/custom-session/index.d.mts +6 -6
  109. package/dist/plugins/custom-session/index.mjs +14 -13
  110. package/dist/plugins/device-authorization/index.d.mts +3 -3
  111. package/dist/plugins/device-authorization/index.mjs +13 -12
  112. package/dist/plugins/email-otp/index.d.mts +2 -2
  113. package/dist/plugins/email-otp/index.mjs +14 -13
  114. package/dist/plugins/generic-oauth/index.d.mts +6 -6
  115. package/dist/plugins/generic-oauth/index.mjs +13 -12
  116. package/dist/plugins/haveibeenpwned/index.d.mts +2 -2
  117. package/dist/plugins/haveibeenpwned/index.mjs +14 -13
  118. package/dist/plugins/index.d.mts +29 -139
  119. package/dist/plugins/index.mjs +47 -42
  120. package/dist/plugins/jwt/index.d.mts +6 -6
  121. package/dist/plugins/jwt/index.mjs +13 -12
  122. package/dist/plugins/magic-link/index.d.mts +1 -1
  123. package/dist/plugins/magic-link/index.mjs +13 -12
  124. package/dist/plugins/multi-session/index.d.mts +2 -2
  125. package/dist/plugins/multi-session/index.mjs +13 -12
  126. package/dist/plugins/oauth-proxy/index.d.mts +1 -1
  127. package/dist/plugins/oauth-proxy/index.mjs +13 -12
  128. package/dist/plugins/one-tap/index.d.mts +1 -1
  129. package/dist/plugins/one-tap/index.mjs +13 -12
  130. package/dist/plugins/one-time-token/index.d.mts +6 -6
  131. package/dist/plugins/one-time-token/index.mjs +46 -41
  132. package/dist/plugins/organization/access/index.d.mts +3 -3
  133. package/dist/plugins/organization/access/index.mjs +2 -2
  134. package/dist/plugins/organization/index.d.mts +8 -8
  135. package/dist/plugins/organization/index.mjs +17 -16
  136. package/dist/plugins/passkey/index.d.mts +6 -6
  137. package/dist/plugins/passkey/index.mjs +13 -12
  138. package/dist/plugins/phone-number/index.d.mts +6 -6
  139. package/dist/plugins/phone-number/index.mjs +13 -12
  140. package/dist/plugins/sentinel/client.d.mts +30 -0
  141. package/dist/plugins/sentinel/client.mjs +5 -0
  142. package/dist/plugins/sentinel/index.d.mts +29 -0
  143. package/dist/plugins/sentinel/index.mjs +22 -0
  144. package/dist/plugins/two-factor/index.d.mts +6 -6
  145. package/dist/plugins/two-factor/index.mjs +15 -14
  146. package/dist/plugins/username/index.d.mts +3 -3
  147. package/dist/plugins/username/index.mjs +13 -12
  148. package/dist/{plugins-hFZT3hmK.d.mts → plugins-Dy_FrD4Y.d.mts} +1 -1
  149. package/dist/{plugins-3jfNste3.mjs → plugins-yF8CFUDR.mjs} +11 -8
  150. package/dist/pow-OK01yPG3.mjs +61 -0
  151. package/dist/{proxy-CL9PZXJA.mjs → proxy-C_KXfOhk.mjs} +1 -1
  152. package/dist/random-32E3cU5o.mjs +7 -0
  153. package/dist/registry-CqG_3Qnx.mjs +194 -0
  154. package/dist/sentinel-C-D1IHJo.mjs +1395 -0
  155. package/dist/{session-Dgp133Yt.mjs → session-BB3oqApE.mjs} +2 -2
  156. package/dist/src/adapters/memory-adapter/memory-adapter.d.ts +1 -1
  157. package/dist/src/adapters/prisma-adapter/test/auth.d.ts +1 -1
  158. package/dist/src/adapters/tests/auth-flow.d.ts +3 -3
  159. package/dist/src/adapters/tests/normal.d.ts +1 -1
  160. package/dist/src/adapters/tests/number-id.d.ts +3 -3
  161. package/dist/src/adapters/tests/performance.d.ts +3 -3
  162. package/dist/src/adapters/tests/transactions.d.ts +3 -3
  163. package/dist/src/api/index.d.ts +8 -8
  164. package/dist/src/client/plugins/index.d.ts +2 -0
  165. package/dist/src/plugins/admin/admin.d.ts +2 -2
  166. package/dist/src/plugins/api-key/index.d.ts +2 -2
  167. package/dist/src/plugins/audit-log/client.d.ts +10 -0
  168. package/dist/src/plugins/audit-log/events.d.ts +90 -0
  169. package/dist/src/plugins/audit-log/index.d.ts +614 -0
  170. package/dist/src/plugins/audit-log/registry.d.ts +13 -0
  171. package/dist/src/plugins/audit-log/remote.d.ts +34 -0
  172. package/dist/src/plugins/audit-log/schema.d.ts +50 -0
  173. package/dist/src/plugins/audit-log/types.d.ts +117 -0
  174. package/dist/src/plugins/email-otp/index.d.ts +1 -1
  175. package/dist/src/plugins/haveibeenpwned/index.d.ts +6 -0
  176. package/dist/src/plugins/index.d.ts +2 -0
  177. package/dist/src/plugins/multi-session/index.d.ts +8 -8
  178. package/dist/src/plugins/organization/organization.d.ts +5 -5
  179. package/dist/src/plugins/organization/routes/crud-access-control.d.ts +8 -8
  180. package/dist/src/plugins/organization/routes/crud-invites.d.ts +46 -46
  181. package/dist/src/plugins/organization/routes/crud-members.d.ts +40 -40
  182. package/dist/src/plugins/organization/routes/crud-org.d.ts +36 -36
  183. package/dist/src/plugins/organization/routes/crud-team.d.ts +50 -50
  184. package/dist/src/plugins/sentinel/actions.d.ts +64 -0
  185. package/dist/src/plugins/sentinel/client.d.ts +67 -0
  186. package/dist/src/plugins/sentinel/email.d.ts +22 -0
  187. package/dist/src/plugins/sentinel/geo.d.ts +22 -0
  188. package/dist/src/plugins/sentinel/index.d.ts +326 -0
  189. package/dist/src/plugins/sentinel/intel.d.ts +45 -0
  190. package/dist/src/plugins/sentinel/pow.d.ts +21 -0
  191. package/dist/src/plugins/sentinel/schema.d.ts +110 -0
  192. package/dist/src/plugins/sentinel/store.d.ts +37 -0
  193. package/dist/src/plugins/sentinel/types.d.ts +412 -0
  194. package/dist/src/test-utils/memory-secondary-storage.d.ts +16 -0
  195. package/dist/src/test-utils/password.d.ts +12 -0
  196. package/dist/src/test-utils/test-instance.d.ts +25 -25
  197. package/dist/test-utils/index.d.mts +1048 -1048
  198. package/dist/test-utils/index.mjs +53 -48
  199. package/dist/{two-factor-ClUXxom2.mjs → two-factor-CDVjxx4f.mjs} +6 -5
  200. package/dist/types/index.d.mts +5 -5
  201. package/dist/types/index.mjs +1 -1
  202. package/dist/{username-DiGklOGl.mjs → username-BHNvcvsY.mjs} +3 -3
  203. package/dist/{utils-SOMB4Px5.mjs → utils-B03WRaGi.mjs} +2 -1
  204. package/package.json +36 -3
  205. package/dist/index-CM-CFWwr.d.mts +0 -1919
  206. package/dist/index-DB7t8whN.d.mts +0 -1
  207. /package/dist/{access-BO2g7QVe.mjs → access-BM6jSA5j.mjs} +0 -0
  208. /package/dist/{bun-sqlite-dialect-CeNvMaZz.mjs → bun-sqlite-dialect-CDGusFqF.mjs} +0 -0
  209. /package/dist/{captcha-BqaMxlKC.mjs → captcha-DGP9lCRe.mjs} +0 -0
  210. /package/dist/{client-CygJhqeB.mjs → client-BuveH3MN.mjs} +0 -0
  211. /package/dist/{client-WiN43tAS.mjs → client-cBiytuOL.mjs} +0 -0
  212. /package/dist/{date-Cx2yCiC4.mjs → date-CMr04reD.mjs} +0 -0
  213. /package/dist/{esm-C-QicDNz.mjs → esm-BbvI87Z2.mjs} +0 -0
  214. /package/dist/{get-tables-BQP7YW9c.mjs → get-tables-CKvSyDST.mjs} +0 -0
  215. /package/dist/{helper-tmxW3BHj.d.mts → helper-BgOIGHsu.d.mts} +0 -0
  216. /package/dist/{misc-beA1w3XV.mjs → misc-fKH4d5XQ.mjs} +0 -0
  217. /package/dist/{node-sqlite-dialect-BcKxBQnm.mjs → node-sqlite-dialect-CIOjcg31.mjs} +0 -0
  218. /package/dist/{parser-DcrIEuXE.mjs → parser-D7EkhAjZ.mjs} +0 -0
  219. /package/dist/{password-sVC4nePO.mjs → password-5CdcAVaH.mjs} +0 -0
  220. /package/dist/{permission-DLYUF3cW.mjs → permission-CDDWgA_O.mjs} +0 -0
  221. /package/dist/{plugin-helper-4L-lzsjZ.mjs → plugin-helper-RJJBTOba.mjs} +0 -0
  222. /package/dist/{promise-8rrEHRXd.mjs → promise-D7Oo6_cY.mjs} +0 -0
  223. /package/dist/{types-Bjn15Uy6.mjs → types-DCPpFKUB.mjs} +0 -0
  224. /package/dist/{types-B1OL7hyf.d.mts → types-DNQ9XQrB.d.mts} +0 -0
@@ -1,9 +1,9 @@
1
- import { t as Awaitable } from "./helper-tmxW3BHj.mjs";
2
- import { On as index_d_exports, g as User, h as Session } from "./index-Cxi7TbLE.mjs";
3
- import { t as InferOptionSchema } from "./plugins-hFZT3hmK.mjs";
4
- import * as _gatwech_core17 from "@gatwech/core";
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";
3
+ import { t as InferOptionSchema } from "./plugins-Dy_FrD4Y.mjs";
4
+ import * as _gatwech_core0 from "@gatwech/core";
5
5
  import { GenericEndpointContext } from "@gatwech/core";
6
- import * as better_call169 from "better-call";
6
+ import * as better_call6 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_call169.Middleware[];
253
+ use?: better_call6.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_call169.Middleware[];
358
+ use?: better_call6.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_call169.MiddlewareInputContext<better_call169.MiddlewareOptions>) => Promise<{
374
+ use: ((inputContext: better_call6.MiddlewareInputContext<better_call6.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_call169.Middleware[];
443
+ use?: better_call6.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_core17.HookEndpointContext): boolean;
480
- handler: (inputContext: better_call169.MiddlewareInputContext<better_call169.MiddlewareOptions>) => Promise<void>;
479
+ matcher(context: _gatwech_core0.HookEndpointContext): boolean;
480
+ handler: (inputContext: better_call6.MiddlewareInputContext<better_call6.MiddlewareOptions>) => Promise<void>;
481
481
  }[];
482
482
  };
483
483
  schema: {
@@ -1,9 +1,9 @@
1
- import { g as User } from "./index-Cxi7TbLE.mjs";
2
- import * as _gatwech_core15 from "@gatwech/core";
1
+ import { g as User } from "./index-BNhJglHC.mjs";
2
+ import * as _gatwech_core40 from "@gatwech/core";
3
3
  import { GenericEndpointContext } from "@gatwech/core";
4
4
  import * as _gatwech_core_oauth20 from "@gatwech/core/oauth2";
5
5
  import { OAuth2Tokens, OAuth2UserInfo, OAuthProvider } from "@gatwech/core/oauth2";
6
- import * as better_call158 from "better-call";
6
+ import * as better_call193 from "better-call";
7
7
  import * as z$1 from "zod";
8
8
 
9
9
  //#region src/plugins/generic-oauth/index.d.ts
@@ -136,7 +136,7 @@ interface GenericOAuthOptions {
136
136
  */
137
137
  declare const genericOAuth: (options: GenericOAuthOptions) => {
138
138
  id: "generic-oauth";
139
- init: (ctx: _gatwech_core15.AuthContext<_gatwech_core15.PayvoAuthOptions>) => {
139
+ init: (ctx: _gatwech_core40.AuthContext<_gatwech_core40.PayvoAuthOptions>) => {
140
140
  context: {
141
141
  socialProviders: OAuthProvider<Record<string, any>, Partial<_gatwech_core_oauth20.ProviderOptions<any>>>[];
142
142
  };
@@ -182,7 +182,7 @@ declare const genericOAuth: (options: GenericOAuthOptions) => {
182
182
  } & {
183
183
  asResponse?: boolean;
184
184
  returnHeaders?: boolean;
185
- use?: better_call158.Middleware[];
185
+ use?: better_call193.Middleware[];
186
186
  path?: string;
187
187
  } & {
188
188
  asResponse?: AsResponse | undefined;
@@ -262,7 +262,7 @@ declare const genericOAuth: (options: GenericOAuthOptions) => {
262
262
  } & {
263
263
  asResponse?: boolean;
264
264
  returnHeaders?: boolean;
265
- use?: better_call158.Middleware[];
265
+ use?: better_call193.Middleware[];
266
266
  path?: string;
267
267
  } & {
268
268
  asResponse?: AsResponse | undefined;
@@ -343,7 +343,7 @@ declare const genericOAuth: (options: GenericOAuthOptions) => {
343
343
  } & {
344
344
  asResponse?: boolean;
345
345
  returnHeaders?: boolean;
346
- use?: better_call158.Middleware[];
346
+ use?: better_call193.Middleware[];
347
347
  path?: string;
348
348
  } & {
349
349
  asResponse?: AsResponse | undefined;
@@ -366,7 +366,7 @@ declare const genericOAuth: (options: GenericOAuthOptions) => {
366
366
  scopes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
367
367
  errorCallbackURL: z$1.ZodOptional<z$1.ZodString>;
368
368
  }, z$1.core.$strip>;
369
- use: ((inputContext: better_call158.MiddlewareInputContext<better_call158.MiddlewareOptions>) => Promise<{
369
+ use: ((inputContext: better_call193.MiddlewareInputContext<better_call193.MiddlewareOptions>) => Promise<{
370
370
  session: {
371
371
  session: Record<string, any> & {
372
372
  id: string;
@@ -1,6 +1,6 @@
1
- import { s as User } from "./index-65G5U5DB-DSdjzreF.mjs";
2
- import * as _gatwech_core20 from "@gatwech/core";
3
- import * as better_call193 from "better-call";
1
+ import { s as User } from "./index-Df0KhQRf-BEa5tdwJ.mjs";
2
+ import * as _gatwech_core10 from "@gatwech/core";
3
+ import * as better_call140 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_core20.AuthContext<_gatwech_core20.PayvoAuthOptions>): {
74
+ init(ctx: _gatwech_core10.AuthContext<_gatwech_core10.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_call193.Middleware[];
105
+ use?: better_call140.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_call193.Middleware[];
178
+ use?: better_call140.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_call193.Middleware[];
268
+ use?: better_call140.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_call193.Middleware[];
353
+ use?: better_call140.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_call193.Middleware[];
488
+ use?: better_call140.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_call193.Middleware[];
590
+ use?: better_call140.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_call193.Middleware[];
671
+ use?: better_call140.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_call193.Middleware[];
752
+ use?: better_call140.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_core20.HookEndpointContext): boolean;
806
- handler: (inputContext: better_call193.MiddlewareInputContext<better_call193.MiddlewareOptions>) => Promise<void>;
805
+ matcher(context: _gatwech_core10.HookEndpointContext): boolean;
806
+ handler: (inputContext: better_call140.MiddlewareInputContext<better_call140.MiddlewareOptions>) => Promise<void>;
807
807
  }[];
808
808
  };
809
809
  $ERROR_CODES: {
@@ -1,6 +1,6 @@
1
- import { g as User } from "./index-Cxi7TbLE.mjs";
2
- import { t as InferOptionSchema } from "./plugins-hFZT3hmK.mjs";
3
- import * as better_call61 from "better-call";
1
+ import { g as User } from "./index-BNhJglHC.mjs";
2
+ import { t as InferOptionSchema } from "./plugins-Dy_FrD4Y.mjs";
3
+ import * as better_call1 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_call61.Middleware[];
139
+ use?: better_call1.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_call61.Middleware[];
228
+ use?: better_call1.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_call61.Middleware[];
310
+ use?: better_call1.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_call61.Middleware[];
452
+ use?: better_call1.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_call61.Middleware[];
520
+ use?: better_call1.Middleware[];
521
521
  path?: string;
522
522
  } & {
523
523
  asResponse?: AsResponse | undefined;
@@ -1,4 +1,4 @@
1
- import * as _gatwech_core18 from "@gatwech/core";
1
+ import * as _gatwech_core51 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_core18.AuthContext<_gatwech_core18.PayvoAuthOptions>) => Promise<{
37
+ onRequest: (request: Request, ctx: _gatwech_core51.AuthContext<_gatwech_core51.PayvoAuthOptions>) => Promise<{
38
38
  response: Response;
39
39
  } | undefined>;
40
40
  };
@@ -1,4 +1,4 @@
1
- import { g as User, h as Session } from "./index-Cxi7TbLE.mjs";
1
+ import { g as User, h as Session } from "./index-BNhJglHC.mjs";
2
2
  import { GenericEndpointContext, PayvoAuthCookies, PayvoAuthOptions } from "@gatwech/core";
3
3
  import { CookieOptions } from "better-call";
4
4
  import "zod";
@@ -1,6 +1,6 @@
1
- import { t as InferOptionSchema } from "./plugins-hFZT3hmK.mjs";
2
- import * as _gatwech_core23 from "@gatwech/core";
3
- import * as better_call203 from "better-call";
1
+ import { t as InferOptionSchema } from "./plugins-Dy_FrD4Y.mjs";
2
+ import * as _gatwech_core32 from "@gatwech/core";
3
+ import * as better_call185 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_core23.AuthContext<_gatwech_core23.PayvoAuthOptions>): {
109
+ init(ctx: _gatwech_core32.AuthContext<_gatwech_core32.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_core23.GenericEndpointContext<_gatwech_core23.PayvoAuthOptions> | undefined): Promise<{
122
+ } & Record<string, unknown>, context: _gatwech_core32.GenericEndpointContext<_gatwech_core32.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_core23.GenericEndpointContext<_gatwech_core23.PayvoAuthOptions> | undefined): Promise<{
145
+ }> & Record<string, unknown>, context: _gatwech_core32.GenericEndpointContext<_gatwech_core32.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_call203.Middleware[];
185
+ use?: better_call185.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_call203.Middleware[];
294
+ use?: better_call185.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_core23.HookEndpointContext): boolean;
344
- handler: (inputContext: better_call203.MiddlewareInputContext<better_call203.MiddlewareOptions>) => Promise<void>;
343
+ matcher(context: _gatwech_core32.HookEndpointContext): boolean;
344
+ handler: (inputContext: better_call185.MiddlewareInputContext<better_call185.MiddlewareOptions>) => Promise<void>;
345
345
  }[];
346
346
  };
347
347
  $ERROR_CODES: {
@@ -1,4 +1,4 @@
1
- import { o as LiteralString } from "./helper-tmxW3BHj.mjs";
1
+ import { o as LiteralString } from "./helper-BgOIGHsu.mjs";
2
2
 
3
3
  //#region src/plugins/access/types.d.ts
4
4
  type SubArray<T$1 extends unknown[] | readonly unknown[] | any[]> = T$1[number][];
@@ -1,7 +1,7 @@
1
- import { f as InferSession, p as InferUser } from "./index-Cxi7TbLE.mjs";
2
- import * as _gatwech_core2 from "@gatwech/core";
1
+ import { f as InferSession, p as InferUser } from "./index-BNhJglHC.mjs";
2
+ import * as _gatwech_core14 from "@gatwech/core";
3
3
  import { GenericEndpointContext, PayvoAuthOptions } from "@gatwech/core";
4
- import * as better_call16 from "better-call";
4
+ import * as better_call157 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_core2.HookEndpointContext) => boolean;
23
- handler: (inputContext: better_call16.MiddlewareInputContext<better_call16.MiddlewareOptions>) => Promise<Awaited<Returns>[] | undefined>;
22
+ matcher: (ctx: _gatwech_core14.HookEndpointContext) => boolean;
23
+ handler: (inputContext: better_call157.MiddlewareInputContext<better_call157.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_call16.Middleware[];
46
+ use?: better_call157.Middleware[];
47
47
  path?: string;
48
48
  } & {
49
49
  asResponse?: AsResponse | undefined;