@pelatform/starter 0.1.5 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-2ZAZ77F6.js +234 -0
- package/dist/extend.d.ts +31 -34
- package/dist/extend.js +1 -1
- package/dist/index.d.ts +250 -243
- package/dist/index.js +749 -425
- package/dist/server.js +1 -3
- package/dist/style.css +1 -1
- package/dist/{ui-DhgTAR3u.d.ts → ui-DxCTGGLe.d.ts} +615 -479
- package/package.json +51 -41
- package/LICENSE +0 -21
- package/dist/chunk-ZWKHMRY6.js +0 -531
- package/dist/metafile-esm.json +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,24 +1,21 @@
|
|
|
1
|
-
import { C as Config,
|
|
1
|
+
import { C as Config, g as AuthClient, A as AuthQueryOptions, e as AnyAuthClient, N as NonThrowableResult, T as ThrowableResult, B as BetterFetchRequest, E as Passkey, h as Session, i as User, y as DialogComponentProps, z as CardComponentProps, m as ImageOptions, l as FieldType, r as PasswordValidation, R as Refetch, v as CardClassNames, p as ApiKey, P as PathConfig, o as Provider, s as Profile, w as AvatarProps, x as ViewProps } from './ui-DxCTGGLe.js';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
import * as react from 'react';
|
|
4
4
|
import { ReactNode, CSSProperties, ComponentProps, PropsWithChildren } from 'react';
|
|
5
5
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
6
|
-
import * as
|
|
7
|
-
import
|
|
8
|
-
import { AnyUseQueryOptions, QueryKey } from '@pelatform/ui/re/tanstack-query';
|
|
6
|
+
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
7
|
+
import { AnyUseQueryOptions, QueryKey } from '@tanstack/react-query';
|
|
9
8
|
import * as better_auth from 'better-auth';
|
|
10
9
|
import { Account } from 'better-auth';
|
|
11
10
|
import { BetterFetchOption } from 'better-auth/react';
|
|
12
11
|
import * as _tanstack_query_core from '@tanstack/query-core';
|
|
13
|
-
import * as
|
|
14
|
-
import { Badge, Button, Input } from '
|
|
15
|
-
import { MenuItem } from '
|
|
16
|
-
import { NavItem, LanguageSwitcherProps } from '
|
|
12
|
+
import * as better_auth_plugins_organization from 'better-auth/plugins/organization';
|
|
13
|
+
import { Badge, Toaster, Button, Input } from 'pelatform-ui/default';
|
|
14
|
+
import { MenuItem } from 'pelatform-ui';
|
|
15
|
+
import { NavItem, LanguageSwitcherProps } from 'pelatform-ui/components';
|
|
17
16
|
import { LucideIcon } from 'lucide-react';
|
|
18
|
-
import '
|
|
19
|
-
import 'node_modules/better-auth/dist/index-CfImj7fH.mjs';
|
|
17
|
+
import 'better-auth/client/plugins';
|
|
20
18
|
import '@simplewebauthn/server';
|
|
21
|
-
import 'better-auth/plugins/organization';
|
|
22
19
|
|
|
23
20
|
/**
|
|
24
21
|
* Hook to access configuration in client components
|
|
@@ -93,11 +90,11 @@ type ConfigProviderProps = {
|
|
|
93
90
|
*/
|
|
94
91
|
declare function ConfigProvider({ config, authClient, children, ...props }: ConfigProviderProps): react_jsx_runtime.JSX.Element;
|
|
95
92
|
|
|
96
|
-
declare function useAccountInfo(params: Parameters<AuthClient[
|
|
93
|
+
declare function useAccountInfo(params: Parameters<AuthClient["accountInfo"]>[0], options?: Partial<AnyUseQueryOptions>): _tanstack_react_query.UseQueryResult<{
|
|
97
94
|
user: better_auth.OAuth2UserInfo;
|
|
98
95
|
data: Record<string, any>;
|
|
99
96
|
}, Error>;
|
|
100
|
-
declare function useListAccounts(options?: Partial<AnyUseQueryOptions>):
|
|
97
|
+
declare function useListAccounts(options?: Partial<AnyUseQueryOptions>): _tanstack_react_query.UseQueryResult<{
|
|
101
98
|
id: string;
|
|
102
99
|
providerId: string;
|
|
103
100
|
createdAt: Date;
|
|
@@ -107,7 +104,7 @@ declare function useListAccounts(options?: Partial<AnyUseQueryOptions>): _pelatf
|
|
|
107
104
|
scopes: string[];
|
|
108
105
|
}[], Error>;
|
|
109
106
|
declare function useUnlinkAccount(options?: Partial<AuthQueryOptions>): {
|
|
110
|
-
mutate:
|
|
107
|
+
mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth.Prettify<{
|
|
111
108
|
providerId: string;
|
|
112
109
|
accountId?: string | undefined;
|
|
113
110
|
} & {
|
|
@@ -119,7 +116,7 @@ declare function useUnlinkAccount(options?: Partial<AuthQueryOptions>): {
|
|
|
119
116
|
previousData: {};
|
|
120
117
|
} | undefined>;
|
|
121
118
|
mutateAsync: {
|
|
122
|
-
(params: Omit<
|
|
119
|
+
(params: Omit<better_auth.Prettify<{
|
|
123
120
|
providerId: string;
|
|
124
121
|
accountId?: string | undefined;
|
|
125
122
|
} & {
|
|
@@ -132,7 +129,7 @@ declare function useUnlinkAccount(options?: Partial<AuthQueryOptions>): {
|
|
|
132
129
|
throw?: true;
|
|
133
130
|
} | undefined;
|
|
134
131
|
}): Promise<ThrowableResult>;
|
|
135
|
-
(params: Omit<
|
|
132
|
+
(params: Omit<better_auth.Prettify<{
|
|
136
133
|
providerId: string;
|
|
137
134
|
accountId?: string | undefined;
|
|
138
135
|
} & {
|
|
@@ -161,7 +158,7 @@ declare function useUnlinkAccount(options?: Partial<AuthQueryOptions>): {
|
|
|
161
158
|
isPaused: boolean;
|
|
162
159
|
submittedAt: number;
|
|
163
160
|
} | {
|
|
164
|
-
mutate:
|
|
161
|
+
mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth.Prettify<{
|
|
165
162
|
providerId: string;
|
|
166
163
|
accountId?: string | undefined;
|
|
167
164
|
} & {
|
|
@@ -173,7 +170,7 @@ declare function useUnlinkAccount(options?: Partial<AuthQueryOptions>): {
|
|
|
173
170
|
previousData: {};
|
|
174
171
|
} | undefined>;
|
|
175
172
|
mutateAsync: {
|
|
176
|
-
(params: Omit<
|
|
173
|
+
(params: Omit<better_auth.Prettify<{
|
|
177
174
|
providerId: string;
|
|
178
175
|
accountId?: string | undefined;
|
|
179
176
|
} & {
|
|
@@ -186,7 +183,7 @@ declare function useUnlinkAccount(options?: Partial<AuthQueryOptions>): {
|
|
|
186
183
|
throw?: true;
|
|
187
184
|
} | undefined;
|
|
188
185
|
}): Promise<ThrowableResult>;
|
|
189
|
-
(params: Omit<
|
|
186
|
+
(params: Omit<better_auth.Prettify<{
|
|
190
187
|
providerId: string;
|
|
191
188
|
accountId?: string | undefined;
|
|
192
189
|
} & {
|
|
@@ -201,7 +198,7 @@ declare function useUnlinkAccount(options?: Partial<AuthQueryOptions>): {
|
|
|
201
198
|
isPending: boolean;
|
|
202
199
|
error: Error | null;
|
|
203
200
|
data: undefined;
|
|
204
|
-
variables:
|
|
201
|
+
variables: better_auth.Prettify<{
|
|
205
202
|
providerId: string;
|
|
206
203
|
accountId?: string | undefined;
|
|
207
204
|
} & {
|
|
@@ -223,7 +220,7 @@ declare function useUnlinkAccount(options?: Partial<AuthQueryOptions>): {
|
|
|
223
220
|
isPaused: boolean;
|
|
224
221
|
submittedAt: number;
|
|
225
222
|
} | {
|
|
226
|
-
mutate:
|
|
223
|
+
mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth.Prettify<{
|
|
227
224
|
providerId: string;
|
|
228
225
|
accountId?: string | undefined;
|
|
229
226
|
} & {
|
|
@@ -235,7 +232,7 @@ declare function useUnlinkAccount(options?: Partial<AuthQueryOptions>): {
|
|
|
235
232
|
previousData: {};
|
|
236
233
|
} | undefined>;
|
|
237
234
|
mutateAsync: {
|
|
238
|
-
(params: Omit<
|
|
235
|
+
(params: Omit<better_auth.Prettify<{
|
|
239
236
|
providerId: string;
|
|
240
237
|
accountId?: string | undefined;
|
|
241
238
|
} & {
|
|
@@ -248,7 +245,7 @@ declare function useUnlinkAccount(options?: Partial<AuthQueryOptions>): {
|
|
|
248
245
|
throw?: true;
|
|
249
246
|
} | undefined;
|
|
250
247
|
}): Promise<ThrowableResult>;
|
|
251
|
-
(params: Omit<
|
|
248
|
+
(params: Omit<better_auth.Prettify<{
|
|
252
249
|
providerId: string;
|
|
253
250
|
accountId?: string | undefined;
|
|
254
251
|
} & {
|
|
@@ -263,7 +260,7 @@ declare function useUnlinkAccount(options?: Partial<AuthQueryOptions>): {
|
|
|
263
260
|
isPending: boolean;
|
|
264
261
|
error: Error | null;
|
|
265
262
|
data: undefined;
|
|
266
|
-
variables:
|
|
263
|
+
variables: better_auth.Prettify<{
|
|
267
264
|
providerId: string;
|
|
268
265
|
accountId?: string | undefined;
|
|
269
266
|
} & {
|
|
@@ -285,7 +282,7 @@ declare function useUnlinkAccount(options?: Partial<AuthQueryOptions>): {
|
|
|
285
282
|
isPaused: boolean;
|
|
286
283
|
submittedAt: number;
|
|
287
284
|
} | {
|
|
288
|
-
mutate:
|
|
285
|
+
mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth.Prettify<{
|
|
289
286
|
providerId: string;
|
|
290
287
|
accountId?: string | undefined;
|
|
291
288
|
} & {
|
|
@@ -297,7 +294,7 @@ declare function useUnlinkAccount(options?: Partial<AuthQueryOptions>): {
|
|
|
297
294
|
previousData: {};
|
|
298
295
|
} | undefined>;
|
|
299
296
|
mutateAsync: {
|
|
300
|
-
(params: Omit<
|
|
297
|
+
(params: Omit<better_auth.Prettify<{
|
|
301
298
|
providerId: string;
|
|
302
299
|
accountId?: string | undefined;
|
|
303
300
|
} & {
|
|
@@ -310,7 +307,7 @@ declare function useUnlinkAccount(options?: Partial<AuthQueryOptions>): {
|
|
|
310
307
|
throw?: true;
|
|
311
308
|
} | undefined;
|
|
312
309
|
}): Promise<ThrowableResult>;
|
|
313
|
-
(params: Omit<
|
|
310
|
+
(params: Omit<better_auth.Prettify<{
|
|
314
311
|
providerId: string;
|
|
315
312
|
accountId?: string | undefined;
|
|
316
313
|
} & {
|
|
@@ -325,7 +322,7 @@ declare function useUnlinkAccount(options?: Partial<AuthQueryOptions>): {
|
|
|
325
322
|
isPending: boolean;
|
|
326
323
|
error: Error | null;
|
|
327
324
|
data: NonThrowableResult | ThrowableResult;
|
|
328
|
-
variables:
|
|
325
|
+
variables: better_auth.Prettify<{
|
|
329
326
|
providerId: string;
|
|
330
327
|
accountId?: string | undefined;
|
|
331
328
|
} & {
|
|
@@ -349,7 +346,7 @@ declare function useUnlinkAccount(options?: Partial<AuthQueryOptions>): {
|
|
|
349
346
|
};
|
|
350
347
|
|
|
351
348
|
declare function useCreateApiKey(options?: Partial<AuthQueryOptions>): {
|
|
352
|
-
mutate:
|
|
349
|
+
mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth.Prettify<{
|
|
353
350
|
name?: string | undefined;
|
|
354
351
|
expiresIn?: number | null | undefined;
|
|
355
352
|
userId?: unknown;
|
|
@@ -381,7 +378,7 @@ declare function useCreateApiKey(options?: Partial<AuthQueryOptions>): {
|
|
|
381
378
|
previousData: {};
|
|
382
379
|
} | undefined>;
|
|
383
380
|
mutateAsync: {
|
|
384
|
-
(params: Omit<
|
|
381
|
+
(params: Omit<better_auth.Prettify<{
|
|
385
382
|
name?: string | undefined;
|
|
386
383
|
expiresIn?: number | null | undefined;
|
|
387
384
|
userId?: unknown;
|
|
@@ -414,7 +411,7 @@ declare function useCreateApiKey(options?: Partial<AuthQueryOptions>): {
|
|
|
414
411
|
throw?: true;
|
|
415
412
|
} | undefined;
|
|
416
413
|
}): Promise<ThrowableResult>;
|
|
417
|
-
(params: Omit<
|
|
414
|
+
(params: Omit<better_auth.Prettify<{
|
|
418
415
|
name?: string | undefined;
|
|
419
416
|
expiresIn?: number | null | undefined;
|
|
420
417
|
userId?: unknown;
|
|
@@ -463,7 +460,7 @@ declare function useCreateApiKey(options?: Partial<AuthQueryOptions>): {
|
|
|
463
460
|
isPaused: boolean;
|
|
464
461
|
submittedAt: number;
|
|
465
462
|
} | {
|
|
466
|
-
mutate:
|
|
463
|
+
mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth.Prettify<{
|
|
467
464
|
name?: string | undefined;
|
|
468
465
|
expiresIn?: number | null | undefined;
|
|
469
466
|
userId?: unknown;
|
|
@@ -495,7 +492,7 @@ declare function useCreateApiKey(options?: Partial<AuthQueryOptions>): {
|
|
|
495
492
|
previousData: {};
|
|
496
493
|
} | undefined>;
|
|
497
494
|
mutateAsync: {
|
|
498
|
-
(params: Omit<
|
|
495
|
+
(params: Omit<better_auth.Prettify<{
|
|
499
496
|
name?: string | undefined;
|
|
500
497
|
expiresIn?: number | null | undefined;
|
|
501
498
|
userId?: unknown;
|
|
@@ -528,7 +525,7 @@ declare function useCreateApiKey(options?: Partial<AuthQueryOptions>): {
|
|
|
528
525
|
throw?: true;
|
|
529
526
|
} | undefined;
|
|
530
527
|
}): Promise<ThrowableResult>;
|
|
531
|
-
(params: Omit<
|
|
528
|
+
(params: Omit<better_auth.Prettify<{
|
|
532
529
|
name?: string | undefined;
|
|
533
530
|
expiresIn?: number | null | undefined;
|
|
534
531
|
userId?: unknown;
|
|
@@ -563,7 +560,7 @@ declare function useCreateApiKey(options?: Partial<AuthQueryOptions>): {
|
|
|
563
560
|
isPending: boolean;
|
|
564
561
|
error: Error | null;
|
|
565
562
|
data: undefined;
|
|
566
|
-
variables:
|
|
563
|
+
variables: better_auth.Prettify<{
|
|
567
564
|
name?: string | undefined;
|
|
568
565
|
expiresIn?: number | null | undefined;
|
|
569
566
|
userId?: unknown;
|
|
@@ -605,7 +602,7 @@ declare function useCreateApiKey(options?: Partial<AuthQueryOptions>): {
|
|
|
605
602
|
isPaused: boolean;
|
|
606
603
|
submittedAt: number;
|
|
607
604
|
} | {
|
|
608
|
-
mutate:
|
|
605
|
+
mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth.Prettify<{
|
|
609
606
|
name?: string | undefined;
|
|
610
607
|
expiresIn?: number | null | undefined;
|
|
611
608
|
userId?: unknown;
|
|
@@ -637,7 +634,7 @@ declare function useCreateApiKey(options?: Partial<AuthQueryOptions>): {
|
|
|
637
634
|
previousData: {};
|
|
638
635
|
} | undefined>;
|
|
639
636
|
mutateAsync: {
|
|
640
|
-
(params: Omit<
|
|
637
|
+
(params: Omit<better_auth.Prettify<{
|
|
641
638
|
name?: string | undefined;
|
|
642
639
|
expiresIn?: number | null | undefined;
|
|
643
640
|
userId?: unknown;
|
|
@@ -670,7 +667,7 @@ declare function useCreateApiKey(options?: Partial<AuthQueryOptions>): {
|
|
|
670
667
|
throw?: true;
|
|
671
668
|
} | undefined;
|
|
672
669
|
}): Promise<ThrowableResult>;
|
|
673
|
-
(params: Omit<
|
|
670
|
+
(params: Omit<better_auth.Prettify<{
|
|
674
671
|
name?: string | undefined;
|
|
675
672
|
expiresIn?: number | null | undefined;
|
|
676
673
|
userId?: unknown;
|
|
@@ -705,7 +702,7 @@ declare function useCreateApiKey(options?: Partial<AuthQueryOptions>): {
|
|
|
705
702
|
isPending: boolean;
|
|
706
703
|
error: Error | null;
|
|
707
704
|
data: undefined;
|
|
708
|
-
variables:
|
|
705
|
+
variables: better_auth.Prettify<{
|
|
709
706
|
name?: string | undefined;
|
|
710
707
|
expiresIn?: number | null | undefined;
|
|
711
708
|
userId?: unknown;
|
|
@@ -747,7 +744,7 @@ declare function useCreateApiKey(options?: Partial<AuthQueryOptions>): {
|
|
|
747
744
|
isPaused: boolean;
|
|
748
745
|
submittedAt: number;
|
|
749
746
|
} | {
|
|
750
|
-
mutate:
|
|
747
|
+
mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth.Prettify<{
|
|
751
748
|
name?: string | undefined;
|
|
752
749
|
expiresIn?: number | null | undefined;
|
|
753
750
|
userId?: unknown;
|
|
@@ -779,7 +776,7 @@ declare function useCreateApiKey(options?: Partial<AuthQueryOptions>): {
|
|
|
779
776
|
previousData: {};
|
|
780
777
|
} | undefined>;
|
|
781
778
|
mutateAsync: {
|
|
782
|
-
(params: Omit<
|
|
779
|
+
(params: Omit<better_auth.Prettify<{
|
|
783
780
|
name?: string | undefined;
|
|
784
781
|
expiresIn?: number | null | undefined;
|
|
785
782
|
userId?: unknown;
|
|
@@ -812,7 +809,7 @@ declare function useCreateApiKey(options?: Partial<AuthQueryOptions>): {
|
|
|
812
809
|
throw?: true;
|
|
813
810
|
} | undefined;
|
|
814
811
|
}): Promise<ThrowableResult>;
|
|
815
|
-
(params: Omit<
|
|
812
|
+
(params: Omit<better_auth.Prettify<{
|
|
816
813
|
name?: string | undefined;
|
|
817
814
|
expiresIn?: number | null | undefined;
|
|
818
815
|
userId?: unknown;
|
|
@@ -847,7 +844,7 @@ declare function useCreateApiKey(options?: Partial<AuthQueryOptions>): {
|
|
|
847
844
|
isPending: boolean;
|
|
848
845
|
error: Error | null;
|
|
849
846
|
data: NonThrowableResult | ThrowableResult;
|
|
850
|
-
variables:
|
|
847
|
+
variables: better_auth.Prettify<{
|
|
851
848
|
name?: string | undefined;
|
|
852
849
|
expiresIn?: number | null | undefined;
|
|
853
850
|
userId?: unknown;
|
|
@@ -890,7 +887,7 @@ declare function useCreateApiKey(options?: Partial<AuthQueryOptions>): {
|
|
|
890
887
|
submittedAt: number;
|
|
891
888
|
};
|
|
892
889
|
declare function useDeleteApiKey(options?: Partial<AuthQueryOptions>): {
|
|
893
|
-
mutate:
|
|
890
|
+
mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth.Prettify<{
|
|
894
891
|
keyId: string;
|
|
895
892
|
} & {
|
|
896
893
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -900,7 +897,7 @@ declare function useDeleteApiKey(options?: Partial<AuthQueryOptions>): {
|
|
|
900
897
|
previousData: {};
|
|
901
898
|
} | undefined>;
|
|
902
899
|
mutateAsync: {
|
|
903
|
-
(params: Omit<
|
|
900
|
+
(params: Omit<better_auth.Prettify<{
|
|
904
901
|
keyId: string;
|
|
905
902
|
} & {
|
|
906
903
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -911,7 +908,7 @@ declare function useDeleteApiKey(options?: Partial<AuthQueryOptions>): {
|
|
|
911
908
|
throw?: true;
|
|
912
909
|
} | undefined;
|
|
913
910
|
}): Promise<ThrowableResult>;
|
|
914
|
-
(params: Omit<
|
|
911
|
+
(params: Omit<better_auth.Prettify<{
|
|
915
912
|
keyId: string;
|
|
916
913
|
} & {
|
|
917
914
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -938,7 +935,7 @@ declare function useDeleteApiKey(options?: Partial<AuthQueryOptions>): {
|
|
|
938
935
|
isPaused: boolean;
|
|
939
936
|
submittedAt: number;
|
|
940
937
|
} | {
|
|
941
|
-
mutate:
|
|
938
|
+
mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth.Prettify<{
|
|
942
939
|
keyId: string;
|
|
943
940
|
} & {
|
|
944
941
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -948,7 +945,7 @@ declare function useDeleteApiKey(options?: Partial<AuthQueryOptions>): {
|
|
|
948
945
|
previousData: {};
|
|
949
946
|
} | undefined>;
|
|
950
947
|
mutateAsync: {
|
|
951
|
-
(params: Omit<
|
|
948
|
+
(params: Omit<better_auth.Prettify<{
|
|
952
949
|
keyId: string;
|
|
953
950
|
} & {
|
|
954
951
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -959,7 +956,7 @@ declare function useDeleteApiKey(options?: Partial<AuthQueryOptions>): {
|
|
|
959
956
|
throw?: true;
|
|
960
957
|
} | undefined;
|
|
961
958
|
}): Promise<ThrowableResult>;
|
|
962
|
-
(params: Omit<
|
|
959
|
+
(params: Omit<better_auth.Prettify<{
|
|
963
960
|
keyId: string;
|
|
964
961
|
} & {
|
|
965
962
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -972,7 +969,7 @@ declare function useDeleteApiKey(options?: Partial<AuthQueryOptions>): {
|
|
|
972
969
|
isPending: boolean;
|
|
973
970
|
error: Error | null;
|
|
974
971
|
data: undefined;
|
|
975
|
-
variables:
|
|
972
|
+
variables: better_auth.Prettify<{
|
|
976
973
|
keyId: string;
|
|
977
974
|
} & {
|
|
978
975
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -992,7 +989,7 @@ declare function useDeleteApiKey(options?: Partial<AuthQueryOptions>): {
|
|
|
992
989
|
isPaused: boolean;
|
|
993
990
|
submittedAt: number;
|
|
994
991
|
} | {
|
|
995
|
-
mutate:
|
|
992
|
+
mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth.Prettify<{
|
|
996
993
|
keyId: string;
|
|
997
994
|
} & {
|
|
998
995
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -1002,7 +999,7 @@ declare function useDeleteApiKey(options?: Partial<AuthQueryOptions>): {
|
|
|
1002
999
|
previousData: {};
|
|
1003
1000
|
} | undefined>;
|
|
1004
1001
|
mutateAsync: {
|
|
1005
|
-
(params: Omit<
|
|
1002
|
+
(params: Omit<better_auth.Prettify<{
|
|
1006
1003
|
keyId: string;
|
|
1007
1004
|
} & {
|
|
1008
1005
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -1013,7 +1010,7 @@ declare function useDeleteApiKey(options?: Partial<AuthQueryOptions>): {
|
|
|
1013
1010
|
throw?: true;
|
|
1014
1011
|
} | undefined;
|
|
1015
1012
|
}): Promise<ThrowableResult>;
|
|
1016
|
-
(params: Omit<
|
|
1013
|
+
(params: Omit<better_auth.Prettify<{
|
|
1017
1014
|
keyId: string;
|
|
1018
1015
|
} & {
|
|
1019
1016
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -1026,7 +1023,7 @@ declare function useDeleteApiKey(options?: Partial<AuthQueryOptions>): {
|
|
|
1026
1023
|
isPending: boolean;
|
|
1027
1024
|
error: Error | null;
|
|
1028
1025
|
data: undefined;
|
|
1029
|
-
variables:
|
|
1026
|
+
variables: better_auth.Prettify<{
|
|
1030
1027
|
keyId: string;
|
|
1031
1028
|
} & {
|
|
1032
1029
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -1046,7 +1043,7 @@ declare function useDeleteApiKey(options?: Partial<AuthQueryOptions>): {
|
|
|
1046
1043
|
isPaused: boolean;
|
|
1047
1044
|
submittedAt: number;
|
|
1048
1045
|
} | {
|
|
1049
|
-
mutate:
|
|
1046
|
+
mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth.Prettify<{
|
|
1050
1047
|
keyId: string;
|
|
1051
1048
|
} & {
|
|
1052
1049
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -1056,7 +1053,7 @@ declare function useDeleteApiKey(options?: Partial<AuthQueryOptions>): {
|
|
|
1056
1053
|
previousData: {};
|
|
1057
1054
|
} | undefined>;
|
|
1058
1055
|
mutateAsync: {
|
|
1059
|
-
(params: Omit<
|
|
1056
|
+
(params: Omit<better_auth.Prettify<{
|
|
1060
1057
|
keyId: string;
|
|
1061
1058
|
} & {
|
|
1062
1059
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -1067,7 +1064,7 @@ declare function useDeleteApiKey(options?: Partial<AuthQueryOptions>): {
|
|
|
1067
1064
|
throw?: true;
|
|
1068
1065
|
} | undefined;
|
|
1069
1066
|
}): Promise<ThrowableResult>;
|
|
1070
|
-
(params: Omit<
|
|
1067
|
+
(params: Omit<better_auth.Prettify<{
|
|
1071
1068
|
keyId: string;
|
|
1072
1069
|
} & {
|
|
1073
1070
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -1080,7 +1077,7 @@ declare function useDeleteApiKey(options?: Partial<AuthQueryOptions>): {
|
|
|
1080
1077
|
isPending: boolean;
|
|
1081
1078
|
error: Error | null;
|
|
1082
1079
|
data: NonThrowableResult | ThrowableResult;
|
|
1083
|
-
variables:
|
|
1080
|
+
variables: better_auth.Prettify<{
|
|
1084
1081
|
keyId: string;
|
|
1085
1082
|
} & {
|
|
1086
1083
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -1100,7 +1097,7 @@ declare function useDeleteApiKey(options?: Partial<AuthQueryOptions>): {
|
|
|
1100
1097
|
isPaused: boolean;
|
|
1101
1098
|
submittedAt: number;
|
|
1102
1099
|
};
|
|
1103
|
-
declare function useListApiKeys(options?: Partial<AnyUseQueryOptions>):
|
|
1100
|
+
declare function useListApiKeys(options?: Partial<AnyUseQueryOptions>): _tanstack_react_query.UseQueryResult<{
|
|
1104
1101
|
permissions: {
|
|
1105
1102
|
[key: string]: string[];
|
|
1106
1103
|
} | null;
|
|
@@ -1129,10 +1126,10 @@ type AuthMutationFn<TParams> = (params: TParams) => Promise<ThrowableResult | No
|
|
|
1129
1126
|
declare function useAuthMutation<TAuthFn extends AuthMutationFn<any>>({ queryKey, mutationFn, optimisticData, options, }: {
|
|
1130
1127
|
queryKey: QueryKey;
|
|
1131
1128
|
mutationFn: TAuthFn;
|
|
1132
|
-
optimisticData?(params: Omit<Parameters<TAuthFn>[0],
|
|
1129
|
+
optimisticData?(params: Omit<Parameters<TAuthFn>[0], "fetchOptions">, previousData: unknown): unknown;
|
|
1133
1130
|
options?: Partial<AuthQueryOptions>;
|
|
1134
1131
|
}): {
|
|
1135
|
-
mutate:
|
|
1132
|
+
mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, Parameters<TAuthFn>[0], {
|
|
1136
1133
|
previousData: {};
|
|
1137
1134
|
} | undefined>;
|
|
1138
1135
|
mutateAsync: {
|
|
@@ -1162,7 +1159,7 @@ declare function useAuthMutation<TAuthFn extends AuthMutationFn<any>>({ queryKey
|
|
|
1162
1159
|
isPaused: boolean;
|
|
1163
1160
|
submittedAt: number;
|
|
1164
1161
|
} | {
|
|
1165
|
-
mutate:
|
|
1162
|
+
mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, Parameters<TAuthFn>[0], {
|
|
1166
1163
|
previousData: {};
|
|
1167
1164
|
} | undefined>;
|
|
1168
1165
|
mutateAsync: {
|
|
@@ -1192,7 +1189,7 @@ declare function useAuthMutation<TAuthFn extends AuthMutationFn<any>>({ queryKey
|
|
|
1192
1189
|
isPaused: boolean;
|
|
1193
1190
|
submittedAt: number;
|
|
1194
1191
|
} | {
|
|
1195
|
-
mutate:
|
|
1192
|
+
mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, Parameters<TAuthFn>[0], {
|
|
1196
1193
|
previousData: {};
|
|
1197
1194
|
} | undefined>;
|
|
1198
1195
|
mutateAsync: {
|
|
@@ -1222,7 +1219,7 @@ declare function useAuthMutation<TAuthFn extends AuthMutationFn<any>>({ queryKey
|
|
|
1222
1219
|
isPaused: boolean;
|
|
1223
1220
|
submittedAt: number;
|
|
1224
1221
|
} | {
|
|
1225
|
-
mutate:
|
|
1222
|
+
mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, Parameters<TAuthFn>[0], {
|
|
1226
1223
|
previousData: {};
|
|
1227
1224
|
} | undefined>;
|
|
1228
1225
|
mutateAsync: {
|
|
@@ -1263,14 +1260,14 @@ type UseAuthQueryProps<TData> = {
|
|
|
1263
1260
|
queryFn: BetterFetchRequest<TData>;
|
|
1264
1261
|
options?: Partial<AnyUseQueryOptions>;
|
|
1265
1262
|
};
|
|
1266
|
-
declare function useAuthQuery<TData>({ queryKey, queryFn, options }: UseAuthQueryProps<TData>):
|
|
1263
|
+
declare function useAuthQuery<TData>({ queryKey, queryFn, options }: UseAuthQueryProps<TData>): _tanstack_react_query.UseQueryResult<_tanstack_query_core.NoInfer<TData>, Error>;
|
|
1267
1264
|
|
|
1268
|
-
declare function useListDeviceSessions(options?: Partial<AnyUseQueryOptions>):
|
|
1265
|
+
declare function useListDeviceSessions(options?: Partial<AnyUseQueryOptions>): _tanstack_react_query.UseQueryResult<{
|
|
1269
1266
|
session: better_auth.Session;
|
|
1270
1267
|
user: better_auth.User;
|
|
1271
1268
|
}[], Error>;
|
|
1272
1269
|
declare function useRevokeDeviceSession(options?: Partial<AuthQueryOptions>): {
|
|
1273
|
-
mutate:
|
|
1270
|
+
mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth.Prettify<{
|
|
1274
1271
|
sessionToken: string;
|
|
1275
1272
|
} & {
|
|
1276
1273
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -1280,7 +1277,7 @@ declare function useRevokeDeviceSession(options?: Partial<AuthQueryOptions>): {
|
|
|
1280
1277
|
previousData: {};
|
|
1281
1278
|
} | undefined>;
|
|
1282
1279
|
mutateAsync: {
|
|
1283
|
-
(params: Omit<
|
|
1280
|
+
(params: Omit<better_auth.Prettify<{
|
|
1284
1281
|
sessionToken: string;
|
|
1285
1282
|
} & {
|
|
1286
1283
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -1291,7 +1288,7 @@ declare function useRevokeDeviceSession(options?: Partial<AuthQueryOptions>): {
|
|
|
1291
1288
|
throw?: true;
|
|
1292
1289
|
} | undefined;
|
|
1293
1290
|
}): Promise<ThrowableResult>;
|
|
1294
|
-
(params: Omit<
|
|
1291
|
+
(params: Omit<better_auth.Prettify<{
|
|
1295
1292
|
sessionToken: string;
|
|
1296
1293
|
} & {
|
|
1297
1294
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -1318,7 +1315,7 @@ declare function useRevokeDeviceSession(options?: Partial<AuthQueryOptions>): {
|
|
|
1318
1315
|
isPaused: boolean;
|
|
1319
1316
|
submittedAt: number;
|
|
1320
1317
|
} | {
|
|
1321
|
-
mutate:
|
|
1318
|
+
mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth.Prettify<{
|
|
1322
1319
|
sessionToken: string;
|
|
1323
1320
|
} & {
|
|
1324
1321
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -1328,7 +1325,7 @@ declare function useRevokeDeviceSession(options?: Partial<AuthQueryOptions>): {
|
|
|
1328
1325
|
previousData: {};
|
|
1329
1326
|
} | undefined>;
|
|
1330
1327
|
mutateAsync: {
|
|
1331
|
-
(params: Omit<
|
|
1328
|
+
(params: Omit<better_auth.Prettify<{
|
|
1332
1329
|
sessionToken: string;
|
|
1333
1330
|
} & {
|
|
1334
1331
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -1339,7 +1336,7 @@ declare function useRevokeDeviceSession(options?: Partial<AuthQueryOptions>): {
|
|
|
1339
1336
|
throw?: true;
|
|
1340
1337
|
} | undefined;
|
|
1341
1338
|
}): Promise<ThrowableResult>;
|
|
1342
|
-
(params: Omit<
|
|
1339
|
+
(params: Omit<better_auth.Prettify<{
|
|
1343
1340
|
sessionToken: string;
|
|
1344
1341
|
} & {
|
|
1345
1342
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -1352,7 +1349,7 @@ declare function useRevokeDeviceSession(options?: Partial<AuthQueryOptions>): {
|
|
|
1352
1349
|
isPending: boolean;
|
|
1353
1350
|
error: Error | null;
|
|
1354
1351
|
data: undefined;
|
|
1355
|
-
variables:
|
|
1352
|
+
variables: better_auth.Prettify<{
|
|
1356
1353
|
sessionToken: string;
|
|
1357
1354
|
} & {
|
|
1358
1355
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -1372,7 +1369,7 @@ declare function useRevokeDeviceSession(options?: Partial<AuthQueryOptions>): {
|
|
|
1372
1369
|
isPaused: boolean;
|
|
1373
1370
|
submittedAt: number;
|
|
1374
1371
|
} | {
|
|
1375
|
-
mutate:
|
|
1372
|
+
mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth.Prettify<{
|
|
1376
1373
|
sessionToken: string;
|
|
1377
1374
|
} & {
|
|
1378
1375
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -1382,7 +1379,7 @@ declare function useRevokeDeviceSession(options?: Partial<AuthQueryOptions>): {
|
|
|
1382
1379
|
previousData: {};
|
|
1383
1380
|
} | undefined>;
|
|
1384
1381
|
mutateAsync: {
|
|
1385
|
-
(params: Omit<
|
|
1382
|
+
(params: Omit<better_auth.Prettify<{
|
|
1386
1383
|
sessionToken: string;
|
|
1387
1384
|
} & {
|
|
1388
1385
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -1393,7 +1390,7 @@ declare function useRevokeDeviceSession(options?: Partial<AuthQueryOptions>): {
|
|
|
1393
1390
|
throw?: true;
|
|
1394
1391
|
} | undefined;
|
|
1395
1392
|
}): Promise<ThrowableResult>;
|
|
1396
|
-
(params: Omit<
|
|
1393
|
+
(params: Omit<better_auth.Prettify<{
|
|
1397
1394
|
sessionToken: string;
|
|
1398
1395
|
} & {
|
|
1399
1396
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -1406,7 +1403,7 @@ declare function useRevokeDeviceSession(options?: Partial<AuthQueryOptions>): {
|
|
|
1406
1403
|
isPending: boolean;
|
|
1407
1404
|
error: Error | null;
|
|
1408
1405
|
data: undefined;
|
|
1409
|
-
variables:
|
|
1406
|
+
variables: better_auth.Prettify<{
|
|
1410
1407
|
sessionToken: string;
|
|
1411
1408
|
} & {
|
|
1412
1409
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -1426,7 +1423,7 @@ declare function useRevokeDeviceSession(options?: Partial<AuthQueryOptions>): {
|
|
|
1426
1423
|
isPaused: boolean;
|
|
1427
1424
|
submittedAt: number;
|
|
1428
1425
|
} | {
|
|
1429
|
-
mutate:
|
|
1426
|
+
mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth.Prettify<{
|
|
1430
1427
|
sessionToken: string;
|
|
1431
1428
|
} & {
|
|
1432
1429
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -1436,7 +1433,7 @@ declare function useRevokeDeviceSession(options?: Partial<AuthQueryOptions>): {
|
|
|
1436
1433
|
previousData: {};
|
|
1437
1434
|
} | undefined>;
|
|
1438
1435
|
mutateAsync: {
|
|
1439
|
-
(params: Omit<
|
|
1436
|
+
(params: Omit<better_auth.Prettify<{
|
|
1440
1437
|
sessionToken: string;
|
|
1441
1438
|
} & {
|
|
1442
1439
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -1447,7 +1444,7 @@ declare function useRevokeDeviceSession(options?: Partial<AuthQueryOptions>): {
|
|
|
1447
1444
|
throw?: true;
|
|
1448
1445
|
} | undefined;
|
|
1449
1446
|
}): Promise<ThrowableResult>;
|
|
1450
|
-
(params: Omit<
|
|
1447
|
+
(params: Omit<better_auth.Prettify<{
|
|
1451
1448
|
sessionToken: string;
|
|
1452
1449
|
} & {
|
|
1453
1450
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -1460,7 +1457,7 @@ declare function useRevokeDeviceSession(options?: Partial<AuthQueryOptions>): {
|
|
|
1460
1457
|
isPending: boolean;
|
|
1461
1458
|
error: Error | null;
|
|
1462
1459
|
data: NonThrowableResult | ThrowableResult;
|
|
1463
|
-
variables:
|
|
1460
|
+
variables: better_auth.Prettify<{
|
|
1464
1461
|
sessionToken: string;
|
|
1465
1462
|
} & {
|
|
1466
1463
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -1481,7 +1478,7 @@ declare function useRevokeDeviceSession(options?: Partial<AuthQueryOptions>): {
|
|
|
1481
1478
|
submittedAt: number;
|
|
1482
1479
|
};
|
|
1483
1480
|
declare function useSetActiveSession(): {
|
|
1484
|
-
setActiveSession:
|
|
1481
|
+
setActiveSession: _tanstack_react_query.UseMutateFunction<{
|
|
1485
1482
|
data: {
|
|
1486
1483
|
session: better_auth.Session & Record<string, any>;
|
|
1487
1484
|
user: better_auth.User & Record<string, any>;
|
|
@@ -1495,14 +1492,14 @@ declare function useSetActiveSession(): {
|
|
|
1495
1492
|
status: number;
|
|
1496
1493
|
statusText: string;
|
|
1497
1494
|
};
|
|
1498
|
-
}, Error,
|
|
1495
|
+
}, Error, better_auth.Prettify<{
|
|
1499
1496
|
sessionToken: string;
|
|
1500
1497
|
} & {
|
|
1501
1498
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
1502
1499
|
sessionToken: string;
|
|
1503
1500
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
1504
1501
|
}>, unknown>;
|
|
1505
|
-
setActiveSessionAsync:
|
|
1502
|
+
setActiveSessionAsync: _tanstack_react_query.UseMutateAsyncFunction<{
|
|
1506
1503
|
data: {
|
|
1507
1504
|
session: better_auth.Session & Record<string, any>;
|
|
1508
1505
|
user: better_auth.User & Record<string, any>;
|
|
@@ -1516,7 +1513,7 @@ declare function useSetActiveSession(): {
|
|
|
1516
1513
|
status: number;
|
|
1517
1514
|
statusText: string;
|
|
1518
1515
|
};
|
|
1519
|
-
}, Error,
|
|
1516
|
+
}, Error, better_auth.Prettify<{
|
|
1520
1517
|
sessionToken: string;
|
|
1521
1518
|
} & {
|
|
1522
1519
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -1533,7 +1530,7 @@ declare function useSetActiveSession(): {
|
|
|
1533
1530
|
isPending: false;
|
|
1534
1531
|
isSuccess: false;
|
|
1535
1532
|
status: "idle";
|
|
1536
|
-
mutate:
|
|
1533
|
+
mutate: _tanstack_react_query.UseMutateFunction<{
|
|
1537
1534
|
data: {
|
|
1538
1535
|
session: better_auth.Session & Record<string, any>;
|
|
1539
1536
|
user: better_auth.User & Record<string, any>;
|
|
@@ -1547,7 +1544,7 @@ declare function useSetActiveSession(): {
|
|
|
1547
1544
|
status: number;
|
|
1548
1545
|
statusText: string;
|
|
1549
1546
|
};
|
|
1550
|
-
}, Error,
|
|
1547
|
+
}, Error, better_auth.Prettify<{
|
|
1551
1548
|
sessionToken: string;
|
|
1552
1549
|
} & {
|
|
1553
1550
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -1560,7 +1557,7 @@ declare function useSetActiveSession(): {
|
|
|
1560
1557
|
failureReason: Error | null;
|
|
1561
1558
|
isPaused: boolean;
|
|
1562
1559
|
submittedAt: number;
|
|
1563
|
-
mutateAsync:
|
|
1560
|
+
mutateAsync: _tanstack_react_query.UseMutateAsyncFunction<{
|
|
1564
1561
|
data: {
|
|
1565
1562
|
session: better_auth.Session & Record<string, any>;
|
|
1566
1563
|
user: better_auth.User & Record<string, any>;
|
|
@@ -1574,7 +1571,7 @@ declare function useSetActiveSession(): {
|
|
|
1574
1571
|
status: number;
|
|
1575
1572
|
statusText: string;
|
|
1576
1573
|
};
|
|
1577
|
-
}, Error,
|
|
1574
|
+
}, Error, better_auth.Prettify<{
|
|
1578
1575
|
sessionToken: string;
|
|
1579
1576
|
} & {
|
|
1580
1577
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -1582,7 +1579,7 @@ declare function useSetActiveSession(): {
|
|
|
1582
1579
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
1583
1580
|
}>, unknown>;
|
|
1584
1581
|
} | {
|
|
1585
|
-
setActiveSession:
|
|
1582
|
+
setActiveSession: _tanstack_react_query.UseMutateFunction<{
|
|
1586
1583
|
data: {
|
|
1587
1584
|
session: better_auth.Session & Record<string, any>;
|
|
1588
1585
|
user: better_auth.User & Record<string, any>;
|
|
@@ -1596,14 +1593,14 @@ declare function useSetActiveSession(): {
|
|
|
1596
1593
|
status: number;
|
|
1597
1594
|
statusText: string;
|
|
1598
1595
|
};
|
|
1599
|
-
}, Error,
|
|
1596
|
+
}, Error, better_auth.Prettify<{
|
|
1600
1597
|
sessionToken: string;
|
|
1601
1598
|
} & {
|
|
1602
1599
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
1603
1600
|
sessionToken: string;
|
|
1604
1601
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
1605
1602
|
}>, unknown>;
|
|
1606
|
-
setActiveSessionAsync:
|
|
1603
|
+
setActiveSessionAsync: _tanstack_react_query.UseMutateAsyncFunction<{
|
|
1607
1604
|
data: {
|
|
1608
1605
|
session: better_auth.Session & Record<string, any>;
|
|
1609
1606
|
user: better_auth.User & Record<string, any>;
|
|
@@ -1617,7 +1614,7 @@ declare function useSetActiveSession(): {
|
|
|
1617
1614
|
status: number;
|
|
1618
1615
|
statusText: string;
|
|
1619
1616
|
};
|
|
1620
|
-
}, Error,
|
|
1617
|
+
}, Error, better_auth.Prettify<{
|
|
1621
1618
|
sessionToken: string;
|
|
1622
1619
|
} & {
|
|
1623
1620
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -1627,7 +1624,7 @@ declare function useSetActiveSession(): {
|
|
|
1627
1624
|
setActiveSessionPending: boolean;
|
|
1628
1625
|
setActiveSessionError: Error | null;
|
|
1629
1626
|
data: undefined;
|
|
1630
|
-
variables:
|
|
1627
|
+
variables: better_auth.Prettify<{
|
|
1631
1628
|
sessionToken: string;
|
|
1632
1629
|
} & {
|
|
1633
1630
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -1640,7 +1637,7 @@ declare function useSetActiveSession(): {
|
|
|
1640
1637
|
isPending: true;
|
|
1641
1638
|
isSuccess: false;
|
|
1642
1639
|
status: "pending";
|
|
1643
|
-
mutate:
|
|
1640
|
+
mutate: _tanstack_react_query.UseMutateFunction<{
|
|
1644
1641
|
data: {
|
|
1645
1642
|
session: better_auth.Session & Record<string, any>;
|
|
1646
1643
|
user: better_auth.User & Record<string, any>;
|
|
@@ -1654,7 +1651,7 @@ declare function useSetActiveSession(): {
|
|
|
1654
1651
|
status: number;
|
|
1655
1652
|
statusText: string;
|
|
1656
1653
|
};
|
|
1657
|
-
}, Error,
|
|
1654
|
+
}, Error, better_auth.Prettify<{
|
|
1658
1655
|
sessionToken: string;
|
|
1659
1656
|
} & {
|
|
1660
1657
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -1667,7 +1664,7 @@ declare function useSetActiveSession(): {
|
|
|
1667
1664
|
failureReason: Error | null;
|
|
1668
1665
|
isPaused: boolean;
|
|
1669
1666
|
submittedAt: number;
|
|
1670
|
-
mutateAsync:
|
|
1667
|
+
mutateAsync: _tanstack_react_query.UseMutateAsyncFunction<{
|
|
1671
1668
|
data: {
|
|
1672
1669
|
session: better_auth.Session & Record<string, any>;
|
|
1673
1670
|
user: better_auth.User & Record<string, any>;
|
|
@@ -1681,7 +1678,7 @@ declare function useSetActiveSession(): {
|
|
|
1681
1678
|
status: number;
|
|
1682
1679
|
statusText: string;
|
|
1683
1680
|
};
|
|
1684
|
-
}, Error,
|
|
1681
|
+
}, Error, better_auth.Prettify<{
|
|
1685
1682
|
sessionToken: string;
|
|
1686
1683
|
} & {
|
|
1687
1684
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -1689,7 +1686,7 @@ declare function useSetActiveSession(): {
|
|
|
1689
1686
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
1690
1687
|
}>, unknown>;
|
|
1691
1688
|
} | {
|
|
1692
|
-
setActiveSession:
|
|
1689
|
+
setActiveSession: _tanstack_react_query.UseMutateFunction<{
|
|
1693
1690
|
data: {
|
|
1694
1691
|
session: better_auth.Session & Record<string, any>;
|
|
1695
1692
|
user: better_auth.User & Record<string, any>;
|
|
@@ -1703,14 +1700,14 @@ declare function useSetActiveSession(): {
|
|
|
1703
1700
|
status: number;
|
|
1704
1701
|
statusText: string;
|
|
1705
1702
|
};
|
|
1706
|
-
}, Error,
|
|
1703
|
+
}, Error, better_auth.Prettify<{
|
|
1707
1704
|
sessionToken: string;
|
|
1708
1705
|
} & {
|
|
1709
1706
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
1710
1707
|
sessionToken: string;
|
|
1711
1708
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
1712
1709
|
}>, unknown>;
|
|
1713
|
-
setActiveSessionAsync:
|
|
1710
|
+
setActiveSessionAsync: _tanstack_react_query.UseMutateAsyncFunction<{
|
|
1714
1711
|
data: {
|
|
1715
1712
|
session: better_auth.Session & Record<string, any>;
|
|
1716
1713
|
user: better_auth.User & Record<string, any>;
|
|
@@ -1724,7 +1721,7 @@ declare function useSetActiveSession(): {
|
|
|
1724
1721
|
status: number;
|
|
1725
1722
|
statusText: string;
|
|
1726
1723
|
};
|
|
1727
|
-
}, Error,
|
|
1724
|
+
}, Error, better_auth.Prettify<{
|
|
1728
1725
|
sessionToken: string;
|
|
1729
1726
|
} & {
|
|
1730
1727
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -1735,7 +1732,7 @@ declare function useSetActiveSession(): {
|
|
|
1735
1732
|
setActiveSessionError: Error | null;
|
|
1736
1733
|
data: undefined;
|
|
1737
1734
|
error: Error;
|
|
1738
|
-
variables:
|
|
1735
|
+
variables: better_auth.Prettify<{
|
|
1739
1736
|
sessionToken: string;
|
|
1740
1737
|
} & {
|
|
1741
1738
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -1747,7 +1744,7 @@ declare function useSetActiveSession(): {
|
|
|
1747
1744
|
isPending: false;
|
|
1748
1745
|
isSuccess: false;
|
|
1749
1746
|
status: "error";
|
|
1750
|
-
mutate:
|
|
1747
|
+
mutate: _tanstack_react_query.UseMutateFunction<{
|
|
1751
1748
|
data: {
|
|
1752
1749
|
session: better_auth.Session & Record<string, any>;
|
|
1753
1750
|
user: better_auth.User & Record<string, any>;
|
|
@@ -1761,7 +1758,7 @@ declare function useSetActiveSession(): {
|
|
|
1761
1758
|
status: number;
|
|
1762
1759
|
statusText: string;
|
|
1763
1760
|
};
|
|
1764
|
-
}, Error,
|
|
1761
|
+
}, Error, better_auth.Prettify<{
|
|
1765
1762
|
sessionToken: string;
|
|
1766
1763
|
} & {
|
|
1767
1764
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -1774,7 +1771,7 @@ declare function useSetActiveSession(): {
|
|
|
1774
1771
|
failureReason: Error | null;
|
|
1775
1772
|
isPaused: boolean;
|
|
1776
1773
|
submittedAt: number;
|
|
1777
|
-
mutateAsync:
|
|
1774
|
+
mutateAsync: _tanstack_react_query.UseMutateAsyncFunction<{
|
|
1778
1775
|
data: {
|
|
1779
1776
|
session: better_auth.Session & Record<string, any>;
|
|
1780
1777
|
user: better_auth.User & Record<string, any>;
|
|
@@ -1788,7 +1785,7 @@ declare function useSetActiveSession(): {
|
|
|
1788
1785
|
status: number;
|
|
1789
1786
|
statusText: string;
|
|
1790
1787
|
};
|
|
1791
|
-
}, Error,
|
|
1788
|
+
}, Error, better_auth.Prettify<{
|
|
1792
1789
|
sessionToken: string;
|
|
1793
1790
|
} & {
|
|
1794
1791
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -1796,7 +1793,7 @@ declare function useSetActiveSession(): {
|
|
|
1796
1793
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
1797
1794
|
}>, unknown>;
|
|
1798
1795
|
} | {
|
|
1799
|
-
setActiveSession:
|
|
1796
|
+
setActiveSession: _tanstack_react_query.UseMutateFunction<{
|
|
1800
1797
|
data: {
|
|
1801
1798
|
session: better_auth.Session & Record<string, any>;
|
|
1802
1799
|
user: better_auth.User & Record<string, any>;
|
|
@@ -1810,14 +1807,14 @@ declare function useSetActiveSession(): {
|
|
|
1810
1807
|
status: number;
|
|
1811
1808
|
statusText: string;
|
|
1812
1809
|
};
|
|
1813
|
-
}, Error,
|
|
1810
|
+
}, Error, better_auth.Prettify<{
|
|
1814
1811
|
sessionToken: string;
|
|
1815
1812
|
} & {
|
|
1816
1813
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
1817
1814
|
sessionToken: string;
|
|
1818
1815
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
1819
1816
|
}>, unknown>;
|
|
1820
|
-
setActiveSessionAsync:
|
|
1817
|
+
setActiveSessionAsync: _tanstack_react_query.UseMutateAsyncFunction<{
|
|
1821
1818
|
data: {
|
|
1822
1819
|
session: better_auth.Session & Record<string, any>;
|
|
1823
1820
|
user: better_auth.User & Record<string, any>;
|
|
@@ -1831,7 +1828,7 @@ declare function useSetActiveSession(): {
|
|
|
1831
1828
|
status: number;
|
|
1832
1829
|
statusText: string;
|
|
1833
1830
|
};
|
|
1834
|
-
}, Error,
|
|
1831
|
+
}, Error, better_auth.Prettify<{
|
|
1835
1832
|
sessionToken: string;
|
|
1836
1833
|
} & {
|
|
1837
1834
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -1856,7 +1853,7 @@ declare function useSetActiveSession(): {
|
|
|
1856
1853
|
};
|
|
1857
1854
|
};
|
|
1858
1855
|
error: null;
|
|
1859
|
-
variables:
|
|
1856
|
+
variables: better_auth.Prettify<{
|
|
1860
1857
|
sessionToken: string;
|
|
1861
1858
|
} & {
|
|
1862
1859
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -1868,7 +1865,7 @@ declare function useSetActiveSession(): {
|
|
|
1868
1865
|
isPending: false;
|
|
1869
1866
|
isSuccess: true;
|
|
1870
1867
|
status: "success";
|
|
1871
|
-
mutate:
|
|
1868
|
+
mutate: _tanstack_react_query.UseMutateFunction<{
|
|
1872
1869
|
data: {
|
|
1873
1870
|
session: better_auth.Session & Record<string, any>;
|
|
1874
1871
|
user: better_auth.User & Record<string, any>;
|
|
@@ -1882,7 +1879,7 @@ declare function useSetActiveSession(): {
|
|
|
1882
1879
|
status: number;
|
|
1883
1880
|
statusText: string;
|
|
1884
1881
|
};
|
|
1885
|
-
}, Error,
|
|
1882
|
+
}, Error, better_auth.Prettify<{
|
|
1886
1883
|
sessionToken: string;
|
|
1887
1884
|
} & {
|
|
1888
1885
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -1895,7 +1892,7 @@ declare function useSetActiveSession(): {
|
|
|
1895
1892
|
failureReason: Error | null;
|
|
1896
1893
|
isPaused: boolean;
|
|
1897
1894
|
submittedAt: number;
|
|
1898
|
-
mutateAsync:
|
|
1895
|
+
mutateAsync: _tanstack_react_query.UseMutateAsyncFunction<{
|
|
1899
1896
|
data: {
|
|
1900
1897
|
session: better_auth.Session & Record<string, any>;
|
|
1901
1898
|
user: better_auth.User & Record<string, any>;
|
|
@@ -1909,7 +1906,7 @@ declare function useSetActiveSession(): {
|
|
|
1909
1906
|
status: number;
|
|
1910
1907
|
statusText: string;
|
|
1911
1908
|
};
|
|
1912
|
-
}, Error,
|
|
1909
|
+
}, Error, better_auth.Prettify<{
|
|
1913
1910
|
sessionToken: string;
|
|
1914
1911
|
} & {
|
|
1915
1912
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -1919,7 +1916,7 @@ declare function useSetActiveSession(): {
|
|
|
1919
1916
|
};
|
|
1920
1917
|
|
|
1921
1918
|
declare function useDeletePasskey(options?: Partial<AuthQueryOptions>): {
|
|
1922
|
-
mutate:
|
|
1919
|
+
mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth.Prettify<{
|
|
1923
1920
|
id: string;
|
|
1924
1921
|
} & {
|
|
1925
1922
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -1929,7 +1926,7 @@ declare function useDeletePasskey(options?: Partial<AuthQueryOptions>): {
|
|
|
1929
1926
|
previousData: {};
|
|
1930
1927
|
} | undefined>;
|
|
1931
1928
|
mutateAsync: {
|
|
1932
|
-
(params: Omit<
|
|
1929
|
+
(params: Omit<better_auth.Prettify<{
|
|
1933
1930
|
id: string;
|
|
1934
1931
|
} & {
|
|
1935
1932
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -1940,7 +1937,7 @@ declare function useDeletePasskey(options?: Partial<AuthQueryOptions>): {
|
|
|
1940
1937
|
throw?: true;
|
|
1941
1938
|
} | undefined;
|
|
1942
1939
|
}): Promise<ThrowableResult>;
|
|
1943
|
-
(params: Omit<
|
|
1940
|
+
(params: Omit<better_auth.Prettify<{
|
|
1944
1941
|
id: string;
|
|
1945
1942
|
} & {
|
|
1946
1943
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -1967,7 +1964,7 @@ declare function useDeletePasskey(options?: Partial<AuthQueryOptions>): {
|
|
|
1967
1964
|
isPaused: boolean;
|
|
1968
1965
|
submittedAt: number;
|
|
1969
1966
|
} | {
|
|
1970
|
-
mutate:
|
|
1967
|
+
mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth.Prettify<{
|
|
1971
1968
|
id: string;
|
|
1972
1969
|
} & {
|
|
1973
1970
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -1977,7 +1974,7 @@ declare function useDeletePasskey(options?: Partial<AuthQueryOptions>): {
|
|
|
1977
1974
|
previousData: {};
|
|
1978
1975
|
} | undefined>;
|
|
1979
1976
|
mutateAsync: {
|
|
1980
|
-
(params: Omit<
|
|
1977
|
+
(params: Omit<better_auth.Prettify<{
|
|
1981
1978
|
id: string;
|
|
1982
1979
|
} & {
|
|
1983
1980
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -1988,7 +1985,7 @@ declare function useDeletePasskey(options?: Partial<AuthQueryOptions>): {
|
|
|
1988
1985
|
throw?: true;
|
|
1989
1986
|
} | undefined;
|
|
1990
1987
|
}): Promise<ThrowableResult>;
|
|
1991
|
-
(params: Omit<
|
|
1988
|
+
(params: Omit<better_auth.Prettify<{
|
|
1992
1989
|
id: string;
|
|
1993
1990
|
} & {
|
|
1994
1991
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -2001,7 +1998,7 @@ declare function useDeletePasskey(options?: Partial<AuthQueryOptions>): {
|
|
|
2001
1998
|
isPending: boolean;
|
|
2002
1999
|
error: Error | null;
|
|
2003
2000
|
data: undefined;
|
|
2004
|
-
variables:
|
|
2001
|
+
variables: better_auth.Prettify<{
|
|
2005
2002
|
id: string;
|
|
2006
2003
|
} & {
|
|
2007
2004
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -2021,7 +2018,7 @@ declare function useDeletePasskey(options?: Partial<AuthQueryOptions>): {
|
|
|
2021
2018
|
isPaused: boolean;
|
|
2022
2019
|
submittedAt: number;
|
|
2023
2020
|
} | {
|
|
2024
|
-
mutate:
|
|
2021
|
+
mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth.Prettify<{
|
|
2025
2022
|
id: string;
|
|
2026
2023
|
} & {
|
|
2027
2024
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -2031,7 +2028,7 @@ declare function useDeletePasskey(options?: Partial<AuthQueryOptions>): {
|
|
|
2031
2028
|
previousData: {};
|
|
2032
2029
|
} | undefined>;
|
|
2033
2030
|
mutateAsync: {
|
|
2034
|
-
(params: Omit<
|
|
2031
|
+
(params: Omit<better_auth.Prettify<{
|
|
2035
2032
|
id: string;
|
|
2036
2033
|
} & {
|
|
2037
2034
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -2042,7 +2039,7 @@ declare function useDeletePasskey(options?: Partial<AuthQueryOptions>): {
|
|
|
2042
2039
|
throw?: true;
|
|
2043
2040
|
} | undefined;
|
|
2044
2041
|
}): Promise<ThrowableResult>;
|
|
2045
|
-
(params: Omit<
|
|
2042
|
+
(params: Omit<better_auth.Prettify<{
|
|
2046
2043
|
id: string;
|
|
2047
2044
|
} & {
|
|
2048
2045
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -2055,7 +2052,7 @@ declare function useDeletePasskey(options?: Partial<AuthQueryOptions>): {
|
|
|
2055
2052
|
isPending: boolean;
|
|
2056
2053
|
error: Error | null;
|
|
2057
2054
|
data: undefined;
|
|
2058
|
-
variables:
|
|
2055
|
+
variables: better_auth.Prettify<{
|
|
2059
2056
|
id: string;
|
|
2060
2057
|
} & {
|
|
2061
2058
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -2075,7 +2072,7 @@ declare function useDeletePasskey(options?: Partial<AuthQueryOptions>): {
|
|
|
2075
2072
|
isPaused: boolean;
|
|
2076
2073
|
submittedAt: number;
|
|
2077
2074
|
} | {
|
|
2078
|
-
mutate:
|
|
2075
|
+
mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth.Prettify<{
|
|
2079
2076
|
id: string;
|
|
2080
2077
|
} & {
|
|
2081
2078
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -2085,7 +2082,7 @@ declare function useDeletePasskey(options?: Partial<AuthQueryOptions>): {
|
|
|
2085
2082
|
previousData: {};
|
|
2086
2083
|
} | undefined>;
|
|
2087
2084
|
mutateAsync: {
|
|
2088
|
-
(params: Omit<
|
|
2085
|
+
(params: Omit<better_auth.Prettify<{
|
|
2089
2086
|
id: string;
|
|
2090
2087
|
} & {
|
|
2091
2088
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -2096,7 +2093,7 @@ declare function useDeletePasskey(options?: Partial<AuthQueryOptions>): {
|
|
|
2096
2093
|
throw?: true;
|
|
2097
2094
|
} | undefined;
|
|
2098
2095
|
}): Promise<ThrowableResult>;
|
|
2099
|
-
(params: Omit<
|
|
2096
|
+
(params: Omit<better_auth.Prettify<{
|
|
2100
2097
|
id: string;
|
|
2101
2098
|
} & {
|
|
2102
2099
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -2109,7 +2106,7 @@ declare function useDeletePasskey(options?: Partial<AuthQueryOptions>): {
|
|
|
2109
2106
|
isPending: boolean;
|
|
2110
2107
|
error: Error | null;
|
|
2111
2108
|
data: NonThrowableResult | ThrowableResult;
|
|
2112
|
-
variables:
|
|
2109
|
+
variables: better_auth.Prettify<{
|
|
2113
2110
|
id: string;
|
|
2114
2111
|
} & {
|
|
2115
2112
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -2129,9 +2126,9 @@ declare function useDeletePasskey(options?: Partial<AuthQueryOptions>): {
|
|
|
2129
2126
|
isPaused: boolean;
|
|
2130
2127
|
submittedAt: number;
|
|
2131
2128
|
};
|
|
2132
|
-
declare function useListPasskeys(options?: Partial<AnyUseQueryOptions>):
|
|
2129
|
+
declare function useListPasskeys(options?: Partial<AnyUseQueryOptions>): _tanstack_react_query.UseQueryResult<Passkey[], Error>;
|
|
2133
2130
|
|
|
2134
|
-
declare function useListSessions(options?: Partial<AnyUseQueryOptions>):
|
|
2131
|
+
declare function useListSessions(options?: Partial<AnyUseQueryOptions>): _tanstack_react_query.UseQueryResult<better_auth.Prettify<{
|
|
2135
2132
|
id: string;
|
|
2136
2133
|
createdAt: Date;
|
|
2137
2134
|
updatedAt: Date;
|
|
@@ -2142,14 +2139,14 @@ declare function useListSessions(options?: Partial<AnyUseQueryOptions>): _pelatf
|
|
|
2142
2139
|
userAgent?: string | null | undefined | undefined;
|
|
2143
2140
|
}>[], Error>;
|
|
2144
2141
|
declare function useRevokeOtherSessions(options?: Partial<AuthQueryOptions>): {
|
|
2145
|
-
mutate:
|
|
2142
|
+
mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth.Prettify<{
|
|
2146
2143
|
query?: Record<string, any> | undefined;
|
|
2147
2144
|
fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
2148
2145
|
}> | undefined, {
|
|
2149
2146
|
previousData: {};
|
|
2150
2147
|
} | undefined>;
|
|
2151
2148
|
mutateAsync: {
|
|
2152
|
-
(params: Omit<
|
|
2149
|
+
(params: Omit<better_auth.Prettify<{
|
|
2153
2150
|
query?: Record<string, any> | undefined;
|
|
2154
2151
|
fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
2155
2152
|
}> | undefined, "fetchOptions"> & {
|
|
@@ -2157,7 +2154,7 @@ declare function useRevokeOtherSessions(options?: Partial<AuthQueryOptions>): {
|
|
|
2157
2154
|
throw?: true;
|
|
2158
2155
|
} | undefined;
|
|
2159
2156
|
}): Promise<ThrowableResult>;
|
|
2160
|
-
(params: Omit<
|
|
2157
|
+
(params: Omit<better_auth.Prettify<{
|
|
2161
2158
|
query?: Record<string, any> | undefined;
|
|
2162
2159
|
fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
2163
2160
|
}> | undefined, "fetchOptions"> & {
|
|
@@ -2181,14 +2178,14 @@ declare function useRevokeOtherSessions(options?: Partial<AuthQueryOptions>): {
|
|
|
2181
2178
|
isPaused: boolean;
|
|
2182
2179
|
submittedAt: number;
|
|
2183
2180
|
} | {
|
|
2184
|
-
mutate:
|
|
2181
|
+
mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth.Prettify<{
|
|
2185
2182
|
query?: Record<string, any> | undefined;
|
|
2186
2183
|
fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
2187
2184
|
}> | undefined, {
|
|
2188
2185
|
previousData: {};
|
|
2189
2186
|
} | undefined>;
|
|
2190
2187
|
mutateAsync: {
|
|
2191
|
-
(params: Omit<
|
|
2188
|
+
(params: Omit<better_auth.Prettify<{
|
|
2192
2189
|
query?: Record<string, any> | undefined;
|
|
2193
2190
|
fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
2194
2191
|
}> | undefined, "fetchOptions"> & {
|
|
@@ -2196,7 +2193,7 @@ declare function useRevokeOtherSessions(options?: Partial<AuthQueryOptions>): {
|
|
|
2196
2193
|
throw?: true;
|
|
2197
2194
|
} | undefined;
|
|
2198
2195
|
}): Promise<ThrowableResult>;
|
|
2199
|
-
(params: Omit<
|
|
2196
|
+
(params: Omit<better_auth.Prettify<{
|
|
2200
2197
|
query?: Record<string, any> | undefined;
|
|
2201
2198
|
fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
2202
2199
|
}> | undefined, "fetchOptions"> & {
|
|
@@ -2206,7 +2203,7 @@ declare function useRevokeOtherSessions(options?: Partial<AuthQueryOptions>): {
|
|
|
2206
2203
|
isPending: boolean;
|
|
2207
2204
|
error: Error | null;
|
|
2208
2205
|
data: undefined;
|
|
2209
|
-
variables:
|
|
2206
|
+
variables: better_auth.Prettify<{
|
|
2210
2207
|
query?: Record<string, any> | undefined;
|
|
2211
2208
|
fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
2212
2209
|
}> | undefined;
|
|
@@ -2223,14 +2220,14 @@ declare function useRevokeOtherSessions(options?: Partial<AuthQueryOptions>): {
|
|
|
2223
2220
|
isPaused: boolean;
|
|
2224
2221
|
submittedAt: number;
|
|
2225
2222
|
} | {
|
|
2226
|
-
mutate:
|
|
2223
|
+
mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth.Prettify<{
|
|
2227
2224
|
query?: Record<string, any> | undefined;
|
|
2228
2225
|
fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
2229
2226
|
}> | undefined, {
|
|
2230
2227
|
previousData: {};
|
|
2231
2228
|
} | undefined>;
|
|
2232
2229
|
mutateAsync: {
|
|
2233
|
-
(params: Omit<
|
|
2230
|
+
(params: Omit<better_auth.Prettify<{
|
|
2234
2231
|
query?: Record<string, any> | undefined;
|
|
2235
2232
|
fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
2236
2233
|
}> | undefined, "fetchOptions"> & {
|
|
@@ -2238,7 +2235,7 @@ declare function useRevokeOtherSessions(options?: Partial<AuthQueryOptions>): {
|
|
|
2238
2235
|
throw?: true;
|
|
2239
2236
|
} | undefined;
|
|
2240
2237
|
}): Promise<ThrowableResult>;
|
|
2241
|
-
(params: Omit<
|
|
2238
|
+
(params: Omit<better_auth.Prettify<{
|
|
2242
2239
|
query?: Record<string, any> | undefined;
|
|
2243
2240
|
fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
2244
2241
|
}> | undefined, "fetchOptions"> & {
|
|
@@ -2248,7 +2245,7 @@ declare function useRevokeOtherSessions(options?: Partial<AuthQueryOptions>): {
|
|
|
2248
2245
|
isPending: boolean;
|
|
2249
2246
|
error: Error | null;
|
|
2250
2247
|
data: undefined;
|
|
2251
|
-
variables:
|
|
2248
|
+
variables: better_auth.Prettify<{
|
|
2252
2249
|
query?: Record<string, any> | undefined;
|
|
2253
2250
|
fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
2254
2251
|
}> | undefined;
|
|
@@ -2265,14 +2262,14 @@ declare function useRevokeOtherSessions(options?: Partial<AuthQueryOptions>): {
|
|
|
2265
2262
|
isPaused: boolean;
|
|
2266
2263
|
submittedAt: number;
|
|
2267
2264
|
} | {
|
|
2268
|
-
mutate:
|
|
2265
|
+
mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth.Prettify<{
|
|
2269
2266
|
query?: Record<string, any> | undefined;
|
|
2270
2267
|
fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
2271
2268
|
}> | undefined, {
|
|
2272
2269
|
previousData: {};
|
|
2273
2270
|
} | undefined>;
|
|
2274
2271
|
mutateAsync: {
|
|
2275
|
-
(params: Omit<
|
|
2272
|
+
(params: Omit<better_auth.Prettify<{
|
|
2276
2273
|
query?: Record<string, any> | undefined;
|
|
2277
2274
|
fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
2278
2275
|
}> | undefined, "fetchOptions"> & {
|
|
@@ -2280,7 +2277,7 @@ declare function useRevokeOtherSessions(options?: Partial<AuthQueryOptions>): {
|
|
|
2280
2277
|
throw?: true;
|
|
2281
2278
|
} | undefined;
|
|
2282
2279
|
}): Promise<ThrowableResult>;
|
|
2283
|
-
(params: Omit<
|
|
2280
|
+
(params: Omit<better_auth.Prettify<{
|
|
2284
2281
|
query?: Record<string, any> | undefined;
|
|
2285
2282
|
fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
2286
2283
|
}> | undefined, "fetchOptions"> & {
|
|
@@ -2290,7 +2287,7 @@ declare function useRevokeOtherSessions(options?: Partial<AuthQueryOptions>): {
|
|
|
2290
2287
|
isPending: boolean;
|
|
2291
2288
|
error: Error | null;
|
|
2292
2289
|
data: NonThrowableResult | ThrowableResult;
|
|
2293
|
-
variables:
|
|
2290
|
+
variables: better_auth.Prettify<{
|
|
2294
2291
|
query?: Record<string, any> | undefined;
|
|
2295
2292
|
fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
2296
2293
|
}> | undefined;
|
|
@@ -2308,7 +2305,7 @@ declare function useRevokeOtherSessions(options?: Partial<AuthQueryOptions>): {
|
|
|
2308
2305
|
submittedAt: number;
|
|
2309
2306
|
};
|
|
2310
2307
|
declare function useRevokeSession(options?: Partial<AuthQueryOptions>): {
|
|
2311
|
-
mutate:
|
|
2308
|
+
mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth.Prettify<{
|
|
2312
2309
|
token: string;
|
|
2313
2310
|
} & {
|
|
2314
2311
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -2318,7 +2315,7 @@ declare function useRevokeSession(options?: Partial<AuthQueryOptions>): {
|
|
|
2318
2315
|
previousData: {};
|
|
2319
2316
|
} | undefined>;
|
|
2320
2317
|
mutateAsync: {
|
|
2321
|
-
(params: Omit<
|
|
2318
|
+
(params: Omit<better_auth.Prettify<{
|
|
2322
2319
|
token: string;
|
|
2323
2320
|
} & {
|
|
2324
2321
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -2329,7 +2326,7 @@ declare function useRevokeSession(options?: Partial<AuthQueryOptions>): {
|
|
|
2329
2326
|
throw?: true;
|
|
2330
2327
|
} | undefined;
|
|
2331
2328
|
}): Promise<ThrowableResult>;
|
|
2332
|
-
(params: Omit<
|
|
2329
|
+
(params: Omit<better_auth.Prettify<{
|
|
2333
2330
|
token: string;
|
|
2334
2331
|
} & {
|
|
2335
2332
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -2356,7 +2353,7 @@ declare function useRevokeSession(options?: Partial<AuthQueryOptions>): {
|
|
|
2356
2353
|
isPaused: boolean;
|
|
2357
2354
|
submittedAt: number;
|
|
2358
2355
|
} | {
|
|
2359
|
-
mutate:
|
|
2356
|
+
mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth.Prettify<{
|
|
2360
2357
|
token: string;
|
|
2361
2358
|
} & {
|
|
2362
2359
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -2366,7 +2363,7 @@ declare function useRevokeSession(options?: Partial<AuthQueryOptions>): {
|
|
|
2366
2363
|
previousData: {};
|
|
2367
2364
|
} | undefined>;
|
|
2368
2365
|
mutateAsync: {
|
|
2369
|
-
(params: Omit<
|
|
2366
|
+
(params: Omit<better_auth.Prettify<{
|
|
2370
2367
|
token: string;
|
|
2371
2368
|
} & {
|
|
2372
2369
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -2377,7 +2374,7 @@ declare function useRevokeSession(options?: Partial<AuthQueryOptions>): {
|
|
|
2377
2374
|
throw?: true;
|
|
2378
2375
|
} | undefined;
|
|
2379
2376
|
}): Promise<ThrowableResult>;
|
|
2380
|
-
(params: Omit<
|
|
2377
|
+
(params: Omit<better_auth.Prettify<{
|
|
2381
2378
|
token: string;
|
|
2382
2379
|
} & {
|
|
2383
2380
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -2390,7 +2387,7 @@ declare function useRevokeSession(options?: Partial<AuthQueryOptions>): {
|
|
|
2390
2387
|
isPending: boolean;
|
|
2391
2388
|
error: Error | null;
|
|
2392
2389
|
data: undefined;
|
|
2393
|
-
variables:
|
|
2390
|
+
variables: better_auth.Prettify<{
|
|
2394
2391
|
token: string;
|
|
2395
2392
|
} & {
|
|
2396
2393
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -2410,7 +2407,7 @@ declare function useRevokeSession(options?: Partial<AuthQueryOptions>): {
|
|
|
2410
2407
|
isPaused: boolean;
|
|
2411
2408
|
submittedAt: number;
|
|
2412
2409
|
} | {
|
|
2413
|
-
mutate:
|
|
2410
|
+
mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth.Prettify<{
|
|
2414
2411
|
token: string;
|
|
2415
2412
|
} & {
|
|
2416
2413
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -2420,7 +2417,7 @@ declare function useRevokeSession(options?: Partial<AuthQueryOptions>): {
|
|
|
2420
2417
|
previousData: {};
|
|
2421
2418
|
} | undefined>;
|
|
2422
2419
|
mutateAsync: {
|
|
2423
|
-
(params: Omit<
|
|
2420
|
+
(params: Omit<better_auth.Prettify<{
|
|
2424
2421
|
token: string;
|
|
2425
2422
|
} & {
|
|
2426
2423
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -2431,7 +2428,7 @@ declare function useRevokeSession(options?: Partial<AuthQueryOptions>): {
|
|
|
2431
2428
|
throw?: true;
|
|
2432
2429
|
} | undefined;
|
|
2433
2430
|
}): Promise<ThrowableResult>;
|
|
2434
|
-
(params: Omit<
|
|
2431
|
+
(params: Omit<better_auth.Prettify<{
|
|
2435
2432
|
token: string;
|
|
2436
2433
|
} & {
|
|
2437
2434
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -2444,7 +2441,7 @@ declare function useRevokeSession(options?: Partial<AuthQueryOptions>): {
|
|
|
2444
2441
|
isPending: boolean;
|
|
2445
2442
|
error: Error | null;
|
|
2446
2443
|
data: undefined;
|
|
2447
|
-
variables:
|
|
2444
|
+
variables: better_auth.Prettify<{
|
|
2448
2445
|
token: string;
|
|
2449
2446
|
} & {
|
|
2450
2447
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -2464,7 +2461,7 @@ declare function useRevokeSession(options?: Partial<AuthQueryOptions>): {
|
|
|
2464
2461
|
isPaused: boolean;
|
|
2465
2462
|
submittedAt: number;
|
|
2466
2463
|
} | {
|
|
2467
|
-
mutate:
|
|
2464
|
+
mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth.Prettify<{
|
|
2468
2465
|
token: string;
|
|
2469
2466
|
} & {
|
|
2470
2467
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -2474,7 +2471,7 @@ declare function useRevokeSession(options?: Partial<AuthQueryOptions>): {
|
|
|
2474
2471
|
previousData: {};
|
|
2475
2472
|
} | undefined>;
|
|
2476
2473
|
mutateAsync: {
|
|
2477
|
-
(params: Omit<
|
|
2474
|
+
(params: Omit<better_auth.Prettify<{
|
|
2478
2475
|
token: string;
|
|
2479
2476
|
} & {
|
|
2480
2477
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -2485,7 +2482,7 @@ declare function useRevokeSession(options?: Partial<AuthQueryOptions>): {
|
|
|
2485
2482
|
throw?: true;
|
|
2486
2483
|
} | undefined;
|
|
2487
2484
|
}): Promise<ThrowableResult>;
|
|
2488
|
-
(params: Omit<
|
|
2485
|
+
(params: Omit<better_auth.Prettify<{
|
|
2489
2486
|
token: string;
|
|
2490
2487
|
} & {
|
|
2491
2488
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -2498,7 +2495,7 @@ declare function useRevokeSession(options?: Partial<AuthQueryOptions>): {
|
|
|
2498
2495
|
isPending: boolean;
|
|
2499
2496
|
error: Error | null;
|
|
2500
2497
|
data: NonThrowableResult | ThrowableResult;
|
|
2501
|
-
variables:
|
|
2498
|
+
variables: better_auth.Prettify<{
|
|
2502
2499
|
token: string;
|
|
2503
2500
|
} & {
|
|
2504
2501
|
fetchOptions?: better_auth.ClientFetchOption<Partial<{
|
|
@@ -2519,14 +2516,14 @@ declare function useRevokeSession(options?: Partial<AuthQueryOptions>): {
|
|
|
2519
2516
|
submittedAt: number;
|
|
2520
2517
|
};
|
|
2521
2518
|
declare function useRevokeSessions(options?: Partial<AuthQueryOptions>): {
|
|
2522
|
-
mutate:
|
|
2519
|
+
mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth.Prettify<{
|
|
2523
2520
|
query?: Record<string, any> | undefined;
|
|
2524
2521
|
fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
2525
2522
|
}> | undefined, {
|
|
2526
2523
|
previousData: {};
|
|
2527
2524
|
} | undefined>;
|
|
2528
2525
|
mutateAsync: {
|
|
2529
|
-
(params: Omit<
|
|
2526
|
+
(params: Omit<better_auth.Prettify<{
|
|
2530
2527
|
query?: Record<string, any> | undefined;
|
|
2531
2528
|
fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
2532
2529
|
}> | undefined, "fetchOptions"> & {
|
|
@@ -2534,7 +2531,7 @@ declare function useRevokeSessions(options?: Partial<AuthQueryOptions>): {
|
|
|
2534
2531
|
throw?: true;
|
|
2535
2532
|
} | undefined;
|
|
2536
2533
|
}): Promise<ThrowableResult>;
|
|
2537
|
-
(params: Omit<
|
|
2534
|
+
(params: Omit<better_auth.Prettify<{
|
|
2538
2535
|
query?: Record<string, any> | undefined;
|
|
2539
2536
|
fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
2540
2537
|
}> | undefined, "fetchOptions"> & {
|
|
@@ -2558,14 +2555,14 @@ declare function useRevokeSessions(options?: Partial<AuthQueryOptions>): {
|
|
|
2558
2555
|
isPaused: boolean;
|
|
2559
2556
|
submittedAt: number;
|
|
2560
2557
|
} | {
|
|
2561
|
-
mutate:
|
|
2558
|
+
mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth.Prettify<{
|
|
2562
2559
|
query?: Record<string, any> | undefined;
|
|
2563
2560
|
fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
2564
2561
|
}> | undefined, {
|
|
2565
2562
|
previousData: {};
|
|
2566
2563
|
} | undefined>;
|
|
2567
2564
|
mutateAsync: {
|
|
2568
|
-
(params: Omit<
|
|
2565
|
+
(params: Omit<better_auth.Prettify<{
|
|
2569
2566
|
query?: Record<string, any> | undefined;
|
|
2570
2567
|
fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
2571
2568
|
}> | undefined, "fetchOptions"> & {
|
|
@@ -2573,7 +2570,7 @@ declare function useRevokeSessions(options?: Partial<AuthQueryOptions>): {
|
|
|
2573
2570
|
throw?: true;
|
|
2574
2571
|
} | undefined;
|
|
2575
2572
|
}): Promise<ThrowableResult>;
|
|
2576
|
-
(params: Omit<
|
|
2573
|
+
(params: Omit<better_auth.Prettify<{
|
|
2577
2574
|
query?: Record<string, any> | undefined;
|
|
2578
2575
|
fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
2579
2576
|
}> | undefined, "fetchOptions"> & {
|
|
@@ -2583,7 +2580,7 @@ declare function useRevokeSessions(options?: Partial<AuthQueryOptions>): {
|
|
|
2583
2580
|
isPending: boolean;
|
|
2584
2581
|
error: Error | null;
|
|
2585
2582
|
data: undefined;
|
|
2586
|
-
variables:
|
|
2583
|
+
variables: better_auth.Prettify<{
|
|
2587
2584
|
query?: Record<string, any> | undefined;
|
|
2588
2585
|
fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
2589
2586
|
}> | undefined;
|
|
@@ -2600,14 +2597,14 @@ declare function useRevokeSessions(options?: Partial<AuthQueryOptions>): {
|
|
|
2600
2597
|
isPaused: boolean;
|
|
2601
2598
|
submittedAt: number;
|
|
2602
2599
|
} | {
|
|
2603
|
-
mutate:
|
|
2600
|
+
mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth.Prettify<{
|
|
2604
2601
|
query?: Record<string, any> | undefined;
|
|
2605
2602
|
fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
2606
2603
|
}> | undefined, {
|
|
2607
2604
|
previousData: {};
|
|
2608
2605
|
} | undefined>;
|
|
2609
2606
|
mutateAsync: {
|
|
2610
|
-
(params: Omit<
|
|
2607
|
+
(params: Omit<better_auth.Prettify<{
|
|
2611
2608
|
query?: Record<string, any> | undefined;
|
|
2612
2609
|
fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
2613
2610
|
}> | undefined, "fetchOptions"> & {
|
|
@@ -2615,7 +2612,7 @@ declare function useRevokeSessions(options?: Partial<AuthQueryOptions>): {
|
|
|
2615
2612
|
throw?: true;
|
|
2616
2613
|
} | undefined;
|
|
2617
2614
|
}): Promise<ThrowableResult>;
|
|
2618
|
-
(params: Omit<
|
|
2615
|
+
(params: Omit<better_auth.Prettify<{
|
|
2619
2616
|
query?: Record<string, any> | undefined;
|
|
2620
2617
|
fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
2621
2618
|
}> | undefined, "fetchOptions"> & {
|
|
@@ -2625,7 +2622,7 @@ declare function useRevokeSessions(options?: Partial<AuthQueryOptions>): {
|
|
|
2625
2622
|
isPending: boolean;
|
|
2626
2623
|
error: Error | null;
|
|
2627
2624
|
data: undefined;
|
|
2628
|
-
variables:
|
|
2625
|
+
variables: better_auth.Prettify<{
|
|
2629
2626
|
query?: Record<string, any> | undefined;
|
|
2630
2627
|
fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
2631
2628
|
}> | undefined;
|
|
@@ -2642,14 +2639,14 @@ declare function useRevokeSessions(options?: Partial<AuthQueryOptions>): {
|
|
|
2642
2639
|
isPaused: boolean;
|
|
2643
2640
|
submittedAt: number;
|
|
2644
2641
|
} | {
|
|
2645
|
-
mutate:
|
|
2642
|
+
mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth.Prettify<{
|
|
2646
2643
|
query?: Record<string, any> | undefined;
|
|
2647
2644
|
fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
2648
2645
|
}> | undefined, {
|
|
2649
2646
|
previousData: {};
|
|
2650
2647
|
} | undefined>;
|
|
2651
2648
|
mutateAsync: {
|
|
2652
|
-
(params: Omit<
|
|
2649
|
+
(params: Omit<better_auth.Prettify<{
|
|
2653
2650
|
query?: Record<string, any> | undefined;
|
|
2654
2651
|
fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
2655
2652
|
}> | undefined, "fetchOptions"> & {
|
|
@@ -2657,7 +2654,7 @@ declare function useRevokeSessions(options?: Partial<AuthQueryOptions>): {
|
|
|
2657
2654
|
throw?: true;
|
|
2658
2655
|
} | undefined;
|
|
2659
2656
|
}): Promise<ThrowableResult>;
|
|
2660
|
-
(params: Omit<
|
|
2657
|
+
(params: Omit<better_auth.Prettify<{
|
|
2661
2658
|
query?: Record<string, any> | undefined;
|
|
2662
2659
|
fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
2663
2660
|
}> | undefined, "fetchOptions"> & {
|
|
@@ -2667,7 +2664,7 @@ declare function useRevokeSessions(options?: Partial<AuthQueryOptions>): {
|
|
|
2667
2664
|
isPending: boolean;
|
|
2668
2665
|
error: Error | null;
|
|
2669
2666
|
data: NonThrowableResult | ThrowableResult;
|
|
2670
|
-
variables:
|
|
2667
|
+
variables: better_auth.Prettify<{
|
|
2671
2668
|
query?: Record<string, any> | undefined;
|
|
2672
2669
|
fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
2673
2670
|
}> | undefined;
|
|
@@ -3359,12 +3356,12 @@ declare function useSession(options?: Partial<AnyUseQueryOptions>): {
|
|
|
3359
3356
|
};
|
|
3360
3357
|
|
|
3361
3358
|
declare function useUpdateUser(options?: Partial<AuthQueryOptions>): {
|
|
3362
|
-
mutate:
|
|
3359
|
+
mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth.Prettify<{
|
|
3363
3360
|
image?: (string | null) | undefined;
|
|
3364
3361
|
name?: string | undefined;
|
|
3365
3362
|
fetchOptions?: better_auth.ClientFetchOption<Partial<Partial<{}> & {
|
|
3366
3363
|
name?: string | undefined;
|
|
3367
|
-
image?: string | undefined;
|
|
3364
|
+
image?: string | undefined | null;
|
|
3368
3365
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
3369
3366
|
} & Partial<{} & {} & {} & {
|
|
3370
3367
|
phoneNumber?: string | null | undefined;
|
|
@@ -3375,12 +3372,12 @@ declare function useUpdateUser(options?: Partial<AuthQueryOptions>): {
|
|
|
3375
3372
|
previousData: {};
|
|
3376
3373
|
} | undefined>;
|
|
3377
3374
|
mutateAsync: {
|
|
3378
|
-
(params: Omit<
|
|
3375
|
+
(params: Omit<better_auth.Prettify<{
|
|
3379
3376
|
image?: (string | null) | undefined;
|
|
3380
3377
|
name?: string | undefined;
|
|
3381
3378
|
fetchOptions?: better_auth.ClientFetchOption<Partial<Partial<{}> & {
|
|
3382
3379
|
name?: string | undefined;
|
|
3383
|
-
image?: string | undefined;
|
|
3380
|
+
image?: string | undefined | null;
|
|
3384
3381
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
3385
3382
|
} & Partial<{} & {} & {} & {
|
|
3386
3383
|
phoneNumber?: string | null | undefined;
|
|
@@ -3392,12 +3389,12 @@ declare function useUpdateUser(options?: Partial<AuthQueryOptions>): {
|
|
|
3392
3389
|
throw?: true;
|
|
3393
3390
|
} | undefined;
|
|
3394
3391
|
}): Promise<ThrowableResult>;
|
|
3395
|
-
(params: Omit<
|
|
3392
|
+
(params: Omit<better_auth.Prettify<{
|
|
3396
3393
|
image?: (string | null) | undefined;
|
|
3397
3394
|
name?: string | undefined;
|
|
3398
3395
|
fetchOptions?: better_auth.ClientFetchOption<Partial<Partial<{}> & {
|
|
3399
3396
|
name?: string | undefined;
|
|
3400
|
-
image?: string | undefined;
|
|
3397
|
+
image?: string | undefined | null;
|
|
3401
3398
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
3402
3399
|
} & Partial<{} & {} & {} & {
|
|
3403
3400
|
phoneNumber?: string | null | undefined;
|
|
@@ -3425,12 +3422,12 @@ declare function useUpdateUser(options?: Partial<AuthQueryOptions>): {
|
|
|
3425
3422
|
isPaused: boolean;
|
|
3426
3423
|
submittedAt: number;
|
|
3427
3424
|
} | {
|
|
3428
|
-
mutate:
|
|
3425
|
+
mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth.Prettify<{
|
|
3429
3426
|
image?: (string | null) | undefined;
|
|
3430
3427
|
name?: string | undefined;
|
|
3431
3428
|
fetchOptions?: better_auth.ClientFetchOption<Partial<Partial<{}> & {
|
|
3432
3429
|
name?: string | undefined;
|
|
3433
|
-
image?: string | undefined;
|
|
3430
|
+
image?: string | undefined | null;
|
|
3434
3431
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
3435
3432
|
} & Partial<{} & {} & {} & {
|
|
3436
3433
|
phoneNumber?: string | null | undefined;
|
|
@@ -3441,12 +3438,12 @@ declare function useUpdateUser(options?: Partial<AuthQueryOptions>): {
|
|
|
3441
3438
|
previousData: {};
|
|
3442
3439
|
} | undefined>;
|
|
3443
3440
|
mutateAsync: {
|
|
3444
|
-
(params: Omit<
|
|
3441
|
+
(params: Omit<better_auth.Prettify<{
|
|
3445
3442
|
image?: (string | null) | undefined;
|
|
3446
3443
|
name?: string | undefined;
|
|
3447
3444
|
fetchOptions?: better_auth.ClientFetchOption<Partial<Partial<{}> & {
|
|
3448
3445
|
name?: string | undefined;
|
|
3449
|
-
image?: string | undefined;
|
|
3446
|
+
image?: string | undefined | null;
|
|
3450
3447
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
3451
3448
|
} & Partial<{} & {} & {} & {
|
|
3452
3449
|
phoneNumber?: string | null | undefined;
|
|
@@ -3458,12 +3455,12 @@ declare function useUpdateUser(options?: Partial<AuthQueryOptions>): {
|
|
|
3458
3455
|
throw?: true;
|
|
3459
3456
|
} | undefined;
|
|
3460
3457
|
}): Promise<ThrowableResult>;
|
|
3461
|
-
(params: Omit<
|
|
3458
|
+
(params: Omit<better_auth.Prettify<{
|
|
3462
3459
|
image?: (string | null) | undefined;
|
|
3463
3460
|
name?: string | undefined;
|
|
3464
3461
|
fetchOptions?: better_auth.ClientFetchOption<Partial<Partial<{}> & {
|
|
3465
3462
|
name?: string | undefined;
|
|
3466
|
-
image?: string | undefined;
|
|
3463
|
+
image?: string | undefined | null;
|
|
3467
3464
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
3468
3465
|
} & Partial<{} & {} & {} & {
|
|
3469
3466
|
phoneNumber?: string | null | undefined;
|
|
@@ -3477,12 +3474,12 @@ declare function useUpdateUser(options?: Partial<AuthQueryOptions>): {
|
|
|
3477
3474
|
isPending: boolean;
|
|
3478
3475
|
error: Error | null;
|
|
3479
3476
|
data: undefined;
|
|
3480
|
-
variables:
|
|
3477
|
+
variables: better_auth.Prettify<{
|
|
3481
3478
|
image?: (string | null) | undefined;
|
|
3482
3479
|
name?: string | undefined;
|
|
3483
3480
|
fetchOptions?: better_auth.ClientFetchOption<Partial<Partial<{}> & {
|
|
3484
3481
|
name?: string | undefined;
|
|
3485
|
-
image?: string | undefined;
|
|
3482
|
+
image?: string | undefined | null;
|
|
3486
3483
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
3487
3484
|
} & Partial<{} & {} & {} & {
|
|
3488
3485
|
phoneNumber?: string | null | undefined;
|
|
@@ -3503,12 +3500,12 @@ declare function useUpdateUser(options?: Partial<AuthQueryOptions>): {
|
|
|
3503
3500
|
isPaused: boolean;
|
|
3504
3501
|
submittedAt: number;
|
|
3505
3502
|
} | {
|
|
3506
|
-
mutate:
|
|
3503
|
+
mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth.Prettify<{
|
|
3507
3504
|
image?: (string | null) | undefined;
|
|
3508
3505
|
name?: string | undefined;
|
|
3509
3506
|
fetchOptions?: better_auth.ClientFetchOption<Partial<Partial<{}> & {
|
|
3510
3507
|
name?: string | undefined;
|
|
3511
|
-
image?: string | undefined;
|
|
3508
|
+
image?: string | undefined | null;
|
|
3512
3509
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
3513
3510
|
} & Partial<{} & {} & {} & {
|
|
3514
3511
|
phoneNumber?: string | null | undefined;
|
|
@@ -3519,12 +3516,12 @@ declare function useUpdateUser(options?: Partial<AuthQueryOptions>): {
|
|
|
3519
3516
|
previousData: {};
|
|
3520
3517
|
} | undefined>;
|
|
3521
3518
|
mutateAsync: {
|
|
3522
|
-
(params: Omit<
|
|
3519
|
+
(params: Omit<better_auth.Prettify<{
|
|
3523
3520
|
image?: (string | null) | undefined;
|
|
3524
3521
|
name?: string | undefined;
|
|
3525
3522
|
fetchOptions?: better_auth.ClientFetchOption<Partial<Partial<{}> & {
|
|
3526
3523
|
name?: string | undefined;
|
|
3527
|
-
image?: string | undefined;
|
|
3524
|
+
image?: string | undefined | null;
|
|
3528
3525
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
3529
3526
|
} & Partial<{} & {} & {} & {
|
|
3530
3527
|
phoneNumber?: string | null | undefined;
|
|
@@ -3536,12 +3533,12 @@ declare function useUpdateUser(options?: Partial<AuthQueryOptions>): {
|
|
|
3536
3533
|
throw?: true;
|
|
3537
3534
|
} | undefined;
|
|
3538
3535
|
}): Promise<ThrowableResult>;
|
|
3539
|
-
(params: Omit<
|
|
3536
|
+
(params: Omit<better_auth.Prettify<{
|
|
3540
3537
|
image?: (string | null) | undefined;
|
|
3541
3538
|
name?: string | undefined;
|
|
3542
3539
|
fetchOptions?: better_auth.ClientFetchOption<Partial<Partial<{}> & {
|
|
3543
3540
|
name?: string | undefined;
|
|
3544
|
-
image?: string | undefined;
|
|
3541
|
+
image?: string | undefined | null;
|
|
3545
3542
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
3546
3543
|
} & Partial<{} & {} & {} & {
|
|
3547
3544
|
phoneNumber?: string | null | undefined;
|
|
@@ -3555,12 +3552,12 @@ declare function useUpdateUser(options?: Partial<AuthQueryOptions>): {
|
|
|
3555
3552
|
isPending: boolean;
|
|
3556
3553
|
error: Error | null;
|
|
3557
3554
|
data: undefined;
|
|
3558
|
-
variables:
|
|
3555
|
+
variables: better_auth.Prettify<{
|
|
3559
3556
|
image?: (string | null) | undefined;
|
|
3560
3557
|
name?: string | undefined;
|
|
3561
3558
|
fetchOptions?: better_auth.ClientFetchOption<Partial<Partial<{}> & {
|
|
3562
3559
|
name?: string | undefined;
|
|
3563
|
-
image?: string | undefined;
|
|
3560
|
+
image?: string | undefined | null;
|
|
3564
3561
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
3565
3562
|
} & Partial<{} & {} & {} & {
|
|
3566
3563
|
phoneNumber?: string | null | undefined;
|
|
@@ -3581,12 +3578,12 @@ declare function useUpdateUser(options?: Partial<AuthQueryOptions>): {
|
|
|
3581
3578
|
isPaused: boolean;
|
|
3582
3579
|
submittedAt: number;
|
|
3583
3580
|
} | {
|
|
3584
|
-
mutate:
|
|
3581
|
+
mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth.Prettify<{
|
|
3585
3582
|
image?: (string | null) | undefined;
|
|
3586
3583
|
name?: string | undefined;
|
|
3587
3584
|
fetchOptions?: better_auth.ClientFetchOption<Partial<Partial<{}> & {
|
|
3588
3585
|
name?: string | undefined;
|
|
3589
|
-
image?: string | undefined;
|
|
3586
|
+
image?: string | undefined | null;
|
|
3590
3587
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
3591
3588
|
} & Partial<{} & {} & {} & {
|
|
3592
3589
|
phoneNumber?: string | null | undefined;
|
|
@@ -3597,12 +3594,12 @@ declare function useUpdateUser(options?: Partial<AuthQueryOptions>): {
|
|
|
3597
3594
|
previousData: {};
|
|
3598
3595
|
} | undefined>;
|
|
3599
3596
|
mutateAsync: {
|
|
3600
|
-
(params: Omit<
|
|
3597
|
+
(params: Omit<better_auth.Prettify<{
|
|
3601
3598
|
image?: (string | null) | undefined;
|
|
3602
3599
|
name?: string | undefined;
|
|
3603
3600
|
fetchOptions?: better_auth.ClientFetchOption<Partial<Partial<{}> & {
|
|
3604
3601
|
name?: string | undefined;
|
|
3605
|
-
image?: string | undefined;
|
|
3602
|
+
image?: string | undefined | null;
|
|
3606
3603
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
3607
3604
|
} & Partial<{} & {} & {} & {
|
|
3608
3605
|
phoneNumber?: string | null | undefined;
|
|
@@ -3614,12 +3611,12 @@ declare function useUpdateUser(options?: Partial<AuthQueryOptions>): {
|
|
|
3614
3611
|
throw?: true;
|
|
3615
3612
|
} | undefined;
|
|
3616
3613
|
}): Promise<ThrowableResult>;
|
|
3617
|
-
(params: Omit<
|
|
3614
|
+
(params: Omit<better_auth.Prettify<{
|
|
3618
3615
|
image?: (string | null) | undefined;
|
|
3619
3616
|
name?: string | undefined;
|
|
3620
3617
|
fetchOptions?: better_auth.ClientFetchOption<Partial<Partial<{}> & {
|
|
3621
3618
|
name?: string | undefined;
|
|
3622
|
-
image?: string | undefined;
|
|
3619
|
+
image?: string | undefined | null;
|
|
3623
3620
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
3624
3621
|
} & Partial<{} & {} & {} & {
|
|
3625
3622
|
phoneNumber?: string | null | undefined;
|
|
@@ -3633,12 +3630,12 @@ declare function useUpdateUser(options?: Partial<AuthQueryOptions>): {
|
|
|
3633
3630
|
isPending: boolean;
|
|
3634
3631
|
error: Error | null;
|
|
3635
3632
|
data: NonThrowableResult | ThrowableResult;
|
|
3636
|
-
variables:
|
|
3633
|
+
variables: better_auth.Prettify<{
|
|
3637
3634
|
image?: (string | null) | undefined;
|
|
3638
3635
|
name?: string | undefined;
|
|
3639
3636
|
fetchOptions?: better_auth.ClientFetchOption<Partial<Partial<{}> & {
|
|
3640
3637
|
name?: string | undefined;
|
|
3641
|
-
image?: string | undefined;
|
|
3638
|
+
image?: string | undefined | null;
|
|
3642
3639
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
3643
3640
|
} & Partial<{} & {} & {} & {
|
|
3644
3641
|
phoneNumber?: string | null | undefined;
|
|
@@ -3660,6 +3657,21 @@ declare function useUpdateUser(options?: Partial<AuthQueryOptions>): {
|
|
|
3660
3657
|
submittedAt: number;
|
|
3661
3658
|
};
|
|
3662
3659
|
|
|
3660
|
+
declare function useInvitation(params: Parameters<AuthClient["organization"]["getInvitation"]>[0], options?: Partial<AnyUseQueryOptions>): _tanstack_react_query.UseQueryResult<NonNullable<{
|
|
3661
|
+
id: string;
|
|
3662
|
+
organizationId: string;
|
|
3663
|
+
email: string;
|
|
3664
|
+
role: "admin" | "member" | "owner";
|
|
3665
|
+
status: better_auth_plugins_organization.InvitationStatus;
|
|
3666
|
+
inviterId: string;
|
|
3667
|
+
expiresAt: Date;
|
|
3668
|
+
createdAt: Date;
|
|
3669
|
+
} & {
|
|
3670
|
+
organizationName: string;
|
|
3671
|
+
organizationSlug: string;
|
|
3672
|
+
inviterEmail: string;
|
|
3673
|
+
}>, Error>;
|
|
3674
|
+
|
|
3663
3675
|
declare function BackupCodesDialog({ classNames, onOpenChange, title, description, backupCodes, ...props }: DialogComponentProps & {
|
|
3664
3676
|
backupCodes: string[];
|
|
3665
3677
|
}): react_jsx_runtime.JSX.Element;
|
|
@@ -3789,12 +3801,13 @@ interface AuthViewProps {
|
|
|
3789
3801
|
className?: string;
|
|
3790
3802
|
classNames?: AuthViewClassNames;
|
|
3791
3803
|
cardHeader?: ReactNode;
|
|
3804
|
+
enableAcceptInvitation?: boolean;
|
|
3792
3805
|
otpSeparators?: 0 | 1 | 2;
|
|
3793
3806
|
path?: string;
|
|
3794
3807
|
pathname?: string;
|
|
3795
3808
|
redirectTo?: string;
|
|
3796
|
-
socialLayout?:
|
|
3797
|
-
view?: keyof PathConfig[
|
|
3809
|
+
socialLayout?: "auto" | "horizontal" | "grid" | "vertical";
|
|
3810
|
+
view?: keyof PathConfig["auth"];
|
|
3798
3811
|
}
|
|
3799
3812
|
interface AuthFormProps {
|
|
3800
3813
|
className?: string;
|
|
@@ -3804,7 +3817,7 @@ interface AuthFormProps {
|
|
|
3804
3817
|
pathname?: string;
|
|
3805
3818
|
redirectTo?: string;
|
|
3806
3819
|
setIsSubmitting?: (isSubmitting: boolean) => void;
|
|
3807
|
-
view?: keyof PathConfig[
|
|
3820
|
+
view?: keyof PathConfig["auth"];
|
|
3808
3821
|
}
|
|
3809
3822
|
interface AuthButtonProps {
|
|
3810
3823
|
className?: string;
|
|
@@ -3812,7 +3825,7 @@ interface AuthButtonProps {
|
|
|
3812
3825
|
isSubmitting?: boolean;
|
|
3813
3826
|
redirectTo?: string;
|
|
3814
3827
|
setIsSubmitting?: (isSubmitting: boolean) => void;
|
|
3815
|
-
view?: keyof PathConfig[
|
|
3828
|
+
view?: keyof PathConfig["auth"];
|
|
3816
3829
|
}
|
|
3817
3830
|
|
|
3818
3831
|
declare function EmailOTPButton({ className, classNames, isSubmitting, view }: AuthButtonProps): react_jsx_runtime.JSX.Element;
|
|
@@ -3831,7 +3844,7 @@ declare function PasskeyButton({ className, classNames, isSubmitting, redirectTo
|
|
|
3831
3844
|
|
|
3832
3845
|
declare function ProviderButton({ className, classNames, isSubmitting, setIsSubmitting, provider, socialLayout, }: AuthButtonProps & {
|
|
3833
3846
|
provider: Provider;
|
|
3834
|
-
socialLayout:
|
|
3847
|
+
socialLayout: "auto" | "horizontal" | "grid" | "vertical";
|
|
3835
3848
|
}): react_jsx_runtime.JSX.Element;
|
|
3836
3849
|
|
|
3837
3850
|
declare function AuthCallback({ redirectTo }: {
|
|
@@ -3858,7 +3871,7 @@ declare function SignUpForm({ className, classNames, isSubmitting, redirectTo: r
|
|
|
3858
3871
|
|
|
3859
3872
|
declare function TwoFactorForm({ className, classNames, isSubmitting, otpSeparators, redirectTo: redirectToProp, setIsSubmitting, }: AuthFormProps): react_jsx_runtime.JSX.Element;
|
|
3860
3873
|
|
|
3861
|
-
declare function AuthView({ className, classNames, cardHeader, otpSeparators, path: pathProp, pathname, redirectTo, socialLayout: socialLayoutProp, view: viewProp, }: AuthViewProps): react_jsx_runtime.JSX.Element;
|
|
3874
|
+
declare function AuthView({ className, classNames, cardHeader, enableAcceptInvitation: enableAcceptInvitationProp, otpSeparators, path: pathProp, pathname, redirectTo, socialLayout: socialLayoutProp, view: viewProp, }: AuthViewProps): react_jsx_runtime.JSX.Element;
|
|
3862
3875
|
declare function AuthForm({ className, classNames, isSubmitting, otpSeparators, pathname, redirectTo, setIsSubmitting, view: viewProp, }: AuthFormProps): react_jsx_runtime.JSX.Element | null;
|
|
3863
3876
|
|
|
3864
3877
|
declare function AuthLayout({ children, logo, }: {
|
|
@@ -3894,17 +3907,24 @@ declare function SidebarContent({ children }: {
|
|
|
3894
3907
|
}): react_jsx_runtime.JSX.Element;
|
|
3895
3908
|
declare function SidebarContentMenu({ menu, type, }: {
|
|
3896
3909
|
menu: MenuItem[];
|
|
3897
|
-
type?:
|
|
3910
|
+
type?: "default" | "toggle";
|
|
3898
3911
|
}): react_jsx_runtime.JSX.Element;
|
|
3899
3912
|
|
|
3900
|
-
declare function SiteFooter(
|
|
3913
|
+
declare function SiteFooter({ disableProjectBy }: {
|
|
3914
|
+
disableProjectBy?: boolean;
|
|
3915
|
+
}): react_jsx_runtime.JSX.Element;
|
|
3901
3916
|
|
|
3902
3917
|
declare function SiteHeader({ menu, logo, }: {
|
|
3903
3918
|
menu: NavItem[];
|
|
3904
3919
|
logo?: ReactNode;
|
|
3905
3920
|
}): react_jsx_runtime.JSX.Element;
|
|
3921
|
+
declare function SiteHeaderSecondary({ menu, logo, loginLink, }: {
|
|
3922
|
+
menu: NavItem[];
|
|
3923
|
+
logo?: ReactNode;
|
|
3924
|
+
loginLink?: string;
|
|
3925
|
+
}): react_jsx_runtime.JSX.Element;
|
|
3906
3926
|
|
|
3907
|
-
type ToolbarItem =
|
|
3927
|
+
type ToolbarItem = "darkmode" | "help" | "language" | "onboarding";
|
|
3908
3928
|
type ToolbarProps = {
|
|
3909
3929
|
className?: string;
|
|
3910
3930
|
show?: ReadonlyArray<ToolbarItem>;
|
|
@@ -3919,6 +3939,13 @@ interface LayoutWrapperProps {
|
|
|
3919
3939
|
}
|
|
3920
3940
|
declare function LayoutWrapper({ children, sidebarHeader, sidebarMenu, logoHeader, }: LayoutWrapperProps): react_jsx_runtime.JSX.Element;
|
|
3921
3941
|
|
|
3942
|
+
interface AcceptInvitationProps {
|
|
3943
|
+
className?: string;
|
|
3944
|
+
classNames?: CardClassNames;
|
|
3945
|
+
redirectTo?: string;
|
|
3946
|
+
}
|
|
3947
|
+
declare function AcceptInvitation({ className, classNames, redirectTo: redirectToProp, }: AcceptInvitationProps): react_jsx_runtime.JSX.Element;
|
|
3948
|
+
|
|
3922
3949
|
interface LayoutProviderProps {
|
|
3923
3950
|
children: ReactNode;
|
|
3924
3951
|
style?: CSSProperties;
|
|
@@ -3933,8 +3960,9 @@ interface SharedProvidersProps {
|
|
|
3933
3960
|
locale: string;
|
|
3934
3961
|
messages: Record<string, string>;
|
|
3935
3962
|
timeZone?: string;
|
|
3963
|
+
sonnerPosition?: ComponentProps<typeof Toaster>["position"];
|
|
3936
3964
|
}
|
|
3937
|
-
declare function SharedProviders({ children, locale, messages, timeZone, }: SharedProvidersProps): react_jsx_runtime.JSX.Element;
|
|
3965
|
+
declare function SharedProviders({ children, locale, messages, timeZone, sonnerPosition, }: SharedProvidersProps): react_jsx_runtime.JSX.Element;
|
|
3938
3966
|
|
|
3939
3967
|
declare function CardComponent({ children, className, classNames, title, description, instructions, actionLabel, action, disabled, isDestructive, isPending, isSubmitting, ...props }: CardComponentProps): react_jsx_runtime.JSX.Element;
|
|
3940
3968
|
declare function CardHeaderComponent({ className, classNames, title, description, isPending, }: CardComponentProps): react_jsx_runtime.JSX.Element;
|
|
@@ -3953,6 +3981,7 @@ declare function SkeletonInputComponent({ classNames }: {
|
|
|
3953
3981
|
|
|
3954
3982
|
declare function getUserName(user: Profile | null | undefined): string | null | undefined;
|
|
3955
3983
|
declare function UserAvatar({ className, classNames, isPending, size, user, ...props }: AvatarProps): react_jsx_runtime.JSX.Element;
|
|
3984
|
+
declare function WorkspaceLogo({ className, classNames, isPending, size, workspace, ...props }: AvatarProps): react_jsx_runtime.JSX.Element;
|
|
3956
3985
|
|
|
3957
3986
|
declare function DisplayIdCard({ className, classNames, isPending, id, title, description, ...props }: CardComponentProps & {
|
|
3958
3987
|
id: string | undefined;
|
|
@@ -3970,7 +3999,7 @@ type EmptyStateProps = PropsWithChildren<{
|
|
|
3970
3999
|
}>;
|
|
3971
4000
|
declare function EmptyState({ className, icon: Icon, title, description, learnMore, learnMoreText, children, }: EmptyStateProps): react_jsx_runtime.JSX.Element;
|
|
3972
4001
|
|
|
3973
|
-
declare function LanguageSwitcher({ className, type, variant, size, showNames, showFlags, }: Omit<LanguageSwitcherProps,
|
|
4002
|
+
declare function LanguageSwitcher({ className, type, variant, size, showNames, showFlags, }: Omit<LanguageSwitcherProps, "currentLocale" | "locales" | "onLocaleChange">): react_jsx_runtime.JSX.Element;
|
|
3974
4003
|
|
|
3975
4004
|
declare function OTPInputGroup({ otpSeparators }: {
|
|
3976
4005
|
otpSeparators?: 0 | 1 | 2;
|
|
@@ -3980,29 +4009,6 @@ declare function PasswordInput({ className, variant, enableToggle, onChange, ...
|
|
|
3980
4009
|
enableToggle?: boolean;
|
|
3981
4010
|
}): react_jsx_runtime.JSX.Element;
|
|
3982
4011
|
|
|
3983
|
-
declare const AppleIcon: ProviderIcon;
|
|
3984
|
-
declare const DiscordIcon: ProviderIcon;
|
|
3985
|
-
declare const DropboxIcon: ProviderIcon;
|
|
3986
|
-
declare const FacebookIcon: ProviderIcon;
|
|
3987
|
-
declare const GitHubIcon: ProviderIcon;
|
|
3988
|
-
declare const GitLabIcon: ProviderIcon;
|
|
3989
|
-
declare const GoogleIcon: ProviderIcon;
|
|
3990
|
-
declare const HuggingFaceIcon: ProviderIcon;
|
|
3991
|
-
declare const KickIcon: ProviderIcon;
|
|
3992
|
-
declare const LinearIcon: ProviderIcon;
|
|
3993
|
-
declare const LinkedInIcon: ProviderIcon;
|
|
3994
|
-
declare const MicrosoftIcon: ProviderIcon;
|
|
3995
|
-
declare const NotionIcon: ProviderIcon;
|
|
3996
|
-
declare const RedditIcon: ProviderIcon;
|
|
3997
|
-
declare const RobloxIcon: ProviderIcon;
|
|
3998
|
-
declare const SlackIcon: ProviderIcon;
|
|
3999
|
-
declare const SpotifyIcon: ProviderIcon;
|
|
4000
|
-
declare const TikTokIcon: ProviderIcon;
|
|
4001
|
-
declare const TwitchIcon: ProviderIcon;
|
|
4002
|
-
declare const VKIcon: ProviderIcon;
|
|
4003
|
-
declare const XIcon: ProviderIcon;
|
|
4004
|
-
declare const ZoomIcon: ProviderIcon;
|
|
4005
|
-
|
|
4006
4012
|
declare function SignedInHint({ linkHref }: {
|
|
4007
4013
|
linkHref?: string;
|
|
4008
4014
|
}): react_jsx_runtime.JSX.Element;
|
|
@@ -4015,5 +4021,6 @@ declare function UserView({ className, classNames, isPending, size, user }: View
|
|
|
4015
4021
|
declare function ApiKeyView({ className, classNames, apiKey }: ViewProps & {
|
|
4016
4022
|
apiKey: ApiKey;
|
|
4017
4023
|
}): react_jsx_runtime.JSX.Element;
|
|
4024
|
+
declare function WorkspaceView({ className, classNames, isPending, size, workspace }: ViewProps): react_jsx_runtime.JSX.Element;
|
|
4018
4025
|
|
|
4019
|
-
export { ApiKeyDeleteDialog, ApiKeyDisplayDialog, ApiKeyView, ApiKeysCard,
|
|
4026
|
+
export { AcceptInvitation, ApiKeyDeleteDialog, ApiKeyDisplayDialog, ApiKeyView, ApiKeysCard, type AuthButtonProps, AuthCallback, AuthForm, type AuthFormClassNames, type AuthFormProps, AuthLayout, AuthView, type AuthViewClassNames, type AuthViewProps, BackupCodesDialog, CardActionComponent, CardComponent, CardFooterComponent, CardHeaderComponent, ConfigContext, ConfigProvider, type ConfigProviderProps, CreateApiKeyDialog, DeleteAccountCard, DeleteAccountDialog, DialogComponent, DialogFooterComponent, DisplayIdCard, EmailOTPButton, EmailOTPForm, EmptyState, type EmptyStateProps, ForgotPasswordForm, FormAvatarCard, FormEmailCard, FormFieldsCard, FormNameCard, FormPasswordCard, FormUsernameCard, Header, HeaderLeft, HeaderRight, HeaderSidebarMobile, LanguageSwitcher, LastUsedButton, LayoutContext, type LayoutContextType, LayoutLoader, LayoutProvider, type LayoutProviderProps, LayoutWrapper, MagicLinkButton, MagicLinkForm, MultiAccountCard, OTPInputGroup, OneTap, PasskeyButton, PasskeysCard, PasswordInput, ProviderButton, ProvidersCard, QueryContext, RecoverAccountForm, ResetPasswordForm, SecurityCards, SessionFreshnessDialog, SessionsCard, SettingsCards, SharedProviders, type SharedProvidersProps, Sidebar, SidebarContent, SidebarContentMenu, SidebarHeaderBack, SignInForm, SignOut, SignUpForm, SignedInHint, SiteFooter, SiteHeader, SiteHeaderSecondary, SkeletonInputComponent, SkeletonViewComponent, Toolbar, TwoFactorCard, TwoFactorForm, TwoFactorPasswordDialog, UserAvatar, UserMenu, UserView, WorkspaceLogo, WorkspaceView, getUserName, useAccountInfo, useAuthMutation, useAuthQuery, useConfig, useCreateApiKey, useDeleteApiKey, useDeletePasskey, useInvitation, useLayout, useListAccounts, useListApiKeys, useListDeviceSessions, useListPasskeys, useListSessions, useOnMutateError, useOnSuccessTransition, useRevokeDeviceSession, useRevokeOtherSessions, useRevokeSession, useRevokeSessions, useSession, useSetActiveSession, useUnlinkAccount, useUpdateUser };
|