@1sat/connect 0.0.67 → 0.0.69

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.
@@ -32,647 +32,10 @@ type SigmaAugmentedClient = {
32
32
  };
33
33
  };
34
34
  declare const baseAuthClient: {
35
- signIn: {
36
- social: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
37
- provider: (string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat";
38
- callbackURL?: string | undefined;
39
- newUserCallbackURL?: string | undefined;
40
- errorCallbackURL?: string | undefined;
41
- disableRedirect?: boolean | undefined;
42
- idToken?: {
43
- token: string;
44
- nonce?: string | undefined;
45
- accessToken?: string | undefined;
46
- refreshToken?: string | undefined;
47
- expiresAt?: number | undefined;
48
- user?: {
49
- name?: {
50
- firstName?: string | undefined;
51
- lastName?: string | undefined;
52
- } | undefined;
53
- email?: string | undefined;
54
- } | undefined;
55
- } | undefined;
56
- scopes?: string[] | undefined;
57
- requestSignUp?: boolean | undefined;
58
- loginHint?: string | undefined;
59
- additionalData?: Record<string, any> | undefined;
60
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
61
- provider: (string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat";
62
- callbackURL?: string | undefined;
63
- newUserCallbackURL?: string | undefined;
64
- errorCallbackURL?: string | undefined;
65
- disableRedirect?: boolean | undefined;
66
- idToken?: {
67
- token: string;
68
- nonce?: string | undefined;
69
- accessToken?: string | undefined;
70
- refreshToken?: string | undefined;
71
- expiresAt?: number | undefined;
72
- user?: {
73
- name?: {
74
- firstName?: string | undefined;
75
- lastName?: string | undefined;
76
- } | undefined;
77
- email?: string | undefined;
78
- } | undefined;
79
- } | undefined;
80
- scopes?: string[] | undefined;
81
- requestSignUp?: boolean | undefined;
82
- loginHint?: string | undefined;
83
- additionalData?: Record<string, any> | undefined;
84
- } & {
85
- fetchOptions?: FetchOptions | undefined;
86
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
87
- redirect: boolean;
88
- url: string;
89
- } | (Omit<{
90
- redirect: boolean;
91
- token: string;
92
- url: undefined;
93
- user: {
94
- id: string;
95
- createdAt: Date;
96
- updatedAt: Date;
97
- email: string;
98
- emailVerified: boolean;
99
- name: string;
100
- image?: string | null | undefined | undefined;
101
- };
102
- }, "user"> & {
103
- user: import("better-auth").StripEmptyObjects<{
104
- id: string;
105
- createdAt: Date;
106
- updatedAt: Date;
107
- email: string;
108
- emailVerified: boolean;
109
- name: string;
110
- image?: string | null | undefined;
111
- }>;
112
- }), {
113
- code?: string | undefined;
114
- message?: string | undefined;
115
- }, FetchOptions["throw"] extends true ? true : false>>;
116
- };
117
- } & {
118
- signOut: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
119
- query?: Record<string, any> | undefined;
120
- fetchOptions?: FetchOptions | undefined;
121
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
122
- success: boolean;
123
- }, {
124
- code?: string | undefined;
125
- message?: string | undefined;
126
- }, FetchOptions["throw"] extends true ? true : false>>;
127
- } & {
128
- signUp: {
129
- email: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
130
- name: string;
131
- email: string;
132
- password: string;
133
- image?: string | undefined;
134
- callbackURL?: string | undefined;
135
- rememberMe?: boolean | undefined;
136
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
137
- email: string;
138
- name: string;
139
- password: string;
140
- image?: string | undefined;
141
- callbackURL?: string | undefined;
142
- fetchOptions?: FetchOptions | undefined;
143
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<(Omit<{
144
- token: null;
145
- user: {
146
- id: string;
147
- createdAt: Date;
148
- updatedAt: Date;
149
- email: string;
150
- emailVerified: boolean;
151
- name: string;
152
- image?: string | null | undefined | undefined;
153
- };
154
- }, "user"> & {
155
- user: import("better-auth").StripEmptyObjects<{
156
- id: string;
157
- createdAt: Date;
158
- updatedAt: Date;
159
- email: string;
160
- emailVerified: boolean;
161
- name: string;
162
- image?: string | null | undefined;
163
- }>;
164
- }) | (Omit<{
165
- token: string;
166
- user: {
167
- id: string;
168
- createdAt: Date;
169
- updatedAt: Date;
170
- email: string;
171
- emailVerified: boolean;
172
- name: string;
173
- image?: string | null | undefined | undefined;
174
- };
175
- }, "user"> & {
176
- user: import("better-auth").StripEmptyObjects<{
177
- id: string;
178
- createdAt: Date;
179
- updatedAt: Date;
180
- email: string;
181
- emailVerified: boolean;
182
- name: string;
183
- image?: string | null | undefined;
184
- }>;
185
- }), {
186
- code?: string | undefined;
187
- message?: string | undefined;
188
- }, FetchOptions["throw"] extends true ? true : false>>;
189
- };
190
- } & {
191
- signIn: {
192
- email: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
193
- email: string;
194
- password: string;
195
- callbackURL?: string | undefined;
196
- rememberMe?: boolean | undefined;
197
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
198
- email: string;
199
- password: string;
200
- callbackURL?: string | undefined;
201
- rememberMe?: boolean | undefined;
202
- } & {
203
- fetchOptions?: FetchOptions | undefined;
204
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<Omit<{
205
- redirect: boolean;
206
- token: string;
207
- url?: string | undefined;
208
- user: {
209
- id: string;
210
- createdAt: Date;
211
- updatedAt: Date;
212
- email: string;
213
- emailVerified: boolean;
214
- name: string;
215
- image?: string | null | undefined | undefined;
216
- };
217
- }, "user"> & {
218
- user: import("better-auth").StripEmptyObjects<{
219
- id: string;
220
- createdAt: Date;
221
- updatedAt: Date;
222
- email: string;
223
- emailVerified: boolean;
224
- name: string;
225
- image?: string | null | undefined;
226
- }>;
227
- }, {
228
- code?: string | undefined;
229
- message?: string | undefined;
230
- }, FetchOptions["throw"] extends true ? true : false>>;
231
- };
232
- } & {
233
- resetPassword: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
234
- newPassword: string;
235
- token?: string | undefined;
236
- }> & Record<string, any>, Partial<{
237
- token?: string | undefined;
238
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
239
- newPassword: string;
240
- token?: string | undefined;
241
- } & {
242
- fetchOptions?: FetchOptions | undefined;
243
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
244
- status: boolean;
245
- }, {
246
- code?: string | undefined;
247
- message?: string | undefined;
248
- }, FetchOptions["throw"] extends true ? true : false>>;
249
- } & {
250
- verifyEmail: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
251
- token: string;
252
- callbackURL?: string | undefined;
253
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
254
- query: {
255
- token: string;
256
- callbackURL?: string | undefined;
257
- };
258
- fetchOptions?: FetchOptions | undefined;
259
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<NonNullable<void | {
260
- status: boolean;
261
- }>, {
262
- code?: string | undefined;
263
- message?: string | undefined;
264
- }, FetchOptions["throw"] extends true ? true : false>>;
265
- } & {
266
- sendVerificationEmail: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
267
- email: string;
268
- callbackURL?: string | undefined;
269
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
270
- email: string;
271
- callbackURL?: string | undefined;
272
- } & {
273
- fetchOptions?: FetchOptions | undefined;
274
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
275
- status: boolean;
276
- }, {
277
- code?: string | undefined;
278
- message?: string | undefined;
279
- }, FetchOptions["throw"] extends true ? true : false>>;
280
- } & {
281
- changeEmail: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
282
- newEmail: string;
283
- callbackURL?: string | undefined;
284
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
285
- newEmail: string;
286
- callbackURL?: string | undefined;
287
- } & {
288
- fetchOptions?: FetchOptions | undefined;
289
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
290
- status: boolean;
291
- }, {
292
- code?: string | undefined;
293
- message?: string | undefined;
294
- }, FetchOptions["throw"] extends true ? true : false>>;
295
- } & {
296
- changePassword: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
297
- newPassword: string;
298
- currentPassword: string;
299
- revokeOtherSessions?: boolean | undefined;
300
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
301
- newPassword: string;
302
- currentPassword: string;
303
- revokeOtherSessions?: boolean | undefined;
304
- } & {
305
- fetchOptions?: FetchOptions | undefined;
306
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<Omit<{
307
- token: string | null;
308
- user: {
309
- id: string;
310
- createdAt: Date;
311
- updatedAt: Date;
312
- email: string;
313
- emailVerified: boolean;
314
- name: string;
315
- image?: string | null | undefined;
316
- } & Record<string, any> & {
317
- id: string;
318
- createdAt: Date;
319
- updatedAt: Date;
320
- email: string;
321
- emailVerified: boolean;
322
- name: string;
323
- image?: string | null | undefined;
324
- };
325
- }, "user"> & {
326
- user: import("better-auth").StripEmptyObjects<{
327
- id: string;
328
- createdAt: Date;
329
- updatedAt: Date;
330
- email: string;
331
- emailVerified: boolean;
332
- name: string;
333
- image?: string | null | undefined;
334
- }>;
335
- }, {
336
- code?: string | undefined;
337
- message?: string | undefined;
338
- }, FetchOptions["throw"] extends true ? true : false>>;
339
- } & {
340
- updateSession: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<Partial<{}>> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<Partial<{}> & {
341
- fetchOptions?: FetchOptions | undefined;
342
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
343
- session: {
344
- id: string;
345
- createdAt: Date;
346
- updatedAt: Date;
347
- userId: string;
348
- expiresAt: Date;
349
- token: string;
350
- ipAddress?: string | null | undefined;
351
- userAgent?: string | null | undefined;
352
- };
353
- }, {
354
- code?: string | undefined;
355
- message?: string | undefined;
356
- }, FetchOptions["throw"] extends true ? true : false>>;
357
- } & {
358
- updateUser: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<Partial<{}> & {
359
- name?: string | undefined;
360
- image?: string | undefined | null;
361
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<import("better-auth/client").InferUserUpdateCtx<{
362
- baseURL: string;
363
- plugins: import("better-auth").BetterAuthClientPlugin[];
364
- }, FetchOptions>> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
365
- status: boolean;
366
- }, {
367
- code?: string | undefined;
368
- message?: string | undefined;
369
- }, FetchOptions["throw"] extends true ? true : false>>;
370
- } & {
371
- deleteUser: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
372
- callbackURL?: string | undefined;
373
- password?: string | undefined;
374
- token?: string | undefined;
375
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
376
- callbackURL?: string | undefined;
377
- password?: string | undefined;
378
- token?: string | undefined;
379
- } & {
380
- fetchOptions?: FetchOptions | undefined;
381
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
382
- success: boolean;
383
- message: string;
384
- }, {
385
- code?: string | undefined;
386
- message?: string | undefined;
387
- }, FetchOptions["throw"] extends true ? true : false>>;
388
- } & {
389
- requestPasswordReset: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
390
- email: string;
391
- redirectTo?: string | undefined;
392
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
393
- email: string;
394
- redirectTo?: string | undefined;
395
- } & {
396
- fetchOptions?: FetchOptions | undefined;
397
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
398
- status: boolean;
399
- message: string;
400
- }, {
401
- code?: string | undefined;
402
- message?: string | undefined;
403
- }, FetchOptions["throw"] extends true ? true : false>>;
404
- } & {
405
- resetPassword: {
406
- ":token": <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
407
- callbackURL: string;
408
- }> & Record<string, any>, {
409
- token: string;
410
- }>>(data_0: import("better-auth").Prettify<{
411
- query: {
412
- callbackURL: string;
413
- };
414
- fetchOptions?: FetchOptions | undefined;
415
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<never, {
416
- code?: string | undefined;
417
- message?: string | undefined;
418
- }, FetchOptions["throw"] extends true ? true : false>>;
419
- };
420
- } & {
421
- listSessions: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
422
- query?: Record<string, any> | undefined;
423
- fetchOptions?: FetchOptions | undefined;
424
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<import("better-auth").Prettify<{
425
- id: string;
426
- createdAt: Date;
427
- updatedAt: Date;
428
- userId: string;
429
- expiresAt: Date;
430
- token: string;
431
- ipAddress?: string | null | undefined | undefined;
432
- userAgent?: string | null | undefined | undefined;
433
- }>[], {
434
- code?: string | undefined;
435
- message?: string | undefined;
436
- }, FetchOptions["throw"] extends true ? true : false>>;
437
- } & {
438
- revokeSession: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
439
- token: string;
440
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
441
- token: string;
442
- } & {
443
- fetchOptions?: FetchOptions | undefined;
444
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
445
- status: boolean;
446
- }, {
447
- code?: string | undefined;
448
- message?: string | undefined;
449
- }, FetchOptions["throw"] extends true ? true : false>>;
450
- } & {
451
- revokeSessions: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
452
- query?: Record<string, any> | undefined;
453
- fetchOptions?: FetchOptions | undefined;
454
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
455
- status: boolean;
456
- }, {
457
- code?: string | undefined;
458
- message?: string | undefined;
459
- }, FetchOptions["throw"] extends true ? true : false>>;
460
- } & {
461
- revokeOtherSessions: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
462
- query?: Record<string, any> | undefined;
463
- fetchOptions?: FetchOptions | undefined;
464
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
465
- status: boolean;
466
- }, {
467
- code?: string | undefined;
468
- message?: string | undefined;
469
- }, FetchOptions["throw"] extends true ? true : false>>;
470
- } & {
471
- linkSocial: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
472
- provider: unknown;
473
- callbackURL?: string | undefined;
474
- idToken?: {
475
- token: string;
476
- nonce?: string | undefined;
477
- accessToken?: string | undefined;
478
- refreshToken?: string | undefined;
479
- scopes?: string[] | undefined;
480
- } | undefined;
481
- requestSignUp?: boolean | undefined;
482
- scopes?: string[] | undefined;
483
- errorCallbackURL?: string | undefined;
484
- disableRedirect?: boolean | undefined;
485
- additionalData?: Record<string, any> | undefined;
486
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
487
- provider: unknown;
488
- callbackURL?: string | undefined;
489
- idToken?: {
490
- token: string;
491
- nonce?: string | undefined;
492
- accessToken?: string | undefined;
493
- refreshToken?: string | undefined;
494
- scopes?: string[] | undefined;
495
- } | undefined;
496
- requestSignUp?: boolean | undefined;
497
- scopes?: string[] | undefined;
498
- errorCallbackURL?: string | undefined;
499
- disableRedirect?: boolean | undefined;
500
- additionalData?: Record<string, any> | undefined;
501
- } & {
502
- fetchOptions?: FetchOptions | undefined;
503
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
504
- url: string;
505
- redirect: boolean;
506
- }, {
507
- code?: string | undefined;
508
- message?: string | undefined;
509
- }, FetchOptions["throw"] extends true ? true : false>>;
510
- } & {
511
- listAccounts: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
512
- query?: Record<string, any> | undefined;
513
- fetchOptions?: FetchOptions | undefined;
514
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
515
- scopes: string[];
516
- id: string;
517
- createdAt: Date;
518
- updatedAt: Date;
519
- userId: string;
520
- providerId: string;
521
- accountId: string;
522
- }[], {
523
- code?: string | undefined;
524
- message?: string | undefined;
525
- }, FetchOptions["throw"] extends true ? true : false>>;
526
- } & {
527
- deleteUser: {
528
- callback: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
529
- token: string;
530
- callbackURL?: string | undefined;
531
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
532
- query: {
533
- token: string;
534
- callbackURL?: string | undefined;
535
- };
536
- fetchOptions?: FetchOptions | undefined;
537
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
538
- success: boolean;
539
- message: string;
540
- }, {
541
- code?: string | undefined;
542
- message?: string | undefined;
543
- }, FetchOptions["throw"] extends true ? true : false>>;
544
- };
545
- } & {
546
- unlinkAccount: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
547
- providerId: string;
548
- accountId?: string | undefined;
549
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
550
- providerId: string;
551
- accountId?: string | undefined;
552
- } & {
553
- fetchOptions?: FetchOptions | undefined;
554
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
555
- status: boolean;
556
- }, {
557
- code?: string | undefined;
558
- message?: string | undefined;
559
- }, FetchOptions["throw"] extends true ? true : false>>;
560
- } & {
561
- refreshToken: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
562
- providerId: string;
563
- accountId?: string | undefined;
564
- userId?: string | undefined;
565
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
566
- providerId: string;
567
- accountId?: string | undefined;
568
- userId?: string | undefined;
569
- } & {
570
- fetchOptions?: FetchOptions | undefined;
571
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
572
- accessToken: string | undefined;
573
- refreshToken: string;
574
- accessTokenExpiresAt: Date | undefined;
575
- refreshTokenExpiresAt: Date | null | undefined;
576
- scope: string | null | undefined;
577
- idToken: string | null | undefined;
578
- providerId: string;
579
- accountId: string;
580
- }, {
581
- code?: string | undefined;
582
- message?: string | undefined;
583
- }, FetchOptions["throw"] extends true ? true : false>>;
584
- } & {
585
- getAccessToken: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
586
- providerId: string;
587
- accountId?: string | undefined;
588
- userId?: string | undefined;
589
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
590
- providerId: string;
591
- accountId?: string | undefined;
592
- userId?: string | undefined;
593
- } & {
594
- fetchOptions?: FetchOptions | undefined;
595
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
596
- accessToken: string;
597
- accessTokenExpiresAt: Date | undefined;
598
- scopes: string[];
599
- idToken: string | undefined;
600
- }, {
601
- code?: string | undefined;
602
- message?: string | undefined;
603
- }, FetchOptions["throw"] extends true ? true : false>>;
604
- } & {
605
- accountInfo: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
606
- accountId?: string | undefined;
607
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
608
- query?: {
609
- accountId?: string | undefined;
610
- } | undefined;
611
- fetchOptions?: FetchOptions | undefined;
612
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
613
- user: import("better-auth").OAuth2UserInfo;
614
- data: Record<string, any>;
615
- }, {
616
- code?: string | undefined;
617
- message?: string | undefined;
618
- }, FetchOptions["throw"] extends true ? true : false>>;
619
- } & {
620
- getSession: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
621
- disableCookieCache?: unknown;
622
- disableRefresh?: unknown;
623
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
624
- query?: {
625
- disableCookieCache?: unknown;
626
- disableRefresh?: unknown;
627
- } | undefined;
628
- fetchOptions?: FetchOptions | undefined;
629
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
630
- user: import("better-auth").StripEmptyObjects<{
631
- id: string;
632
- createdAt: Date;
633
- updatedAt: Date;
634
- email: string;
635
- emailVerified: boolean;
636
- name: string;
637
- image?: string | null | undefined;
638
- }>;
639
- session: import("better-auth").StripEmptyObjects<{
640
- id: string;
641
- createdAt: Date;
642
- updatedAt: Date;
643
- userId: string;
644
- expiresAt: Date;
645
- token: string;
646
- ipAddress?: string | null | undefined;
647
- userAgent?: string | null | undefined;
648
- }>;
649
- } | null, {
650
- code?: string | undefined;
651
- message?: string | undefined;
652
- }, FetchOptions["throw"] extends true ? true : false>>;
653
- } & {
35
+ [x: `use${Capitalize<string>}`]: import("better-auth/client").Atom<any>;
36
+ } & Record<string, any> & {
654
37
  useSession: import("better-auth/client").Atom<{
655
- data: {
656
- user: import("better-auth").StripEmptyObjects<{
657
- id: string;
658
- createdAt: Date;
659
- updatedAt: Date;
660
- email: string;
661
- emailVerified: boolean;
662
- name: string;
663
- image?: string | null | undefined;
664
- }>;
665
- session: import("better-auth").StripEmptyObjects<{
666
- id: string;
667
- createdAt: Date;
668
- updatedAt: Date;
669
- userId: string;
670
- expiresAt: Date;
671
- token: string;
672
- ipAddress?: string | null | undefined;
673
- userAgent?: string | null | undefined;
674
- }>;
675
- } | null;
38
+ data: never;
676
39
  error: import("better-auth/client").BetterFetchError | null;
677
40
  isPending: boolean;
678
41
  isRefetching: boolean;
@@ -700,11 +63,6 @@ declare const baseAuthClient: {
700
63
  priority?: RequestPriority | undefined;
701
64
  cache?: RequestCache | undefined;
702
65
  credentials?: RequestCredentials;
703
- headers?: (HeadersInit & (HeadersInit | {
704
- accept: "application/json" | "text/plain" | "application/octet-stream";
705
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
706
- authorization: "Bearer" | "Basic";
707
- })) | undefined;
708
66
  integrity?: string | undefined;
709
67
  keepalive?: boolean | undefined;
710
68
  method: string;
@@ -734,6 +92,12 @@ declare const baseAuthClient: {
734
92
  prefix: string | (() => string | undefined) | undefined;
735
93
  value: string | (() => string | undefined) | undefined;
736
94
  }) | undefined;
95
+ headers?: {} | {
96
+ [x: string]: string | undefined;
97
+ accept?: ((string & {}) | "application/json" | "text/plain" | "application/octet-stream") | undefined;
98
+ "content-type"?: ((string & {}) | "application/x-www-form-urlencoded" | "application/json" | "text/plain" | "application/octet-stream" | "multipart/form-data") | undefined;
99
+ authorization?: ((string & {}) | `Bearer ${string}` | `Basic ${string}`) | undefined;
100
+ } | undefined;
737
101
  body?: any;
738
102
  query?: any;
739
103
  params?: any;
@@ -752,29 +116,13 @@ declare const baseAuthClient: {
752
116
  atoms: Record<string, import("better-auth/client").WritableAtom<any>>;
753
117
  };
754
118
  $Infer: {
755
- Session: {
756
- user: import("better-auth").StripEmptyObjects<{
757
- id: string;
758
- createdAt: Date;
759
- updatedAt: Date;
760
- email: string;
761
- emailVerified: boolean;
762
- name: string;
763
- image?: string | null | undefined;
764
- }>;
765
- session: import("better-auth").StripEmptyObjects<{
766
- id: string;
767
- createdAt: Date;
768
- updatedAt: Date;
769
- userId: string;
770
- expiresAt: Date;
771
- token: string;
772
- ipAddress?: string | null | undefined;
773
- userAgent?: string | null | undefined;
774
- }>;
775
- };
119
+ Session: never;
776
120
  };
777
121
  $ERROR_CODES: {
122
+ [x: string]: {
123
+ readonly code: string;
124
+ message: string;
125
+ };
778
126
  USER_NOT_FOUND: {
779
127
  readonly code: "USER_NOT_FOUND";
780
128
  message: string;