@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,25 +1,22 @@
1
- import { n as NeonAuthAdapterCoreAuthOptions, r as SupportedBetterAuthClientPlugins, t as NeonAuthAdapterCore } from "./adapter-core-CiZ94eSH.mjs";
2
- import * as better_auth_client31 from "better-auth/client";
3
- import { createAuthClient } from "better-auth/client";
4
- import * as _supabase_auth_js0 from "@supabase/auth-js";
5
- import { AuthClient, JwtHeader, JwtPayload } from "@supabase/auth-js";
6
- import * as jose6 from "jose";
7
- import * as better_auth360 from "better-auth";
8
- import * as _better_fetch_fetch185 from "@better-fetch/fetch";
9
- import * as better_auth_plugins34 from "better-auth/plugins";
10
- import * as nanostores9 from "nanostores";
1
+ import { n as NeonAuthAdapterCoreAuthOptions, t as NeonAuthAdapterCore } from "./adapter-core-23fYTUxT.mjs";
2
+ import * as better_auth_client23 from "better-auth/client";
3
+ import * as jose1 from "jose";
4
+ import * as better_auth302 from "better-auth";
5
+ import * as _better_fetch_fetch177 from "@better-fetch/fetch";
6
+ import * as better_auth_plugins11 from "better-auth/plugins";
7
+ import * as nanostores6 from "nanostores";
11
8
 
12
- //#region src/adapters/better-auth-vanilla/better-auth-vanilla-adapter.d.ts
13
- type BetterAuthVanillaAdapterOptions = Omit<NeonAuthAdapterCoreAuthOptions, 'baseURL'>;
9
+ //#region src/adapters/better-auth-react/better-auth-react-adapter.d.ts
10
+ type BetterAuthReactAdapterOptions = Omit<NeonAuthAdapterCoreAuthOptions, 'baseURL'>;
14
11
  /**
15
- * Internal implementation class - use BetterAuthVanillaAdapter factory function instead
12
+ * Internal implementation class - use BetterAuthReactAdapter factory function instead
16
13
  */
17
- declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
14
+ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
18
15
  private _betterAuth;
19
16
  constructor(betterAuthClientOptions: NeonAuthAdapterCoreAuthOptions);
20
17
  getBetterAuthInstance(): {
21
- useActiveOrganization: nanostores9.PreinitializedWritableAtom<{
22
- data: better_auth360.Prettify<{
18
+ useActiveOrganization: () => {
19
+ data: better_auth302.Prettify<{
23
20
  id: string;
24
21
  name: string;
25
22
  slug: string;
@@ -45,20 +42,20 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
45
42
  organizationId: string;
46
43
  email: string;
47
44
  role: "admin" | "member" | "owner";
48
- status: better_auth_client31.InvitationStatus;
45
+ status: better_auth_client23.InvitationStatus;
49
46
  inviterId: string;
50
47
  expiresAt: Date;
51
48
  createdAt: Date;
52
49
  }[];
53
50
  }> | null;
54
- error: null | _better_fetch_fetch185.BetterFetchError;
51
+ error: null | _better_fetch_fetch177.BetterFetchError;
55
52
  isPending: boolean;
56
53
  isRefetching: boolean;
57
54
  refetch: (queryParams?: {
58
- query?: better_auth360.SessionQueryParams;
55
+ query?: better_auth302.SessionQueryParams;
59
56
  } | undefined) => Promise<void>;
60
- }> & object;
61
- useListOrganizations: nanostores9.PreinitializedWritableAtom<{
57
+ };
58
+ useListOrganizations: () => {
62
59
  data: {
63
60
  id: string;
64
61
  name: string;
@@ -67,14 +64,14 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
67
64
  logo?: string | null | undefined | undefined;
68
65
  metadata?: any;
69
66
  }[] | null;
70
- error: null | _better_fetch_fetch185.BetterFetchError;
67
+ error: null | _better_fetch_fetch177.BetterFetchError;
71
68
  isPending: boolean;
72
69
  isRefetching: boolean;
73
70
  refetch: (queryParams?: {
74
- query?: better_auth360.SessionQueryParams;
71
+ query?: better_auth302.SessionQueryParams;
75
72
  } | undefined) => Promise<void>;
76
- }> & object;
77
- useActiveMember: nanostores9.PreinitializedWritableAtom<{
73
+ };
74
+ useActiveMember: () => {
78
75
  data: {
79
76
  id: string;
80
77
  organizationId: string;
@@ -82,29 +79,29 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
82
79
  role: string;
83
80
  createdAt: Date;
84
81
  } | null;
85
- error: null | _better_fetch_fetch185.BetterFetchError;
82
+ error: null | _better_fetch_fetch177.BetterFetchError;
86
83
  isPending: boolean;
87
84
  isRefetching: boolean;
88
85
  refetch: (queryParams?: {
89
- query?: better_auth360.SessionQueryParams;
86
+ query?: better_auth302.SessionQueryParams;
90
87
  } | undefined) => Promise<void>;
91
- }> & object;
92
- useActiveMemberRole: nanostores9.PreinitializedWritableAtom<{
88
+ };
89
+ useActiveMemberRole: () => {
93
90
  data: {
94
91
  role: string;
95
92
  } | null;
96
- error: null | _better_fetch_fetch185.BetterFetchError;
93
+ error: null | _better_fetch_fetch177.BetterFetchError;
97
94
  isPending: boolean;
98
95
  isRefetching: boolean;
99
96
  refetch: (queryParams?: {
100
- query?: better_auth360.SessionQueryParams;
97
+ query?: better_auth302.SessionQueryParams;
101
98
  } | undefined) => Promise<void>;
102
- }> & object;
99
+ };
103
100
  } & {
104
- token: <FetchOptions extends better_auth360.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth360.Prettify<{
101
+ token: <FetchOptions extends better_auth302.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth302.Prettify<{
105
102
  query?: Record<string, any> | undefined;
106
103
  fetchOptions?: FetchOptions | undefined;
107
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
104
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
108
105
  token: string;
109
106
  }, {
110
107
  code?: string | undefined;
@@ -112,16 +109,16 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
112
109
  }, FetchOptions["throw"] extends true ? true : false>>;
113
110
  } & {
114
111
  admin: {
115
- setRole: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
112
+ setRole: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
116
113
  userId: string;
117
114
  role: "user" | "admin" | ("user" | "admin")[];
118
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
115
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
119
116
  userId: string;
120
117
  role: "user" | "admin" | ("user" | "admin")[];
121
118
  } & {
122
119
  fetchOptions?: FetchOptions | undefined;
123
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
124
- user: better_auth_plugins34.UserWithRole;
120
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
121
+ user: better_auth_plugins11.UserWithRole;
125
122
  }, {
126
123
  code?: string | undefined;
127
124
  message?: string | undefined;
@@ -129,14 +126,14 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
129
126
  };
130
127
  } & {
131
128
  admin: {
132
- getUser: <FetchOptions extends better_auth360.ClientFetchOption<never, Partial<{
129
+ getUser: <FetchOptions extends better_auth302.ClientFetchOption<never, Partial<{
133
130
  id: string;
134
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
131
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
135
132
  query: {
136
133
  id: string;
137
134
  };
138
135
  fetchOptions?: FetchOptions | undefined;
139
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
136
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
140
137
  id: string;
141
138
  createdAt: Date;
142
139
  updatedAt: Date;
@@ -151,13 +148,13 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
151
148
  };
152
149
  } & {
153
150
  admin: {
154
- createUser: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
151
+ createUser: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
155
152
  email: string;
156
153
  password: string;
157
154
  name: string;
158
155
  role?: "user" | "admin" | ("user" | "admin")[] | undefined;
159
156
  data?: Record<string, any> | undefined;
160
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
157
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
161
158
  email: string;
162
159
  password: string;
163
160
  name: string;
@@ -165,8 +162,8 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
165
162
  data?: Record<string, any> | undefined;
166
163
  } & {
167
164
  fetchOptions?: FetchOptions | undefined;
168
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
169
- user: better_auth_plugins34.UserWithRole;
165
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
166
+ user: better_auth_plugins11.UserWithRole;
170
167
  }, {
171
168
  code?: string | undefined;
172
169
  message?: string | undefined;
@@ -174,22 +171,22 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
174
171
  };
175
172
  } & {
176
173
  admin: {
177
- updateUser: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
174
+ updateUser: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
178
175
  userId: unknown;
179
176
  data: Record<any, any>;
180
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
177
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
181
178
  userId: unknown;
182
179
  data: Record<any, any>;
183
180
  } & {
184
181
  fetchOptions?: FetchOptions | undefined;
185
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<better_auth_plugins34.UserWithRole, {
182
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<better_auth_plugins11.UserWithRole, {
186
183
  code?: string | undefined;
187
184
  message?: string | undefined;
188
185
  }, FetchOptions["throw"] extends true ? true : false>>;
189
186
  };
190
187
  } & {
191
188
  admin: {
192
- listUsers: <FetchOptions extends better_auth360.ClientFetchOption<never, Partial<{
189
+ listUsers: <FetchOptions extends better_auth302.ClientFetchOption<never, Partial<{
193
190
  searchValue?: string | undefined;
194
191
  searchField?: "email" | "name" | undefined;
195
192
  searchOperator?: "contains" | "starts_with" | "ends_with" | undefined;
@@ -200,7 +197,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
200
197
  filterField?: string | undefined;
201
198
  filterValue?: string | number | boolean | undefined;
202
199
  filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
203
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
200
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
204
201
  query: {
205
202
  searchValue?: string | undefined;
206
203
  searchField?: "email" | "name" | undefined;
@@ -214,8 +211,8 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
214
211
  filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
215
212
  };
216
213
  fetchOptions?: FetchOptions | undefined;
217
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<NonNullable<{
218
- users: better_auth_plugins34.UserWithRole[];
214
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<NonNullable<{
215
+ users: better_auth_plugins11.UserWithRole[];
219
216
  total: number;
220
217
  limit: number | undefined;
221
218
  offset: number | undefined;
@@ -229,14 +226,14 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
229
226
  };
230
227
  } & {
231
228
  admin: {
232
- listUserSessions: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
229
+ listUserSessions: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
233
230
  userId: unknown;
234
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
231
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
235
232
  userId: unknown;
236
233
  } & {
237
234
  fetchOptions?: FetchOptions | undefined;
238
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
239
- sessions: better_auth_plugins34.SessionWithImpersonatedBy[];
235
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
236
+ sessions: better_auth_plugins11.SessionWithImpersonatedBy[];
240
237
  }, {
241
238
  code?: string | undefined;
242
239
  message?: string | undefined;
@@ -244,13 +241,13 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
244
241
  };
245
242
  } & {
246
243
  admin: {
247
- unbanUser: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
244
+ unbanUser: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
248
245
  userId: unknown;
249
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
246
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
250
247
  userId: unknown;
251
248
  } & {
252
249
  fetchOptions?: FetchOptions | undefined;
253
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
250
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
254
251
  user: {
255
252
  id: string;
256
253
  createdAt: Date;
@@ -267,17 +264,17 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
267
264
  };
268
265
  } & {
269
266
  admin: {
270
- banUser: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
267
+ banUser: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
271
268
  userId: unknown;
272
269
  banReason?: string | undefined;
273
270
  banExpiresIn?: number | undefined;
274
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
271
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
275
272
  userId: unknown;
276
273
  banReason?: string | undefined;
277
274
  banExpiresIn?: number | undefined;
278
275
  } & {
279
276
  fetchOptions?: FetchOptions | undefined;
280
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
277
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
281
278
  user: {
282
279
  id: string;
283
280
  createdAt: Date;
@@ -294,13 +291,13 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
294
291
  };
295
292
  } & {
296
293
  admin: {
297
- impersonateUser: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
294
+ impersonateUser: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
298
295
  userId: unknown;
299
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
296
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
300
297
  userId: unknown;
301
298
  } & {
302
299
  fetchOptions?: FetchOptions | undefined;
303
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
300
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
304
301
  session: {
305
302
  id: string;
306
303
  createdAt: Date;
@@ -311,7 +308,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
311
308
  ipAddress?: string | null | undefined;
312
309
  userAgent?: string | null | undefined;
313
310
  };
314
- user: better_auth_plugins34.UserWithRole;
311
+ user: better_auth_plugins11.UserWithRole;
315
312
  }, {
316
313
  code?: string | undefined;
317
314
  message?: string | undefined;
@@ -319,12 +316,12 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
319
316
  };
320
317
  } & {
321
318
  admin: {
322
- stopImpersonating: <FetchOptions extends better_auth360.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth360.Prettify<{
319
+ stopImpersonating: <FetchOptions extends better_auth302.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth302.Prettify<{
323
320
  query?: Record<string, any> | undefined;
324
321
  fetchOptions?: FetchOptions | undefined;
325
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
326
- session: better_auth360.Session & Record<string, any>;
327
- user: better_auth360.User & Record<string, any>;
322
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
323
+ session: better_auth302.Session & Record<string, any>;
324
+ user: better_auth302.User & Record<string, any>;
328
325
  }, {
329
326
  code?: string | undefined;
330
327
  message?: string | undefined;
@@ -332,13 +329,13 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
332
329
  };
333
330
  } & {
334
331
  admin: {
335
- revokeUserSession: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
332
+ revokeUserSession: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
336
333
  sessionToken: string;
337
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
334
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
338
335
  sessionToken: string;
339
336
  } & {
340
337
  fetchOptions?: FetchOptions | undefined;
341
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
338
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
342
339
  success: boolean;
343
340
  }, {
344
341
  code?: string | undefined;
@@ -347,13 +344,13 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
347
344
  };
348
345
  } & {
349
346
  admin: {
350
- revokeUserSessions: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
347
+ revokeUserSessions: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
351
348
  userId: unknown;
352
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
349
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
353
350
  userId: unknown;
354
351
  } & {
355
352
  fetchOptions?: FetchOptions | undefined;
356
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
353
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
357
354
  success: boolean;
358
355
  }, {
359
356
  code?: string | undefined;
@@ -362,13 +359,13 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
362
359
  };
363
360
  } & {
364
361
  admin: {
365
- removeUser: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
362
+ removeUser: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
366
363
  userId: unknown;
367
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
364
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
368
365
  userId: unknown;
369
366
  } & {
370
367
  fetchOptions?: FetchOptions | undefined;
371
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
368
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
372
369
  success: boolean;
373
370
  }, {
374
371
  code?: string | undefined;
@@ -377,15 +374,15 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
377
374
  };
378
375
  } & {
379
376
  admin: {
380
- setUserPassword: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
377
+ setUserPassword: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
381
378
  newPassword: string;
382
379
  userId: unknown;
383
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
380
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
384
381
  newPassword: string;
385
382
  userId: unknown;
386
383
  } & {
387
384
  fetchOptions?: FetchOptions | undefined;
388
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
385
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
389
386
  status: boolean;
390
387
  }, {
391
388
  code?: string | undefined;
@@ -394,7 +391,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
394
391
  };
395
392
  } & {
396
393
  admin: {
397
- hasPermission: <FetchOptions extends better_auth360.ClientFetchOption<Partial<({
394
+ hasPermission: <FetchOptions extends better_auth302.ClientFetchOption<Partial<({
398
395
  permission: {
399
396
  readonly user?: ("get" | "delete" | "create" | "list" | "set-role" | "ban" | "impersonate" | "set-password" | "update")[] | undefined;
400
397
  readonly session?: ("delete" | "list" | "revoke")[] | undefined;
@@ -409,7 +406,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
409
406
  }) & {
410
407
  userId?: string | undefined;
411
408
  role?: "user" | "admin" | undefined;
412
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<(({
409
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<(({
413
410
  permission: {
414
411
  readonly user?: ("get" | "delete" | "create" | "list" | "set-role" | "ban" | "impersonate" | "set-password" | "update")[] | undefined;
415
412
  readonly session?: ("delete" | "list" | "revoke")[] | undefined;
@@ -426,7 +423,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
426
423
  role?: "user" | "admin" | undefined;
427
424
  }) & {
428
425
  fetchOptions?: FetchOptions | undefined;
429
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
426
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
430
427
  error: null;
431
428
  success: boolean;
432
429
  }, {
@@ -436,14 +433,14 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
436
433
  };
437
434
  } & {
438
435
  organization: {
439
- create: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
436
+ create: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
440
437
  name: string;
441
438
  slug: string;
442
439
  userId?: string | undefined;
443
440
  logo?: string | undefined;
444
441
  metadata?: Record<string, any> | undefined;
445
442
  keepCurrentActiveOrganization?: boolean | undefined;
446
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
443
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
447
444
  name: string;
448
445
  slug: string;
449
446
  userId?: string | undefined;
@@ -452,7 +449,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
452
449
  keepCurrentActiveOrganization?: boolean | undefined;
453
450
  } & {
454
451
  fetchOptions?: FetchOptions | undefined;
455
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
452
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
456
453
  id: string;
457
454
  name: string;
458
455
  slug: string;
@@ -475,7 +472,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
475
472
  };
476
473
  } & {
477
474
  organization: {
478
- update: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
475
+ update: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
479
476
  data: {
480
477
  name?: string | undefined;
481
478
  slug?: string | undefined;
@@ -483,7 +480,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
483
480
  metadata?: Record<string, any> | undefined;
484
481
  } & Partial<{}>;
485
482
  organizationId?: string | undefined;
486
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
483
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
487
484
  data: {
488
485
  name?: string | undefined;
489
486
  slug?: string | undefined;
@@ -493,7 +490,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
493
490
  organizationId?: string | undefined;
494
491
  } & {
495
492
  fetchOptions?: FetchOptions | undefined;
496
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
493
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
497
494
  id: string;
498
495
  name: string;
499
496
  slug: string;
@@ -509,13 +506,13 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
509
506
  };
510
507
  } & {
511
508
  organization: {
512
- delete: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
509
+ delete: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
513
510
  organizationId: string;
514
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
511
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
515
512
  organizationId: string;
516
513
  } & {
517
514
  fetchOptions?: FetchOptions | undefined;
518
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
515
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
519
516
  id: string;
520
517
  name: string;
521
518
  slug: string;
@@ -529,15 +526,15 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
529
526
  };
530
527
  } & {
531
528
  organization: {
532
- setActive: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
529
+ setActive: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
533
530
  organizationId?: string | null | undefined;
534
531
  organizationSlug?: string | undefined;
535
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth360.Prettify<{
532
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth302.Prettify<{
536
533
  organizationId?: string | null | undefined;
537
534
  organizationSlug?: string | undefined;
538
535
  } & {
539
536
  fetchOptions?: FetchOptions | undefined;
540
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
537
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
541
538
  members: {
542
539
  id: string;
543
540
  organizationId: string;
@@ -556,7 +553,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
556
553
  organizationId: string;
557
554
  email: string;
558
555
  role: "admin" | "member" | "owner";
559
- status: better_auth_client31.InvitationStatus;
556
+ status: better_auth_client23.InvitationStatus;
560
557
  inviterId: string;
561
558
  expiresAt: Date;
562
559
  createdAt: Date;
@@ -575,18 +572,18 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
575
572
  };
576
573
  } & {
577
574
  organization: {
578
- getFullOrganization: <FetchOptions extends better_auth360.ClientFetchOption<never, Partial<{
575
+ getFullOrganization: <FetchOptions extends better_auth302.ClientFetchOption<never, Partial<{
579
576
  organizationId?: string | undefined;
580
577
  organizationSlug?: string | undefined;
581
578
  membersLimit?: string | number | undefined;
582
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth360.Prettify<{
579
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth302.Prettify<{
583
580
  query?: {
584
581
  organizationId?: string | undefined;
585
582
  organizationSlug?: string | undefined;
586
583
  membersLimit?: string | number | undefined;
587
584
  } | undefined;
588
585
  fetchOptions?: FetchOptions | undefined;
589
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
586
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
590
587
  members: {
591
588
  id: string;
592
589
  organizationId: string;
@@ -605,7 +602,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
605
602
  organizationId: string;
606
603
  email: string;
607
604
  role: "admin" | "member" | "owner";
608
- status: better_auth_client31.InvitationStatus;
605
+ status: better_auth_client23.InvitationStatus;
609
606
  inviterId: string;
610
607
  expiresAt: Date;
611
608
  createdAt: Date;
@@ -624,10 +621,10 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
624
621
  };
625
622
  } & {
626
623
  organization: {
627
- list: <FetchOptions extends better_auth360.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth360.Prettify<{
624
+ list: <FetchOptions extends better_auth302.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth302.Prettify<{
628
625
  query?: Record<string, any> | undefined;
629
626
  fetchOptions?: FetchOptions | undefined;
630
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
627
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
631
628
  id: string;
632
629
  name: string;
633
630
  slug: string;
@@ -641,24 +638,24 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
641
638
  };
642
639
  } & {
643
640
  organization: {
644
- inviteMember: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
641
+ inviteMember: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
645
642
  email: string;
646
643
  role: "admin" | "member" | "owner" | ("admin" | "member" | "owner")[];
647
644
  organizationId?: string | undefined;
648
645
  resend?: boolean | undefined;
649
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
646
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
650
647
  email: string;
651
648
  role: "admin" | "member" | "owner" | ("admin" | "member" | "owner")[];
652
649
  organizationId?: string | undefined;
653
650
  resend?: boolean | undefined;
654
651
  } & {
655
652
  fetchOptions?: FetchOptions | undefined;
656
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
653
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
657
654
  id: string;
658
655
  organizationId: string;
659
656
  email: string;
660
657
  role: "admin" | "member" | "owner";
661
- status: better_auth_client31.InvitationStatus;
658
+ status: better_auth_client23.InvitationStatus;
662
659
  inviterId: string;
663
660
  expiresAt: Date;
664
661
  createdAt: Date;
@@ -669,18 +666,18 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
669
666
  };
670
667
  } & {
671
668
  organization: {
672
- cancelInvitation: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
669
+ cancelInvitation: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
673
670
  invitationId: string;
674
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
671
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
675
672
  invitationId: string;
676
673
  } & {
677
674
  fetchOptions?: FetchOptions | undefined;
678
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
675
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
679
676
  id: string;
680
677
  organizationId: string;
681
678
  email: string;
682
679
  role: "admin" | "member" | "owner";
683
- status: better_auth_client31.InvitationStatus;
680
+ status: better_auth_client23.InvitationStatus;
684
681
  inviterId: string;
685
682
  expiresAt: Date;
686
683
  createdAt: Date;
@@ -691,19 +688,19 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
691
688
  };
692
689
  } & {
693
690
  organization: {
694
- acceptInvitation: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
691
+ acceptInvitation: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
695
692
  invitationId: string;
696
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
693
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
697
694
  invitationId: string;
698
695
  } & {
699
696
  fetchOptions?: FetchOptions | undefined;
700
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
697
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
701
698
  invitation: {
702
699
  id: string;
703
700
  organizationId: string;
704
701
  email: string;
705
702
  role: "admin" | "member" | "owner";
706
- status: better_auth_client31.InvitationStatus;
703
+ status: better_auth_client23.InvitationStatus;
707
704
  inviterId: string;
708
705
  expiresAt: Date;
709
706
  createdAt: Date;
@@ -722,19 +719,19 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
722
719
  };
723
720
  } & {
724
721
  organization: {
725
- getInvitation: <FetchOptions extends better_auth360.ClientFetchOption<never, Partial<{
722
+ getInvitation: <FetchOptions extends better_auth302.ClientFetchOption<never, Partial<{
726
723
  id: string;
727
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
724
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
728
725
  query: {
729
726
  id: string;
730
727
  };
731
728
  fetchOptions?: FetchOptions | undefined;
732
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<NonNullable<{
729
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<NonNullable<{
733
730
  id: string;
734
731
  organizationId: string;
735
732
  email: string;
736
733
  role: "admin" | "member" | "owner";
737
- status: better_auth_client31.InvitationStatus;
734
+ status: better_auth_client23.InvitationStatus;
738
735
  inviterId: string;
739
736
  expiresAt: Date;
740
737
  createdAt: Date;
@@ -749,19 +746,19 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
749
746
  };
750
747
  } & {
751
748
  organization: {
752
- rejectInvitation: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
749
+ rejectInvitation: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
753
750
  invitationId: string;
754
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
751
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
755
752
  invitationId: string;
756
753
  } & {
757
754
  fetchOptions?: FetchOptions | undefined;
758
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
755
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
759
756
  invitation: {
760
757
  id: string;
761
758
  organizationId: string;
762
759
  email: string;
763
760
  role: "member" | "admin" | "owner";
764
- status: better_auth_client31.InvitationStatus;
761
+ status: better_auth_client23.InvitationStatus;
765
762
  inviterId: string;
766
763
  expiresAt: Date;
767
764
  createdAt: Date;
@@ -774,19 +771,19 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
774
771
  };
775
772
  } & {
776
773
  organization: {
777
- listInvitations: <FetchOptions extends better_auth360.ClientFetchOption<never, Partial<{
774
+ listInvitations: <FetchOptions extends better_auth302.ClientFetchOption<never, Partial<{
778
775
  organizationId?: string | undefined;
779
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth360.Prettify<{
776
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth302.Prettify<{
780
777
  query?: {
781
778
  organizationId?: string | undefined;
782
779
  } | undefined;
783
780
  fetchOptions?: FetchOptions | undefined;
784
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
781
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
785
782
  id: string;
786
783
  organizationId: string;
787
784
  email: string;
788
785
  role: "admin" | "member" | "owner";
789
- status: better_auth_client31.InvitationStatus;
786
+ status: better_auth_client23.InvitationStatus;
790
787
  inviterId: string;
791
788
  expiresAt: Date;
792
789
  createdAt: Date;
@@ -797,10 +794,10 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
797
794
  };
798
795
  } & {
799
796
  organization: {
800
- getActiveMember: <FetchOptions extends better_auth360.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth360.Prettify<{
797
+ getActiveMember: <FetchOptions extends better_auth302.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth302.Prettify<{
801
798
  query?: Record<string, any> | undefined;
802
799
  fetchOptions?: FetchOptions | undefined;
803
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<Omit<{
800
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<Omit<{
804
801
  id: string;
805
802
  organizationId: string;
806
803
  role: "admin" | "member" | "owner";
@@ -813,7 +810,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
813
810
  image?: string | undefined;
814
811
  };
815
812
  } & {
816
- user: better_auth360.User;
813
+ user: better_auth302.User;
817
814
  }, "user"> & {
818
815
  user: {
819
816
  id: string;
@@ -828,13 +825,13 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
828
825
  };
829
826
  } & {
830
827
  organization: {
831
- checkSlug: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
828
+ checkSlug: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
832
829
  slug: string;
833
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
830
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
834
831
  slug: string;
835
832
  } & {
836
833
  fetchOptions?: FetchOptions | undefined;
837
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
834
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
838
835
  status: boolean;
839
836
  }, {
840
837
  code?: string | undefined;
@@ -843,15 +840,15 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
843
840
  };
844
841
  } & {
845
842
  organization: {
846
- removeMember: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
843
+ removeMember: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
847
844
  memberIdOrEmail: string;
848
845
  organizationId?: string | undefined;
849
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
846
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
850
847
  memberIdOrEmail: string;
851
848
  organizationId?: string | undefined;
852
849
  } & {
853
850
  fetchOptions?: FetchOptions | undefined;
854
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
851
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
855
852
  member: {
856
853
  id: string;
857
854
  organizationId: string;
@@ -872,17 +869,17 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
872
869
  };
873
870
  } & {
874
871
  organization: {
875
- updateMemberRole: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
876
- role: better_auth360.LiteralString | "admin" | "member" | "owner" | ("admin" | "member" | "owner")[] | better_auth360.LiteralString[];
872
+ updateMemberRole: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
873
+ role: better_auth302.LiteralString | "admin" | "member" | "owner" | ("admin" | "member" | "owner")[] | better_auth302.LiteralString[];
877
874
  memberId: string;
878
875
  organizationId?: string | undefined;
879
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
880
- role: better_auth360.LiteralString | "admin" | "member" | "owner" | ("admin" | "member" | "owner")[] | better_auth360.LiteralString[];
876
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
877
+ role: better_auth302.LiteralString | "admin" | "member" | "owner" | ("admin" | "member" | "owner")[] | better_auth302.LiteralString[];
881
878
  memberId: string;
882
879
  organizationId?: string | undefined;
883
880
  } & {
884
881
  fetchOptions?: FetchOptions | undefined;
885
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
882
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
886
883
  id: string;
887
884
  organizationId: string;
888
885
  role: "member" | "admin" | "owner";
@@ -901,13 +898,13 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
901
898
  };
902
899
  } & {
903
900
  organization: {
904
- leave: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
901
+ leave: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
905
902
  organizationId: string;
906
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
903
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
907
904
  organizationId: string;
908
905
  } & {
909
906
  fetchOptions?: FetchOptions | undefined;
910
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<NonNullable<Omit<{
907
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<NonNullable<Omit<{
911
908
  id: string;
912
909
  organizationId: string;
913
910
  role: "admin" | "member" | "owner";
@@ -920,7 +917,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
920
917
  image?: string | undefined;
921
918
  };
922
919
  } & {
923
- user: better_auth360.User;
920
+ user: better_auth302.User;
924
921
  }, "user"> & {
925
922
  user: {
926
923
  id: string;
@@ -935,19 +932,19 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
935
932
  };
936
933
  } & {
937
934
  organization: {
938
- listUserInvitations: <FetchOptions extends better_auth360.ClientFetchOption<never, Partial<{
935
+ listUserInvitations: <FetchOptions extends better_auth302.ClientFetchOption<never, Partial<{
939
936
  email?: string | undefined;
940
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth360.Prettify<{
937
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth302.Prettify<{
941
938
  query?: {
942
939
  email?: string | undefined;
943
940
  } | undefined;
944
941
  fetchOptions?: FetchOptions | undefined;
945
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<(Omit<{
942
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<(Omit<{
946
943
  id: string;
947
944
  organizationId: string;
948
945
  email: string;
949
946
  role: "admin" | "member" | "owner";
950
- status: better_auth_client31.InvitationStatus;
947
+ status: better_auth_client23.InvitationStatus;
951
948
  inviterId: string;
952
949
  expiresAt: Date;
953
950
  createdAt: Date;
@@ -969,7 +966,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
969
966
  };
970
967
  } & {
971
968
  organization: {
972
- listMembers: <FetchOptions extends better_auth360.ClientFetchOption<never, Partial<{
969
+ listMembers: <FetchOptions extends better_auth302.ClientFetchOption<never, Partial<{
973
970
  limit?: string | number | undefined;
974
971
  offset?: string | number | undefined;
975
972
  sortBy?: string | undefined;
@@ -979,7 +976,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
979
976
  filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
980
977
  organizationId?: string | undefined;
981
978
  organizationSlug?: string | undefined;
982
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth360.Prettify<{
979
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth302.Prettify<{
983
980
  query?: {
984
981
  limit?: string | number | undefined;
985
982
  offset?: string | number | undefined;
@@ -992,7 +989,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
992
989
  organizationSlug?: string | undefined;
993
990
  } | undefined;
994
991
  fetchOptions?: FetchOptions | undefined;
995
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
992
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
996
993
  members: ({
997
994
  id: string;
998
995
  organizationId: string;
@@ -1021,18 +1018,18 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
1021
1018
  };
1022
1019
  } & {
1023
1020
  organization: {
1024
- getActiveMemberRole: <FetchOptions extends better_auth360.ClientFetchOption<never, Partial<{
1021
+ getActiveMemberRole: <FetchOptions extends better_auth302.ClientFetchOption<never, Partial<{
1025
1022
  userId?: string | undefined;
1026
1023
  organizationId?: string | undefined;
1027
1024
  organizationSlug?: string | undefined;
1028
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth360.Prettify<{
1025
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth302.Prettify<{
1029
1026
  query?: {
1030
1027
  userId?: string | undefined;
1031
1028
  organizationId?: string | undefined;
1032
1029
  organizationSlug?: string | undefined;
1033
1030
  } | undefined;
1034
1031
  fetchOptions?: FetchOptions | undefined;
1035
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
1032
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
1036
1033
  role: "admin" | "member" | "owner";
1037
1034
  }, {
1038
1035
  code?: string | undefined;
@@ -1041,7 +1038,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
1041
1038
  };
1042
1039
  } & {
1043
1040
  organization: {
1044
- hasPermission: <FetchOptions extends better_auth360.ClientFetchOption<Partial<({
1041
+ hasPermission: <FetchOptions extends better_auth302.ClientFetchOption<Partial<({
1045
1042
  permission: {
1046
1043
  readonly organization?: ("delete" | "update")[] | undefined;
1047
1044
  readonly member?: ("delete" | "create" | "update")[] | undefined;
@@ -1061,7 +1058,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
1061
1058
  permission?: never | undefined;
1062
1059
  }) & {
1063
1060
  organizationId?: string | undefined;
1064
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<(({
1061
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<(({
1065
1062
  permission: {
1066
1063
  readonly organization?: ("delete" | "update")[] | undefined;
1067
1064
  readonly member?: ("delete" | "create" | "update")[] | undefined;
@@ -1083,7 +1080,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
1083
1080
  organizationId?: string | undefined;
1084
1081
  }) & {
1085
1082
  fetchOptions?: FetchOptions | undefined;
1086
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
1083
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
1087
1084
  error: null;
1088
1085
  success: boolean;
1089
1086
  }, {
@@ -1093,15 +1090,15 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
1093
1090
  };
1094
1091
  } & {
1095
1092
  emailOtp: {
1096
- sendVerificationOtp: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
1093
+ sendVerificationOtp: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
1097
1094
  email: string;
1098
1095
  type: "sign-in" | "email-verification" | "forget-password";
1099
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
1096
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
1100
1097
  email: string;
1101
1098
  type: "sign-in" | "email-verification" | "forget-password";
1102
1099
  } & {
1103
1100
  fetchOptions?: FetchOptions | undefined;
1104
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
1101
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
1105
1102
  success: boolean;
1106
1103
  }, {
1107
1104
  code?: string | undefined;
@@ -1110,17 +1107,17 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
1110
1107
  };
1111
1108
  } & {
1112
1109
  emailOtp: {
1113
- checkVerificationOtp: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
1110
+ checkVerificationOtp: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
1114
1111
  email: string;
1115
1112
  type: "sign-in" | "email-verification" | "forget-password";
1116
1113
  otp: string;
1117
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
1114
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
1118
1115
  email: string;
1119
1116
  type: "sign-in" | "email-verification" | "forget-password";
1120
1117
  otp: string;
1121
1118
  } & {
1122
1119
  fetchOptions?: FetchOptions | undefined;
1123
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
1120
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
1124
1121
  success: boolean;
1125
1122
  }, {
1126
1123
  code?: string | undefined;
@@ -1129,15 +1126,15 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
1129
1126
  };
1130
1127
  } & {
1131
1128
  emailOtp: {
1132
- verifyEmail: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
1129
+ verifyEmail: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
1133
1130
  email: string;
1134
1131
  otp: string;
1135
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
1132
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
1136
1133
  email: string;
1137
1134
  otp: string;
1138
1135
  } & {
1139
1136
  fetchOptions?: FetchOptions | undefined;
1140
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<NonNullable<{
1137
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<NonNullable<{
1141
1138
  status: boolean;
1142
1139
  token: string;
1143
1140
  user: {
@@ -1168,15 +1165,15 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
1168
1165
  };
1169
1166
  } & {
1170
1167
  signIn: {
1171
- emailOtp: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
1168
+ emailOtp: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
1172
1169
  email: string;
1173
1170
  otp: string;
1174
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
1171
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
1175
1172
  email: string;
1176
1173
  otp: string;
1177
1174
  } & {
1178
1175
  fetchOptions?: FetchOptions | undefined;
1179
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
1176
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
1180
1177
  token: string;
1181
1178
  user: {
1182
1179
  id: string;
@@ -1194,13 +1191,13 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
1194
1191
  };
1195
1192
  } & {
1196
1193
  forgetPassword: {
1197
- emailOtp: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
1194
+ emailOtp: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
1198
1195
  email: string;
1199
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
1196
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
1200
1197
  email: string;
1201
1198
  } & {
1202
1199
  fetchOptions?: FetchOptions | undefined;
1203
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
1200
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
1204
1201
  success: boolean;
1205
1202
  }, {
1206
1203
  code?: string | undefined;
@@ -1209,17 +1206,17 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
1209
1206
  };
1210
1207
  } & {
1211
1208
  emailOtp: {
1212
- resetPassword: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
1209
+ resetPassword: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
1213
1210
  email: string;
1214
1211
  otp: string;
1215
1212
  password: string;
1216
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
1213
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
1217
1214
  email: string;
1218
1215
  otp: string;
1219
1216
  password: string;
1220
1217
  } & {
1221
1218
  fetchOptions?: FetchOptions | undefined;
1222
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
1219
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
1223
1220
  success: boolean;
1224
1221
  }, {
1225
1222
  code?: string | undefined;
@@ -1228,7 +1225,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
1228
1225
  };
1229
1226
  } & {
1230
1227
  signIn: {
1231
- social: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
1228
+ social: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
1232
1229
  provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
1233
1230
  callbackURL?: string | undefined;
1234
1231
  newUserCallbackURL?: string | undefined;
@@ -1245,7 +1242,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
1245
1242
  requestSignUp?: boolean | undefined;
1246
1243
  loginHint?: string | undefined;
1247
1244
  additionalData?: Record<string, any> | undefined;
1248
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
1245
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
1249
1246
  provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
1250
1247
  callbackURL?: string | undefined;
1251
1248
  newUserCallbackURL?: string | undefined;
@@ -1264,7 +1261,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
1264
1261
  additionalData?: Record<string, any> | undefined;
1265
1262
  } & {
1266
1263
  fetchOptions?: FetchOptions | undefined;
1267
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<NonNullable<{
1264
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<NonNullable<{
1268
1265
  redirect: boolean;
1269
1266
  url: string;
1270
1267
  } | {
@@ -1286,10 +1283,10 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
1286
1283
  }, FetchOptions["throw"] extends true ? true : false>>;
1287
1284
  };
1288
1285
  } & {
1289
- signOut: <FetchOptions extends better_auth360.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth360.Prettify<{
1286
+ signOut: <FetchOptions extends better_auth302.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth302.Prettify<{
1290
1287
  query?: Record<string, any> | undefined;
1291
1288
  fetchOptions?: FetchOptions | undefined;
1292
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
1289
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
1293
1290
  success: boolean;
1294
1291
  }, {
1295
1292
  code?: string | undefined;
@@ -1297,21 +1294,21 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
1297
1294
  }, FetchOptions["throw"] extends true ? true : false>>;
1298
1295
  } & {
1299
1296
  signUp: {
1300
- email: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
1297
+ email: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
1301
1298
  name: string;
1302
1299
  email: string;
1303
1300
  password: string;
1304
1301
  image?: string | undefined;
1305
1302
  callbackURL?: string | undefined;
1306
1303
  rememberMe?: boolean | undefined;
1307
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
1304
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
1308
1305
  email: string;
1309
1306
  name: string;
1310
1307
  password: string;
1311
1308
  image?: string | undefined;
1312
1309
  callbackURL?: string | undefined;
1313
1310
  fetchOptions?: FetchOptions | undefined;
1314
- } & {} & {}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<NonNullable<{
1311
+ } & {} & {}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<NonNullable<{
1315
1312
  token: null;
1316
1313
  user: {
1317
1314
  id: string;
@@ -1340,19 +1337,19 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
1340
1337
  };
1341
1338
  } & {
1342
1339
  signIn: {
1343
- email: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
1340
+ email: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
1344
1341
  email: string;
1345
1342
  password: string;
1346
1343
  callbackURL?: string | undefined;
1347
1344
  rememberMe?: boolean | undefined;
1348
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
1345
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
1349
1346
  email: string;
1350
1347
  password: string;
1351
1348
  callbackURL?: string | undefined;
1352
1349
  rememberMe?: boolean | undefined;
1353
1350
  } & {
1354
1351
  fetchOptions?: FetchOptions | undefined;
1355
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
1352
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
1356
1353
  redirect: boolean;
1357
1354
  token: string;
1358
1355
  url?: string | undefined;
@@ -1371,80 +1368,80 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
1371
1368
  }, FetchOptions["throw"] extends true ? true : false>>;
1372
1369
  };
1373
1370
  } & {
1374
- resetPassword: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
1371
+ resetPassword: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
1375
1372
  newPassword: string;
1376
1373
  token?: string | undefined;
1377
1374
  }> & Record<string, any>, Partial<{
1378
1375
  token?: string | undefined;
1379
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
1376
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
1380
1377
  newPassword: string;
1381
1378
  token?: string | undefined;
1382
1379
  } & {
1383
1380
  fetchOptions?: FetchOptions | undefined;
1384
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
1381
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
1385
1382
  status: boolean;
1386
1383
  }, {
1387
1384
  code?: string | undefined;
1388
1385
  message?: string | undefined;
1389
1386
  }, FetchOptions["throw"] extends true ? true : false>>;
1390
1387
  } & {
1391
- verifyEmail: <FetchOptions extends better_auth360.ClientFetchOption<never, Partial<{
1388
+ verifyEmail: <FetchOptions extends better_auth302.ClientFetchOption<never, Partial<{
1392
1389
  token: string;
1393
1390
  callbackURL?: string | undefined;
1394
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
1391
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
1395
1392
  query: {
1396
1393
  token: string;
1397
1394
  callbackURL?: string | undefined;
1398
1395
  };
1399
1396
  fetchOptions?: FetchOptions | undefined;
1400
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<NonNullable<void | {
1397
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<NonNullable<void | {
1401
1398
  status: boolean;
1402
1399
  }>, {
1403
1400
  code?: string | undefined;
1404
1401
  message?: string | undefined;
1405
1402
  }, FetchOptions["throw"] extends true ? true : false>>;
1406
1403
  } & {
1407
- sendVerificationEmail: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
1404
+ sendVerificationEmail: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
1408
1405
  email: string;
1409
1406
  callbackURL?: string | undefined;
1410
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
1407
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
1411
1408
  email: string;
1412
1409
  callbackURL?: string | undefined;
1413
1410
  } & {
1414
1411
  fetchOptions?: FetchOptions | undefined;
1415
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
1412
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
1416
1413
  status: boolean;
1417
1414
  }, {
1418
1415
  code?: string | undefined;
1419
1416
  message?: string | undefined;
1420
1417
  }, FetchOptions["throw"] extends true ? true : false>>;
1421
1418
  } & {
1422
- changeEmail: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
1419
+ changeEmail: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
1423
1420
  newEmail: string;
1424
1421
  callbackURL?: string | undefined;
1425
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
1422
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
1426
1423
  newEmail: string;
1427
1424
  callbackURL?: string | undefined;
1428
1425
  } & {
1429
1426
  fetchOptions?: FetchOptions | undefined;
1430
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
1427
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
1431
1428
  status: boolean;
1432
1429
  }, {
1433
1430
  code?: string | undefined;
1434
1431
  message?: string | undefined;
1435
1432
  }, FetchOptions["throw"] extends true ? true : false>>;
1436
1433
  } & {
1437
- changePassword: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
1434
+ changePassword: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
1438
1435
  newPassword: string;
1439
1436
  currentPassword: string;
1440
1437
  revokeOtherSessions?: boolean | undefined;
1441
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
1438
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
1442
1439
  newPassword: string;
1443
1440
  currentPassword: string;
1444
1441
  revokeOtherSessions?: boolean | undefined;
1445
1442
  } & {
1446
1443
  fetchOptions?: FetchOptions | undefined;
1447
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
1444
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
1448
1445
  token: string | null;
1449
1446
  user: {
1450
1447
  id: string;
@@ -1460,31 +1457,31 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
1460
1457
  message?: string | undefined;
1461
1458
  }, FetchOptions["throw"] extends true ? true : false>>;
1462
1459
  } & {
1463
- updateUser: <FetchOptions extends better_auth360.ClientFetchOption<Partial<Partial<{}> & {
1460
+ updateUser: <FetchOptions extends better_auth302.ClientFetchOption<Partial<Partial<{}> & {
1464
1461
  name?: string | undefined;
1465
1462
  image?: string | undefined | null;
1466
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth360.Prettify<{
1463
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth302.Prettify<{
1467
1464
  image?: (string | null) | undefined;
1468
1465
  name?: string | undefined;
1469
1466
  fetchOptions?: FetchOptions | undefined;
1470
- } & Partial<{} & {}>> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
1467
+ } & Partial<{} & {}>> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
1471
1468
  status: boolean;
1472
1469
  }, {
1473
1470
  code?: string | undefined;
1474
1471
  message?: string | undefined;
1475
1472
  }, FetchOptions["throw"] extends true ? true : false>>;
1476
1473
  } & {
1477
- deleteUser: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
1474
+ deleteUser: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
1478
1475
  callbackURL?: string | undefined;
1479
1476
  password?: string | undefined;
1480
1477
  token?: string | undefined;
1481
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth360.Prettify<{
1478
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth302.Prettify<{
1482
1479
  callbackURL?: string | undefined;
1483
1480
  password?: string | undefined;
1484
1481
  token?: string | undefined;
1485
1482
  } & {
1486
1483
  fetchOptions?: FetchOptions | undefined;
1487
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
1484
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
1488
1485
  success: boolean;
1489
1486
  message: string;
1490
1487
  }, {
@@ -1492,15 +1489,15 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
1492
1489
  message?: string | undefined;
1493
1490
  }, FetchOptions["throw"] extends true ? true : false>>;
1494
1491
  } & {
1495
- requestPasswordReset: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
1492
+ requestPasswordReset: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
1496
1493
  email: string;
1497
1494
  redirectTo?: string | undefined;
1498
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
1495
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
1499
1496
  email: string;
1500
1497
  redirectTo?: string | undefined;
1501
1498
  } & {
1502
1499
  fetchOptions?: FetchOptions | undefined;
1503
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
1500
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
1504
1501
  status: boolean;
1505
1502
  message: string;
1506
1503
  }, {
@@ -1509,25 +1506,25 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
1509
1506
  }, FetchOptions["throw"] extends true ? true : false>>;
1510
1507
  } & {
1511
1508
  resetPassword: {
1512
- ":token": <FetchOptions extends better_auth360.ClientFetchOption<never, Partial<{
1509
+ ":token": <FetchOptions extends better_auth302.ClientFetchOption<never, Partial<{
1513
1510
  callbackURL: string;
1514
1511
  }> & Record<string, any>, {
1515
1512
  token: string;
1516
- }>>(data_0: better_auth360.Prettify<{
1513
+ }>>(data_0: better_auth302.Prettify<{
1517
1514
  query: {
1518
1515
  callbackURL: string;
1519
1516
  };
1520
1517
  fetchOptions?: FetchOptions | undefined;
1521
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<never, {
1518
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<never, {
1522
1519
  code?: string | undefined;
1523
1520
  message?: string | undefined;
1524
1521
  }, FetchOptions["throw"] extends true ? true : false>>;
1525
1522
  };
1526
1523
  } & {
1527
- listSessions: <FetchOptions extends better_auth360.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth360.Prettify<{
1524
+ listSessions: <FetchOptions extends better_auth302.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth302.Prettify<{
1528
1525
  query?: Record<string, any> | undefined;
1529
1526
  fetchOptions?: FetchOptions | undefined;
1530
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<better_auth360.Prettify<{
1527
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<better_auth302.Prettify<{
1531
1528
  id: string;
1532
1529
  createdAt: Date;
1533
1530
  updatedAt: Date;
@@ -1541,40 +1538,40 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
1541
1538
  message?: string | undefined;
1542
1539
  }, FetchOptions["throw"] extends true ? true : false>>;
1543
1540
  } & {
1544
- revokeSession: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
1541
+ revokeSession: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
1545
1542
  token: string;
1546
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
1543
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
1547
1544
  token: string;
1548
1545
  } & {
1549
1546
  fetchOptions?: FetchOptions | undefined;
1550
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
1547
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
1551
1548
  status: boolean;
1552
1549
  }, {
1553
1550
  code?: string | undefined;
1554
1551
  message?: string | undefined;
1555
1552
  }, FetchOptions["throw"] extends true ? true : false>>;
1556
1553
  } & {
1557
- revokeSessions: <FetchOptions extends better_auth360.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth360.Prettify<{
1554
+ revokeSessions: <FetchOptions extends better_auth302.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth302.Prettify<{
1558
1555
  query?: Record<string, any> | undefined;
1559
1556
  fetchOptions?: FetchOptions | undefined;
1560
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
1557
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
1561
1558
  status: boolean;
1562
1559
  }, {
1563
1560
  code?: string | undefined;
1564
1561
  message?: string | undefined;
1565
1562
  }, FetchOptions["throw"] extends true ? true : false>>;
1566
1563
  } & {
1567
- revokeOtherSessions: <FetchOptions extends better_auth360.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth360.Prettify<{
1564
+ revokeOtherSessions: <FetchOptions extends better_auth302.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth302.Prettify<{
1568
1565
  query?: Record<string, any> | undefined;
1569
1566
  fetchOptions?: FetchOptions | undefined;
1570
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
1567
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
1571
1568
  status: boolean;
1572
1569
  }, {
1573
1570
  code?: string | undefined;
1574
1571
  message?: string | undefined;
1575
1572
  }, FetchOptions["throw"] extends true ? true : false>>;
1576
1573
  } & {
1577
- linkSocial: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
1574
+ linkSocial: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
1578
1575
  provider: unknown;
1579
1576
  callbackURL?: string | undefined;
1580
1577
  idToken?: {
@@ -1589,7 +1586,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
1589
1586
  errorCallbackURL?: string | undefined;
1590
1587
  disableRedirect?: boolean | undefined;
1591
1588
  additionalData?: Record<string, any> | undefined;
1592
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
1589
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
1593
1590
  provider: unknown;
1594
1591
  callbackURL?: string | undefined;
1595
1592
  idToken?: {
@@ -1606,7 +1603,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
1606
1603
  additionalData?: Record<string, any> | undefined;
1607
1604
  } & {
1608
1605
  fetchOptions?: FetchOptions | undefined;
1609
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
1606
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
1610
1607
  url: string;
1611
1608
  redirect: boolean;
1612
1609
  }, {
@@ -1614,10 +1611,10 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
1614
1611
  message?: string | undefined;
1615
1612
  }, FetchOptions["throw"] extends true ? true : false>>;
1616
1613
  } & {
1617
- listAccounts: <FetchOptions extends better_auth360.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth360.Prettify<{
1614
+ listAccounts: <FetchOptions extends better_auth302.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth302.Prettify<{
1618
1615
  query?: Record<string, any> | undefined;
1619
1616
  fetchOptions?: FetchOptions | undefined;
1620
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
1617
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
1621
1618
  id: string;
1622
1619
  providerId: string;
1623
1620
  createdAt: Date;
@@ -1631,16 +1628,16 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
1631
1628
  }, FetchOptions["throw"] extends true ? true : false>>;
1632
1629
  } & {
1633
1630
  deleteUser: {
1634
- callback: <FetchOptions extends better_auth360.ClientFetchOption<never, Partial<{
1631
+ callback: <FetchOptions extends better_auth302.ClientFetchOption<never, Partial<{
1635
1632
  token: string;
1636
1633
  callbackURL?: string | undefined;
1637
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
1634
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
1638
1635
  query: {
1639
1636
  token: string;
1640
1637
  callbackURL?: string | undefined;
1641
1638
  };
1642
1639
  fetchOptions?: FetchOptions | undefined;
1643
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
1640
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
1644
1641
  success: boolean;
1645
1642
  message: string;
1646
1643
  }, {
@@ -1649,32 +1646,32 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
1649
1646
  }, FetchOptions["throw"] extends true ? true : false>>;
1650
1647
  };
1651
1648
  } & {
1652
- unlinkAccount: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
1649
+ unlinkAccount: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
1653
1650
  providerId: string;
1654
1651
  accountId?: string | undefined;
1655
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
1652
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
1656
1653
  providerId: string;
1657
1654
  accountId?: string | undefined;
1658
1655
  } & {
1659
1656
  fetchOptions?: FetchOptions | undefined;
1660
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
1657
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
1661
1658
  status: boolean;
1662
1659
  }, {
1663
1660
  code?: string | undefined;
1664
1661
  message?: string | undefined;
1665
1662
  }, FetchOptions["throw"] extends true ? true : false>>;
1666
1663
  } & {
1667
- refreshToken: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
1664
+ refreshToken: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
1668
1665
  providerId: string;
1669
1666
  accountId?: string | undefined;
1670
1667
  userId?: string | undefined;
1671
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
1668
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
1672
1669
  providerId: string;
1673
1670
  accountId?: string | undefined;
1674
1671
  userId?: string | undefined;
1675
1672
  } & {
1676
1673
  fetchOptions?: FetchOptions | undefined;
1677
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
1674
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
1678
1675
  accessToken: string | undefined;
1679
1676
  refreshToken: string | undefined;
1680
1677
  accessTokenExpiresAt: Date | undefined;
@@ -1688,17 +1685,17 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
1688
1685
  message?: string | undefined;
1689
1686
  }, FetchOptions["throw"] extends true ? true : false>>;
1690
1687
  } & {
1691
- getAccessToken: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
1688
+ getAccessToken: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
1692
1689
  providerId: string;
1693
1690
  accountId?: string | undefined;
1694
1691
  userId?: string | undefined;
1695
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
1692
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
1696
1693
  providerId: string;
1697
1694
  accountId?: string | undefined;
1698
1695
  userId?: string | undefined;
1699
1696
  } & {
1700
1697
  fetchOptions?: FetchOptions | undefined;
1701
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
1698
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
1702
1699
  accessToken: string;
1703
1700
  accessTokenExpiresAt: Date | undefined;
1704
1701
  scopes: string[];
@@ -1708,31 +1705,31 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
1708
1705
  message?: string | undefined;
1709
1706
  }, FetchOptions["throw"] extends true ? true : false>>;
1710
1707
  } & {
1711
- accountInfo: <FetchOptions extends better_auth360.ClientFetchOption<never, Partial<{
1708
+ accountInfo: <FetchOptions extends better_auth302.ClientFetchOption<never, Partial<{
1712
1709
  accountId?: string | undefined;
1713
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth360.Prettify<{
1710
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth302.Prettify<{
1714
1711
  query?: {
1715
1712
  accountId?: string | undefined;
1716
1713
  } | undefined;
1717
1714
  fetchOptions?: FetchOptions | undefined;
1718
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
1719
- user: better_auth360.OAuth2UserInfo;
1715
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
1716
+ user: better_auth302.OAuth2UserInfo;
1720
1717
  data: Record<string, any>;
1721
1718
  }, {
1722
1719
  code?: string | undefined;
1723
1720
  message?: string | undefined;
1724
1721
  }, FetchOptions["throw"] extends true ? true : false>>;
1725
1722
  } & {
1726
- getSession: <FetchOptions extends better_auth360.ClientFetchOption<never, Partial<{
1723
+ getSession: <FetchOptions extends better_auth302.ClientFetchOption<never, Partial<{
1727
1724
  disableCookieCache?: unknown;
1728
1725
  disableRefresh?: unknown;
1729
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth360.Prettify<{
1726
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth302.Prettify<{
1730
1727
  query?: {
1731
1728
  disableCookieCache?: unknown;
1732
1729
  disableRefresh?: unknown;
1733
1730
  } | undefined;
1734
1731
  fetchOptions?: FetchOptions | undefined;
1735
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
1732
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
1736
1733
  user: {
1737
1734
  id: string;
1738
1735
  createdAt: Date;
@@ -1786,7 +1783,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
1786
1783
  statusText: string;
1787
1784
  };
1788
1785
  } | {
1789
- data: jose6.JSONWebKeySet;
1786
+ data: jose1.JSONWebKeySet;
1790
1787
  error: null;
1791
1788
  }>;
1792
1789
  } & {
@@ -1828,7 +1825,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
1828
1825
  organizationId: string;
1829
1826
  email: string;
1830
1827
  role: "admin" | "member" | "owner";
1831
- status: better_auth_client31.InvitationStatus;
1828
+ status: better_auth_client23.InvitationStatus;
1832
1829
  inviterId: string;
1833
1830
  expiresAt: Date;
1834
1831
  createdAt: Date;
@@ -1854,7 +1851,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
1854
1851
  organizationId: string;
1855
1852
  email: string;
1856
1853
  role: "admin" | "member" | "owner";
1857
- status: better_auth_client31.InvitationStatus;
1854
+ status: better_auth_client23.InvitationStatus;
1858
1855
  inviterId: string;
1859
1856
  expiresAt: Date;
1860
1857
  createdAt: Date;
@@ -1904,7 +1901,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
1904
1901
  }) => boolean;
1905
1902
  };
1906
1903
  } & {
1907
- useSession: nanostores9.Atom<{
1904
+ useSession: () => {
1908
1905
  data: {
1909
1906
  user: {
1910
1907
  id: string;
@@ -1932,24 +1929,57 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
1932
1929
  activeOrganizationId?: string | null | undefined;
1933
1930
  };
1934
1931
  } | null;
1935
- error: _better_fetch_fetch185.BetterFetchError | null;
1936
1932
  isPending: boolean;
1937
- }>;
1938
- $fetch: _better_fetch_fetch185.BetterFetch<{
1939
- plugins: (_better_fetch_fetch185.BetterFetchPlugin | {
1933
+ isRefetching: boolean;
1934
+ error: _better_fetch_fetch177.BetterFetchError | null;
1935
+ refetch: (queryParams?: {
1936
+ query?: better_auth302.SessionQueryParams;
1937
+ } | undefined) => Promise<void>;
1938
+ };
1939
+ $Infer: {
1940
+ Session: {
1941
+ user: {
1942
+ id: string;
1943
+ createdAt: Date;
1944
+ updatedAt: Date;
1945
+ email: string;
1946
+ emailVerified: boolean;
1947
+ name: string;
1948
+ image?: string | null | undefined;
1949
+ banned: boolean | null | undefined;
1950
+ role?: string | null | undefined;
1951
+ banReason?: string | null | undefined;
1952
+ banExpires?: Date | null | undefined;
1953
+ };
1954
+ session: {
1955
+ id: string;
1956
+ createdAt: Date;
1957
+ updatedAt: Date;
1958
+ userId: string;
1959
+ expiresAt: Date;
1960
+ token: string;
1961
+ ipAddress?: string | null | undefined;
1962
+ userAgent?: string | null | undefined;
1963
+ impersonatedBy?: string | null | undefined;
1964
+ activeOrganizationId?: string | null | undefined;
1965
+ };
1966
+ };
1967
+ };
1968
+ $fetch: _better_fetch_fetch177.BetterFetch<{
1969
+ plugins: (_better_fetch_fetch177.BetterFetchPlugin | {
1940
1970
  id: string;
1941
1971
  name: string;
1942
1972
  hooks: {
1943
- onSuccess(context: _better_fetch_fetch185.SuccessContext<any>): void;
1973
+ onSuccess(context: _better_fetch_fetch177.SuccessContext<any>): void;
1944
1974
  };
1945
1975
  } | {
1946
1976
  id: string;
1947
1977
  name: string;
1948
1978
  hooks: {
1949
- onSuccess: ((context: _better_fetch_fetch185.SuccessContext<any>) => Promise<void> | void) | undefined;
1950
- onError: ((context: _better_fetch_fetch185.ErrorContext) => Promise<void> | void) | undefined;
1951
- onRequest: (<T extends Record<string, any>>(context: _better_fetch_fetch185.RequestContext<T>) => Promise<_better_fetch_fetch185.RequestContext | void> | _better_fetch_fetch185.RequestContext | void) | undefined;
1952
- onResponse: ((context: _better_fetch_fetch185.ResponseContext) => Promise<Response | void | _better_fetch_fetch185.ResponseContext> | Response | _better_fetch_fetch185.ResponseContext | void) | undefined;
1979
+ onSuccess: ((context: _better_fetch_fetch177.SuccessContext<any>) => Promise<void> | void) | undefined;
1980
+ onError: ((context: _better_fetch_fetch177.ErrorContext) => Promise<void> | void) | undefined;
1981
+ onRequest: (<T extends Record<string, any>>(context: _better_fetch_fetch177.RequestContext<T>) => Promise<_better_fetch_fetch177.RequestContext | void> | _better_fetch_fetch177.RequestContext | void) | undefined;
1982
+ onResponse: ((context: _better_fetch_fetch177.ResponseContext) => Promise<Response | void | _better_fetch_fetch177.ResponseContext> | Response | _better_fetch_fetch177.ResponseContext | void) | undefined;
1953
1983
  };
1954
1984
  })[];
1955
1985
  cache?: RequestCache | undefined;
@@ -1969,12 +1999,12 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
1969
1999
  referrerPolicy?: ReferrerPolicy | undefined;
1970
2000
  signal?: (AbortSignal | null) | undefined;
1971
2001
  window?: null | undefined;
1972
- onRetry?: ((response: _better_fetch_fetch185.ResponseContext) => Promise<void> | void) | undefined;
2002
+ onRetry?: ((response: _better_fetch_fetch177.ResponseContext) => Promise<void> | void) | undefined;
1973
2003
  hookOptions?: {
1974
2004
  cloneResponse?: boolean;
1975
2005
  } | undefined;
1976
2006
  timeout?: number | undefined;
1977
- customFetchImpl: _better_fetch_fetch185.FetchEsque;
2007
+ customFetchImpl: _better_fetch_fetch177.FetchEsque;
1978
2008
  baseURL: string;
1979
2009
  throw?: boolean | undefined;
1980
2010
  auth?: ({
@@ -1994,46 +2024,17 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
1994
2024
  params?: any;
1995
2025
  duplex?: "full" | "half" | undefined;
1996
2026
  jsonParser: (text: string) => Promise<any> | any;
1997
- retry?: _better_fetch_fetch185.RetryOptions | undefined;
2027
+ retry?: _better_fetch_fetch177.RetryOptions | undefined;
1998
2028
  retryAttempt?: number | undefined;
1999
- output?: (_better_fetch_fetch185.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2000
- errorSchema?: _better_fetch_fetch185.StandardSchemaV1 | undefined;
2029
+ output?: (_better_fetch_fetch177.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2030
+ errorSchema?: _better_fetch_fetch177.StandardSchemaV1 | undefined;
2001
2031
  disableValidation?: boolean | undefined;
2002
2032
  disableSignal?: boolean | undefined;
2003
2033
  }, unknown, unknown, {}>;
2004
2034
  $store: {
2005
2035
  notify: (signal?: (Omit<string, "$sessionSignal"> | "$sessionSignal") | undefined) => void;
2006
2036
  listen: (signal: Omit<string, "$sessionSignal"> | "$sessionSignal", listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
2007
- atoms: Record<string, nanostores9.WritableAtom<any>>;
2008
- };
2009
- $Infer: {
2010
- Session: {
2011
- user: {
2012
- id: string;
2013
- createdAt: Date;
2014
- updatedAt: Date;
2015
- email: string;
2016
- emailVerified: boolean;
2017
- name: string;
2018
- image?: string | null | undefined;
2019
- banned: boolean | null | undefined;
2020
- role?: string | null | undefined;
2021
- banReason?: string | null | undefined;
2022
- banExpires?: Date | null | undefined;
2023
- };
2024
- session: {
2025
- id: string;
2026
- createdAt: Date;
2027
- updatedAt: Date;
2028
- userId: string;
2029
- expiresAt: Date;
2030
- token: string;
2031
- ipAddress?: string | null | undefined;
2032
- userAgent?: string | null | undefined;
2033
- impersonatedBy?: string | null | undefined;
2034
- activeOrganizationId?: string | null | undefined;
2035
- };
2036
- };
2037
+ atoms: Record<string, nanostores6.WritableAtom<any>>;
2037
2038
  };
2038
2039
  $ERROR_CODES: {
2039
2040
  readonly FAILED_TO_CREATE_USER: "Failed to create user";
@@ -2140,97 +2141,12 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
2140
2141
  };
2141
2142
  };
2142
2143
  }
2143
- /** Instance type for BetterAuthVanillaAdapter */
2144
- type BetterAuthVanillaAdapterInstance = BetterAuthVanillaAdapterImpl;
2145
- /** Builder type that creates adapter instances */
2146
- type BetterAuthVanillaAdapterBuilder = (url: string) => BetterAuthVanillaAdapterInstance;
2147
- /**
2148
- * Factory function that returns an adapter builder.
2149
- * The builder is called by createClient/createAuthClient with the URL.
2150
- *
2151
- * @param options - Optional adapter configuration (baseURL is injected separately)
2152
- * @returns A builder function that creates the adapter instance
2153
- *
2154
- * @example
2155
- * ```typescript
2156
- * const client = createClient({
2157
- * auth: {
2158
- * url: 'https://auth.example.com',
2159
- * adapter: BetterAuthVanillaAdapter(),
2160
- * },
2161
- * dataApi: { url: 'https://data-api.example.com' },
2162
- * });
2163
- * ```
2164
- */
2165
- declare function BetterAuthVanillaAdapter(options?: BetterAuthVanillaAdapterOptions): BetterAuthVanillaAdapterBuilder;
2166
- //#endregion
2167
- //#region src/adapters/supabase/auth-interface.d.ts
2168
- type _UpstreamAuthClientInstance = InstanceType<typeof AuthClient>;
2169
- type _AuthClientBase = { [K in keyof _UpstreamAuthClientInstance as _UpstreamAuthClientInstance[K] extends never ? never : K]: _UpstreamAuthClientInstance[K] };
2170
- type SupabaseAuthClientInterface = _AuthClientBase;
2171
- //#endregion
2172
- //#region src/adapters/supabase/supabase-adapter.d.ts
2173
- type SupabaseAuthAdapterOptions = Omit<NeonAuthAdapterCoreAuthOptions, 'baseURL'>;
2174
- /**
2175
- * Internal implementation class - use SupabaseAuthAdapter factory function instead
2176
- */
2177
- declare class SupabaseAuthAdapterImpl extends NeonAuthAdapterCore implements SupabaseAuthClientInterface {
2178
- admin: SupabaseAuthClientInterface['admin'];
2179
- mfa: SupabaseAuthClientInterface['mfa'];
2180
- oauth: SupabaseAuthClientInterface['oauth'];
2181
- private _betterAuth;
2182
- private _stateChangeEmitters;
2183
- constructor(betterAuthClientOptions: NeonAuthAdapterCoreAuthOptions);
2184
- getBetterAuthInstance(): ReturnType<typeof createAuthClient<{
2185
- plugins: SupportedBetterAuthClientPlugins;
2186
- }>>;
2187
- initialize: SupabaseAuthClientInterface['initialize'];
2188
- getSession(options?: {
2189
- forceFetch?: boolean;
2190
- }): ReturnType<SupabaseAuthClientInterface['getSession']>;
2191
- refreshSession: SupabaseAuthClientInterface['refreshSession'];
2192
- setSession: SupabaseAuthClientInterface['setSession'];
2193
- signUp: SupabaseAuthClientInterface['signUp'];
2194
- signInAnonymously: SupabaseAuthClientInterface['signInAnonymously'];
2195
- signInWithPassword: SupabaseAuthClientInterface['signInWithPassword'];
2196
- signInWithOAuth: SupabaseAuthClientInterface['signInWithOAuth'];
2197
- signInWithOtp: SupabaseAuthClientInterface['signInWithOtp'];
2198
- signInWithIdToken: SupabaseAuthClientInterface['signInWithIdToken'];
2199
- signInWithSSO: SupabaseAuthClientInterface['signInWithSSO'];
2200
- signInWithWeb3: SupabaseAuthClientInterface['signInWithWeb3'];
2201
- signOut: SupabaseAuthClientInterface['signOut'];
2202
- getUser: SupabaseAuthClientInterface['getUser'];
2203
- getClaims: (jwtArg?: string) => Promise<{
2204
- data: {
2205
- header: JwtHeader;
2206
- claims: JwtPayload;
2207
- signature: Uint8Array<ArrayBufferLike>;
2208
- };
2209
- error: null;
2210
- } | {
2211
- data: null;
2212
- error: _supabase_auth_js0.AuthError;
2213
- }>;
2214
- updateUser: SupabaseAuthClientInterface['updateUser'];
2215
- getUserIdentities: SupabaseAuthClientInterface['getUserIdentities'];
2216
- linkIdentity: SupabaseAuthClientInterface['linkIdentity'];
2217
- unlinkIdentity: SupabaseAuthClientInterface['unlinkIdentity'];
2218
- verifyOtp: SupabaseAuthClientInterface['verifyOtp'];
2219
- resetPasswordForEmail: SupabaseAuthClientInterface['resetPasswordForEmail'];
2220
- reauthenticate: SupabaseAuthClientInterface['reauthenticate'];
2221
- resend: SupabaseAuthClientInterface['resend'];
2222
- exchangeCodeForSession: SupabaseAuthClientInterface['exchangeCodeForSession'];
2223
- onAuthStateChange: SupabaseAuthClientInterface['onAuthStateChange'];
2224
- isThrowOnErrorEnabled: SupabaseAuthClientInterface['isThrowOnErrorEnabled'];
2225
- startAutoRefresh: SupabaseAuthClientInterface['startAutoRefresh'];
2226
- stopAutoRefresh: SupabaseAuthClientInterface['stopAutoRefresh'];
2227
- private verifyEmailOtp;
2228
- private emitInitialSession;
2229
- }
2230
- /** Instance type for SupabaseAuthAdapter */
2231
- type SupabaseAuthAdapterInstance = SupabaseAuthAdapterImpl;
2144
+ /** Instance type for BetterAuthReactAdapter */
2145
+ type BetterAuthReactAdapterInstance = BetterAuthReactAdapterImpl;
2232
2146
  /** Builder type that creates adapter instances */
2233
- type SupabaseAuthAdapterBuilder = (url: string) => SupabaseAuthAdapterInstance;
2147
+ type BetterAuthReactAdapterBuilder = (url: string, fetchOptions?: {
2148
+ headers?: Record<string, string>;
2149
+ }) => BetterAuthReactAdapterInstance;
2234
2150
  /**
2235
2151
  * Factory function that returns an adapter builder.
2236
2152
  * The builder is called by createClient/createAuthClient with the URL.
@@ -2243,12 +2159,12 @@ type SupabaseAuthAdapterBuilder = (url: string) => SupabaseAuthAdapterInstance;
2243
2159
  * const client = createClient({
2244
2160
  * auth: {
2245
2161
  * url: 'https://auth.example.com',
2246
- * adapter: SupabaseAuthAdapter(),
2162
+ * adapter: BetterAuthReactAdapter(),
2247
2163
  * },
2248
2164
  * dataApi: { url: 'https://data-api.example.com' },
2249
2165
  * });
2250
2166
  * ```
2251
2167
  */
2252
- declare function SupabaseAuthAdapter(options?: SupabaseAuthAdapterOptions): SupabaseAuthAdapterBuilder;
2168
+ declare function BetterAuthReactAdapter(options?: BetterAuthReactAdapterOptions): BetterAuthReactAdapterBuilder;
2253
2169
  //#endregion
2254
- export { BetterAuthVanillaAdapter as a, BetterAuthVanillaAdapterOptions as c, SupabaseAuthAdapterOptions as i, SupabaseAuthAdapterBuilder as n, BetterAuthVanillaAdapterBuilder as o, SupabaseAuthAdapterInstance as r, BetterAuthVanillaAdapterInstance as s, SupabaseAuthAdapter as t };
2170
+ export { BetterAuthReactAdapterInstance as n, BetterAuthReactAdapterOptions as r, BetterAuthReactAdapter as t };