better-auth-nuxt 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3492 +0,0 @@
1
- import type { RouteLocationRaw } from 'vue-router';
2
- export interface RuntimeAuthConfig {
3
- redirectUserTo: RouteLocationRaw | string;
4
- redirectGuestTo: RouteLocationRaw | string;
5
- redirectUnauthorizedTo: RouteLocationRaw | string;
6
- }
7
- export interface AuthSignOutOptions {
8
- redirectTo?: RouteLocationRaw;
9
- }
10
- export declare function useAuth(): {
11
- session: import("vue").Ref<{
12
- id: string;
13
- createdAt: Date;
14
- updatedAt: Date;
15
- userId: string;
16
- expiresAt: Date;
17
- token: string;
18
- ipAddress?: string | null | undefined | undefined;
19
- userAgent?: string | null | undefined | undefined;
20
- } | null, {
21
- id: string;
22
- createdAt: Date;
23
- updatedAt: Date;
24
- userId: string;
25
- expiresAt: Date;
26
- token: string;
27
- ipAddress?: string | null | undefined | undefined;
28
- userAgent?: string | null | undefined | undefined;
29
- } | null>;
30
- user: import("vue").Ref<{
31
- id: string;
32
- name: string;
33
- email: string;
34
- emailVerified: boolean;
35
- createdAt: Date;
36
- updatedAt: Date;
37
- image?: string | null | undefined | undefined;
38
- } | null, {
39
- id: string;
40
- name: string;
41
- email: string;
42
- emailVerified: boolean;
43
- createdAt: Date;
44
- updatedAt: Date;
45
- image?: string | null | undefined | undefined;
46
- } | null>;
47
- loggedIn: import("vue").ComputedRef<boolean>;
48
- signIn: {
49
- username: <FetchOptions extends {
50
- cache?: RequestCache | undefined;
51
- credentials?: RequestCredentials | undefined;
52
- headers?: (HeadersInit & (HeadersInit | {
53
- accept: "application/json" | "text/plain" | "application/octet-stream";
54
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
55
- authorization: "Bearer" | "Basic";
56
- })) | undefined;
57
- integrity?: string | undefined;
58
- keepalive?: boolean | undefined;
59
- method?: string | undefined;
60
- mode?: RequestMode | undefined;
61
- priority?: RequestPriority | undefined;
62
- redirect?: RequestRedirect | undefined;
63
- referrer?: string | undefined;
64
- referrerPolicy?: ReferrerPolicy | undefined;
65
- signal?: (AbortSignal | null) | undefined;
66
- window?: null | undefined;
67
- onRequest?: (<T extends Record<string, any>>(context: import("better-auth/vue").RequestContext<T>) => Promise<import("better-auth/vue").RequestContext | void> | import("better-auth/vue").RequestContext | void) | undefined;
68
- onResponse?: ((context: import("better-auth/vue").ResponseContext) => Promise<Response | void | import("better-auth/vue").ResponseContext> | Response | import("better-auth/vue").ResponseContext | void) | undefined;
69
- onSuccess?: ((context: import("better-auth/vue").SuccessContext<any>) => Promise<void> | void) | undefined;
70
- onError?: ((context: import("better-auth/vue").ErrorContext) => Promise<void> | void) | undefined;
71
- onRetry?: ((response: import("better-auth/vue").ResponseContext) => Promise<void> | void) | undefined;
72
- hookOptions?: {
73
- cloneResponse?: boolean;
74
- } | undefined;
75
- timeout?: number | undefined;
76
- customFetchImpl?: import("better-auth/vue").FetchEsque | undefined;
77
- plugins?: import("better-auth/vue").BetterFetchPlugin[] | undefined;
78
- baseURL?: string | undefined;
79
- throw?: boolean | undefined;
80
- auth?: ({
81
- type: "Bearer";
82
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
83
- } | {
84
- type: "Basic";
85
- username: string | (() => string | undefined) | undefined;
86
- password: string | (() => string | undefined) | undefined;
87
- } | {
88
- type: "Custom";
89
- prefix: string | (() => string | undefined) | undefined;
90
- value: string | (() => string | undefined) | undefined;
91
- }) | undefined;
92
- body?: (Partial<{
93
- password: string;
94
- username: string;
95
- rememberMe?: boolean | undefined;
96
- }> & Record<string, any>) | undefined;
97
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
98
- params?: Record<string, any> | undefined;
99
- duplex?: "full" | "half" | undefined;
100
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
101
- retry?: import("better-auth/vue").RetryOptions | undefined;
102
- retryAttempt?: number | undefined;
103
- output?: (import("better-auth/vue").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
104
- errorSchema?: import("better-auth/vue").StandardSchemaV1 | undefined;
105
- disableValidation?: boolean | undefined;
106
- }>(data_0: import("better-auth").Prettify<{
107
- password: string;
108
- username: string;
109
- rememberMe?: boolean | undefined;
110
- } & {
111
- fetchOptions?: FetchOptions | undefined;
112
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/vue").BetterFetchResponse<{
113
- token: string;
114
- user: {
115
- id: string;
116
- email: string;
117
- emailVerified: boolean;
118
- username: string;
119
- name: string;
120
- image: string | null | undefined;
121
- createdAt: Date;
122
- updatedAt: Date;
123
- };
124
- }, {
125
- code?: string;
126
- message?: string;
127
- }, FetchOptions["throw"] extends true ? true : false>>;
128
- } & {
129
- social: <FetchOptions extends {
130
- cache?: RequestCache | undefined;
131
- credentials?: RequestCredentials | undefined;
132
- headers?: (HeadersInit & (HeadersInit | {
133
- accept: "application/json" | "text/plain" | "application/octet-stream";
134
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
135
- authorization: "Bearer" | "Basic";
136
- })) | undefined;
137
- integrity?: string | undefined;
138
- keepalive?: boolean | undefined;
139
- method?: string | undefined;
140
- mode?: RequestMode | undefined;
141
- priority?: RequestPriority | undefined;
142
- redirect?: RequestRedirect | undefined;
143
- referrer?: string | undefined;
144
- referrerPolicy?: ReferrerPolicy | undefined;
145
- signal?: (AbortSignal | null) | undefined;
146
- window?: null | undefined;
147
- onRequest?: (<T extends Record<string, any>>(context: import("better-auth/vue").RequestContext<T>) => Promise<import("better-auth/vue").RequestContext | void> | import("better-auth/vue").RequestContext | void) | undefined;
148
- onResponse?: ((context: import("better-auth/vue").ResponseContext) => Promise<Response | void | import("better-auth/vue").ResponseContext> | Response | import("better-auth/vue").ResponseContext | void) | undefined;
149
- onSuccess?: ((context: import("better-auth/vue").SuccessContext<any>) => Promise<void> | void) | undefined;
150
- onError?: ((context: import("better-auth/vue").ErrorContext) => Promise<void> | void) | undefined;
151
- onRetry?: ((response: import("better-auth/vue").ResponseContext) => Promise<void> | void) | undefined;
152
- hookOptions?: {
153
- cloneResponse?: boolean;
154
- } | undefined;
155
- timeout?: number | undefined;
156
- customFetchImpl?: import("better-auth/vue").FetchEsque | undefined;
157
- plugins?: import("better-auth/vue").BetterFetchPlugin[] | undefined;
158
- baseURL?: string | undefined;
159
- throw?: boolean | undefined;
160
- auth?: ({
161
- type: "Bearer";
162
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
163
- } | {
164
- type: "Basic";
165
- username: string | (() => string | undefined) | undefined;
166
- password: string | (() => string | undefined) | undefined;
167
- } | {
168
- type: "Custom";
169
- prefix: string | (() => string | undefined) | undefined;
170
- value: string | (() => string | undefined) | undefined;
171
- }) | undefined;
172
- body?: (Partial<{
173
- provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick" | "zoom";
174
- scopes?: string[] | undefined;
175
- loginHint?: string | undefined;
176
- idToken?: {
177
- token: string;
178
- refreshToken?: string | undefined;
179
- accessToken?: string | undefined;
180
- expiresAt?: number | undefined;
181
- nonce?: string | undefined;
182
- } | undefined;
183
- callbackURL?: string | undefined;
184
- requestSignUp?: boolean | undefined;
185
- errorCallbackURL?: string | undefined;
186
- newUserCallbackURL?: string | undefined;
187
- disableRedirect?: boolean | undefined;
188
- }> & Record<string, any>) | undefined;
189
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
190
- params?: Record<string, any> | undefined;
191
- duplex?: "full" | "half" | undefined;
192
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
193
- retry?: import("better-auth/vue").RetryOptions | undefined;
194
- retryAttempt?: number | undefined;
195
- output?: (import("better-auth/vue").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
196
- errorSchema?: import("better-auth/vue").StandardSchemaV1 | undefined;
197
- disableValidation?: boolean | undefined;
198
- }>(data_0: import("better-auth").Prettify<{
199
- provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick" | "zoom";
200
- scopes?: string[] | undefined;
201
- loginHint?: string | undefined;
202
- idToken?: {
203
- token: string;
204
- refreshToken?: string | undefined;
205
- accessToken?: string | undefined;
206
- expiresAt?: number | undefined;
207
- nonce?: string | undefined;
208
- } | undefined;
209
- callbackURL?: string | undefined;
210
- requestSignUp?: boolean | undefined;
211
- errorCallbackURL?: string | undefined;
212
- newUserCallbackURL?: string | undefined;
213
- disableRedirect?: boolean | undefined;
214
- } & {
215
- fetchOptions?: FetchOptions | undefined;
216
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/vue").BetterFetchResponse<NonNullable<{
217
- redirect: boolean;
218
- token: string;
219
- url: undefined;
220
- user: {
221
- id: string;
222
- email: string;
223
- name: string;
224
- image: string | null | undefined;
225
- emailVerified: boolean;
226
- createdAt: Date;
227
- updatedAt: Date;
228
- };
229
- } | {
230
- url: string;
231
- redirect: boolean;
232
- }>, {
233
- code?: string;
234
- message?: string;
235
- }, FetchOptions["throw"] extends true ? true : false>>;
236
- } & {
237
- email: <FetchOptions extends {
238
- cache?: RequestCache | undefined;
239
- credentials?: RequestCredentials | undefined;
240
- headers?: (HeadersInit & (HeadersInit | {
241
- accept: "application/json" | "text/plain" | "application/octet-stream";
242
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
243
- authorization: "Bearer" | "Basic";
244
- })) | undefined;
245
- integrity?: string | undefined;
246
- keepalive?: boolean | undefined;
247
- method?: string | undefined;
248
- mode?: RequestMode | undefined;
249
- priority?: RequestPriority | undefined;
250
- redirect?: RequestRedirect | undefined;
251
- referrer?: string | undefined;
252
- referrerPolicy?: ReferrerPolicy | undefined;
253
- signal?: (AbortSignal | null) | undefined;
254
- window?: null | undefined;
255
- onRequest?: (<T extends Record<string, any>>(context: import("better-auth/vue").RequestContext<T>) => Promise<import("better-auth/vue").RequestContext | void> | import("better-auth/vue").RequestContext | void) | undefined;
256
- onResponse?: ((context: import("better-auth/vue").ResponseContext) => Promise<Response | void | import("better-auth/vue").ResponseContext> | Response | import("better-auth/vue").ResponseContext | void) | undefined;
257
- onSuccess?: ((context: import("better-auth/vue").SuccessContext<any>) => Promise<void> | void) | undefined;
258
- onError?: ((context: import("better-auth/vue").ErrorContext) => Promise<void> | void) | undefined;
259
- onRetry?: ((response: import("better-auth/vue").ResponseContext) => Promise<void> | void) | undefined;
260
- hookOptions?: {
261
- cloneResponse?: boolean;
262
- } | undefined;
263
- timeout?: number | undefined;
264
- customFetchImpl?: import("better-auth/vue").FetchEsque | undefined;
265
- plugins?: import("better-auth/vue").BetterFetchPlugin[] | undefined;
266
- baseURL?: string | undefined;
267
- throw?: boolean | undefined;
268
- auth?: ({
269
- type: "Bearer";
270
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
271
- } | {
272
- type: "Basic";
273
- username: string | (() => string | undefined) | undefined;
274
- password: string | (() => string | undefined) | undefined;
275
- } | {
276
- type: "Custom";
277
- prefix: string | (() => string | undefined) | undefined;
278
- value: string | (() => string | undefined) | undefined;
279
- }) | undefined;
280
- body?: (Partial<{
281
- password: string;
282
- email: string;
283
- callbackURL?: string | undefined;
284
- rememberMe?: boolean | undefined;
285
- }> & Record<string, any>) | undefined;
286
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
287
- params?: Record<string, any> | undefined;
288
- duplex?: "full" | "half" | undefined;
289
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
290
- retry?: import("better-auth/vue").RetryOptions | undefined;
291
- retryAttempt?: number | undefined;
292
- output?: (import("better-auth/vue").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
293
- errorSchema?: import("better-auth/vue").StandardSchemaV1 | undefined;
294
- disableValidation?: boolean | undefined;
295
- }>(data_0: import("better-auth").Prettify<{
296
- password: string;
297
- email: string;
298
- callbackURL?: string | undefined;
299
- rememberMe?: boolean | undefined;
300
- } & {
301
- fetchOptions?: FetchOptions | undefined;
302
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/vue").BetterFetchResponse<{
303
- redirect: boolean;
304
- token: string;
305
- url: string | undefined;
306
- user: {
307
- id: string;
308
- email: string;
309
- name: string;
310
- image: string | null | undefined;
311
- emailVerified: boolean;
312
- createdAt: Date;
313
- updatedAt: Date;
314
- };
315
- }, {
316
- code?: string;
317
- message?: string;
318
- }, FetchOptions["throw"] extends true ? true : false>>;
319
- };
320
- signUp: {
321
- email: <FetchOptions extends {
322
- cache?: RequestCache | undefined;
323
- credentials?: RequestCredentials | undefined;
324
- headers?: (HeadersInit & (HeadersInit | {
325
- accept: "application/json" | "text/plain" | "application/octet-stream";
326
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
327
- authorization: "Bearer" | "Basic";
328
- })) | undefined;
329
- integrity?: string | undefined;
330
- keepalive?: boolean | undefined;
331
- method?: string | undefined;
332
- mode?: RequestMode | undefined;
333
- priority?: RequestPriority | undefined;
334
- redirect?: RequestRedirect | undefined;
335
- referrer?: string | undefined;
336
- referrerPolicy?: ReferrerPolicy | undefined;
337
- signal?: (AbortSignal | null) | undefined;
338
- window?: null | undefined;
339
- onRequest?: (<T extends Record<string, any>>(context: import("better-auth/vue").RequestContext<T>) => Promise<import("better-auth/vue").RequestContext | void> | import("better-auth/vue").RequestContext | void) | undefined;
340
- onResponse?: ((context: import("better-auth/vue").ResponseContext) => Promise<Response | void | import("better-auth/vue").ResponseContext> | Response | import("better-auth/vue").ResponseContext | void) | undefined;
341
- onSuccess?: ((context: import("better-auth/vue").SuccessContext<any>) => Promise<void> | void) | undefined;
342
- onError?: ((context: import("better-auth/vue").ErrorContext) => Promise<void> | void) | undefined;
343
- onRetry?: ((response: import("better-auth/vue").ResponseContext) => Promise<void> | void) | undefined;
344
- hookOptions?: {
345
- cloneResponse?: boolean;
346
- } | undefined;
347
- timeout?: number | undefined;
348
- customFetchImpl?: import("better-auth/vue").FetchEsque | undefined;
349
- plugins?: import("better-auth/vue").BetterFetchPlugin[] | undefined;
350
- baseURL?: string | undefined;
351
- throw?: boolean | undefined;
352
- auth?: ({
353
- type: "Bearer";
354
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
355
- } | {
356
- type: "Basic";
357
- username: string | (() => string | undefined) | undefined;
358
- password: string | (() => string | undefined) | undefined;
359
- } | {
360
- type: "Custom";
361
- prefix: string | (() => string | undefined) | undefined;
362
- value: string | (() => string | undefined) | undefined;
363
- }) | undefined;
364
- body?: (Partial<{
365
- name: string;
366
- email: string;
367
- password: string;
368
- }> & Record<string, any>) | undefined;
369
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
370
- params?: Record<string, any> | undefined;
371
- duplex?: "full" | "half" | undefined;
372
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
373
- retry?: import("better-auth/vue").RetryOptions | undefined;
374
- retryAttempt?: number | undefined;
375
- output?: (import("better-auth/vue").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
376
- errorSchema?: import("better-auth/vue").StandardSchemaV1 | undefined;
377
- disableValidation?: boolean | undefined;
378
- }>(data_0: import("better-auth").Prettify<{
379
- email: string;
380
- name: string;
381
- password: string;
382
- image?: string;
383
- callbackURL?: string;
384
- fetchOptions?: FetchOptions | undefined;
385
- } & {} & {} & {} & {
386
- username?: string | null | undefined;
387
- displayUsername?: string | null | undefined;
388
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/vue").BetterFetchResponse<NonNullable<{
389
- token: null;
390
- user: {
391
- id: string;
392
- email: string;
393
- name: string;
394
- image: string | null | undefined;
395
- emailVerified: boolean;
396
- createdAt: Date;
397
- updatedAt: Date;
398
- };
399
- } | {
400
- token: string;
401
- user: {
402
- id: string;
403
- email: string;
404
- name: string;
405
- image: string | null | undefined;
406
- emailVerified: boolean;
407
- createdAt: Date;
408
- updatedAt: Date;
409
- };
410
- }>, {
411
- code?: string;
412
- message?: string;
413
- }, FetchOptions["throw"] extends true ? true : false>>;
414
- };
415
- options: any;
416
- fetchSession: () => Promise<{
417
- user: {
418
- id: string;
419
- name: string;
420
- email: string;
421
- emailVerified: boolean;
422
- createdAt: Date;
423
- updatedAt: Date;
424
- image?: string | null | undefined | undefined;
425
- banned: boolean | null | undefined;
426
- role?: string | null | undefined;
427
- banReason?: string | null | undefined;
428
- banExpires?: Date | null | undefined;
429
- username?: string | null | undefined;
430
- displayUsername?: string | null | undefined;
431
- };
432
- session: {
433
- id: string;
434
- createdAt: Date;
435
- updatedAt: Date;
436
- userId: string;
437
- expiresAt: Date;
438
- token: string;
439
- ipAddress?: string | null | undefined | undefined;
440
- userAgent?: string | null | undefined | undefined;
441
- impersonatedBy?: string | null | undefined;
442
- };
443
- } | null | undefined>;
444
- client: {
445
- admin: {
446
- setRole: <FetchOptions extends {
447
- cache?: RequestCache | undefined;
448
- credentials?: RequestCredentials | undefined;
449
- headers?: (HeadersInit & (HeadersInit | {
450
- accept: "application/json" | "text/plain" | "application/octet-stream";
451
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
452
- authorization: "Bearer" | "Basic";
453
- })) | undefined;
454
- integrity?: string | undefined;
455
- keepalive?: boolean | undefined;
456
- method?: string | undefined;
457
- mode?: RequestMode | undefined;
458
- priority?: RequestPriority | undefined;
459
- redirect?: RequestRedirect | undefined;
460
- referrer?: string | undefined;
461
- referrerPolicy?: ReferrerPolicy | undefined;
462
- signal?: (AbortSignal | null) | undefined;
463
- window?: null | undefined;
464
- onRequest?: (<T extends Record<string, any>>(context: import("better-auth/vue").RequestContext<T>) => Promise<import("better-auth/vue").RequestContext | void> | import("better-auth/vue").RequestContext | void) | undefined;
465
- onResponse?: ((context: import("better-auth/vue").ResponseContext) => Promise<Response | void | import("better-auth/vue").ResponseContext> | Response | import("better-auth/vue").ResponseContext | void) | undefined;
466
- onSuccess?: ((context: import("better-auth/vue").SuccessContext<any>) => Promise<void> | void) | undefined;
467
- onError?: ((context: import("better-auth/vue").ErrorContext) => Promise<void> | void) | undefined;
468
- onRetry?: ((response: import("better-auth/vue").ResponseContext) => Promise<void> | void) | undefined;
469
- hookOptions?: {
470
- cloneResponse?: boolean;
471
- } | undefined;
472
- timeout?: number | undefined;
473
- customFetchImpl?: import("better-auth/vue").FetchEsque | undefined;
474
- plugins?: import("better-auth/vue").BetterFetchPlugin[] | undefined;
475
- baseURL?: string | undefined;
476
- throw?: boolean | undefined;
477
- auth?: ({
478
- type: "Bearer";
479
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
480
- } | {
481
- type: "Basic";
482
- username: string | (() => string | undefined) | undefined;
483
- password: string | (() => string | undefined) | undefined;
484
- } | {
485
- type: "Custom";
486
- prefix: string | (() => string | undefined) | undefined;
487
- value: string | (() => string | undefined) | undefined;
488
- }) | undefined;
489
- body?: (Partial<{
490
- userId: string;
491
- role: "user" | "admin" | ("user" | "admin")[];
492
- }> & Record<string, any>) | undefined;
493
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
494
- params?: Record<string, any> | undefined;
495
- duplex?: "full" | "half" | undefined;
496
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
497
- retry?: import("better-auth/vue").RetryOptions | undefined;
498
- retryAttempt?: number | undefined;
499
- output?: (import("better-auth/vue").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
500
- errorSchema?: import("better-auth/vue").StandardSchemaV1 | undefined;
501
- disableValidation?: boolean | undefined;
502
- }>(data_0: import("better-auth").Prettify<{
503
- userId: string;
504
- role: "user" | "admin" | ("user" | "admin")[];
505
- } & {
506
- fetchOptions?: FetchOptions | undefined;
507
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/vue").BetterFetchResponse<{
508
- user: import("better-auth/plugins/admin").UserWithRole;
509
- }, {
510
- code?: string;
511
- message?: string;
512
- }, FetchOptions["throw"] extends true ? true : false>>;
513
- };
514
- } & {
515
- admin: {
516
- createUser: <FetchOptions extends {
517
- cache?: RequestCache | undefined;
518
- credentials?: RequestCredentials | undefined;
519
- headers?: (HeadersInit & (HeadersInit | {
520
- accept: "application/json" | "text/plain" | "application/octet-stream";
521
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
522
- authorization: "Bearer" | "Basic";
523
- })) | undefined;
524
- integrity?: string | undefined;
525
- keepalive?: boolean | undefined;
526
- method?: string | undefined;
527
- mode?: RequestMode | undefined;
528
- priority?: RequestPriority | undefined;
529
- redirect?: RequestRedirect | undefined;
530
- referrer?: string | undefined;
531
- referrerPolicy?: ReferrerPolicy | undefined;
532
- signal?: (AbortSignal | null) | undefined;
533
- window?: null | undefined;
534
- onRequest?: (<T extends Record<string, any>>(context: import("better-auth/vue").RequestContext<T>) => Promise<import("better-auth/vue").RequestContext | void> | import("better-auth/vue").RequestContext | void) | undefined;
535
- onResponse?: ((context: import("better-auth/vue").ResponseContext) => Promise<Response | void | import("better-auth/vue").ResponseContext> | Response | import("better-auth/vue").ResponseContext | void) | undefined;
536
- onSuccess?: ((context: import("better-auth/vue").SuccessContext<any>) => Promise<void> | void) | undefined;
537
- onError?: ((context: import("better-auth/vue").ErrorContext) => Promise<void> | void) | undefined;
538
- onRetry?: ((response: import("better-auth/vue").ResponseContext) => Promise<void> | void) | undefined;
539
- hookOptions?: {
540
- cloneResponse?: boolean;
541
- } | undefined;
542
- timeout?: number | undefined;
543
- customFetchImpl?: import("better-auth/vue").FetchEsque | undefined;
544
- plugins?: import("better-auth/vue").BetterFetchPlugin[] | undefined;
545
- baseURL?: string | undefined;
546
- throw?: boolean | undefined;
547
- auth?: ({
548
- type: "Bearer";
549
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
550
- } | {
551
- type: "Basic";
552
- username: string | (() => string | undefined) | undefined;
553
- password: string | (() => string | undefined) | undefined;
554
- } | {
555
- type: "Custom";
556
- prefix: string | (() => string | undefined) | undefined;
557
- value: string | (() => string | undefined) | undefined;
558
- }) | undefined;
559
- body?: (Partial<{
560
- email: string;
561
- password: string;
562
- name: string;
563
- role?: "user" | "admin" | ("user" | "admin")[] | undefined;
564
- data?: Record<string, any>;
565
- }> & Record<string, any>) | undefined;
566
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
567
- params?: Record<string, any> | undefined;
568
- duplex?: "full" | "half" | undefined;
569
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
570
- retry?: import("better-auth/vue").RetryOptions | undefined;
571
- retryAttempt?: number | undefined;
572
- output?: (import("better-auth/vue").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
573
- errorSchema?: import("better-auth/vue").StandardSchemaV1 | undefined;
574
- disableValidation?: boolean | undefined;
575
- }>(data_0: import("better-auth").Prettify<{
576
- email: string;
577
- password: string;
578
- name: string;
579
- role?: "user" | "admin" | ("user" | "admin")[] | undefined;
580
- data?: Record<string, any>;
581
- } & {
582
- fetchOptions?: FetchOptions | undefined;
583
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/vue").BetterFetchResponse<{
584
- user: import("better-auth/plugins/admin").UserWithRole;
585
- }, {
586
- code?: string;
587
- message?: string;
588
- }, FetchOptions["throw"] extends true ? true : false>>;
589
- };
590
- } & {
591
- admin: {
592
- listUsers: <FetchOptions extends {
593
- cache?: RequestCache | undefined;
594
- credentials?: RequestCredentials | undefined;
595
- headers?: (HeadersInit & (HeadersInit | {
596
- accept: "application/json" | "text/plain" | "application/octet-stream";
597
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
598
- authorization: "Bearer" | "Basic";
599
- })) | undefined;
600
- integrity?: string | undefined;
601
- keepalive?: boolean | undefined;
602
- method?: string | undefined;
603
- mode?: RequestMode | undefined;
604
- priority?: RequestPriority | undefined;
605
- redirect?: RequestRedirect | undefined;
606
- referrer?: string | undefined;
607
- referrerPolicy?: ReferrerPolicy | undefined;
608
- signal?: (AbortSignal | null) | undefined;
609
- window?: null | undefined;
610
- onRequest?: (<T extends Record<string, any>>(context: import("better-auth/vue").RequestContext<T>) => Promise<import("better-auth/vue").RequestContext | void> | import("better-auth/vue").RequestContext | void) | undefined;
611
- onResponse?: ((context: import("better-auth/vue").ResponseContext) => Promise<Response | void | import("better-auth/vue").ResponseContext> | Response | import("better-auth/vue").ResponseContext | void) | undefined;
612
- onSuccess?: ((context: import("better-auth/vue").SuccessContext<any>) => Promise<void> | void) | undefined;
613
- onError?: ((context: import("better-auth/vue").ErrorContext) => Promise<void> | void) | undefined;
614
- onRetry?: ((response: import("better-auth/vue").ResponseContext) => Promise<void> | void) | undefined;
615
- hookOptions?: {
616
- cloneResponse?: boolean;
617
- } | undefined;
618
- timeout?: number | undefined;
619
- customFetchImpl?: import("better-auth/vue").FetchEsque | undefined;
620
- plugins?: import("better-auth/vue").BetterFetchPlugin[] | undefined;
621
- baseURL?: string | undefined;
622
- throw?: boolean | undefined;
623
- auth?: ({
624
- type: "Bearer";
625
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
626
- } | {
627
- type: "Basic";
628
- username: string | (() => string | undefined) | undefined;
629
- password: string | (() => string | undefined) | undefined;
630
- } | {
631
- type: "Custom";
632
- prefix: string | (() => string | undefined) | undefined;
633
- value: string | (() => string | undefined) | undefined;
634
- }) | undefined;
635
- body?: undefined;
636
- query?: (Partial<{
637
- searchValue?: string | undefined;
638
- searchField?: "name" | "email" | undefined;
639
- searchOperator?: "contains" | "starts_with" | "ends_with" | undefined;
640
- limit?: string | number | undefined;
641
- offset?: string | number | undefined;
642
- sortBy?: string | undefined;
643
- sortDirection?: "asc" | "desc" | undefined;
644
- filterField?: string | undefined;
645
- filterValue?: string | number | boolean | undefined;
646
- filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
647
- }> & Record<string, any>) | undefined;
648
- params?: Record<string, any> | undefined;
649
- duplex?: "full" | "half" | undefined;
650
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
651
- retry?: import("better-auth/vue").RetryOptions | undefined;
652
- retryAttempt?: number | undefined;
653
- output?: (import("better-auth/vue").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
654
- errorSchema?: import("better-auth/vue").StandardSchemaV1 | undefined;
655
- disableValidation?: boolean | undefined;
656
- }>(data_0: import("better-auth").Prettify<{
657
- query: {
658
- searchValue?: string | undefined;
659
- searchField?: "name" | "email" | undefined;
660
- searchOperator?: "contains" | "starts_with" | "ends_with" | undefined;
661
- limit?: string | number | undefined;
662
- offset?: string | number | undefined;
663
- sortBy?: string | undefined;
664
- sortDirection?: "asc" | "desc" | undefined;
665
- filterField?: string | undefined;
666
- filterValue?: string | number | boolean | undefined;
667
- filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
668
- };
669
- fetchOptions?: FetchOptions | undefined;
670
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/vue").BetterFetchResponse<NonNullable<{
671
- users: import("better-auth/plugins/admin").UserWithRole[];
672
- total: number;
673
- limit: number | undefined;
674
- offset: number | undefined;
675
- } | {
676
- users: never[];
677
- total: number;
678
- }>, {
679
- code?: string;
680
- message?: string;
681
- }, FetchOptions["throw"] extends true ? true : false>>;
682
- };
683
- } & {
684
- admin: {
685
- listUserSessions: <FetchOptions extends {
686
- cache?: RequestCache | undefined;
687
- credentials?: RequestCredentials | undefined;
688
- headers?: (HeadersInit & (HeadersInit | {
689
- accept: "application/json" | "text/plain" | "application/octet-stream";
690
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
691
- authorization: "Bearer" | "Basic";
692
- })) | undefined;
693
- integrity?: string | undefined;
694
- keepalive?: boolean | undefined;
695
- method?: string | undefined;
696
- mode?: RequestMode | undefined;
697
- priority?: RequestPriority | undefined;
698
- redirect?: RequestRedirect | undefined;
699
- referrer?: string | undefined;
700
- referrerPolicy?: ReferrerPolicy | undefined;
701
- signal?: (AbortSignal | null) | undefined;
702
- window?: null | undefined;
703
- onRequest?: (<T extends Record<string, any>>(context: import("better-auth/vue").RequestContext<T>) => Promise<import("better-auth/vue").RequestContext | void> | import("better-auth/vue").RequestContext | void) | undefined;
704
- onResponse?: ((context: import("better-auth/vue").ResponseContext) => Promise<Response | void | import("better-auth/vue").ResponseContext> | Response | import("better-auth/vue").ResponseContext | void) | undefined;
705
- onSuccess?: ((context: import("better-auth/vue").SuccessContext<any>) => Promise<void> | void) | undefined;
706
- onError?: ((context: import("better-auth/vue").ErrorContext) => Promise<void> | void) | undefined;
707
- onRetry?: ((response: import("better-auth/vue").ResponseContext) => Promise<void> | void) | undefined;
708
- hookOptions?: {
709
- cloneResponse?: boolean;
710
- } | undefined;
711
- timeout?: number | undefined;
712
- customFetchImpl?: import("better-auth/vue").FetchEsque | undefined;
713
- plugins?: import("better-auth/vue").BetterFetchPlugin[] | undefined;
714
- baseURL?: string | undefined;
715
- throw?: boolean | undefined;
716
- auth?: ({
717
- type: "Bearer";
718
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
719
- } | {
720
- type: "Basic";
721
- username: string | (() => string | undefined) | undefined;
722
- password: string | (() => string | undefined) | undefined;
723
- } | {
724
- type: "Custom";
725
- prefix: string | (() => string | undefined) | undefined;
726
- value: string | (() => string | undefined) | undefined;
727
- }) | undefined;
728
- body?: (Partial<{
729
- userId: string;
730
- }> & Record<string, any>) | undefined;
731
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
732
- params?: Record<string, any> | undefined;
733
- duplex?: "full" | "half" | undefined;
734
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
735
- retry?: import("better-auth/vue").RetryOptions | undefined;
736
- retryAttempt?: number | undefined;
737
- output?: (import("better-auth/vue").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
738
- errorSchema?: import("better-auth/vue").StandardSchemaV1 | undefined;
739
- disableValidation?: boolean | undefined;
740
- }>(data_0: import("better-auth").Prettify<{
741
- userId: string;
742
- } & {
743
- fetchOptions?: FetchOptions | undefined;
744
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/vue").BetterFetchResponse<{
745
- sessions: {
746
- id: string;
747
- createdAt: Date;
748
- updatedAt: Date;
749
- userId: string;
750
- expiresAt: Date;
751
- token: string;
752
- ipAddress?: string | null | undefined;
753
- userAgent?: string | null | undefined;
754
- }[];
755
- }, {
756
- code?: string;
757
- message?: string;
758
- }, FetchOptions["throw"] extends true ? true : false>>;
759
- };
760
- } & {
761
- admin: {
762
- unbanUser: <FetchOptions extends {
763
- cache?: RequestCache | undefined;
764
- credentials?: RequestCredentials | undefined;
765
- headers?: (HeadersInit & (HeadersInit | {
766
- accept: "application/json" | "text/plain" | "application/octet-stream";
767
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
768
- authorization: "Bearer" | "Basic";
769
- })) | undefined;
770
- integrity?: string | undefined;
771
- keepalive?: boolean | undefined;
772
- method?: string | undefined;
773
- mode?: RequestMode | undefined;
774
- priority?: RequestPriority | undefined;
775
- redirect?: RequestRedirect | undefined;
776
- referrer?: string | undefined;
777
- referrerPolicy?: ReferrerPolicy | undefined;
778
- signal?: (AbortSignal | null) | undefined;
779
- window?: null | undefined;
780
- onRequest?: (<T extends Record<string, any>>(context: import("better-auth/vue").RequestContext<T>) => Promise<import("better-auth/vue").RequestContext | void> | import("better-auth/vue").RequestContext | void) | undefined;
781
- onResponse?: ((context: import("better-auth/vue").ResponseContext) => Promise<Response | void | import("better-auth/vue").ResponseContext> | Response | import("better-auth/vue").ResponseContext | void) | undefined;
782
- onSuccess?: ((context: import("better-auth/vue").SuccessContext<any>) => Promise<void> | void) | undefined;
783
- onError?: ((context: import("better-auth/vue").ErrorContext) => Promise<void> | void) | undefined;
784
- onRetry?: ((response: import("better-auth/vue").ResponseContext) => Promise<void> | void) | undefined;
785
- hookOptions?: {
786
- cloneResponse?: boolean;
787
- } | undefined;
788
- timeout?: number | undefined;
789
- customFetchImpl?: import("better-auth/vue").FetchEsque | undefined;
790
- plugins?: import("better-auth/vue").BetterFetchPlugin[] | undefined;
791
- baseURL?: string | undefined;
792
- throw?: boolean | undefined;
793
- auth?: ({
794
- type: "Bearer";
795
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
796
- } | {
797
- type: "Basic";
798
- username: string | (() => string | undefined) | undefined;
799
- password: string | (() => string | undefined) | undefined;
800
- } | {
801
- type: "Custom";
802
- prefix: string | (() => string | undefined) | undefined;
803
- value: string | (() => string | undefined) | undefined;
804
- }) | undefined;
805
- body?: (Partial<{
806
- userId: string;
807
- }> & Record<string, any>) | undefined;
808
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
809
- params?: Record<string, any> | undefined;
810
- duplex?: "full" | "half" | undefined;
811
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
812
- retry?: import("better-auth/vue").RetryOptions | undefined;
813
- retryAttempt?: number | undefined;
814
- output?: (import("better-auth/vue").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
815
- errorSchema?: import("better-auth/vue").StandardSchemaV1 | undefined;
816
- disableValidation?: boolean | undefined;
817
- }>(data_0: import("better-auth").Prettify<{
818
- userId: string;
819
- } & {
820
- fetchOptions?: FetchOptions | undefined;
821
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/vue").BetterFetchResponse<{
822
- user: any;
823
- }, {
824
- code?: string;
825
- message?: string;
826
- }, FetchOptions["throw"] extends true ? true : false>>;
827
- };
828
- } & {
829
- admin: {
830
- banUser: <FetchOptions extends {
831
- cache?: RequestCache | undefined;
832
- credentials?: RequestCredentials | undefined;
833
- headers?: (HeadersInit & (HeadersInit | {
834
- accept: "application/json" | "text/plain" | "application/octet-stream";
835
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
836
- authorization: "Bearer" | "Basic";
837
- })) | undefined;
838
- integrity?: string | undefined;
839
- keepalive?: boolean | undefined;
840
- method?: string | undefined;
841
- mode?: RequestMode | undefined;
842
- priority?: RequestPriority | undefined;
843
- redirect?: RequestRedirect | undefined;
844
- referrer?: string | undefined;
845
- referrerPolicy?: ReferrerPolicy | undefined;
846
- signal?: (AbortSignal | null) | undefined;
847
- window?: null | undefined;
848
- onRequest?: (<T extends Record<string, any>>(context: import("better-auth/vue").RequestContext<T>) => Promise<import("better-auth/vue").RequestContext | void> | import("better-auth/vue").RequestContext | void) | undefined;
849
- onResponse?: ((context: import("better-auth/vue").ResponseContext) => Promise<Response | void | import("better-auth/vue").ResponseContext> | Response | import("better-auth/vue").ResponseContext | void) | undefined;
850
- onSuccess?: ((context: import("better-auth/vue").SuccessContext<any>) => Promise<void> | void) | undefined;
851
- onError?: ((context: import("better-auth/vue").ErrorContext) => Promise<void> | void) | undefined;
852
- onRetry?: ((response: import("better-auth/vue").ResponseContext) => Promise<void> | void) | undefined;
853
- hookOptions?: {
854
- cloneResponse?: boolean;
855
- } | undefined;
856
- timeout?: number | undefined;
857
- customFetchImpl?: import("better-auth/vue").FetchEsque | undefined;
858
- plugins?: import("better-auth/vue").BetterFetchPlugin[] | undefined;
859
- baseURL?: string | undefined;
860
- throw?: boolean | undefined;
861
- auth?: ({
862
- type: "Bearer";
863
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
864
- } | {
865
- type: "Basic";
866
- username: string | (() => string | undefined) | undefined;
867
- password: string | (() => string | undefined) | undefined;
868
- } | {
869
- type: "Custom";
870
- prefix: string | (() => string | undefined) | undefined;
871
- value: string | (() => string | undefined) | undefined;
872
- }) | undefined;
873
- body?: (Partial<{
874
- userId: string;
875
- banReason?: string | undefined;
876
- banExpiresIn?: number | undefined;
877
- }> & Record<string, any>) | undefined;
878
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
879
- params?: Record<string, any> | undefined;
880
- duplex?: "full" | "half" | undefined;
881
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
882
- retry?: import("better-auth/vue").RetryOptions | undefined;
883
- retryAttempt?: number | undefined;
884
- output?: (import("better-auth/vue").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
885
- errorSchema?: import("better-auth/vue").StandardSchemaV1 | undefined;
886
- disableValidation?: boolean | undefined;
887
- }>(data_0: import("better-auth").Prettify<{
888
- userId: string;
889
- banReason?: string | undefined;
890
- banExpiresIn?: number | undefined;
891
- } & {
892
- fetchOptions?: FetchOptions | undefined;
893
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/vue").BetterFetchResponse<{
894
- user: any;
895
- }, {
896
- code?: string;
897
- message?: string;
898
- }, FetchOptions["throw"] extends true ? true : false>>;
899
- };
900
- } & {
901
- admin: {
902
- impersonateUser: <FetchOptions extends {
903
- cache?: RequestCache | undefined;
904
- credentials?: RequestCredentials | undefined;
905
- headers?: (HeadersInit & (HeadersInit | {
906
- accept: "application/json" | "text/plain" | "application/octet-stream";
907
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
908
- authorization: "Bearer" | "Basic";
909
- })) | undefined;
910
- integrity?: string | undefined;
911
- keepalive?: boolean | undefined;
912
- method?: string | undefined;
913
- mode?: RequestMode | undefined;
914
- priority?: RequestPriority | undefined;
915
- redirect?: RequestRedirect | undefined;
916
- referrer?: string | undefined;
917
- referrerPolicy?: ReferrerPolicy | undefined;
918
- signal?: (AbortSignal | null) | undefined;
919
- window?: null | undefined;
920
- onRequest?: (<T extends Record<string, any>>(context: import("better-auth/vue").RequestContext<T>) => Promise<import("better-auth/vue").RequestContext | void> | import("better-auth/vue").RequestContext | void) | undefined;
921
- onResponse?: ((context: import("better-auth/vue").ResponseContext) => Promise<Response | void | import("better-auth/vue").ResponseContext> | Response | import("better-auth/vue").ResponseContext | void) | undefined;
922
- onSuccess?: ((context: import("better-auth/vue").SuccessContext<any>) => Promise<void> | void) | undefined;
923
- onError?: ((context: import("better-auth/vue").ErrorContext) => Promise<void> | void) | undefined;
924
- onRetry?: ((response: import("better-auth/vue").ResponseContext) => Promise<void> | void) | undefined;
925
- hookOptions?: {
926
- cloneResponse?: boolean;
927
- } | undefined;
928
- timeout?: number | undefined;
929
- customFetchImpl?: import("better-auth/vue").FetchEsque | undefined;
930
- plugins?: import("better-auth/vue").BetterFetchPlugin[] | undefined;
931
- baseURL?: string | undefined;
932
- throw?: boolean | undefined;
933
- auth?: ({
934
- type: "Bearer";
935
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
936
- } | {
937
- type: "Basic";
938
- username: string | (() => string | undefined) | undefined;
939
- password: string | (() => string | undefined) | undefined;
940
- } | {
941
- type: "Custom";
942
- prefix: string | (() => string | undefined) | undefined;
943
- value: string | (() => string | undefined) | undefined;
944
- }) | undefined;
945
- body?: (Partial<{
946
- userId: string;
947
- }> & Record<string, any>) | undefined;
948
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
949
- params?: Record<string, any> | undefined;
950
- duplex?: "full" | "half" | undefined;
951
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
952
- retry?: import("better-auth/vue").RetryOptions | undefined;
953
- retryAttempt?: number | undefined;
954
- output?: (import("better-auth/vue").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
955
- errorSchema?: import("better-auth/vue").StandardSchemaV1 | undefined;
956
- disableValidation?: boolean | undefined;
957
- }>(data_0: import("better-auth").Prettify<{
958
- userId: string;
959
- } & {
960
- fetchOptions?: FetchOptions | undefined;
961
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/vue").BetterFetchResponse<{
962
- session: {
963
- id: string;
964
- createdAt: Date;
965
- updatedAt: Date;
966
- userId: string;
967
- expiresAt: Date;
968
- token: string;
969
- ipAddress?: string | null | undefined;
970
- userAgent?: string | null | undefined;
971
- };
972
- user: {
973
- id: string;
974
- name: string;
975
- email: string;
976
- emailVerified: boolean;
977
- createdAt: Date;
978
- updatedAt: Date;
979
- image?: string | null | undefined;
980
- };
981
- }, {
982
- code?: string;
983
- message?: string;
984
- }, FetchOptions["throw"] extends true ? true : false>>;
985
- };
986
- } & {
987
- admin: {
988
- stopImpersonating: <FetchOptions extends {
989
- cache?: RequestCache | undefined;
990
- credentials?: RequestCredentials | undefined;
991
- headers?: (HeadersInit & (HeadersInit | {
992
- accept: "application/json" | "text/plain" | "application/octet-stream";
993
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
994
- authorization: "Bearer" | "Basic";
995
- })) | undefined;
996
- integrity?: string | undefined;
997
- keepalive?: boolean | undefined;
998
- method?: string | undefined;
999
- mode?: RequestMode | undefined;
1000
- priority?: RequestPriority | undefined;
1001
- redirect?: RequestRedirect | undefined;
1002
- referrer?: string | undefined;
1003
- referrerPolicy?: ReferrerPolicy | undefined;
1004
- signal?: (AbortSignal | null) | undefined;
1005
- window?: null | undefined;
1006
- onRequest?: (<T extends Record<string, any>>(context: import("better-auth/vue").RequestContext<T>) => Promise<import("better-auth/vue").RequestContext | void> | import("better-auth/vue").RequestContext | void) | undefined;
1007
- onResponse?: ((context: import("better-auth/vue").ResponseContext) => Promise<Response | void | import("better-auth/vue").ResponseContext> | Response | import("better-auth/vue").ResponseContext | void) | undefined;
1008
- onSuccess?: ((context: import("better-auth/vue").SuccessContext<any>) => Promise<void> | void) | undefined;
1009
- onError?: ((context: import("better-auth/vue").ErrorContext) => Promise<void> | void) | undefined;
1010
- onRetry?: ((response: import("better-auth/vue").ResponseContext) => Promise<void> | void) | undefined;
1011
- hookOptions?: {
1012
- cloneResponse?: boolean;
1013
- } | undefined;
1014
- timeout?: number | undefined;
1015
- customFetchImpl?: import("better-auth/vue").FetchEsque | undefined;
1016
- plugins?: import("better-auth/vue").BetterFetchPlugin[] | undefined;
1017
- baseURL?: string | undefined;
1018
- throw?: boolean | undefined;
1019
- auth?: ({
1020
- type: "Bearer";
1021
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1022
- } | {
1023
- type: "Basic";
1024
- username: string | (() => string | undefined) | undefined;
1025
- password: string | (() => string | undefined) | undefined;
1026
- } | {
1027
- type: "Custom";
1028
- prefix: string | (() => string | undefined) | undefined;
1029
- value: string | (() => string | undefined) | undefined;
1030
- }) | undefined;
1031
- body?: undefined;
1032
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1033
- params?: Record<string, any> | undefined;
1034
- duplex?: "full" | "half" | undefined;
1035
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1036
- retry?: import("better-auth/vue").RetryOptions | undefined;
1037
- retryAttempt?: number | undefined;
1038
- output?: (import("better-auth/vue").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1039
- errorSchema?: import("better-auth/vue").StandardSchemaV1 | undefined;
1040
- disableValidation?: boolean | undefined;
1041
- }>(data_0?: import("better-auth").Prettify<{
1042
- query?: Record<string, any> | undefined;
1043
- fetchOptions?: FetchOptions | undefined;
1044
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/vue").BetterFetchResponse<{
1045
- session: import("better-auth").Session & Record<string, any>;
1046
- user: import("better-auth").User & Record<string, any>;
1047
- }, {
1048
- code?: string;
1049
- message?: string;
1050
- }, FetchOptions["throw"] extends true ? true : false>>;
1051
- };
1052
- } & {
1053
- admin: {
1054
- revokeUserSession: <FetchOptions extends {
1055
- cache?: RequestCache | undefined;
1056
- credentials?: RequestCredentials | undefined;
1057
- headers?: (HeadersInit & (HeadersInit | {
1058
- accept: "application/json" | "text/plain" | "application/octet-stream";
1059
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1060
- authorization: "Bearer" | "Basic";
1061
- })) | undefined;
1062
- integrity?: string | undefined;
1063
- keepalive?: boolean | undefined;
1064
- method?: string | undefined;
1065
- mode?: RequestMode | undefined;
1066
- priority?: RequestPriority | undefined;
1067
- redirect?: RequestRedirect | undefined;
1068
- referrer?: string | undefined;
1069
- referrerPolicy?: ReferrerPolicy | undefined;
1070
- signal?: (AbortSignal | null) | undefined;
1071
- window?: null | undefined;
1072
- onRequest?: (<T extends Record<string, any>>(context: import("better-auth/vue").RequestContext<T>) => Promise<import("better-auth/vue").RequestContext | void> | import("better-auth/vue").RequestContext | void) | undefined;
1073
- onResponse?: ((context: import("better-auth/vue").ResponseContext) => Promise<Response | void | import("better-auth/vue").ResponseContext> | Response | import("better-auth/vue").ResponseContext | void) | undefined;
1074
- onSuccess?: ((context: import("better-auth/vue").SuccessContext<any>) => Promise<void> | void) | undefined;
1075
- onError?: ((context: import("better-auth/vue").ErrorContext) => Promise<void> | void) | undefined;
1076
- onRetry?: ((response: import("better-auth/vue").ResponseContext) => Promise<void> | void) | undefined;
1077
- hookOptions?: {
1078
- cloneResponse?: boolean;
1079
- } | undefined;
1080
- timeout?: number | undefined;
1081
- customFetchImpl?: import("better-auth/vue").FetchEsque | undefined;
1082
- plugins?: import("better-auth/vue").BetterFetchPlugin[] | undefined;
1083
- baseURL?: string | undefined;
1084
- throw?: boolean | undefined;
1085
- auth?: ({
1086
- type: "Bearer";
1087
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1088
- } | {
1089
- type: "Basic";
1090
- username: string | (() => string | undefined) | undefined;
1091
- password: string | (() => string | undefined) | undefined;
1092
- } | {
1093
- type: "Custom";
1094
- prefix: string | (() => string | undefined) | undefined;
1095
- value: string | (() => string | undefined) | undefined;
1096
- }) | undefined;
1097
- body?: (Partial<{
1098
- sessionToken: string;
1099
- }> & Record<string, any>) | undefined;
1100
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1101
- params?: Record<string, any> | undefined;
1102
- duplex?: "full" | "half" | undefined;
1103
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1104
- retry?: import("better-auth/vue").RetryOptions | undefined;
1105
- retryAttempt?: number | undefined;
1106
- output?: (import("better-auth/vue").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1107
- errorSchema?: import("better-auth/vue").StandardSchemaV1 | undefined;
1108
- disableValidation?: boolean | undefined;
1109
- }>(data_0: import("better-auth").Prettify<{
1110
- sessionToken: string;
1111
- } & {
1112
- fetchOptions?: FetchOptions | undefined;
1113
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/vue").BetterFetchResponse<{
1114
- success: boolean;
1115
- }, {
1116
- code?: string;
1117
- message?: string;
1118
- }, FetchOptions["throw"] extends true ? true : false>>;
1119
- };
1120
- } & {
1121
- admin: {
1122
- revokeUserSessions: <FetchOptions extends {
1123
- cache?: RequestCache | undefined;
1124
- credentials?: RequestCredentials | undefined;
1125
- headers?: (HeadersInit & (HeadersInit | {
1126
- accept: "application/json" | "text/plain" | "application/octet-stream";
1127
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1128
- authorization: "Bearer" | "Basic";
1129
- })) | undefined;
1130
- integrity?: string | undefined;
1131
- keepalive?: boolean | undefined;
1132
- method?: string | undefined;
1133
- mode?: RequestMode | undefined;
1134
- priority?: RequestPriority | undefined;
1135
- redirect?: RequestRedirect | undefined;
1136
- referrer?: string | undefined;
1137
- referrerPolicy?: ReferrerPolicy | undefined;
1138
- signal?: (AbortSignal | null) | undefined;
1139
- window?: null | undefined;
1140
- onRequest?: (<T extends Record<string, any>>(context: import("better-auth/vue").RequestContext<T>) => Promise<import("better-auth/vue").RequestContext | void> | import("better-auth/vue").RequestContext | void) | undefined;
1141
- onResponse?: ((context: import("better-auth/vue").ResponseContext) => Promise<Response | void | import("better-auth/vue").ResponseContext> | Response | import("better-auth/vue").ResponseContext | void) | undefined;
1142
- onSuccess?: ((context: import("better-auth/vue").SuccessContext<any>) => Promise<void> | void) | undefined;
1143
- onError?: ((context: import("better-auth/vue").ErrorContext) => Promise<void> | void) | undefined;
1144
- onRetry?: ((response: import("better-auth/vue").ResponseContext) => Promise<void> | void) | undefined;
1145
- hookOptions?: {
1146
- cloneResponse?: boolean;
1147
- } | undefined;
1148
- timeout?: number | undefined;
1149
- customFetchImpl?: import("better-auth/vue").FetchEsque | undefined;
1150
- plugins?: import("better-auth/vue").BetterFetchPlugin[] | undefined;
1151
- baseURL?: string | undefined;
1152
- throw?: boolean | undefined;
1153
- auth?: ({
1154
- type: "Bearer";
1155
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1156
- } | {
1157
- type: "Basic";
1158
- username: string | (() => string | undefined) | undefined;
1159
- password: string | (() => string | undefined) | undefined;
1160
- } | {
1161
- type: "Custom";
1162
- prefix: string | (() => string | undefined) | undefined;
1163
- value: string | (() => string | undefined) | undefined;
1164
- }) | undefined;
1165
- body?: (Partial<{
1166
- userId: string;
1167
- }> & Record<string, any>) | undefined;
1168
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1169
- params?: Record<string, any> | undefined;
1170
- duplex?: "full" | "half" | undefined;
1171
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1172
- retry?: import("better-auth/vue").RetryOptions | undefined;
1173
- retryAttempt?: number | undefined;
1174
- output?: (import("better-auth/vue").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1175
- errorSchema?: import("better-auth/vue").StandardSchemaV1 | undefined;
1176
- disableValidation?: boolean | undefined;
1177
- }>(data_0: import("better-auth").Prettify<{
1178
- userId: string;
1179
- } & {
1180
- fetchOptions?: FetchOptions | undefined;
1181
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/vue").BetterFetchResponse<{
1182
- success: boolean;
1183
- }, {
1184
- code?: string;
1185
- message?: string;
1186
- }, FetchOptions["throw"] extends true ? true : false>>;
1187
- };
1188
- } & {
1189
- admin: {
1190
- removeUser: <FetchOptions extends {
1191
- cache?: RequestCache | undefined;
1192
- credentials?: RequestCredentials | undefined;
1193
- headers?: (HeadersInit & (HeadersInit | {
1194
- accept: "application/json" | "text/plain" | "application/octet-stream";
1195
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1196
- authorization: "Bearer" | "Basic";
1197
- })) | undefined;
1198
- integrity?: string | undefined;
1199
- keepalive?: boolean | undefined;
1200
- method?: string | undefined;
1201
- mode?: RequestMode | undefined;
1202
- priority?: RequestPriority | undefined;
1203
- redirect?: RequestRedirect | undefined;
1204
- referrer?: string | undefined;
1205
- referrerPolicy?: ReferrerPolicy | undefined;
1206
- signal?: (AbortSignal | null) | undefined;
1207
- window?: null | undefined;
1208
- onRequest?: (<T extends Record<string, any>>(context: import("better-auth/vue").RequestContext<T>) => Promise<import("better-auth/vue").RequestContext | void> | import("better-auth/vue").RequestContext | void) | undefined;
1209
- onResponse?: ((context: import("better-auth/vue").ResponseContext) => Promise<Response | void | import("better-auth/vue").ResponseContext> | Response | import("better-auth/vue").ResponseContext | void) | undefined;
1210
- onSuccess?: ((context: import("better-auth/vue").SuccessContext<any>) => Promise<void> | void) | undefined;
1211
- onError?: ((context: import("better-auth/vue").ErrorContext) => Promise<void> | void) | undefined;
1212
- onRetry?: ((response: import("better-auth/vue").ResponseContext) => Promise<void> | void) | undefined;
1213
- hookOptions?: {
1214
- cloneResponse?: boolean;
1215
- } | undefined;
1216
- timeout?: number | undefined;
1217
- customFetchImpl?: import("better-auth/vue").FetchEsque | undefined;
1218
- plugins?: import("better-auth/vue").BetterFetchPlugin[] | undefined;
1219
- baseURL?: string | undefined;
1220
- throw?: boolean | undefined;
1221
- auth?: ({
1222
- type: "Bearer";
1223
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1224
- } | {
1225
- type: "Basic";
1226
- username: string | (() => string | undefined) | undefined;
1227
- password: string | (() => string | undefined) | undefined;
1228
- } | {
1229
- type: "Custom";
1230
- prefix: string | (() => string | undefined) | undefined;
1231
- value: string | (() => string | undefined) | undefined;
1232
- }) | undefined;
1233
- body?: (Partial<{
1234
- userId: string;
1235
- }> & Record<string, any>) | undefined;
1236
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1237
- params?: Record<string, any> | undefined;
1238
- duplex?: "full" | "half" | undefined;
1239
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1240
- retry?: import("better-auth/vue").RetryOptions | undefined;
1241
- retryAttempt?: number | undefined;
1242
- output?: (import("better-auth/vue").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1243
- errorSchema?: import("better-auth/vue").StandardSchemaV1 | undefined;
1244
- disableValidation?: boolean | undefined;
1245
- }>(data_0: import("better-auth").Prettify<{
1246
- userId: string;
1247
- } & {
1248
- fetchOptions?: FetchOptions | undefined;
1249
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/vue").BetterFetchResponse<{
1250
- success: boolean;
1251
- }, {
1252
- code?: string;
1253
- message?: string;
1254
- }, FetchOptions["throw"] extends true ? true : false>>;
1255
- };
1256
- } & {
1257
- admin: {
1258
- setUserPassword: <FetchOptions extends {
1259
- cache?: RequestCache | undefined;
1260
- credentials?: RequestCredentials | undefined;
1261
- headers?: (HeadersInit & (HeadersInit | {
1262
- accept: "application/json" | "text/plain" | "application/octet-stream";
1263
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1264
- authorization: "Bearer" | "Basic";
1265
- })) | undefined;
1266
- integrity?: string | undefined;
1267
- keepalive?: boolean | undefined;
1268
- method?: string | undefined;
1269
- mode?: RequestMode | undefined;
1270
- priority?: RequestPriority | undefined;
1271
- redirect?: RequestRedirect | undefined;
1272
- referrer?: string | undefined;
1273
- referrerPolicy?: ReferrerPolicy | undefined;
1274
- signal?: (AbortSignal | null) | undefined;
1275
- window?: null | undefined;
1276
- onRequest?: (<T extends Record<string, any>>(context: import("better-auth/vue").RequestContext<T>) => Promise<import("better-auth/vue").RequestContext | void> | import("better-auth/vue").RequestContext | void) | undefined;
1277
- onResponse?: ((context: import("better-auth/vue").ResponseContext) => Promise<Response | void | import("better-auth/vue").ResponseContext> | Response | import("better-auth/vue").ResponseContext | void) | undefined;
1278
- onSuccess?: ((context: import("better-auth/vue").SuccessContext<any>) => Promise<void> | void) | undefined;
1279
- onError?: ((context: import("better-auth/vue").ErrorContext) => Promise<void> | void) | undefined;
1280
- onRetry?: ((response: import("better-auth/vue").ResponseContext) => Promise<void> | void) | undefined;
1281
- hookOptions?: {
1282
- cloneResponse?: boolean;
1283
- } | undefined;
1284
- timeout?: number | undefined;
1285
- customFetchImpl?: import("better-auth/vue").FetchEsque | undefined;
1286
- plugins?: import("better-auth/vue").BetterFetchPlugin[] | undefined;
1287
- baseURL?: string | undefined;
1288
- throw?: boolean | undefined;
1289
- auth?: ({
1290
- type: "Bearer";
1291
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1292
- } | {
1293
- type: "Basic";
1294
- username: string | (() => string | undefined) | undefined;
1295
- password: string | (() => string | undefined) | undefined;
1296
- } | {
1297
- type: "Custom";
1298
- prefix: string | (() => string | undefined) | undefined;
1299
- value: string | (() => string | undefined) | undefined;
1300
- }) | undefined;
1301
- body?: (Partial<{
1302
- userId: string;
1303
- newPassword: string;
1304
- }> & Record<string, any>) | undefined;
1305
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1306
- params?: Record<string, any> | undefined;
1307
- duplex?: "full" | "half" | undefined;
1308
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1309
- retry?: import("better-auth/vue").RetryOptions | undefined;
1310
- retryAttempt?: number | undefined;
1311
- output?: (import("better-auth/vue").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1312
- errorSchema?: import("better-auth/vue").StandardSchemaV1 | undefined;
1313
- disableValidation?: boolean | undefined;
1314
- }>(data_0: import("better-auth").Prettify<{
1315
- userId: string;
1316
- newPassword: string;
1317
- } & {
1318
- fetchOptions?: FetchOptions | undefined;
1319
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/vue").BetterFetchResponse<{
1320
- status: boolean;
1321
- }, {
1322
- code?: string;
1323
- message?: string;
1324
- }, FetchOptions["throw"] extends true ? true : false>>;
1325
- };
1326
- } & {
1327
- admin: {
1328
- hasPermission: <FetchOptions extends {
1329
- cache?: RequestCache | undefined;
1330
- credentials?: RequestCredentials | undefined;
1331
- headers?: (HeadersInit & (HeadersInit | {
1332
- accept: "application/json" | "text/plain" | "application/octet-stream";
1333
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1334
- authorization: "Bearer" | "Basic";
1335
- })) | undefined;
1336
- integrity?: string | undefined;
1337
- keepalive?: boolean | undefined;
1338
- method?: string | undefined;
1339
- mode?: RequestMode | undefined;
1340
- priority?: RequestPriority | undefined;
1341
- redirect?: RequestRedirect | undefined;
1342
- referrer?: string | undefined;
1343
- referrerPolicy?: ReferrerPolicy | undefined;
1344
- signal?: (AbortSignal | null) | undefined;
1345
- window?: null | undefined;
1346
- onRequest?: (<T extends Record<string, any>>(context: import("better-auth/vue").RequestContext<T>) => Promise<import("better-auth/vue").RequestContext | void> | import("better-auth/vue").RequestContext | void) | undefined;
1347
- onResponse?: ((context: import("better-auth/vue").ResponseContext) => Promise<Response | void | import("better-auth/vue").ResponseContext> | Response | import("better-auth/vue").ResponseContext | void) | undefined;
1348
- onSuccess?: ((context: import("better-auth/vue").SuccessContext<any>) => Promise<void> | void) | undefined;
1349
- onError?: ((context: import("better-auth/vue").ErrorContext) => Promise<void> | void) | undefined;
1350
- onRetry?: ((response: import("better-auth/vue").ResponseContext) => Promise<void> | void) | undefined;
1351
- hookOptions?: {
1352
- cloneResponse?: boolean;
1353
- } | undefined;
1354
- timeout?: number | undefined;
1355
- customFetchImpl?: import("better-auth/vue").FetchEsque | undefined;
1356
- plugins?: import("better-auth/vue").BetterFetchPlugin[] | undefined;
1357
- baseURL?: string | undefined;
1358
- throw?: boolean | undefined;
1359
- auth?: ({
1360
- type: "Bearer";
1361
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1362
- } | {
1363
- type: "Basic";
1364
- username: string | (() => string | undefined) | undefined;
1365
- password: string | (() => string | undefined) | undefined;
1366
- } | {
1367
- type: "Custom";
1368
- prefix: string | (() => string | undefined) | undefined;
1369
- value: string | (() => string | undefined) | undefined;
1370
- }) | undefined;
1371
- body?: (Partial<({
1372
- permission: {
1373
- readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "delete" | "set-password")[] | undefined;
1374
- readonly session?: ("list" | "delete" | "revoke")[] | undefined;
1375
- };
1376
- permissions?: never;
1377
- } | {
1378
- permissions: {
1379
- readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "delete" | "set-password")[] | undefined;
1380
- readonly session?: ("list" | "delete" | "revoke")[] | undefined;
1381
- };
1382
- permission?: never;
1383
- }) & {
1384
- userId?: string;
1385
- role?: "user" | "admin" | undefined;
1386
- }> & Record<string, any>) | undefined;
1387
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1388
- params?: Record<string, any> | undefined;
1389
- duplex?: "full" | "half" | undefined;
1390
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1391
- retry?: import("better-auth/vue").RetryOptions | undefined;
1392
- retryAttempt?: number | undefined;
1393
- output?: (import("better-auth/vue").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1394
- errorSchema?: import("better-auth/vue").StandardSchemaV1 | undefined;
1395
- disableValidation?: boolean | undefined;
1396
- }>(data_0: import("better-auth").Prettify<(({
1397
- permission: {
1398
- readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "delete" | "set-password")[] | undefined;
1399
- readonly session?: ("list" | "delete" | "revoke")[] | undefined;
1400
- };
1401
- permissions?: never;
1402
- } | {
1403
- permissions: {
1404
- readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "delete" | "set-password")[] | undefined;
1405
- readonly session?: ("list" | "delete" | "revoke")[] | undefined;
1406
- };
1407
- permission?: never;
1408
- }) & {
1409
- userId?: string;
1410
- role?: "user" | "admin" | undefined;
1411
- }) & {
1412
- fetchOptions?: FetchOptions | undefined;
1413
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/vue").BetterFetchResponse<{
1414
- error: null;
1415
- success: boolean;
1416
- }, {
1417
- code?: string;
1418
- message?: string;
1419
- }, FetchOptions["throw"] extends true ? true : false>>;
1420
- };
1421
- } & {
1422
- signIn: {
1423
- username: <FetchOptions extends {
1424
- cache?: RequestCache | undefined;
1425
- credentials?: RequestCredentials | undefined;
1426
- headers?: (HeadersInit & (HeadersInit | {
1427
- accept: "application/json" | "text/plain" | "application/octet-stream";
1428
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1429
- authorization: "Bearer" | "Basic";
1430
- })) | undefined;
1431
- integrity?: string | undefined;
1432
- keepalive?: boolean | undefined;
1433
- method?: string | undefined;
1434
- mode?: RequestMode | undefined;
1435
- priority?: RequestPriority | undefined;
1436
- redirect?: RequestRedirect | undefined;
1437
- referrer?: string | undefined;
1438
- referrerPolicy?: ReferrerPolicy | undefined;
1439
- signal?: (AbortSignal | null) | undefined;
1440
- window?: null | undefined;
1441
- onRequest?: (<T extends Record<string, any>>(context: import("better-auth/vue").RequestContext<T>) => Promise<import("better-auth/vue").RequestContext | void> | import("better-auth/vue").RequestContext | void) | undefined;
1442
- onResponse?: ((context: import("better-auth/vue").ResponseContext) => Promise<Response | void | import("better-auth/vue").ResponseContext> | Response | import("better-auth/vue").ResponseContext | void) | undefined;
1443
- onSuccess?: ((context: import("better-auth/vue").SuccessContext<any>) => Promise<void> | void) | undefined;
1444
- onError?: ((context: import("better-auth/vue").ErrorContext) => Promise<void> | void) | undefined;
1445
- onRetry?: ((response: import("better-auth/vue").ResponseContext) => Promise<void> | void) | undefined;
1446
- hookOptions?: {
1447
- cloneResponse?: boolean;
1448
- } | undefined;
1449
- timeout?: number | undefined;
1450
- customFetchImpl?: import("better-auth/vue").FetchEsque | undefined;
1451
- plugins?: import("better-auth/vue").BetterFetchPlugin[] | undefined;
1452
- baseURL?: string | undefined;
1453
- throw?: boolean | undefined;
1454
- auth?: ({
1455
- type: "Bearer";
1456
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1457
- } | {
1458
- type: "Basic";
1459
- username: string | (() => string | undefined) | undefined;
1460
- password: string | (() => string | undefined) | undefined;
1461
- } | {
1462
- type: "Custom";
1463
- prefix: string | (() => string | undefined) | undefined;
1464
- value: string | (() => string | undefined) | undefined;
1465
- }) | undefined;
1466
- body?: (Partial<{
1467
- password: string;
1468
- username: string;
1469
- rememberMe?: boolean | undefined;
1470
- }> & Record<string, any>) | undefined;
1471
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1472
- params?: Record<string, any> | undefined;
1473
- duplex?: "full" | "half" | undefined;
1474
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1475
- retry?: import("better-auth/vue").RetryOptions | undefined;
1476
- retryAttempt?: number | undefined;
1477
- output?: (import("better-auth/vue").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1478
- errorSchema?: import("better-auth/vue").StandardSchemaV1 | undefined;
1479
- disableValidation?: boolean | undefined;
1480
- }>(data_0: import("better-auth").Prettify<{
1481
- password: string;
1482
- username: string;
1483
- rememberMe?: boolean | undefined;
1484
- } & {
1485
- fetchOptions?: FetchOptions | undefined;
1486
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/vue").BetterFetchResponse<{
1487
- token: string;
1488
- user: {
1489
- id: string;
1490
- email: string;
1491
- emailVerified: boolean;
1492
- username: string;
1493
- name: string;
1494
- image: string | null | undefined;
1495
- createdAt: Date;
1496
- updatedAt: Date;
1497
- };
1498
- }, {
1499
- code?: string;
1500
- message?: string;
1501
- }, FetchOptions["throw"] extends true ? true : false>>;
1502
- };
1503
- } & {
1504
- signIn: {
1505
- social: <FetchOptions extends {
1506
- cache?: RequestCache | undefined;
1507
- credentials?: RequestCredentials | undefined;
1508
- headers?: (HeadersInit & (HeadersInit | {
1509
- accept: "application/json" | "text/plain" | "application/octet-stream";
1510
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1511
- authorization: "Bearer" | "Basic";
1512
- })) | undefined;
1513
- integrity?: string | undefined;
1514
- keepalive?: boolean | undefined;
1515
- method?: string | undefined;
1516
- mode?: RequestMode | undefined;
1517
- priority?: RequestPriority | undefined;
1518
- redirect?: RequestRedirect | undefined;
1519
- referrer?: string | undefined;
1520
- referrerPolicy?: ReferrerPolicy | undefined;
1521
- signal?: (AbortSignal | null) | undefined;
1522
- window?: null | undefined;
1523
- onRequest?: (<T extends Record<string, any>>(context: import("better-auth/vue").RequestContext<T>) => Promise<import("better-auth/vue").RequestContext | void> | import("better-auth/vue").RequestContext | void) | undefined;
1524
- onResponse?: ((context: import("better-auth/vue").ResponseContext) => Promise<Response | void | import("better-auth/vue").ResponseContext> | Response | import("better-auth/vue").ResponseContext | void) | undefined;
1525
- onSuccess?: ((context: import("better-auth/vue").SuccessContext<any>) => Promise<void> | void) | undefined;
1526
- onError?: ((context: import("better-auth/vue").ErrorContext) => Promise<void> | void) | undefined;
1527
- onRetry?: ((response: import("better-auth/vue").ResponseContext) => Promise<void> | void) | undefined;
1528
- hookOptions?: {
1529
- cloneResponse?: boolean;
1530
- } | undefined;
1531
- timeout?: number | undefined;
1532
- customFetchImpl?: import("better-auth/vue").FetchEsque | undefined;
1533
- plugins?: import("better-auth/vue").BetterFetchPlugin[] | undefined;
1534
- baseURL?: string | undefined;
1535
- throw?: boolean | undefined;
1536
- auth?: ({
1537
- type: "Bearer";
1538
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1539
- } | {
1540
- type: "Basic";
1541
- username: string | (() => string | undefined) | undefined;
1542
- password: string | (() => string | undefined) | undefined;
1543
- } | {
1544
- type: "Custom";
1545
- prefix: string | (() => string | undefined) | undefined;
1546
- value: string | (() => string | undefined) | undefined;
1547
- }) | undefined;
1548
- body?: (Partial<{
1549
- provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick" | "zoom";
1550
- scopes?: string[] | undefined;
1551
- loginHint?: string | undefined;
1552
- idToken?: {
1553
- token: string;
1554
- refreshToken?: string | undefined;
1555
- accessToken?: string | undefined;
1556
- expiresAt?: number | undefined;
1557
- nonce?: string | undefined;
1558
- } | undefined;
1559
- callbackURL?: string | undefined;
1560
- requestSignUp?: boolean | undefined;
1561
- errorCallbackURL?: string | undefined;
1562
- newUserCallbackURL?: string | undefined;
1563
- disableRedirect?: boolean | undefined;
1564
- }> & Record<string, any>) | undefined;
1565
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1566
- params?: Record<string, any> | undefined;
1567
- duplex?: "full" | "half" | undefined;
1568
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1569
- retry?: import("better-auth/vue").RetryOptions | undefined;
1570
- retryAttempt?: number | undefined;
1571
- output?: (import("better-auth/vue").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1572
- errorSchema?: import("better-auth/vue").StandardSchemaV1 | undefined;
1573
- disableValidation?: boolean | undefined;
1574
- }>(data_0: import("better-auth").Prettify<{
1575
- provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick" | "zoom";
1576
- scopes?: string[] | undefined;
1577
- loginHint?: string | undefined;
1578
- idToken?: {
1579
- token: string;
1580
- refreshToken?: string | undefined;
1581
- accessToken?: string | undefined;
1582
- expiresAt?: number | undefined;
1583
- nonce?: string | undefined;
1584
- } | undefined;
1585
- callbackURL?: string | undefined;
1586
- requestSignUp?: boolean | undefined;
1587
- errorCallbackURL?: string | undefined;
1588
- newUserCallbackURL?: string | undefined;
1589
- disableRedirect?: boolean | undefined;
1590
- } & {
1591
- fetchOptions?: FetchOptions | undefined;
1592
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/vue").BetterFetchResponse<NonNullable<{
1593
- redirect: boolean;
1594
- token: string;
1595
- url: undefined;
1596
- user: {
1597
- id: string;
1598
- email: string;
1599
- name: string;
1600
- image: string | null | undefined;
1601
- emailVerified: boolean;
1602
- createdAt: Date;
1603
- updatedAt: Date;
1604
- };
1605
- } | {
1606
- url: string;
1607
- redirect: boolean;
1608
- }>, {
1609
- code?: string;
1610
- message?: string;
1611
- }, FetchOptions["throw"] extends true ? true : false>>;
1612
- };
1613
- } & {
1614
- getSession: <FetchOptions extends {
1615
- cache?: RequestCache | undefined;
1616
- credentials?: RequestCredentials | undefined;
1617
- headers?: (HeadersInit & (HeadersInit | {
1618
- accept: "application/json" | "text/plain" | "application/octet-stream";
1619
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1620
- authorization: "Bearer" | "Basic";
1621
- })) | undefined;
1622
- integrity?: string | undefined;
1623
- keepalive?: boolean | undefined;
1624
- method?: string | undefined;
1625
- mode?: RequestMode | undefined;
1626
- priority?: RequestPriority | undefined;
1627
- redirect?: RequestRedirect | undefined;
1628
- referrer?: string | undefined;
1629
- referrerPolicy?: ReferrerPolicy | undefined;
1630
- signal?: (AbortSignal | null) | undefined;
1631
- window?: null | undefined;
1632
- onRequest?: (<T extends Record<string, any>>(context: import("better-auth/vue").RequestContext<T>) => Promise<import("better-auth/vue").RequestContext | void> | import("better-auth/vue").RequestContext | void) | undefined;
1633
- onResponse?: ((context: import("better-auth/vue").ResponseContext) => Promise<Response | void | import("better-auth/vue").ResponseContext> | Response | import("better-auth/vue").ResponseContext | void) | undefined;
1634
- onSuccess?: ((context: import("better-auth/vue").SuccessContext<any>) => Promise<void> | void) | undefined;
1635
- onError?: ((context: import("better-auth/vue").ErrorContext) => Promise<void> | void) | undefined;
1636
- onRetry?: ((response: import("better-auth/vue").ResponseContext) => Promise<void> | void) | undefined;
1637
- hookOptions?: {
1638
- cloneResponse?: boolean;
1639
- } | undefined;
1640
- timeout?: number | undefined;
1641
- customFetchImpl?: import("better-auth/vue").FetchEsque | undefined;
1642
- plugins?: import("better-auth/vue").BetterFetchPlugin[] | undefined;
1643
- baseURL?: string | undefined;
1644
- throw?: boolean | undefined;
1645
- auth?: ({
1646
- type: "Bearer";
1647
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1648
- } | {
1649
- type: "Basic";
1650
- username: string | (() => string | undefined) | undefined;
1651
- password: string | (() => string | undefined) | undefined;
1652
- } | {
1653
- type: "Custom";
1654
- prefix: string | (() => string | undefined) | undefined;
1655
- value: string | (() => string | undefined) | undefined;
1656
- }) | undefined;
1657
- body?: undefined;
1658
- query?: (Partial<{
1659
- disableCookieCache?: string | boolean | undefined;
1660
- disableRefresh?: string | boolean | undefined;
1661
- }> & Record<string, any>) | undefined;
1662
- params?: Record<string, any> | undefined;
1663
- duplex?: "full" | "half" | undefined;
1664
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1665
- retry?: import("better-auth/vue").RetryOptions | undefined;
1666
- retryAttempt?: number | undefined;
1667
- output?: (import("better-auth/vue").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1668
- errorSchema?: import("better-auth/vue").StandardSchemaV1 | undefined;
1669
- disableValidation?: boolean | undefined;
1670
- }>(data_0?: import("better-auth").Prettify<{
1671
- query?: {
1672
- disableCookieCache?: string | boolean | undefined;
1673
- disableRefresh?: string | boolean | undefined;
1674
- } | undefined;
1675
- fetchOptions?: FetchOptions | undefined;
1676
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/vue").BetterFetchResponse<{
1677
- user: {
1678
- id: string;
1679
- name: string;
1680
- email: string;
1681
- emailVerified: boolean;
1682
- createdAt: Date;
1683
- updatedAt: Date;
1684
- image?: string | null | undefined | undefined;
1685
- banned: boolean | null | undefined;
1686
- role?: string | null | undefined;
1687
- banReason?: string | null | undefined;
1688
- banExpires?: Date | null | undefined;
1689
- username?: string | null | undefined;
1690
- displayUsername?: string | null | undefined;
1691
- };
1692
- session: {
1693
- id: string;
1694
- createdAt: Date;
1695
- updatedAt: Date;
1696
- userId: string;
1697
- expiresAt: Date;
1698
- token: string;
1699
- ipAddress?: string | null | undefined | undefined;
1700
- userAgent?: string | null | undefined | undefined;
1701
- impersonatedBy?: string | null | undefined;
1702
- };
1703
- }, {
1704
- code?: string;
1705
- message?: string;
1706
- }, FetchOptions["throw"] extends true ? true : false>>;
1707
- } & {
1708
- signOut: <FetchOptions extends {
1709
- cache?: RequestCache | undefined;
1710
- credentials?: RequestCredentials | undefined;
1711
- headers?: (HeadersInit & (HeadersInit | {
1712
- accept: "application/json" | "text/plain" | "application/octet-stream";
1713
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1714
- authorization: "Bearer" | "Basic";
1715
- })) | undefined;
1716
- integrity?: string | undefined;
1717
- keepalive?: boolean | undefined;
1718
- method?: string | undefined;
1719
- mode?: RequestMode | undefined;
1720
- priority?: RequestPriority | undefined;
1721
- redirect?: RequestRedirect | undefined;
1722
- referrer?: string | undefined;
1723
- referrerPolicy?: ReferrerPolicy | undefined;
1724
- signal?: (AbortSignal | null) | undefined;
1725
- window?: null | undefined;
1726
- onRequest?: (<T extends Record<string, any>>(context: import("better-auth/vue").RequestContext<T>) => Promise<import("better-auth/vue").RequestContext | void> | import("better-auth/vue").RequestContext | void) | undefined;
1727
- onResponse?: ((context: import("better-auth/vue").ResponseContext) => Promise<Response | void | import("better-auth/vue").ResponseContext> | Response | import("better-auth/vue").ResponseContext | void) | undefined;
1728
- onSuccess?: ((context: import("better-auth/vue").SuccessContext<any>) => Promise<void> | void) | undefined;
1729
- onError?: ((context: import("better-auth/vue").ErrorContext) => Promise<void> | void) | undefined;
1730
- onRetry?: ((response: import("better-auth/vue").ResponseContext) => Promise<void> | void) | undefined;
1731
- hookOptions?: {
1732
- cloneResponse?: boolean;
1733
- } | undefined;
1734
- timeout?: number | undefined;
1735
- customFetchImpl?: import("better-auth/vue").FetchEsque | undefined;
1736
- plugins?: import("better-auth/vue").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?: undefined;
1752
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1753
- params?: Record<string, any> | undefined;
1754
- duplex?: "full" | "half" | undefined;
1755
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1756
- retry?: import("better-auth/vue").RetryOptions | undefined;
1757
- retryAttempt?: number | undefined;
1758
- output?: (import("better-auth/vue").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1759
- errorSchema?: import("better-auth/vue").StandardSchemaV1 | undefined;
1760
- disableValidation?: boolean | undefined;
1761
- }>(data_0?: import("better-auth").Prettify<{
1762
- query?: Record<string, any> | undefined;
1763
- fetchOptions?: FetchOptions | undefined;
1764
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/vue").BetterFetchResponse<{
1765
- success: boolean;
1766
- }, {
1767
- code?: string;
1768
- message?: string;
1769
- }, FetchOptions["throw"] extends true ? true : false>>;
1770
- } & {
1771
- signIn: {
1772
- email: <FetchOptions extends {
1773
- cache?: RequestCache | undefined;
1774
- credentials?: RequestCredentials | undefined;
1775
- headers?: (HeadersInit & (HeadersInit | {
1776
- accept: "application/json" | "text/plain" | "application/octet-stream";
1777
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1778
- authorization: "Bearer" | "Basic";
1779
- })) | undefined;
1780
- integrity?: string | undefined;
1781
- keepalive?: boolean | undefined;
1782
- method?: string | undefined;
1783
- mode?: RequestMode | undefined;
1784
- priority?: RequestPriority | undefined;
1785
- redirect?: RequestRedirect | undefined;
1786
- referrer?: string | undefined;
1787
- referrerPolicy?: ReferrerPolicy | undefined;
1788
- signal?: (AbortSignal | null) | undefined;
1789
- window?: null | undefined;
1790
- onRequest?: (<T extends Record<string, any>>(context: import("better-auth/vue").RequestContext<T>) => Promise<import("better-auth/vue").RequestContext | void> | import("better-auth/vue").RequestContext | void) | undefined;
1791
- onResponse?: ((context: import("better-auth/vue").ResponseContext) => Promise<Response | void | import("better-auth/vue").ResponseContext> | Response | import("better-auth/vue").ResponseContext | void) | undefined;
1792
- onSuccess?: ((context: import("better-auth/vue").SuccessContext<any>) => Promise<void> | void) | undefined;
1793
- onError?: ((context: import("better-auth/vue").ErrorContext) => Promise<void> | void) | undefined;
1794
- onRetry?: ((response: import("better-auth/vue").ResponseContext) => Promise<void> | void) | undefined;
1795
- hookOptions?: {
1796
- cloneResponse?: boolean;
1797
- } | undefined;
1798
- timeout?: number | undefined;
1799
- customFetchImpl?: import("better-auth/vue").FetchEsque | undefined;
1800
- plugins?: import("better-auth/vue").BetterFetchPlugin[] | undefined;
1801
- baseURL?: string | undefined;
1802
- throw?: boolean | undefined;
1803
- auth?: ({
1804
- type: "Bearer";
1805
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1806
- } | {
1807
- type: "Basic";
1808
- username: string | (() => string | undefined) | undefined;
1809
- password: string | (() => string | undefined) | undefined;
1810
- } | {
1811
- type: "Custom";
1812
- prefix: string | (() => string | undefined) | undefined;
1813
- value: string | (() => string | undefined) | undefined;
1814
- }) | undefined;
1815
- body?: (Partial<{
1816
- password: string;
1817
- email: string;
1818
- callbackURL?: string | undefined;
1819
- rememberMe?: boolean | undefined;
1820
- }> & Record<string, any>) | undefined;
1821
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1822
- params?: Record<string, any> | undefined;
1823
- duplex?: "full" | "half" | undefined;
1824
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1825
- retry?: import("better-auth/vue").RetryOptions | undefined;
1826
- retryAttempt?: number | undefined;
1827
- output?: (import("better-auth/vue").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1828
- errorSchema?: import("better-auth/vue").StandardSchemaV1 | undefined;
1829
- disableValidation?: boolean | undefined;
1830
- }>(data_0: import("better-auth").Prettify<{
1831
- password: string;
1832
- email: string;
1833
- callbackURL?: string | undefined;
1834
- rememberMe?: boolean | undefined;
1835
- } & {
1836
- fetchOptions?: FetchOptions | undefined;
1837
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/vue").BetterFetchResponse<{
1838
- redirect: boolean;
1839
- token: string;
1840
- url: string | undefined;
1841
- user: {
1842
- id: string;
1843
- email: string;
1844
- name: string;
1845
- image: string | null | undefined;
1846
- emailVerified: boolean;
1847
- createdAt: Date;
1848
- updatedAt: Date;
1849
- };
1850
- }, {
1851
- code?: string;
1852
- message?: string;
1853
- }, FetchOptions["throw"] extends true ? true : false>>;
1854
- };
1855
- } & {
1856
- forgetPassword: <FetchOptions extends {
1857
- cache?: RequestCache | undefined;
1858
- credentials?: RequestCredentials | undefined;
1859
- headers?: (HeadersInit & (HeadersInit | {
1860
- accept: "application/json" | "text/plain" | "application/octet-stream";
1861
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1862
- authorization: "Bearer" | "Basic";
1863
- })) | undefined;
1864
- integrity?: string | undefined;
1865
- keepalive?: boolean | undefined;
1866
- method?: string | undefined;
1867
- mode?: RequestMode | undefined;
1868
- priority?: RequestPriority | undefined;
1869
- redirect?: RequestRedirect | undefined;
1870
- referrer?: string | undefined;
1871
- referrerPolicy?: ReferrerPolicy | undefined;
1872
- signal?: (AbortSignal | null) | undefined;
1873
- window?: null | undefined;
1874
- onRequest?: (<T extends Record<string, any>>(context: import("better-auth/vue").RequestContext<T>) => Promise<import("better-auth/vue").RequestContext | void> | import("better-auth/vue").RequestContext | void) | undefined;
1875
- onResponse?: ((context: import("better-auth/vue").ResponseContext) => Promise<Response | void | import("better-auth/vue").ResponseContext> | Response | import("better-auth/vue").ResponseContext | void) | undefined;
1876
- onSuccess?: ((context: import("better-auth/vue").SuccessContext<any>) => Promise<void> | void) | undefined;
1877
- onError?: ((context: import("better-auth/vue").ErrorContext) => Promise<void> | void) | undefined;
1878
- onRetry?: ((response: import("better-auth/vue").ResponseContext) => Promise<void> | void) | undefined;
1879
- hookOptions?: {
1880
- cloneResponse?: boolean;
1881
- } | undefined;
1882
- timeout?: number | undefined;
1883
- customFetchImpl?: import("better-auth/vue").FetchEsque | undefined;
1884
- plugins?: import("better-auth/vue").BetterFetchPlugin[] | undefined;
1885
- baseURL?: string | undefined;
1886
- throw?: boolean | undefined;
1887
- auth?: ({
1888
- type: "Bearer";
1889
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1890
- } | {
1891
- type: "Basic";
1892
- username: string | (() => string | undefined) | undefined;
1893
- password: string | (() => string | undefined) | undefined;
1894
- } | {
1895
- type: "Custom";
1896
- prefix: string | (() => string | undefined) | undefined;
1897
- value: string | (() => string | undefined) | undefined;
1898
- }) | undefined;
1899
- body?: (Partial<{
1900
- email: string;
1901
- redirectTo?: string | undefined;
1902
- }> & Record<string, any>) | undefined;
1903
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1904
- params?: Record<string, any> | undefined;
1905
- duplex?: "full" | "half" | undefined;
1906
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1907
- retry?: import("better-auth/vue").RetryOptions | undefined;
1908
- retryAttempt?: number | undefined;
1909
- output?: (import("better-auth/vue").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1910
- errorSchema?: import("better-auth/vue").StandardSchemaV1 | undefined;
1911
- disableValidation?: boolean | undefined;
1912
- }>(data_0: import("better-auth").Prettify<{
1913
- email: string;
1914
- redirectTo?: string | undefined;
1915
- } & {
1916
- fetchOptions?: FetchOptions | undefined;
1917
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/vue").BetterFetchResponse<{
1918
- status: boolean;
1919
- }, {
1920
- code?: string;
1921
- message?: string;
1922
- }, FetchOptions["throw"] extends true ? true : false>>;
1923
- } & {
1924
- resetPassword: <FetchOptions extends {
1925
- cache?: RequestCache | undefined;
1926
- credentials?: RequestCredentials | undefined;
1927
- headers?: (HeadersInit & (HeadersInit | {
1928
- accept: "application/json" | "text/plain" | "application/octet-stream";
1929
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1930
- authorization: "Bearer" | "Basic";
1931
- })) | undefined;
1932
- integrity?: string | undefined;
1933
- keepalive?: boolean | undefined;
1934
- method?: string | undefined;
1935
- mode?: RequestMode | undefined;
1936
- priority?: RequestPriority | undefined;
1937
- redirect?: RequestRedirect | undefined;
1938
- referrer?: string | undefined;
1939
- referrerPolicy?: ReferrerPolicy | undefined;
1940
- signal?: (AbortSignal | null) | undefined;
1941
- window?: null | undefined;
1942
- onRequest?: (<T extends Record<string, any>>(context: import("better-auth/vue").RequestContext<T>) => Promise<import("better-auth/vue").RequestContext | void> | import("better-auth/vue").RequestContext | void) | undefined;
1943
- onResponse?: ((context: import("better-auth/vue").ResponseContext) => Promise<Response | void | import("better-auth/vue").ResponseContext> | Response | import("better-auth/vue").ResponseContext | void) | undefined;
1944
- onSuccess?: ((context: import("better-auth/vue").SuccessContext<any>) => Promise<void> | void) | undefined;
1945
- onError?: ((context: import("better-auth/vue").ErrorContext) => Promise<void> | void) | undefined;
1946
- onRetry?: ((response: import("better-auth/vue").ResponseContext) => Promise<void> | void) | undefined;
1947
- hookOptions?: {
1948
- cloneResponse?: boolean;
1949
- } | undefined;
1950
- timeout?: number | undefined;
1951
- customFetchImpl?: import("better-auth/vue").FetchEsque | undefined;
1952
- plugins?: import("better-auth/vue").BetterFetchPlugin[] | undefined;
1953
- baseURL?: string | undefined;
1954
- throw?: boolean | undefined;
1955
- auth?: ({
1956
- type: "Bearer";
1957
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1958
- } | {
1959
- type: "Basic";
1960
- username: string | (() => string | undefined) | undefined;
1961
- password: string | (() => string | undefined) | undefined;
1962
- } | {
1963
- type: "Custom";
1964
- prefix: string | (() => string | undefined) | undefined;
1965
- value: string | (() => string | undefined) | undefined;
1966
- }) | undefined;
1967
- body?: (Partial<{
1968
- newPassword: string;
1969
- token?: string | undefined;
1970
- }> & Record<string, any>) | undefined;
1971
- query?: (Partial<{
1972
- token?: string | undefined;
1973
- }> & Record<string, any>) | undefined;
1974
- params?: Record<string, any> | undefined;
1975
- duplex?: "full" | "half" | undefined;
1976
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1977
- retry?: import("better-auth/vue").RetryOptions | undefined;
1978
- retryAttempt?: number | undefined;
1979
- output?: (import("better-auth/vue").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1980
- errorSchema?: import("better-auth/vue").StandardSchemaV1 | undefined;
1981
- disableValidation?: boolean | undefined;
1982
- }>(data_0: import("better-auth").Prettify<{
1983
- newPassword: string;
1984
- token?: string | undefined;
1985
- } & {
1986
- fetchOptions?: FetchOptions | undefined;
1987
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/vue").BetterFetchResponse<{
1988
- status: boolean;
1989
- }, {
1990
- code?: string;
1991
- message?: string;
1992
- }, FetchOptions["throw"] extends true ? true : false>>;
1993
- } & {
1994
- verifyEmail: <FetchOptions extends {
1995
- cache?: RequestCache | undefined;
1996
- credentials?: RequestCredentials | undefined;
1997
- headers?: (HeadersInit & (HeadersInit | {
1998
- accept: "application/json" | "text/plain" | "application/octet-stream";
1999
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2000
- authorization: "Bearer" | "Basic";
2001
- })) | undefined;
2002
- integrity?: string | undefined;
2003
- keepalive?: boolean | undefined;
2004
- method?: string | undefined;
2005
- mode?: RequestMode | undefined;
2006
- priority?: RequestPriority | undefined;
2007
- redirect?: RequestRedirect | undefined;
2008
- referrer?: string | undefined;
2009
- referrerPolicy?: ReferrerPolicy | undefined;
2010
- signal?: (AbortSignal | null) | undefined;
2011
- window?: null | undefined;
2012
- onRequest?: (<T extends Record<string, any>>(context: import("better-auth/vue").RequestContext<T>) => Promise<import("better-auth/vue").RequestContext | void> | import("better-auth/vue").RequestContext | void) | undefined;
2013
- onResponse?: ((context: import("better-auth/vue").ResponseContext) => Promise<Response | void | import("better-auth/vue").ResponseContext> | Response | import("better-auth/vue").ResponseContext | void) | undefined;
2014
- onSuccess?: ((context: import("better-auth/vue").SuccessContext<any>) => Promise<void> | void) | undefined;
2015
- onError?: ((context: import("better-auth/vue").ErrorContext) => Promise<void> | void) | undefined;
2016
- onRetry?: ((response: import("better-auth/vue").ResponseContext) => Promise<void> | void) | undefined;
2017
- hookOptions?: {
2018
- cloneResponse?: boolean;
2019
- } | undefined;
2020
- timeout?: number | undefined;
2021
- customFetchImpl?: import("better-auth/vue").FetchEsque | undefined;
2022
- plugins?: import("better-auth/vue").BetterFetchPlugin[] | undefined;
2023
- baseURL?: string | undefined;
2024
- throw?: boolean | undefined;
2025
- auth?: ({
2026
- type: "Bearer";
2027
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2028
- } | {
2029
- type: "Basic";
2030
- username: string | (() => string | undefined) | undefined;
2031
- password: string | (() => string | undefined) | undefined;
2032
- } | {
2033
- type: "Custom";
2034
- prefix: string | (() => string | undefined) | undefined;
2035
- value: string | (() => string | undefined) | undefined;
2036
- }) | undefined;
2037
- body?: undefined;
2038
- query?: (Partial<{
2039
- token: string;
2040
- callbackURL?: string | undefined;
2041
- }> & Record<string, any>) | undefined;
2042
- params?: Record<string, any> | undefined;
2043
- duplex?: "full" | "half" | undefined;
2044
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2045
- retry?: import("better-auth/vue").RetryOptions | undefined;
2046
- retryAttempt?: number | undefined;
2047
- output?: (import("better-auth/vue").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2048
- errorSchema?: import("better-auth/vue").StandardSchemaV1 | undefined;
2049
- disableValidation?: boolean | undefined;
2050
- }>(data_0: import("better-auth").Prettify<{
2051
- query: {
2052
- token: string;
2053
- callbackURL?: string | undefined;
2054
- };
2055
- fetchOptions?: FetchOptions | undefined;
2056
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/vue").BetterFetchResponse<NonNullable<void | {
2057
- status: boolean;
2058
- user: {
2059
- id: any;
2060
- email: any;
2061
- name: any;
2062
- image: any;
2063
- emailVerified: any;
2064
- createdAt: any;
2065
- updatedAt: any;
2066
- };
2067
- } | {
2068
- status: boolean;
2069
- user: null;
2070
- }>, {
2071
- code?: string;
2072
- message?: string;
2073
- }, FetchOptions["throw"] extends true ? true : false>>;
2074
- } & {
2075
- sendVerificationEmail: <FetchOptions extends {
2076
- cache?: RequestCache | undefined;
2077
- credentials?: RequestCredentials | undefined;
2078
- headers?: (HeadersInit & (HeadersInit | {
2079
- accept: "application/json" | "text/plain" | "application/octet-stream";
2080
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2081
- authorization: "Bearer" | "Basic";
2082
- })) | undefined;
2083
- integrity?: string | undefined;
2084
- keepalive?: boolean | undefined;
2085
- method?: string | undefined;
2086
- mode?: RequestMode | undefined;
2087
- priority?: RequestPriority | undefined;
2088
- redirect?: RequestRedirect | undefined;
2089
- referrer?: string | undefined;
2090
- referrerPolicy?: ReferrerPolicy | undefined;
2091
- signal?: (AbortSignal | null) | undefined;
2092
- window?: null | undefined;
2093
- onRequest?: (<T extends Record<string, any>>(context: import("better-auth/vue").RequestContext<T>) => Promise<import("better-auth/vue").RequestContext | void> | import("better-auth/vue").RequestContext | void) | undefined;
2094
- onResponse?: ((context: import("better-auth/vue").ResponseContext) => Promise<Response | void | import("better-auth/vue").ResponseContext> | Response | import("better-auth/vue").ResponseContext | void) | undefined;
2095
- onSuccess?: ((context: import("better-auth/vue").SuccessContext<any>) => Promise<void> | void) | undefined;
2096
- onError?: ((context: import("better-auth/vue").ErrorContext) => Promise<void> | void) | undefined;
2097
- onRetry?: ((response: import("better-auth/vue").ResponseContext) => Promise<void> | void) | undefined;
2098
- hookOptions?: {
2099
- cloneResponse?: boolean;
2100
- } | undefined;
2101
- timeout?: number | undefined;
2102
- customFetchImpl?: import("better-auth/vue").FetchEsque | undefined;
2103
- plugins?: import("better-auth/vue").BetterFetchPlugin[] | undefined;
2104
- baseURL?: string | undefined;
2105
- throw?: boolean | undefined;
2106
- auth?: ({
2107
- type: "Bearer";
2108
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2109
- } | {
2110
- type: "Basic";
2111
- username: string | (() => string | undefined) | undefined;
2112
- password: string | (() => string | undefined) | undefined;
2113
- } | {
2114
- type: "Custom";
2115
- prefix: string | (() => string | undefined) | undefined;
2116
- value: string | (() => string | undefined) | undefined;
2117
- }) | undefined;
2118
- body?: (Partial<{
2119
- email: string;
2120
- callbackURL?: string | undefined;
2121
- }> & Record<string, any>) | undefined;
2122
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2123
- params?: Record<string, any> | undefined;
2124
- duplex?: "full" | "half" | undefined;
2125
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2126
- retry?: import("better-auth/vue").RetryOptions | undefined;
2127
- retryAttempt?: number | undefined;
2128
- output?: (import("better-auth/vue").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2129
- errorSchema?: import("better-auth/vue").StandardSchemaV1 | undefined;
2130
- disableValidation?: boolean | undefined;
2131
- }>(data_0: import("better-auth").Prettify<{
2132
- email: string;
2133
- callbackURL?: string | undefined;
2134
- } & {
2135
- fetchOptions?: FetchOptions | undefined;
2136
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/vue").BetterFetchResponse<{
2137
- status: boolean;
2138
- }, {
2139
- code?: string;
2140
- message?: string;
2141
- }, FetchOptions["throw"] extends true ? true : false>>;
2142
- } & {
2143
- changeEmail: <FetchOptions extends {
2144
- cache?: RequestCache | undefined;
2145
- credentials?: RequestCredentials | undefined;
2146
- headers?: (HeadersInit & (HeadersInit | {
2147
- accept: "application/json" | "text/plain" | "application/octet-stream";
2148
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2149
- authorization: "Bearer" | "Basic";
2150
- })) | undefined;
2151
- integrity?: string | undefined;
2152
- keepalive?: boolean | undefined;
2153
- method?: string | undefined;
2154
- mode?: RequestMode | undefined;
2155
- priority?: RequestPriority | undefined;
2156
- redirect?: RequestRedirect | undefined;
2157
- referrer?: string | undefined;
2158
- referrerPolicy?: ReferrerPolicy | undefined;
2159
- signal?: (AbortSignal | null) | undefined;
2160
- window?: null | undefined;
2161
- onRequest?: (<T extends Record<string, any>>(context: import("better-auth/vue").RequestContext<T>) => Promise<import("better-auth/vue").RequestContext | void> | import("better-auth/vue").RequestContext | void) | undefined;
2162
- onResponse?: ((context: import("better-auth/vue").ResponseContext) => Promise<Response | void | import("better-auth/vue").ResponseContext> | Response | import("better-auth/vue").ResponseContext | void) | undefined;
2163
- onSuccess?: ((context: import("better-auth/vue").SuccessContext<any>) => Promise<void> | void) | undefined;
2164
- onError?: ((context: import("better-auth/vue").ErrorContext) => Promise<void> | void) | undefined;
2165
- onRetry?: ((response: import("better-auth/vue").ResponseContext) => Promise<void> | void) | undefined;
2166
- hookOptions?: {
2167
- cloneResponse?: boolean;
2168
- } | undefined;
2169
- timeout?: number | undefined;
2170
- customFetchImpl?: import("better-auth/vue").FetchEsque | undefined;
2171
- plugins?: import("better-auth/vue").BetterFetchPlugin[] | undefined;
2172
- baseURL?: string | undefined;
2173
- throw?: boolean | undefined;
2174
- auth?: ({
2175
- type: "Bearer";
2176
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2177
- } | {
2178
- type: "Basic";
2179
- username: string | (() => string | undefined) | undefined;
2180
- password: string | (() => string | undefined) | undefined;
2181
- } | {
2182
- type: "Custom";
2183
- prefix: string | (() => string | undefined) | undefined;
2184
- value: string | (() => string | undefined) | undefined;
2185
- }) | undefined;
2186
- body?: (Partial<{
2187
- newEmail: string;
2188
- callbackURL?: string | undefined;
2189
- }> & Record<string, any>) | undefined;
2190
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2191
- params?: Record<string, any> | undefined;
2192
- duplex?: "full" | "half" | undefined;
2193
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2194
- retry?: import("better-auth/vue").RetryOptions | undefined;
2195
- retryAttempt?: number | undefined;
2196
- output?: (import("better-auth/vue").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2197
- errorSchema?: import("better-auth/vue").StandardSchemaV1 | undefined;
2198
- disableValidation?: boolean | undefined;
2199
- }>(data_0: import("better-auth").Prettify<{
2200
- newEmail: string;
2201
- callbackURL?: string | undefined;
2202
- } & {
2203
- fetchOptions?: FetchOptions | undefined;
2204
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/vue").BetterFetchResponse<{
2205
- status: boolean;
2206
- }, {
2207
- code?: string;
2208
- message?: string;
2209
- }, FetchOptions["throw"] extends true ? true : false>>;
2210
- } & {
2211
- changePassword: <FetchOptions extends {
2212
- cache?: RequestCache | undefined;
2213
- credentials?: RequestCredentials | undefined;
2214
- headers?: (HeadersInit & (HeadersInit | {
2215
- accept: "application/json" | "text/plain" | "application/octet-stream";
2216
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2217
- authorization: "Bearer" | "Basic";
2218
- })) | undefined;
2219
- integrity?: string | undefined;
2220
- keepalive?: boolean | undefined;
2221
- method?: string | undefined;
2222
- mode?: RequestMode | undefined;
2223
- priority?: RequestPriority | undefined;
2224
- redirect?: RequestRedirect | undefined;
2225
- referrer?: string | undefined;
2226
- referrerPolicy?: ReferrerPolicy | undefined;
2227
- signal?: (AbortSignal | null) | undefined;
2228
- window?: null | undefined;
2229
- onRequest?: (<T extends Record<string, any>>(context: import("better-auth/vue").RequestContext<T>) => Promise<import("better-auth/vue").RequestContext | void> | import("better-auth/vue").RequestContext | void) | undefined;
2230
- onResponse?: ((context: import("better-auth/vue").ResponseContext) => Promise<Response | void | import("better-auth/vue").ResponseContext> | Response | import("better-auth/vue").ResponseContext | void) | undefined;
2231
- onSuccess?: ((context: import("better-auth/vue").SuccessContext<any>) => Promise<void> | void) | undefined;
2232
- onError?: ((context: import("better-auth/vue").ErrorContext) => Promise<void> | void) | undefined;
2233
- onRetry?: ((response: import("better-auth/vue").ResponseContext) => Promise<void> | void) | undefined;
2234
- hookOptions?: {
2235
- cloneResponse?: boolean;
2236
- } | undefined;
2237
- timeout?: number | undefined;
2238
- customFetchImpl?: import("better-auth/vue").FetchEsque | undefined;
2239
- plugins?: import("better-auth/vue").BetterFetchPlugin[] | undefined;
2240
- baseURL?: string | undefined;
2241
- throw?: boolean | undefined;
2242
- auth?: ({
2243
- type: "Bearer";
2244
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2245
- } | {
2246
- type: "Basic";
2247
- username: string | (() => string | undefined) | undefined;
2248
- password: string | (() => string | undefined) | undefined;
2249
- } | {
2250
- type: "Custom";
2251
- prefix: string | (() => string | undefined) | undefined;
2252
- value: string | (() => string | undefined) | undefined;
2253
- }) | undefined;
2254
- body?: (Partial<{
2255
- newPassword: string;
2256
- currentPassword: string;
2257
- revokeOtherSessions?: boolean | undefined;
2258
- }> & Record<string, any>) | undefined;
2259
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2260
- params?: Record<string, any> | undefined;
2261
- duplex?: "full" | "half" | undefined;
2262
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2263
- retry?: import("better-auth/vue").RetryOptions | undefined;
2264
- retryAttempt?: number | undefined;
2265
- output?: (import("better-auth/vue").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2266
- errorSchema?: import("better-auth/vue").StandardSchemaV1 | undefined;
2267
- disableValidation?: boolean | undefined;
2268
- }>(data_0: import("better-auth").Prettify<{
2269
- newPassword: string;
2270
- currentPassword: string;
2271
- revokeOtherSessions?: boolean | undefined;
2272
- } & {
2273
- fetchOptions?: FetchOptions | undefined;
2274
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/vue").BetterFetchResponse<{
2275
- token: string | null;
2276
- user: {
2277
- id: string;
2278
- email: string;
2279
- name: string;
2280
- image: string | null | undefined;
2281
- emailVerified: boolean;
2282
- createdAt: Date;
2283
- updatedAt: Date;
2284
- };
2285
- }, {
2286
- code?: string;
2287
- message?: string;
2288
- }, FetchOptions["throw"] extends true ? true : false>>;
2289
- } & {
2290
- deleteUser: <FetchOptions extends {
2291
- cache?: RequestCache | undefined;
2292
- credentials?: RequestCredentials | undefined;
2293
- headers?: (HeadersInit & (HeadersInit | {
2294
- accept: "application/json" | "text/plain" | "application/octet-stream";
2295
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2296
- authorization: "Bearer" | "Basic";
2297
- })) | undefined;
2298
- integrity?: string | undefined;
2299
- keepalive?: boolean | undefined;
2300
- method?: string | undefined;
2301
- mode?: RequestMode | undefined;
2302
- priority?: RequestPriority | undefined;
2303
- redirect?: RequestRedirect | undefined;
2304
- referrer?: string | undefined;
2305
- referrerPolicy?: ReferrerPolicy | undefined;
2306
- signal?: (AbortSignal | null) | undefined;
2307
- window?: null | undefined;
2308
- onRequest?: (<T extends Record<string, any>>(context: import("better-auth/vue").RequestContext<T>) => Promise<import("better-auth/vue").RequestContext | void> | import("better-auth/vue").RequestContext | void) | undefined;
2309
- onResponse?: ((context: import("better-auth/vue").ResponseContext) => Promise<Response | void | import("better-auth/vue").ResponseContext> | Response | import("better-auth/vue").ResponseContext | void) | undefined;
2310
- onSuccess?: ((context: import("better-auth/vue").SuccessContext<any>) => Promise<void> | void) | undefined;
2311
- onError?: ((context: import("better-auth/vue").ErrorContext) => Promise<void> | void) | undefined;
2312
- onRetry?: ((response: import("better-auth/vue").ResponseContext) => Promise<void> | void) | undefined;
2313
- hookOptions?: {
2314
- cloneResponse?: boolean;
2315
- } | undefined;
2316
- timeout?: number | undefined;
2317
- customFetchImpl?: import("better-auth/vue").FetchEsque | undefined;
2318
- plugins?: import("better-auth/vue").BetterFetchPlugin[] | undefined;
2319
- baseURL?: string | undefined;
2320
- throw?: boolean | undefined;
2321
- auth?: ({
2322
- type: "Bearer";
2323
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2324
- } | {
2325
- type: "Basic";
2326
- username: string | (() => string | undefined) | undefined;
2327
- password: string | (() => string | undefined) | undefined;
2328
- } | {
2329
- type: "Custom";
2330
- prefix: string | (() => string | undefined) | undefined;
2331
- value: string | (() => string | undefined) | undefined;
2332
- }) | undefined;
2333
- body?: (Partial<{
2334
- password?: string | undefined;
2335
- token?: string | undefined;
2336
- callbackURL?: string | undefined;
2337
- }> & Record<string, any>) | undefined;
2338
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2339
- params?: Record<string, any> | undefined;
2340
- duplex?: "full" | "half" | undefined;
2341
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2342
- retry?: import("better-auth/vue").RetryOptions | undefined;
2343
- retryAttempt?: number | undefined;
2344
- output?: (import("better-auth/vue").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2345
- errorSchema?: import("better-auth/vue").StandardSchemaV1 | undefined;
2346
- disableValidation?: boolean | undefined;
2347
- }>(data_0?: import("better-auth").Prettify<{
2348
- password?: string | undefined;
2349
- token?: string | undefined;
2350
- callbackURL?: string | undefined;
2351
- } & {
2352
- fetchOptions?: FetchOptions | undefined;
2353
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/vue").BetterFetchResponse<{
2354
- success: boolean;
2355
- message: string;
2356
- }, {
2357
- code?: string;
2358
- message?: string;
2359
- }, FetchOptions["throw"] extends true ? true : false>>;
2360
- } & {
2361
- resetPassword: {
2362
- ":token": <FetchOptions extends {
2363
- cache?: RequestCache | undefined;
2364
- credentials?: RequestCredentials | undefined;
2365
- headers?: (HeadersInit & (HeadersInit | {
2366
- accept: "application/json" | "text/plain" | "application/octet-stream";
2367
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2368
- authorization: "Bearer" | "Basic";
2369
- })) | undefined;
2370
- integrity?: string | undefined;
2371
- keepalive?: boolean | undefined;
2372
- method?: string | undefined;
2373
- mode?: RequestMode | undefined;
2374
- priority?: RequestPriority | undefined;
2375
- redirect?: RequestRedirect | undefined;
2376
- referrer?: string | undefined;
2377
- referrerPolicy?: ReferrerPolicy | undefined;
2378
- signal?: (AbortSignal | null) | undefined;
2379
- window?: null | undefined;
2380
- onRequest?: (<T extends Record<string, any>>(context: import("better-auth/vue").RequestContext<T>) => Promise<import("better-auth/vue").RequestContext | void> | import("better-auth/vue").RequestContext | void) | undefined;
2381
- onResponse?: ((context: import("better-auth/vue").ResponseContext) => Promise<Response | void | import("better-auth/vue").ResponseContext> | Response | import("better-auth/vue").ResponseContext | void) | undefined;
2382
- onSuccess?: ((context: import("better-auth/vue").SuccessContext<any>) => Promise<void> | void) | undefined;
2383
- onError?: ((context: import("better-auth/vue").ErrorContext) => Promise<void> | void) | undefined;
2384
- onRetry?: ((response: import("better-auth/vue").ResponseContext) => Promise<void> | void) | undefined;
2385
- hookOptions?: {
2386
- cloneResponse?: boolean;
2387
- } | undefined;
2388
- timeout?: number | undefined;
2389
- customFetchImpl?: import("better-auth/vue").FetchEsque | undefined;
2390
- plugins?: import("better-auth/vue").BetterFetchPlugin[] | undefined;
2391
- baseURL?: string | undefined;
2392
- throw?: boolean | undefined;
2393
- auth?: ({
2394
- type: "Bearer";
2395
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2396
- } | {
2397
- type: "Basic";
2398
- username: string | (() => string | undefined) | undefined;
2399
- password: string | (() => string | undefined) | undefined;
2400
- } | {
2401
- type: "Custom";
2402
- prefix: string | (() => string | undefined) | undefined;
2403
- value: string | (() => string | undefined) | undefined;
2404
- }) | undefined;
2405
- body?: undefined;
2406
- query?: (Partial<{
2407
- callbackURL: string;
2408
- }> & Record<string, any>) | undefined;
2409
- params?: {
2410
- token: string;
2411
- } | undefined;
2412
- duplex?: "full" | "half" | undefined;
2413
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2414
- retry?: import("better-auth/vue").RetryOptions | undefined;
2415
- retryAttempt?: number | undefined;
2416
- output?: (import("better-auth/vue").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2417
- errorSchema?: import("better-auth/vue").StandardSchemaV1 | undefined;
2418
- disableValidation?: boolean | undefined;
2419
- }>(data_0: import("better-auth").Prettify<{
2420
- query: {
2421
- callbackURL: string;
2422
- };
2423
- fetchOptions?: FetchOptions | undefined;
2424
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/vue").BetterFetchResponse<never, {
2425
- code?: string;
2426
- message?: string;
2427
- }, FetchOptions["throw"] extends true ? true : false>>;
2428
- };
2429
- } & {
2430
- revokeSession: <FetchOptions extends {
2431
- cache?: RequestCache | undefined;
2432
- credentials?: RequestCredentials | undefined;
2433
- headers?: (HeadersInit & (HeadersInit | {
2434
- accept: "application/json" | "text/plain" | "application/octet-stream";
2435
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2436
- authorization: "Bearer" | "Basic";
2437
- })) | undefined;
2438
- integrity?: string | undefined;
2439
- keepalive?: boolean | undefined;
2440
- method?: string | undefined;
2441
- mode?: RequestMode | undefined;
2442
- priority?: RequestPriority | undefined;
2443
- redirect?: RequestRedirect | undefined;
2444
- referrer?: string | undefined;
2445
- referrerPolicy?: ReferrerPolicy | undefined;
2446
- signal?: (AbortSignal | null) | undefined;
2447
- window?: null | undefined;
2448
- onRequest?: (<T extends Record<string, any>>(context: import("better-auth/vue").RequestContext<T>) => Promise<import("better-auth/vue").RequestContext | void> | import("better-auth/vue").RequestContext | void) | undefined;
2449
- onResponse?: ((context: import("better-auth/vue").ResponseContext) => Promise<Response | void | import("better-auth/vue").ResponseContext> | Response | import("better-auth/vue").ResponseContext | void) | undefined;
2450
- onSuccess?: ((context: import("better-auth/vue").SuccessContext<any>) => Promise<void> | void) | undefined;
2451
- onError?: ((context: import("better-auth/vue").ErrorContext) => Promise<void> | void) | undefined;
2452
- onRetry?: ((response: import("better-auth/vue").ResponseContext) => Promise<void> | void) | undefined;
2453
- hookOptions?: {
2454
- cloneResponse?: boolean;
2455
- } | undefined;
2456
- timeout?: number | undefined;
2457
- customFetchImpl?: import("better-auth/vue").FetchEsque | undefined;
2458
- plugins?: import("better-auth/vue").BetterFetchPlugin[] | undefined;
2459
- baseURL?: string | undefined;
2460
- throw?: boolean | undefined;
2461
- auth?: ({
2462
- type: "Bearer";
2463
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2464
- } | {
2465
- type: "Basic";
2466
- username: string | (() => string | undefined) | undefined;
2467
- password: string | (() => string | undefined) | undefined;
2468
- } | {
2469
- type: "Custom";
2470
- prefix: string | (() => string | undefined) | undefined;
2471
- value: string | (() => string | undefined) | undefined;
2472
- }) | undefined;
2473
- body?: (Partial<{
2474
- token: string;
2475
- }> & Record<string, any>) | undefined;
2476
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2477
- params?: Record<string, any> | undefined;
2478
- duplex?: "full" | "half" | undefined;
2479
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2480
- retry?: import("better-auth/vue").RetryOptions | undefined;
2481
- retryAttempt?: number | undefined;
2482
- output?: (import("better-auth/vue").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2483
- errorSchema?: import("better-auth/vue").StandardSchemaV1 | undefined;
2484
- disableValidation?: boolean | undefined;
2485
- }>(data_0: import("better-auth").Prettify<{
2486
- token: string;
2487
- } & {
2488
- fetchOptions?: FetchOptions | undefined;
2489
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/vue").BetterFetchResponse<{
2490
- status: boolean;
2491
- }, {
2492
- code?: string;
2493
- message?: string;
2494
- }, FetchOptions["throw"] extends true ? true : false>>;
2495
- } & {
2496
- revokeSessions: <FetchOptions extends {
2497
- cache?: RequestCache | undefined;
2498
- credentials?: RequestCredentials | undefined;
2499
- headers?: (HeadersInit & (HeadersInit | {
2500
- accept: "application/json" | "text/plain" | "application/octet-stream";
2501
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2502
- authorization: "Bearer" | "Basic";
2503
- })) | undefined;
2504
- integrity?: string | undefined;
2505
- keepalive?: boolean | undefined;
2506
- method?: string | undefined;
2507
- mode?: RequestMode | undefined;
2508
- priority?: RequestPriority | undefined;
2509
- redirect?: RequestRedirect | undefined;
2510
- referrer?: string | undefined;
2511
- referrerPolicy?: ReferrerPolicy | undefined;
2512
- signal?: (AbortSignal | null) | undefined;
2513
- window?: null | undefined;
2514
- onRequest?: (<T extends Record<string, any>>(context: import("better-auth/vue").RequestContext<T>) => Promise<import("better-auth/vue").RequestContext | void> | import("better-auth/vue").RequestContext | void) | undefined;
2515
- onResponse?: ((context: import("better-auth/vue").ResponseContext) => Promise<Response | void | import("better-auth/vue").ResponseContext> | Response | import("better-auth/vue").ResponseContext | void) | undefined;
2516
- onSuccess?: ((context: import("better-auth/vue").SuccessContext<any>) => Promise<void> | void) | undefined;
2517
- onError?: ((context: import("better-auth/vue").ErrorContext) => Promise<void> | void) | undefined;
2518
- onRetry?: ((response: import("better-auth/vue").ResponseContext) => Promise<void> | void) | undefined;
2519
- hookOptions?: {
2520
- cloneResponse?: boolean;
2521
- } | undefined;
2522
- timeout?: number | undefined;
2523
- customFetchImpl?: import("better-auth/vue").FetchEsque | undefined;
2524
- plugins?: import("better-auth/vue").BetterFetchPlugin[] | undefined;
2525
- baseURL?: string | undefined;
2526
- throw?: boolean | undefined;
2527
- auth?: ({
2528
- type: "Bearer";
2529
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2530
- } | {
2531
- type: "Basic";
2532
- username: string | (() => string | undefined) | undefined;
2533
- password: string | (() => string | undefined) | undefined;
2534
- } | {
2535
- type: "Custom";
2536
- prefix: string | (() => string | undefined) | undefined;
2537
- value: string | (() => string | undefined) | undefined;
2538
- }) | undefined;
2539
- body?: undefined;
2540
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2541
- params?: Record<string, any> | undefined;
2542
- duplex?: "full" | "half" | undefined;
2543
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2544
- retry?: import("better-auth/vue").RetryOptions | undefined;
2545
- retryAttempt?: number | undefined;
2546
- output?: (import("better-auth/vue").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2547
- errorSchema?: import("better-auth/vue").StandardSchemaV1 | undefined;
2548
- disableValidation?: boolean | undefined;
2549
- }>(data_0?: import("better-auth").Prettify<{
2550
- query?: Record<string, any> | undefined;
2551
- fetchOptions?: FetchOptions | undefined;
2552
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/vue").BetterFetchResponse<{
2553
- status: boolean;
2554
- }, {
2555
- code?: string;
2556
- message?: string;
2557
- }, FetchOptions["throw"] extends true ? true : false>>;
2558
- } & {
2559
- revokeOtherSessions: <FetchOptions extends {
2560
- cache?: RequestCache | undefined;
2561
- credentials?: RequestCredentials | undefined;
2562
- headers?: (HeadersInit & (HeadersInit | {
2563
- accept: "application/json" | "text/plain" | "application/octet-stream";
2564
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2565
- authorization: "Bearer" | "Basic";
2566
- })) | undefined;
2567
- integrity?: string | undefined;
2568
- keepalive?: boolean | undefined;
2569
- method?: string | undefined;
2570
- mode?: RequestMode | undefined;
2571
- priority?: RequestPriority | undefined;
2572
- redirect?: RequestRedirect | undefined;
2573
- referrer?: string | undefined;
2574
- referrerPolicy?: ReferrerPolicy | undefined;
2575
- signal?: (AbortSignal | null) | undefined;
2576
- window?: null | undefined;
2577
- onRequest?: (<T extends Record<string, any>>(context: import("better-auth/vue").RequestContext<T>) => Promise<import("better-auth/vue").RequestContext | void> | import("better-auth/vue").RequestContext | void) | undefined;
2578
- onResponse?: ((context: import("better-auth/vue").ResponseContext) => Promise<Response | void | import("better-auth/vue").ResponseContext> | Response | import("better-auth/vue").ResponseContext | void) | undefined;
2579
- onSuccess?: ((context: import("better-auth/vue").SuccessContext<any>) => Promise<void> | void) | undefined;
2580
- onError?: ((context: import("better-auth/vue").ErrorContext) => Promise<void> | void) | undefined;
2581
- onRetry?: ((response: import("better-auth/vue").ResponseContext) => Promise<void> | void) | undefined;
2582
- hookOptions?: {
2583
- cloneResponse?: boolean;
2584
- } | undefined;
2585
- timeout?: number | undefined;
2586
- customFetchImpl?: import("better-auth/vue").FetchEsque | undefined;
2587
- plugins?: import("better-auth/vue").BetterFetchPlugin[] | undefined;
2588
- baseURL?: string | undefined;
2589
- throw?: boolean | undefined;
2590
- auth?: ({
2591
- type: "Bearer";
2592
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2593
- } | {
2594
- type: "Basic";
2595
- username: string | (() => string | undefined) | undefined;
2596
- password: string | (() => string | undefined) | undefined;
2597
- } | {
2598
- type: "Custom";
2599
- prefix: string | (() => string | undefined) | undefined;
2600
- value: string | (() => string | undefined) | undefined;
2601
- }) | undefined;
2602
- body?: undefined;
2603
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2604
- params?: Record<string, any> | undefined;
2605
- duplex?: "full" | "half" | undefined;
2606
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2607
- retry?: import("better-auth/vue").RetryOptions | undefined;
2608
- retryAttempt?: number | undefined;
2609
- output?: (import("better-auth/vue").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2610
- errorSchema?: import("better-auth/vue").StandardSchemaV1 | undefined;
2611
- disableValidation?: boolean | undefined;
2612
- }>(data_0?: import("better-auth").Prettify<{
2613
- query?: Record<string, any> | undefined;
2614
- fetchOptions?: FetchOptions | undefined;
2615
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/vue").BetterFetchResponse<{
2616
- status: boolean;
2617
- }, {
2618
- code?: string;
2619
- message?: string;
2620
- }, FetchOptions["throw"] extends true ? true : false>>;
2621
- } & {
2622
- linkSocial: <FetchOptions extends {
2623
- cache?: RequestCache | undefined;
2624
- credentials?: RequestCredentials | undefined;
2625
- headers?: (HeadersInit & (HeadersInit | {
2626
- accept: "application/json" | "text/plain" | "application/octet-stream";
2627
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2628
- authorization: "Bearer" | "Basic";
2629
- })) | undefined;
2630
- integrity?: string | undefined;
2631
- keepalive?: boolean | undefined;
2632
- method?: string | undefined;
2633
- mode?: RequestMode | undefined;
2634
- priority?: RequestPriority | undefined;
2635
- redirect?: RequestRedirect | undefined;
2636
- referrer?: string | undefined;
2637
- referrerPolicy?: ReferrerPolicy | undefined;
2638
- signal?: (AbortSignal | null) | undefined;
2639
- window?: null | undefined;
2640
- onRequest?: (<T extends Record<string, any>>(context: import("better-auth/vue").RequestContext<T>) => Promise<import("better-auth/vue").RequestContext | void> | import("better-auth/vue").RequestContext | void) | undefined;
2641
- onResponse?: ((context: import("better-auth/vue").ResponseContext) => Promise<Response | void | import("better-auth/vue").ResponseContext> | Response | import("better-auth/vue").ResponseContext | void) | undefined;
2642
- onSuccess?: ((context: import("better-auth/vue").SuccessContext<any>) => Promise<void> | void) | undefined;
2643
- onError?: ((context: import("better-auth/vue").ErrorContext) => Promise<void> | void) | undefined;
2644
- onRetry?: ((response: import("better-auth/vue").ResponseContext) => Promise<void> | void) | undefined;
2645
- hookOptions?: {
2646
- cloneResponse?: boolean;
2647
- } | undefined;
2648
- timeout?: number | undefined;
2649
- customFetchImpl?: import("better-auth/vue").FetchEsque | undefined;
2650
- plugins?: import("better-auth/vue").BetterFetchPlugin[] | undefined;
2651
- baseURL?: string | undefined;
2652
- throw?: boolean | undefined;
2653
- auth?: ({
2654
- type: "Bearer";
2655
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2656
- } | {
2657
- type: "Basic";
2658
- username: string | (() => string | undefined) | undefined;
2659
- password: string | (() => string | undefined) | undefined;
2660
- } | {
2661
- type: "Custom";
2662
- prefix: string | (() => string | undefined) | undefined;
2663
- value: string | (() => string | undefined) | undefined;
2664
- }) | undefined;
2665
- body?: (Partial<{
2666
- provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick" | "zoom";
2667
- scopes?: string[] | undefined;
2668
- callbackURL?: string | undefined;
2669
- }> & Record<string, any>) | undefined;
2670
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2671
- params?: Record<string, any> | undefined;
2672
- duplex?: "full" | "half" | undefined;
2673
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2674
- retry?: import("better-auth/vue").RetryOptions | undefined;
2675
- retryAttempt?: number | undefined;
2676
- output?: (import("better-auth/vue").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2677
- errorSchema?: import("better-auth/vue").StandardSchemaV1 | undefined;
2678
- disableValidation?: boolean | undefined;
2679
- }>(data_0: import("better-auth").Prettify<{
2680
- provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick" | "zoom";
2681
- scopes?: string[] | undefined;
2682
- callbackURL?: string | undefined;
2683
- } & {
2684
- fetchOptions?: FetchOptions | undefined;
2685
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/vue").BetterFetchResponse<{
2686
- url: string;
2687
- redirect: boolean;
2688
- }, {
2689
- code?: string;
2690
- message?: string;
2691
- }, FetchOptions["throw"] extends true ? true : false>>;
2692
- } & {
2693
- listAccounts: <FetchOptions extends {
2694
- cache?: RequestCache | undefined;
2695
- credentials?: RequestCredentials | undefined;
2696
- headers?: (HeadersInit & (HeadersInit | {
2697
- accept: "application/json" | "text/plain" | "application/octet-stream";
2698
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2699
- authorization: "Bearer" | "Basic";
2700
- })) | undefined;
2701
- integrity?: string | undefined;
2702
- keepalive?: boolean | undefined;
2703
- method?: string | undefined;
2704
- mode?: RequestMode | undefined;
2705
- priority?: RequestPriority | undefined;
2706
- redirect?: RequestRedirect | undefined;
2707
- referrer?: string | undefined;
2708
- referrerPolicy?: ReferrerPolicy | undefined;
2709
- signal?: (AbortSignal | null) | undefined;
2710
- window?: null | undefined;
2711
- onRequest?: (<T extends Record<string, any>>(context: import("better-auth/vue").RequestContext<T>) => Promise<import("better-auth/vue").RequestContext | void> | import("better-auth/vue").RequestContext | void) | undefined;
2712
- onResponse?: ((context: import("better-auth/vue").ResponseContext) => Promise<Response | void | import("better-auth/vue").ResponseContext> | Response | import("better-auth/vue").ResponseContext | void) | undefined;
2713
- onSuccess?: ((context: import("better-auth/vue").SuccessContext<any>) => Promise<void> | void) | undefined;
2714
- onError?: ((context: import("better-auth/vue").ErrorContext) => Promise<void> | void) | undefined;
2715
- onRetry?: ((response: import("better-auth/vue").ResponseContext) => Promise<void> | void) | undefined;
2716
- hookOptions?: {
2717
- cloneResponse?: boolean;
2718
- } | undefined;
2719
- timeout?: number | undefined;
2720
- customFetchImpl?: import("better-auth/vue").FetchEsque | undefined;
2721
- plugins?: import("better-auth/vue").BetterFetchPlugin[] | undefined;
2722
- baseURL?: string | undefined;
2723
- throw?: boolean | undefined;
2724
- auth?: ({
2725
- type: "Bearer";
2726
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2727
- } | {
2728
- type: "Basic";
2729
- username: string | (() => string | undefined) | undefined;
2730
- password: string | (() => string | undefined) | undefined;
2731
- } | {
2732
- type: "Custom";
2733
- prefix: string | (() => string | undefined) | undefined;
2734
- value: string | (() => string | undefined) | undefined;
2735
- }) | undefined;
2736
- body?: undefined;
2737
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2738
- params?: Record<string, any> | undefined;
2739
- duplex?: "full" | "half" | undefined;
2740
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2741
- retry?: import("better-auth/vue").RetryOptions | undefined;
2742
- retryAttempt?: number | undefined;
2743
- output?: (import("better-auth/vue").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2744
- errorSchema?: import("better-auth/vue").StandardSchemaV1 | undefined;
2745
- disableValidation?: boolean | undefined;
2746
- }>(data_0?: import("better-auth").Prettify<{
2747
- query?: Record<string, any> | undefined;
2748
- fetchOptions?: FetchOptions | undefined;
2749
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/vue").BetterFetchResponse<{
2750
- id: string;
2751
- provider: string;
2752
- createdAt: Date;
2753
- updatedAt: Date;
2754
- accountId: string;
2755
- scopes: string[];
2756
- }[], {
2757
- code?: string;
2758
- message?: string;
2759
- }, FetchOptions["throw"] extends true ? true : false>>;
2760
- } & {
2761
- deleteUser: {
2762
- callback: <FetchOptions extends {
2763
- cache?: RequestCache | undefined;
2764
- credentials?: RequestCredentials | undefined;
2765
- headers?: (HeadersInit & (HeadersInit | {
2766
- accept: "application/json" | "text/plain" | "application/octet-stream";
2767
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2768
- authorization: "Bearer" | "Basic";
2769
- })) | undefined;
2770
- integrity?: string | undefined;
2771
- keepalive?: boolean | undefined;
2772
- method?: string | undefined;
2773
- mode?: RequestMode | undefined;
2774
- priority?: RequestPriority | undefined;
2775
- redirect?: RequestRedirect | undefined;
2776
- referrer?: string | undefined;
2777
- referrerPolicy?: ReferrerPolicy | undefined;
2778
- signal?: (AbortSignal | null) | undefined;
2779
- window?: null | undefined;
2780
- onRequest?: (<T extends Record<string, any>>(context: import("better-auth/vue").RequestContext<T>) => Promise<import("better-auth/vue").RequestContext | void> | import("better-auth/vue").RequestContext | void) | undefined;
2781
- onResponse?: ((context: import("better-auth/vue").ResponseContext) => Promise<Response | void | import("better-auth/vue").ResponseContext> | Response | import("better-auth/vue").ResponseContext | void) | undefined;
2782
- onSuccess?: ((context: import("better-auth/vue").SuccessContext<any>) => Promise<void> | void) | undefined;
2783
- onError?: ((context: import("better-auth/vue").ErrorContext) => Promise<void> | void) | undefined;
2784
- onRetry?: ((response: import("better-auth/vue").ResponseContext) => Promise<void> | void) | undefined;
2785
- hookOptions?: {
2786
- cloneResponse?: boolean;
2787
- } | undefined;
2788
- timeout?: number | undefined;
2789
- customFetchImpl?: import("better-auth/vue").FetchEsque | undefined;
2790
- plugins?: import("better-auth/vue").BetterFetchPlugin[] | undefined;
2791
- baseURL?: string | undefined;
2792
- throw?: boolean | undefined;
2793
- auth?: ({
2794
- type: "Bearer";
2795
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2796
- } | {
2797
- type: "Basic";
2798
- username: string | (() => string | undefined) | undefined;
2799
- password: string | (() => string | undefined) | undefined;
2800
- } | {
2801
- type: "Custom";
2802
- prefix: string | (() => string | undefined) | undefined;
2803
- value: string | (() => string | undefined) | undefined;
2804
- }) | undefined;
2805
- body?: undefined;
2806
- query?: (Partial<{
2807
- token: string;
2808
- callbackURL?: string | undefined;
2809
- }> & Record<string, any>) | undefined;
2810
- params?: Record<string, any> | undefined;
2811
- duplex?: "full" | "half" | undefined;
2812
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2813
- retry?: import("better-auth/vue").RetryOptions | undefined;
2814
- retryAttempt?: number | undefined;
2815
- output?: (import("better-auth/vue").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2816
- errorSchema?: import("better-auth/vue").StandardSchemaV1 | undefined;
2817
- disableValidation?: boolean | undefined;
2818
- }>(data_0: import("better-auth").Prettify<{
2819
- query: {
2820
- token: string;
2821
- callbackURL?: string | undefined;
2822
- };
2823
- fetchOptions?: FetchOptions | undefined;
2824
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/vue").BetterFetchResponse<{
2825
- success: boolean;
2826
- message: string;
2827
- }, {
2828
- code?: string;
2829
- message?: string;
2830
- }, FetchOptions["throw"] extends true ? true : false>>;
2831
- };
2832
- } & {
2833
- unlinkAccount: <FetchOptions extends {
2834
- cache?: RequestCache | undefined;
2835
- credentials?: RequestCredentials | undefined;
2836
- headers?: (HeadersInit & (HeadersInit | {
2837
- accept: "application/json" | "text/plain" | "application/octet-stream";
2838
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2839
- authorization: "Bearer" | "Basic";
2840
- })) | undefined;
2841
- integrity?: string | undefined;
2842
- keepalive?: boolean | undefined;
2843
- method?: string | undefined;
2844
- mode?: RequestMode | undefined;
2845
- priority?: RequestPriority | undefined;
2846
- redirect?: RequestRedirect | undefined;
2847
- referrer?: string | undefined;
2848
- referrerPolicy?: ReferrerPolicy | undefined;
2849
- signal?: (AbortSignal | null) | undefined;
2850
- window?: null | undefined;
2851
- onRequest?: (<T extends Record<string, any>>(context: import("better-auth/vue").RequestContext<T>) => Promise<import("better-auth/vue").RequestContext | void> | import("better-auth/vue").RequestContext | void) | undefined;
2852
- onResponse?: ((context: import("better-auth/vue").ResponseContext) => Promise<Response | void | import("better-auth/vue").ResponseContext> | Response | import("better-auth/vue").ResponseContext | void) | undefined;
2853
- onSuccess?: ((context: import("better-auth/vue").SuccessContext<any>) => Promise<void> | void) | undefined;
2854
- onError?: ((context: import("better-auth/vue").ErrorContext) => Promise<void> | void) | undefined;
2855
- onRetry?: ((response: import("better-auth/vue").ResponseContext) => Promise<void> | void) | undefined;
2856
- hookOptions?: {
2857
- cloneResponse?: boolean;
2858
- } | undefined;
2859
- timeout?: number | undefined;
2860
- customFetchImpl?: import("better-auth/vue").FetchEsque | undefined;
2861
- plugins?: import("better-auth/vue").BetterFetchPlugin[] | undefined;
2862
- baseURL?: string | undefined;
2863
- throw?: boolean | undefined;
2864
- auth?: ({
2865
- type: "Bearer";
2866
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2867
- } | {
2868
- type: "Basic";
2869
- username: string | (() => string | undefined) | undefined;
2870
- password: string | (() => string | undefined) | undefined;
2871
- } | {
2872
- type: "Custom";
2873
- prefix: string | (() => string | undefined) | undefined;
2874
- value: string | (() => string | undefined) | undefined;
2875
- }) | undefined;
2876
- body?: (Partial<{
2877
- providerId: string;
2878
- accountId?: string | undefined;
2879
- }> & Record<string, any>) | undefined;
2880
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2881
- params?: Record<string, any> | undefined;
2882
- duplex?: "full" | "half" | undefined;
2883
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2884
- retry?: import("better-auth/vue").RetryOptions | undefined;
2885
- retryAttempt?: number | undefined;
2886
- output?: (import("better-auth/vue").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2887
- errorSchema?: import("better-auth/vue").StandardSchemaV1 | undefined;
2888
- disableValidation?: boolean | undefined;
2889
- }>(data_0: import("better-auth").Prettify<{
2890
- providerId: string;
2891
- accountId?: string | undefined;
2892
- } & {
2893
- fetchOptions?: FetchOptions | undefined;
2894
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/vue").BetterFetchResponse<{
2895
- status: boolean;
2896
- }, {
2897
- code?: string;
2898
- message?: string;
2899
- }, FetchOptions["throw"] extends true ? true : false>>;
2900
- } & {
2901
- refreshToken: <FetchOptions extends {
2902
- cache?: RequestCache | undefined;
2903
- credentials?: RequestCredentials | undefined;
2904
- headers?: (HeadersInit & (HeadersInit | {
2905
- accept: "application/json" | "text/plain" | "application/octet-stream";
2906
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2907
- authorization: "Bearer" | "Basic";
2908
- })) | undefined;
2909
- integrity?: string | undefined;
2910
- keepalive?: boolean | undefined;
2911
- method?: string | undefined;
2912
- mode?: RequestMode | undefined;
2913
- priority?: RequestPriority | undefined;
2914
- redirect?: RequestRedirect | undefined;
2915
- referrer?: string | undefined;
2916
- referrerPolicy?: ReferrerPolicy | undefined;
2917
- signal?: (AbortSignal | null) | undefined;
2918
- window?: null | undefined;
2919
- onRequest?: (<T extends Record<string, any>>(context: import("better-auth/vue").RequestContext<T>) => Promise<import("better-auth/vue").RequestContext | void> | import("better-auth/vue").RequestContext | void) | undefined;
2920
- onResponse?: ((context: import("better-auth/vue").ResponseContext) => Promise<Response | void | import("better-auth/vue").ResponseContext> | Response | import("better-auth/vue").ResponseContext | void) | undefined;
2921
- onSuccess?: ((context: import("better-auth/vue").SuccessContext<any>) => Promise<void> | void) | undefined;
2922
- onError?: ((context: import("better-auth/vue").ErrorContext) => Promise<void> | void) | undefined;
2923
- onRetry?: ((response: import("better-auth/vue").ResponseContext) => Promise<void> | void) | undefined;
2924
- hookOptions?: {
2925
- cloneResponse?: boolean;
2926
- } | undefined;
2927
- timeout?: number | undefined;
2928
- customFetchImpl?: import("better-auth/vue").FetchEsque | undefined;
2929
- plugins?: import("better-auth/vue").BetterFetchPlugin[] | undefined;
2930
- baseURL?: string | undefined;
2931
- throw?: boolean | undefined;
2932
- auth?: ({
2933
- type: "Bearer";
2934
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2935
- } | {
2936
- type: "Basic";
2937
- username: string | (() => string | undefined) | undefined;
2938
- password: string | (() => string | undefined) | undefined;
2939
- } | {
2940
- type: "Custom";
2941
- prefix: string | (() => string | undefined) | undefined;
2942
- value: string | (() => string | undefined) | undefined;
2943
- }) | undefined;
2944
- body?: (Partial<{
2945
- providerId: string;
2946
- accountId?: string | undefined;
2947
- userId?: string | undefined;
2948
- }> & Record<string, any>) | undefined;
2949
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2950
- params?: Record<string, any> | undefined;
2951
- duplex?: "full" | "half" | undefined;
2952
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2953
- retry?: import("better-auth/vue").RetryOptions | undefined;
2954
- retryAttempt?: number | undefined;
2955
- output?: (import("better-auth/vue").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2956
- errorSchema?: import("better-auth/vue").StandardSchemaV1 | undefined;
2957
- disableValidation?: boolean | undefined;
2958
- }>(data_0: import("better-auth").Prettify<{
2959
- providerId: string;
2960
- accountId?: string | undefined;
2961
- userId?: string | undefined;
2962
- } & {
2963
- fetchOptions?: FetchOptions | undefined;
2964
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/vue").BetterFetchResponse<import("better-auth").OAuth2Tokens, {
2965
- code?: string;
2966
- message?: string;
2967
- }, FetchOptions["throw"] extends true ? true : false>>;
2968
- } & {
2969
- signUp: {
2970
- email: <FetchOptions extends {
2971
- cache?: RequestCache | undefined;
2972
- credentials?: RequestCredentials | undefined;
2973
- headers?: (HeadersInit & (HeadersInit | {
2974
- accept: "application/json" | "text/plain" | "application/octet-stream";
2975
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2976
- authorization: "Bearer" | "Basic";
2977
- })) | undefined;
2978
- integrity?: string | undefined;
2979
- keepalive?: boolean | undefined;
2980
- method?: string | undefined;
2981
- mode?: RequestMode | undefined;
2982
- priority?: RequestPriority | undefined;
2983
- redirect?: RequestRedirect | undefined;
2984
- referrer?: string | undefined;
2985
- referrerPolicy?: ReferrerPolicy | undefined;
2986
- signal?: (AbortSignal | null) | undefined;
2987
- window?: null | undefined;
2988
- onRequest?: (<T extends Record<string, any>>(context: import("better-auth/vue").RequestContext<T>) => Promise<import("better-auth/vue").RequestContext | void> | import("better-auth/vue").RequestContext | void) | undefined;
2989
- onResponse?: ((context: import("better-auth/vue").ResponseContext) => Promise<Response | void | import("better-auth/vue").ResponseContext> | Response | import("better-auth/vue").ResponseContext | void) | undefined;
2990
- onSuccess?: ((context: import("better-auth/vue").SuccessContext<any>) => Promise<void> | void) | undefined;
2991
- onError?: ((context: import("better-auth/vue").ErrorContext) => Promise<void> | void) | undefined;
2992
- onRetry?: ((response: import("better-auth/vue").ResponseContext) => Promise<void> | void) | undefined;
2993
- hookOptions?: {
2994
- cloneResponse?: boolean;
2995
- } | undefined;
2996
- timeout?: number | undefined;
2997
- customFetchImpl?: import("better-auth/vue").FetchEsque | undefined;
2998
- plugins?: import("better-auth/vue").BetterFetchPlugin[] | undefined;
2999
- baseURL?: string | undefined;
3000
- throw?: boolean | undefined;
3001
- auth?: ({
3002
- type: "Bearer";
3003
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
3004
- } | {
3005
- type: "Basic";
3006
- username: string | (() => string | undefined) | undefined;
3007
- password: string | (() => string | undefined) | undefined;
3008
- } | {
3009
- type: "Custom";
3010
- prefix: string | (() => string | undefined) | undefined;
3011
- value: string | (() => string | undefined) | undefined;
3012
- }) | undefined;
3013
- body?: (Partial<{
3014
- name: string;
3015
- email: string;
3016
- password: string;
3017
- }> & Record<string, any>) | undefined;
3018
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
3019
- params?: Record<string, any> | undefined;
3020
- duplex?: "full" | "half" | undefined;
3021
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
3022
- retry?: import("better-auth/vue").RetryOptions | undefined;
3023
- retryAttempt?: number | undefined;
3024
- output?: (import("better-auth/vue").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
3025
- errorSchema?: import("better-auth/vue").StandardSchemaV1 | undefined;
3026
- disableValidation?: boolean | undefined;
3027
- }>(data_0: import("better-auth").Prettify<{
3028
- email: string;
3029
- name: string;
3030
- password: string;
3031
- image?: string;
3032
- callbackURL?: string;
3033
- fetchOptions?: FetchOptions | undefined;
3034
- } & {} & {} & {} & {
3035
- username?: string | null | undefined;
3036
- displayUsername?: string | null | undefined;
3037
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/vue").BetterFetchResponse<NonNullable<{
3038
- token: null;
3039
- user: {
3040
- id: string;
3041
- email: string;
3042
- name: string;
3043
- image: string | null | undefined;
3044
- emailVerified: boolean;
3045
- createdAt: Date;
3046
- updatedAt: Date;
3047
- };
3048
- } | {
3049
- token: string;
3050
- user: {
3051
- id: string;
3052
- email: string;
3053
- name: string;
3054
- image: string | null | undefined;
3055
- emailVerified: boolean;
3056
- createdAt: Date;
3057
- updatedAt: Date;
3058
- };
3059
- }>, {
3060
- code?: string;
3061
- message?: string;
3062
- }, FetchOptions["throw"] extends true ? true : false>>;
3063
- };
3064
- } & {
3065
- updateUser: <FetchOptions extends {
3066
- cache?: RequestCache | undefined;
3067
- credentials?: RequestCredentials | undefined;
3068
- headers?: (HeadersInit & (HeadersInit | {
3069
- accept: "application/json" | "text/plain" | "application/octet-stream";
3070
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
3071
- authorization: "Bearer" | "Basic";
3072
- })) | undefined;
3073
- integrity?: string | undefined;
3074
- keepalive?: boolean | undefined;
3075
- method?: string | undefined;
3076
- mode?: RequestMode | undefined;
3077
- priority?: RequestPriority | undefined;
3078
- redirect?: RequestRedirect | undefined;
3079
- referrer?: string | undefined;
3080
- referrerPolicy?: ReferrerPolicy | undefined;
3081
- signal?: (AbortSignal | null) | undefined;
3082
- window?: null | undefined;
3083
- onRequest?: (<T extends Record<string, any>>(context: import("better-auth/vue").RequestContext<T>) => Promise<import("better-auth/vue").RequestContext | void> | import("better-auth/vue").RequestContext | void) | undefined;
3084
- onResponse?: ((context: import("better-auth/vue").ResponseContext) => Promise<Response | void | import("better-auth/vue").ResponseContext> | Response | import("better-auth/vue").ResponseContext | void) | undefined;
3085
- onSuccess?: ((context: import("better-auth/vue").SuccessContext<any>) => Promise<void> | void) | undefined;
3086
- onError?: ((context: import("better-auth/vue").ErrorContext) => Promise<void> | void) | undefined;
3087
- onRetry?: ((response: import("better-auth/vue").ResponseContext) => Promise<void> | void) | undefined;
3088
- hookOptions?: {
3089
- cloneResponse?: boolean;
3090
- } | undefined;
3091
- timeout?: number | undefined;
3092
- customFetchImpl?: import("better-auth/vue").FetchEsque | undefined;
3093
- plugins?: import("better-auth/vue").BetterFetchPlugin[] | undefined;
3094
- baseURL?: string | undefined;
3095
- throw?: boolean | undefined;
3096
- auth?: ({
3097
- type: "Bearer";
3098
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
3099
- } | {
3100
- type: "Basic";
3101
- username: string | (() => string | undefined) | undefined;
3102
- password: string | (() => string | undefined) | undefined;
3103
- } | {
3104
- type: "Custom";
3105
- prefix: string | (() => string | undefined) | undefined;
3106
- value: string | (() => string | undefined) | undefined;
3107
- }) | undefined;
3108
- body?: (Partial<Partial<import("better-auth").Prettify<{
3109
- name?: string;
3110
- image?: string | null;
3111
- }>>> & Record<string, any>) | undefined;
3112
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
3113
- params?: Record<string, any> | undefined;
3114
- duplex?: "full" | "half" | undefined;
3115
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
3116
- retry?: import("better-auth/vue").RetryOptions | undefined;
3117
- retryAttempt?: number | undefined;
3118
- output?: (import("better-auth/vue").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
3119
- errorSchema?: import("better-auth/vue").StandardSchemaV1 | undefined;
3120
- disableValidation?: boolean | undefined;
3121
- }>(data_0?: import("better-auth").Prettify<{
3122
- image?: string | null;
3123
- name?: string;
3124
- fetchOptions?: FetchOptions | undefined;
3125
- } & Partial<{} & {} & {} & {
3126
- username?: string | null | undefined;
3127
- displayUsername?: string | null | undefined;
3128
- }>> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/vue").BetterFetchResponse<{
3129
- status: boolean;
3130
- }, {
3131
- code?: string;
3132
- message?: string;
3133
- }, FetchOptions["throw"] extends true ? true : false>>;
3134
- } & {
3135
- listSessions: <FetchOptions extends {
3136
- cache?: RequestCache | undefined;
3137
- credentials?: RequestCredentials | undefined;
3138
- headers?: (HeadersInit & (HeadersInit | {
3139
- accept: "application/json" | "text/plain" | "application/octet-stream";
3140
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
3141
- authorization: "Bearer" | "Basic";
3142
- })) | undefined;
3143
- integrity?: string | undefined;
3144
- keepalive?: boolean | undefined;
3145
- method?: string | undefined;
3146
- mode?: RequestMode | undefined;
3147
- priority?: RequestPriority | undefined;
3148
- redirect?: RequestRedirect | undefined;
3149
- referrer?: string | undefined;
3150
- referrerPolicy?: ReferrerPolicy | undefined;
3151
- signal?: (AbortSignal | null) | undefined;
3152
- window?: null | undefined;
3153
- onRequest?: (<T extends Record<string, any>>(context: import("better-auth/vue").RequestContext<T>) => Promise<import("better-auth/vue").RequestContext | void> | import("better-auth/vue").RequestContext | void) | undefined;
3154
- onResponse?: ((context: import("better-auth/vue").ResponseContext) => Promise<Response | void | import("better-auth/vue").ResponseContext> | Response | import("better-auth/vue").ResponseContext | void) | undefined;
3155
- onSuccess?: ((context: import("better-auth/vue").SuccessContext<any>) => Promise<void> | void) | undefined;
3156
- onError?: ((context: import("better-auth/vue").ErrorContext) => Promise<void> | void) | undefined;
3157
- onRetry?: ((response: import("better-auth/vue").ResponseContext) => Promise<void> | void) | undefined;
3158
- hookOptions?: {
3159
- cloneResponse?: boolean;
3160
- } | undefined;
3161
- timeout?: number | undefined;
3162
- customFetchImpl?: import("better-auth/vue").FetchEsque | undefined;
3163
- plugins?: import("better-auth/vue").BetterFetchPlugin[] | undefined;
3164
- baseURL?: string | undefined;
3165
- throw?: boolean | undefined;
3166
- auth?: ({
3167
- type: "Bearer";
3168
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
3169
- } | {
3170
- type: "Basic";
3171
- username: string | (() => string | undefined) | undefined;
3172
- password: string | (() => string | undefined) | undefined;
3173
- } | {
3174
- type: "Custom";
3175
- prefix: string | (() => string | undefined) | undefined;
3176
- value: string | (() => string | undefined) | undefined;
3177
- }) | undefined;
3178
- body?: undefined;
3179
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
3180
- params?: Record<string, any> | undefined;
3181
- duplex?: "full" | "half" | undefined;
3182
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
3183
- retry?: import("better-auth/vue").RetryOptions | undefined;
3184
- retryAttempt?: number | undefined;
3185
- output?: (import("better-auth/vue").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
3186
- errorSchema?: import("better-auth/vue").StandardSchemaV1 | undefined;
3187
- disableValidation?: boolean | undefined;
3188
- }>(data_0?: import("better-auth").Prettify<{
3189
- query?: Record<string, any> | undefined;
3190
- fetchOptions?: FetchOptions | undefined;
3191
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/vue").BetterFetchResponse<import("better-auth").Prettify<{
3192
- id: string;
3193
- createdAt: Date;
3194
- updatedAt: Date;
3195
- userId: string;
3196
- expiresAt: Date;
3197
- token: string;
3198
- ipAddress?: string | null | undefined | undefined;
3199
- userAgent?: string | null | undefined | undefined;
3200
- }>[], {
3201
- code?: string;
3202
- message?: string;
3203
- }, FetchOptions["throw"] extends true ? true : false>>;
3204
- } & {
3205
- admin: {
3206
- checkRolePermission: <R extends "user" | "admin">(data: ({
3207
- permission: {
3208
- readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "delete" | "set-password")[] | undefined;
3209
- readonly session?: ("list" | "delete" | "revoke")[] | undefined;
3210
- };
3211
- permissions?: never;
3212
- } | {
3213
- permissions: {
3214
- readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "delete" | "set-password")[] | undefined;
3215
- readonly session?: ("list" | "delete" | "revoke")[] | undefined;
3216
- };
3217
- permission?: never;
3218
- }) & {
3219
- role: R;
3220
- }) => boolean;
3221
- };
3222
- } & {
3223
- useSession: {
3224
- (): Readonly<import("vue").Ref<{
3225
- readonly data: {
3226
- readonly user: {
3227
- readonly id: string;
3228
- readonly name: string;
3229
- readonly email: string;
3230
- readonly emailVerified: boolean;
3231
- readonly createdAt: Date;
3232
- readonly updatedAt: Date;
3233
- readonly image?: string | null | undefined | undefined;
3234
- readonly banned: boolean | null | undefined;
3235
- readonly role?: string | null | undefined;
3236
- readonly banReason?: string | null | undefined;
3237
- readonly banExpires?: Date | null | undefined;
3238
- readonly username?: string | null | undefined;
3239
- readonly displayUsername?: string | null | undefined;
3240
- };
3241
- readonly session: {
3242
- readonly id: string;
3243
- readonly createdAt: Date;
3244
- readonly updatedAt: Date;
3245
- readonly userId: string;
3246
- readonly expiresAt: Date;
3247
- readonly token: string;
3248
- readonly ipAddress?: string | null | undefined | undefined;
3249
- readonly userAgent?: string | null | undefined | undefined;
3250
- readonly impersonatedBy?: string | null | undefined;
3251
- };
3252
- } | null;
3253
- readonly isPending: boolean;
3254
- readonly isRefetching: boolean;
3255
- readonly error: import("better-auth/vue").BetterFetchError | null;
3256
- }, {
3257
- readonly data: {
3258
- readonly user: {
3259
- readonly id: string;
3260
- readonly name: string;
3261
- readonly email: string;
3262
- readonly emailVerified: boolean;
3263
- readonly createdAt: Date;
3264
- readonly updatedAt: Date;
3265
- readonly image?: string | null | undefined | undefined;
3266
- readonly banned: boolean | null | undefined;
3267
- readonly role?: string | null | undefined;
3268
- readonly banReason?: string | null | undefined;
3269
- readonly banExpires?: Date | null | undefined;
3270
- readonly username?: string | null | undefined;
3271
- readonly displayUsername?: string | null | undefined;
3272
- };
3273
- readonly session: {
3274
- readonly id: string;
3275
- readonly createdAt: Date;
3276
- readonly updatedAt: Date;
3277
- readonly userId: string;
3278
- readonly expiresAt: Date;
3279
- readonly token: string;
3280
- readonly ipAddress?: string | null | undefined | undefined;
3281
- readonly userAgent?: string | null | undefined | undefined;
3282
- readonly impersonatedBy?: string | null | undefined;
3283
- };
3284
- } | null;
3285
- readonly isPending: boolean;
3286
- readonly isRefetching: boolean;
3287
- readonly error: import("better-auth/vue").BetterFetchError | null;
3288
- }>>;
3289
- <F extends (...args: any) => any>(useFetch: F): Promise<{
3290
- data: import("vue").Ref<{
3291
- user: {
3292
- id: string;
3293
- name: string;
3294
- email: string;
3295
- emailVerified: boolean;
3296
- createdAt: Date;
3297
- updatedAt: Date;
3298
- image?: string | null | undefined | undefined;
3299
- banned: boolean | null | undefined;
3300
- role?: string | null | undefined;
3301
- banReason?: string | null | undefined;
3302
- banExpires?: Date | null | undefined;
3303
- username?: string | null | undefined;
3304
- displayUsername?: string | null | undefined;
3305
- };
3306
- session: {
3307
- id: string;
3308
- createdAt: Date;
3309
- updatedAt: Date;
3310
- userId: string;
3311
- expiresAt: Date;
3312
- token: string;
3313
- ipAddress?: string | null | undefined | undefined;
3314
- userAgent?: string | null | undefined | undefined;
3315
- impersonatedBy?: string | null | undefined;
3316
- };
3317
- } | null, {
3318
- user: {
3319
- id: string;
3320
- name: string;
3321
- email: string;
3322
- emailVerified: boolean;
3323
- createdAt: Date;
3324
- updatedAt: Date;
3325
- image?: string | null | undefined | undefined;
3326
- banned: boolean | null | undefined;
3327
- role?: string | null | undefined;
3328
- banReason?: string | null | undefined;
3329
- banExpires?: Date | null | undefined;
3330
- username?: string | null | undefined;
3331
- displayUsername?: string | null | undefined;
3332
- };
3333
- session: {
3334
- id: string;
3335
- createdAt: Date;
3336
- updatedAt: Date;
3337
- userId: string;
3338
- expiresAt: Date;
3339
- token: string;
3340
- ipAddress?: string | null | undefined | undefined;
3341
- userAgent?: string | null | undefined | undefined;
3342
- impersonatedBy?: string | null | undefined;
3343
- };
3344
- } | null>;
3345
- isPending: false;
3346
- error: import("vue").Ref<{
3347
- message?: string;
3348
- status: number;
3349
- statusText: string;
3350
- }>;
3351
- }>;
3352
- };
3353
- $Infer: {
3354
- Session: {
3355
- user: {
3356
- id: string;
3357
- name: string;
3358
- email: string;
3359
- emailVerified: boolean;
3360
- createdAt: Date;
3361
- updatedAt: Date;
3362
- image?: string | null | undefined | undefined;
3363
- banned: boolean | null | undefined;
3364
- role?: string | null | undefined;
3365
- banReason?: string | null | undefined;
3366
- banExpires?: Date | null | undefined;
3367
- username?: string | null | undefined;
3368
- displayUsername?: string | null | undefined;
3369
- };
3370
- session: {
3371
- id: string;
3372
- createdAt: Date;
3373
- updatedAt: Date;
3374
- userId: string;
3375
- expiresAt: Date;
3376
- token: string;
3377
- ipAddress?: string | null | undefined | undefined;
3378
- userAgent?: string | null | undefined | undefined;
3379
- impersonatedBy?: string | null | undefined;
3380
- };
3381
- };
3382
- };
3383
- $fetch: import("better-auth/vue").BetterFetch<{
3384
- plugins: (import("better-auth/vue").BetterFetchPlugin | {
3385
- id: string;
3386
- name: string;
3387
- hooks: {
3388
- onSuccess(context: import("better-auth/vue").SuccessContext<any>): void;
3389
- };
3390
- })[];
3391
- cache?: RequestCache;
3392
- credentials?: RequestCredentials;
3393
- headers?: (HeadersInit & (HeadersInit | {
3394
- accept: "application/json" | "text/plain" | "application/octet-stream";
3395
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
3396
- authorization: "Bearer" | "Basic";
3397
- })) | undefined;
3398
- integrity?: string;
3399
- keepalive?: boolean;
3400
- method: string;
3401
- mode?: RequestMode;
3402
- priority?: RequestPriority;
3403
- redirect?: RequestRedirect;
3404
- referrer?: string;
3405
- referrerPolicy?: ReferrerPolicy;
3406
- signal?: AbortSignal | null;
3407
- window?: null;
3408
- onRequest?: <T extends Record<string, any>>(context: import("better-auth/vue").RequestContext<T>) => Promise<import("better-auth/vue").RequestContext | void> | import("better-auth/vue").RequestContext | void;
3409
- onResponse?: (context: import("better-auth/vue").ResponseContext) => Promise<Response | void | import("better-auth/vue").ResponseContext> | Response | import("better-auth/vue").ResponseContext | void;
3410
- onSuccess?: ((context: import("better-auth/vue").SuccessContext<any>) => Promise<void> | void) | undefined;
3411
- onError?: (context: import("better-auth/vue").ErrorContext) => Promise<void> | void;
3412
- onRetry?: (response: import("better-auth/vue").ResponseContext) => Promise<void> | void;
3413
- hookOptions?: {
3414
- cloneResponse?: boolean;
3415
- };
3416
- timeout?: number;
3417
- customFetchImpl: import("better-auth/vue").FetchEsque;
3418
- baseURL: string;
3419
- throw?: boolean;
3420
- auth?: {
3421
- type: "Bearer";
3422
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
3423
- } | {
3424
- type: "Basic";
3425
- username: string | (() => string | undefined) | undefined;
3426
- password: string | (() => string | undefined) | undefined;
3427
- } | {
3428
- type: "Custom";
3429
- prefix: string | (() => string | undefined) | undefined;
3430
- value: string | (() => string | undefined) | undefined;
3431
- };
3432
- body?: any;
3433
- query?: any;
3434
- params?: any;
3435
- duplex?: "full" | "half";
3436
- jsonParser: (text: string) => Promise<any> | any;
3437
- retry?: import("better-auth/vue").RetryOptions;
3438
- retryAttempt?: number;
3439
- output?: import("better-auth/vue").StandardSchemaV1 | typeof Blob | typeof File;
3440
- errorSchema?: import("better-auth/vue").StandardSchemaV1;
3441
- disableValidation?: boolean;
3442
- }, unknown, unknown, {}>;
3443
- $store: {
3444
- notify: (signal?: Omit<string, "$sessionSignal"> | "$sessionSignal") => void;
3445
- listen: (signal: Omit<string, "$sessionSignal"> | "$sessionSignal", listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
3446
- atoms: Record<string, import("better-auth/vue").WritableAtom<any>>;
3447
- };
3448
- $ERROR_CODES: {
3449
- FAILED_TO_CREATE_USER: "Failed to create user";
3450
- USER_ALREADY_EXISTS: "User already exists";
3451
- readonly YOU_CANNOT_BAN_YOURSELF: "You cannot ban yourself";
3452
- readonly YOU_ARE_NOT_ALLOWED_TO_CHANGE_USERS_ROLE: "You are not allowed to change users role";
3453
- readonly YOU_ARE_NOT_ALLOWED_TO_CREATE_USERS: "You are not allowed to create users";
3454
- readonly YOU_ARE_NOT_ALLOWED_TO_LIST_USERS: "You are not allowed to list users";
3455
- readonly YOU_ARE_NOT_ALLOWED_TO_LIST_USERS_SESSIONS: "You are not allowed to list users sessions";
3456
- readonly YOU_ARE_NOT_ALLOWED_TO_BAN_USERS: "You are not allowed to ban users";
3457
- readonly YOU_ARE_NOT_ALLOWED_TO_IMPERSONATE_USERS: "You are not allowed to impersonate users";
3458
- readonly YOU_ARE_NOT_ALLOWED_TO_REVOKE_USERS_SESSIONS: "You are not allowed to revoke users sessions";
3459
- readonly YOU_ARE_NOT_ALLOWED_TO_DELETE_USERS: "You are not allowed to delete users";
3460
- readonly YOU_ARE_NOT_ALLOWED_TO_SET_USERS_PASSWORD: "You are not allowed to set users password";
3461
- readonly BANNED_USER: "You have been banned from this application";
3462
- INVALID_USERNAME_OR_PASSWORD: string;
3463
- EMAIL_NOT_VERIFIED: string;
3464
- UNEXPECTED_ERROR: string;
3465
- USERNAME_IS_ALREADY_TAKEN: string;
3466
- USERNAME_TOO_SHORT: string;
3467
- USERNAME_TOO_LONG: string;
3468
- INVALID_USERNAME: string;
3469
- USER_NOT_FOUND: string;
3470
- FAILED_TO_CREATE_SESSION: string;
3471
- FAILED_TO_UPDATE_USER: string;
3472
- FAILED_TO_GET_SESSION: string;
3473
- INVALID_PASSWORD: string;
3474
- INVALID_EMAIL: string;
3475
- INVALID_EMAIL_OR_PASSWORD: string;
3476
- SOCIAL_ACCOUNT_ALREADY_LINKED: string;
3477
- PROVIDER_NOT_FOUND: string;
3478
- INVALID_TOKEN: string;
3479
- ID_TOKEN_NOT_SUPPORTED: string;
3480
- FAILED_TO_GET_USER_INFO: string;
3481
- USER_EMAIL_NOT_FOUND: string;
3482
- PASSWORD_TOO_SHORT: string;
3483
- PASSWORD_TOO_LONG: string;
3484
- EMAIL_CAN_NOT_BE_UPDATED: string;
3485
- CREDENTIAL_ACCOUNT_NOT_FOUND: string;
3486
- SESSION_EXPIRED: string;
3487
- FAILED_TO_UNLINK_LAST_ACCOUNT: string;
3488
- ACCOUNT_NOT_FOUND: string;
3489
- };
3490
- };
3491
- signOut: ({ redirectTo }?: AuthSignOutOptions) => Promise<void>;
3492
- };