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