wcz-test 6.4.6 → 6.4.9

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.
@@ -0,0 +1,2156 @@
1
+ export { P as Platform } from './utils-DqOS_g2q.js';
2
+ export { default as i18n, t } from 'i18next';
3
+ export { initReactI18next, useTranslation } from 'react-i18next';
4
+ export { default as LanguageDetector } from 'i18next-browser-languagedetector';
5
+ import * as nanostores from 'nanostores';
6
+ import * as node_modules_better_auth_dist_shared_better_auth_BNARIIb2 from 'node_modules/better-auth/dist/shared/better-auth.BNARIIb2';
7
+ import * as node_modules_better_auth_dist_shared_better_auth_DNnBkMGu from 'node_modules/better-auth/dist/shared/better-auth.DNnBkMGu';
8
+ import * as _better_fetch_fetch from '@better-fetch/fetch';
9
+ import 'axios';
10
+ import 'uuidv7';
11
+
12
+ declare const WISTRON_PRIMARY_COLOR = "#00506E";
13
+ declare const WISTRON_SECONDARY_COLOR = "#64DC00";
14
+
15
+ declare const authClient: {
16
+ 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;
42
+ } | 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: node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
87
+ provider: unknown;
88
+ callbackURL?: string | undefined;
89
+ newUserCallbackURL?: string | undefined;
90
+ errorCallbackURL?: string | undefined;
91
+ disableRedirect?: boolean | undefined;
92
+ idToken?: {
93
+ token: string;
94
+ nonce?: string | undefined;
95
+ accessToken?: string | undefined;
96
+ refreshToken?: string | undefined;
97
+ expiresAt?: number | undefined;
98
+ } | undefined;
99
+ scopes?: string[] | undefined;
100
+ requestSignUp?: boolean | undefined;
101
+ loginHint?: string | undefined;
102
+ } & {
103
+ fetchOptions?: FetchOptions | undefined;
104
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<NonNullable<{
105
+ redirect: boolean;
106
+ token: string;
107
+ url: undefined;
108
+ user: {
109
+ id: string;
110
+ email: string;
111
+ name: string;
112
+ image: string | null | undefined;
113
+ emailVerified: boolean;
114
+ createdAt: Date;
115
+ updatedAt: Date;
116
+ };
117
+ } | {
118
+ url: string;
119
+ redirect: boolean;
120
+ }>, {
121
+ code?: string;
122
+ message?: string;
123
+ }, FetchOptions["throw"] extends true ? true : false>>;
124
+ };
125
+ } & {
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?: node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
180
+ query?: Record<string, any> | undefined;
181
+ fetchOptions?: FetchOptions | undefined;
182
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
183
+ success: boolean;
184
+ }, {
185
+ code?: string;
186
+ message?: string;
187
+ }, FetchOptions["throw"] extends true ? true : false>>;
188
+ } & {
189
+ 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: node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
251
+ email: string;
252
+ name: string;
253
+ password: string;
254
+ image?: string;
255
+ callbackURL?: string;
256
+ fetchOptions?: FetchOptions | undefined;
257
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<NonNullable<{
258
+ token: null;
259
+ user: {
260
+ id: string;
261
+ email: string;
262
+ name: string;
263
+ image: string | null | undefined;
264
+ emailVerified: boolean;
265
+ createdAt: Date;
266
+ updatedAt: Date;
267
+ };
268
+ } | {
269
+ token: string;
270
+ user: {
271
+ id: string;
272
+ email: string;
273
+ name: string;
274
+ image: string | null | undefined;
275
+ emailVerified: boolean;
276
+ createdAt: Date;
277
+ updatedAt: Date;
278
+ };
279
+ }>, {
280
+ code?: string;
281
+ message?: string;
282
+ }, FetchOptions["throw"] extends true ? true : false>>;
283
+ };
284
+ } & {
285
+ 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: node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
345
+ email: string;
346
+ password: string;
347
+ callbackURL?: string | undefined;
348
+ rememberMe?: boolean | undefined;
349
+ } & {
350
+ fetchOptions?: FetchOptions | undefined;
351
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
352
+ redirect: boolean;
353
+ token: string;
354
+ url: string | undefined;
355
+ user: {
356
+ id: string;
357
+ email: string;
358
+ name: string;
359
+ image: string | null | undefined;
360
+ emailVerified: boolean;
361
+ createdAt: Date;
362
+ updatedAt: Date;
363
+ };
364
+ }, {
365
+ code?: string;
366
+ message?: string;
367
+ }, FetchOptions["throw"] extends true ? true : false>>;
368
+ };
369
+ } & {
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: node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
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: node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
497
+ newPassword: string;
498
+ token?: string | undefined;
499
+ } & {
500
+ fetchOptions?: FetchOptions | undefined;
501
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
502
+ status: boolean;
503
+ }, {
504
+ code?: string;
505
+ message?: string;
506
+ }, FetchOptions["throw"] extends true ? true : false>>;
507
+ } & {
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: node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
565
+ query: {
566
+ token: string;
567
+ callbackURL?: string | undefined;
568
+ };
569
+ fetchOptions?: FetchOptions | undefined;
570
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<NonNullable<void | {
571
+ status: boolean;
572
+ user: {
573
+ id: string;
574
+ email: string;
575
+ name: string;
576
+ image: string | null | undefined;
577
+ emailVerified: boolean;
578
+ createdAt: Date;
579
+ updatedAt: Date;
580
+ };
581
+ } | {
582
+ status: boolean;
583
+ user: null;
584
+ }>, {
585
+ code?: string;
586
+ message?: string;
587
+ }, FetchOptions["throw"] extends true ? true : false>>;
588
+ } & {
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: node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
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: node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
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: node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
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?: node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
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?: node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
929
+ callbackURL?: string | undefined;
930
+ password?: string | undefined;
931
+ 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: node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
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: node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
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: node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
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?: node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
1203
+ query?: Record<string, any> | undefined;
1204
+ fetchOptions?: FetchOptions | undefined;
1205
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
1206
+ id: string;
1207
+ createdAt: Date;
1208
+ updatedAt: Date;
1209
+ userId: string;
1210
+ expiresAt: Date;
1211
+ token: string;
1212
+ ipAddress?: string | null | undefined | undefined;
1213
+ userAgent?: string | null | undefined | undefined;
1214
+ }>[], {
1215
+ code?: string;
1216
+ message?: string;
1217
+ }, FetchOptions["throw"] extends true ? true : false>>;
1218
+ } & {
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: node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
1275
+ token: string;
1276
+ } & {
1277
+ fetchOptions?: FetchOptions | undefined;
1278
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
1279
+ status: boolean;
1280
+ }, {
1281
+ code?: string;
1282
+ message?: string;
1283
+ }, FetchOptions["throw"] extends true ? true : false>>;
1284
+ } & {
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?: node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
1339
+ query?: Record<string, any> | undefined;
1340
+ fetchOptions?: FetchOptions | undefined;
1341
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
1342
+ status: boolean;
1343
+ }, {
1344
+ code?: string;
1345
+ message?: string;
1346
+ }, FetchOptions["throw"] extends true ? true : false>>;
1347
+ } & {
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?: node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
1402
+ query?: Record<string, any> | undefined;
1403
+ fetchOptions?: FetchOptions | undefined;
1404
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
1405
+ status: boolean;
1406
+ }, {
1407
+ code?: string;
1408
+ message?: string;
1409
+ }, FetchOptions["throw"] extends true ? true : false>>;
1410
+ } & {
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: node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
1479
+ provider: unknown;
1480
+ callbackURL?: string | undefined;
1481
+ idToken?: {
1482
+ token: string;
1483
+ nonce?: string | undefined;
1484
+ accessToken?: string | undefined;
1485
+ refreshToken?: string | undefined;
1486
+ scopes?: string[] | undefined;
1487
+ } | undefined;
1488
+ requestSignUp?: boolean | undefined;
1489
+ scopes?: string[] | undefined;
1490
+ errorCallbackURL?: string | undefined;
1491
+ 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?: node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
1556
+ query?: Record<string, any> | undefined;
1557
+ fetchOptions?: FetchOptions | undefined;
1558
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
1559
+ id: string;
1560
+ providerId: string;
1561
+ createdAt: Date;
1562
+ updatedAt: Date;
1563
+ accountId: string;
1564
+ scopes: string[];
1565
+ }[], {
1566
+ code?: string;
1567
+ message?: string;
1568
+ }, FetchOptions["throw"] extends true ? true : false>>;
1569
+ } & {
1570
+ 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: node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
1628
+ query: {
1629
+ token: string;
1630
+ callbackURL?: string | undefined;
1631
+ };
1632
+ fetchOptions?: FetchOptions | undefined;
1633
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
1634
+ success: boolean;
1635
+ message: string;
1636
+ }, {
1637
+ code?: string;
1638
+ message?: string;
1639
+ }, FetchOptions["throw"] extends true ? true : false>>;
1640
+ };
1641
+ } & {
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: node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
1699
+ providerId: string;
1700
+ accountId?: string | undefined;
1701
+ } & {
1702
+ fetchOptions?: FetchOptions | undefined;
1703
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
1704
+ status: boolean;
1705
+ }, {
1706
+ code?: string;
1707
+ message?: string;
1708
+ }, FetchOptions["throw"] extends true ? true : false>>;
1709
+ } & {
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: node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
1768
+ providerId: string;
1769
+ accountId?: string | undefined;
1770
+ userId?: string | undefined;
1771
+ } & {
1772
+ fetchOptions?: FetchOptions | undefined;
1773
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<any, {
1774
+ code?: string;
1775
+ message?: string;
1776
+ }, FetchOptions["throw"] extends true ? true : false>>;
1777
+ } & {
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: node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
1836
+ providerId: string;
1837
+ accountId?: string | undefined;
1838
+ userId?: string | undefined;
1839
+ } & {
1840
+ fetchOptions?: FetchOptions | undefined;
1841
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
1842
+ accessToken: string;
1843
+ accessTokenExpiresAt: Date | undefined;
1844
+ scopes: string[];
1845
+ idToken: string | undefined;
1846
+ }, {
1847
+ code?: string;
1848
+ message?: string;
1849
+ }, FetchOptions["throw"] extends true ? true : false>>;
1850
+ } & {
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;
1876
+ } | 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: node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
1907
+ accountId: string;
1908
+ } & {
1909
+ fetchOptions?: FetchOptions | undefined;
1910
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
1911
+ user: packages_core_dist_oauth2.OAuth2UserInfo;
1912
+ data: Record<string, any>;
1913
+ }, {
1914
+ code?: string;
1915
+ message?: string;
1916
+ }, FetchOptions["throw"] extends true ? true : false>>;
1917
+ } & {
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?: node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
1975
+ query?: {
1976
+ disableCookieCache?: unknown;
1977
+ disableRefresh?: unknown;
1978
+ } | undefined;
1979
+ fetchOptions?: FetchOptions | undefined;
1980
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
1981
+ user: {
1982
+ id: string;
1983
+ createdAt: Date;
1984
+ updatedAt: Date;
1985
+ email: string;
1986
+ emailVerified: boolean;
1987
+ name: string;
1988
+ image?: string | null | undefined;
1989
+ };
1990
+ session: {
1991
+ id: string;
1992
+ createdAt: Date;
1993
+ updatedAt: Date;
1994
+ userId: string;
1995
+ expiresAt: Date;
1996
+ token: string;
1997
+ ipAddress?: string | null | undefined;
1998
+ userAgent?: string | null | undefined;
1999
+ };
2000
+ } | null, {
2001
+ code?: string;
2002
+ message?: string;
2003
+ }, FetchOptions["throw"] extends true ? true : false>>;
2004
+ } & {
2005
+ useSession: () => {
2006
+ data: {
2007
+ user: {
2008
+ id: string;
2009
+ createdAt: Date;
2010
+ updatedAt: Date;
2011
+ email: string;
2012
+ emailVerified: boolean;
2013
+ name: string;
2014
+ image?: string | null | undefined;
2015
+ };
2016
+ session: {
2017
+ id: string;
2018
+ createdAt: Date;
2019
+ updatedAt: Date;
2020
+ userId: string;
2021
+ expiresAt: Date;
2022
+ token: string;
2023
+ ipAddress?: string | null | undefined;
2024
+ userAgent?: string | null | undefined;
2025
+ };
2026
+ } | null;
2027
+ isPending: boolean;
2028
+ isRefetching: boolean;
2029
+ error: _better_fetch_fetch.BetterFetchError | null;
2030
+ refetch: (queryParams?: {
2031
+ query?: node_modules_better_auth_dist_shared_better_auth_BNARIIb2.i;
2032
+ }) => void;
2033
+ };
2034
+ $Infer: {
2035
+ Session: {
2036
+ user: {
2037
+ id: string;
2038
+ createdAt: Date;
2039
+ updatedAt: Date;
2040
+ email: string;
2041
+ emailVerified: boolean;
2042
+ name: string;
2043
+ image?: string | null | undefined;
2044
+ };
2045
+ session: {
2046
+ id: string;
2047
+ createdAt: Date;
2048
+ updatedAt: Date;
2049
+ userId: string;
2050
+ expiresAt: Date;
2051
+ token: string;
2052
+ ipAddress?: string | null | undefined;
2053
+ userAgent?: string | null | undefined;
2054
+ };
2055
+ };
2056
+ };
2057
+ $fetch: _better_fetch_fetch.BetterFetch<{
2058
+ plugins: (_better_fetch_fetch.BetterFetchPlugin | {
2059
+ id: string;
2060
+ name: string;
2061
+ 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;
2066
+ };
2067
+ } | {
2068
+ id: string;
2069
+ name: string;
2070
+ hooks: {
2071
+ onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
2072
+ };
2073
+ })[];
2074
+ method: string;
2075
+ headers?: (HeadersInit & (HeadersInit | {
2076
+ accept: "application/json" | "text/plain" | "application/octet-stream";
2077
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2078
+ authorization: "Bearer" | "Basic";
2079
+ })) | undefined;
2080
+ redirect?: RequestRedirect | undefined;
2081
+ cache?: RequestCache | undefined;
2082
+ credentials?: RequestCredentials;
2083
+ integrity?: string | undefined;
2084
+ keepalive?: boolean | undefined;
2085
+ mode?: RequestMode | undefined;
2086
+ priority?: RequestPriority | undefined;
2087
+ referrer?: string | undefined;
2088
+ referrerPolicy?: ReferrerPolicy | undefined;
2089
+ signal?: (AbortSignal | null) | undefined;
2090
+ window?: null | undefined;
2091
+ onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
2092
+ hookOptions?: {
2093
+ cloneResponse?: boolean;
2094
+ } | undefined;
2095
+ timeout?: number | undefined;
2096
+ customFetchImpl: _better_fetch_fetch.FetchEsque;
2097
+ baseURL: string;
2098
+ throw?: boolean | undefined;
2099
+ auth?: ({
2100
+ type: "Bearer";
2101
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2102
+ } | {
2103
+ type: "Basic";
2104
+ username: string | (() => string | undefined) | undefined;
2105
+ password: string | (() => string | undefined) | undefined;
2106
+ } | {
2107
+ type: "Custom";
2108
+ prefix: string | (() => string | undefined) | undefined;
2109
+ value: string | (() => string | undefined) | undefined;
2110
+ }) | undefined;
2111
+ body?: any;
2112
+ query?: any;
2113
+ params?: any;
2114
+ duplex?: "full" | "half" | undefined;
2115
+ jsonParser: (text: string) => Promise<any> | any;
2116
+ retry?: _better_fetch_fetch.RetryOptions | undefined;
2117
+ retryAttempt?: number | undefined;
2118
+ output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2119
+ errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
2120
+ disableValidation?: boolean | undefined;
2121
+ }, unknown, unknown, {}>;
2122
+ $store: {
2123
+ notify: (signal?: Omit<string, "$sessionSignal"> | "$sessionSignal") => void;
2124
+ listen: (signal: Omit<string, "$sessionSignal"> | "$sessionSignal", listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
2125
+ atoms: Record<string, nanostores.WritableAtom<any>>;
2126
+ };
2127
+ $ERROR_CODES: {
2128
+ readonly USER_NOT_FOUND: "User not found";
2129
+ readonly FAILED_TO_CREATE_USER: "Failed to create user";
2130
+ readonly FAILED_TO_CREATE_SESSION: "Failed to create session";
2131
+ readonly FAILED_TO_UPDATE_USER: "Failed to update user";
2132
+ readonly FAILED_TO_GET_SESSION: "Failed to get session";
2133
+ readonly INVALID_PASSWORD: "Invalid password";
2134
+ readonly INVALID_EMAIL: "Invalid email";
2135
+ readonly INVALID_EMAIL_OR_PASSWORD: "Invalid email or password";
2136
+ readonly SOCIAL_ACCOUNT_ALREADY_LINKED: "Social account already linked";
2137
+ readonly PROVIDER_NOT_FOUND: "Provider not found";
2138
+ readonly INVALID_TOKEN: "Invalid token";
2139
+ readonly ID_TOKEN_NOT_SUPPORTED: "id_token not supported";
2140
+ readonly FAILED_TO_GET_USER_INFO: "Failed to get user info";
2141
+ readonly USER_EMAIL_NOT_FOUND: "User email not found";
2142
+ readonly EMAIL_NOT_VERIFIED: "Email not verified";
2143
+ readonly PASSWORD_TOO_SHORT: "Password too short";
2144
+ readonly PASSWORD_TOO_LONG: "Password too long";
2145
+ readonly USER_ALREADY_EXISTS: "User already exists.";
2146
+ readonly USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL: "User already exists. Use another email.";
2147
+ readonly EMAIL_CAN_NOT_BE_UPDATED: "Email can not be updated";
2148
+ readonly CREDENTIAL_ACCOUNT_NOT_FOUND: "Credential account not found";
2149
+ readonly SESSION_EXPIRED: "Session expired. Re-authenticate to perform this action.";
2150
+ readonly FAILED_TO_UNLINK_LAST_ACCOUNT: "You can't unlink your last account";
2151
+ readonly ACCOUNT_NOT_FOUND: "Account not found";
2152
+ readonly USER_ALREADY_HAS_PASSWORD: "User already has a password. Provide that to delete the account.";
2153
+ };
2154
+ };
2155
+
2156
+ export { WISTRON_PRIMARY_COLOR, WISTRON_SECONDARY_COLOR, authClient };