wcz-test 6.5.4 → 6.6.0

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.
@@ -3,8 +3,11 @@ export { default as i18n, t } from 'i18next';
3
3
  export { initReactI18next, useTranslation } from 'react-i18next';
4
4
  export { default as LanguageDetector } from 'i18next-browser-languagedetector';
5
5
  import * as nanostores from 'nanostores';
6
- import * as better_auth from 'better-auth';
6
+ import * as node_modules_better_auth_dist_index_BzgT8cQd_d_mts from 'node_modules/better-auth/dist/index-BzgT8cQd.d.mts';
7
+ import * as _better_auth_core_oauth2 from '@better-auth/core/oauth2';
7
8
  import * as _better_fetch_fetch from '@better-fetch/fetch';
9
+ import * as node_modules_better_auth_dist_helper_DU33OcfW_d_mts from 'node_modules/better-auth/dist/helper-DU33OcfW.d.mts';
10
+ import * as _better_auth_core from '@better-auth/core';
8
11
  import 'axios';
9
12
  import 'uuidv7';
10
13
  import '@t3-oss/env-core';
@@ -14,76 +17,24 @@ declare const WISTRON_SECONDARY_COLOR = "#64DC00";
14
17
 
15
18
  declare const authClient: {
16
19
  signIn: {
17
- social: <FetchOptions extends {
18
- headers?: (HeadersInit & (HeadersInit | {
19
- accept: "application/json" | "text/plain" | "application/octet-stream";
20
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
21
- authorization: "Bearer" | "Basic";
22
- })) | undefined;
23
- method?: string | undefined;
24
- signal?: (AbortSignal | null) | undefined;
25
- cache?: RequestCache | undefined;
26
- credentials?: RequestCredentials | undefined;
27
- integrity?: string | undefined;
28
- keepalive?: boolean | undefined;
29
- mode?: RequestMode | undefined;
30
- priority?: RequestPriority | undefined;
31
- redirect?: RequestRedirect | undefined;
32
- referrer?: string | undefined;
33
- referrerPolicy?: ReferrerPolicy | undefined;
34
- window?: null | undefined;
35
- onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
36
- onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
37
- onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
38
- onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
39
- onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
40
- hookOptions?: {
41
- cloneResponse?: boolean;
20
+ social: <FetchOptions extends _better_auth_core.ClientFetchOption<Partial<{
21
+ provider: unknown;
22
+ callbackURL?: string | undefined;
23
+ newUserCallbackURL?: string | undefined;
24
+ errorCallbackURL?: string | undefined;
25
+ disableRedirect?: boolean | undefined;
26
+ idToken?: {
27
+ token: string;
28
+ nonce?: string | undefined;
29
+ accessToken?: string | undefined;
30
+ refreshToken?: string | undefined;
31
+ expiresAt?: number | undefined;
42
32
  } | undefined;
43
- timeout?: number | undefined;
44
- customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
45
- plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
46
- baseURL?: string | undefined;
47
- throw?: boolean | undefined;
48
- auth?: ({
49
- type: "Bearer";
50
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
51
- } | {
52
- type: "Basic";
53
- username: string | (() => string | undefined) | undefined;
54
- password: string | (() => string | undefined) | undefined;
55
- } | {
56
- type: "Custom";
57
- prefix: string | (() => string | undefined) | undefined;
58
- value: string | (() => string | undefined) | undefined;
59
- }) | undefined;
60
- body?: (Partial<{
61
- provider: unknown;
62
- callbackURL?: string | undefined;
63
- newUserCallbackURL?: string | undefined;
64
- errorCallbackURL?: string | undefined;
65
- disableRedirect?: boolean | undefined;
66
- idToken?: {
67
- token: string;
68
- nonce?: string | undefined;
69
- accessToken?: string | undefined;
70
- refreshToken?: string | undefined;
71
- expiresAt?: number | undefined;
72
- } | undefined;
73
- scopes?: string[] | undefined;
74
- requestSignUp?: boolean | undefined;
75
- loginHint?: string | undefined;
76
- }> & Record<string, any>) | undefined;
77
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
78
- params?: Record<string, any> | undefined;
79
- duplex?: "full" | "half" | undefined;
80
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
81
- retry?: _better_fetch_fetch.RetryOptions | undefined;
82
- retryAttempt?: number | undefined;
83
- output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
84
- errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
85
- disableValidation?: boolean | undefined;
86
- }>(data_0: better_auth.Prettify<{
33
+ scopes?: string[] | undefined;
34
+ requestSignUp?: boolean | undefined;
35
+ loginHint?: string | undefined;
36
+ additionalData?: Record<string, any> | undefined;
37
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: node_modules_better_auth_dist_helper_DU33OcfW_d_mts.u<{
87
38
  provider: unknown;
88
39
  callbackURL?: string | undefined;
89
40
  newUserCallbackURL?: string | undefined;
@@ -99,6 +50,7 @@ declare const authClient: {
99
50
  scopes?: string[] | undefined;
100
51
  requestSignUp?: boolean | undefined;
101
52
  loginHint?: string | undefined;
53
+ additionalData?: Record<string, any> | undefined;
102
54
  } & {
103
55
  fetchOptions?: FetchOptions | undefined;
104
56
  }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<NonNullable<{
@@ -118,141 +70,35 @@ declare const authClient: {
118
70
  url: string;
119
71
  redirect: boolean;
120
72
  }>, {
121
- code?: string;
122
- message?: string;
73
+ code?: string | undefined;
74
+ message?: string | undefined;
123
75
  }, FetchOptions["throw"] extends true ? true : false>>;
124
76
  };
125
77
  } & {
126
- signOut: <FetchOptions extends {
127
- headers?: (HeadersInit & (HeadersInit | {
128
- accept: "application/json" | "text/plain" | "application/octet-stream";
129
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
130
- authorization: "Bearer" | "Basic";
131
- })) | undefined;
132
- method?: string | undefined;
133
- signal?: (AbortSignal | null) | undefined;
134
- cache?: RequestCache | undefined;
135
- credentials?: RequestCredentials | undefined;
136
- integrity?: string | undefined;
137
- keepalive?: boolean | undefined;
138
- mode?: RequestMode | undefined;
139
- priority?: RequestPriority | undefined;
140
- redirect?: RequestRedirect | undefined;
141
- referrer?: string | undefined;
142
- referrerPolicy?: ReferrerPolicy | undefined;
143
- window?: null | undefined;
144
- onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
145
- onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
146
- onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
147
- onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
148
- onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
149
- hookOptions?: {
150
- cloneResponse?: boolean;
151
- } | undefined;
152
- timeout?: number | undefined;
153
- customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
154
- plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
155
- baseURL?: string | undefined;
156
- throw?: boolean | undefined;
157
- auth?: ({
158
- type: "Bearer";
159
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
160
- } | {
161
- type: "Basic";
162
- username: string | (() => string | undefined) | undefined;
163
- password: string | (() => string | undefined) | undefined;
164
- } | {
165
- type: "Custom";
166
- prefix: string | (() => string | undefined) | undefined;
167
- value: string | (() => string | undefined) | undefined;
168
- }) | undefined;
169
- body?: undefined;
170
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
171
- params?: Record<string, any> | undefined;
172
- duplex?: "full" | "half" | undefined;
173
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
174
- retry?: _better_fetch_fetch.RetryOptions | undefined;
175
- retryAttempt?: number | undefined;
176
- output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
177
- errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
178
- disableValidation?: boolean | undefined;
179
- }>(data_0?: better_auth.Prettify<{
78
+ signOut: <FetchOptions extends _better_auth_core.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: node_modules_better_auth_dist_helper_DU33OcfW_d_mts.u<{
180
79
  query?: Record<string, any> | undefined;
181
80
  fetchOptions?: FetchOptions | undefined;
182
81
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
183
82
  success: boolean;
184
83
  }, {
185
- code?: string;
186
- message?: string;
84
+ code?: string | undefined;
85
+ message?: string | undefined;
187
86
  }, FetchOptions["throw"] extends true ? true : false>>;
188
87
  } & {
189
88
  signUp: {
190
- email: <FetchOptions extends {
191
- headers?: (HeadersInit & (HeadersInit | {
192
- accept: "application/json" | "text/plain" | "application/octet-stream";
193
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
194
- authorization: "Bearer" | "Basic";
195
- })) | undefined;
196
- method?: string | undefined;
197
- signal?: (AbortSignal | null) | undefined;
198
- cache?: RequestCache | undefined;
199
- credentials?: RequestCredentials | undefined;
200
- integrity?: string | undefined;
201
- keepalive?: boolean | undefined;
202
- mode?: RequestMode | undefined;
203
- priority?: RequestPriority | undefined;
204
- redirect?: RequestRedirect | undefined;
205
- referrer?: string | undefined;
206
- referrerPolicy?: ReferrerPolicy | undefined;
207
- window?: null | undefined;
208
- onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
209
- onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
210
- onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
211
- onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
212
- onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
213
- hookOptions?: {
214
- cloneResponse?: boolean;
215
- } | undefined;
216
- timeout?: number | undefined;
217
- customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
218
- plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
219
- baseURL?: string | undefined;
220
- throw?: boolean | undefined;
221
- auth?: ({
222
- type: "Bearer";
223
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
224
- } | {
225
- type: "Basic";
226
- username: string | (() => string | undefined) | undefined;
227
- password: string | (() => string | undefined) | undefined;
228
- } | {
229
- type: "Custom";
230
- prefix: string | (() => string | undefined) | undefined;
231
- value: string | (() => string | undefined) | undefined;
232
- }) | undefined;
233
- body?: (Partial<{
234
- name: string;
235
- email: string;
236
- password: string;
237
- image?: string;
238
- callbackURL?: string;
239
- rememberMe?: boolean;
240
- }> & Record<string, any>) | undefined;
241
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
242
- params?: Record<string, any> | undefined;
243
- duplex?: "full" | "half" | undefined;
244
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
245
- retry?: _better_fetch_fetch.RetryOptions | undefined;
246
- retryAttempt?: number | undefined;
247
- output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
248
- errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
249
- disableValidation?: boolean | undefined;
250
- }>(data_0: better_auth.Prettify<{
89
+ email: <FetchOptions extends _better_auth_core.ClientFetchOption<Partial<{
90
+ name: string;
91
+ email: string;
92
+ password: string;
93
+ image?: string | undefined;
94
+ callbackURL?: string | undefined;
95
+ rememberMe?: boolean | undefined;
96
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: node_modules_better_auth_dist_helper_DU33OcfW_d_mts.u<{
251
97
  email: string;
252
98
  name: string;
253
99
  password: string;
254
- image?: string;
255
- callbackURL?: string;
100
+ image?: string | undefined;
101
+ callbackURL?: string | undefined;
256
102
  fetchOptions?: FetchOptions | undefined;
257
103
  }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<NonNullable<{
258
104
  token: null;
@@ -277,71 +123,18 @@ declare const authClient: {
277
123
  updatedAt: Date;
278
124
  };
279
125
  }>, {
280
- code?: string;
281
- message?: string;
126
+ code?: string | undefined;
127
+ message?: string | undefined;
282
128
  }, FetchOptions["throw"] extends true ? true : false>>;
283
129
  };
284
130
  } & {
285
131
  signIn: {
286
- email: <FetchOptions extends {
287
- headers?: (HeadersInit & (HeadersInit | {
288
- accept: "application/json" | "text/plain" | "application/octet-stream";
289
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
290
- authorization: "Bearer" | "Basic";
291
- })) | undefined;
292
- method?: string | undefined;
293
- signal?: (AbortSignal | null) | undefined;
294
- cache?: RequestCache | undefined;
295
- credentials?: RequestCredentials | undefined;
296
- integrity?: string | undefined;
297
- keepalive?: boolean | undefined;
298
- mode?: RequestMode | undefined;
299
- priority?: RequestPriority | undefined;
300
- redirect?: RequestRedirect | undefined;
301
- referrer?: string | undefined;
302
- referrerPolicy?: ReferrerPolicy | undefined;
303
- window?: null | undefined;
304
- onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
305
- onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
306
- onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
307
- onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
308
- onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
309
- hookOptions?: {
310
- cloneResponse?: boolean;
311
- } | undefined;
312
- timeout?: number | undefined;
313
- customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
314
- plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
315
- baseURL?: string | undefined;
316
- throw?: boolean | undefined;
317
- auth?: ({
318
- type: "Bearer";
319
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
320
- } | {
321
- type: "Basic";
322
- username: string | (() => string | undefined) | undefined;
323
- password: string | (() => string | undefined) | undefined;
324
- } | {
325
- type: "Custom";
326
- prefix: string | (() => string | undefined) | undefined;
327
- value: string | (() => string | undefined) | undefined;
328
- }) | undefined;
329
- body?: (Partial<{
330
- email: string;
331
- password: string;
332
- callbackURL?: string | undefined;
333
- rememberMe?: boolean | undefined;
334
- }> & Record<string, any>) | undefined;
335
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
336
- params?: Record<string, any> | undefined;
337
- duplex?: "full" | "half" | undefined;
338
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
339
- retry?: _better_fetch_fetch.RetryOptions | undefined;
340
- retryAttempt?: number | undefined;
341
- output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
342
- errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
343
- disableValidation?: boolean | undefined;
344
- }>(data_0: better_auth.Prettify<{
132
+ email: <FetchOptions extends _better_auth_core.ClientFetchOption<Partial<{
133
+ email: string;
134
+ password: string;
135
+ callbackURL?: string | undefined;
136
+ rememberMe?: boolean | undefined;
137
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: node_modules_better_auth_dist_helper_DU33OcfW_d_mts.u<{
345
138
  email: string;
346
139
  password: string;
347
140
  callbackURL?: string | undefined;
@@ -362,138 +155,17 @@ declare const authClient: {
362
155
  updatedAt: Date;
363
156
  };
364
157
  }, {
365
- code?: string;
366
- message?: string;
158
+ code?: string | undefined;
159
+ message?: string | undefined;
367
160
  }, FetchOptions["throw"] extends true ? true : false>>;
368
161
  };
369
162
  } & {
370
- forgetPassword: <FetchOptions extends {
371
- headers?: (HeadersInit & (HeadersInit | {
372
- accept: "application/json" | "text/plain" | "application/octet-stream";
373
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
374
- authorization: "Bearer" | "Basic";
375
- })) | undefined;
376
- method?: string | undefined;
377
- signal?: (AbortSignal | null) | undefined;
378
- cache?: RequestCache | undefined;
379
- credentials?: RequestCredentials | undefined;
380
- integrity?: string | undefined;
381
- keepalive?: boolean | undefined;
382
- mode?: RequestMode | undefined;
383
- priority?: RequestPriority | undefined;
384
- redirect?: RequestRedirect | undefined;
385
- referrer?: string | undefined;
386
- referrerPolicy?: ReferrerPolicy | undefined;
387
- window?: null | undefined;
388
- onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
389
- onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
390
- onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
391
- onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
392
- onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
393
- hookOptions?: {
394
- cloneResponse?: boolean;
395
- } | undefined;
396
- timeout?: number | undefined;
397
- customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
398
- plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
399
- baseURL?: string | undefined;
400
- throw?: boolean | undefined;
401
- auth?: ({
402
- type: "Bearer";
403
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
404
- } | {
405
- type: "Basic";
406
- username: string | (() => string | undefined) | undefined;
407
- password: string | (() => string | undefined) | undefined;
408
- } | {
409
- type: "Custom";
410
- prefix: string | (() => string | undefined) | undefined;
411
- value: string | (() => string | undefined) | undefined;
412
- }) | undefined;
413
- body?: (Partial<{
414
- email: string;
415
- redirectTo?: string | undefined;
416
- }> & Record<string, any>) | undefined;
417
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
418
- params?: Record<string, any> | undefined;
419
- duplex?: "full" | "half" | undefined;
420
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
421
- retry?: _better_fetch_fetch.RetryOptions | undefined;
422
- retryAttempt?: number | undefined;
423
- output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
424
- errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
425
- disableValidation?: boolean | undefined;
426
- }>(data_0: better_auth.Prettify<{
427
- email: string;
428
- redirectTo?: string | undefined;
429
- } & {
430
- fetchOptions?: FetchOptions | undefined;
431
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
432
- status: boolean;
433
- }, {
434
- code?: string;
435
- message?: string;
436
- }, FetchOptions["throw"] extends true ? true : false>>;
437
- } & {
438
- resetPassword: <FetchOptions extends {
439
- headers?: (HeadersInit & (HeadersInit | {
440
- accept: "application/json" | "text/plain" | "application/octet-stream";
441
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
442
- authorization: "Bearer" | "Basic";
443
- })) | undefined;
444
- method?: string | undefined;
445
- signal?: (AbortSignal | null) | undefined;
446
- cache?: RequestCache | undefined;
447
- credentials?: RequestCredentials | undefined;
448
- integrity?: string | undefined;
449
- keepalive?: boolean | undefined;
450
- mode?: RequestMode | undefined;
451
- priority?: RequestPriority | undefined;
452
- redirect?: RequestRedirect | undefined;
453
- referrer?: string | undefined;
454
- referrerPolicy?: ReferrerPolicy | undefined;
455
- window?: null | undefined;
456
- onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
457
- onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
458
- onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
459
- onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
460
- onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
461
- hookOptions?: {
462
- cloneResponse?: boolean;
463
- } | undefined;
464
- timeout?: number | undefined;
465
- customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
466
- plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
467
- baseURL?: string | undefined;
468
- throw?: boolean | undefined;
469
- auth?: ({
470
- type: "Bearer";
471
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
472
- } | {
473
- type: "Basic";
474
- username: string | (() => string | undefined) | undefined;
475
- password: string | (() => string | undefined) | undefined;
476
- } | {
477
- type: "Custom";
478
- prefix: string | (() => string | undefined) | undefined;
479
- value: string | (() => string | undefined) | undefined;
480
- }) | undefined;
481
- body?: (Partial<{
482
- newPassword: string;
483
- token?: string | undefined;
484
- }> & Record<string, any>) | undefined;
485
- query?: (Partial<{
486
- token?: string | undefined;
487
- }> & Record<string, any>) | undefined;
488
- params?: Record<string, any> | undefined;
489
- duplex?: "full" | "half" | undefined;
490
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
491
- retry?: _better_fetch_fetch.RetryOptions | undefined;
492
- retryAttempt?: number | undefined;
493
- output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
494
- errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
495
- disableValidation?: boolean | undefined;
496
- }>(data_0: better_auth.Prettify<{
163
+ resetPassword: <FetchOptions extends _better_auth_core.ClientFetchOption<Partial<{
164
+ newPassword: string;
165
+ token?: string | undefined;
166
+ }> & Record<string, any>, Partial<{
167
+ token?: string | undefined;
168
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: node_modules_better_auth_dist_helper_DU33OcfW_d_mts.u<{
497
169
  newPassword: string;
498
170
  token?: string | undefined;
499
171
  } & {
@@ -501,67 +173,14 @@ declare const authClient: {
501
173
  }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
502
174
  status: boolean;
503
175
  }, {
504
- code?: string;
505
- message?: string;
176
+ code?: string | undefined;
177
+ message?: string | undefined;
506
178
  }, FetchOptions["throw"] extends true ? true : false>>;
507
179
  } & {
508
- verifyEmail: <FetchOptions extends {
509
- headers?: (HeadersInit & (HeadersInit | {
510
- accept: "application/json" | "text/plain" | "application/octet-stream";
511
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
512
- authorization: "Bearer" | "Basic";
513
- })) | undefined;
514
- method?: string | undefined;
515
- signal?: (AbortSignal | null) | undefined;
516
- cache?: RequestCache | undefined;
517
- credentials?: RequestCredentials | undefined;
518
- integrity?: string | undefined;
519
- keepalive?: boolean | undefined;
520
- mode?: RequestMode | undefined;
521
- priority?: RequestPriority | undefined;
522
- redirect?: RequestRedirect | undefined;
523
- referrer?: string | undefined;
524
- referrerPolicy?: ReferrerPolicy | undefined;
525
- window?: null | undefined;
526
- onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
527
- onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
528
- onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
529
- onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
530
- onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
531
- hookOptions?: {
532
- cloneResponse?: boolean;
533
- } | undefined;
534
- timeout?: number | undefined;
535
- customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
536
- plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
537
- baseURL?: string | undefined;
538
- throw?: boolean | undefined;
539
- auth?: ({
540
- type: "Bearer";
541
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
542
- } | {
543
- type: "Basic";
544
- username: string | (() => string | undefined) | undefined;
545
- password: string | (() => string | undefined) | undefined;
546
- } | {
547
- type: "Custom";
548
- prefix: string | (() => string | undefined) | undefined;
549
- value: string | (() => string | undefined) | undefined;
550
- }) | undefined;
551
- body?: undefined;
552
- query?: (Partial<{
553
- token: string;
554
- callbackURL?: string | undefined;
555
- }> & Record<string, any>) | undefined;
556
- params?: Record<string, any> | undefined;
557
- duplex?: "full" | "half" | undefined;
558
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
559
- retry?: _better_fetch_fetch.RetryOptions | undefined;
560
- retryAttempt?: number | undefined;
561
- output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
562
- errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
563
- disableValidation?: boolean | undefined;
564
- }>(data_0: better_auth.Prettify<{
180
+ verifyEmail: <FetchOptions extends _better_auth_core.ClientFetchOption<never, Partial<{
181
+ token: string;
182
+ callbackURL?: string | undefined;
183
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: node_modules_better_auth_dist_helper_DU33OcfW_d_mts.u<{
565
184
  query: {
566
185
  token: string;
567
186
  callbackURL?: string | undefined;
@@ -569,6 +188,53 @@ declare const authClient: {
569
188
  fetchOptions?: FetchOptions | undefined;
570
189
  }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<NonNullable<void | {
571
190
  status: boolean;
191
+ }>, {
192
+ code?: string | undefined;
193
+ message?: string | undefined;
194
+ }, FetchOptions["throw"] extends true ? true : false>>;
195
+ } & {
196
+ sendVerificationEmail: <FetchOptions extends _better_auth_core.ClientFetchOption<Partial<{
197
+ email: string;
198
+ callbackURL?: string | undefined;
199
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: node_modules_better_auth_dist_helper_DU33OcfW_d_mts.u<{
200
+ email: string;
201
+ callbackURL?: string | undefined;
202
+ } & {
203
+ fetchOptions?: FetchOptions | undefined;
204
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
205
+ status: boolean;
206
+ }, {
207
+ code?: string | undefined;
208
+ message?: string | undefined;
209
+ }, FetchOptions["throw"] extends true ? true : false>>;
210
+ } & {
211
+ changeEmail: <FetchOptions extends _better_auth_core.ClientFetchOption<Partial<{
212
+ newEmail: string;
213
+ callbackURL?: string | undefined;
214
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: node_modules_better_auth_dist_helper_DU33OcfW_d_mts.u<{
215
+ newEmail: string;
216
+ callbackURL?: string | undefined;
217
+ } & {
218
+ fetchOptions?: FetchOptions | undefined;
219
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
220
+ status: boolean;
221
+ }, {
222
+ code?: string | undefined;
223
+ message?: string | undefined;
224
+ }, FetchOptions["throw"] extends true ? true : false>>;
225
+ } & {
226
+ changePassword: <FetchOptions extends _better_auth_core.ClientFetchOption<Partial<{
227
+ newPassword: string;
228
+ currentPassword: string;
229
+ revokeOtherSessions?: boolean | undefined;
230
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: node_modules_better_auth_dist_helper_DU33OcfW_d_mts.u<{
231
+ newPassword: string;
232
+ currentPassword: string;
233
+ revokeOtherSessions?: boolean | undefined;
234
+ } & {
235
+ fetchOptions?: FetchOptions | undefined;
236
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
237
+ token: string | null;
572
238
  user: {
573
239
  id: string;
574
240
  email: string;
@@ -578,631 +244,79 @@ declare const authClient: {
578
244
  createdAt: Date;
579
245
  updatedAt: Date;
580
246
  };
581
- } | {
247
+ }, {
248
+ code?: string | undefined;
249
+ message?: string | undefined;
250
+ }, FetchOptions["throw"] extends true ? true : false>>;
251
+ } & {
252
+ updateUser: <FetchOptions extends _better_auth_core.ClientFetchOption<Partial<Partial<{}> & {
253
+ name?: string | undefined;
254
+ image?: string | undefined;
255
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: node_modules_better_auth_dist_helper_DU33OcfW_d_mts.u<{
256
+ image?: (string | null) | undefined;
257
+ name?: string | undefined;
258
+ fetchOptions?: FetchOptions | undefined;
259
+ } & Partial<{}>> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
582
260
  status: boolean;
583
- user: null;
584
- }>, {
585
- code?: string;
586
- message?: string;
261
+ }, {
262
+ code?: string | undefined;
263
+ message?: string | undefined;
587
264
  }, FetchOptions["throw"] extends true ? true : false>>;
588
265
  } & {
589
- sendVerificationEmail: <FetchOptions extends {
590
- headers?: (HeadersInit & (HeadersInit | {
591
- accept: "application/json" | "text/plain" | "application/octet-stream";
592
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
593
- authorization: "Bearer" | "Basic";
594
- })) | undefined;
595
- method?: string | undefined;
596
- signal?: (AbortSignal | null) | undefined;
597
- cache?: RequestCache | undefined;
598
- credentials?: RequestCredentials | undefined;
599
- integrity?: string | undefined;
600
- keepalive?: boolean | undefined;
601
- mode?: RequestMode | undefined;
602
- priority?: RequestPriority | undefined;
603
- redirect?: RequestRedirect | undefined;
604
- referrer?: string | undefined;
605
- referrerPolicy?: ReferrerPolicy | undefined;
606
- window?: null | undefined;
607
- onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
608
- onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
609
- onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
610
- onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
611
- onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
612
- hookOptions?: {
613
- cloneResponse?: boolean;
614
- } | undefined;
615
- timeout?: number | undefined;
616
- customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
617
- plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
618
- baseURL?: string | undefined;
619
- throw?: boolean | undefined;
620
- auth?: ({
621
- type: "Bearer";
622
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
623
- } | {
624
- type: "Basic";
625
- username: string | (() => string | undefined) | undefined;
626
- password: string | (() => string | undefined) | undefined;
627
- } | {
628
- type: "Custom";
629
- prefix: string | (() => string | undefined) | undefined;
630
- value: string | (() => string | undefined) | undefined;
631
- }) | undefined;
632
- body?: (Partial<{
633
- email: string;
634
- callbackURL?: string | undefined;
635
- }> & Record<string, any>) | undefined;
636
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
637
- params?: Record<string, any> | undefined;
638
- duplex?: "full" | "half" | undefined;
639
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
640
- retry?: _better_fetch_fetch.RetryOptions | undefined;
641
- retryAttempt?: number | undefined;
642
- output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
643
- errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
644
- disableValidation?: boolean | undefined;
645
- }>(data_0: better_auth.Prettify<{
646
- email: string;
647
- callbackURL?: string | undefined;
648
- } & {
649
- fetchOptions?: FetchOptions | undefined;
650
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
651
- status: boolean;
652
- }, {
653
- code?: string;
654
- message?: string;
655
- }, FetchOptions["throw"] extends true ? true : false>>;
656
- } & {
657
- changeEmail: <FetchOptions extends {
658
- headers?: (HeadersInit & (HeadersInit | {
659
- accept: "application/json" | "text/plain" | "application/octet-stream";
660
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
661
- authorization: "Bearer" | "Basic";
662
- })) | undefined;
663
- method?: string | undefined;
664
- signal?: (AbortSignal | null) | undefined;
665
- cache?: RequestCache | undefined;
666
- credentials?: RequestCredentials | undefined;
667
- integrity?: string | undefined;
668
- keepalive?: boolean | undefined;
669
- mode?: RequestMode | undefined;
670
- priority?: RequestPriority | undefined;
671
- redirect?: RequestRedirect | undefined;
672
- referrer?: string | undefined;
673
- referrerPolicy?: ReferrerPolicy | undefined;
674
- window?: null | undefined;
675
- onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
676
- onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
677
- onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
678
- onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
679
- onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
680
- hookOptions?: {
681
- cloneResponse?: boolean;
682
- } | undefined;
683
- timeout?: number | undefined;
684
- customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
685
- plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
686
- baseURL?: string | undefined;
687
- throw?: boolean | undefined;
688
- auth?: ({
689
- type: "Bearer";
690
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
691
- } | {
692
- type: "Basic";
693
- username: string | (() => string | undefined) | undefined;
694
- password: string | (() => string | undefined) | undefined;
695
- } | {
696
- type: "Custom";
697
- prefix: string | (() => string | undefined) | undefined;
698
- value: string | (() => string | undefined) | undefined;
699
- }) | undefined;
700
- body?: (Partial<{
701
- newEmail: string;
702
- callbackURL?: string | undefined;
703
- }> & Record<string, any>) | undefined;
704
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
705
- params?: Record<string, any> | undefined;
706
- duplex?: "full" | "half" | undefined;
707
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
708
- retry?: _better_fetch_fetch.RetryOptions | undefined;
709
- retryAttempt?: number | undefined;
710
- output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
711
- errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
712
- disableValidation?: boolean | undefined;
713
- }>(data_0: better_auth.Prettify<{
714
- newEmail: string;
715
- callbackURL?: string | undefined;
716
- } & {
717
- fetchOptions?: FetchOptions | undefined;
718
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
719
- status: boolean;
720
- }, {
721
- code?: string;
722
- message?: string;
723
- }, FetchOptions["throw"] extends true ? true : false>>;
724
- } & {
725
- changePassword: <FetchOptions extends {
726
- headers?: (HeadersInit & (HeadersInit | {
727
- accept: "application/json" | "text/plain" | "application/octet-stream";
728
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
729
- authorization: "Bearer" | "Basic";
730
- })) | undefined;
731
- method?: string | undefined;
732
- signal?: (AbortSignal | null) | undefined;
733
- cache?: RequestCache | undefined;
734
- credentials?: RequestCredentials | undefined;
735
- integrity?: string | undefined;
736
- keepalive?: boolean | undefined;
737
- mode?: RequestMode | undefined;
738
- priority?: RequestPriority | undefined;
739
- redirect?: RequestRedirect | undefined;
740
- referrer?: string | undefined;
741
- referrerPolicy?: ReferrerPolicy | undefined;
742
- window?: null | undefined;
743
- onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
744
- onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
745
- onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
746
- onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
747
- onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
748
- hookOptions?: {
749
- cloneResponse?: boolean;
750
- } | undefined;
751
- timeout?: number | undefined;
752
- customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
753
- plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
754
- baseURL?: string | undefined;
755
- throw?: boolean | undefined;
756
- auth?: ({
757
- type: "Bearer";
758
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
759
- } | {
760
- type: "Basic";
761
- username: string | (() => string | undefined) | undefined;
762
- password: string | (() => string | undefined) | undefined;
763
- } | {
764
- type: "Custom";
765
- prefix: string | (() => string | undefined) | undefined;
766
- value: string | (() => string | undefined) | undefined;
767
- }) | undefined;
768
- body?: (Partial<{
769
- newPassword: string;
770
- currentPassword: string;
771
- revokeOtherSessions?: boolean | undefined;
772
- }> & Record<string, any>) | undefined;
773
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
774
- params?: Record<string, any> | undefined;
775
- duplex?: "full" | "half" | undefined;
776
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
777
- retry?: _better_fetch_fetch.RetryOptions | undefined;
778
- retryAttempt?: number | undefined;
779
- output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
780
- errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
781
- disableValidation?: boolean | undefined;
782
- }>(data_0: better_auth.Prettify<{
783
- newPassword: string;
784
- currentPassword: string;
785
- revokeOtherSessions?: boolean | undefined;
786
- } & {
787
- fetchOptions?: FetchOptions | undefined;
788
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
789
- token: string | null;
790
- user: {
791
- id: string;
792
- email: string;
793
- name: string;
794
- image: string | null | undefined;
795
- emailVerified: boolean;
796
- createdAt: Date;
797
- updatedAt: Date;
798
- };
799
- }, {
800
- code?: string;
801
- message?: string;
802
- }, FetchOptions["throw"] extends true ? true : false>>;
803
- } & {
804
- updateUser: <FetchOptions extends {
805
- headers?: (HeadersInit & (HeadersInit | {
806
- accept: "application/json" | "text/plain" | "application/octet-stream";
807
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
808
- authorization: "Bearer" | "Basic";
809
- })) | undefined;
810
- method?: string | undefined;
811
- signal?: (AbortSignal | null) | undefined;
812
- cache?: RequestCache | undefined;
813
- credentials?: RequestCredentials | undefined;
814
- integrity?: string | undefined;
815
- keepalive?: boolean | undefined;
816
- mode?: RequestMode | undefined;
817
- priority?: RequestPriority | undefined;
818
- redirect?: RequestRedirect | undefined;
819
- referrer?: string | undefined;
820
- referrerPolicy?: ReferrerPolicy | undefined;
821
- window?: null | undefined;
822
- onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
823
- onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
824
- onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
825
- onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
826
- onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
827
- hookOptions?: {
828
- cloneResponse?: boolean;
829
- } | undefined;
830
- timeout?: number | undefined;
831
- customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
832
- plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
833
- baseURL?: string | undefined;
834
- throw?: boolean | undefined;
835
- auth?: ({
836
- type: "Bearer";
837
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
838
- } | {
839
- type: "Basic";
840
- username: string | (() => string | undefined) | undefined;
841
- password: string | (() => string | undefined) | undefined;
842
- } | {
843
- type: "Custom";
844
- prefix: string | (() => string | undefined) | undefined;
845
- value: string | (() => string | undefined) | undefined;
846
- }) | undefined;
847
- body?: (Partial<Partial<{}> & {
848
- name?: string;
849
- image?: string;
850
- }> & Record<string, any>) | undefined;
851
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
852
- params?: Record<string, any> | undefined;
853
- duplex?: "full" | "half" | undefined;
854
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
855
- retry?: _better_fetch_fetch.RetryOptions | undefined;
856
- retryAttempt?: number | undefined;
857
- output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
858
- errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
859
- disableValidation?: boolean | undefined;
860
- }>(data_0?: better_auth.Prettify<{
861
- image?: string | null;
862
- name?: string;
863
- fetchOptions?: FetchOptions | undefined;
864
- } & Partial<{}>> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
865
- status: boolean;
866
- }, {
867
- code?: string;
868
- message?: string;
869
- }, FetchOptions["throw"] extends true ? true : false>>;
870
- } & {
871
- deleteUser: <FetchOptions extends {
872
- headers?: (HeadersInit & (HeadersInit | {
873
- accept: "application/json" | "text/plain" | "application/octet-stream";
874
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
875
- authorization: "Bearer" | "Basic";
876
- })) | undefined;
877
- method?: string | undefined;
878
- signal?: (AbortSignal | null) | undefined;
879
- cache?: RequestCache | undefined;
880
- credentials?: RequestCredentials | undefined;
881
- integrity?: string | undefined;
882
- keepalive?: boolean | undefined;
883
- mode?: RequestMode | undefined;
884
- priority?: RequestPriority | undefined;
885
- redirect?: RequestRedirect | undefined;
886
- referrer?: string | undefined;
887
- referrerPolicy?: ReferrerPolicy | undefined;
888
- window?: null | undefined;
889
- onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
890
- onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
891
- onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
892
- onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
893
- onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
894
- hookOptions?: {
895
- cloneResponse?: boolean;
896
- } | undefined;
897
- timeout?: number | undefined;
898
- customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
899
- plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
900
- baseURL?: string | undefined;
901
- throw?: boolean | undefined;
902
- auth?: ({
903
- type: "Bearer";
904
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
905
- } | {
906
- type: "Basic";
907
- username: string | (() => string | undefined) | undefined;
908
- password: string | (() => string | undefined) | undefined;
909
- } | {
910
- type: "Custom";
911
- prefix: string | (() => string | undefined) | undefined;
912
- value: string | (() => string | undefined) | undefined;
913
- }) | undefined;
914
- body?: (Partial<{
915
- callbackURL?: string | undefined;
916
- password?: string | undefined;
917
- token?: string | undefined;
918
- }> & Record<string, any>) | undefined;
919
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
920
- params?: Record<string, any> | undefined;
921
- duplex?: "full" | "half" | undefined;
922
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
923
- retry?: _better_fetch_fetch.RetryOptions | undefined;
924
- retryAttempt?: number | undefined;
925
- output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
926
- errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
927
- disableValidation?: boolean | undefined;
928
- }>(data_0?: better_auth.Prettify<{
266
+ deleteUser: <FetchOptions extends _better_auth_core.ClientFetchOption<Partial<{
929
267
  callbackURL?: string | undefined;
930
268
  password?: string | undefined;
931
269
  token?: string | undefined;
932
- } & {
933
- fetchOptions?: FetchOptions | undefined;
934
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
935
- success: boolean;
936
- message: string;
937
- }, {
938
- code?: string;
939
- message?: string;
940
- }, FetchOptions["throw"] extends true ? true : false>>;
941
- } & {
942
- resetPassword: {
943
- ":token": <FetchOptions extends {
944
- headers?: (HeadersInit & (HeadersInit | {
945
- accept: "application/json" | "text/plain" | "application/octet-stream";
946
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
947
- authorization: "Bearer" | "Basic";
948
- })) | undefined;
949
- method?: string | undefined;
950
- signal?: (AbortSignal | null) | undefined;
951
- cache?: RequestCache | undefined;
952
- credentials?: RequestCredentials | undefined;
953
- integrity?: string | undefined;
954
- keepalive?: boolean | undefined;
955
- mode?: RequestMode | undefined;
956
- priority?: RequestPriority | undefined;
957
- redirect?: RequestRedirect | undefined;
958
- referrer?: string | undefined;
959
- referrerPolicy?: ReferrerPolicy | undefined;
960
- window?: null | undefined;
961
- onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
962
- onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
963
- onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
964
- onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
965
- onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
966
- hookOptions?: {
967
- cloneResponse?: boolean;
968
- } | undefined;
969
- timeout?: number | undefined;
970
- customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
971
- plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
972
- baseURL?: string | undefined;
973
- throw?: boolean | undefined;
974
- auth?: ({
975
- type: "Bearer";
976
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
977
- } | {
978
- type: "Basic";
979
- username: string | (() => string | undefined) | undefined;
980
- password: string | (() => string | undefined) | undefined;
981
- } | {
982
- type: "Custom";
983
- prefix: string | (() => string | undefined) | undefined;
984
- value: string | (() => string | undefined) | undefined;
985
- }) | undefined;
986
- body?: undefined;
987
- query?: (Partial<{
988
- callbackURL: string;
989
- }> & Record<string, any>) | undefined;
990
- params?: {
991
- token: string;
992
- } | undefined;
993
- duplex?: "full" | "half" | undefined;
994
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
995
- retry?: _better_fetch_fetch.RetryOptions | undefined;
996
- retryAttempt?: number | undefined;
997
- output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
998
- errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
999
- disableValidation?: boolean | undefined;
1000
- }>(data_0: better_auth.Prettify<{
1001
- query: {
1002
- callbackURL: string;
1003
- };
1004
- fetchOptions?: FetchOptions | undefined;
1005
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<never, {
1006
- code?: string;
1007
- message?: string;
1008
- }, FetchOptions["throw"] extends true ? true : false>>;
1009
- };
1010
- } & {
1011
- requestPasswordReset: <FetchOptions extends {
1012
- headers?: (HeadersInit & (HeadersInit | {
1013
- accept: "application/json" | "text/plain" | "application/octet-stream";
1014
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1015
- authorization: "Bearer" | "Basic";
1016
- })) | undefined;
1017
- method?: string | undefined;
1018
- signal?: (AbortSignal | null) | undefined;
1019
- cache?: RequestCache | undefined;
1020
- credentials?: RequestCredentials | undefined;
1021
- integrity?: string | undefined;
1022
- keepalive?: boolean | undefined;
1023
- mode?: RequestMode | undefined;
1024
- priority?: RequestPriority | undefined;
1025
- redirect?: RequestRedirect | undefined;
1026
- referrer?: string | undefined;
1027
- referrerPolicy?: ReferrerPolicy | undefined;
1028
- window?: null | undefined;
1029
- onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
1030
- onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
1031
- onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
1032
- onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
1033
- onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
1034
- hookOptions?: {
1035
- cloneResponse?: boolean;
1036
- } | undefined;
1037
- timeout?: number | undefined;
1038
- customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
1039
- plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
1040
- baseURL?: string | undefined;
1041
- throw?: boolean | undefined;
1042
- auth?: ({
1043
- type: "Bearer";
1044
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1045
- } | {
1046
- type: "Basic";
1047
- username: string | (() => string | undefined) | undefined;
1048
- password: string | (() => string | undefined) | undefined;
1049
- } | {
1050
- type: "Custom";
1051
- prefix: string | (() => string | undefined) | undefined;
1052
- value: string | (() => string | undefined) | undefined;
1053
- }) | undefined;
1054
- body?: (Partial<{
1055
- email: string;
1056
- redirectTo?: string | undefined;
1057
- }> & Record<string, any>) | undefined;
1058
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1059
- params?: Record<string, any> | undefined;
1060
- duplex?: "full" | "half" | undefined;
1061
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1062
- retry?: _better_fetch_fetch.RetryOptions | undefined;
1063
- retryAttempt?: number | undefined;
1064
- output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1065
- errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
1066
- disableValidation?: boolean | undefined;
1067
- }>(data_0: better_auth.Prettify<{
1068
- email: string;
1069
- redirectTo?: string | undefined;
1070
- } & {
1071
- fetchOptions?: FetchOptions | undefined;
1072
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
1073
- status: boolean;
1074
- message: string;
1075
- }, {
1076
- code?: string;
1077
- message?: string;
1078
- }, FetchOptions["throw"] extends true ? true : false>>;
1079
- } & {
1080
- resetPassword: {
1081
- ":token": <FetchOptions extends {
1082
- headers?: (HeadersInit & (HeadersInit | {
1083
- accept: "application/json" | "text/plain" | "application/octet-stream";
1084
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1085
- authorization: "Bearer" | "Basic";
1086
- })) | undefined;
1087
- method?: string | undefined;
1088
- signal?: (AbortSignal | null) | undefined;
1089
- cache?: RequestCache | undefined;
1090
- credentials?: RequestCredentials | undefined;
1091
- integrity?: string | undefined;
1092
- keepalive?: boolean | undefined;
1093
- mode?: RequestMode | undefined;
1094
- priority?: RequestPriority | undefined;
1095
- redirect?: RequestRedirect | undefined;
1096
- referrer?: string | undefined;
1097
- referrerPolicy?: ReferrerPolicy | undefined;
1098
- window?: null | undefined;
1099
- onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
1100
- onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
1101
- onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
1102
- onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
1103
- onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
1104
- hookOptions?: {
1105
- cloneResponse?: boolean;
1106
- } | undefined;
1107
- timeout?: number | undefined;
1108
- customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
1109
- plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
1110
- baseURL?: string | undefined;
1111
- throw?: boolean | undefined;
1112
- auth?: ({
1113
- type: "Bearer";
1114
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1115
- } | {
1116
- type: "Basic";
1117
- username: string | (() => string | undefined) | undefined;
1118
- password: string | (() => string | undefined) | undefined;
1119
- } | {
1120
- type: "Custom";
1121
- prefix: string | (() => string | undefined) | undefined;
1122
- value: string | (() => string | undefined) | undefined;
1123
- }) | undefined;
1124
- body?: undefined;
1125
- query?: (Partial<{
1126
- callbackURL: string;
1127
- }> & Record<string, any>) | undefined;
1128
- params?: {
1129
- token: string;
1130
- } | undefined;
1131
- duplex?: "full" | "half" | undefined;
1132
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1133
- retry?: _better_fetch_fetch.RetryOptions | undefined;
1134
- retryAttempt?: number | undefined;
1135
- output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1136
- errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
1137
- disableValidation?: boolean | undefined;
1138
- }>(data_0: better_auth.Prettify<{
1139
- query: {
1140
- callbackURL: string;
1141
- };
1142
- fetchOptions?: FetchOptions | undefined;
1143
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<never, {
1144
- code?: string;
1145
- message?: string;
1146
- }, FetchOptions["throw"] extends true ? true : false>>;
1147
- };
1148
- } & {
1149
- listSessions: <FetchOptions extends {
1150
- headers?: (HeadersInit & (HeadersInit | {
1151
- accept: "application/json" | "text/plain" | "application/octet-stream";
1152
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1153
- authorization: "Bearer" | "Basic";
1154
- })) | undefined;
1155
- method?: string | undefined;
1156
- signal?: (AbortSignal | null) | undefined;
1157
- cache?: RequestCache | undefined;
1158
- credentials?: RequestCredentials | undefined;
1159
- integrity?: string | undefined;
1160
- keepalive?: boolean | undefined;
1161
- mode?: RequestMode | undefined;
1162
- priority?: RequestPriority | undefined;
1163
- redirect?: RequestRedirect | undefined;
1164
- referrer?: string | undefined;
1165
- referrerPolicy?: ReferrerPolicy | undefined;
1166
- window?: null | undefined;
1167
- onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
1168
- onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
1169
- onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
1170
- onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
1171
- onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
1172
- hookOptions?: {
1173
- cloneResponse?: boolean;
1174
- } | undefined;
1175
- timeout?: number | undefined;
1176
- customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
1177
- plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
1178
- baseURL?: string | undefined;
1179
- throw?: boolean | undefined;
1180
- auth?: ({
1181
- type: "Bearer";
1182
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1183
- } | {
1184
- type: "Basic";
1185
- username: string | (() => string | undefined) | undefined;
1186
- password: string | (() => string | undefined) | undefined;
1187
- } | {
1188
- type: "Custom";
1189
- prefix: string | (() => string | undefined) | undefined;
1190
- value: string | (() => string | undefined) | undefined;
1191
- }) | undefined;
1192
- body?: undefined;
1193
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1194
- params?: Record<string, any> | undefined;
1195
- duplex?: "full" | "half" | undefined;
1196
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1197
- retry?: _better_fetch_fetch.RetryOptions | undefined;
1198
- retryAttempt?: number | undefined;
1199
- output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1200
- errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
1201
- disableValidation?: boolean | undefined;
1202
- }>(data_0?: better_auth.Prettify<{
270
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: node_modules_better_auth_dist_helper_DU33OcfW_d_mts.u<{
271
+ callbackURL?: string | undefined;
272
+ password?: string | undefined;
273
+ token?: string | undefined;
274
+ } & {
275
+ fetchOptions?: FetchOptions | undefined;
276
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
277
+ success: boolean;
278
+ message: string;
279
+ }, {
280
+ code?: string | undefined;
281
+ message?: string | undefined;
282
+ }, FetchOptions["throw"] extends true ? true : false>>;
283
+ } & {
284
+ requestPasswordReset: <FetchOptions extends _better_auth_core.ClientFetchOption<Partial<{
285
+ email: string;
286
+ redirectTo?: string | undefined;
287
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: node_modules_better_auth_dist_helper_DU33OcfW_d_mts.u<{
288
+ email: string;
289
+ redirectTo?: string | undefined;
290
+ } & {
291
+ fetchOptions?: FetchOptions | undefined;
292
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
293
+ status: boolean;
294
+ message: string;
295
+ }, {
296
+ code?: string | undefined;
297
+ message?: string | undefined;
298
+ }, FetchOptions["throw"] extends true ? true : false>>;
299
+ } & {
300
+ resetPassword: {
301
+ ":token": <FetchOptions extends _better_auth_core.ClientFetchOption<never, Partial<{
302
+ callbackURL: string;
303
+ }> & Record<string, any>, {
304
+ token: string;
305
+ }>>(data_0: node_modules_better_auth_dist_helper_DU33OcfW_d_mts.u<{
306
+ query: {
307
+ callbackURL: string;
308
+ };
309
+ fetchOptions?: FetchOptions | undefined;
310
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<never, {
311
+ code?: string | undefined;
312
+ message?: string | undefined;
313
+ }, FetchOptions["throw"] extends true ? true : false>>;
314
+ };
315
+ } & {
316
+ listSessions: <FetchOptions extends _better_auth_core.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: node_modules_better_auth_dist_helper_DU33OcfW_d_mts.u<{
1203
317
  query?: Record<string, any> | undefined;
1204
318
  fetchOptions?: FetchOptions | undefined;
1205
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<better_auth.Prettify<{
319
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<node_modules_better_auth_dist_helper_DU33OcfW_d_mts.u<{
1206
320
  id: string;
1207
321
  createdAt: Date;
1208
322
  updatedAt: Date;
@@ -1212,270 +326,44 @@ declare const authClient: {
1212
326
  ipAddress?: string | null | undefined | undefined;
1213
327
  userAgent?: string | null | undefined | undefined;
1214
328
  }>[], {
1215
- code?: string;
1216
- message?: string;
329
+ code?: string | undefined;
330
+ message?: string | undefined;
1217
331
  }, FetchOptions["throw"] extends true ? true : false>>;
1218
332
  } & {
1219
- revokeSession: <FetchOptions extends {
1220
- headers?: (HeadersInit & (HeadersInit | {
1221
- accept: "application/json" | "text/plain" | "application/octet-stream";
1222
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1223
- authorization: "Bearer" | "Basic";
1224
- })) | undefined;
1225
- method?: string | undefined;
1226
- signal?: (AbortSignal | null) | undefined;
1227
- cache?: RequestCache | undefined;
1228
- credentials?: RequestCredentials | undefined;
1229
- integrity?: string | undefined;
1230
- keepalive?: boolean | undefined;
1231
- mode?: RequestMode | undefined;
1232
- priority?: RequestPriority | undefined;
1233
- redirect?: RequestRedirect | undefined;
1234
- referrer?: string | undefined;
1235
- referrerPolicy?: ReferrerPolicy | undefined;
1236
- window?: null | undefined;
1237
- onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
1238
- onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
1239
- onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
1240
- onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
1241
- onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
1242
- hookOptions?: {
1243
- cloneResponse?: boolean;
1244
- } | undefined;
1245
- timeout?: number | undefined;
1246
- customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
1247
- plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
1248
- baseURL?: string | undefined;
1249
- throw?: boolean | undefined;
1250
- auth?: ({
1251
- type: "Bearer";
1252
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1253
- } | {
1254
- type: "Basic";
1255
- username: string | (() => string | undefined) | undefined;
1256
- password: string | (() => string | undefined) | undefined;
1257
- } | {
1258
- type: "Custom";
1259
- prefix: string | (() => string | undefined) | undefined;
1260
- value: string | (() => string | undefined) | undefined;
1261
- }) | undefined;
1262
- body?: (Partial<{
1263
- token: string;
1264
- }> & Record<string, any>) | undefined;
1265
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1266
- params?: Record<string, any> | undefined;
1267
- duplex?: "full" | "half" | undefined;
1268
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1269
- retry?: _better_fetch_fetch.RetryOptions | undefined;
1270
- retryAttempt?: number | undefined;
1271
- output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1272
- errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
1273
- disableValidation?: boolean | undefined;
1274
- }>(data_0: better_auth.Prettify<{
333
+ revokeSession: <FetchOptions extends _better_auth_core.ClientFetchOption<Partial<{
334
+ token: string;
335
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: node_modules_better_auth_dist_helper_DU33OcfW_d_mts.u<{
1275
336
  token: string;
1276
337
  } & {
1277
338
  fetchOptions?: FetchOptions | undefined;
1278
339
  }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
1279
340
  status: boolean;
1280
341
  }, {
1281
- code?: string;
1282
- message?: string;
342
+ code?: string | undefined;
343
+ message?: string | undefined;
1283
344
  }, FetchOptions["throw"] extends true ? true : false>>;
1284
345
  } & {
1285
- revokeSessions: <FetchOptions extends {
1286
- headers?: (HeadersInit & (HeadersInit | {
1287
- accept: "application/json" | "text/plain" | "application/octet-stream";
1288
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1289
- authorization: "Bearer" | "Basic";
1290
- })) | undefined;
1291
- method?: string | undefined;
1292
- signal?: (AbortSignal | null) | undefined;
1293
- cache?: RequestCache | undefined;
1294
- credentials?: RequestCredentials | undefined;
1295
- integrity?: string | undefined;
1296
- keepalive?: boolean | undefined;
1297
- mode?: RequestMode | undefined;
1298
- priority?: RequestPriority | undefined;
1299
- redirect?: RequestRedirect | undefined;
1300
- referrer?: string | undefined;
1301
- referrerPolicy?: ReferrerPolicy | undefined;
1302
- window?: null | undefined;
1303
- onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
1304
- onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
1305
- onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
1306
- onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
1307
- onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
1308
- hookOptions?: {
1309
- cloneResponse?: boolean;
1310
- } | undefined;
1311
- timeout?: number | undefined;
1312
- customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
1313
- plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
1314
- baseURL?: string | undefined;
1315
- throw?: boolean | undefined;
1316
- auth?: ({
1317
- type: "Bearer";
1318
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1319
- } | {
1320
- type: "Basic";
1321
- username: string | (() => string | undefined) | undefined;
1322
- password: string | (() => string | undefined) | undefined;
1323
- } | {
1324
- type: "Custom";
1325
- prefix: string | (() => string | undefined) | undefined;
1326
- value: string | (() => string | undefined) | undefined;
1327
- }) | undefined;
1328
- body?: undefined;
1329
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1330
- params?: Record<string, any> | undefined;
1331
- duplex?: "full" | "half" | undefined;
1332
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1333
- retry?: _better_fetch_fetch.RetryOptions | undefined;
1334
- retryAttempt?: number | undefined;
1335
- output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1336
- errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
1337
- disableValidation?: boolean | undefined;
1338
- }>(data_0?: better_auth.Prettify<{
346
+ revokeSessions: <FetchOptions extends _better_auth_core.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: node_modules_better_auth_dist_helper_DU33OcfW_d_mts.u<{
1339
347
  query?: Record<string, any> | undefined;
1340
348
  fetchOptions?: FetchOptions | undefined;
1341
349
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
1342
350
  status: boolean;
1343
351
  }, {
1344
- code?: string;
1345
- message?: string;
352
+ code?: string | undefined;
353
+ message?: string | undefined;
1346
354
  }, FetchOptions["throw"] extends true ? true : false>>;
1347
355
  } & {
1348
- revokeOtherSessions: <FetchOptions extends {
1349
- headers?: (HeadersInit & (HeadersInit | {
1350
- accept: "application/json" | "text/plain" | "application/octet-stream";
1351
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1352
- authorization: "Bearer" | "Basic";
1353
- })) | undefined;
1354
- method?: string | undefined;
1355
- signal?: (AbortSignal | null) | undefined;
1356
- cache?: RequestCache | undefined;
1357
- credentials?: RequestCredentials | undefined;
1358
- integrity?: string | undefined;
1359
- keepalive?: boolean | undefined;
1360
- mode?: RequestMode | undefined;
1361
- priority?: RequestPriority | undefined;
1362
- redirect?: RequestRedirect | undefined;
1363
- referrer?: string | undefined;
1364
- referrerPolicy?: ReferrerPolicy | undefined;
1365
- window?: null | undefined;
1366
- onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
1367
- onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
1368
- onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
1369
- onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
1370
- onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
1371
- hookOptions?: {
1372
- cloneResponse?: boolean;
1373
- } | undefined;
1374
- timeout?: number | undefined;
1375
- customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
1376
- plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
1377
- baseURL?: string | undefined;
1378
- throw?: boolean | undefined;
1379
- auth?: ({
1380
- type: "Bearer";
1381
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1382
- } | {
1383
- type: "Basic";
1384
- username: string | (() => string | undefined) | undefined;
1385
- password: string | (() => string | undefined) | undefined;
1386
- } | {
1387
- type: "Custom";
1388
- prefix: string | (() => string | undefined) | undefined;
1389
- value: string | (() => string | undefined) | undefined;
1390
- }) | undefined;
1391
- body?: undefined;
1392
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1393
- params?: Record<string, any> | undefined;
1394
- duplex?: "full" | "half" | undefined;
1395
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1396
- retry?: _better_fetch_fetch.RetryOptions | undefined;
1397
- retryAttempt?: number | undefined;
1398
- output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1399
- errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
1400
- disableValidation?: boolean | undefined;
1401
- }>(data_0?: better_auth.Prettify<{
356
+ revokeOtherSessions: <FetchOptions extends _better_auth_core.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: node_modules_better_auth_dist_helper_DU33OcfW_d_mts.u<{
1402
357
  query?: Record<string, any> | undefined;
1403
358
  fetchOptions?: FetchOptions | undefined;
1404
359
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
1405
360
  status: boolean;
1406
361
  }, {
1407
- code?: string;
1408
- message?: string;
362
+ code?: string | undefined;
363
+ message?: string | undefined;
1409
364
  }, FetchOptions["throw"] extends true ? true : false>>;
1410
365
  } & {
1411
- linkSocial: <FetchOptions extends {
1412
- headers?: (HeadersInit & (HeadersInit | {
1413
- accept: "application/json" | "text/plain" | "application/octet-stream";
1414
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1415
- authorization: "Bearer" | "Basic";
1416
- })) | undefined;
1417
- method?: string | undefined;
1418
- signal?: (AbortSignal | null) | undefined;
1419
- cache?: RequestCache | undefined;
1420
- credentials?: RequestCredentials | undefined;
1421
- integrity?: string | undefined;
1422
- keepalive?: boolean | undefined;
1423
- mode?: RequestMode | undefined;
1424
- priority?: RequestPriority | undefined;
1425
- redirect?: RequestRedirect | undefined;
1426
- referrer?: string | undefined;
1427
- referrerPolicy?: ReferrerPolicy | undefined;
1428
- window?: null | undefined;
1429
- onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
1430
- onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
1431
- onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
1432
- onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
1433
- onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
1434
- hookOptions?: {
1435
- cloneResponse?: boolean;
1436
- } | undefined;
1437
- timeout?: number | undefined;
1438
- customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
1439
- plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
1440
- baseURL?: string | undefined;
1441
- throw?: boolean | undefined;
1442
- auth?: ({
1443
- type: "Bearer";
1444
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1445
- } | {
1446
- type: "Basic";
1447
- username: string | (() => string | undefined) | undefined;
1448
- password: string | (() => string | undefined) | undefined;
1449
- } | {
1450
- type: "Custom";
1451
- prefix: string | (() => string | undefined) | undefined;
1452
- value: string | (() => string | undefined) | undefined;
1453
- }) | undefined;
1454
- body?: (Partial<{
1455
- provider: unknown;
1456
- callbackURL?: string | undefined;
1457
- idToken?: {
1458
- token: string;
1459
- nonce?: string | undefined;
1460
- accessToken?: string | undefined;
1461
- refreshToken?: string | undefined;
1462
- scopes?: string[] | undefined;
1463
- } | undefined;
1464
- requestSignUp?: boolean | undefined;
1465
- scopes?: string[] | undefined;
1466
- errorCallbackURL?: string | undefined;
1467
- disableRedirect?: boolean | undefined;
1468
- }> & Record<string, any>) | undefined;
1469
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1470
- params?: Record<string, any> | undefined;
1471
- duplex?: "full" | "half" | undefined;
1472
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1473
- retry?: _better_fetch_fetch.RetryOptions | undefined;
1474
- retryAttempt?: number | undefined;
1475
- output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1476
- errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
1477
- disableValidation?: boolean | undefined;
1478
- }>(data_0: better_auth.Prettify<{
366
+ linkSocial: <FetchOptions extends _better_auth_core.ClientFetchOption<Partial<{
1479
367
  provider: unknown;
1480
368
  callbackURL?: string | undefined;
1481
369
  idToken?: {
@@ -1489,70 +377,33 @@ declare const authClient: {
1489
377
  scopes?: string[] | undefined;
1490
378
  errorCallbackURL?: string | undefined;
1491
379
  disableRedirect?: boolean | undefined;
1492
- } & {
1493
- fetchOptions?: FetchOptions | undefined;
1494
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
1495
- url: string;
1496
- redirect: boolean;
1497
- }, {
1498
- code?: string;
1499
- message?: string;
1500
- }, FetchOptions["throw"] extends true ? true : false>>;
1501
- } & {
1502
- listAccounts: <FetchOptions extends {
1503
- headers?: (HeadersInit & (HeadersInit | {
1504
- accept: "application/json" | "text/plain" | "application/octet-stream";
1505
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1506
- authorization: "Bearer" | "Basic";
1507
- })) | undefined;
1508
- method?: string | undefined;
1509
- signal?: (AbortSignal | null) | undefined;
1510
- cache?: RequestCache | undefined;
1511
- credentials?: RequestCredentials | undefined;
1512
- integrity?: string | undefined;
1513
- keepalive?: boolean | undefined;
1514
- mode?: RequestMode | undefined;
1515
- priority?: RequestPriority | undefined;
1516
- redirect?: RequestRedirect | undefined;
1517
- referrer?: string | undefined;
1518
- referrerPolicy?: ReferrerPolicy | undefined;
1519
- window?: null | undefined;
1520
- onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
1521
- onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
1522
- onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
1523
- onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
1524
- onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
1525
- hookOptions?: {
1526
- cloneResponse?: boolean;
1527
- } | undefined;
1528
- timeout?: number | undefined;
1529
- customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
1530
- plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
1531
- baseURL?: string | undefined;
1532
- throw?: boolean | undefined;
1533
- auth?: ({
1534
- type: "Bearer";
1535
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1536
- } | {
1537
- type: "Basic";
1538
- username: string | (() => string | undefined) | undefined;
1539
- password: string | (() => string | undefined) | undefined;
1540
- } | {
1541
- type: "Custom";
1542
- prefix: string | (() => string | undefined) | undefined;
1543
- value: string | (() => string | undefined) | undefined;
1544
- }) | undefined;
1545
- body?: undefined;
1546
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1547
- params?: Record<string, any> | undefined;
1548
- duplex?: "full" | "half" | undefined;
1549
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1550
- retry?: _better_fetch_fetch.RetryOptions | undefined;
1551
- retryAttempt?: number | undefined;
1552
- output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1553
- errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
1554
- disableValidation?: boolean | undefined;
1555
- }>(data_0?: better_auth.Prettify<{
380
+ additionalData?: Record<string, any> | undefined;
381
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: node_modules_better_auth_dist_helper_DU33OcfW_d_mts.u<{
382
+ provider: unknown;
383
+ callbackURL?: string | undefined;
384
+ idToken?: {
385
+ token: string;
386
+ nonce?: string | undefined;
387
+ accessToken?: string | undefined;
388
+ refreshToken?: string | undefined;
389
+ scopes?: string[] | undefined;
390
+ } | undefined;
391
+ requestSignUp?: boolean | undefined;
392
+ scopes?: string[] | undefined;
393
+ errorCallbackURL?: string | undefined;
394
+ disableRedirect?: boolean | undefined;
395
+ additionalData?: Record<string, any> | undefined;
396
+ } & {
397
+ fetchOptions?: FetchOptions | undefined;
398
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
399
+ url: string;
400
+ redirect: boolean;
401
+ }, {
402
+ code?: string | undefined;
403
+ message?: string | undefined;
404
+ }, FetchOptions["throw"] extends true ? true : false>>;
405
+ } & {
406
+ listAccounts: <FetchOptions extends _better_auth_core.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: node_modules_better_auth_dist_helper_DU33OcfW_d_mts.u<{
1556
407
  query?: Record<string, any> | undefined;
1557
408
  fetchOptions?: FetchOptions | undefined;
1558
409
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
@@ -1561,70 +412,18 @@ declare const authClient: {
1561
412
  createdAt: Date;
1562
413
  updatedAt: Date;
1563
414
  accountId: string;
415
+ userId: string;
1564
416
  scopes: string[];
1565
417
  }[], {
1566
- code?: string;
1567
- message?: string;
418
+ code?: string | undefined;
419
+ message?: string | undefined;
1568
420
  }, FetchOptions["throw"] extends true ? true : false>>;
1569
421
  } & {
1570
422
  deleteUser: {
1571
- callback: <FetchOptions extends {
1572
- headers?: (HeadersInit & (HeadersInit | {
1573
- accept: "application/json" | "text/plain" | "application/octet-stream";
1574
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1575
- authorization: "Bearer" | "Basic";
1576
- })) | undefined;
1577
- method?: string | undefined;
1578
- signal?: (AbortSignal | null) | undefined;
1579
- cache?: RequestCache | undefined;
1580
- credentials?: RequestCredentials | undefined;
1581
- integrity?: string | undefined;
1582
- keepalive?: boolean | undefined;
1583
- mode?: RequestMode | undefined;
1584
- priority?: RequestPriority | undefined;
1585
- redirect?: RequestRedirect | undefined;
1586
- referrer?: string | undefined;
1587
- referrerPolicy?: ReferrerPolicy | undefined;
1588
- window?: null | undefined;
1589
- onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
1590
- onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
1591
- onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
1592
- onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
1593
- onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
1594
- hookOptions?: {
1595
- cloneResponse?: boolean;
1596
- } | undefined;
1597
- timeout?: number | undefined;
1598
- customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
1599
- plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
1600
- baseURL?: string | undefined;
1601
- throw?: boolean | undefined;
1602
- auth?: ({
1603
- type: "Bearer";
1604
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1605
- } | {
1606
- type: "Basic";
1607
- username: string | (() => string | undefined) | undefined;
1608
- password: string | (() => string | undefined) | undefined;
1609
- } | {
1610
- type: "Custom";
1611
- prefix: string | (() => string | undefined) | undefined;
1612
- value: string | (() => string | undefined) | undefined;
1613
- }) | undefined;
1614
- body?: undefined;
1615
- query?: (Partial<{
1616
- token: string;
1617
- callbackURL?: string | undefined;
1618
- }> & Record<string, any>) | undefined;
1619
- params?: Record<string, any> | undefined;
1620
- duplex?: "full" | "half" | undefined;
1621
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1622
- retry?: _better_fetch_fetch.RetryOptions | undefined;
1623
- retryAttempt?: number | undefined;
1624
- output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1625
- errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
1626
- disableValidation?: boolean | undefined;
1627
- }>(data_0: better_auth.Prettify<{
423
+ callback: <FetchOptions extends _better_auth_core.ClientFetchOption<never, Partial<{
424
+ token: string;
425
+ callbackURL?: string | undefined;
426
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: node_modules_better_auth_dist_helper_DU33OcfW_d_mts.u<{
1628
427
  query: {
1629
428
  token: string;
1630
429
  callbackURL?: string | undefined;
@@ -1634,68 +433,15 @@ declare const authClient: {
1634
433
  success: boolean;
1635
434
  message: string;
1636
435
  }, {
1637
- code?: string;
1638
- message?: string;
436
+ code?: string | undefined;
437
+ message?: string | undefined;
1639
438
  }, FetchOptions["throw"] extends true ? true : false>>;
1640
439
  };
1641
440
  } & {
1642
- unlinkAccount: <FetchOptions extends {
1643
- headers?: (HeadersInit & (HeadersInit | {
1644
- accept: "application/json" | "text/plain" | "application/octet-stream";
1645
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1646
- authorization: "Bearer" | "Basic";
1647
- })) | undefined;
1648
- method?: string | undefined;
1649
- signal?: (AbortSignal | null) | undefined;
1650
- cache?: RequestCache | undefined;
1651
- credentials?: RequestCredentials | undefined;
1652
- integrity?: string | undefined;
1653
- keepalive?: boolean | undefined;
1654
- mode?: RequestMode | undefined;
1655
- priority?: RequestPriority | undefined;
1656
- redirect?: RequestRedirect | undefined;
1657
- referrer?: string | undefined;
1658
- referrerPolicy?: ReferrerPolicy | undefined;
1659
- window?: null | undefined;
1660
- onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
1661
- onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
1662
- onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
1663
- onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
1664
- onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
1665
- hookOptions?: {
1666
- cloneResponse?: boolean;
1667
- } | undefined;
1668
- timeout?: number | undefined;
1669
- customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
1670
- plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
1671
- baseURL?: string | undefined;
1672
- throw?: boolean | undefined;
1673
- auth?: ({
1674
- type: "Bearer";
1675
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1676
- } | {
1677
- type: "Basic";
1678
- username: string | (() => string | undefined) | undefined;
1679
- password: string | (() => string | undefined) | undefined;
1680
- } | {
1681
- type: "Custom";
1682
- prefix: string | (() => string | undefined) | undefined;
1683
- value: string | (() => string | undefined) | undefined;
1684
- }) | undefined;
1685
- body?: (Partial<{
1686
- providerId: string;
1687
- accountId?: string | undefined;
1688
- }> & Record<string, any>) | undefined;
1689
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1690
- params?: Record<string, any> | undefined;
1691
- duplex?: "full" | "half" | undefined;
1692
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1693
- retry?: _better_fetch_fetch.RetryOptions | undefined;
1694
- retryAttempt?: number | undefined;
1695
- output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1696
- errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
1697
- disableValidation?: boolean | undefined;
1698
- }>(data_0: better_auth.Prettify<{
441
+ unlinkAccount: <FetchOptions extends _better_auth_core.ClientFetchOption<Partial<{
442
+ providerId: string;
443
+ accountId?: string | undefined;
444
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: node_modules_better_auth_dist_helper_DU33OcfW_d_mts.u<{
1699
445
  providerId: string;
1700
446
  accountId?: string | undefined;
1701
447
  } & {
@@ -1703,136 +449,39 @@ declare const authClient: {
1703
449
  }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
1704
450
  status: boolean;
1705
451
  }, {
1706
- code?: string;
1707
- message?: string;
452
+ code?: string | undefined;
453
+ message?: string | undefined;
1708
454
  }, FetchOptions["throw"] extends true ? true : false>>;
1709
455
  } & {
1710
- refreshToken: <FetchOptions extends {
1711
- headers?: (HeadersInit & (HeadersInit | {
1712
- accept: "application/json" | "text/plain" | "application/octet-stream";
1713
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1714
- authorization: "Bearer" | "Basic";
1715
- })) | undefined;
1716
- method?: string | undefined;
1717
- signal?: (AbortSignal | null) | undefined;
1718
- cache?: RequestCache | undefined;
1719
- credentials?: RequestCredentials | undefined;
1720
- integrity?: string | undefined;
1721
- keepalive?: boolean | undefined;
1722
- mode?: RequestMode | undefined;
1723
- priority?: RequestPriority | undefined;
1724
- redirect?: RequestRedirect | undefined;
1725
- referrer?: string | undefined;
1726
- referrerPolicy?: ReferrerPolicy | undefined;
1727
- window?: null | undefined;
1728
- onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
1729
- onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
1730
- onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
1731
- onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
1732
- onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
1733
- hookOptions?: {
1734
- cloneResponse?: boolean;
1735
- } | undefined;
1736
- timeout?: number | undefined;
1737
- customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
1738
- plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
1739
- baseURL?: string | undefined;
1740
- throw?: boolean | undefined;
1741
- auth?: ({
1742
- type: "Bearer";
1743
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1744
- } | {
1745
- type: "Basic";
1746
- username: string | (() => string | undefined) | undefined;
1747
- password: string | (() => string | undefined) | undefined;
1748
- } | {
1749
- type: "Custom";
1750
- prefix: string | (() => string | undefined) | undefined;
1751
- value: string | (() => string | undefined) | undefined;
1752
- }) | undefined;
1753
- body?: (Partial<{
1754
- providerId: string;
1755
- accountId?: string | undefined;
1756
- userId?: string | undefined;
1757
- }> & Record<string, any>) | undefined;
1758
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1759
- params?: Record<string, any> | undefined;
1760
- duplex?: "full" | "half" | undefined;
1761
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1762
- retry?: _better_fetch_fetch.RetryOptions | undefined;
1763
- retryAttempt?: number | undefined;
1764
- output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1765
- errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
1766
- disableValidation?: boolean | undefined;
1767
- }>(data_0: better_auth.Prettify<{
456
+ refreshToken: <FetchOptions extends _better_auth_core.ClientFetchOption<Partial<{
457
+ providerId: string;
458
+ accountId?: string | undefined;
459
+ userId?: string | undefined;
460
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: node_modules_better_auth_dist_helper_DU33OcfW_d_mts.u<{
1768
461
  providerId: string;
1769
462
  accountId?: string | undefined;
1770
463
  userId?: string | undefined;
1771
464
  } & {
1772
465
  fetchOptions?: FetchOptions | undefined;
1773
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<any, {
1774
- code?: string;
1775
- message?: string;
466
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
467
+ accessToken: string | undefined;
468
+ refreshToken: string | undefined;
469
+ accessTokenExpiresAt: Date | undefined;
470
+ refreshTokenExpiresAt: Date | undefined;
471
+ scope: string | null | undefined;
472
+ idToken: string | null | undefined;
473
+ providerId: string;
474
+ accountId: string;
475
+ }, {
476
+ code?: string | undefined;
477
+ message?: string | undefined;
1776
478
  }, FetchOptions["throw"] extends true ? true : false>>;
1777
479
  } & {
1778
- getAccessToken: <FetchOptions extends {
1779
- headers?: (HeadersInit & (HeadersInit | {
1780
- accept: "application/json" | "text/plain" | "application/octet-stream";
1781
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1782
- authorization: "Bearer" | "Basic";
1783
- })) | undefined;
1784
- method?: string | undefined;
1785
- signal?: (AbortSignal | null) | undefined;
1786
- cache?: RequestCache | undefined;
1787
- credentials?: RequestCredentials | undefined;
1788
- integrity?: string | undefined;
1789
- keepalive?: boolean | undefined;
1790
- mode?: RequestMode | undefined;
1791
- priority?: RequestPriority | undefined;
1792
- redirect?: RequestRedirect | undefined;
1793
- referrer?: string | undefined;
1794
- referrerPolicy?: ReferrerPolicy | undefined;
1795
- window?: null | undefined;
1796
- onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
1797
- onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
1798
- onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
1799
- onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
1800
- onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
1801
- hookOptions?: {
1802
- cloneResponse?: boolean;
1803
- } | undefined;
1804
- timeout?: number | undefined;
1805
- customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
1806
- plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
1807
- baseURL?: string | undefined;
1808
- throw?: boolean | undefined;
1809
- auth?: ({
1810
- type: "Bearer";
1811
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1812
- } | {
1813
- type: "Basic";
1814
- username: string | (() => string | undefined) | undefined;
1815
- password: string | (() => string | undefined) | undefined;
1816
- } | {
1817
- type: "Custom";
1818
- prefix: string | (() => string | undefined) | undefined;
1819
- value: string | (() => string | undefined) | undefined;
1820
- }) | undefined;
1821
- body?: (Partial<{
1822
- providerId: string;
1823
- accountId?: string | undefined;
1824
- userId?: string | undefined;
1825
- }> & Record<string, any>) | undefined;
1826
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1827
- params?: Record<string, any> | undefined;
1828
- duplex?: "full" | "half" | undefined;
1829
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1830
- retry?: _better_fetch_fetch.RetryOptions | undefined;
1831
- retryAttempt?: number | undefined;
1832
- output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1833
- errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
1834
- disableValidation?: boolean | undefined;
1835
- }>(data_0: better_auth.Prettify<{
480
+ getAccessToken: <FetchOptions extends _better_auth_core.ClientFetchOption<Partial<{
481
+ providerId: string;
482
+ accountId?: string | undefined;
483
+ userId?: string | undefined;
484
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: node_modules_better_auth_dist_helper_DU33OcfW_d_mts.u<{
1836
485
  providerId: string;
1837
486
  accountId?: string | undefined;
1838
487
  userId?: string | undefined;
@@ -1844,134 +493,29 @@ declare const authClient: {
1844
493
  scopes: string[];
1845
494
  idToken: string | undefined;
1846
495
  }, {
1847
- code?: string;
1848
- message?: string;
496
+ code?: string | undefined;
497
+ message?: string | undefined;
1849
498
  }, FetchOptions["throw"] extends true ? true : false>>;
1850
499
  } & {
1851
- accountInfo: <FetchOptions extends {
1852
- headers?: (HeadersInit & (HeadersInit | {
1853
- accept: "application/json" | "text/plain" | "application/octet-stream";
1854
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1855
- authorization: "Bearer" | "Basic";
1856
- })) | undefined;
1857
- method?: string | undefined;
1858
- signal?: (AbortSignal | null) | undefined;
1859
- cache?: RequestCache | undefined;
1860
- credentials?: RequestCredentials | undefined;
1861
- integrity?: string | undefined;
1862
- keepalive?: boolean | undefined;
1863
- mode?: RequestMode | undefined;
1864
- priority?: RequestPriority | undefined;
1865
- redirect?: RequestRedirect | undefined;
1866
- referrer?: string | undefined;
1867
- referrerPolicy?: ReferrerPolicy | undefined;
1868
- window?: null | undefined;
1869
- onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
1870
- onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
1871
- onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
1872
- onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
1873
- onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
1874
- hookOptions?: {
1875
- cloneResponse?: boolean;
500
+ accountInfo: <FetchOptions extends _better_auth_core.ClientFetchOption<never, Partial<{
501
+ accountId?: string | undefined;
502
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: node_modules_better_auth_dist_helper_DU33OcfW_d_mts.u<{
503
+ query?: {
504
+ accountId?: string | undefined;
1876
505
  } | undefined;
1877
- timeout?: number | undefined;
1878
- customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
1879
- plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
1880
- baseURL?: string | undefined;
1881
- throw?: boolean | undefined;
1882
- auth?: ({
1883
- type: "Bearer";
1884
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1885
- } | {
1886
- type: "Basic";
1887
- username: string | (() => string | undefined) | undefined;
1888
- password: string | (() => string | undefined) | undefined;
1889
- } | {
1890
- type: "Custom";
1891
- prefix: string | (() => string | undefined) | undefined;
1892
- value: string | (() => string | undefined) | undefined;
1893
- }) | undefined;
1894
- body?: (Partial<{
1895
- accountId: string;
1896
- }> & Record<string, any>) | undefined;
1897
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1898
- params?: Record<string, any> | undefined;
1899
- duplex?: "full" | "half" | undefined;
1900
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1901
- retry?: _better_fetch_fetch.RetryOptions | undefined;
1902
- retryAttempt?: number | undefined;
1903
- output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1904
- errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
1905
- disableValidation?: boolean | undefined;
1906
- }>(data_0: better_auth.Prettify<{
1907
- accountId: string;
1908
- } & {
1909
506
  fetchOptions?: FetchOptions | undefined;
1910
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
1911
- user: packages_core_dist_oauth2.OAuth2UserInfo;
507
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
508
+ user: _better_auth_core_oauth2.OAuth2UserInfo;
1912
509
  data: Record<string, any>;
1913
510
  }, {
1914
- code?: string;
1915
- message?: string;
511
+ code?: string | undefined;
512
+ message?: string | undefined;
1916
513
  }, FetchOptions["throw"] extends true ? true : false>>;
1917
514
  } & {
1918
- getSession: <FetchOptions extends {
1919
- headers?: (HeadersInit & (HeadersInit | {
1920
- accept: "application/json" | "text/plain" | "application/octet-stream";
1921
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1922
- authorization: "Bearer" | "Basic";
1923
- })) | undefined;
1924
- method?: string | undefined;
1925
- signal?: (AbortSignal | null) | undefined;
1926
- cache?: RequestCache | undefined;
1927
- credentials?: RequestCredentials | undefined;
1928
- integrity?: string | undefined;
1929
- keepalive?: boolean | undefined;
1930
- mode?: RequestMode | undefined;
1931
- priority?: RequestPriority | undefined;
1932
- redirect?: RequestRedirect | undefined;
1933
- referrer?: string | undefined;
1934
- referrerPolicy?: ReferrerPolicy | undefined;
1935
- window?: null | undefined;
1936
- onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
1937
- onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
1938
- onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
1939
- onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
1940
- onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
1941
- hookOptions?: {
1942
- cloneResponse?: boolean;
1943
- } | undefined;
1944
- timeout?: number | undefined;
1945
- customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
1946
- plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
1947
- baseURL?: string | undefined;
1948
- throw?: boolean | undefined;
1949
- auth?: ({
1950
- type: "Bearer";
1951
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1952
- } | {
1953
- type: "Basic";
1954
- username: string | (() => string | undefined) | undefined;
1955
- password: string | (() => string | undefined) | undefined;
1956
- } | {
1957
- type: "Custom";
1958
- prefix: string | (() => string | undefined) | undefined;
1959
- value: string | (() => string | undefined) | undefined;
1960
- }) | undefined;
1961
- body?: undefined;
1962
- query?: (Partial<{
1963
- disableCookieCache?: unknown;
1964
- disableRefresh?: unknown;
1965
- }> & Record<string, any>) | undefined;
1966
- params?: Record<string, any> | undefined;
1967
- duplex?: "full" | "half" | undefined;
1968
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1969
- retry?: _better_fetch_fetch.RetryOptions | undefined;
1970
- retryAttempt?: number | undefined;
1971
- output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1972
- errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
1973
- disableValidation?: boolean | undefined;
1974
- }>(data_0?: better_auth.Prettify<{
515
+ getSession: <FetchOptions extends _better_auth_core.ClientFetchOption<never, Partial<{
516
+ disableCookieCache?: unknown;
517
+ disableRefresh?: unknown;
518
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: node_modules_better_auth_dist_helper_DU33OcfW_d_mts.u<{
1975
519
  query?: {
1976
520
  disableCookieCache?: unknown;
1977
521
  disableRefresh?: unknown;
@@ -1998,8 +542,8 @@ declare const authClient: {
1998
542
  userAgent?: string | null | undefined;
1999
543
  };
2000
544
  } | null, {
2001
- code?: string;
2002
- message?: string;
545
+ code?: string | undefined;
546
+ message?: string | undefined;
2003
547
  }, FetchOptions["throw"] extends true ? true : false>>;
2004
548
  } & {
2005
549
  useSession: () => {
@@ -2028,8 +572,8 @@ declare const authClient: {
2028
572
  isRefetching: boolean;
2029
573
  error: _better_fetch_fetch.BetterFetchError | null;
2030
574
  refetch: (queryParams?: {
2031
- query?: better_auth.SessionQueryParams;
2032
- }) => void;
575
+ query?: node_modules_better_auth_dist_index_BzgT8cQd_d_mts.tn;
576
+ } | undefined) => Promise<void>;
2033
577
  };
2034
578
  $Infer: {
2035
579
  Session: {
@@ -2059,18 +603,25 @@ declare const authClient: {
2059
603
  id: string;
2060
604
  name: string;
2061
605
  hooks: {
2062
- onSuccess: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
2063
- onError: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
2064
- onRequest: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
2065
- onResponse: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
606
+ onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
2066
607
  };
2067
608
  } | {
2068
609
  id: string;
2069
610
  name: string;
2070
611
  hooks: {
2071
- onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
612
+ onRequest<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>): void;
613
+ };
614
+ } | {
615
+ id: string;
616
+ name: string;
617
+ hooks: {
618
+ onSuccess: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
619
+ onError: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
620
+ onRequest: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
621
+ onResponse: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
2072
622
  };
2073
623
  })[];
624
+ cache?: RequestCache | undefined;
2074
625
  method: string;
2075
626
  headers?: (HeadersInit & (HeadersInit | {
2076
627
  accept: "application/json" | "text/plain" | "application/octet-stream";
@@ -2078,7 +629,6 @@ declare const authClient: {
2078
629
  authorization: "Bearer" | "Basic";
2079
630
  })) | undefined;
2080
631
  redirect?: RequestRedirect | undefined;
2081
- cache?: RequestCache | undefined;
2082
632
  credentials?: RequestCredentials;
2083
633
  integrity?: string | undefined;
2084
634
  keepalive?: boolean | undefined;
@@ -2118,9 +668,10 @@ declare const authClient: {
2118
668
  output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2119
669
  errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
2120
670
  disableValidation?: boolean | undefined;
671
+ disableSignal?: boolean | undefined;
2121
672
  }, unknown, unknown, {}>;
2122
673
  $store: {
2123
- notify: (signal?: Omit<string, "$sessionSignal"> | "$sessionSignal") => void;
674
+ notify: (signal?: (Omit<string, "$sessionSignal"> | "$sessionSignal") | undefined) => void;
2124
675
  listen: (signal: Omit<string, "$sessionSignal"> | "$sessionSignal", listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
2125
676
  atoms: Record<string, nanostores.WritableAtom<any>>;
2126
677
  };