@neondatabase/auth 0.1.0-beta.19 → 0.1.0-beta.20

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.
@@ -1,13 +1,13 @@
1
1
  import { createAuthClient } from "better-auth/react";
2
- import * as better_auth_client23 from "better-auth/client";
2
+ import * as better_auth_client35 from "better-auth/client";
3
3
  import { BetterAuthClientOptions, createAuthClient as createAuthClient$1 } from "better-auth/client";
4
4
  import * as zod0 from "zod";
5
- import * as jose1 from "jose";
6
- import * as better_auth303 from "better-auth";
7
- import * as _better_fetch_fetch177 from "@better-fetch/fetch";
5
+ import * as jose2 from "jose";
6
+ import * as better_auth454 from "better-auth";
7
+ import * as _better_fetch_fetch266 from "@better-fetch/fetch";
8
8
  import { BetterFetchError as BetterFetchError$1 } from "@better-fetch/fetch";
9
- import * as better_auth_plugins11 from "better-auth/plugins";
10
- import * as nanostores1 from "nanostores";
9
+ import * as better_auth_plugins17 from "better-auth/plugins";
10
+ import * as nanostores7 from "nanostores";
11
11
  import * as better_call0 from "better-call";
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";
@@ -28,7 +28,7 @@ declare const supportedBetterAuthClientPlugins: ({
28
28
  pathMethods: {
29
29
  "/token/anonymous": "GET";
30
30
  };
31
- getActions: ($fetch: _better_fetch_fetch177.BetterFetch) => {
31
+ getActions: ($fetch: _better_fetch_fetch266.BetterFetch) => {
32
32
  getAnonymousToken: (fetchOptions?: any) => Promise<{
33
33
  data: {
34
34
  token: string;
@@ -46,9 +46,9 @@ declare const supportedBetterAuthClientPlugins: ({
46
46
  };
47
47
  } | {
48
48
  id: "better-auth-client";
49
- $InferServerPlugin: ReturnType<(options?: better_auth_plugins11.JwtOptions | undefined) => {
49
+ $InferServerPlugin: ReturnType<(options?: better_auth_plugins17.JwtOptions | undefined) => {
50
50
  id: "jwt";
51
- options: better_auth_plugins11.JwtOptions | undefined;
51
+ options: better_auth_plugins17.JwtOptions | undefined;
52
52
  endpoints: {
53
53
  getJwks: better_call0.StrictEndpoint<string, {
54
54
  method: "GET";
@@ -128,7 +128,7 @@ declare const supportedBetterAuthClientPlugins: ({
128
128
  };
129
129
  } & {
130
130
  use: any[];
131
- }, jose1.JSONWebKeySet>;
131
+ }, jose2.JSONWebKeySet>;
132
132
  getToken: better_call0.StrictEndpoint<"/token", {
133
133
  method: "GET";
134
134
  requireHeaders: true;
@@ -189,15 +189,15 @@ declare const supportedBetterAuthClientPlugins: ({
189
189
  SERVER_ONLY: true;
190
190
  $Infer: {
191
191
  body: {
192
- payload: jose1.JWTPayload;
193
- overrideOptions?: better_auth_plugins11.JwtOptions | undefined;
192
+ payload: jose2.JWTPayload;
193
+ overrideOptions?: better_auth_plugins17.JwtOptions | undefined;
194
194
  };
195
195
  };
196
196
  };
197
197
  body: zod0.ZodObject<{
198
198
  payload: zod0.ZodRecord<zod0.ZodString, zod0.ZodAny>;
199
199
  overrideOptions: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodAny>>;
200
- }, better_auth303.$strip>;
200
+ }, better_auth454.$strip>;
201
201
  } & {
202
202
  use: any[];
203
203
  }, {
@@ -224,16 +224,16 @@ declare const supportedBetterAuthClientPlugins: ({
224
224
  body: zod0.ZodObject<{
225
225
  token: zod0.ZodString;
226
226
  issuer: zod0.ZodOptional<zod0.ZodString>;
227
- }, better_auth303.$strip>;
227
+ }, better_auth454.$strip>;
228
228
  } & {
229
229
  use: any[];
230
230
  }, {
231
- payload: (jose1.JWTPayload & Required<Pick<jose1.JWTPayload, "sub" | "aud">>) | null;
231
+ payload: (jose2.JWTPayload & Required<Pick<jose2.JWTPayload, "sub" | "aud">>) | null;
232
232
  }>;
233
233
  };
234
234
  hooks: {
235
235
  after: {
236
- matcher(context: better_auth303.HookEndpointContext): boolean;
236
+ matcher(context: better_auth454.HookEndpointContext): boolean;
237
237
  handler: (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<void>;
238
238
  }[];
239
239
  };
@@ -263,7 +263,7 @@ declare const supportedBetterAuthClientPlugins: ({
263
263
  pathMethods: {
264
264
  [x: string]: "GET";
265
265
  };
266
- getActions: ($fetch: _better_fetch_fetch177.BetterFetch) => {
266
+ getActions: ($fetch: _better_fetch_fetch266.BetterFetch) => {
267
267
  jwks: (fetchOptions?: any) => Promise<{
268
268
  data: null;
269
269
  error: {
@@ -272,7 +272,7 @@ declare const supportedBetterAuthClientPlugins: ({
272
272
  statusText: string;
273
273
  };
274
274
  } | {
275
- data: jose1.JSONWebKeySet;
275
+ data: jose2.JSONWebKeySet;
276
276
  error: null;
277
277
  }>;
278
278
  };
@@ -318,7 +318,7 @@ declare const supportedBetterAuthClientPlugins: ({
318
318
  token: string;
319
319
  ipAddress?: string | null | undefined;
320
320
  userAgent?: string | null | undefined;
321
- } & Record<string, unknown>, ctx: better_auth303.GenericEndpointContext | null): Promise<void>;
321
+ } & Record<string, unknown>, ctx: better_auth454.GenericEndpointContext | null): Promise<void>;
322
322
  };
323
323
  };
324
324
  };
@@ -326,8 +326,8 @@ declare const supportedBetterAuthClientPlugins: ({
326
326
  };
327
327
  hooks: {
328
328
  after: {
329
- matcher(context: better_auth303.HookEndpointContext): boolean;
330
- handler: (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<better_auth_plugins11.SessionWithImpersonatedBy[] | undefined>;
329
+ matcher(context: better_auth454.HookEndpointContext): boolean;
330
+ handler: (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<better_auth_plugins17.SessionWithImpersonatedBy[] | undefined>;
331
331
  }[];
332
332
  };
333
333
  endpoints: {
@@ -336,12 +336,12 @@ declare const supportedBetterAuthClientPlugins: ({
336
336
  body: zod0.ZodObject<{
337
337
  userId: zod0.ZodCoercedString<unknown>;
338
338
  role: zod0.ZodUnion<readonly [zod0.ZodString, zod0.ZodArray<zod0.ZodString>]>;
339
- }, better_auth303.$strip>;
339
+ }, better_auth454.$strip>;
340
340
  requireHeaders: true;
341
341
  use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
342
342
  session: {
343
- user: better_auth_plugins11.UserWithRole;
344
- session: better_auth303.Session;
343
+ user: better_auth_plugins17.UserWithRole;
344
+ session: better_auth454.Session;
345
345
  };
346
346
  }>)[];
347
347
  metadata: {
@@ -377,17 +377,17 @@ declare const supportedBetterAuthClientPlugins: ({
377
377
  } & {
378
378
  use: any[];
379
379
  }, {
380
- user: better_auth_plugins11.UserWithRole;
380
+ user: better_auth_plugins17.UserWithRole;
381
381
  }>;
382
382
  getUser: better_call0.StrictEndpoint<"/admin/get-user", {
383
383
  method: "GET";
384
384
  query: zod0.ZodObject<{
385
385
  id: zod0.ZodString;
386
- }, better_auth303.$strip>;
386
+ }, better_auth454.$strip>;
387
387
  use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
388
388
  session: {
389
- user: better_auth_plugins11.UserWithRole;
390
- session: better_auth303.Session;
389
+ user: better_auth_plugins17.UserWithRole;
390
+ session: better_auth454.Session;
391
391
  };
392
392
  }>)[];
393
393
  metadata: {
@@ -433,7 +433,7 @@ declare const supportedBetterAuthClientPlugins: ({
433
433
  name: zod0.ZodString;
434
434
  role: zod0.ZodOptional<zod0.ZodUnion<readonly [zod0.ZodString, zod0.ZodArray<zod0.ZodString>]>>;
435
435
  data: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodAny>>;
436
- }, better_auth303.$strip>;
436
+ }, better_auth454.$strip>;
437
437
  metadata: {
438
438
  openapi: {
439
439
  operationId: string;
@@ -470,18 +470,18 @@ declare const supportedBetterAuthClientPlugins: ({
470
470
  } & {
471
471
  use: any[];
472
472
  }, {
473
- user: better_auth_plugins11.UserWithRole;
473
+ user: better_auth_plugins17.UserWithRole;
474
474
  }>;
475
475
  adminUpdateUser: better_call0.StrictEndpoint<"/admin/update-user", {
476
476
  method: "POST";
477
477
  body: zod0.ZodObject<{
478
478
  userId: zod0.ZodCoercedString<unknown>;
479
479
  data: zod0.ZodRecord<zod0.ZodAny, zod0.ZodAny>;
480
- }, better_auth303.$strip>;
480
+ }, better_auth454.$strip>;
481
481
  use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
482
482
  session: {
483
- user: better_auth_plugins11.UserWithRole;
484
- session: better_auth303.Session;
483
+ user: better_auth_plugins17.UserWithRole;
484
+ session: better_auth454.Session;
485
485
  };
486
486
  }>)[];
487
487
  metadata: {
@@ -510,13 +510,13 @@ declare const supportedBetterAuthClientPlugins: ({
510
510
  };
511
511
  } & {
512
512
  use: any[];
513
- }, better_auth_plugins11.UserWithRole>;
513
+ }, better_auth_plugins17.UserWithRole>;
514
514
  listUsers: better_call0.StrictEndpoint<"/admin/list-users", {
515
515
  method: "GET";
516
516
  use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
517
517
  session: {
518
- user: better_auth_plugins11.UserWithRole;
519
- session: better_auth303.Session;
518
+ user: better_auth_plugins17.UserWithRole;
519
+ session: better_auth454.Session;
520
520
  };
521
521
  }>)[];
522
522
  query: zod0.ZodObject<{
@@ -548,7 +548,7 @@ declare const supportedBetterAuthClientPlugins: ({
548
548
  gte: "gte";
549
549
  contains: "contains";
550
550
  }>>;
551
- }, better_auth303.$strip>;
551
+ }, better_auth454.$strip>;
552
552
  metadata: {
553
553
  openapi: {
554
554
  operationId: string;
@@ -589,7 +589,7 @@ declare const supportedBetterAuthClientPlugins: ({
589
589
  } & {
590
590
  use: any[];
591
591
  }, {
592
- users: better_auth_plugins11.UserWithRole[];
592
+ users: better_auth_plugins17.UserWithRole[];
593
593
  total: number;
594
594
  limit: number | undefined;
595
595
  offset: number | undefined;
@@ -601,13 +601,13 @@ declare const supportedBetterAuthClientPlugins: ({
601
601
  method: "POST";
602
602
  use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
603
603
  session: {
604
- user: better_auth_plugins11.UserWithRole;
605
- session: better_auth303.Session;
604
+ user: better_auth_plugins17.UserWithRole;
605
+ session: better_auth454.Session;
606
606
  };
607
607
  }>)[];
608
608
  body: zod0.ZodObject<{
609
609
  userId: zod0.ZodCoercedString<unknown>;
610
- }, better_auth303.$strip>;
610
+ }, better_auth454.$strip>;
611
611
  metadata: {
612
612
  openapi: {
613
613
  operationId: string;
@@ -638,17 +638,17 @@ declare const supportedBetterAuthClientPlugins: ({
638
638
  } & {
639
639
  use: any[];
640
640
  }, {
641
- sessions: better_auth_plugins11.SessionWithImpersonatedBy[];
641
+ sessions: better_auth_plugins17.SessionWithImpersonatedBy[];
642
642
  }>;
643
643
  unbanUser: better_call0.StrictEndpoint<"/admin/unban-user", {
644
644
  method: "POST";
645
645
  body: zod0.ZodObject<{
646
646
  userId: zod0.ZodCoercedString<unknown>;
647
- }, better_auth303.$strip>;
647
+ }, better_auth454.$strip>;
648
648
  use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
649
649
  session: {
650
- user: better_auth_plugins11.UserWithRole;
651
- session: better_auth303.Session;
650
+ user: better_auth_plugins17.UserWithRole;
651
+ session: better_auth454.Session;
652
652
  };
653
653
  }>)[];
654
654
  metadata: {
@@ -694,11 +694,11 @@ declare const supportedBetterAuthClientPlugins: ({
694
694
  userId: zod0.ZodCoercedString<unknown>;
695
695
  banReason: zod0.ZodOptional<zod0.ZodString>;
696
696
  banExpiresIn: zod0.ZodOptional<zod0.ZodNumber>;
697
- }, better_auth303.$strip>;
697
+ }, better_auth454.$strip>;
698
698
  use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
699
699
  session: {
700
- user: better_auth_plugins11.UserWithRole;
701
- session: better_auth303.Session;
700
+ user: better_auth_plugins17.UserWithRole;
701
+ session: better_auth454.Session;
702
702
  };
703
703
  }>)[];
704
704
  metadata: {
@@ -742,11 +742,11 @@ declare const supportedBetterAuthClientPlugins: ({
742
742
  method: "POST";
743
743
  body: zod0.ZodObject<{
744
744
  userId: zod0.ZodCoercedString<unknown>;
745
- }, better_auth303.$strip>;
745
+ }, better_auth454.$strip>;
746
746
  use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
747
747
  session: {
748
- user: better_auth_plugins11.UserWithRole;
749
- session: better_auth303.Session;
748
+ user: better_auth_plugins17.UserWithRole;
749
+ session: better_auth454.Session;
750
750
  };
751
751
  }>)[];
752
752
  metadata: {
@@ -789,7 +789,7 @@ declare const supportedBetterAuthClientPlugins: ({
789
789
  ipAddress?: string | null | undefined;
790
790
  userAgent?: string | null | undefined;
791
791
  };
792
- user: better_auth_plugins11.UserWithRole;
792
+ user: better_auth_plugins17.UserWithRole;
793
793
  }>;
794
794
  stopImpersonating: better_call0.StrictEndpoint<"/admin/stop-impersonating", {
795
795
  method: "POST";
@@ -797,18 +797,18 @@ declare const supportedBetterAuthClientPlugins: ({
797
797
  } & {
798
798
  use: any[];
799
799
  }, {
800
- session: better_auth303.Session & Record<string, any>;
801
- user: better_auth303.User & Record<string, any>;
800
+ session: better_auth454.Session & Record<string, any>;
801
+ user: better_auth454.User & Record<string, any>;
802
802
  }>;
803
803
  revokeUserSession: better_call0.StrictEndpoint<"/admin/revoke-user-session", {
804
804
  method: "POST";
805
805
  body: zod0.ZodObject<{
806
806
  sessionToken: zod0.ZodString;
807
- }, better_auth303.$strip>;
807
+ }, better_auth454.$strip>;
808
808
  use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
809
809
  session: {
810
- user: better_auth_plugins11.UserWithRole;
811
- session: better_auth303.Session;
810
+ user: better_auth_plugins17.UserWithRole;
811
+ session: better_auth454.Session;
812
812
  };
813
813
  }>)[];
814
814
  metadata: {
@@ -844,11 +844,11 @@ declare const supportedBetterAuthClientPlugins: ({
844
844
  method: "POST";
845
845
  body: zod0.ZodObject<{
846
846
  userId: zod0.ZodCoercedString<unknown>;
847
- }, better_auth303.$strip>;
847
+ }, better_auth454.$strip>;
848
848
  use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
849
849
  session: {
850
- user: better_auth_plugins11.UserWithRole;
851
- session: better_auth303.Session;
850
+ user: better_auth_plugins17.UserWithRole;
851
+ session: better_auth454.Session;
852
852
  };
853
853
  }>)[];
854
854
  metadata: {
@@ -884,11 +884,11 @@ declare const supportedBetterAuthClientPlugins: ({
884
884
  method: "POST";
885
885
  body: zod0.ZodObject<{
886
886
  userId: zod0.ZodCoercedString<unknown>;
887
- }, better_auth303.$strip>;
887
+ }, better_auth454.$strip>;
888
888
  use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
889
889
  session: {
890
- user: better_auth_plugins11.UserWithRole;
891
- session: better_auth303.Session;
890
+ user: better_auth_plugins17.UserWithRole;
891
+ session: better_auth454.Session;
892
892
  };
893
893
  }>)[];
894
894
  metadata: {
@@ -925,11 +925,11 @@ declare const supportedBetterAuthClientPlugins: ({
925
925
  body: zod0.ZodObject<{
926
926
  newPassword: zod0.ZodString;
927
927
  userId: zod0.ZodCoercedString<unknown>;
928
- }, better_auth303.$strip>;
928
+ }, better_auth454.$strip>;
929
929
  use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
930
930
  session: {
931
- user: better_auth_plugins11.UserWithRole;
932
- session: better_auth303.Session;
931
+ user: better_auth_plugins17.UserWithRole;
932
+ session: better_auth454.Session;
933
933
  };
934
934
  }>)[];
935
935
  metadata: {
@@ -966,13 +966,13 @@ declare const supportedBetterAuthClientPlugins: ({
966
966
  body: zod0.ZodIntersection<zod0.ZodObject<{
967
967
  userId: zod0.ZodOptional<zod0.ZodCoercedString<unknown>>;
968
968
  role: zod0.ZodOptional<zod0.ZodString>;
969
- }, better_auth303.$strip>, zod0.ZodUnion<readonly [zod0.ZodObject<{
969
+ }, better_auth454.$strip>, zod0.ZodUnion<readonly [zod0.ZodObject<{
970
970
  permission: zod0.ZodRecord<zod0.ZodString, zod0.ZodArray<zod0.ZodString>>;
971
971
  permissions: zod0.ZodUndefined;
972
- }, better_auth303.$strip>, zod0.ZodObject<{
972
+ }, better_auth454.$strip>, zod0.ZodObject<{
973
973
  permission: zod0.ZodUndefined;
974
974
  permissions: zod0.ZodRecord<zod0.ZodString, zod0.ZodArray<zod0.ZodString>>;
975
- }, better_auth303.$strip>]>>;
975
+ }, better_auth454.$strip>]>>;
976
976
  metadata: {
977
977
  openapi: {
978
978
  description: string;
@@ -1129,8 +1129,8 @@ declare const supportedBetterAuthClientPlugins: ({
1129
1129
  };
1130
1130
  } | {
1131
1131
  id: "organization";
1132
- $InferServerPlugin: better_auth_client23.OrganizationPlugin<{
1133
- ac: better_auth_client23.AccessControl<{
1132
+ $InferServerPlugin: better_auth_client35.OrganizationPlugin<{
1133
+ ac: better_auth_client35.AccessControl<{
1134
1134
  readonly organization: readonly ["update", "delete"];
1135
1135
  readonly member: readonly ["create", "update", "delete"];
1136
1136
  readonly invitation: readonly ["create", "cancel"];
@@ -1138,9 +1138,9 @@ declare const supportedBetterAuthClientPlugins: ({
1138
1138
  readonly ac: readonly ["create", "read", "update", "delete"];
1139
1139
  }>;
1140
1140
  roles: {
1141
- admin: better_auth_client23.Role;
1142
- member: better_auth_client23.Role;
1143
- owner: better_auth_client23.Role;
1141
+ admin: better_auth_client35.Role;
1142
+ member: better_auth_client35.Role;
1143
+ owner: better_auth_client35.Role;
1144
1144
  };
1145
1145
  teams: {
1146
1146
  enabled: false;
@@ -1148,27 +1148,27 @@ declare const supportedBetterAuthClientPlugins: ({
1148
1148
  schema: {
1149
1149
  organization?: {
1150
1150
  additionalFields?: {
1151
- [key: string]: better_auth303.DBFieldAttribute;
1151
+ [key: string]: better_auth454.DBFieldAttribute;
1152
1152
  };
1153
1153
  };
1154
1154
  member?: {
1155
1155
  additionalFields?: {
1156
- [key: string]: better_auth303.DBFieldAttribute;
1156
+ [key: string]: better_auth454.DBFieldAttribute;
1157
1157
  };
1158
1158
  };
1159
1159
  invitation?: {
1160
1160
  additionalFields?: {
1161
- [key: string]: better_auth303.DBFieldAttribute;
1161
+ [key: string]: better_auth454.DBFieldAttribute;
1162
1162
  };
1163
1163
  };
1164
1164
  team?: {
1165
1165
  additionalFields?: {
1166
- [key: string]: better_auth303.DBFieldAttribute;
1166
+ [key: string]: better_auth454.DBFieldAttribute;
1167
1167
  };
1168
1168
  };
1169
1169
  organizationRole?: {
1170
1170
  additionalFields?: {
1171
- [key: string]: better_auth303.DBFieldAttribute;
1171
+ [key: string]: better_auth454.DBFieldAttribute;
1172
1172
  };
1173
1173
  };
1174
1174
  } | undefined;
@@ -1176,7 +1176,7 @@ declare const supportedBetterAuthClientPlugins: ({
1176
1176
  enabled: false;
1177
1177
  };
1178
1178
  }>;
1179
- getActions: ($fetch: _better_fetch_fetch177.BetterFetch, _$store: better_auth303.ClientStore, co: BetterAuthClientOptions | undefined) => {
1179
+ getActions: ($fetch: _better_fetch_fetch266.BetterFetch, _$store: better_auth454.ClientStore, co: BetterAuthClientOptions | undefined) => {
1180
1180
  $Infer: {
1181
1181
  ActiveOrganization: {
1182
1182
  members: {
@@ -1197,7 +1197,7 @@ declare const supportedBetterAuthClientPlugins: ({
1197
1197
  organizationId: string;
1198
1198
  email: string;
1199
1199
  role: "admin" | "member" | "owner";
1200
- status: better_auth_client23.InvitationStatus;
1200
+ status: better_auth_client35.InvitationStatus;
1201
1201
  inviterId: string;
1202
1202
  expiresAt: Date;
1203
1203
  createdAt: Date;
@@ -1223,7 +1223,7 @@ declare const supportedBetterAuthClientPlugins: ({
1223
1223
  organizationId: string;
1224
1224
  email: string;
1225
1225
  role: "admin" | "member" | "owner";
1226
- status: better_auth_client23.InvitationStatus;
1226
+ status: better_auth_client35.InvitationStatus;
1227
1227
  inviterId: string;
1228
1228
  expiresAt: Date;
1229
1229
  createdAt: Date;
@@ -1273,13 +1273,13 @@ declare const supportedBetterAuthClientPlugins: ({
1273
1273
  }) => boolean;
1274
1274
  };
1275
1275
  };
1276
- getAtoms: ($fetch: _better_fetch_fetch177.BetterFetch) => {
1277
- $listOrg: nanostores1.PreinitializedWritableAtom<boolean> & object;
1278
- $activeOrgSignal: nanostores1.PreinitializedWritableAtom<boolean> & object;
1279
- $activeMemberSignal: nanostores1.PreinitializedWritableAtom<boolean> & object;
1280
- $activeMemberRoleSignal: nanostores1.PreinitializedWritableAtom<boolean> & object;
1281
- activeOrganization: nanostores1.PreinitializedWritableAtom<{
1282
- data: better_auth303.Prettify<{
1276
+ getAtoms: ($fetch: _better_fetch_fetch266.BetterFetch) => {
1277
+ $listOrg: nanostores7.PreinitializedWritableAtom<boolean> & object;
1278
+ $activeOrgSignal: nanostores7.PreinitializedWritableAtom<boolean> & object;
1279
+ $activeMemberSignal: nanostores7.PreinitializedWritableAtom<boolean> & object;
1280
+ $activeMemberRoleSignal: nanostores7.PreinitializedWritableAtom<boolean> & object;
1281
+ activeOrganization: nanostores7.PreinitializedWritableAtom<{
1282
+ data: better_auth454.Prettify<{
1283
1283
  id: string;
1284
1284
  name: string;
1285
1285
  slug: string;
@@ -1305,20 +1305,20 @@ declare const supportedBetterAuthClientPlugins: ({
1305
1305
  organizationId: string;
1306
1306
  email: string;
1307
1307
  role: "admin" | "member" | "owner";
1308
- status: better_auth_client23.InvitationStatus;
1308
+ status: better_auth_client35.InvitationStatus;
1309
1309
  inviterId: string;
1310
1310
  expiresAt: Date;
1311
1311
  createdAt: Date;
1312
1312
  }[];
1313
1313
  }> | null;
1314
- error: null | _better_fetch_fetch177.BetterFetchError;
1314
+ error: null | _better_fetch_fetch266.BetterFetchError;
1315
1315
  isPending: boolean;
1316
1316
  isRefetching: boolean;
1317
1317
  refetch: (queryParams?: {
1318
- query?: better_auth303.SessionQueryParams;
1318
+ query?: better_auth454.SessionQueryParams;
1319
1319
  } | undefined) => Promise<void>;
1320
1320
  }> & object;
1321
- listOrganizations: nanostores1.PreinitializedWritableAtom<{
1321
+ listOrganizations: nanostores7.PreinitializedWritableAtom<{
1322
1322
  data: {
1323
1323
  id: string;
1324
1324
  name: string;
@@ -1327,14 +1327,14 @@ declare const supportedBetterAuthClientPlugins: ({
1327
1327
  logo?: string | null | undefined | undefined;
1328
1328
  metadata?: any;
1329
1329
  }[] | null;
1330
- error: null | _better_fetch_fetch177.BetterFetchError;
1330
+ error: null | _better_fetch_fetch266.BetterFetchError;
1331
1331
  isPending: boolean;
1332
1332
  isRefetching: boolean;
1333
1333
  refetch: (queryParams?: {
1334
- query?: better_auth303.SessionQueryParams;
1334
+ query?: better_auth454.SessionQueryParams;
1335
1335
  } | undefined) => Promise<void>;
1336
1336
  }> & object;
1337
- activeMember: nanostores1.PreinitializedWritableAtom<{
1337
+ activeMember: nanostores7.PreinitializedWritableAtom<{
1338
1338
  data: {
1339
1339
  id: string;
1340
1340
  organizationId: string;
@@ -1342,22 +1342,22 @@ declare const supportedBetterAuthClientPlugins: ({
1342
1342
  role: string;
1343
1343
  createdAt: Date;
1344
1344
  } | null;
1345
- error: null | _better_fetch_fetch177.BetterFetchError;
1345
+ error: null | _better_fetch_fetch266.BetterFetchError;
1346
1346
  isPending: boolean;
1347
1347
  isRefetching: boolean;
1348
1348
  refetch: (queryParams?: {
1349
- query?: better_auth303.SessionQueryParams;
1349
+ query?: better_auth454.SessionQueryParams;
1350
1350
  } | undefined) => Promise<void>;
1351
1351
  }> & object;
1352
- activeMemberRole: nanostores1.PreinitializedWritableAtom<{
1352
+ activeMemberRole: nanostores7.PreinitializedWritableAtom<{
1353
1353
  data: {
1354
1354
  role: string;
1355
1355
  } | null;
1356
- error: null | _better_fetch_fetch177.BetterFetchError;
1356
+ error: null | _better_fetch_fetch266.BetterFetchError;
1357
1357
  isPending: boolean;
1358
1358
  isRefetching: boolean;
1359
1359
  refetch: (queryParams?: {
1360
- query?: better_auth303.SessionQueryParams;
1360
+ query?: better_auth454.SessionQueryParams;
1361
1361
  } | undefined) => Promise<void>;
1362
1362
  }> & object;
1363
1363
  };
@@ -1383,13 +1383,13 @@ declare const supportedBetterAuthClientPlugins: ({
1383
1383
  })[];
1384
1384
  } | {
1385
1385
  id: "email-otp";
1386
- $InferServerPlugin: ReturnType<(options: better_auth_plugins11.EmailOTPOptions) => {
1386
+ $InferServerPlugin: ReturnType<(options: better_auth_plugins17.EmailOTPOptions) => {
1387
1387
  id: "email-otp";
1388
- init(ctx: better_auth303.AuthContext): {
1388
+ init(ctx: better_auth454.AuthContext): {
1389
1389
  options: {
1390
1390
  emailVerification: {
1391
1391
  sendVerificationEmail(data: {
1392
- user: better_auth303.User;
1392
+ user: better_auth454.User;
1393
1393
  url: string;
1394
1394
  token: string;
1395
1395
  }, request: Request | undefined): Promise<void>;
@@ -1406,7 +1406,7 @@ declare const supportedBetterAuthClientPlugins: ({
1406
1406
  "email-verification": "email-verification";
1407
1407
  "forget-password": "forget-password";
1408
1408
  }>;
1409
- }, better_auth303.$strip>;
1409
+ }, better_auth454.$strip>;
1410
1410
  metadata: {
1411
1411
  openapi: {
1412
1412
  operationId: string;
@@ -1444,7 +1444,7 @@ declare const supportedBetterAuthClientPlugins: ({
1444
1444
  "email-verification": "email-verification";
1445
1445
  "forget-password": "forget-password";
1446
1446
  }>;
1447
- }, better_auth303.$strip>;
1447
+ }, better_auth454.$strip>;
1448
1448
  metadata: {
1449
1449
  SERVER_ONLY: true;
1450
1450
  openapi: {
@@ -1476,7 +1476,7 @@ declare const supportedBetterAuthClientPlugins: ({
1476
1476
  "email-verification": "email-verification";
1477
1477
  "forget-password": "forget-password";
1478
1478
  }>;
1479
- }, better_auth303.$strip>;
1479
+ }, better_auth454.$strip>;
1480
1480
  metadata: {
1481
1481
  SERVER_ONLY: true;
1482
1482
  openapi: {
@@ -1521,7 +1521,7 @@ declare const supportedBetterAuthClientPlugins: ({
1521
1521
  "forget-password": "forget-password";
1522
1522
  }>;
1523
1523
  otp: zod0.ZodString;
1524
- }, better_auth303.$strip>;
1524
+ }, better_auth454.$strip>;
1525
1525
  metadata: {
1526
1526
  openapi: {
1527
1527
  operationId: string;
@@ -1555,7 +1555,7 @@ declare const supportedBetterAuthClientPlugins: ({
1555
1555
  body: zod0.ZodObject<{
1556
1556
  email: zod0.ZodString;
1557
1557
  otp: zod0.ZodString;
1558
- }, better_auth303.$strip>;
1558
+ }, better_auth454.$strip>;
1559
1559
  metadata: {
1560
1560
  openapi: {
1561
1561
  description: string;
@@ -1621,7 +1621,7 @@ declare const supportedBetterAuthClientPlugins: ({
1621
1621
  body: zod0.ZodObject<{
1622
1622
  email: zod0.ZodString;
1623
1623
  otp: zod0.ZodString;
1624
- }, better_auth303.$strip>;
1624
+ }, better_auth454.$strip>;
1625
1625
  metadata: {
1626
1626
  openapi: {
1627
1627
  operationId: string;
@@ -1668,7 +1668,7 @@ declare const supportedBetterAuthClientPlugins: ({
1668
1668
  method: "POST";
1669
1669
  body: zod0.ZodObject<{
1670
1670
  email: zod0.ZodString;
1671
- }, better_auth303.$strip>;
1671
+ }, better_auth454.$strip>;
1672
1672
  metadata: {
1673
1673
  openapi: {
1674
1674
  operationId: string;
@@ -1704,7 +1704,7 @@ declare const supportedBetterAuthClientPlugins: ({
1704
1704
  email: zod0.ZodString;
1705
1705
  otp: zod0.ZodString;
1706
1706
  password: zod0.ZodString;
1707
- }, better_auth303.$strip>;
1707
+ }, better_auth454.$strip>;
1708
1708
  metadata: {
1709
1709
  openapi: {
1710
1710
  operationId: string;
@@ -1736,7 +1736,7 @@ declare const supportedBetterAuthClientPlugins: ({
1736
1736
  };
1737
1737
  hooks: {
1738
1738
  after: {
1739
- matcher(context: better_auth303.HookEndpointContext): boolean;
1739
+ matcher(context: better_auth454.HookEndpointContext): boolean;
1740
1740
  handler: (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<void>;
1741
1741
  }[];
1742
1742
  };