@neondatabase/auth 0.3.0-beta → 0.4.1-beta

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 (33) hide show
  1. package/README.md +22 -7
  2. package/codemods/migrate-auth-ui-imports.mjs +439 -0
  3. package/dist/{adapter-core-D00qcqMo.mjs → adapter-core-BFMM3lwe.mjs} +21 -11
  4. package/dist/{adapter-core-B9uDhoYq.d.mts → adapter-core-ClY-p_AI.d.mts} +325 -190
  5. package/dist/auth-interface-Clz-oWq1.d.mts +8 -0
  6. package/dist/better-auth-helpers-Bkezghej.mjs +541 -0
  7. package/dist/{better-auth-react-adapter-Xdj-69i9.mjs → better-auth-react-adapter-DZTZVVnk.mjs} +1 -1
  8. package/dist/{better-auth-react-adapter-BO4jLN4H.d.mts → better-auth-react-adapter-iJMZCLUI.d.mts} +388 -301
  9. package/dist/index.d.mts +5 -4
  10. package/dist/index.mjs +4 -3
  11. package/dist/{neon-auth-DBOB8sXF.mjs → neon-auth-VDrC3GwX.mjs} +1 -1
  12. package/dist/next/index.d.mts +144 -56
  13. package/dist/next/index.mjs +5 -4
  14. package/dist/next/server/index.d.mts +131 -14
  15. package/dist/next/server/index.mjs +402 -52
  16. package/dist/react/adapters/index.d.mts +3 -3
  17. package/dist/react/adapters/index.mjs +2 -2
  18. package/dist/react/index.d.mts +4 -4
  19. package/dist/react/index.mjs +2 -2
  20. package/dist/react/ui/index.d.mts +1 -1
  21. package/dist/{supabase-adapter-CIBMebXB.mjs → supabase-adapter-CAyBFrNn.mjs} +3 -514
  22. package/dist/{supabase-adapter-CSDRL1ZU.d.mts → supabase-adapter-cuLnmLDs.d.mts} +390 -303
  23. package/dist/types/index.d.mts +2 -2
  24. package/dist/vanilla/adapters/index.d.mts +4 -3
  25. package/dist/vanilla/adapters/index.mjs +2 -2
  26. package/dist/vanilla/index.d.mts +4 -3
  27. package/dist/vanilla/index.mjs +2 -2
  28. package/llms.txt +2 -2
  29. package/package.json +6 -2
  30. package/dist/constants-Cupc_bln.mjs +0 -28
  31. /package/dist/{index-CPnFzULh.d.mts → index-B0Pd4HOH.d.mts} +0 -0
  32. /package/dist/{index-UW23fDSn.d.mts → index-CzpoWrv9.d.mts} +0 -0
  33. /package/dist/{index-B_Q0Tp1D.d.mts → index-DHryUj7e.d.mts} +0 -0
@@ -1,18 +1,19 @@
1
- import * as better_auth_react1 from "better-auth/react";
1
+ import * as better_auth_react3 from "better-auth/react";
2
2
  import { createAuthClient } from "better-auth/react";
3
- import * as better_auth_client0 from "better-auth/client";
3
+ import * as better_auth_client3 from "better-auth/client";
4
4
  import { BetterAuthClientOptions, createAuthClient as createAuthClient$1 } from "better-auth/client";
5
5
  import * as zod0 from "zod";
6
- import * as jose1 from "jose";
6
+ import * as jose2 from "jose";
7
7
  import { Session, User } from "better-auth/types";
8
- import * as better_auth_plugins35 from "better-auth/plugins";
9
- import * as better_auth303 from "better-auth";
10
- import * as _better_fetch_fetch177 from "@better-fetch/fetch";
8
+ import * as better_auth_plugins65 from "better-auth/plugins";
9
+ import * as better_auth463 from "better-auth";
10
+ import * as _better_fetch_fetch271 from "@better-fetch/fetch";
11
11
  import { BetterFetchError, BetterFetchError as BetterFetchError$1 } from "@better-fetch/fetch";
12
12
  import { Invitation, InvitationInput, InvitationStatus, Member, MemberInput, Organization, OrganizationInput, OrganizationRole, Team, TeamInput, TeamMember, TeamMemberInput } from "better-auth/plugins/organization";
13
13
  import { JWKOptions, JWSAlgorithms, Jwk, JwtOptions } from "better-auth/plugins/jwt";
14
14
  import { AdminOptions, InferAdminRolesFromOption, SessionWithImpersonatedBy, UserWithRole } from "better-auth/plugins/admin";
15
15
  import { EmailOTPOptions } from "better-auth/plugins/email-otp";
16
+ import { MagicLinkOptions } from "better-auth/plugins/magic-link";
16
17
 
17
18
  //#region src/core/better-auth-types.d.ts
18
19
  type BetterAuthSession = Session;
@@ -41,7 +42,7 @@ declare const supportedBetterAuthClientPlugins: ({
41
42
  pathMethods: {
42
43
  "/token/anonymous": "GET";
43
44
  };
44
- getActions: ($fetch: _better_fetch_fetch177.BetterFetch) => {
45
+ getActions: ($fetch: _better_fetch_fetch271.BetterFetch) => {
45
46
  getAnonymousToken: (fetchOptions?: any) => Promise<{
46
47
  data: {
47
48
  token: string;
@@ -59,11 +60,11 @@ declare const supportedBetterAuthClientPlugins: ({
59
60
  };
60
61
  } | {
61
62
  id: "better-auth-client";
62
- $InferServerPlugin: ReturnType<(<O extends better_auth_plugins35.JwtOptions>(options?: O) => {
63
+ $InferServerPlugin: ReturnType<(<O extends better_auth_plugins65.JwtOptions>(options?: O) => {
63
64
  id: "jwt";
64
65
  options: NoInfer<O>;
65
66
  endpoints: {
66
- getJwks: better_auth303.StrictEndpoint<string, {
67
+ getJwks: better_auth463.StrictEndpoint<string, {
67
68
  method: "GET";
68
69
  metadata: {
69
70
  openapi: {
@@ -139,11 +140,11 @@ declare const supportedBetterAuthClientPlugins: ({
139
140
  };
140
141
  };
141
142
  };
142
- }, jose1.JSONWebKeySet>;
143
- getToken: better_auth303.StrictEndpoint<"/token", {
143
+ }, jose2.JSONWebKeySet>;
144
+ getToken: better_auth463.StrictEndpoint<"/token", {
144
145
  method: "GET";
145
146
  requireHeaders: true;
146
- use: ((inputContext: better_auth303.MiddlewareInputContext<better_auth303.MiddlewareOptions>) => Promise<{
147
+ use: ((inputContext: better_auth463.MiddlewareInputContext<better_auth463.MiddlewareOptions>) => Promise<{
147
148
  session: {
148
149
  session: Record<string, any> & {
149
150
  id: string;
@@ -192,24 +193,24 @@ declare const supportedBetterAuthClientPlugins: ({
192
193
  }, {
193
194
  token: string;
194
195
  }>;
195
- signJWT: better_auth303.StrictEndpoint<string, {
196
+ signJWT: better_auth463.StrictEndpoint<string, {
196
197
  method: "POST";
197
198
  metadata: {
198
199
  $Infer: {
199
200
  body: {
200
- payload: jose1.JWTPayload;
201
- overrideOptions?: better_auth_plugins35.JwtOptions | undefined;
201
+ payload: jose2.JWTPayload;
202
+ overrideOptions?: better_auth_plugins65.JwtOptions | undefined;
202
203
  };
203
204
  };
204
205
  };
205
206
  body: zod0.ZodObject<{
206
207
  payload: zod0.ZodRecord<zod0.ZodString, zod0.ZodAny>;
207
208
  overrideOptions: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodAny>>;
208
- }, better_auth303.$strip>;
209
+ }, better_auth463.$strip>;
209
210
  }, {
210
211
  token: string;
211
212
  }>;
212
- verifyJWT: better_auth303.StrictEndpoint<string, {
213
+ verifyJWT: better_auth463.StrictEndpoint<string, {
213
214
  method: "POST";
214
215
  metadata: {
215
216
  $Infer: {
@@ -229,15 +230,15 @@ declare const supportedBetterAuthClientPlugins: ({
229
230
  body: zod0.ZodObject<{
230
231
  token: zod0.ZodString;
231
232
  issuer: zod0.ZodOptional<zod0.ZodString>;
232
- }, better_auth303.$strip>;
233
+ }, better_auth463.$strip>;
233
234
  }, {
234
- payload: (jose1.JWTPayload & Required<Pick<jose1.JWTPayload, "sub" | "aud">>) | null;
235
+ payload: (jose2.JWTPayload & Required<Pick<jose2.JWTPayload, "sub" | "aud">>) | null;
235
236
  }>;
236
237
  };
237
238
  hooks: {
238
239
  after: {
239
- matcher(context: better_auth303.HookEndpointContext): boolean;
240
- handler: (inputContext: better_auth303.MiddlewareInputContext<better_auth303.MiddlewareOptions>) => Promise<void>;
240
+ matcher(context: better_auth463.HookEndpointContext): boolean;
241
+ handler: (inputContext: better_auth463.MiddlewareInputContext<better_auth463.MiddlewareOptions>) => Promise<void>;
241
242
  }[];
242
243
  };
243
244
  schema: {
@@ -266,7 +267,7 @@ declare const supportedBetterAuthClientPlugins: ({
266
267
  pathMethods: {
267
268
  [x: string]: "GET";
268
269
  };
269
- getActions: ($fetch: _better_fetch_fetch177.BetterFetch) => {
270
+ getActions: ($fetch: _better_fetch_fetch271.BetterFetch) => {
270
271
  jwks: (fetchOptions?: any) => Promise<{
271
272
  data: null;
272
273
  error: {
@@ -275,7 +276,7 @@ declare const supportedBetterAuthClientPlugins: ({
275
276
  statusText: string;
276
277
  };
277
278
  } | {
278
- data: jose1.JSONWebKeySet;
279
+ data: jose2.JSONWebKeySet;
279
280
  error: null;
280
281
  }>;
281
282
  };
@@ -321,7 +322,7 @@ declare const supportedBetterAuthClientPlugins: ({
321
322
  token: string;
322
323
  ipAddress?: string | null | undefined;
323
324
  userAgent?: string | null | undefined;
324
- } & Record<string, unknown>, ctx: better_auth303.GenericEndpointContext | null): Promise<void>;
325
+ } & Record<string, unknown>, ctx: better_auth463.GenericEndpointContext | null): Promise<void>;
325
326
  };
326
327
  };
327
328
  };
@@ -329,22 +330,22 @@ declare const supportedBetterAuthClientPlugins: ({
329
330
  };
330
331
  hooks: {
331
332
  after: {
332
- matcher(context: better_auth303.HookEndpointContext): boolean;
333
- handler: (inputContext: better_auth303.MiddlewareInputContext<better_auth303.MiddlewareOptions>) => Promise<better_auth_plugins35.SessionWithImpersonatedBy[] | undefined>;
333
+ matcher(context: better_auth463.HookEndpointContext): boolean;
334
+ handler: (inputContext: better_auth463.MiddlewareInputContext<better_auth463.MiddlewareOptions>) => Promise<better_auth_plugins65.SessionWithImpersonatedBy[] | undefined>;
334
335
  }[];
335
336
  };
336
337
  endpoints: {
337
- setRole: better_auth303.StrictEndpoint<"/admin/set-role", {
338
+ setRole: better_auth463.StrictEndpoint<"/admin/set-role", {
338
339
  method: "POST";
339
340
  body: zod0.ZodObject<{
340
341
  userId: zod0.ZodCoercedString<unknown>;
341
342
  role: zod0.ZodUnion<readonly [zod0.ZodString, zod0.ZodArray<zod0.ZodString>]>;
342
- }, better_auth303.$strip>;
343
+ }, better_auth463.$strip>;
343
344
  requireHeaders: true;
344
- use: ((inputContext: better_auth303.MiddlewareInputContext<better_auth303.MiddlewareOptions>) => Promise<{
345
+ use: ((inputContext: better_auth463.MiddlewareInputContext<better_auth463.MiddlewareOptions>) => Promise<{
345
346
  session: {
346
- user: better_auth_plugins35.UserWithRole;
347
- session: better_auth303.Session;
347
+ user: better_auth_plugins65.UserWithRole;
348
+ session: better_auth463.Session;
348
349
  };
349
350
  }>)[];
350
351
  metadata: {
@@ -378,17 +379,17 @@ declare const supportedBetterAuthClientPlugins: ({
378
379
  };
379
380
  };
380
381
  }, {
381
- user: better_auth_plugins35.UserWithRole;
382
+ user: better_auth_plugins65.UserWithRole;
382
383
  }>;
383
- getUser: better_auth303.StrictEndpoint<"/admin/get-user", {
384
+ getUser: better_auth463.StrictEndpoint<"/admin/get-user", {
384
385
  method: "GET";
385
386
  query: zod0.ZodObject<{
386
387
  id: zod0.ZodString;
387
- }, better_auth303.$strip>;
388
- use: ((inputContext: better_auth303.MiddlewareInputContext<better_auth303.MiddlewareOptions>) => Promise<{
388
+ }, better_auth463.$strip>;
389
+ use: ((inputContext: better_auth463.MiddlewareInputContext<better_auth463.MiddlewareOptions>) => Promise<{
389
390
  session: {
390
- user: better_auth_plugins35.UserWithRole;
391
- session: better_auth303.Session;
391
+ user: better_auth_plugins65.UserWithRole;
392
+ session: better_auth463.Session;
392
393
  };
393
394
  }>)[];
394
395
  metadata: {
@@ -415,24 +416,16 @@ declare const supportedBetterAuthClientPlugins: ({
415
416
  };
416
417
  };
417
418
  };
418
- }, {
419
- id: string;
420
- createdAt: Date;
421
- updatedAt: Date;
422
- email: string;
423
- emailVerified: boolean;
424
- name: string;
425
- image?: string | null | undefined;
426
- }>;
427
- createUser: better_auth303.StrictEndpoint<"/admin/create-user", {
419
+ }, better_auth_plugins65.UserWithRole>;
420
+ createUser: better_auth463.StrictEndpoint<"/admin/create-user", {
428
421
  method: "POST";
429
422
  body: zod0.ZodObject<{
430
423
  email: zod0.ZodString;
431
- password: zod0.ZodString;
424
+ password: zod0.ZodOptional<zod0.ZodString>;
432
425
  name: zod0.ZodString;
433
426
  role: zod0.ZodOptional<zod0.ZodUnion<readonly [zod0.ZodString, zod0.ZodArray<zod0.ZodString>]>>;
434
427
  data: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodAny>>;
435
- }, better_auth303.$strip>;
428
+ }, better_auth463.$strip>;
436
429
  metadata: {
437
430
  openapi: {
438
431
  operationId: string;
@@ -459,7 +452,7 @@ declare const supportedBetterAuthClientPlugins: ({
459
452
  $Infer: {
460
453
  body: {
461
454
  email: string;
462
- password: string;
455
+ password?: string | undefined;
463
456
  name: string;
464
457
  role?: "user" | "admin" | ("user" | "admin")[] | undefined;
465
458
  data?: Record<string, any> | undefined;
@@ -467,18 +460,18 @@ declare const supportedBetterAuthClientPlugins: ({
467
460
  };
468
461
  };
469
462
  }, {
470
- user: better_auth_plugins35.UserWithRole;
463
+ user: better_auth_plugins65.UserWithRole;
471
464
  }>;
472
- adminUpdateUser: better_auth303.StrictEndpoint<"/admin/update-user", {
465
+ adminUpdateUser: better_auth463.StrictEndpoint<"/admin/update-user", {
473
466
  method: "POST";
474
467
  body: zod0.ZodObject<{
475
468
  userId: zod0.ZodCoercedString<unknown>;
476
469
  data: zod0.ZodRecord<zod0.ZodAny, zod0.ZodAny>;
477
- }, better_auth303.$strip>;
478
- use: ((inputContext: better_auth303.MiddlewareInputContext<better_auth303.MiddlewareOptions>) => Promise<{
470
+ }, better_auth463.$strip>;
471
+ use: ((inputContext: better_auth463.MiddlewareInputContext<better_auth463.MiddlewareOptions>) => Promise<{
479
472
  session: {
480
- user: better_auth_plugins35.UserWithRole;
481
- session: better_auth303.Session;
473
+ user: better_auth_plugins65.UserWithRole;
474
+ session: better_auth463.Session;
482
475
  };
483
476
  }>)[];
484
477
  metadata: {
@@ -505,13 +498,13 @@ declare const supportedBetterAuthClientPlugins: ({
505
498
  };
506
499
  };
507
500
  };
508
- }, better_auth_plugins35.UserWithRole>;
509
- listUsers: better_auth303.StrictEndpoint<"/admin/list-users", {
501
+ }, better_auth_plugins65.UserWithRole>;
502
+ listUsers: better_auth463.StrictEndpoint<"/admin/list-users", {
510
503
  method: "GET";
511
- use: ((inputContext: better_auth303.MiddlewareInputContext<better_auth303.MiddlewareOptions>) => Promise<{
504
+ use: ((inputContext: better_auth463.MiddlewareInputContext<better_auth463.MiddlewareOptions>) => Promise<{
512
505
  session: {
513
- user: better_auth_plugins35.UserWithRole;
514
- session: better_auth303.Session;
506
+ user: better_auth_plugins65.UserWithRole;
507
+ session: better_auth463.Session;
515
508
  };
516
509
  }>)[];
517
510
  query: zod0.ZodObject<{
@@ -543,7 +536,7 @@ declare const supportedBetterAuthClientPlugins: ({
543
536
  gte: "gte";
544
537
  contains: "contains";
545
538
  }>>;
546
- }, better_auth303.$strip>;
539
+ }, better_auth463.$strip>;
547
540
  metadata: {
548
541
  openapi: {
549
542
  operationId: string;
@@ -582,7 +575,7 @@ declare const supportedBetterAuthClientPlugins: ({
582
575
  };
583
576
  };
584
577
  }, {
585
- users: better_auth_plugins35.UserWithRole[];
578
+ users: better_auth_plugins65.UserWithRole[];
586
579
  total: number;
587
580
  limit: number | undefined;
588
581
  offset: number | undefined;
@@ -590,17 +583,17 @@ declare const supportedBetterAuthClientPlugins: ({
590
583
  users: never[];
591
584
  total: number;
592
585
  }>;
593
- listUserSessions: better_auth303.StrictEndpoint<"/admin/list-user-sessions", {
586
+ listUserSessions: better_auth463.StrictEndpoint<"/admin/list-user-sessions", {
594
587
  method: "POST";
595
- use: ((inputContext: better_auth303.MiddlewareInputContext<better_auth303.MiddlewareOptions>) => Promise<{
588
+ use: ((inputContext: better_auth463.MiddlewareInputContext<better_auth463.MiddlewareOptions>) => Promise<{
596
589
  session: {
597
- user: better_auth_plugins35.UserWithRole;
598
- session: better_auth303.Session;
590
+ user: better_auth_plugins65.UserWithRole;
591
+ session: better_auth463.Session;
599
592
  };
600
593
  }>)[];
601
594
  body: zod0.ZodObject<{
602
595
  userId: zod0.ZodCoercedString<unknown>;
603
- }, better_auth303.$strip>;
596
+ }, better_auth463.$strip>;
604
597
  metadata: {
605
598
  openapi: {
606
599
  operationId: string;
@@ -629,17 +622,17 @@ declare const supportedBetterAuthClientPlugins: ({
629
622
  };
630
623
  };
631
624
  }, {
632
- sessions: better_auth_plugins35.SessionWithImpersonatedBy[];
625
+ sessions: better_auth_plugins65.SessionWithImpersonatedBy[];
633
626
  }>;
634
- unbanUser: better_auth303.StrictEndpoint<"/admin/unban-user", {
627
+ unbanUser: better_auth463.StrictEndpoint<"/admin/unban-user", {
635
628
  method: "POST";
636
629
  body: zod0.ZodObject<{
637
630
  userId: zod0.ZodCoercedString<unknown>;
638
- }, better_auth303.$strip>;
639
- use: ((inputContext: better_auth303.MiddlewareInputContext<better_auth303.MiddlewareOptions>) => Promise<{
631
+ }, better_auth463.$strip>;
632
+ use: ((inputContext: better_auth463.MiddlewareInputContext<better_auth463.MiddlewareOptions>) => Promise<{
640
633
  session: {
641
- user: better_auth_plugins35.UserWithRole;
642
- session: better_auth303.Session;
634
+ user: better_auth_plugins65.UserWithRole;
635
+ session: better_auth463.Session;
643
636
  };
644
637
  }>)[];
645
638
  metadata: {
@@ -667,27 +660,19 @@ declare const supportedBetterAuthClientPlugins: ({
667
660
  };
668
661
  };
669
662
  }, {
670
- user: {
671
- id: string;
672
- createdAt: Date;
673
- updatedAt: Date;
674
- email: string;
675
- emailVerified: boolean;
676
- name: string;
677
- image?: string | null | undefined;
678
- } & Record<string, any>;
663
+ user: better_auth_plugins65.UserWithRole;
679
664
  }>;
680
- banUser: better_auth303.StrictEndpoint<"/admin/ban-user", {
665
+ banUser: better_auth463.StrictEndpoint<"/admin/ban-user", {
681
666
  method: "POST";
682
667
  body: zod0.ZodObject<{
683
668
  userId: zod0.ZodCoercedString<unknown>;
684
669
  banReason: zod0.ZodOptional<zod0.ZodString>;
685
670
  banExpiresIn: zod0.ZodOptional<zod0.ZodNumber>;
686
- }, better_auth303.$strip>;
687
- use: ((inputContext: better_auth303.MiddlewareInputContext<better_auth303.MiddlewareOptions>) => Promise<{
671
+ }, better_auth463.$strip>;
672
+ use: ((inputContext: better_auth463.MiddlewareInputContext<better_auth463.MiddlewareOptions>) => Promise<{
688
673
  session: {
689
- user: better_auth_plugins35.UserWithRole;
690
- session: better_auth303.Session;
674
+ user: better_auth_plugins65.UserWithRole;
675
+ session: better_auth463.Session;
691
676
  };
692
677
  }>)[];
693
678
  metadata: {
@@ -715,25 +700,17 @@ declare const supportedBetterAuthClientPlugins: ({
715
700
  };
716
701
  };
717
702
  }, {
718
- user: {
719
- id: string;
720
- createdAt: Date;
721
- updatedAt: Date;
722
- email: string;
723
- emailVerified: boolean;
724
- name: string;
725
- image?: string | null | undefined;
726
- } & Record<string, any>;
703
+ user: better_auth_plugins65.UserWithRole;
727
704
  }>;
728
- impersonateUser: better_auth303.StrictEndpoint<"/admin/impersonate-user", {
705
+ impersonateUser: better_auth463.StrictEndpoint<"/admin/impersonate-user", {
729
706
  method: "POST";
730
707
  body: zod0.ZodObject<{
731
708
  userId: zod0.ZodCoercedString<unknown>;
732
- }, better_auth303.$strip>;
733
- use: ((inputContext: better_auth303.MiddlewareInputContext<better_auth303.MiddlewareOptions>) => Promise<{
709
+ }, better_auth463.$strip>;
710
+ use: ((inputContext: better_auth463.MiddlewareInputContext<better_auth463.MiddlewareOptions>) => Promise<{
734
711
  session: {
735
- user: better_auth_plugins35.UserWithRole;
736
- session: better_auth303.Session;
712
+ user: better_auth_plugins65.UserWithRole;
713
+ session: better_auth463.Session;
737
714
  };
738
715
  }>)[];
739
716
  metadata: {
@@ -774,24 +751,41 @@ declare const supportedBetterAuthClientPlugins: ({
774
751
  ipAddress?: string | null | undefined;
775
752
  userAgent?: string | null | undefined;
776
753
  };
777
- user: better_auth_plugins35.UserWithRole;
754
+ user: better_auth_plugins65.UserWithRole;
778
755
  }>;
779
- stopImpersonating: better_auth303.StrictEndpoint<"/admin/stop-impersonating", {
756
+ stopImpersonating: better_auth463.StrictEndpoint<"/admin/stop-impersonating", {
780
757
  method: "POST";
781
758
  requireHeaders: true;
782
759
  }, {
783
- session: better_auth303.Session & Record<string, any>;
784
- user: better_auth303.User & Record<string, any>;
760
+ session: {
761
+ id: string;
762
+ createdAt: Date;
763
+ updatedAt: Date;
764
+ userId: string;
765
+ expiresAt: Date;
766
+ token: string;
767
+ ipAddress?: string | null | undefined;
768
+ userAgent?: string | null | undefined;
769
+ } & Record<string, any>;
770
+ user: {
771
+ id: string;
772
+ createdAt: Date;
773
+ updatedAt: Date;
774
+ email: string;
775
+ emailVerified: boolean;
776
+ name: string;
777
+ image?: string | null | undefined;
778
+ } & Record<string, any>;
785
779
  }>;
786
- revokeUserSession: better_auth303.StrictEndpoint<"/admin/revoke-user-session", {
780
+ revokeUserSession: better_auth463.StrictEndpoint<"/admin/revoke-user-session", {
787
781
  method: "POST";
788
782
  body: zod0.ZodObject<{
789
783
  sessionToken: zod0.ZodString;
790
- }, better_auth303.$strip>;
791
- use: ((inputContext: better_auth303.MiddlewareInputContext<better_auth303.MiddlewareOptions>) => Promise<{
784
+ }, better_auth463.$strip>;
785
+ use: ((inputContext: better_auth463.MiddlewareInputContext<better_auth463.MiddlewareOptions>) => Promise<{
792
786
  session: {
793
- user: better_auth_plugins35.UserWithRole;
794
- session: better_auth303.Session;
787
+ user: better_auth_plugins65.UserWithRole;
788
+ session: better_auth463.Session;
795
789
  };
796
790
  }>)[];
797
791
  metadata: {
@@ -821,15 +815,15 @@ declare const supportedBetterAuthClientPlugins: ({
821
815
  }, {
822
816
  success: boolean;
823
817
  }>;
824
- revokeUserSessions: better_auth303.StrictEndpoint<"/admin/revoke-user-sessions", {
818
+ revokeUserSessions: better_auth463.StrictEndpoint<"/admin/revoke-user-sessions", {
825
819
  method: "POST";
826
820
  body: zod0.ZodObject<{
827
821
  userId: zod0.ZodCoercedString<unknown>;
828
- }, better_auth303.$strip>;
829
- use: ((inputContext: better_auth303.MiddlewareInputContext<better_auth303.MiddlewareOptions>) => Promise<{
822
+ }, better_auth463.$strip>;
823
+ use: ((inputContext: better_auth463.MiddlewareInputContext<better_auth463.MiddlewareOptions>) => Promise<{
830
824
  session: {
831
- user: better_auth_plugins35.UserWithRole;
832
- session: better_auth303.Session;
825
+ user: better_auth_plugins65.UserWithRole;
826
+ session: better_auth463.Session;
833
827
  };
834
828
  }>)[];
835
829
  metadata: {
@@ -859,15 +853,15 @@ declare const supportedBetterAuthClientPlugins: ({
859
853
  }, {
860
854
  success: boolean;
861
855
  }>;
862
- removeUser: better_auth303.StrictEndpoint<"/admin/remove-user", {
856
+ removeUser: better_auth463.StrictEndpoint<"/admin/remove-user", {
863
857
  method: "POST";
864
858
  body: zod0.ZodObject<{
865
859
  userId: zod0.ZodCoercedString<unknown>;
866
- }, better_auth303.$strip>;
867
- use: ((inputContext: better_auth303.MiddlewareInputContext<better_auth303.MiddlewareOptions>) => Promise<{
860
+ }, better_auth463.$strip>;
861
+ use: ((inputContext: better_auth463.MiddlewareInputContext<better_auth463.MiddlewareOptions>) => Promise<{
868
862
  session: {
869
- user: better_auth_plugins35.UserWithRole;
870
- session: better_auth303.Session;
863
+ user: better_auth_plugins65.UserWithRole;
864
+ session: better_auth463.Session;
871
865
  };
872
866
  }>)[];
873
867
  metadata: {
@@ -897,16 +891,16 @@ declare const supportedBetterAuthClientPlugins: ({
897
891
  }, {
898
892
  success: boolean;
899
893
  }>;
900
- setUserPassword: better_auth303.StrictEndpoint<"/admin/set-user-password", {
894
+ setUserPassword: better_auth463.StrictEndpoint<"/admin/set-user-password", {
901
895
  method: "POST";
902
896
  body: zod0.ZodObject<{
903
897
  newPassword: zod0.ZodString;
904
898
  userId: zod0.ZodCoercedString<unknown>;
905
- }, better_auth303.$strip>;
906
- use: ((inputContext: better_auth303.MiddlewareInputContext<better_auth303.MiddlewareOptions>) => Promise<{
899
+ }, better_auth463.$strip>;
900
+ use: ((inputContext: better_auth463.MiddlewareInputContext<better_auth463.MiddlewareOptions>) => Promise<{
907
901
  session: {
908
- user: better_auth_plugins35.UserWithRole;
909
- session: better_auth303.Session;
902
+ user: better_auth_plugins65.UserWithRole;
903
+ session: better_auth463.Session;
910
904
  };
911
905
  }>)[];
912
906
  metadata: {
@@ -936,18 +930,18 @@ declare const supportedBetterAuthClientPlugins: ({
936
930
  }, {
937
931
  status: boolean;
938
932
  }>;
939
- userHasPermission: better_auth303.StrictEndpoint<"/admin/has-permission", {
933
+ userHasPermission: better_auth463.StrictEndpoint<"/admin/has-permission", {
940
934
  method: "POST";
941
935
  body: zod0.ZodIntersection<zod0.ZodObject<{
942
936
  userId: zod0.ZodOptional<zod0.ZodCoercedString<unknown>>;
943
937
  role: zod0.ZodOptional<zod0.ZodString>;
944
- }, better_auth303.$strip>, zod0.ZodUnion<readonly [zod0.ZodObject<{
938
+ }, better_auth463.$strip>, zod0.ZodUnion<readonly [zod0.ZodObject<{
945
939
  permission: zod0.ZodRecord<zod0.ZodString, zod0.ZodArray<zod0.ZodString>>;
946
940
  permissions: zod0.ZodUndefined;
947
- }, better_auth303.$strip>, zod0.ZodObject<{
941
+ }, better_auth463.$strip>, zod0.ZodObject<{
948
942
  permission: zod0.ZodUndefined;
949
943
  permissions: zod0.ZodRecord<zod0.ZodString, zod0.ZodArray<zod0.ZodString>>;
950
- }, better_auth303.$strip>]>>;
944
+ }, better_auth463.$strip>]>>;
951
945
  metadata: {
952
946
  openapi: {
953
947
  description: string;
@@ -1077,13 +1071,13 @@ declare const supportedBetterAuthClientPlugins: ({
1077
1071
  };
1078
1072
  };
1079
1073
  options: NoInfer<{
1080
- ac: better_auth_plugins35.AccessControl<{
1074
+ ac: better_auth_plugins65.AccessControl<{
1081
1075
  readonly user: readonly ["create", "list", "set-role", "ban", "impersonate", "delete", "set-password", "get", "update"];
1082
1076
  readonly session: readonly ["list", "revoke", "delete"];
1083
1077
  }>;
1084
1078
  roles: {
1085
- admin: better_auth_plugins35.Role;
1086
- user: better_auth_plugins35.Role;
1079
+ admin: better_auth_plugins65.Role;
1080
+ user: better_auth_plugins65.Role;
1087
1081
  };
1088
1082
  }>;
1089
1083
  };
@@ -1112,8 +1106,8 @@ declare const supportedBetterAuthClientPlugins: ({
1112
1106
  };
1113
1107
  } | {
1114
1108
  id: "organization";
1115
- $InferServerPlugin: better_auth_plugins35.OrganizationPlugin<{
1116
- ac: better_auth_plugins35.AccessControl<{
1109
+ $InferServerPlugin: better_auth_plugins65.OrganizationPlugin<{
1110
+ ac: better_auth_plugins65.AccessControl<{
1117
1111
  readonly organization: readonly ["update", "delete"];
1118
1112
  readonly member: readonly ["create", "update", "delete"];
1119
1113
  readonly invitation: readonly ["create", "cancel"];
@@ -1121,9 +1115,9 @@ declare const supportedBetterAuthClientPlugins: ({
1121
1115
  readonly ac: readonly ["create", "read", "update", "delete"];
1122
1116
  }>;
1123
1117
  roles: {
1124
- admin: better_auth_plugins35.Role;
1125
- member: better_auth_plugins35.Role;
1126
- owner: better_auth_plugins35.Role;
1118
+ admin: better_auth_plugins65.Role;
1119
+ member: better_auth_plugins65.Role;
1120
+ owner: better_auth_plugins65.Role;
1127
1121
  };
1128
1122
  teams: {
1129
1123
  enabled: false;
@@ -1131,27 +1125,27 @@ declare const supportedBetterAuthClientPlugins: ({
1131
1125
  schema: {
1132
1126
  organization?: {
1133
1127
  additionalFields?: {
1134
- [key: string]: better_auth303.DBFieldAttribute;
1128
+ [key: string]: better_auth463.DBFieldAttribute;
1135
1129
  };
1136
1130
  };
1137
1131
  member?: {
1138
1132
  additionalFields?: {
1139
- [key: string]: better_auth303.DBFieldAttribute;
1133
+ [key: string]: better_auth463.DBFieldAttribute;
1140
1134
  };
1141
1135
  };
1142
1136
  invitation?: {
1143
1137
  additionalFields?: {
1144
- [key: string]: better_auth303.DBFieldAttribute;
1138
+ [key: string]: better_auth463.DBFieldAttribute;
1145
1139
  };
1146
1140
  };
1147
1141
  team?: {
1148
1142
  additionalFields?: {
1149
- [key: string]: better_auth303.DBFieldAttribute;
1143
+ [key: string]: better_auth463.DBFieldAttribute;
1150
1144
  };
1151
1145
  };
1152
1146
  organizationRole?: {
1153
1147
  additionalFields?: {
1154
- [key: string]: better_auth303.DBFieldAttribute;
1148
+ [key: string]: better_auth463.DBFieldAttribute;
1155
1149
  };
1156
1150
  };
1157
1151
  } | undefined;
@@ -1159,7 +1153,7 @@ declare const supportedBetterAuthClientPlugins: ({
1159
1153
  enabled: false;
1160
1154
  };
1161
1155
  }>;
1162
- getActions: ($fetch: _better_fetch_fetch177.BetterFetch, _$store: better_auth303.ClientStore, co: BetterAuthClientOptions | undefined) => {
1156
+ getActions: ($fetch: _better_fetch_fetch271.BetterFetch, _$store: better_auth463.ClientStore, co: BetterAuthClientOptions | undefined) => {
1163
1157
  $Infer: {
1164
1158
  ActiveOrganization: {
1165
1159
  members: {
@@ -1180,7 +1174,7 @@ declare const supportedBetterAuthClientPlugins: ({
1180
1174
  organizationId: string;
1181
1175
  email: string;
1182
1176
  role: "admin" | "member" | "owner";
1183
- status: better_auth_plugins35.InvitationStatus;
1177
+ status: better_auth_plugins65.InvitationStatus;
1184
1178
  inviterId: string;
1185
1179
  expiresAt: Date;
1186
1180
  createdAt: Date;
@@ -1206,7 +1200,7 @@ declare const supportedBetterAuthClientPlugins: ({
1206
1200
  organizationId: string;
1207
1201
  email: string;
1208
1202
  role: "admin" | "member" | "owner";
1209
- status: better_auth_plugins35.InvitationStatus;
1203
+ status: better_auth_plugins65.InvitationStatus;
1210
1204
  inviterId: string;
1211
1205
  expiresAt: Date;
1212
1206
  createdAt: Date;
@@ -1256,12 +1250,12 @@ declare const supportedBetterAuthClientPlugins: ({
1256
1250
  }) => boolean;
1257
1251
  };
1258
1252
  };
1259
- getAtoms: ($fetch: _better_fetch_fetch177.BetterFetch) => {
1260
- $listOrg: better_auth_react1.PreinitializedWritableAtom<boolean> & object;
1261
- $activeOrgSignal: better_auth_react1.PreinitializedWritableAtom<boolean> & object;
1262
- $activeMemberSignal: better_auth_react1.PreinitializedWritableAtom<boolean> & object;
1263
- $activeMemberRoleSignal: better_auth_react1.PreinitializedWritableAtom<boolean> & object;
1264
- activeOrganization: better_auth_client0.AuthQueryAtom<better_auth303.Prettify<{
1253
+ getAtoms: ($fetch: _better_fetch_fetch271.BetterFetch) => {
1254
+ $listOrg: better_auth_react3.PreinitializedWritableAtom<boolean> & object;
1255
+ $activeOrgSignal: better_auth_react3.PreinitializedWritableAtom<boolean> & object;
1256
+ $activeMemberSignal: better_auth_react3.PreinitializedWritableAtom<boolean> & object;
1257
+ $activeMemberRoleSignal: better_auth_react3.PreinitializedWritableAtom<boolean> & object;
1258
+ activeOrganization: better_auth_client3.AuthQueryAtom<better_auth463.Prettify<{
1265
1259
  id: string;
1266
1260
  name: string;
1267
1261
  slug: string;
@@ -1287,13 +1281,13 @@ declare const supportedBetterAuthClientPlugins: ({
1287
1281
  organizationId: string;
1288
1282
  email: string;
1289
1283
  role: "admin" | "member" | "owner";
1290
- status: better_auth_plugins35.InvitationStatus;
1284
+ status: better_auth_plugins65.InvitationStatus;
1291
1285
  inviterId: string;
1292
1286
  expiresAt: Date;
1293
1287
  createdAt: Date;
1294
1288
  }[];
1295
1289
  }>>;
1296
- listOrganizations: better_auth_client0.AuthQueryAtom<{
1290
+ listOrganizations: better_auth_client3.AuthQueryAtom<{
1297
1291
  id: string;
1298
1292
  name: string;
1299
1293
  slug: string;
@@ -1301,14 +1295,14 @@ declare const supportedBetterAuthClientPlugins: ({
1301
1295
  logo?: string | null | undefined | undefined;
1302
1296
  metadata?: any;
1303
1297
  }[]>;
1304
- activeMember: better_auth_client0.AuthQueryAtom<{
1298
+ activeMember: better_auth_client3.AuthQueryAtom<{
1305
1299
  id: string;
1306
1300
  organizationId: string;
1307
1301
  userId: string;
1308
1302
  role: string;
1309
1303
  createdAt: Date;
1310
1304
  }>;
1311
- activeMemberRole: better_auth_client0.AuthQueryAtom<{
1305
+ activeMemberRole: better_auth_client3.AuthQueryAtom<{
1312
1306
  role: string;
1313
1307
  }>;
1314
1308
  };
@@ -1334,13 +1328,13 @@ declare const supportedBetterAuthClientPlugins: ({
1334
1328
  })[];
1335
1329
  } | {
1336
1330
  id: "email-otp";
1337
- $InferServerPlugin: ReturnType<(options: better_auth_plugins35.EmailOTPOptions) => {
1331
+ $InferServerPlugin: ReturnType<(options: better_auth_plugins65.EmailOTPOptions) => {
1338
1332
  id: "email-otp";
1339
- init(ctx: better_auth303.AuthContext): {
1333
+ init(ctx: better_auth463.AuthContext): {
1340
1334
  options: {
1341
1335
  emailVerification: {
1342
1336
  sendVerificationEmail(data: {
1343
- user: better_auth303.User;
1337
+ user: better_auth463.User;
1344
1338
  url: string;
1345
1339
  token: string;
1346
1340
  }, request: Request | undefined): Promise<void>;
@@ -1348,7 +1342,7 @@ declare const supportedBetterAuthClientPlugins: ({
1348
1342
  };
1349
1343
  } | undefined;
1350
1344
  endpoints: {
1351
- sendVerificationOTP: better_auth303.StrictEndpoint<"/email-otp/send-verification-otp", {
1345
+ sendVerificationOTP: better_auth463.StrictEndpoint<"/email-otp/send-verification-otp", {
1352
1346
  method: "POST";
1353
1347
  body: zod0.ZodObject<{
1354
1348
  email: zod0.ZodString;
@@ -1357,7 +1351,7 @@ declare const supportedBetterAuthClientPlugins: ({
1357
1351
  "email-verification": "email-verification";
1358
1352
  "forget-password": "forget-password";
1359
1353
  }>;
1360
- }, better_auth303.$strip>;
1354
+ }, better_auth463.$strip>;
1361
1355
  metadata: {
1362
1356
  openapi: {
1363
1357
  operationId: string;
@@ -1384,7 +1378,7 @@ declare const supportedBetterAuthClientPlugins: ({
1384
1378
  }, {
1385
1379
  success: boolean;
1386
1380
  }>;
1387
- createVerificationOTP: better_auth303.StrictEndpoint<string, {
1381
+ createVerificationOTP: better_auth463.StrictEndpoint<string, {
1388
1382
  method: "POST";
1389
1383
  body: zod0.ZodObject<{
1390
1384
  email: zod0.ZodString;
@@ -1393,7 +1387,7 @@ declare const supportedBetterAuthClientPlugins: ({
1393
1387
  "email-verification": "email-verification";
1394
1388
  "forget-password": "forget-password";
1395
1389
  }>;
1396
- }, better_auth303.$strip>;
1390
+ }, better_auth463.$strip>;
1397
1391
  metadata: {
1398
1392
  openapi: {
1399
1393
  operationId: string;
@@ -1413,7 +1407,7 @@ declare const supportedBetterAuthClientPlugins: ({
1413
1407
  };
1414
1408
  };
1415
1409
  }, string>;
1416
- getVerificationOTP: better_auth303.StrictEndpoint<string, {
1410
+ getVerificationOTP: better_auth463.StrictEndpoint<string, {
1417
1411
  method: "GET";
1418
1412
  query: zod0.ZodObject<{
1419
1413
  email: zod0.ZodString;
@@ -1422,7 +1416,7 @@ declare const supportedBetterAuthClientPlugins: ({
1422
1416
  "email-verification": "email-verification";
1423
1417
  "forget-password": "forget-password";
1424
1418
  }>;
1425
- }, better_auth303.$strip>;
1419
+ }, better_auth463.$strip>;
1426
1420
  metadata: {
1427
1421
  openapi: {
1428
1422
  operationId: string;
@@ -1454,7 +1448,7 @@ declare const supportedBetterAuthClientPlugins: ({
1454
1448
  } | {
1455
1449
  otp: string;
1456
1450
  }>;
1457
- checkVerificationOTP: better_auth303.StrictEndpoint<"/email-otp/check-verification-otp", {
1451
+ checkVerificationOTP: better_auth463.StrictEndpoint<"/email-otp/check-verification-otp", {
1458
1452
  method: "POST";
1459
1453
  body: zod0.ZodObject<{
1460
1454
  email: zod0.ZodString;
@@ -1464,7 +1458,7 @@ declare const supportedBetterAuthClientPlugins: ({
1464
1458
  "forget-password": "forget-password";
1465
1459
  }>;
1466
1460
  otp: zod0.ZodString;
1467
- }, better_auth303.$strip>;
1461
+ }, better_auth463.$strip>;
1468
1462
  metadata: {
1469
1463
  openapi: {
1470
1464
  operationId: string;
@@ -1491,12 +1485,12 @@ declare const supportedBetterAuthClientPlugins: ({
1491
1485
  }, {
1492
1486
  success: boolean;
1493
1487
  }>;
1494
- verifyEmailOTP: better_auth303.StrictEndpoint<"/email-otp/verify-email", {
1488
+ verifyEmailOTP: better_auth463.StrictEndpoint<"/email-otp/verify-email", {
1495
1489
  method: "POST";
1496
1490
  body: zod0.ZodObject<{
1497
1491
  email: zod0.ZodString;
1498
1492
  otp: zod0.ZodString;
1499
- }, better_auth303.$strip>;
1493
+ }, better_auth463.$strip>;
1500
1494
  metadata: {
1501
1495
  openapi: {
1502
1496
  description: string;
@@ -1535,32 +1529,32 @@ declare const supportedBetterAuthClientPlugins: ({
1535
1529
  token: string;
1536
1530
  user: {
1537
1531
  id: string;
1532
+ createdAt: Date;
1533
+ updatedAt: Date;
1538
1534
  email: string;
1539
1535
  emailVerified: boolean;
1540
1536
  name: string;
1541
- image: string | null | undefined;
1542
- createdAt: Date;
1543
- updatedAt: Date;
1544
- };
1537
+ image?: string | null | undefined;
1538
+ } & Record<string, any>;
1545
1539
  } | {
1546
1540
  status: boolean;
1547
1541
  token: null;
1548
1542
  user: {
1549
1543
  id: string;
1544
+ createdAt: Date;
1545
+ updatedAt: Date;
1550
1546
  email: string;
1551
1547
  emailVerified: boolean;
1552
1548
  name: string;
1553
- image: string | null | undefined;
1554
- createdAt: Date;
1555
- updatedAt: Date;
1556
- };
1549
+ image?: string | null | undefined;
1550
+ } & Record<string, any>;
1557
1551
  }>;
1558
- signInEmailOTP: better_auth303.StrictEndpoint<"/sign-in/email-otp", {
1552
+ signInEmailOTP: better_auth463.StrictEndpoint<"/sign-in/email-otp", {
1559
1553
  method: "POST";
1560
1554
  body: zod0.ZodObject<{
1561
1555
  email: zod0.ZodString;
1562
1556
  otp: zod0.ZodString;
1563
- }, better_auth303.$strip>;
1557
+ }, better_auth463.$strip>;
1564
1558
  metadata: {
1565
1559
  openapi: {
1566
1560
  operationId: string;
@@ -1593,19 +1587,19 @@ declare const supportedBetterAuthClientPlugins: ({
1593
1587
  token: string;
1594
1588
  user: {
1595
1589
  id: string;
1590
+ createdAt: Date;
1591
+ updatedAt: Date;
1596
1592
  email: string;
1597
1593
  emailVerified: boolean;
1598
1594
  name: string;
1599
- image: string | null | undefined;
1600
- createdAt: Date;
1601
- updatedAt: Date;
1595
+ image?: string | null | undefined;
1602
1596
  };
1603
1597
  }>;
1604
- forgetPasswordEmailOTP: better_auth303.StrictEndpoint<"/forget-password/email-otp", {
1598
+ requestPasswordResetEmailOTP: better_auth463.StrictEndpoint<"/email-otp/request-password-reset", {
1605
1599
  method: "POST";
1606
1600
  body: zod0.ZodObject<{
1607
1601
  email: zod0.ZodString;
1608
- }, better_auth303.$strip>;
1602
+ }, better_auth463.$strip>;
1609
1603
  metadata: {
1610
1604
  openapi: {
1611
1605
  operationId: string;
@@ -1633,13 +1627,45 @@ declare const supportedBetterAuthClientPlugins: ({
1633
1627
  }, {
1634
1628
  success: boolean;
1635
1629
  }>;
1636
- resetPasswordEmailOTP: better_auth303.StrictEndpoint<"/email-otp/reset-password", {
1630
+ forgetPasswordEmailOTP: better_auth463.StrictEndpoint<"/forget-password/email-otp", {
1631
+ method: "POST";
1632
+ body: zod0.ZodObject<{
1633
+ email: zod0.ZodString;
1634
+ }, better_auth463.$strip>;
1635
+ metadata: {
1636
+ openapi: {
1637
+ operationId: string;
1638
+ description: string;
1639
+ responses: {
1640
+ 200: {
1641
+ description: string;
1642
+ content: {
1643
+ "application/json": {
1644
+ schema: {
1645
+ type: "object";
1646
+ properties: {
1647
+ success: {
1648
+ type: string;
1649
+ description: string;
1650
+ };
1651
+ };
1652
+ };
1653
+ };
1654
+ };
1655
+ };
1656
+ };
1657
+ };
1658
+ };
1659
+ }, {
1660
+ success: boolean;
1661
+ }>;
1662
+ resetPasswordEmailOTP: better_auth463.StrictEndpoint<"/email-otp/reset-password", {
1637
1663
  method: "POST";
1638
1664
  body: zod0.ZodObject<{
1639
1665
  email: zod0.ZodString;
1640
1666
  otp: zod0.ZodString;
1641
1667
  password: zod0.ZodString;
1642
- }, better_auth303.$strip>;
1668
+ }, better_auth463.$strip>;
1643
1669
  metadata: {
1644
1670
  openapi: {
1645
1671
  operationId: string;
@@ -1669,8 +1695,8 @@ declare const supportedBetterAuthClientPlugins: ({
1669
1695
  };
1670
1696
  hooks: {
1671
1697
  after: {
1672
- matcher(context: better_auth303.HookEndpointContext): boolean;
1673
- handler: (inputContext: better_auth303.MiddlewareInputContext<better_auth303.MiddlewareOptions>) => Promise<void>;
1698
+ matcher(context: better_auth463.HookEndpointContext): boolean;
1699
+ handler: (inputContext: better_auth463.MiddlewareInputContext<better_auth463.MiddlewareOptions>) => Promise<void>;
1674
1700
  }[];
1675
1701
  };
1676
1702
  $ERROR_CODES: {
@@ -1694,13 +1720,122 @@ declare const supportedBetterAuthClientPlugins: ({
1694
1720
  pathMatcher(path: string): path is "/sign-in/email-otp";
1695
1721
  window: number;
1696
1722
  max: number;
1723
+ } | {
1724
+ pathMatcher(path: string): path is "/email-otp/request-password-reset";
1725
+ window: number;
1726
+ max: number;
1727
+ } | {
1728
+ pathMatcher(path: string): path is "/email-otp/reset-password";
1729
+ window: number;
1730
+ max: number;
1731
+ } | {
1732
+ pathMatcher(path: string): path is "/forget-password/email-otp";
1733
+ window: number;
1734
+ max: number;
1697
1735
  })[];
1698
- options: better_auth_plugins35.EmailOTPOptions;
1736
+ options: better_auth_plugins65.EmailOTPOptions;
1699
1737
  }>;
1700
1738
  atomListeners: {
1701
1739
  matcher: (path: string) => path is "/email-otp/verify-email" | "/sign-in/email-otp";
1702
1740
  signal: "$sessionSignal";
1703
1741
  }[];
1742
+ } | {
1743
+ id: "magic-link";
1744
+ $InferServerPlugin: ReturnType<(options: better_auth_plugins65.MagicLinkOptions) => {
1745
+ id: "magic-link";
1746
+ endpoints: {
1747
+ signInMagicLink: better_auth463.StrictEndpoint<"/sign-in/magic-link", {
1748
+ method: "POST";
1749
+ requireHeaders: true;
1750
+ body: zod0.ZodObject<{
1751
+ email: zod0.ZodEmail;
1752
+ name: zod0.ZodOptional<zod0.ZodString>;
1753
+ callbackURL: zod0.ZodOptional<zod0.ZodString>;
1754
+ newUserCallbackURL: zod0.ZodOptional<zod0.ZodString>;
1755
+ errorCallbackURL: zod0.ZodOptional<zod0.ZodString>;
1756
+ }, better_auth463.$strip>;
1757
+ metadata: {
1758
+ openapi: {
1759
+ operationId: string;
1760
+ description: string;
1761
+ responses: {
1762
+ 200: {
1763
+ description: string;
1764
+ content: {
1765
+ "application/json": {
1766
+ schema: {
1767
+ type: "object";
1768
+ properties: {
1769
+ status: {
1770
+ type: string;
1771
+ };
1772
+ };
1773
+ };
1774
+ };
1775
+ };
1776
+ };
1777
+ };
1778
+ };
1779
+ };
1780
+ }, {
1781
+ status: boolean;
1782
+ }>;
1783
+ magicLinkVerify: better_auth463.StrictEndpoint<"/magic-link/verify", {
1784
+ method: "GET";
1785
+ query: zod0.ZodObject<{
1786
+ token: zod0.ZodString;
1787
+ callbackURL: zod0.ZodOptional<zod0.ZodString>;
1788
+ errorCallbackURL: zod0.ZodOptional<zod0.ZodString>;
1789
+ newUserCallbackURL: zod0.ZodOptional<zod0.ZodString>;
1790
+ }, better_auth463.$strip>;
1791
+ use: ((inputContext: better_auth463.MiddlewareInputContext<better_auth463.MiddlewareOptions>) => Promise<void>)[];
1792
+ requireHeaders: true;
1793
+ metadata: {
1794
+ openapi: {
1795
+ operationId: string;
1796
+ description: string;
1797
+ responses: {
1798
+ 200: {
1799
+ description: string;
1800
+ content: {
1801
+ "application/json": {
1802
+ schema: {
1803
+ type: "object";
1804
+ properties: {
1805
+ session: {
1806
+ $ref: string;
1807
+ };
1808
+ user: {
1809
+ $ref: string;
1810
+ };
1811
+ };
1812
+ };
1813
+ };
1814
+ };
1815
+ };
1816
+ };
1817
+ };
1818
+ };
1819
+ }, {
1820
+ token: string;
1821
+ user: {
1822
+ id: string;
1823
+ createdAt: Date;
1824
+ updatedAt: Date;
1825
+ email: string;
1826
+ emailVerified: boolean;
1827
+ name: string;
1828
+ image?: string | null | undefined;
1829
+ };
1830
+ }>;
1831
+ };
1832
+ rateLimit: {
1833
+ pathMatcher(path: string): boolean;
1834
+ window: number;
1835
+ max: number;
1836
+ }[];
1837
+ options: better_auth_plugins65.MagicLinkOptions;
1838
+ }>;
1704
1839
  })[];
1705
1840
  type SupportedBetterAuthClientPlugins = typeof supportedBetterAuthClientPlugins;
1706
1841
  declare abstract class NeonAuthAdapterCore {
@@ -1726,4 +1861,4 @@ declare abstract class NeonAuthAdapterCore {
1726
1861
  getJWTToken(allowAnonymous: boolean): Promise<string | null>;
1727
1862
  }
1728
1863
  //#endregion
1729
- export { BetterAuthSession as A, Team as C, UserWithRole as D, TeamMemberInput as E, VanillaBetterAuthClient as O, SessionWithImpersonatedBy as S, TeamMember as T, MemberInput as _, BetterAuthInstance as a, OrganizationRole as b, InferAdminRolesFromOption as c, InvitationStatus as d, JWKOptions as f, Member as g, JwtOptions as h, AdminOptions as i, BetterAuthUser as j, BetterAuthErrorResponse as k, Invitation as l, Jwk as m, NeonAuthAdapterCoreAuthOptions as n, BetterFetchError$1 as o, JWSAlgorithms as p, SupportedBetterAuthClientPlugins as r, EmailOTPOptions as s, NeonAuthAdapterCore as t, InvitationInput as u, Organization as v, TeamInput as w, ReactBetterAuthClient as x, OrganizationInput as y };
1864
+ export { BetterAuthErrorResponse as A, SessionWithImpersonatedBy as C, TeamMemberInput as D, TeamMember as E, BetterAuthUser as M, UserWithRole as O, ReactBetterAuthClient as S, TeamInput as T, Member as _, BetterAuthInstance as a, OrganizationInput as b, InferAdminRolesFromOption as c, InvitationStatus as d, JWKOptions as f, MagicLinkOptions as g, JwtOptions as h, AdminOptions as i, BetterAuthSession as j, VanillaBetterAuthClient as k, Invitation as l, Jwk as m, NeonAuthAdapterCoreAuthOptions as n, BetterFetchError$1 as o, JWSAlgorithms as p, SupportedBetterAuthClientPlugins as r, EmailOTPOptions as s, NeonAuthAdapterCore as t, InvitationInput as u, MemberInput as v, Team as w, OrganizationRole as x, Organization as y };