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

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 (117) hide show
  1. package/dist/adapters/index.d.mts +1 -1
  2. package/dist/adapters/prisma-adapter/index.mjs +1 -1
  3. package/dist/{admin-BzUJL6tr.mjs → admin-rd-xHhnP.mjs} +1 -1
  4. package/dist/{anonymous-BjlTk4gl.mjs → anonymous-qSasVeIe.mjs} +1 -1
  5. package/dist/api/index.d.mts +1 -1
  6. package/dist/api/index.mjs +1 -1
  7. package/dist/{api-Dk8Yj_J5.mjs → api-BV65Y-Rk.mjs} +5 -0
  8. package/dist/{audit-log-DgqHJ-uv.mjs → audit-log-DhRRCMrv.mjs} +21 -6
  9. package/dist/{auth-BoEA9bN7.mjs → auth-DtOjarwu.mjs} +1 -1
  10. package/dist/client/index.d.mts +1 -1
  11. package/dist/client/plugins/index.d.mts +46 -46
  12. package/dist/client/react/index.d.mts +15 -15
  13. package/dist/{client-Da7tq8m6.d.mts → client-CDaFOX7A.d.mts} +4 -4
  14. package/dist/{client-B00gkznv.d.mts → client-D8XKNpua.d.mts} +1 -1
  15. package/dist/cookies/index.d.mts +2 -2
  16. package/dist/db/index.d.mts +1 -1
  17. package/dist/{email-otp-Dw0DypjQ.mjs → email-otp-BmgAht1S.mjs} +1 -1
  18. package/dist/{generic-oauth-DFj27JY8.mjs → generic-oauth-C5_AXj2z.mjs} +1 -1
  19. package/dist/{haveibeenpwned-CzNda7Tn.mjs → haveibeenpwned-_3a5amT-.mjs} +1 -1
  20. package/dist/{index-C-IDh5yy.d.mts → index-382PsmkK.d.mts} +2 -2
  21. package/dist/{index-BjCQ3jmE.d.mts → index-3lfPQHhX.d.mts} +118 -118
  22. package/dist/{index-CMG4Pnen.d.mts → index-B4aWSJEd.d.mts} +6 -6
  23. package/dist/{index-BWYXZVsV.d.mts → index-B5r4oL5q.d.mts} +5 -5
  24. package/dist/{index-BKy-8t2n.d.mts → index-B7iZf_Dl.d.mts} +449 -112
  25. package/dist/{index-VUyESU4p.d.mts → index-BhYE1_9j.d.mts} +1 -1
  26. package/dist/{index-IX1to9TB.d.mts → index-Blq8KrTy.d.mts} +33 -33
  27. package/dist/{index-oNlp4SvD.d.mts → index-C-z4TCHD.d.mts} +10 -10
  28. package/dist/{index-D1OZ2e4m.d.mts → index-C8F7PsET.d.mts} +13 -13
  29. package/dist/{index-TrOnY3pM.d.mts → index-CExSHSFz.d.mts} +169 -169
  30. package/dist/{index-iRoaTsOj.d.mts → index-CIxFDcfQ.d.mts} +2 -2
  31. package/dist/{index-BECNG13R.d.mts → index-COFPq-mg.d.mts} +13 -13
  32. package/dist/{index-YeXSxzhX.d.mts → index-CWwQ1Q7t.d.mts} +17 -17
  33. package/dist/{index-CbBQdS-u.d.mts → index-CWxKeTtE.d.mts} +6 -6
  34. package/dist/{index-cPt-00xm.d.mts → index-D0SgItjY.d.mts} +6 -6
  35. package/dist/{index-Bhc37y9F.d.mts → index-DCliG2n6.d.mts} +3 -3
  36. package/dist/{index-CM1rFdwV.d.mts → index-DPVukjga.d.mts} +9 -9
  37. package/dist/{index-WV7VzW2H.d.mts → index-DUu0ieh6.d.mts} +8 -8
  38. package/dist/{index-Bxive_YT.d.mts → index-De2a2OyC.d.mts} +9 -9
  39. package/dist/{index-CpH-1sse.d.mts → index-Dg6Ftb6f.d.mts} +9 -9
  40. package/dist/{index-Dt2I0G4X.d.mts → index-Dgyj1fTk.d.mts} +7 -7
  41. package/dist/{index-CTqynuxm.d.mts → index-DxIqV3rU.d.mts} +4 -4
  42. package/dist/{index-jEkJ2Zfk.d.mts → index-DxRAXHrZ.d.mts} +6 -6
  43. package/dist/index.d.mts +1 -1
  44. package/dist/index.mjs +2 -2
  45. package/dist/integrations/next-js.d.mts +4 -4
  46. package/dist/integrations/node.d.mts +1 -1
  47. package/dist/integrations/react-start.d.mts +4 -4
  48. package/dist/{jwt-DBN2mu0r.mjs → jwt-Czv-v097.mjs} +1 -1
  49. package/dist/{magic-link-D9Em1aOR.mjs → magic-link-CJgE0Ngn.mjs} +1 -1
  50. package/dist/{multi-session-Dno_8DxC.mjs → multi-session-bveCXtQW.mjs} +1 -1
  51. package/dist/{oauth-proxy-DW-zt8wv.mjs → oauth-proxy-69n1xA8L.mjs} +1 -1
  52. package/dist/oauth2/index.d.mts +1 -1
  53. package/dist/oauth2/index.mjs +1 -1
  54. package/dist/{one-tap-CodeyQb8.mjs → one-tap-Cm1eHuqi.mjs} +1 -1
  55. package/dist/{organization-D4QMpChF.mjs → organization-BK3ks97y.mjs} +1 -1
  56. package/dist/plugins/admin/index.d.mts +2 -2
  57. package/dist/plugins/admin/index.mjs +2 -2
  58. package/dist/plugins/anonymous/index.d.mts +2 -2
  59. package/dist/plugins/anonymous/index.mjs +2 -2
  60. package/dist/plugins/audit-log/client.d.mts +23 -23
  61. package/dist/plugins/audit-log/index.d.mts +22 -22
  62. package/dist/plugins/audit-log/index.mjs +3 -3
  63. package/dist/plugins/bearer/index.d.mts +1 -1
  64. package/dist/plugins/captcha/index.d.mts +1 -1
  65. package/dist/plugins/custom-session/index.d.mts +2 -2
  66. package/dist/plugins/custom-session/index.mjs +1 -1
  67. package/dist/plugins/device-authorization/index.d.mts +1 -1
  68. package/dist/plugins/email-otp/index.d.mts +1 -1
  69. package/dist/plugins/email-otp/index.mjs +2 -2
  70. package/dist/plugins/generic-oauth/index.d.mts +2 -2
  71. package/dist/plugins/generic-oauth/index.mjs +2 -2
  72. package/dist/plugins/haveibeenpwned/index.d.mts +1 -1
  73. package/dist/plugins/haveibeenpwned/index.mjs +2 -2
  74. package/dist/plugins/index.d.mts +22 -22
  75. package/dist/plugins/index.mjs +17 -17
  76. package/dist/plugins/jwt/index.d.mts +2 -2
  77. package/dist/plugins/jwt/index.mjs +2 -2
  78. package/dist/plugins/magic-link/index.d.mts +1 -1
  79. package/dist/plugins/magic-link/index.mjs +2 -2
  80. package/dist/plugins/multi-session/index.d.mts +1 -1
  81. package/dist/plugins/multi-session/index.mjs +2 -2
  82. package/dist/plugins/oauth-proxy/index.d.mts +1 -1
  83. package/dist/plugins/oauth-proxy/index.mjs +2 -2
  84. package/dist/plugins/one-tap/index.d.mts +1 -1
  85. package/dist/plugins/one-tap/index.mjs +2 -2
  86. package/dist/plugins/one-time-token/index.d.mts +2 -2
  87. package/dist/plugins/one-time-token/index.mjs +17 -17
  88. package/dist/plugins/organization/index.d.mts +2 -2
  89. package/dist/plugins/organization/index.mjs +2 -2
  90. package/dist/plugins/passkey/index.d.mts +2 -2
  91. package/dist/plugins/passkey/index.mjs +1 -1
  92. package/dist/plugins/phone-number/index.d.mts +2 -2
  93. package/dist/plugins/phone-number/index.mjs +1 -1
  94. package/dist/plugins/sentinel/client.d.mts +23 -23
  95. package/dist/plugins/sentinel/index.d.mts +22 -22
  96. package/dist/plugins/sentinel/index.mjs +4 -4
  97. package/dist/plugins/two-factor/index.d.mts +2 -2
  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 +2 -2
  101. package/dist/{plugins-yF8CFUDR.mjs → plugins-RSPSU3ro.mjs} +1 -1
  102. package/dist/{registry-CqG_3Qnx.mjs → registry-GztLf62p.mjs} +14 -2
  103. package/dist/{sentinel-B4Wo79HK.mjs → sentinel-CYtaI3eO.mjs} +264 -9
  104. package/dist/src/plugins/audit-log/events.d.ts +1 -0
  105. package/dist/src/plugins/audit-log/index.d.ts +45 -0
  106. package/dist/src/plugins/sentinel/actions.d.ts +2 -0
  107. package/dist/src/plugins/sentinel/geo.d.ts +11 -0
  108. package/dist/src/plugins/sentinel/index.d.ts +248 -3
  109. package/dist/src/plugins/sentinel/schema.d.ts +37 -0
  110. package/dist/src/plugins/sentinel/store.d.ts +34 -0
  111. package/dist/src/plugins/sentinel/types.d.ts +7 -0
  112. package/dist/src/utils/has-role.d.ts +5 -0
  113. package/dist/test-utils/index.d.mts +1044 -1044
  114. package/dist/test-utils/index.mjs +18 -18
  115. package/dist/types/index.d.mts +1 -1
  116. package/dist/{username-BHNvcvsY.mjs → username-DCp6yugu.mjs} +1 -1
  117. package/package.json +3 -3
@@ -1,4 +1,4 @@
1
- import * as better_call134 from "better-call";
1
+ import * as better_call139 from "better-call";
2
2
  import * as z$1 from "zod";
3
3
 
4
4
  //#region src/plugins/one-tap/index.d.ts
@@ -38,7 +38,7 @@ declare const oneTap: (options?: OneTapOptions | undefined) => {
38
38
  } & {
39
39
  asResponse?: boolean;
40
40
  returnHeaders?: boolean;
41
- use?: better_call134.Middleware[];
41
+ use?: better_call139.Middleware[];
42
42
  path?: string;
43
43
  } & {
44
44
  asResponse?: AsResponse | undefined;
@@ -1,5 +1,5 @@
1
1
  import { t as InferOptionSchema } from "./plugins-Dy_FrD4Y.mjs";
2
- import * as better_call192 from "better-call";
2
+ import * as better_call172 from "better-call";
3
3
  import * as z$1 from "zod";
4
4
  import * as _simplewebauthn_server0 from "@simplewebauthn/server";
5
5
  import { AuthenticationResponseJSON, CredentialDeviceType, PublicKeyCredentialCreationOptionsJSON } from "@simplewebauthn/server";
@@ -139,7 +139,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
139
139
  } & {
140
140
  asResponse?: boolean;
141
141
  returnHeaders?: boolean;
142
- use?: better_call192.Middleware[];
142
+ use?: better_call172.Middleware[];
143
143
  path?: string;
144
144
  } & {
145
145
  asResponse?: AsResponse | undefined;
@@ -150,7 +150,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
150
150
  } : PublicKeyCredentialCreationOptionsJSON>;
151
151
  options: {
152
152
  method: "GET";
153
- use: ((inputContext: better_call192.MiddlewareInputContext<better_call192.MiddlewareOptions>) => Promise<{
153
+ use: ((inputContext: better_call172.MiddlewareInputContext<better_call172.MiddlewareOptions>) => Promise<{
154
154
  session: {
155
155
  session: Record<string, any> & {
156
156
  id: string;
@@ -318,7 +318,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
318
318
  } & {
319
319
  asResponse?: boolean;
320
320
  returnHeaders?: boolean;
321
- use?: better_call192.Middleware[];
321
+ use?: better_call172.Middleware[];
322
322
  path?: string;
323
323
  } & {
324
324
  asResponse?: AsResponse | undefined;
@@ -443,7 +443,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
443
443
  } & {
444
444
  asResponse?: boolean;
445
445
  returnHeaders?: boolean;
446
- use?: better_call192.Middleware[];
446
+ use?: better_call172.Middleware[];
447
447
  path?: string;
448
448
  } & {
449
449
  asResponse?: AsResponse | undefined;
@@ -458,7 +458,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
458
458
  response: z$1.ZodAny;
459
459
  name: z$1.ZodOptional<z$1.ZodString>;
460
460
  }, z$1.core.$strip>;
461
- use: ((inputContext: better_call192.MiddlewareInputContext<better_call192.MiddlewareOptions>) => Promise<{
461
+ use: ((inputContext: better_call172.MiddlewareInputContext<better_call172.MiddlewareOptions>) => Promise<{
462
462
  session: {
463
463
  session: Record<string, any> & {
464
464
  id: string;
@@ -524,7 +524,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
524
524
  } & {
525
525
  asResponse?: boolean;
526
526
  returnHeaders?: boolean;
527
- use?: better_call192.Middleware[];
527
+ use?: better_call172.Middleware[];
528
528
  path?: string;
529
529
  } & {
530
530
  asResponse?: AsResponse | undefined;
@@ -626,7 +626,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
626
626
  } & {
627
627
  asResponse?: boolean;
628
628
  returnHeaders?: boolean;
629
- use?: better_call192.Middleware[];
629
+ use?: better_call172.Middleware[];
630
630
  path?: string;
631
631
  } & {
632
632
  asResponse?: AsResponse | undefined;
@@ -637,7 +637,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
637
637
  } : Passkey[]>;
638
638
  options: {
639
639
  method: "GET";
640
- use: ((inputContext: better_call192.MiddlewareInputContext<better_call192.MiddlewareOptions>) => Promise<{
640
+ use: ((inputContext: better_call172.MiddlewareInputContext<better_call172.MiddlewareOptions>) => Promise<{
641
641
  session: {
642
642
  session: Record<string, any> & {
643
643
  id: string;
@@ -720,7 +720,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
720
720
  } & {
721
721
  asResponse?: boolean;
722
722
  returnHeaders?: boolean;
723
- use?: better_call192.Middleware[];
723
+ use?: better_call172.Middleware[];
724
724
  path?: string;
725
725
  } & {
726
726
  asResponse?: AsResponse | undefined;
@@ -734,7 +734,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
734
734
  body: z$1.ZodObject<{
735
735
  id: z$1.ZodString;
736
736
  }, z$1.core.$strip>;
737
- use: ((inputContext: better_call192.MiddlewareInputContext<better_call192.MiddlewareOptions>) => Promise<{
737
+ use: ((inputContext: better_call172.MiddlewareInputContext<better_call172.MiddlewareOptions>) => Promise<{
738
738
  session: {
739
739
  session: Record<string, any> & {
740
740
  id: string;
@@ -820,7 +820,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
820
820
  } & {
821
821
  asResponse?: boolean;
822
822
  returnHeaders?: boolean;
823
- use?: better_call192.Middleware[];
823
+ use?: better_call172.Middleware[];
824
824
  path?: string;
825
825
  } & {
826
826
  asResponse?: AsResponse | undefined;
@@ -839,7 +839,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
839
839
  id: z$1.ZodString;
840
840
  name: z$1.ZodString;
841
841
  }, z$1.core.$strip>;
842
- use: ((inputContext: better_call192.MiddlewareInputContext<better_call192.MiddlewareOptions>) => Promise<{
842
+ use: ((inputContext: better_call172.MiddlewareInputContext<better_call172.MiddlewareOptions>) => Promise<{
843
843
  session: {
844
844
  session: Record<string, any> & {
845
845
  id: string;
@@ -1,9 +1,9 @@
1
1
  import { o as LiteralString } from "./helper-BgOIGHsu.mjs";
2
- import { g as User } from "./index-BjCQ3jmE.mjs";
2
+ import { g as User } from "./index-3lfPQHhX.mjs";
3
3
  import { t as InferOptionSchema } from "./plugins-Dy_FrD4Y.mjs";
4
4
  import * as _gatwech_core50 from "@gatwech/core";
5
5
  import { PayvoAuthPlugin } from "@gatwech/core";
6
- import * as better_call209 from "better-call";
6
+ import * as better_call207 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_call209.Middleware[];
277
+ use?: better_call207.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_call209.MiddlewareInputContext<better_call209.MiddlewareOptions>) => Promise<{
298
+ use: ((inputContext: better_call207.MiddlewareInputContext<better_call207.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_call209.Middleware[];
390
+ use?: better_call207.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_call209.MiddlewareInputContext<better_call209.MiddlewareOptions>) => Promise<{
408
+ use: ((inputContext: better_call207.MiddlewareInputContext<better_call207.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_call209.Middleware[];
479
+ use?: better_call207.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_call209.Middleware[];
632
+ use?: better_call207.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_call209.MiddlewareInputContext<better_call209.MiddlewareOptions>) => Promise<{
652
+ use: ((inputContext: better_call207.MiddlewareInputContext<better_call207.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_call209.Middleware[];
730
+ use?: better_call207.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_call209.Middleware[];
776
+ use?: better_call207.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_call209.Middleware[];
841
+ use?: better_call207.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_call209.Middleware[];
969
+ use?: better_call207.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_call209.Middleware[];
1034
+ use?: better_call207.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_call209.MiddlewareInputContext<better_call209.MiddlewareOptions>) => Promise<{
1049
+ use: ((inputContext: better_call207.MiddlewareInputContext<better_call207.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_call209.Middleware[];
1122
+ use?: better_call207.Middleware[];
1123
1123
  path?: string;
1124
1124
  } & {
1125
1125
  asResponse?: AsResponse | undefined;
@@ -1189,7 +1189,7 @@ declare const twoFactor: (options?: TwoFactorOptions | undefined) => {
1189
1189
  hooks: {
1190
1190
  after: {
1191
1191
  matcher(context: _gatwech_core50.HookEndpointContext): boolean;
1192
- handler: (inputContext: better_call209.MiddlewareInputContext<better_call209.MiddlewareOptions>) => Promise<{
1192
+ handler: (inputContext: better_call207.MiddlewareInputContext<better_call207.MiddlewareOptions>) => Promise<{
1193
1193
  twoFactorRedirect: boolean;
1194
1194
  } | undefined>;
1195
1195
  }[];
@@ -1,5 +1,5 @@
1
- import * as _gatwech_core12 from "@gatwech/core";
2
- import * as better_call130 from "better-call";
1
+ import * as _gatwech_core14 from "@gatwech/core";
2
+ import * as better_call110 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_core12.HookEndpointContext): boolean;
23
- handler: (inputContext: better_call130.MiddlewareInputContext<better_call130.MiddlewareOptions>) => Promise<{
22
+ matcher(context: _gatwech_core14.HookEndpointContext): boolean;
23
+ handler: (inputContext: better_call110.MiddlewareInputContext<better_call110.MiddlewareOptions>) => Promise<{
24
24
  context: {
25
25
  headers: Headers;
26
26
  };
27
27
  } | undefined>;
28
28
  }[];
29
29
  after: {
30
- matcher(context: _gatwech_core12.HookEndpointContext): true;
31
- handler: (inputContext: better_call130.MiddlewareInputContext<better_call130.MiddlewareOptions>) => Promise<void>;
30
+ matcher(context: _gatwech_core14.HookEndpointContext): true;
31
+ handler: (inputContext: better_call110.MiddlewareInputContext<better_call110.MiddlewareOptions>) => Promise<void>;
32
32
  }[];
33
33
  };
34
34
  };
@@ -1,7 +1,7 @@
1
- import { f as InferSession, p as InferUser } from "./index-BjCQ3jmE.mjs";
2
- import * as _gatwech_core11 from "@gatwech/core";
1
+ import { f as InferSession, p as InferUser } from "./index-3lfPQHhX.mjs";
2
+ import * as _gatwech_core0 from "@gatwech/core";
3
3
  import { GenericEndpointContext, PayvoAuthOptions } from "@gatwech/core";
4
- import * as better_call127 from "better-call";
4
+ import * as better_call93 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_core11.HookEndpointContext) => boolean;
23
- handler: (inputContext: better_call127.MiddlewareInputContext<better_call127.MiddlewareOptions>) => Promise<Awaited<Returns>[] | undefined>;
22
+ matcher: (ctx: _gatwech_core0.HookEndpointContext) => boolean;
23
+ handler: (inputContext: better_call93.MiddlewareInputContext<better_call93.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_call127.Middleware[];
46
+ use?: better_call93.Middleware[];
47
47
  path?: string;
48
48
  } & {
49
49
  asResponse?: AsResponse | undefined;
@@ -1,4 +1,4 @@
1
- import * as _gatwech_core18 from "@gatwech/core";
1
+ import * as _gatwech_core24 from "@gatwech/core";
2
2
 
3
3
  //#region src/plugins/haveibeenpwned/index.d.ts
4
4
 
@@ -13,7 +13,7 @@ interface HaveIBeenPwnedOptions {
13
13
  }
14
14
  declare const haveIBeenPwned: (options?: HaveIBeenPwnedOptions | undefined) => {
15
15
  id: "haveIBeenPwned";
16
- init(ctx: _gatwech_core18.AuthContext<_gatwech_core18.PayvoAuthOptions>): {
16
+ init(ctx: _gatwech_core24.AuthContext<_gatwech_core24.PayvoAuthOptions>): {
17
17
  context: {
18
18
  password: {
19
19
  hash(password: string): Promise<string>;
@@ -25,7 +25,7 @@ declare const haveIBeenPwned: (options?: HaveIBeenPwnedOptions | undefined) => {
25
25
  minPasswordLength: number;
26
26
  maxPasswordLength: number;
27
27
  };
28
- checkPassword: (userId: string, ctx: _gatwech_core18.GenericEndpointContext<_gatwech_core18.PayvoAuthOptions>) => Promise<boolean>;
28
+ checkPassword: (userId: string, ctx: _gatwech_core24.GenericEndpointContext<_gatwech_core24.PayvoAuthOptions>) => Promise<boolean>;
29
29
  };
30
30
  };
31
31
  };
@@ -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-BjCQ3jmE.mjs";
2
+ import { On as index_d_exports, g as User, h as Session } from "./index-3lfPQHhX.mjs";
3
3
  import { t as InferOptionSchema } from "./plugins-Dy_FrD4Y.mjs";
4
- import * as _gatwech_core10 from "@gatwech/core";
4
+ import * as _gatwech_core29 from "@gatwech/core";
5
5
  import { GenericEndpointContext } from "@gatwech/core";
6
- import * as better_call120 from "better-call";
6
+ import * as better_call132 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_call120.Middleware[];
253
+ use?: better_call132.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_call120.Middleware[];
358
+ use?: better_call132.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_call120.MiddlewareInputContext<better_call120.MiddlewareOptions>) => Promise<{
374
+ use: ((inputContext: better_call132.MiddlewareInputContext<better_call132.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_call120.Middleware[];
443
+ use?: better_call132.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_core10.HookEndpointContext): boolean;
480
- handler: (inputContext: better_call120.MiddlewareInputContext<better_call120.MiddlewareOptions>) => Promise<void>;
479
+ matcher(context: _gatwech_core29.HookEndpointContext): boolean;
480
+ handler: (inputContext: better_call132.MiddlewareInputContext<better_call132.MiddlewareOptions>) => Promise<void>;
481
481
  }[];
482
482
  };
483
483
  schema: {
@@ -1,9 +1,9 @@
1
- import { g as User } from "./index-BjCQ3jmE.mjs";
2
- import * as _gatwech_core22 from "@gatwech/core";
1
+ import { g as User } from "./index-3lfPQHhX.mjs";
2
+ import * as _gatwech_core33 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_call151 from "better-call";
6
+ import * as better_call149 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_core22.AuthContext<_gatwech_core22.PayvoAuthOptions>) => {
139
+ init: (ctx: _gatwech_core33.AuthContext<_gatwech_core33.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_call151.Middleware[];
185
+ use?: better_call149.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_call151.Middleware[];
265
+ use?: better_call149.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_call151.Middleware[];
346
+ use?: better_call149.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_call151.MiddlewareInputContext<better_call151.MiddlewareOptions>) => Promise<{
369
+ use: ((inputContext: better_call149.MiddlewareInputContext<better_call149.MiddlewareOptions>) => Promise<{
370
370
  session: {
371
371
  session: Record<string, any> & {
372
372
  id: string;
@@ -1,6 +1,6 @@
1
1
  import { t as InferOptionSchema } from "./plugins-Dy_FrD4Y.mjs";
2
- import * as _gatwech_core1 from "@gatwech/core";
3
- import * as better_call100 from "better-call";
2
+ import * as _gatwech_core43 from "@gatwech/core";
3
+ import * as better_call203 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_core1.AuthContext<_gatwech_core1.PayvoAuthOptions>): {
109
+ init(ctx: _gatwech_core43.AuthContext<_gatwech_core43.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_core1.GenericEndpointContext<_gatwech_core1.PayvoAuthOptions> | undefined): Promise<{
122
+ } & Record<string, unknown>, context: _gatwech_core43.GenericEndpointContext<_gatwech_core43.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_core1.GenericEndpointContext<_gatwech_core1.PayvoAuthOptions> | undefined): Promise<{
145
+ }> & Record<string, unknown>, context: _gatwech_core43.GenericEndpointContext<_gatwech_core43.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_call100.Middleware[];
185
+ use?: better_call203.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_call100.Middleware[];
294
+ use?: better_call203.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_core1.HookEndpointContext): boolean;
344
- handler: (inputContext: better_call100.MiddlewareInputContext<better_call100.MiddlewareOptions>) => Promise<void>;
343
+ matcher(context: _gatwech_core43.HookEndpointContext): boolean;
344
+ handler: (inputContext: better_call203.MiddlewareInputContext<better_call203.MiddlewareOptions>) => Promise<void>;
345
345
  }[];
346
346
  };
347
347
  $ERROR_CODES: {
@@ -1,6 +1,6 @@
1
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";
2
+ import * as _gatwech_core32 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/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_call104.Middleware[];
49
+ use?: better_call140.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_call104.Middleware[];
105
+ use?: better_call140.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_call104.MiddlewareInputContext<better_call104.MiddlewareOptions>) => Promise<{
126
+ use: ((inputContext: better_call140.MiddlewareInputContext<better_call140.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_call104.Middleware[];
209
+ use?: better_call140.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_call104.MiddlewareInputContext<better_call104.MiddlewareOptions>) => Promise<{
228
+ use: ((inputContext: better_call140.MiddlewareInputContext<better_call140.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_core8.HookEndpointContext) => boolean;
282
- handler: (inputContext: better_call104.MiddlewareInputContext<better_call104.MiddlewareOptions>) => Promise<void>;
281
+ matcher: (context: _gatwech_core32.HookEndpointContext) => boolean;
282
+ handler: (inputContext: better_call140.MiddlewareInputContext<better_call140.MiddlewareOptions>) => Promise<void>;
283
283
  }[];
284
284
  };
285
285
  $ERROR_CODES: {
@@ -1,6 +1,6 @@
1
- import { g as User } from "./index-BjCQ3jmE.mjs";
1
+ import { g as User } from "./index-3lfPQHhX.mjs";
2
2
  import { t as InferOptionSchema } from "./plugins-Dy_FrD4Y.mjs";
3
- import * as better_call113 from "better-call";
3
+ import * as better_call232 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_call113.Middleware[];
139
+ use?: better_call232.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_call113.Middleware[];
228
+ use?: better_call232.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_call113.Middleware[];
310
+ use?: better_call232.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_call113.Middleware[];
452
+ use?: better_call232.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_call113.Middleware[];
520
+ use?: better_call232.Middleware[];
521
521
  path?: string;
522
522
  } & {
523
523
  asResponse?: AsResponse | undefined;