@neondatabase/auth 0.1.0-beta.13 → 0.1.0-beta.14

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.
@@ -4,8 +4,8 @@ import { BetterAuthClientOptions, createAuthClient as createAuthClient$1 } from
4
4
  import * as better_auth_client_plugins17 from "better-auth/client/plugins";
5
5
  import * as zod0 from "zod";
6
6
  import * as jose2 from "jose";
7
- import * as better_auth460 from "better-auth";
8
- import * as _better_fetch_fetch269 from "@better-fetch/fetch";
7
+ import * as better_auth454 from "better-auth";
8
+ import * as _better_fetch_fetch266 from "@better-fetch/fetch";
9
9
  import * as nanostores7 from "nanostores";
10
10
  import * as better_call0 from "better-call";
11
11
  import * as better_auth_plugins_email_otp0 from "better-auth/plugins/email-otp";
@@ -17,7 +17,7 @@ declare const supportedBetterAuthClientPlugins: ({
17
17
  pathMethods: {
18
18
  "/token/anonymous": "GET";
19
19
  };
20
- getActions: ($fetch: _better_fetch_fetch269.BetterFetch) => {
20
+ getActions: ($fetch: _better_fetch_fetch266.BetterFetch) => {
21
21
  getAnonymousToken: (fetchOptions?: any) => Promise<{
22
22
  data: {
23
23
  token: string;
@@ -186,7 +186,7 @@ declare const supportedBetterAuthClientPlugins: ({
186
186
  body: zod0.ZodObject<{
187
187
  payload: zod0.ZodRecord<zod0.ZodString, zod0.ZodAny>;
188
188
  overrideOptions: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodAny>>;
189
- }, better_auth460.$strip>;
189
+ }, better_auth454.$strip>;
190
190
  } & {
191
191
  use: any[];
192
192
  }, {
@@ -213,7 +213,7 @@ declare const supportedBetterAuthClientPlugins: ({
213
213
  body: zod0.ZodObject<{
214
214
  token: zod0.ZodString;
215
215
  issuer: zod0.ZodOptional<zod0.ZodString>;
216
- }, better_auth460.$strip>;
216
+ }, better_auth454.$strip>;
217
217
  } & {
218
218
  use: any[];
219
219
  }, {
@@ -222,7 +222,7 @@ declare const supportedBetterAuthClientPlugins: ({
222
222
  };
223
223
  hooks: {
224
224
  after: {
225
- matcher(context: better_auth460.HookEndpointContext): boolean;
225
+ matcher(context: better_auth454.HookEndpointContext): boolean;
226
226
  handler: (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<void>;
227
227
  }[];
228
228
  };
@@ -252,7 +252,7 @@ declare const supportedBetterAuthClientPlugins: ({
252
252
  pathMethods: {
253
253
  [x: string]: "GET";
254
254
  };
255
- getActions: ($fetch: _better_fetch_fetch269.BetterFetch) => {
255
+ getActions: ($fetch: _better_fetch_fetch266.BetterFetch) => {
256
256
  jwks: (fetchOptions?: any) => Promise<{
257
257
  data: null;
258
258
  error: {
@@ -307,7 +307,7 @@ declare const supportedBetterAuthClientPlugins: ({
307
307
  token: string;
308
308
  ipAddress?: string | null | undefined;
309
309
  userAgent?: string | null | undefined;
310
- } & Record<string, unknown>, ctx: better_auth460.GenericEndpointContext | null): Promise<void>;
310
+ } & Record<string, unknown>, ctx: better_auth454.GenericEndpointContext | null): Promise<void>;
311
311
  };
312
312
  };
313
313
  };
@@ -315,7 +315,7 @@ declare const supportedBetterAuthClientPlugins: ({
315
315
  };
316
316
  hooks: {
317
317
  after: {
318
- matcher(context: better_auth460.HookEndpointContext): boolean;
318
+ matcher(context: better_auth454.HookEndpointContext): boolean;
319
319
  handler: (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<better_auth_client_plugins17.SessionWithImpersonatedBy[] | undefined>;
320
320
  }[];
321
321
  };
@@ -325,12 +325,12 @@ declare const supportedBetterAuthClientPlugins: ({
325
325
  body: zod0.ZodObject<{
326
326
  userId: zod0.ZodCoercedString<unknown>;
327
327
  role: zod0.ZodUnion<readonly [zod0.ZodString, zod0.ZodArray<zod0.ZodString>]>;
328
- }, better_auth460.$strip>;
328
+ }, better_auth454.$strip>;
329
329
  requireHeaders: true;
330
330
  use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
331
331
  session: {
332
332
  user: better_auth_client_plugins17.UserWithRole;
333
- session: better_auth460.Session;
333
+ session: better_auth454.Session;
334
334
  };
335
335
  }>)[];
336
336
  metadata: {
@@ -372,11 +372,11 @@ declare const supportedBetterAuthClientPlugins: ({
372
372
  method: "GET";
373
373
  query: zod0.ZodObject<{
374
374
  id: zod0.ZodString;
375
- }, better_auth460.$strip>;
375
+ }, better_auth454.$strip>;
376
376
  use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
377
377
  session: {
378
378
  user: better_auth_client_plugins17.UserWithRole;
379
- session: better_auth460.Session;
379
+ session: better_auth454.Session;
380
380
  };
381
381
  }>)[];
382
382
  metadata: {
@@ -422,7 +422,7 @@ declare const supportedBetterAuthClientPlugins: ({
422
422
  name: zod0.ZodString;
423
423
  role: zod0.ZodOptional<zod0.ZodUnion<readonly [zod0.ZodString, zod0.ZodArray<zod0.ZodString>]>>;
424
424
  data: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodAny>>;
425
- }, better_auth460.$strip>;
425
+ }, better_auth454.$strip>;
426
426
  metadata: {
427
427
  openapi: {
428
428
  operationId: string;
@@ -466,11 +466,11 @@ declare const supportedBetterAuthClientPlugins: ({
466
466
  body: zod0.ZodObject<{
467
467
  userId: zod0.ZodCoercedString<unknown>;
468
468
  data: zod0.ZodRecord<zod0.ZodAny, zod0.ZodAny>;
469
- }, better_auth460.$strip>;
469
+ }, better_auth454.$strip>;
470
470
  use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
471
471
  session: {
472
472
  user: better_auth_client_plugins17.UserWithRole;
473
- session: better_auth460.Session;
473
+ session: better_auth454.Session;
474
474
  };
475
475
  }>)[];
476
476
  metadata: {
@@ -505,7 +505,7 @@ declare const supportedBetterAuthClientPlugins: ({
505
505
  use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
506
506
  session: {
507
507
  user: better_auth_client_plugins17.UserWithRole;
508
- session: better_auth460.Session;
508
+ session: better_auth454.Session;
509
509
  };
510
510
  }>)[];
511
511
  query: zod0.ZodObject<{
@@ -537,7 +537,7 @@ declare const supportedBetterAuthClientPlugins: ({
537
537
  gte: "gte";
538
538
  contains: "contains";
539
539
  }>>;
540
- }, better_auth460.$strip>;
540
+ }, better_auth454.$strip>;
541
541
  metadata: {
542
542
  openapi: {
543
543
  operationId: string;
@@ -591,12 +591,12 @@ declare const supportedBetterAuthClientPlugins: ({
591
591
  use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
592
592
  session: {
593
593
  user: better_auth_client_plugins17.UserWithRole;
594
- session: better_auth460.Session;
594
+ session: better_auth454.Session;
595
595
  };
596
596
  }>)[];
597
597
  body: zod0.ZodObject<{
598
598
  userId: zod0.ZodCoercedString<unknown>;
599
- }, better_auth460.$strip>;
599
+ }, better_auth454.$strip>;
600
600
  metadata: {
601
601
  openapi: {
602
602
  operationId: string;
@@ -633,11 +633,11 @@ declare const supportedBetterAuthClientPlugins: ({
633
633
  method: "POST";
634
634
  body: zod0.ZodObject<{
635
635
  userId: zod0.ZodCoercedString<unknown>;
636
- }, better_auth460.$strip>;
636
+ }, better_auth454.$strip>;
637
637
  use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
638
638
  session: {
639
639
  user: better_auth_client_plugins17.UserWithRole;
640
- session: better_auth460.Session;
640
+ session: better_auth454.Session;
641
641
  };
642
642
  }>)[];
643
643
  metadata: {
@@ -683,11 +683,11 @@ declare const supportedBetterAuthClientPlugins: ({
683
683
  userId: zod0.ZodCoercedString<unknown>;
684
684
  banReason: zod0.ZodOptional<zod0.ZodString>;
685
685
  banExpiresIn: zod0.ZodOptional<zod0.ZodNumber>;
686
- }, better_auth460.$strip>;
686
+ }, better_auth454.$strip>;
687
687
  use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
688
688
  session: {
689
689
  user: better_auth_client_plugins17.UserWithRole;
690
- session: better_auth460.Session;
690
+ session: better_auth454.Session;
691
691
  };
692
692
  }>)[];
693
693
  metadata: {
@@ -731,11 +731,11 @@ declare const supportedBetterAuthClientPlugins: ({
731
731
  method: "POST";
732
732
  body: zod0.ZodObject<{
733
733
  userId: zod0.ZodCoercedString<unknown>;
734
- }, better_auth460.$strip>;
734
+ }, better_auth454.$strip>;
735
735
  use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
736
736
  session: {
737
737
  user: better_auth_client_plugins17.UserWithRole;
738
- session: better_auth460.Session;
738
+ session: better_auth454.Session;
739
739
  };
740
740
  }>)[];
741
741
  metadata: {
@@ -786,18 +786,18 @@ declare const supportedBetterAuthClientPlugins: ({
786
786
  } & {
787
787
  use: any[];
788
788
  }, {
789
- session: better_auth460.Session & Record<string, any>;
790
- user: better_auth460.User & Record<string, any>;
789
+ session: better_auth454.Session & Record<string, any>;
790
+ user: better_auth454.User & Record<string, any>;
791
791
  }>;
792
792
  revokeUserSession: better_call0.StrictEndpoint<"/admin/revoke-user-session", {
793
793
  method: "POST";
794
794
  body: zod0.ZodObject<{
795
795
  sessionToken: zod0.ZodString;
796
- }, better_auth460.$strip>;
796
+ }, better_auth454.$strip>;
797
797
  use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
798
798
  session: {
799
799
  user: better_auth_client_plugins17.UserWithRole;
800
- session: better_auth460.Session;
800
+ session: better_auth454.Session;
801
801
  };
802
802
  }>)[];
803
803
  metadata: {
@@ -833,11 +833,11 @@ declare const supportedBetterAuthClientPlugins: ({
833
833
  method: "POST";
834
834
  body: zod0.ZodObject<{
835
835
  userId: zod0.ZodCoercedString<unknown>;
836
- }, better_auth460.$strip>;
836
+ }, better_auth454.$strip>;
837
837
  use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
838
838
  session: {
839
839
  user: better_auth_client_plugins17.UserWithRole;
840
- session: better_auth460.Session;
840
+ session: better_auth454.Session;
841
841
  };
842
842
  }>)[];
843
843
  metadata: {
@@ -873,11 +873,11 @@ declare const supportedBetterAuthClientPlugins: ({
873
873
  method: "POST";
874
874
  body: zod0.ZodObject<{
875
875
  userId: zod0.ZodCoercedString<unknown>;
876
- }, better_auth460.$strip>;
876
+ }, better_auth454.$strip>;
877
877
  use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
878
878
  session: {
879
879
  user: better_auth_client_plugins17.UserWithRole;
880
- session: better_auth460.Session;
880
+ session: better_auth454.Session;
881
881
  };
882
882
  }>)[];
883
883
  metadata: {
@@ -914,11 +914,11 @@ declare const supportedBetterAuthClientPlugins: ({
914
914
  body: zod0.ZodObject<{
915
915
  newPassword: zod0.ZodString;
916
916
  userId: zod0.ZodCoercedString<unknown>;
917
- }, better_auth460.$strip>;
917
+ }, better_auth454.$strip>;
918
918
  use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
919
919
  session: {
920
920
  user: better_auth_client_plugins17.UserWithRole;
921
- session: better_auth460.Session;
921
+ session: better_auth454.Session;
922
922
  };
923
923
  }>)[];
924
924
  metadata: {
@@ -955,13 +955,13 @@ declare const supportedBetterAuthClientPlugins: ({
955
955
  body: zod0.ZodIntersection<zod0.ZodObject<{
956
956
  userId: zod0.ZodOptional<zod0.ZodCoercedString<unknown>>;
957
957
  role: zod0.ZodOptional<zod0.ZodString>;
958
- }, better_auth460.$strip>, zod0.ZodUnion<readonly [zod0.ZodObject<{
958
+ }, better_auth454.$strip>, zod0.ZodUnion<readonly [zod0.ZodObject<{
959
959
  permission: zod0.ZodRecord<zod0.ZodString, zod0.ZodArray<zod0.ZodString>>;
960
960
  permissions: zod0.ZodUndefined;
961
- }, better_auth460.$strip>, zod0.ZodObject<{
961
+ }, better_auth454.$strip>, zod0.ZodObject<{
962
962
  permission: zod0.ZodUndefined;
963
963
  permissions: zod0.ZodRecord<zod0.ZodString, zod0.ZodArray<zod0.ZodString>>;
964
- }, better_auth460.$strip>]>>;
964
+ }, better_auth454.$strip>]>>;
965
965
  metadata: {
966
966
  openapi: {
967
967
  description: string;
@@ -1137,27 +1137,27 @@ declare const supportedBetterAuthClientPlugins: ({
1137
1137
  schema: {
1138
1138
  organization?: {
1139
1139
  additionalFields?: {
1140
- [key: string]: better_auth460.DBFieldAttribute;
1140
+ [key: string]: better_auth454.DBFieldAttribute;
1141
1141
  };
1142
1142
  };
1143
1143
  member?: {
1144
1144
  additionalFields?: {
1145
- [key: string]: better_auth460.DBFieldAttribute;
1145
+ [key: string]: better_auth454.DBFieldAttribute;
1146
1146
  };
1147
1147
  };
1148
1148
  invitation?: {
1149
1149
  additionalFields?: {
1150
- [key: string]: better_auth460.DBFieldAttribute;
1150
+ [key: string]: better_auth454.DBFieldAttribute;
1151
1151
  };
1152
1152
  };
1153
1153
  team?: {
1154
1154
  additionalFields?: {
1155
- [key: string]: better_auth460.DBFieldAttribute;
1155
+ [key: string]: better_auth454.DBFieldAttribute;
1156
1156
  };
1157
1157
  };
1158
1158
  organizationRole?: {
1159
1159
  additionalFields?: {
1160
- [key: string]: better_auth460.DBFieldAttribute;
1160
+ [key: string]: better_auth454.DBFieldAttribute;
1161
1161
  };
1162
1162
  };
1163
1163
  } | undefined;
@@ -1165,7 +1165,7 @@ declare const supportedBetterAuthClientPlugins: ({
1165
1165
  enabled: false;
1166
1166
  };
1167
1167
  }>;
1168
- getActions: ($fetch: _better_fetch_fetch269.BetterFetch, _$store: better_auth460.ClientStore, co: BetterAuthClientOptions | undefined) => {
1168
+ getActions: ($fetch: _better_fetch_fetch266.BetterFetch, _$store: better_auth454.ClientStore, co: BetterAuthClientOptions | undefined) => {
1169
1169
  $Infer: {
1170
1170
  ActiveOrganization: {
1171
1171
  members: {
@@ -1262,13 +1262,13 @@ declare const supportedBetterAuthClientPlugins: ({
1262
1262
  }) => boolean;
1263
1263
  };
1264
1264
  };
1265
- getAtoms: ($fetch: _better_fetch_fetch269.BetterFetch) => {
1265
+ getAtoms: ($fetch: _better_fetch_fetch266.BetterFetch) => {
1266
1266
  $listOrg: nanostores7.PreinitializedWritableAtom<boolean> & object;
1267
1267
  $activeOrgSignal: nanostores7.PreinitializedWritableAtom<boolean> & object;
1268
1268
  $activeMemberSignal: nanostores7.PreinitializedWritableAtom<boolean> & object;
1269
1269
  $activeMemberRoleSignal: nanostores7.PreinitializedWritableAtom<boolean> & object;
1270
1270
  activeOrganization: nanostores7.PreinitializedWritableAtom<{
1271
- data: better_auth460.Prettify<{
1271
+ data: better_auth454.Prettify<{
1272
1272
  id: string;
1273
1273
  name: string;
1274
1274
  slug: string;
@@ -1300,11 +1300,11 @@ declare const supportedBetterAuthClientPlugins: ({
1300
1300
  createdAt: Date;
1301
1301
  }[];
1302
1302
  }> | null;
1303
- error: null | _better_fetch_fetch269.BetterFetchError;
1303
+ error: null | _better_fetch_fetch266.BetterFetchError;
1304
1304
  isPending: boolean;
1305
1305
  isRefetching: boolean;
1306
1306
  refetch: (queryParams?: {
1307
- query?: better_auth460.SessionQueryParams;
1307
+ query?: better_auth454.SessionQueryParams;
1308
1308
  } | undefined) => Promise<void>;
1309
1309
  }> & object;
1310
1310
  listOrganizations: nanostores7.PreinitializedWritableAtom<{
@@ -1316,11 +1316,11 @@ declare const supportedBetterAuthClientPlugins: ({
1316
1316
  logo?: string | null | undefined | undefined;
1317
1317
  metadata?: any;
1318
1318
  }[] | null;
1319
- error: null | _better_fetch_fetch269.BetterFetchError;
1319
+ error: null | _better_fetch_fetch266.BetterFetchError;
1320
1320
  isPending: boolean;
1321
1321
  isRefetching: boolean;
1322
1322
  refetch: (queryParams?: {
1323
- query?: better_auth460.SessionQueryParams;
1323
+ query?: better_auth454.SessionQueryParams;
1324
1324
  } | undefined) => Promise<void>;
1325
1325
  }> & object;
1326
1326
  activeMember: nanostores7.PreinitializedWritableAtom<{
@@ -1331,22 +1331,22 @@ declare const supportedBetterAuthClientPlugins: ({
1331
1331
  role: string;
1332
1332
  createdAt: Date;
1333
1333
  } | null;
1334
- error: null | _better_fetch_fetch269.BetterFetchError;
1334
+ error: null | _better_fetch_fetch266.BetterFetchError;
1335
1335
  isPending: boolean;
1336
1336
  isRefetching: boolean;
1337
1337
  refetch: (queryParams?: {
1338
- query?: better_auth460.SessionQueryParams;
1338
+ query?: better_auth454.SessionQueryParams;
1339
1339
  } | undefined) => Promise<void>;
1340
1340
  }> & object;
1341
1341
  activeMemberRole: nanostores7.PreinitializedWritableAtom<{
1342
1342
  data: {
1343
1343
  role: string;
1344
1344
  } | null;
1345
- error: null | _better_fetch_fetch269.BetterFetchError;
1345
+ error: null | _better_fetch_fetch266.BetterFetchError;
1346
1346
  isPending: boolean;
1347
1347
  isRefetching: boolean;
1348
1348
  refetch: (queryParams?: {
1349
- query?: better_auth460.SessionQueryParams;
1349
+ query?: better_auth454.SessionQueryParams;
1350
1350
  } | undefined) => Promise<void>;
1351
1351
  }> & object;
1352
1352
  };
@@ -1374,11 +1374,11 @@ declare const supportedBetterAuthClientPlugins: ({
1374
1374
  id: "email-otp";
1375
1375
  $InferServerPlugin: ReturnType<(options: better_auth_plugins_email_otp0.EmailOTPOptions) => {
1376
1376
  id: "email-otp";
1377
- init(ctx: better_auth460.AuthContext): {
1377
+ init(ctx: better_auth454.AuthContext): {
1378
1378
  options: {
1379
1379
  emailVerification: {
1380
1380
  sendVerificationEmail(data: {
1381
- user: better_auth460.User;
1381
+ user: better_auth454.User;
1382
1382
  url: string;
1383
1383
  token: string;
1384
1384
  }, request: Request | undefined): Promise<void>;
@@ -1395,7 +1395,7 @@ declare const supportedBetterAuthClientPlugins: ({
1395
1395
  "email-verification": "email-verification";
1396
1396
  "forget-password": "forget-password";
1397
1397
  }>;
1398
- }, better_auth460.$strip>;
1398
+ }, better_auth454.$strip>;
1399
1399
  metadata: {
1400
1400
  openapi: {
1401
1401
  operationId: string;
@@ -1433,7 +1433,7 @@ declare const supportedBetterAuthClientPlugins: ({
1433
1433
  "email-verification": "email-verification";
1434
1434
  "forget-password": "forget-password";
1435
1435
  }>;
1436
- }, better_auth460.$strip>;
1436
+ }, better_auth454.$strip>;
1437
1437
  metadata: {
1438
1438
  SERVER_ONLY: true;
1439
1439
  openapi: {
@@ -1465,7 +1465,7 @@ declare const supportedBetterAuthClientPlugins: ({
1465
1465
  "email-verification": "email-verification";
1466
1466
  "forget-password": "forget-password";
1467
1467
  }>;
1468
- }, better_auth460.$strip>;
1468
+ }, better_auth454.$strip>;
1469
1469
  metadata: {
1470
1470
  SERVER_ONLY: true;
1471
1471
  openapi: {
@@ -1510,7 +1510,7 @@ declare const supportedBetterAuthClientPlugins: ({
1510
1510
  "forget-password": "forget-password";
1511
1511
  }>;
1512
1512
  otp: zod0.ZodString;
1513
- }, better_auth460.$strip>;
1513
+ }, better_auth454.$strip>;
1514
1514
  metadata: {
1515
1515
  openapi: {
1516
1516
  operationId: string;
@@ -1544,7 +1544,7 @@ declare const supportedBetterAuthClientPlugins: ({
1544
1544
  body: zod0.ZodObject<{
1545
1545
  email: zod0.ZodString;
1546
1546
  otp: zod0.ZodString;
1547
- }, better_auth460.$strip>;
1547
+ }, better_auth454.$strip>;
1548
1548
  metadata: {
1549
1549
  openapi: {
1550
1550
  description: string;
@@ -1610,7 +1610,7 @@ declare const supportedBetterAuthClientPlugins: ({
1610
1610
  body: zod0.ZodObject<{
1611
1611
  email: zod0.ZodString;
1612
1612
  otp: zod0.ZodString;
1613
- }, better_auth460.$strip>;
1613
+ }, better_auth454.$strip>;
1614
1614
  metadata: {
1615
1615
  openapi: {
1616
1616
  operationId: string;
@@ -1657,7 +1657,7 @@ declare const supportedBetterAuthClientPlugins: ({
1657
1657
  method: "POST";
1658
1658
  body: zod0.ZodObject<{
1659
1659
  email: zod0.ZodString;
1660
- }, better_auth460.$strip>;
1660
+ }, better_auth454.$strip>;
1661
1661
  metadata: {
1662
1662
  openapi: {
1663
1663
  operationId: string;
@@ -1693,7 +1693,7 @@ declare const supportedBetterAuthClientPlugins: ({
1693
1693
  email: zod0.ZodString;
1694
1694
  otp: zod0.ZodString;
1695
1695
  password: zod0.ZodString;
1696
- }, better_auth460.$strip>;
1696
+ }, better_auth454.$strip>;
1697
1697
  metadata: {
1698
1698
  openapi: {
1699
1699
  operationId: string;
@@ -1725,7 +1725,7 @@ declare const supportedBetterAuthClientPlugins: ({
1725
1725
  };
1726
1726
  hooks: {
1727
1727
  after: {
1728
- matcher(context: better_auth460.HookEndpointContext): boolean;
1728
+ matcher(context: better_auth454.HookEndpointContext): boolean;
1729
1729
  handler: (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<void>;
1730
1730
  }[];
1731
1731
  };
@@ -1756,84 +1756,6 @@ declare const supportedBetterAuthClientPlugins: ({
1756
1756
  matcher: (path: string) => path is "/email-otp/verify-email" | "/sign-in/email-otp";
1757
1757
  signal: "$sessionSignal";
1758
1758
  }[];
1759
- } | {
1760
- id: "anonymous";
1761
- $InferServerPlugin: ReturnType<(options?: better_auth_client_plugins17.AnonymousOptions | undefined) => {
1762
- id: "anonymous";
1763
- endpoints: {
1764
- signInAnonymous: better_call0.StrictEndpoint<"/sign-in/anonymous", {
1765
- method: "POST";
1766
- metadata: {
1767
- openapi: {
1768
- description: string;
1769
- responses: {
1770
- 200: {
1771
- description: string;
1772
- content: {
1773
- "application/json": {
1774
- schema: {
1775
- type: "object";
1776
- properties: {
1777
- user: {
1778
- $ref: string;
1779
- };
1780
- session: {
1781
- $ref: string;
1782
- };
1783
- };
1784
- };
1785
- };
1786
- };
1787
- };
1788
- };
1789
- };
1790
- };
1791
- } & {
1792
- use: any[];
1793
- }, {
1794
- token: string;
1795
- user: {
1796
- id: string;
1797
- email: string;
1798
- emailVerified: boolean;
1799
- name: string;
1800
- createdAt: Date;
1801
- updatedAt: Date;
1802
- };
1803
- } | null>;
1804
- };
1805
- hooks: {
1806
- after: {
1807
- matcher(ctx: better_auth460.HookEndpointContext): boolean;
1808
- handler: (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<void>;
1809
- }[];
1810
- };
1811
- schema: {
1812
- user: {
1813
- fields: {
1814
- isAnonymous: {
1815
- type: "boolean";
1816
- required: false;
1817
- input: false;
1818
- defaultValue: false;
1819
- };
1820
- };
1821
- };
1822
- };
1823
- $ERROR_CODES: {
1824
- readonly INVALID_EMAIL_FORMAT: "Email was not generated in a valid format";
1825
- readonly FAILED_TO_CREATE_USER: "Failed to create user";
1826
- readonly COULD_NOT_CREATE_SESSION: "Could not create session";
1827
- readonly ANONYMOUS_USERS_CANNOT_SIGN_IN_AGAIN_ANONYMOUSLY: "Anonymous users cannot sign in again anonymously";
1828
- };
1829
- }>;
1830
- pathMethods: {
1831
- "/sign-in/anonymous": "POST";
1832
- };
1833
- atomListeners: {
1834
- matcher: (path: string) => path is "/sign-in/anonymous";
1835
- signal: "$sessionSignal";
1836
- }[];
1837
1759
  })[];
1838
1760
  type SupportedBetterAuthClientPlugins = typeof supportedBetterAuthClientPlugins;
1839
1761
  declare abstract class NeonAuthAdapterCore {
@@ -1,5 +1,5 @@
1
1
  import { getGlobalBroadcastChannel } from "better-auth/client";
2
- import { adminClient, anonymousClient, emailOTPClient, jwtClient, organizationClient } from "better-auth/client/plugins";
2
+ import { adminClient, emailOTPClient, jwtClient, organizationClient } from "better-auth/client/plugins";
3
3
  import z from "zod";
4
4
 
5
5
  //#region src/core/in-flight-request-manager.ts
@@ -528,7 +528,6 @@ const supportedBetterAuthClientPlugins = [
528
528
  adminClient(),
529
529
  organizationClient(),
530
530
  emailOTPClient(),
531
- anonymousClient(),
532
531
  anonymousTokenClient()
533
532
  ];
534
533
  var NeonAuthAdapterCore = class {