abckit 0.0.38 → 0.0.40
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/runtime/components/ui/auto-form/AutoFormFieldArray.d.vue.ts +34 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldArray.vue.d.ts +34 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldObject.d.vue.ts +34 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldObject.vue.d.ts +34 -0
- package/dist/runtime/components/ui/carousel/Carousel.d.vue.ts +0 -37
- package/dist/runtime/components/ui/carousel/Carousel.vue.d.ts +0 -37
- package/dist/runtime/components/ui/command/Command.d.vue.ts +2 -2
- package/dist/runtime/components/ui/command/Command.vue.d.ts +2 -2
- package/dist/runtime/composables/useAuth.d.ts +149 -89
- package/dist/runtime/middleware/auth.d.ts +1 -1
- package/dist/runtime/server/plugins/s3-storage.js +1 -1
- package/package.json +30 -111
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { Config } from './interface.js';
|
|
2
|
+
import * as z from 'zod';
|
|
3
|
+
declare const __VLS_export: <T extends z.ZodAny>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<{
|
|
5
|
+
fieldName: string;
|
|
6
|
+
required?: boolean;
|
|
7
|
+
config?: Config<T>;
|
|
8
|
+
schema?: z.ZodArray<T>;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}> & (typeof globalThis extends {
|
|
11
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
12
|
+
} ? P : {});
|
|
13
|
+
expose: (exposed: {}) => void;
|
|
14
|
+
attrs: any;
|
|
15
|
+
slots: {
|
|
16
|
+
default?: (props: import("vue").DefineProps<import("@vue/shared").LooseRequired<{
|
|
17
|
+
fieldName: string;
|
|
18
|
+
required?: boolean;
|
|
19
|
+
config?: Config<T>;
|
|
20
|
+
schema?: z.ZodArray<T>;
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
}>, "required" | "disabled" | (Config<T> | undefined extends boolean | undefined ? (boolean & Config<T>) | undefined extends undefined ? never : "config" : never)>) => any;
|
|
23
|
+
};
|
|
24
|
+
emit: {};
|
|
25
|
+
}>) => import("vue").VNode & {
|
|
26
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
27
|
+
};
|
|
28
|
+
declare const _default: typeof __VLS_export;
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
31
|
+
[K in keyof T]: T[K];
|
|
32
|
+
} : {
|
|
33
|
+
[K in keyof T as K]: T[K];
|
|
34
|
+
}) & {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { Config } from './interface.js';
|
|
2
|
+
import * as z from 'zod';
|
|
3
|
+
declare const __VLS_export: <T extends z.ZodAny>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<{
|
|
5
|
+
fieldName: string;
|
|
6
|
+
required?: boolean;
|
|
7
|
+
config?: Config<T>;
|
|
8
|
+
schema?: z.ZodArray<T>;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}> & (typeof globalThis extends {
|
|
11
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
12
|
+
} ? P : {});
|
|
13
|
+
expose: (exposed: {}) => void;
|
|
14
|
+
attrs: any;
|
|
15
|
+
slots: {
|
|
16
|
+
default?: (props: import("vue").DefineProps<import("@vue/shared").LooseRequired<{
|
|
17
|
+
fieldName: string;
|
|
18
|
+
required?: boolean;
|
|
19
|
+
config?: Config<T>;
|
|
20
|
+
schema?: z.ZodArray<T>;
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
}>, "required" | "disabled" | (Config<T> | undefined extends boolean | undefined ? (boolean & Config<T>) | undefined extends undefined ? never : "config" : never)>) => any;
|
|
23
|
+
};
|
|
24
|
+
emit: {};
|
|
25
|
+
}>) => import("vue").VNode & {
|
|
26
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
27
|
+
};
|
|
28
|
+
declare const _default: typeof __VLS_export;
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
31
|
+
[K in keyof T]: T[K];
|
|
32
|
+
} : {
|
|
33
|
+
[K in keyof T as K]: T[K];
|
|
34
|
+
}) & {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { ZodObject, ZodRawShape } from 'zod';
|
|
2
|
+
import type { Config } from './interface.js';
|
|
3
|
+
declare const __VLS_export: <T extends ZodRawShape>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<{
|
|
5
|
+
fieldName: string;
|
|
6
|
+
required?: boolean;
|
|
7
|
+
config?: Config<T>;
|
|
8
|
+
schema?: ZodObject<T>;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}> & (typeof globalThis extends {
|
|
11
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
12
|
+
} ? P : {});
|
|
13
|
+
expose: (exposed: {}) => void;
|
|
14
|
+
attrs: any;
|
|
15
|
+
slots: {
|
|
16
|
+
default?: (props: import("vue").DefineProps<import("@vue/shared").LooseRequired<{
|
|
17
|
+
fieldName: string;
|
|
18
|
+
required?: boolean;
|
|
19
|
+
config?: Config<T>;
|
|
20
|
+
schema?: ZodObject<T>;
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
}>, "required" | "disabled" | (Config<T> | undefined extends boolean | undefined ? (boolean & Config<T>) | undefined extends undefined ? never : "config" : never)>) => any;
|
|
23
|
+
};
|
|
24
|
+
emit: {};
|
|
25
|
+
}>) => import("vue").VNode & {
|
|
26
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
27
|
+
};
|
|
28
|
+
declare const _default: typeof __VLS_export;
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
31
|
+
[K in keyof T]: T[K];
|
|
32
|
+
} : {
|
|
33
|
+
[K in keyof T as K]: T[K];
|
|
34
|
+
}) & {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { ZodObject, ZodRawShape } from 'zod';
|
|
2
|
+
import type { Config } from './interface.js';
|
|
3
|
+
declare const __VLS_export: <T extends ZodRawShape>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<{
|
|
5
|
+
fieldName: string;
|
|
6
|
+
required?: boolean;
|
|
7
|
+
config?: Config<T>;
|
|
8
|
+
schema?: ZodObject<T>;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}> & (typeof globalThis extends {
|
|
11
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
12
|
+
} ? P : {});
|
|
13
|
+
expose: (exposed: {}) => void;
|
|
14
|
+
attrs: any;
|
|
15
|
+
slots: {
|
|
16
|
+
default?: (props: import("vue").DefineProps<import("@vue/shared").LooseRequired<{
|
|
17
|
+
fieldName: string;
|
|
18
|
+
required?: boolean;
|
|
19
|
+
config?: Config<T>;
|
|
20
|
+
schema?: ZodObject<T>;
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
}>, "required" | "disabled" | (Config<T> | undefined extends boolean | undefined ? (boolean & Config<T>) | undefined extends undefined ? never : "config" : never)>) => any;
|
|
23
|
+
};
|
|
24
|
+
emit: {};
|
|
25
|
+
}>) => import("vue").VNode & {
|
|
26
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
27
|
+
};
|
|
28
|
+
declare const _default: typeof __VLS_export;
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
31
|
+
[K in keyof T]: T[K];
|
|
32
|
+
} : {
|
|
33
|
+
[K in keyof T as K]: T[K];
|
|
34
|
+
}) & {};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type { CarouselProps, WithClassAsProps } from "./interface.js";
|
|
2
|
-
type __VLS_Props = CarouselProps & WithClassAsProps;
|
|
3
|
-
declare var __VLS_1: {
|
|
4
|
-
canScrollNext: boolean;
|
|
5
|
-
canScrollPrev: boolean;
|
|
6
|
-
carouselApi: import("embla-carousel").EmblaCarouselType | undefined;
|
|
7
|
-
carouselRef: HTMLElement | undefined;
|
|
8
|
-
orientation: "vertical" | "horizontal" | undefined;
|
|
9
|
-
scrollNext: () => void;
|
|
10
|
-
scrollPrev: () => void;
|
|
11
|
-
};
|
|
12
|
-
type __VLS_Slots = {} & {
|
|
13
|
-
default?: (props: typeof __VLS_1) => any;
|
|
14
|
-
};
|
|
15
|
-
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
16
|
-
canScrollNext: import("vue").Ref<boolean, boolean>;
|
|
17
|
-
canScrollPrev: import("vue").Ref<boolean, boolean>;
|
|
18
|
-
carouselApi: import("vue").Ref<import("embla-carousel").EmblaCarouselType | undefined, import("embla-carousel").EmblaCarouselType | undefined>;
|
|
19
|
-
carouselRef: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
20
|
-
orientation: "vertical" | "horizontal" | undefined;
|
|
21
|
-
scrollNext: () => void;
|
|
22
|
-
scrollPrev: () => void;
|
|
23
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
24
|
-
"init-api": (payload: import("embla-carousel").EmblaCarouselType | undefined) => any;
|
|
25
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
26
|
-
"onInit-api"?: ((payload: import("embla-carousel").EmblaCarouselType | undefined) => any) | undefined;
|
|
27
|
-
}>, {
|
|
28
|
-
orientation: "horizontal" | "vertical";
|
|
29
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
30
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
31
|
-
declare const _default: typeof __VLS_export;
|
|
32
|
-
export default _default;
|
|
33
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
34
|
-
new (): {
|
|
35
|
-
$slots: S;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type { CarouselProps, WithClassAsProps } from "./interface.js";
|
|
2
|
-
type __VLS_Props = CarouselProps & WithClassAsProps;
|
|
3
|
-
declare var __VLS_1: {
|
|
4
|
-
canScrollNext: boolean;
|
|
5
|
-
canScrollPrev: boolean;
|
|
6
|
-
carouselApi: import("embla-carousel").EmblaCarouselType | undefined;
|
|
7
|
-
carouselRef: HTMLElement | undefined;
|
|
8
|
-
orientation: "vertical" | "horizontal" | undefined;
|
|
9
|
-
scrollNext: () => void;
|
|
10
|
-
scrollPrev: () => void;
|
|
11
|
-
};
|
|
12
|
-
type __VLS_Slots = {} & {
|
|
13
|
-
default?: (props: typeof __VLS_1) => any;
|
|
14
|
-
};
|
|
15
|
-
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
16
|
-
canScrollNext: import("vue").Ref<boolean, boolean>;
|
|
17
|
-
canScrollPrev: import("vue").Ref<boolean, boolean>;
|
|
18
|
-
carouselApi: import("vue").Ref<import("embla-carousel").EmblaCarouselType | undefined, import("embla-carousel").EmblaCarouselType | undefined>;
|
|
19
|
-
carouselRef: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
20
|
-
orientation: "vertical" | "horizontal" | undefined;
|
|
21
|
-
scrollNext: () => void;
|
|
22
|
-
scrollPrev: () => void;
|
|
23
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
24
|
-
"init-api": (payload: import("embla-carousel").EmblaCarouselType | undefined) => any;
|
|
25
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
26
|
-
"onInit-api"?: ((payload: import("embla-carousel").EmblaCarouselType | undefined) => any) | undefined;
|
|
27
|
-
}>, {
|
|
28
|
-
orientation: "horizontal" | "vertical";
|
|
29
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
30
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
31
|
-
declare const _default: typeof __VLS_export;
|
|
32
|
-
export default _default;
|
|
33
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
34
|
-
new (): {
|
|
35
|
-
$slots: S;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
@@ -9,19 +9,19 @@ type __VLS_Slots = {} & {
|
|
|
9
9
|
};
|
|
10
10
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
11
|
"update:modelValue": (value: import("reka-ui").AcceptableValue) => any;
|
|
12
|
-
entryFocus: (event: CustomEvent<any>) => any;
|
|
13
12
|
highlight: (payload: {
|
|
14
13
|
ref: HTMLElement;
|
|
15
14
|
value: import("reka-ui").AcceptableValue;
|
|
16
15
|
} | undefined) => any;
|
|
16
|
+
entryFocus: (event: CustomEvent<any>) => any;
|
|
17
17
|
leave: (event: Event) => any;
|
|
18
18
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
19
19
|
"onUpdate:modelValue"?: ((value: import("reka-ui").AcceptableValue) => any) | undefined;
|
|
20
|
-
onEntryFocus?: ((event: CustomEvent<any>) => any) | undefined;
|
|
21
20
|
onHighlight?: ((payload: {
|
|
22
21
|
ref: HTMLElement;
|
|
23
22
|
value: import("reka-ui").AcceptableValue;
|
|
24
23
|
} | undefined) => any) | undefined;
|
|
24
|
+
onEntryFocus?: ((event: CustomEvent<any>) => any) | undefined;
|
|
25
25
|
onLeave?: ((event: Event) => any) | undefined;
|
|
26
26
|
}>, {
|
|
27
27
|
modelValue: import("reka-ui").AcceptableValue | import("reka-ui").AcceptableValue[];
|
|
@@ -9,19 +9,19 @@ type __VLS_Slots = {} & {
|
|
|
9
9
|
};
|
|
10
10
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
11
|
"update:modelValue": (value: import("reka-ui").AcceptableValue) => any;
|
|
12
|
-
entryFocus: (event: CustomEvent<any>) => any;
|
|
13
12
|
highlight: (payload: {
|
|
14
13
|
ref: HTMLElement;
|
|
15
14
|
value: import("reka-ui").AcceptableValue;
|
|
16
15
|
} | undefined) => any;
|
|
16
|
+
entryFocus: (event: CustomEvent<any>) => any;
|
|
17
17
|
leave: (event: Event) => any;
|
|
18
18
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
19
19
|
"onUpdate:modelValue"?: ((value: import("reka-ui").AcceptableValue) => any) | undefined;
|
|
20
|
-
onEntryFocus?: ((event: CustomEvent<any>) => any) | undefined;
|
|
21
20
|
onHighlight?: ((payload: {
|
|
22
21
|
ref: HTMLElement;
|
|
23
22
|
value: import("reka-ui").AcceptableValue;
|
|
24
23
|
} | undefined) => any) | undefined;
|
|
24
|
+
onEntryFocus?: ((event: CustomEvent<any>) => any) | undefined;
|
|
25
25
|
onLeave?: ((event: Event) => any) | undefined;
|
|
26
26
|
}>, {
|
|
27
27
|
modelValue: import("reka-ui").AcceptableValue | import("reka-ui").AcceptableValue[];
|
|
@@ -27,7 +27,10 @@ export declare function useAuth(): {
|
|
|
27
27
|
} | null;
|
|
28
28
|
readonly isPending: boolean;
|
|
29
29
|
readonly isRefetching: boolean;
|
|
30
|
-
readonly error: import("
|
|
30
|
+
readonly error: import("better-auth/client").BetterFetchError | null;
|
|
31
|
+
readonly refetch: (queryParams?: {
|
|
32
|
+
query?: import("better-auth").SessionQueryParams;
|
|
33
|
+
} | undefined) => Promise<void>;
|
|
31
34
|
}, {
|
|
32
35
|
readonly data: {
|
|
33
36
|
readonly user: {
|
|
@@ -52,7 +55,10 @@ export declare function useAuth(): {
|
|
|
52
55
|
} | null;
|
|
53
56
|
readonly isPending: boolean;
|
|
54
57
|
readonly isRefetching: boolean;
|
|
55
|
-
readonly error: import("
|
|
58
|
+
readonly error: import("better-auth/client").BetterFetchError | null;
|
|
59
|
+
readonly refetch: (queryParams?: {
|
|
60
|
+
query?: import("better-auth").SessionQueryParams;
|
|
61
|
+
} | undefined) => Promise<void>;
|
|
56
62
|
}>>;
|
|
57
63
|
isLoading: import("vue").ComputedRef<boolean>;
|
|
58
64
|
isAuthenticated: import("vue").ComputedRef<boolean>;
|
|
@@ -130,7 +136,7 @@ export declare function useAuth(): {
|
|
|
130
136
|
additionalData?: Record<string, any> | undefined;
|
|
131
137
|
} & {
|
|
132
138
|
fetchOptions?: FetchOptions | undefined;
|
|
133
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("
|
|
139
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<NonNullable<{
|
|
134
140
|
redirect: boolean;
|
|
135
141
|
url: string;
|
|
136
142
|
} | {
|
|
@@ -155,7 +161,7 @@ export declare function useAuth(): {
|
|
|
155
161
|
signOut: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
156
162
|
query?: Record<string, any> | undefined;
|
|
157
163
|
fetchOptions?: FetchOptions | undefined;
|
|
158
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("
|
|
164
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
159
165
|
success: boolean;
|
|
160
166
|
}, {
|
|
161
167
|
code?: string | undefined;
|
|
@@ -177,7 +183,7 @@ export declare function useAuth(): {
|
|
|
177
183
|
image?: string | undefined;
|
|
178
184
|
callbackURL?: string | undefined;
|
|
179
185
|
fetchOptions?: FetchOptions | undefined;
|
|
180
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("
|
|
186
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<NonNullable<{
|
|
181
187
|
token: null;
|
|
182
188
|
user: {
|
|
183
189
|
id: string;
|
|
@@ -218,7 +224,7 @@ export declare function useAuth(): {
|
|
|
218
224
|
rememberMe?: boolean | undefined;
|
|
219
225
|
} & {
|
|
220
226
|
fetchOptions?: FetchOptions | undefined;
|
|
221
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("
|
|
227
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
222
228
|
redirect: boolean;
|
|
223
229
|
token: string;
|
|
224
230
|
url?: string | undefined;
|
|
@@ -247,7 +253,7 @@ export declare function useAuth(): {
|
|
|
247
253
|
token?: string | undefined;
|
|
248
254
|
} & {
|
|
249
255
|
fetchOptions?: FetchOptions | undefined;
|
|
250
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("
|
|
256
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
251
257
|
status: boolean;
|
|
252
258
|
}, {
|
|
253
259
|
code?: string | undefined;
|
|
@@ -263,7 +269,7 @@ export declare function useAuth(): {
|
|
|
263
269
|
callbackURL?: string | undefined;
|
|
264
270
|
};
|
|
265
271
|
fetchOptions?: FetchOptions | undefined;
|
|
266
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("
|
|
272
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<NonNullable<void | {
|
|
267
273
|
status: boolean;
|
|
268
274
|
}>, {
|
|
269
275
|
code?: string | undefined;
|
|
@@ -278,7 +284,7 @@ export declare function useAuth(): {
|
|
|
278
284
|
callbackURL?: string | undefined;
|
|
279
285
|
} & {
|
|
280
286
|
fetchOptions?: FetchOptions | undefined;
|
|
281
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("
|
|
287
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
282
288
|
status: boolean;
|
|
283
289
|
}, {
|
|
284
290
|
code?: string | undefined;
|
|
@@ -293,7 +299,7 @@ export declare function useAuth(): {
|
|
|
293
299
|
callbackURL?: string | undefined;
|
|
294
300
|
} & {
|
|
295
301
|
fetchOptions?: FetchOptions | undefined;
|
|
296
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("
|
|
302
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
297
303
|
status: boolean;
|
|
298
304
|
}, {
|
|
299
305
|
code?: string | undefined;
|
|
@@ -310,7 +316,7 @@ export declare function useAuth(): {
|
|
|
310
316
|
revokeOtherSessions?: boolean | undefined;
|
|
311
317
|
} & {
|
|
312
318
|
fetchOptions?: FetchOptions | undefined;
|
|
313
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("
|
|
319
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
314
320
|
token: string | null;
|
|
315
321
|
user: {
|
|
316
322
|
id: string;
|
|
@@ -333,7 +339,7 @@ export declare function useAuth(): {
|
|
|
333
339
|
image?: (string | null) | undefined;
|
|
334
340
|
name?: string | undefined;
|
|
335
341
|
fetchOptions?: FetchOptions | undefined;
|
|
336
|
-
} & Partial<{}>> | undefined, data_1?: FetchOptions | undefined) => Promise<import("
|
|
342
|
+
} & Partial<{}>> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
337
343
|
status: boolean;
|
|
338
344
|
}, {
|
|
339
345
|
code?: string | undefined;
|
|
@@ -350,7 +356,7 @@ export declare function useAuth(): {
|
|
|
350
356
|
token?: string | undefined;
|
|
351
357
|
} & {
|
|
352
358
|
fetchOptions?: FetchOptions | undefined;
|
|
353
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("
|
|
359
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
354
360
|
success: boolean;
|
|
355
361
|
message: string;
|
|
356
362
|
}, {
|
|
@@ -366,7 +372,7 @@ export declare function useAuth(): {
|
|
|
366
372
|
redirectTo?: string | undefined;
|
|
367
373
|
} & {
|
|
368
374
|
fetchOptions?: FetchOptions | undefined;
|
|
369
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("
|
|
375
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
370
376
|
status: boolean;
|
|
371
377
|
message: string;
|
|
372
378
|
}, {
|
|
@@ -384,7 +390,7 @@ export declare function useAuth(): {
|
|
|
384
390
|
callbackURL: string;
|
|
385
391
|
};
|
|
386
392
|
fetchOptions?: FetchOptions | undefined;
|
|
387
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("
|
|
393
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<never, {
|
|
388
394
|
code?: string | undefined;
|
|
389
395
|
message?: string | undefined;
|
|
390
396
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
@@ -393,7 +399,7 @@ export declare function useAuth(): {
|
|
|
393
399
|
listSessions: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
394
400
|
query?: Record<string, any> | undefined;
|
|
395
401
|
fetchOptions?: FetchOptions | undefined;
|
|
396
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("
|
|
402
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<import("better-auth").Prettify<{
|
|
397
403
|
id: string;
|
|
398
404
|
createdAt: Date;
|
|
399
405
|
updatedAt: Date;
|
|
@@ -413,7 +419,7 @@ export declare function useAuth(): {
|
|
|
413
419
|
token: string;
|
|
414
420
|
} & {
|
|
415
421
|
fetchOptions?: FetchOptions | undefined;
|
|
416
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("
|
|
422
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
417
423
|
status: boolean;
|
|
418
424
|
}, {
|
|
419
425
|
code?: string | undefined;
|
|
@@ -423,7 +429,7 @@ export declare function useAuth(): {
|
|
|
423
429
|
revokeSessions: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
424
430
|
query?: Record<string, any> | undefined;
|
|
425
431
|
fetchOptions?: FetchOptions | undefined;
|
|
426
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("
|
|
432
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
427
433
|
status: boolean;
|
|
428
434
|
}, {
|
|
429
435
|
code?: string | undefined;
|
|
@@ -433,7 +439,7 @@ export declare function useAuth(): {
|
|
|
433
439
|
revokeOtherSessions: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
434
440
|
query?: Record<string, any> | undefined;
|
|
435
441
|
fetchOptions?: FetchOptions | undefined;
|
|
436
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("
|
|
442
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
437
443
|
status: boolean;
|
|
438
444
|
}, {
|
|
439
445
|
code?: string | undefined;
|
|
@@ -472,7 +478,7 @@ export declare function useAuth(): {
|
|
|
472
478
|
additionalData?: Record<string, any> | undefined;
|
|
473
479
|
} & {
|
|
474
480
|
fetchOptions?: FetchOptions | undefined;
|
|
475
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("
|
|
481
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
476
482
|
url: string;
|
|
477
483
|
redirect: boolean;
|
|
478
484
|
}, {
|
|
@@ -483,7 +489,7 @@ export declare function useAuth(): {
|
|
|
483
489
|
listAccounts: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
484
490
|
query?: Record<string, any> | undefined;
|
|
485
491
|
fetchOptions?: FetchOptions | undefined;
|
|
486
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("
|
|
492
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
487
493
|
id: string;
|
|
488
494
|
providerId: string;
|
|
489
495
|
createdAt: Date;
|
|
@@ -506,7 +512,7 @@ export declare function useAuth(): {
|
|
|
506
512
|
callbackURL?: string | undefined;
|
|
507
513
|
};
|
|
508
514
|
fetchOptions?: FetchOptions | undefined;
|
|
509
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("
|
|
515
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
510
516
|
success: boolean;
|
|
511
517
|
message: string;
|
|
512
518
|
}, {
|
|
@@ -523,7 +529,7 @@ export declare function useAuth(): {
|
|
|
523
529
|
accountId?: string | undefined;
|
|
524
530
|
} & {
|
|
525
531
|
fetchOptions?: FetchOptions | undefined;
|
|
526
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("
|
|
532
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
527
533
|
status: boolean;
|
|
528
534
|
}, {
|
|
529
535
|
code?: string | undefined;
|
|
@@ -540,7 +546,7 @@ export declare function useAuth(): {
|
|
|
540
546
|
userId?: string | undefined;
|
|
541
547
|
} & {
|
|
542
548
|
fetchOptions?: FetchOptions | undefined;
|
|
543
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("
|
|
549
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
544
550
|
accessToken: string | undefined;
|
|
545
551
|
refreshToken: string | undefined;
|
|
546
552
|
accessTokenExpiresAt: Date | undefined;
|
|
@@ -564,7 +570,7 @@ export declare function useAuth(): {
|
|
|
564
570
|
userId?: string | undefined;
|
|
565
571
|
} & {
|
|
566
572
|
fetchOptions?: FetchOptions | undefined;
|
|
567
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("
|
|
573
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
568
574
|
accessToken: string;
|
|
569
575
|
accessTokenExpiresAt: Date | undefined;
|
|
570
576
|
scopes: string[];
|
|
@@ -581,7 +587,7 @@ export declare function useAuth(): {
|
|
|
581
587
|
accountId?: string | undefined;
|
|
582
588
|
} | undefined;
|
|
583
589
|
fetchOptions?: FetchOptions | undefined;
|
|
584
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("
|
|
590
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
585
591
|
user: import("better-auth").OAuth2UserInfo;
|
|
586
592
|
data: Record<string, any>;
|
|
587
593
|
}, {
|
|
@@ -598,7 +604,7 @@ export declare function useAuth(): {
|
|
|
598
604
|
disableRefresh?: unknown;
|
|
599
605
|
} | undefined;
|
|
600
606
|
fetchOptions?: FetchOptions | undefined;
|
|
601
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("
|
|
607
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
602
608
|
user: {
|
|
603
609
|
id: string;
|
|
604
610
|
createdAt: Date;
|
|
@@ -648,7 +654,10 @@ export declare function useAuth(): {
|
|
|
648
654
|
} | null;
|
|
649
655
|
readonly isPending: boolean;
|
|
650
656
|
readonly isRefetching: boolean;
|
|
651
|
-
readonly error: import("
|
|
657
|
+
readonly error: import("better-auth/client").BetterFetchError | null;
|
|
658
|
+
readonly refetch: (queryParams?: {
|
|
659
|
+
query?: import("better-auth").SessionQueryParams;
|
|
660
|
+
} | undefined) => Promise<void>;
|
|
652
661
|
}, {
|
|
653
662
|
readonly data: {
|
|
654
663
|
readonly user: {
|
|
@@ -673,7 +682,10 @@ export declare function useAuth(): {
|
|
|
673
682
|
} | null;
|
|
674
683
|
readonly isPending: boolean;
|
|
675
684
|
readonly isRefetching: boolean;
|
|
676
|
-
readonly error: import("
|
|
685
|
+
readonly error: import("better-auth/client").BetterFetchError | null;
|
|
686
|
+
readonly refetch: (queryParams?: {
|
|
687
|
+
query?: import("better-auth").SessionQueryParams;
|
|
688
|
+
} | undefined) => Promise<void>;
|
|
677
689
|
}>>;
|
|
678
690
|
<F extends (...args: any) => any>(useFetch: F): Promise<{
|
|
679
691
|
data: import("vue").Ref<{
|
|
@@ -748,21 +760,21 @@ export declare function useAuth(): {
|
|
|
748
760
|
};
|
|
749
761
|
};
|
|
750
762
|
};
|
|
751
|
-
$fetch: import("
|
|
752
|
-
plugins: (import("
|
|
763
|
+
$fetch: import("better-auth/client").BetterFetch<{
|
|
764
|
+
plugins: (import("better-auth/client").BetterFetchPlugin<Record<string, any>> | {
|
|
753
765
|
id: string;
|
|
754
766
|
name: string;
|
|
755
767
|
hooks: {
|
|
756
|
-
onSuccess(context: import("
|
|
768
|
+
onSuccess(context: import("better-auth/client").SuccessContext<any>): void;
|
|
757
769
|
};
|
|
758
770
|
} | {
|
|
759
771
|
id: string;
|
|
760
772
|
name: string;
|
|
761
773
|
hooks: {
|
|
762
|
-
onSuccess: ((context: import("
|
|
763
|
-
onError: ((context: import("
|
|
764
|
-
onRequest: (<T extends Record<string, any>>(context: import("
|
|
765
|
-
onResponse: ((context: import("
|
|
774
|
+
onSuccess: ((context: import("better-auth/client").SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
775
|
+
onError: ((context: import("better-auth/client").ErrorContext) => Promise<void> | void) | undefined;
|
|
776
|
+
onRequest: (<T extends Record<string, any>>(context: import("better-auth/client").RequestContext<T>) => Promise<import("better-auth/client").RequestContext | void> | import("better-auth/client").RequestContext | void) | undefined;
|
|
777
|
+
onResponse: ((context: import("better-auth/client").ResponseContext) => Promise<Response | void | import("better-auth/client").ResponseContext> | Response | import("better-auth/client").ResponseContext | void) | undefined;
|
|
766
778
|
};
|
|
767
779
|
})[];
|
|
768
780
|
cache?: RequestCache | undefined;
|
|
@@ -782,12 +794,12 @@ export declare function useAuth(): {
|
|
|
782
794
|
referrerPolicy?: ReferrerPolicy | undefined;
|
|
783
795
|
signal?: (AbortSignal | null) | undefined;
|
|
784
796
|
window?: null | undefined;
|
|
785
|
-
onRetry?: ((response: import("
|
|
797
|
+
onRetry?: ((response: import("better-auth/client").ResponseContext) => Promise<void> | void) | undefined;
|
|
786
798
|
hookOptions?: {
|
|
787
799
|
cloneResponse?: boolean;
|
|
788
800
|
} | undefined;
|
|
789
801
|
timeout?: number | undefined;
|
|
790
|
-
customFetchImpl: import("
|
|
802
|
+
customFetchImpl: import("better-auth/client").FetchEsque;
|
|
791
803
|
baseURL: string;
|
|
792
804
|
throw?: boolean | undefined;
|
|
793
805
|
auth?: ({
|
|
@@ -807,17 +819,17 @@ export declare function useAuth(): {
|
|
|
807
819
|
params?: any;
|
|
808
820
|
duplex?: "full" | "half" | undefined;
|
|
809
821
|
jsonParser: (text: string) => Promise<any> | any;
|
|
810
|
-
retry?: import("
|
|
822
|
+
retry?: import("better-auth/client").RetryOptions | undefined;
|
|
811
823
|
retryAttempt?: number | undefined;
|
|
812
|
-
output?: (import("
|
|
813
|
-
errorSchema?: import("
|
|
824
|
+
output?: (import("better-auth/client").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
825
|
+
errorSchema?: import("better-auth/client").StandardSchemaV1 | undefined;
|
|
814
826
|
disableValidation?: boolean | undefined;
|
|
815
827
|
disableSignal?: boolean | undefined;
|
|
816
828
|
}, unknown, unknown, {}>;
|
|
817
829
|
$store: {
|
|
818
830
|
notify: (signal?: (Omit<string, "$sessionSignal"> | "$sessionSignal") | undefined) => void;
|
|
819
831
|
listen: (signal: Omit<string, "$sessionSignal"> | "$sessionSignal", listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
|
|
820
|
-
atoms: Record<string, import("
|
|
832
|
+
atoms: Record<string, import("better-auth/client").WritableAtom<any>>;
|
|
821
833
|
};
|
|
822
834
|
$ERROR_CODES: {
|
|
823
835
|
readonly USER_NOT_FOUND: "User not found";
|
|
@@ -845,6 +857,24 @@ export declare function useAuth(): {
|
|
|
845
857
|
readonly FAILED_TO_UNLINK_LAST_ACCOUNT: "You can't unlink your last account";
|
|
846
858
|
readonly ACCOUNT_NOT_FOUND: "Account not found";
|
|
847
859
|
readonly USER_ALREADY_HAS_PASSWORD: "User already has a password. Provide that to delete the account.";
|
|
860
|
+
readonly CROSS_SITE_NAVIGATION_LOGIN_BLOCKED: "Cross-site navigation login blocked. This request appears to be a CSRF attack.";
|
|
861
|
+
readonly VERIFICATION_EMAIL_NOT_ENABLED: "Verification email isn't enabled";
|
|
862
|
+
readonly EMAIL_ALREADY_VERIFIED: "Email is already verified";
|
|
863
|
+
readonly EMAIL_MISMATCH: "Email mismatch";
|
|
864
|
+
readonly SESSION_NOT_FRESH: "Session is not fresh";
|
|
865
|
+
readonly LINKED_ACCOUNT_ALREADY_EXISTS: "Linked account already exists";
|
|
866
|
+
readonly INVALID_ORIGIN: "Invalid origin";
|
|
867
|
+
readonly INVALID_CALLBACK_URL: "Invalid callbackURL";
|
|
868
|
+
readonly INVALID_REDIRECT_URL: "Invalid redirectURL";
|
|
869
|
+
readonly INVALID_ERROR_CALLBACK_URL: "Invalid errorCallbackURL";
|
|
870
|
+
readonly INVALID_NEW_USER_CALLBACK_URL: "Invalid newUserCallbackURL";
|
|
871
|
+
readonly MISSING_OR_NULL_ORIGIN: "Missing or null Origin";
|
|
872
|
+
readonly CALLBACK_URL_REQUIRED: "callbackURL is required";
|
|
873
|
+
readonly FAILED_TO_CREATE_VERIFICATION: "Unable to create verification";
|
|
874
|
+
readonly FIELD_NOT_ALLOWED: "Field not allowed to be set";
|
|
875
|
+
readonly ASYNC_VALIDATION_NOT_SUPPORTED: "Async validation is not supported";
|
|
876
|
+
readonly VALIDATION_ERROR: "Validation Error";
|
|
877
|
+
readonly MISSING_FIELD: "Field is required";
|
|
848
878
|
};
|
|
849
879
|
};
|
|
850
880
|
};
|
|
@@ -886,7 +916,7 @@ export declare function getAuthClientExports(): {
|
|
|
886
916
|
additionalData?: Record<string, any> | undefined;
|
|
887
917
|
} & {
|
|
888
918
|
fetchOptions?: FetchOptions | undefined;
|
|
889
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("
|
|
919
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<NonNullable<{
|
|
890
920
|
redirect: boolean;
|
|
891
921
|
url: string;
|
|
892
922
|
} | {
|
|
@@ -919,7 +949,7 @@ export declare function getAuthClientExports(): {
|
|
|
919
949
|
rememberMe?: boolean | undefined;
|
|
920
950
|
} & {
|
|
921
951
|
fetchOptions?: FetchOptions | undefined;
|
|
922
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("
|
|
952
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
923
953
|
redirect: boolean;
|
|
924
954
|
token: string;
|
|
925
955
|
url?: string | undefined;
|
|
@@ -952,7 +982,7 @@ export declare function getAuthClientExports(): {
|
|
|
952
982
|
image?: string | undefined;
|
|
953
983
|
callbackURL?: string | undefined;
|
|
954
984
|
fetchOptions?: FetchOptions | undefined;
|
|
955
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("
|
|
985
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<NonNullable<{
|
|
956
986
|
token: null;
|
|
957
987
|
user: {
|
|
958
988
|
id: string;
|
|
@@ -982,7 +1012,7 @@ export declare function getAuthClientExports(): {
|
|
|
982
1012
|
signOut: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
983
1013
|
query?: Record<string, any> | undefined;
|
|
984
1014
|
fetchOptions?: FetchOptions | undefined;
|
|
985
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("
|
|
1015
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
986
1016
|
success: boolean;
|
|
987
1017
|
}, {
|
|
988
1018
|
code?: string | undefined;
|
|
@@ -1013,7 +1043,10 @@ export declare function getAuthClientExports(): {
|
|
|
1013
1043
|
} | null;
|
|
1014
1044
|
readonly isPending: boolean;
|
|
1015
1045
|
readonly isRefetching: boolean;
|
|
1016
|
-
readonly error: import("
|
|
1046
|
+
readonly error: import("better-auth/client").BetterFetchError | null;
|
|
1047
|
+
readonly refetch: (queryParams?: {
|
|
1048
|
+
query?: import("better-auth").SessionQueryParams;
|
|
1049
|
+
} | undefined) => Promise<void>;
|
|
1017
1050
|
}, {
|
|
1018
1051
|
readonly data: {
|
|
1019
1052
|
readonly user: {
|
|
@@ -1038,7 +1071,10 @@ export declare function getAuthClientExports(): {
|
|
|
1038
1071
|
} | null;
|
|
1039
1072
|
readonly isPending: boolean;
|
|
1040
1073
|
readonly isRefetching: boolean;
|
|
1041
|
-
readonly error: import("
|
|
1074
|
+
readonly error: import("better-auth/client").BetterFetchError | null;
|
|
1075
|
+
readonly refetch: (queryParams?: {
|
|
1076
|
+
query?: import("better-auth").SessionQueryParams;
|
|
1077
|
+
} | undefined) => Promise<void>;
|
|
1042
1078
|
}>>;
|
|
1043
1079
|
<F extends (...args: any) => any>(useFetch: F): Promise<{
|
|
1044
1080
|
data: import("vue").Ref<{
|
|
@@ -1099,7 +1135,7 @@ export declare function getAuthClientExports(): {
|
|
|
1099
1135
|
disableRefresh?: unknown;
|
|
1100
1136
|
} | undefined;
|
|
1101
1137
|
fetchOptions?: FetchOptions | undefined;
|
|
1102
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("
|
|
1138
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1103
1139
|
user: {
|
|
1104
1140
|
id: string;
|
|
1105
1141
|
createdAt: Date;
|
|
@@ -1161,7 +1197,7 @@ export declare function getAuthClientExports(): {
|
|
|
1161
1197
|
additionalData?: Record<string, any> | undefined;
|
|
1162
1198
|
} & {
|
|
1163
1199
|
fetchOptions?: FetchOptions | undefined;
|
|
1164
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("
|
|
1200
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<NonNullable<{
|
|
1165
1201
|
redirect: boolean;
|
|
1166
1202
|
url: string;
|
|
1167
1203
|
} | {
|
|
@@ -1186,7 +1222,7 @@ export declare function getAuthClientExports(): {
|
|
|
1186
1222
|
signOut: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
1187
1223
|
query?: Record<string, any> | undefined;
|
|
1188
1224
|
fetchOptions?: FetchOptions | undefined;
|
|
1189
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("
|
|
1225
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1190
1226
|
success: boolean;
|
|
1191
1227
|
}, {
|
|
1192
1228
|
code?: string | undefined;
|
|
@@ -1208,7 +1244,7 @@ export declare function getAuthClientExports(): {
|
|
|
1208
1244
|
image?: string | undefined;
|
|
1209
1245
|
callbackURL?: string | undefined;
|
|
1210
1246
|
fetchOptions?: FetchOptions | undefined;
|
|
1211
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("
|
|
1247
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<NonNullable<{
|
|
1212
1248
|
token: null;
|
|
1213
1249
|
user: {
|
|
1214
1250
|
id: string;
|
|
@@ -1249,7 +1285,7 @@ export declare function getAuthClientExports(): {
|
|
|
1249
1285
|
rememberMe?: boolean | undefined;
|
|
1250
1286
|
} & {
|
|
1251
1287
|
fetchOptions?: FetchOptions | undefined;
|
|
1252
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("
|
|
1288
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1253
1289
|
redirect: boolean;
|
|
1254
1290
|
token: string;
|
|
1255
1291
|
url?: string | undefined;
|
|
@@ -1278,7 +1314,7 @@ export declare function getAuthClientExports(): {
|
|
|
1278
1314
|
token?: string | undefined;
|
|
1279
1315
|
} & {
|
|
1280
1316
|
fetchOptions?: FetchOptions | undefined;
|
|
1281
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("
|
|
1317
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1282
1318
|
status: boolean;
|
|
1283
1319
|
}, {
|
|
1284
1320
|
code?: string | undefined;
|
|
@@ -1294,7 +1330,7 @@ export declare function getAuthClientExports(): {
|
|
|
1294
1330
|
callbackURL?: string | undefined;
|
|
1295
1331
|
};
|
|
1296
1332
|
fetchOptions?: FetchOptions | undefined;
|
|
1297
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("
|
|
1333
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<NonNullable<void | {
|
|
1298
1334
|
status: boolean;
|
|
1299
1335
|
}>, {
|
|
1300
1336
|
code?: string | undefined;
|
|
@@ -1309,7 +1345,7 @@ export declare function getAuthClientExports(): {
|
|
|
1309
1345
|
callbackURL?: string | undefined;
|
|
1310
1346
|
} & {
|
|
1311
1347
|
fetchOptions?: FetchOptions | undefined;
|
|
1312
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("
|
|
1348
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1313
1349
|
status: boolean;
|
|
1314
1350
|
}, {
|
|
1315
1351
|
code?: string | undefined;
|
|
@@ -1324,7 +1360,7 @@ export declare function getAuthClientExports(): {
|
|
|
1324
1360
|
callbackURL?: string | undefined;
|
|
1325
1361
|
} & {
|
|
1326
1362
|
fetchOptions?: FetchOptions | undefined;
|
|
1327
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("
|
|
1363
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1328
1364
|
status: boolean;
|
|
1329
1365
|
}, {
|
|
1330
1366
|
code?: string | undefined;
|
|
@@ -1341,7 +1377,7 @@ export declare function getAuthClientExports(): {
|
|
|
1341
1377
|
revokeOtherSessions?: boolean | undefined;
|
|
1342
1378
|
} & {
|
|
1343
1379
|
fetchOptions?: FetchOptions | undefined;
|
|
1344
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("
|
|
1380
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1345
1381
|
token: string | null;
|
|
1346
1382
|
user: {
|
|
1347
1383
|
id: string;
|
|
@@ -1364,7 +1400,7 @@ export declare function getAuthClientExports(): {
|
|
|
1364
1400
|
image?: (string | null) | undefined;
|
|
1365
1401
|
name?: string | undefined;
|
|
1366
1402
|
fetchOptions?: FetchOptions | undefined;
|
|
1367
|
-
} & Partial<{}>> | undefined, data_1?: FetchOptions | undefined) => Promise<import("
|
|
1403
|
+
} & Partial<{}>> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1368
1404
|
status: boolean;
|
|
1369
1405
|
}, {
|
|
1370
1406
|
code?: string | undefined;
|
|
@@ -1381,7 +1417,7 @@ export declare function getAuthClientExports(): {
|
|
|
1381
1417
|
token?: string | undefined;
|
|
1382
1418
|
} & {
|
|
1383
1419
|
fetchOptions?: FetchOptions | undefined;
|
|
1384
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("
|
|
1420
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1385
1421
|
success: boolean;
|
|
1386
1422
|
message: string;
|
|
1387
1423
|
}, {
|
|
@@ -1397,7 +1433,7 @@ export declare function getAuthClientExports(): {
|
|
|
1397
1433
|
redirectTo?: string | undefined;
|
|
1398
1434
|
} & {
|
|
1399
1435
|
fetchOptions?: FetchOptions | undefined;
|
|
1400
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("
|
|
1436
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1401
1437
|
status: boolean;
|
|
1402
1438
|
message: string;
|
|
1403
1439
|
}, {
|
|
@@ -1415,7 +1451,7 @@ export declare function getAuthClientExports(): {
|
|
|
1415
1451
|
callbackURL: string;
|
|
1416
1452
|
};
|
|
1417
1453
|
fetchOptions?: FetchOptions | undefined;
|
|
1418
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("
|
|
1454
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<never, {
|
|
1419
1455
|
code?: string | undefined;
|
|
1420
1456
|
message?: string | undefined;
|
|
1421
1457
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
@@ -1424,7 +1460,7 @@ export declare function getAuthClientExports(): {
|
|
|
1424
1460
|
listSessions: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
1425
1461
|
query?: Record<string, any> | undefined;
|
|
1426
1462
|
fetchOptions?: FetchOptions | undefined;
|
|
1427
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("
|
|
1463
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<import("better-auth").Prettify<{
|
|
1428
1464
|
id: string;
|
|
1429
1465
|
createdAt: Date;
|
|
1430
1466
|
updatedAt: Date;
|
|
@@ -1444,7 +1480,7 @@ export declare function getAuthClientExports(): {
|
|
|
1444
1480
|
token: string;
|
|
1445
1481
|
} & {
|
|
1446
1482
|
fetchOptions?: FetchOptions | undefined;
|
|
1447
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("
|
|
1483
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1448
1484
|
status: boolean;
|
|
1449
1485
|
}, {
|
|
1450
1486
|
code?: string | undefined;
|
|
@@ -1454,7 +1490,7 @@ export declare function getAuthClientExports(): {
|
|
|
1454
1490
|
revokeSessions: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
1455
1491
|
query?: Record<string, any> | undefined;
|
|
1456
1492
|
fetchOptions?: FetchOptions | undefined;
|
|
1457
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("
|
|
1493
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1458
1494
|
status: boolean;
|
|
1459
1495
|
}, {
|
|
1460
1496
|
code?: string | undefined;
|
|
@@ -1464,7 +1500,7 @@ export declare function getAuthClientExports(): {
|
|
|
1464
1500
|
revokeOtherSessions: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
1465
1501
|
query?: Record<string, any> | undefined;
|
|
1466
1502
|
fetchOptions?: FetchOptions | undefined;
|
|
1467
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("
|
|
1503
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1468
1504
|
status: boolean;
|
|
1469
1505
|
}, {
|
|
1470
1506
|
code?: string | undefined;
|
|
@@ -1503,7 +1539,7 @@ export declare function getAuthClientExports(): {
|
|
|
1503
1539
|
additionalData?: Record<string, any> | undefined;
|
|
1504
1540
|
} & {
|
|
1505
1541
|
fetchOptions?: FetchOptions | undefined;
|
|
1506
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("
|
|
1542
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1507
1543
|
url: string;
|
|
1508
1544
|
redirect: boolean;
|
|
1509
1545
|
}, {
|
|
@@ -1514,7 +1550,7 @@ export declare function getAuthClientExports(): {
|
|
|
1514
1550
|
listAccounts: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
1515
1551
|
query?: Record<string, any> | undefined;
|
|
1516
1552
|
fetchOptions?: FetchOptions | undefined;
|
|
1517
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("
|
|
1553
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1518
1554
|
id: string;
|
|
1519
1555
|
providerId: string;
|
|
1520
1556
|
createdAt: Date;
|
|
@@ -1537,7 +1573,7 @@ export declare function getAuthClientExports(): {
|
|
|
1537
1573
|
callbackURL?: string | undefined;
|
|
1538
1574
|
};
|
|
1539
1575
|
fetchOptions?: FetchOptions | undefined;
|
|
1540
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("
|
|
1576
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1541
1577
|
success: boolean;
|
|
1542
1578
|
message: string;
|
|
1543
1579
|
}, {
|
|
@@ -1554,7 +1590,7 @@ export declare function getAuthClientExports(): {
|
|
|
1554
1590
|
accountId?: string | undefined;
|
|
1555
1591
|
} & {
|
|
1556
1592
|
fetchOptions?: FetchOptions | undefined;
|
|
1557
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("
|
|
1593
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1558
1594
|
status: boolean;
|
|
1559
1595
|
}, {
|
|
1560
1596
|
code?: string | undefined;
|
|
@@ -1571,7 +1607,7 @@ export declare function getAuthClientExports(): {
|
|
|
1571
1607
|
userId?: string | undefined;
|
|
1572
1608
|
} & {
|
|
1573
1609
|
fetchOptions?: FetchOptions | undefined;
|
|
1574
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("
|
|
1610
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1575
1611
|
accessToken: string | undefined;
|
|
1576
1612
|
refreshToken: string | undefined;
|
|
1577
1613
|
accessTokenExpiresAt: Date | undefined;
|
|
@@ -1595,7 +1631,7 @@ export declare function getAuthClientExports(): {
|
|
|
1595
1631
|
userId?: string | undefined;
|
|
1596
1632
|
} & {
|
|
1597
1633
|
fetchOptions?: FetchOptions | undefined;
|
|
1598
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("
|
|
1634
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1599
1635
|
accessToken: string;
|
|
1600
1636
|
accessTokenExpiresAt: Date | undefined;
|
|
1601
1637
|
scopes: string[];
|
|
@@ -1612,7 +1648,7 @@ export declare function getAuthClientExports(): {
|
|
|
1612
1648
|
accountId?: string | undefined;
|
|
1613
1649
|
} | undefined;
|
|
1614
1650
|
fetchOptions?: FetchOptions | undefined;
|
|
1615
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("
|
|
1651
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1616
1652
|
user: import("better-auth").OAuth2UserInfo;
|
|
1617
1653
|
data: Record<string, any>;
|
|
1618
1654
|
}, {
|
|
@@ -1629,7 +1665,7 @@ export declare function getAuthClientExports(): {
|
|
|
1629
1665
|
disableRefresh?: unknown;
|
|
1630
1666
|
} | undefined;
|
|
1631
1667
|
fetchOptions?: FetchOptions | undefined;
|
|
1632
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("
|
|
1668
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1633
1669
|
user: {
|
|
1634
1670
|
id: string;
|
|
1635
1671
|
createdAt: Date;
|
|
@@ -1679,7 +1715,10 @@ export declare function getAuthClientExports(): {
|
|
|
1679
1715
|
} | null;
|
|
1680
1716
|
readonly isPending: boolean;
|
|
1681
1717
|
readonly isRefetching: boolean;
|
|
1682
|
-
readonly error: import("
|
|
1718
|
+
readonly error: import("better-auth/client").BetterFetchError | null;
|
|
1719
|
+
readonly refetch: (queryParams?: {
|
|
1720
|
+
query?: import("better-auth").SessionQueryParams;
|
|
1721
|
+
} | undefined) => Promise<void>;
|
|
1683
1722
|
}, {
|
|
1684
1723
|
readonly data: {
|
|
1685
1724
|
readonly user: {
|
|
@@ -1704,7 +1743,10 @@ export declare function getAuthClientExports(): {
|
|
|
1704
1743
|
} | null;
|
|
1705
1744
|
readonly isPending: boolean;
|
|
1706
1745
|
readonly isRefetching: boolean;
|
|
1707
|
-
readonly error: import("
|
|
1746
|
+
readonly error: import("better-auth/client").BetterFetchError | null;
|
|
1747
|
+
readonly refetch: (queryParams?: {
|
|
1748
|
+
query?: import("better-auth").SessionQueryParams;
|
|
1749
|
+
} | undefined) => Promise<void>;
|
|
1708
1750
|
}>>;
|
|
1709
1751
|
<F extends (...args: any) => any>(useFetch: F): Promise<{
|
|
1710
1752
|
data: import("vue").Ref<{
|
|
@@ -1779,21 +1821,21 @@ export declare function getAuthClientExports(): {
|
|
|
1779
1821
|
};
|
|
1780
1822
|
};
|
|
1781
1823
|
};
|
|
1782
|
-
$fetch: import("
|
|
1783
|
-
plugins: (import("
|
|
1824
|
+
$fetch: import("better-auth/client").BetterFetch<{
|
|
1825
|
+
plugins: (import("better-auth/client").BetterFetchPlugin<Record<string, any>> | {
|
|
1784
1826
|
id: string;
|
|
1785
1827
|
name: string;
|
|
1786
1828
|
hooks: {
|
|
1787
|
-
onSuccess(context: import("
|
|
1829
|
+
onSuccess(context: import("better-auth/client").SuccessContext<any>): void;
|
|
1788
1830
|
};
|
|
1789
1831
|
} | {
|
|
1790
1832
|
id: string;
|
|
1791
1833
|
name: string;
|
|
1792
1834
|
hooks: {
|
|
1793
|
-
onSuccess: ((context: import("
|
|
1794
|
-
onError: ((context: import("
|
|
1795
|
-
onRequest: (<T extends Record<string, any>>(context: import("
|
|
1796
|
-
onResponse: ((context: import("
|
|
1835
|
+
onSuccess: ((context: import("better-auth/client").SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
1836
|
+
onError: ((context: import("better-auth/client").ErrorContext) => Promise<void> | void) | undefined;
|
|
1837
|
+
onRequest: (<T extends Record<string, any>>(context: import("better-auth/client").RequestContext<T>) => Promise<import("better-auth/client").RequestContext | void> | import("better-auth/client").RequestContext | void) | undefined;
|
|
1838
|
+
onResponse: ((context: import("better-auth/client").ResponseContext) => Promise<Response | void | import("better-auth/client").ResponseContext> | Response | import("better-auth/client").ResponseContext | void) | undefined;
|
|
1797
1839
|
};
|
|
1798
1840
|
})[];
|
|
1799
1841
|
cache?: RequestCache | undefined;
|
|
@@ -1813,12 +1855,12 @@ export declare function getAuthClientExports(): {
|
|
|
1813
1855
|
referrerPolicy?: ReferrerPolicy | undefined;
|
|
1814
1856
|
signal?: (AbortSignal | null) | undefined;
|
|
1815
1857
|
window?: null | undefined;
|
|
1816
|
-
onRetry?: ((response: import("
|
|
1858
|
+
onRetry?: ((response: import("better-auth/client").ResponseContext) => Promise<void> | void) | undefined;
|
|
1817
1859
|
hookOptions?: {
|
|
1818
1860
|
cloneResponse?: boolean;
|
|
1819
1861
|
} | undefined;
|
|
1820
1862
|
timeout?: number | undefined;
|
|
1821
|
-
customFetchImpl: import("
|
|
1863
|
+
customFetchImpl: import("better-auth/client").FetchEsque;
|
|
1822
1864
|
baseURL: string;
|
|
1823
1865
|
throw?: boolean | undefined;
|
|
1824
1866
|
auth?: ({
|
|
@@ -1838,17 +1880,17 @@ export declare function getAuthClientExports(): {
|
|
|
1838
1880
|
params?: any;
|
|
1839
1881
|
duplex?: "full" | "half" | undefined;
|
|
1840
1882
|
jsonParser: (text: string) => Promise<any> | any;
|
|
1841
|
-
retry?: import("
|
|
1883
|
+
retry?: import("better-auth/client").RetryOptions | undefined;
|
|
1842
1884
|
retryAttempt?: number | undefined;
|
|
1843
|
-
output?: (import("
|
|
1844
|
-
errorSchema?: import("
|
|
1885
|
+
output?: (import("better-auth/client").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
1886
|
+
errorSchema?: import("better-auth/client").StandardSchemaV1 | undefined;
|
|
1845
1887
|
disableValidation?: boolean | undefined;
|
|
1846
1888
|
disableSignal?: boolean | undefined;
|
|
1847
1889
|
}, unknown, unknown, {}>;
|
|
1848
1890
|
$store: {
|
|
1849
1891
|
notify: (signal?: (Omit<string, "$sessionSignal"> | "$sessionSignal") | undefined) => void;
|
|
1850
1892
|
listen: (signal: Omit<string, "$sessionSignal"> | "$sessionSignal", listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
|
|
1851
|
-
atoms: Record<string, import("
|
|
1893
|
+
atoms: Record<string, import("better-auth/client").WritableAtom<any>>;
|
|
1852
1894
|
};
|
|
1853
1895
|
$ERROR_CODES: {
|
|
1854
1896
|
readonly USER_NOT_FOUND: "User not found";
|
|
@@ -1876,6 +1918,24 @@ export declare function getAuthClientExports(): {
|
|
|
1876
1918
|
readonly FAILED_TO_UNLINK_LAST_ACCOUNT: "You can't unlink your last account";
|
|
1877
1919
|
readonly ACCOUNT_NOT_FOUND: "Account not found";
|
|
1878
1920
|
readonly USER_ALREADY_HAS_PASSWORD: "User already has a password. Provide that to delete the account.";
|
|
1921
|
+
readonly CROSS_SITE_NAVIGATION_LOGIN_BLOCKED: "Cross-site navigation login blocked. This request appears to be a CSRF attack.";
|
|
1922
|
+
readonly VERIFICATION_EMAIL_NOT_ENABLED: "Verification email isn't enabled";
|
|
1923
|
+
readonly EMAIL_ALREADY_VERIFIED: "Email is already verified";
|
|
1924
|
+
readonly EMAIL_MISMATCH: "Email mismatch";
|
|
1925
|
+
readonly SESSION_NOT_FRESH: "Session is not fresh";
|
|
1926
|
+
readonly LINKED_ACCOUNT_ALREADY_EXISTS: "Linked account already exists";
|
|
1927
|
+
readonly INVALID_ORIGIN: "Invalid origin";
|
|
1928
|
+
readonly INVALID_CALLBACK_URL: "Invalid callbackURL";
|
|
1929
|
+
readonly INVALID_REDIRECT_URL: "Invalid redirectURL";
|
|
1930
|
+
readonly INVALID_ERROR_CALLBACK_URL: "Invalid errorCallbackURL";
|
|
1931
|
+
readonly INVALID_NEW_USER_CALLBACK_URL: "Invalid newUserCallbackURL";
|
|
1932
|
+
readonly MISSING_OR_NULL_ORIGIN: "Missing or null Origin";
|
|
1933
|
+
readonly CALLBACK_URL_REQUIRED: "callbackURL is required";
|
|
1934
|
+
readonly FAILED_TO_CREATE_VERIFICATION: "Unable to create verification";
|
|
1935
|
+
readonly FIELD_NOT_ALLOWED: "Field not allowed to be set";
|
|
1936
|
+
readonly ASYNC_VALIDATION_NOT_SUPPORTED: "Async validation is not supported";
|
|
1937
|
+
readonly VALIDATION_ERROR: "Validation Error";
|
|
1938
|
+
readonly MISSING_FIELD: "Field is required";
|
|
1879
1939
|
};
|
|
1880
1940
|
};
|
|
1881
1941
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useRuntimeConfig } from "nitro/runtime-config";
|
|
2
1
|
import { definePlugin } from "nitro";
|
|
2
|
+
import { useRuntimeConfig } from "nitro/runtime-config";
|
|
3
3
|
import { useStorage } from "nitro/storage";
|
|
4
4
|
import fs from "unstorage/drivers/fs-lite";
|
|
5
5
|
import redisDriver from "unstorage/drivers/redis";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "abckit",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.40",
|
|
5
5
|
"description": "Nuxt 4 module — UI components, auth, storage, GraphQL",
|
|
6
6
|
"author": "productdevbook",
|
|
7
7
|
"license": "MIT",
|
|
@@ -72,37 +72,37 @@
|
|
|
72
72
|
"dist"
|
|
73
73
|
],
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"@better-auth/oauth-provider": "^1.4.
|
|
76
|
-
"@capacitor/android": "^8.0.
|
|
75
|
+
"@better-auth/oauth-provider": "^1.4.12",
|
|
76
|
+
"@capacitor/android": "^8.0.1",
|
|
77
77
|
"@capacitor/app": "^8.0.0",
|
|
78
78
|
"@capacitor/browser": "^8.0.0",
|
|
79
|
-
"@capacitor/cli": "^8.0.
|
|
80
|
-
"@capacitor/core": "^8.0.
|
|
79
|
+
"@capacitor/cli": "^8.0.1",
|
|
80
|
+
"@capacitor/core": "^8.0.1",
|
|
81
81
|
"@capacitor/device": "^8.0.0",
|
|
82
82
|
"@capacitor/geolocation": "^8.0.0",
|
|
83
83
|
"@capacitor/haptics": "^8.0.0",
|
|
84
|
-
"@capacitor/ios": "^8.0.
|
|
84
|
+
"@capacitor/ios": "^8.0.1",
|
|
85
85
|
"@capacitor/network": "^8.0.0",
|
|
86
86
|
"@capacitor/preferences": "^8.0.0",
|
|
87
87
|
"@capacitor/push-notifications": "^8.0.0",
|
|
88
88
|
"@capacitor/splash-screen": "^8.0.0",
|
|
89
89
|
"@capacitor/status-bar": "^8.0.0",
|
|
90
|
-
"@capgo/capacitor-social-login": "^8.2.
|
|
91
|
-
"@graphql-tools/utils": "^
|
|
92
|
-
"@ionic/vue": "^8.7.
|
|
93
|
-
"@nuxt/icon": "^2.
|
|
90
|
+
"@capgo/capacitor-social-login": "^8.2.13",
|
|
91
|
+
"@graphql-tools/utils": "^11.0.0",
|
|
92
|
+
"@ionic/vue": "^8.7.16",
|
|
93
|
+
"@nuxt/icon": "^2.2.0",
|
|
94
94
|
"@nuxt/scripts": "^0.13.2",
|
|
95
95
|
"@nuxtjs/color-mode": "^4.0.0",
|
|
96
96
|
"@nuxtjs/i18n": "^10.2.1",
|
|
97
97
|
"@nuxtjs/ionic": "^1.0.2",
|
|
98
98
|
"@nuxtjs/tailwindcss": "7.0.0-beta.1",
|
|
99
99
|
"@openfga/sdk": "^0.9.1",
|
|
100
|
-
"@pinia/colada": "^0.
|
|
100
|
+
"@pinia/colada": "^0.21.1",
|
|
101
101
|
"@pinia/colada-nuxt": "^0.3.0",
|
|
102
102
|
"@pinia/colada-plugin-auto-refetch": "^0.2.4",
|
|
103
103
|
"@pinia/nuxt": "^0.11.3",
|
|
104
|
-
"@polar-sh/sdk": "^0.42.
|
|
105
|
-
"@sentry/nuxt": "^10.
|
|
104
|
+
"@polar-sh/sdk": "^0.42.2",
|
|
105
|
+
"@sentry/nuxt": "^10.33.0",
|
|
106
106
|
"@sindresorhus/slugify": "^3.0.0",
|
|
107
107
|
"@tailwindcss/typography": "^0.5.19",
|
|
108
108
|
"@tanstack/vue-table": "^8.21.3",
|
|
@@ -112,9 +112,9 @@
|
|
|
112
112
|
"@vueuse/nuxt": "^14.1.0",
|
|
113
113
|
"@vueuse/router": "^14.1.0",
|
|
114
114
|
"@vueuse/sound": "^2.1.3",
|
|
115
|
-
"apiful": "^4.0.
|
|
115
|
+
"apiful": "^4.0.1",
|
|
116
116
|
"aws4fetch": "^1.0.20",
|
|
117
|
-
"better-auth": "^1.4.
|
|
117
|
+
"better-auth": "^1.4.12",
|
|
118
118
|
"capacitor-native-settings": "^7.0.2",
|
|
119
119
|
"class-variance-authority": "^0.7.1",
|
|
120
120
|
"clsx": "^2.1.1",
|
|
@@ -130,9 +130,9 @@
|
|
|
130
130
|
"graphql-config": "^5.1.5",
|
|
131
131
|
"graphql-scalars": "^1.25.0",
|
|
132
132
|
"graphql-yoga": "^5.18.0",
|
|
133
|
-
"md-editor-v3": "^6.
|
|
134
|
-
"nitro-graphql": "^1.8.0",
|
|
133
|
+
"md-editor-v3": "^6.3.1",
|
|
135
134
|
"nitro": "https://pkg.pr.new/nitrojs/nitro@99691fc",
|
|
135
|
+
"nitro-graphql": "^2.0.0-beta.65",
|
|
136
136
|
"notivue": "^2.4.5",
|
|
137
137
|
"pg": "^8.16.3",
|
|
138
138
|
"pinia": "^3.0.4",
|
|
@@ -141,120 +141,39 @@
|
|
|
141
141
|
"tailwind-merge": "^3.4.0",
|
|
142
142
|
"tailwindcss": "^4.1.18",
|
|
143
143
|
"tw-animate-css": "^1.4.0",
|
|
144
|
-
"unstorage": "^
|
|
144
|
+
"unstorage": "^2.0.0-alpha.5",
|
|
145
145
|
"uuid": "^13.0.0",
|
|
146
146
|
"vaul-vue": "^0.4.1",
|
|
147
147
|
"vee-validate": "5.0.0-beta.0",
|
|
148
|
-
"vite-tsconfig-paths": "^6.0.
|
|
148
|
+
"vite-tsconfig-paths": "^6.0.4",
|
|
149
149
|
"vue-input-otp": "^0.3.2",
|
|
150
150
|
"vue-router": "^4.6.4",
|
|
151
151
|
"vue-sonner": "^2.0.9",
|
|
152
|
-
"vue-tsc": "^3.2.
|
|
153
|
-
"zod": "^4.
|
|
152
|
+
"vue-tsc": "^3.2.2",
|
|
153
|
+
"zod": "^4.3.5"
|
|
154
154
|
},
|
|
155
155
|
"devDependencies": {
|
|
156
|
-
"@antfu/eslint-config": "^
|
|
156
|
+
"@antfu/eslint-config": "^7.0.0",
|
|
157
157
|
"@nuxt/eslint": "latest",
|
|
158
|
+
"@nuxt/kit": "https://pkg.pr.new/@nuxt/kit@33005",
|
|
158
159
|
"@nuxt/module-builder": "^1.0.2",
|
|
159
|
-
"@nuxt/schema": "
|
|
160
|
-
"@types/node": "^25.0.
|
|
160
|
+
"@nuxt/schema": "https://pkg.pr.new/@nuxt/schema@33005",
|
|
161
|
+
"@types/node": "^25.0.8",
|
|
161
162
|
"@types/pg": "^8.16.0",
|
|
162
163
|
"eslint": "^9.39.2",
|
|
163
|
-
"
|
|
164
|
-
"nuxt": "^4.2.2",
|
|
164
|
+
"nuxt": "https://pkg.pr.new/nuxt@33005",
|
|
165
165
|
"shadcn-vue": "^2.4.3",
|
|
166
166
|
"typescript": "^5.9.3",
|
|
167
167
|
"vue": "^3.5.26"
|
|
168
168
|
},
|
|
169
|
-
"peerDependencies": {
|
|
170
|
-
"@better-auth/oauth-provider": "^1.4.9",
|
|
171
|
-
"@capacitor/android": "^8.0.0",
|
|
172
|
-
"@capacitor/app": "^8.0.0",
|
|
173
|
-
"@capacitor/browser": "^8.0.0",
|
|
174
|
-
"@capacitor/cli": "^8.0.0",
|
|
175
|
-
"@capacitor/core": "^8.0.0",
|
|
176
|
-
"@capacitor/device": "^8.0.0",
|
|
177
|
-
"@capacitor/geolocation": "^8.0.0",
|
|
178
|
-
"@capacitor/haptics": "^8.0.0",
|
|
179
|
-
"@capacitor/ios": "^8.0.0",
|
|
180
|
-
"@capacitor/network": "^8.0.0",
|
|
181
|
-
"@capacitor/preferences": "^8.0.0",
|
|
182
|
-
"@capacitor/push-notifications": "^8.0.0",
|
|
183
|
-
"@capacitor/splash-screen": "^8.0.0",
|
|
184
|
-
"@capacitor/status-bar": "^8.0.0",
|
|
185
|
-
"@capgo/capacitor-social-login": "^8.2.5",
|
|
186
|
-
"@graphql-tools/utils": "^10.11.0",
|
|
187
|
-
"@ionic/vue": "^8.7.15",
|
|
188
|
-
"@nuxt/icon": "^2.1.1",
|
|
189
|
-
"@nuxt/scripts": "^0.13.2",
|
|
190
|
-
"@nuxtjs/color-mode": "^4.0.0",
|
|
191
|
-
"@nuxtjs/i18n": "^10.2.1",
|
|
192
|
-
"@nuxtjs/ionic": "^1.0.2",
|
|
193
|
-
"@nuxtjs/tailwindcss": "7.0.0-beta.1",
|
|
194
|
-
"@openfga/sdk": "^0.9.1",
|
|
195
|
-
"@pinia/colada": "^0.20.0",
|
|
196
|
-
"@pinia/colada-nuxt": "^0.3.0",
|
|
197
|
-
"@pinia/colada-plugin-auto-refetch": "^0.2.4",
|
|
198
|
-
"@pinia/nuxt": "^0.11.3",
|
|
199
|
-
"@polar-sh/sdk": "^0.42.1",
|
|
200
|
-
"@sentry/nuxt": "^10.32.1",
|
|
201
|
-
"@sindresorhus/slugify": "^3.0.0",
|
|
202
|
-
"@tailwindcss/typography": "^0.5.19",
|
|
203
|
-
"@tanstack/vue-table": "^8.21.3",
|
|
204
|
-
"@unovis/vue": "^1.6.2",
|
|
205
|
-
"@vee-validate/nuxt": "5.0.0-beta.0",
|
|
206
|
-
"@vueuse/core": "^14.1.0",
|
|
207
|
-
"@vueuse/nuxt": "^14.1.0",
|
|
208
|
-
"@vueuse/router": "^14.1.0",
|
|
209
|
-
"@vueuse/sound": "^2.1.3",
|
|
210
|
-
"apiful": "^4.0.0",
|
|
211
|
-
"aws4fetch": "^1.0.20",
|
|
212
|
-
"better-auth": "^1.4.9",
|
|
213
|
-
"capacitor-native-settings": "^7.0.2",
|
|
214
|
-
"class-variance-authority": "^0.7.1",
|
|
215
|
-
"clsx": "^2.1.1",
|
|
216
|
-
"consola": "^3.4.2",
|
|
217
|
-
"dataloader": "^2.2.3",
|
|
218
|
-
"date-fns": "^4.1.0",
|
|
219
|
-
"defu": "^6.1.4",
|
|
220
|
-
"drizzle-kit": "^0.31.8",
|
|
221
|
-
"drizzle-orm": "^0.45.1",
|
|
222
|
-
"drizzle-zod": "^0.8.3",
|
|
223
|
-
"embla-carousel-vue": "^8.6.0",
|
|
224
|
-
"graphql": "^16.12.0",
|
|
225
|
-
"graphql-config": "^5.1.5",
|
|
226
|
-
"graphql-scalars": "^1.25.0",
|
|
227
|
-
"graphql-yoga": "^5.18.0",
|
|
228
|
-
"h3": "^1.15.4",
|
|
229
|
-
"md-editor-v3": "^6.2.1",
|
|
230
|
-
"nitro-graphql": "^1.8.0",
|
|
231
|
-
"nitro": "^3.0.0",
|
|
232
|
-
"notivue": "^2.4.5",
|
|
233
|
-
"nuxt": "^4.2.2",
|
|
234
|
-
"pg": "^8.16.3",
|
|
235
|
-
"pinia": "^3.0.4",
|
|
236
|
-
"pinia-plugin-persistedstate": "^4.7.1",
|
|
237
|
-
"reka-ui": "^2.7.0",
|
|
238
|
-
"tailwind-merge": "^3.4.0",
|
|
239
|
-
"tailwindcss": "^4.1.18",
|
|
240
|
-
"tw-animate-css": "^1.4.0",
|
|
241
|
-
"unstorage": "^1.17.3",
|
|
242
|
-
"uuid": "^13.0.0",
|
|
243
|
-
"vaul-vue": "^0.4.1",
|
|
244
|
-
"vee-validate": "5.0.0-beta.0",
|
|
245
|
-
"vite-tsconfig-paths": "^6.0.3",
|
|
246
|
-
"vue": "^3.5.26",
|
|
247
|
-
"vue-input-otp": "^0.3.2",
|
|
248
|
-
"vue-router": "^4.6.4",
|
|
249
|
-
"vue-sonner": "^2.0.9",
|
|
250
|
-
"vue-tsc": "^3.2.1",
|
|
251
|
-
"zod": "^4.2.1"
|
|
252
|
-
},
|
|
253
169
|
"resolutions": {
|
|
254
170
|
"abckit": "workspace:*"
|
|
255
171
|
},
|
|
256
172
|
"overrides": {
|
|
257
|
-
"
|
|
173
|
+
"@nuxt/kit": "https://pkg.pr.new/@nuxt/kit@33005",
|
|
174
|
+
"@nuxt/schema": "https://pkg.pr.new/@nuxt/schema@33005",
|
|
175
|
+
"entities": "7.0.0",
|
|
176
|
+
"nuxt": "https://pkg.pr.new/nuxt@33005"
|
|
258
177
|
},
|
|
259
178
|
"patchedDependencies": {
|
|
260
179
|
"entities@7.0.0": "patches/entities@7.0.0.patch",
|