includio-cms 0.1.1 → 0.1.2
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/CHANGELOG.md +38 -0
- package/ROADMAP.md +13 -11
- package/dist/admin/auth-client.d.ts +1165 -5
- package/dist/admin/auth-client.js +4 -1
- package/dist/admin/client/account/sessions-section.svelte +1 -21
- package/dist/admin/client/index.d.ts +1 -0
- package/dist/admin/client/index.js +1 -0
- package/dist/admin/client/users/accept-invite-page.svelte +118 -0
- package/dist/admin/client/users/accept-invite-page.svelte.d.ts +4 -0
- package/dist/admin/client/users/create-user-dialog.svelte +157 -0
- package/dist/admin/client/users/create-user-dialog.svelte.d.ts +8 -0
- package/dist/admin/client/users/delete-user-dialog.svelte +53 -0
- package/dist/admin/client/users/delete-user-dialog.svelte.d.ts +10 -0
- package/dist/admin/client/users/edit-user-dialog.svelte +127 -0
- package/dist/admin/client/users/edit-user-dialog.svelte.d.ts +16 -0
- package/dist/admin/client/users/invite-user-dialog.svelte +107 -0
- package/dist/admin/client/users/invite-user-dialog.svelte.d.ts +8 -0
- package/dist/admin/client/users/lang.d.ts +57 -0
- package/dist/admin/client/users/lang.js +114 -0
- package/dist/admin/client/users/pending-invitations.svelte +145 -0
- package/dist/admin/client/users/pending-invitations.svelte.d.ts +6 -0
- package/dist/admin/client/users/user-sessions-sheet.svelte +141 -0
- package/dist/admin/client/users/user-sessions-sheet.svelte.d.ts +8 -0
- package/dist/admin/client/users/users-page.svelte +262 -0
- package/dist/admin/client/users/users-page.svelte.d.ts +6 -0
- package/dist/admin/components/layout/lang.d.ts +1 -0
- package/dist/admin/components/layout/lang.js +4 -2
- package/dist/admin/components/layout/nav-main.svelte +15 -1
- package/dist/admin/remote/invite.d.ts +44 -0
- package/dist/admin/remote/invite.js +44 -0
- package/dist/admin/remote/middleware/auth.d.ts +5 -0
- package/dist/admin/remote/middleware/auth.js +7 -0
- package/dist/admin/utils/parseUserAgent.d.ts +5 -0
- package/dist/admin/utils/parseUserAgent.js +26 -0
- package/dist/cms/runtime/types.d.ts +0 -7
- package/dist/components/ui/input-group/input-group-input.svelte.d.ts +1 -1
- package/dist/components/ui/sidebar/sidebar-input.svelte.d.ts +1 -1
- package/dist/core/cms.d.ts +1 -1
- package/dist/core/cms.js +1 -1
- package/dist/core/server/forms/submissions/operations/create.js +1 -1
- package/dist/email-nodemailer/index.d.ts +1 -0
- package/dist/server/auth.d.ts +8 -8
- package/dist/server/db/schema/auth-schema.d.ts +143 -0
- package/dist/server/db/schema/auth-schema.js +12 -0
- package/dist/sveltekit/server/handle.js +13 -0
- package/dist/types/cms.d.ts +2 -2
- package/dist/types/roles.d.ts +1 -0
- package/dist/types/roles.js +1 -0
- package/dist/updates/0.1.2/index.d.ts +2 -0
- package/dist/updates/0.1.2/index.js +36 -0
- package/dist/updates/index.js +2 -1
- package/package.json +2 -2
|
@@ -1,4 +1,1115 @@
|
|
|
1
1
|
export declare const authClient: {
|
|
2
|
+
admin: {
|
|
3
|
+
setRole: <FetchOptions extends {
|
|
4
|
+
method?: string | undefined;
|
|
5
|
+
headers?: (HeadersInit & (HeadersInit | {
|
|
6
|
+
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
7
|
+
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
8
|
+
authorization: "Bearer" | "Basic";
|
|
9
|
+
})) | undefined;
|
|
10
|
+
cache?: RequestCache | undefined;
|
|
11
|
+
credentials?: RequestCredentials | undefined;
|
|
12
|
+
integrity?: string | undefined;
|
|
13
|
+
keepalive?: boolean | undefined;
|
|
14
|
+
mode?: RequestMode | undefined;
|
|
15
|
+
priority?: RequestPriority | undefined;
|
|
16
|
+
redirect?: RequestRedirect | undefined;
|
|
17
|
+
referrer?: string | undefined;
|
|
18
|
+
referrerPolicy?: ReferrerPolicy | undefined;
|
|
19
|
+
signal?: (AbortSignal | null) | undefined;
|
|
20
|
+
window?: null | undefined;
|
|
21
|
+
onRequest?: (<T extends Record<string, any>>(context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext<T>) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext | void> | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext | void) | undefined;
|
|
22
|
+
onResponse?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<Response | void | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext> | Response | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext | void) | undefined;
|
|
23
|
+
onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
24
|
+
onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
|
|
25
|
+
onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
|
|
26
|
+
hookOptions?: {
|
|
27
|
+
cloneResponse?: boolean;
|
|
28
|
+
} | undefined;
|
|
29
|
+
timeout?: number | undefined;
|
|
30
|
+
customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
|
|
31
|
+
plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
|
|
32
|
+
baseURL?: string | undefined;
|
|
33
|
+
throw?: boolean | undefined;
|
|
34
|
+
auth?: ({
|
|
35
|
+
type: "Bearer";
|
|
36
|
+
token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
|
|
37
|
+
} | {
|
|
38
|
+
type: "Basic";
|
|
39
|
+
username: string | (() => string | undefined) | undefined;
|
|
40
|
+
password: string | (() => string | undefined) | undefined;
|
|
41
|
+
} | {
|
|
42
|
+
type: "Custom";
|
|
43
|
+
prefix: string | (() => string | undefined) | undefined;
|
|
44
|
+
value: string | (() => string | undefined) | undefined;
|
|
45
|
+
}) | undefined;
|
|
46
|
+
body?: (Partial<{
|
|
47
|
+
userId: string;
|
|
48
|
+
role: "user" | "admin" | ("user" | "admin")[];
|
|
49
|
+
}> & Record<string, any>) | undefined;
|
|
50
|
+
query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
|
|
51
|
+
params?: Record<string, any> | undefined;
|
|
52
|
+
duplex?: "full" | "half" | undefined;
|
|
53
|
+
jsonParser?: ((text: string) => Promise<any> | any) | undefined;
|
|
54
|
+
retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
|
|
55
|
+
retryAttempt?: number | undefined;
|
|
56
|
+
output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
57
|
+
errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
|
|
58
|
+
disableValidation?: boolean | undefined;
|
|
59
|
+
}>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
|
|
60
|
+
userId: string;
|
|
61
|
+
role: "user" | "admin" | ("user" | "admin")[];
|
|
62
|
+
} & {
|
|
63
|
+
fetchOptions?: FetchOptions | undefined;
|
|
64
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
|
|
65
|
+
user: import("better-auth/plugins", { with: { "resolution-mode": "require" } }).UserWithRole;
|
|
66
|
+
}, {
|
|
67
|
+
code?: string;
|
|
68
|
+
message?: string;
|
|
69
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
70
|
+
};
|
|
71
|
+
} & {
|
|
72
|
+
admin: {
|
|
73
|
+
getUser: <FetchOptions extends {
|
|
74
|
+
method?: string | undefined;
|
|
75
|
+
headers?: (HeadersInit & (HeadersInit | {
|
|
76
|
+
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
77
|
+
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
78
|
+
authorization: "Bearer" | "Basic";
|
|
79
|
+
})) | undefined;
|
|
80
|
+
cache?: RequestCache | undefined;
|
|
81
|
+
credentials?: RequestCredentials | undefined;
|
|
82
|
+
integrity?: string | undefined;
|
|
83
|
+
keepalive?: boolean | undefined;
|
|
84
|
+
mode?: RequestMode | undefined;
|
|
85
|
+
priority?: RequestPriority | undefined;
|
|
86
|
+
redirect?: RequestRedirect | undefined;
|
|
87
|
+
referrer?: string | undefined;
|
|
88
|
+
referrerPolicy?: ReferrerPolicy | undefined;
|
|
89
|
+
signal?: (AbortSignal | null) | undefined;
|
|
90
|
+
window?: null | undefined;
|
|
91
|
+
onRequest?: (<T extends Record<string, any>>(context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext<T>) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext | void> | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext | void) | undefined;
|
|
92
|
+
onResponse?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<Response | void | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext> | Response | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext | void) | undefined;
|
|
93
|
+
onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
94
|
+
onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
|
|
95
|
+
onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
|
|
96
|
+
hookOptions?: {
|
|
97
|
+
cloneResponse?: boolean;
|
|
98
|
+
} | undefined;
|
|
99
|
+
timeout?: number | undefined;
|
|
100
|
+
customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
|
|
101
|
+
plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
|
|
102
|
+
baseURL?: string | undefined;
|
|
103
|
+
throw?: boolean | undefined;
|
|
104
|
+
auth?: ({
|
|
105
|
+
type: "Bearer";
|
|
106
|
+
token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
|
|
107
|
+
} | {
|
|
108
|
+
type: "Basic";
|
|
109
|
+
username: string | (() => string | undefined) | undefined;
|
|
110
|
+
password: string | (() => string | undefined) | undefined;
|
|
111
|
+
} | {
|
|
112
|
+
type: "Custom";
|
|
113
|
+
prefix: string | (() => string | undefined) | undefined;
|
|
114
|
+
value: string | (() => string | undefined) | undefined;
|
|
115
|
+
}) | undefined;
|
|
116
|
+
body?: undefined;
|
|
117
|
+
query?: (Partial<{
|
|
118
|
+
id: string;
|
|
119
|
+
}> & Record<string, any>) | undefined;
|
|
120
|
+
params?: Record<string, any> | undefined;
|
|
121
|
+
duplex?: "full" | "half" | undefined;
|
|
122
|
+
jsonParser?: ((text: string) => Promise<any> | any) | undefined;
|
|
123
|
+
retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
|
|
124
|
+
retryAttempt?: number | undefined;
|
|
125
|
+
output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
126
|
+
errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
|
|
127
|
+
disableValidation?: boolean | undefined;
|
|
128
|
+
}>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
|
|
129
|
+
query: {
|
|
130
|
+
id: string;
|
|
131
|
+
};
|
|
132
|
+
fetchOptions?: FetchOptions | undefined;
|
|
133
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
|
|
134
|
+
id: string;
|
|
135
|
+
createdAt: Date;
|
|
136
|
+
updatedAt: Date;
|
|
137
|
+
email: string;
|
|
138
|
+
emailVerified: boolean;
|
|
139
|
+
name: string;
|
|
140
|
+
image?: string | null | undefined;
|
|
141
|
+
}, {
|
|
142
|
+
code?: string;
|
|
143
|
+
message?: string;
|
|
144
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
145
|
+
};
|
|
146
|
+
} & {
|
|
147
|
+
admin: {
|
|
148
|
+
createUser: <FetchOptions extends {
|
|
149
|
+
method?: string | undefined;
|
|
150
|
+
headers?: (HeadersInit & (HeadersInit | {
|
|
151
|
+
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
152
|
+
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
153
|
+
authorization: "Bearer" | "Basic";
|
|
154
|
+
})) | undefined;
|
|
155
|
+
cache?: RequestCache | undefined;
|
|
156
|
+
credentials?: RequestCredentials | undefined;
|
|
157
|
+
integrity?: string | undefined;
|
|
158
|
+
keepalive?: boolean | undefined;
|
|
159
|
+
mode?: RequestMode | undefined;
|
|
160
|
+
priority?: RequestPriority | undefined;
|
|
161
|
+
redirect?: RequestRedirect | undefined;
|
|
162
|
+
referrer?: string | undefined;
|
|
163
|
+
referrerPolicy?: ReferrerPolicy | undefined;
|
|
164
|
+
signal?: (AbortSignal | null) | undefined;
|
|
165
|
+
window?: null | undefined;
|
|
166
|
+
onRequest?: (<T extends Record<string, any>>(context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext<T>) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext | void> | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext | void) | undefined;
|
|
167
|
+
onResponse?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<Response | void | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext> | Response | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext | void) | undefined;
|
|
168
|
+
onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
169
|
+
onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
|
|
170
|
+
onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
|
|
171
|
+
hookOptions?: {
|
|
172
|
+
cloneResponse?: boolean;
|
|
173
|
+
} | undefined;
|
|
174
|
+
timeout?: number | undefined;
|
|
175
|
+
customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
|
|
176
|
+
plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
|
|
177
|
+
baseURL?: string | undefined;
|
|
178
|
+
throw?: boolean | undefined;
|
|
179
|
+
auth?: ({
|
|
180
|
+
type: "Bearer";
|
|
181
|
+
token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
|
|
182
|
+
} | {
|
|
183
|
+
type: "Basic";
|
|
184
|
+
username: string | (() => string | undefined) | undefined;
|
|
185
|
+
password: string | (() => string | undefined) | undefined;
|
|
186
|
+
} | {
|
|
187
|
+
type: "Custom";
|
|
188
|
+
prefix: string | (() => string | undefined) | undefined;
|
|
189
|
+
value: string | (() => string | undefined) | undefined;
|
|
190
|
+
}) | undefined;
|
|
191
|
+
body?: (Partial<{
|
|
192
|
+
email: string;
|
|
193
|
+
password: string;
|
|
194
|
+
name: string;
|
|
195
|
+
role?: "user" | "admin" | ("user" | "admin")[] | undefined;
|
|
196
|
+
data?: Record<string, any>;
|
|
197
|
+
}> & Record<string, any>) | undefined;
|
|
198
|
+
query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
|
|
199
|
+
params?: Record<string, any> | undefined;
|
|
200
|
+
duplex?: "full" | "half" | undefined;
|
|
201
|
+
jsonParser?: ((text: string) => Promise<any> | any) | undefined;
|
|
202
|
+
retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
|
|
203
|
+
retryAttempt?: number | undefined;
|
|
204
|
+
output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
205
|
+
errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
|
|
206
|
+
disableValidation?: boolean | undefined;
|
|
207
|
+
}>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
|
|
208
|
+
email: string;
|
|
209
|
+
password: string;
|
|
210
|
+
name: string;
|
|
211
|
+
role?: "user" | "admin" | ("user" | "admin")[] | undefined;
|
|
212
|
+
data?: Record<string, any>;
|
|
213
|
+
} & {
|
|
214
|
+
fetchOptions?: FetchOptions | undefined;
|
|
215
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
|
|
216
|
+
user: import("better-auth/plugins", { with: { "resolution-mode": "require" } }).UserWithRole;
|
|
217
|
+
}, {
|
|
218
|
+
code?: string;
|
|
219
|
+
message?: string;
|
|
220
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
221
|
+
};
|
|
222
|
+
} & {
|
|
223
|
+
admin: {
|
|
224
|
+
updateUser: <FetchOptions extends {
|
|
225
|
+
method?: string | undefined;
|
|
226
|
+
headers?: (HeadersInit & (HeadersInit | {
|
|
227
|
+
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
228
|
+
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
229
|
+
authorization: "Bearer" | "Basic";
|
|
230
|
+
})) | undefined;
|
|
231
|
+
cache?: RequestCache | undefined;
|
|
232
|
+
credentials?: RequestCredentials | undefined;
|
|
233
|
+
integrity?: string | undefined;
|
|
234
|
+
keepalive?: boolean | undefined;
|
|
235
|
+
mode?: RequestMode | undefined;
|
|
236
|
+
priority?: RequestPriority | undefined;
|
|
237
|
+
redirect?: RequestRedirect | undefined;
|
|
238
|
+
referrer?: string | undefined;
|
|
239
|
+
referrerPolicy?: ReferrerPolicy | undefined;
|
|
240
|
+
signal?: (AbortSignal | null) | undefined;
|
|
241
|
+
window?: null | undefined;
|
|
242
|
+
onRequest?: (<T extends Record<string, any>>(context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext<T>) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext | void> | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext | void) | undefined;
|
|
243
|
+
onResponse?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<Response | void | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext> | Response | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext | void) | undefined;
|
|
244
|
+
onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
245
|
+
onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
|
|
246
|
+
onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
|
|
247
|
+
hookOptions?: {
|
|
248
|
+
cloneResponse?: boolean;
|
|
249
|
+
} | undefined;
|
|
250
|
+
timeout?: number | undefined;
|
|
251
|
+
customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
|
|
252
|
+
plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
|
|
253
|
+
baseURL?: string | undefined;
|
|
254
|
+
throw?: boolean | undefined;
|
|
255
|
+
auth?: ({
|
|
256
|
+
type: "Bearer";
|
|
257
|
+
token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
|
|
258
|
+
} | {
|
|
259
|
+
type: "Basic";
|
|
260
|
+
username: string | (() => string | undefined) | undefined;
|
|
261
|
+
password: string | (() => string | undefined) | undefined;
|
|
262
|
+
} | {
|
|
263
|
+
type: "Custom";
|
|
264
|
+
prefix: string | (() => string | undefined) | undefined;
|
|
265
|
+
value: string | (() => string | undefined) | undefined;
|
|
266
|
+
}) | undefined;
|
|
267
|
+
body?: (Partial<{
|
|
268
|
+
userId: unknown;
|
|
269
|
+
data: Record<any, any>;
|
|
270
|
+
}> & Record<string, any>) | undefined;
|
|
271
|
+
query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
|
|
272
|
+
params?: Record<string, any> | undefined;
|
|
273
|
+
duplex?: "full" | "half" | undefined;
|
|
274
|
+
jsonParser?: ((text: string) => Promise<any> | any) | undefined;
|
|
275
|
+
retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
|
|
276
|
+
retryAttempt?: number | undefined;
|
|
277
|
+
output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
278
|
+
errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
|
|
279
|
+
disableValidation?: boolean | undefined;
|
|
280
|
+
}>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
|
|
281
|
+
userId: unknown;
|
|
282
|
+
data: Record<any, any>;
|
|
283
|
+
} & {
|
|
284
|
+
fetchOptions?: FetchOptions | undefined;
|
|
285
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<import("better-auth/plugins", { with: { "resolution-mode": "require" } }).UserWithRole, {
|
|
286
|
+
code?: string;
|
|
287
|
+
message?: string;
|
|
288
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
289
|
+
};
|
|
290
|
+
} & {
|
|
291
|
+
admin: {
|
|
292
|
+
listUsers: <FetchOptions extends {
|
|
293
|
+
method?: string | undefined;
|
|
294
|
+
headers?: (HeadersInit & (HeadersInit | {
|
|
295
|
+
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
296
|
+
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
297
|
+
authorization: "Bearer" | "Basic";
|
|
298
|
+
})) | undefined;
|
|
299
|
+
cache?: RequestCache | undefined;
|
|
300
|
+
credentials?: RequestCredentials | undefined;
|
|
301
|
+
integrity?: string | undefined;
|
|
302
|
+
keepalive?: boolean | undefined;
|
|
303
|
+
mode?: RequestMode | undefined;
|
|
304
|
+
priority?: RequestPriority | undefined;
|
|
305
|
+
redirect?: RequestRedirect | undefined;
|
|
306
|
+
referrer?: string | undefined;
|
|
307
|
+
referrerPolicy?: ReferrerPolicy | undefined;
|
|
308
|
+
signal?: (AbortSignal | null) | undefined;
|
|
309
|
+
window?: null | undefined;
|
|
310
|
+
onRequest?: (<T extends Record<string, any>>(context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext<T>) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext | void> | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext | void) | undefined;
|
|
311
|
+
onResponse?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<Response | void | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext> | Response | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext | void) | undefined;
|
|
312
|
+
onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
313
|
+
onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
|
|
314
|
+
onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
|
|
315
|
+
hookOptions?: {
|
|
316
|
+
cloneResponse?: boolean;
|
|
317
|
+
} | undefined;
|
|
318
|
+
timeout?: number | undefined;
|
|
319
|
+
customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
|
|
320
|
+
plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
|
|
321
|
+
baseURL?: string | undefined;
|
|
322
|
+
throw?: boolean | undefined;
|
|
323
|
+
auth?: ({
|
|
324
|
+
type: "Bearer";
|
|
325
|
+
token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
|
|
326
|
+
} | {
|
|
327
|
+
type: "Basic";
|
|
328
|
+
username: string | (() => string | undefined) | undefined;
|
|
329
|
+
password: string | (() => string | undefined) | undefined;
|
|
330
|
+
} | {
|
|
331
|
+
type: "Custom";
|
|
332
|
+
prefix: string | (() => string | undefined) | undefined;
|
|
333
|
+
value: string | (() => string | undefined) | undefined;
|
|
334
|
+
}) | undefined;
|
|
335
|
+
body?: undefined;
|
|
336
|
+
query?: (Partial<{
|
|
337
|
+
searchValue?: string | undefined;
|
|
338
|
+
searchField?: "email" | "name" | undefined;
|
|
339
|
+
searchOperator?: "contains" | "starts_with" | "ends_with" | undefined;
|
|
340
|
+
limit?: string | number | undefined;
|
|
341
|
+
offset?: string | number | undefined;
|
|
342
|
+
sortBy?: string | undefined;
|
|
343
|
+
sortDirection?: "asc" | "desc" | undefined;
|
|
344
|
+
filterField?: string | undefined;
|
|
345
|
+
filterValue?: string | number | boolean | undefined;
|
|
346
|
+
filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | undefined;
|
|
347
|
+
}> & Record<string, any>) | undefined;
|
|
348
|
+
params?: Record<string, any> | undefined;
|
|
349
|
+
duplex?: "full" | "half" | undefined;
|
|
350
|
+
jsonParser?: ((text: string) => Promise<any> | any) | undefined;
|
|
351
|
+
retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
|
|
352
|
+
retryAttempt?: number | undefined;
|
|
353
|
+
output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
354
|
+
errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
|
|
355
|
+
disableValidation?: boolean | undefined;
|
|
356
|
+
}>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
|
|
357
|
+
query: {
|
|
358
|
+
searchValue?: string | undefined;
|
|
359
|
+
searchField?: "email" | "name" | undefined;
|
|
360
|
+
searchOperator?: "contains" | "starts_with" | "ends_with" | undefined;
|
|
361
|
+
limit?: string | number | undefined;
|
|
362
|
+
offset?: string | number | undefined;
|
|
363
|
+
sortBy?: string | undefined;
|
|
364
|
+
sortDirection?: "asc" | "desc" | undefined;
|
|
365
|
+
filterField?: string | undefined;
|
|
366
|
+
filterValue?: string | number | boolean | undefined;
|
|
367
|
+
filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | undefined;
|
|
368
|
+
};
|
|
369
|
+
fetchOptions?: FetchOptions | undefined;
|
|
370
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<NonNullable<{
|
|
371
|
+
users: import("better-auth/plugins", { with: { "resolution-mode": "require" } }).UserWithRole[];
|
|
372
|
+
total: number;
|
|
373
|
+
limit: number | undefined;
|
|
374
|
+
offset: number | undefined;
|
|
375
|
+
} | {
|
|
376
|
+
users: never[];
|
|
377
|
+
total: number;
|
|
378
|
+
}>, {
|
|
379
|
+
code?: string;
|
|
380
|
+
message?: string;
|
|
381
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
382
|
+
};
|
|
383
|
+
} & {
|
|
384
|
+
admin: {
|
|
385
|
+
listUserSessions: <FetchOptions extends {
|
|
386
|
+
method?: string | undefined;
|
|
387
|
+
headers?: (HeadersInit & (HeadersInit | {
|
|
388
|
+
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
389
|
+
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
390
|
+
authorization: "Bearer" | "Basic";
|
|
391
|
+
})) | undefined;
|
|
392
|
+
cache?: RequestCache | undefined;
|
|
393
|
+
credentials?: RequestCredentials | undefined;
|
|
394
|
+
integrity?: string | undefined;
|
|
395
|
+
keepalive?: boolean | undefined;
|
|
396
|
+
mode?: RequestMode | undefined;
|
|
397
|
+
priority?: RequestPriority | undefined;
|
|
398
|
+
redirect?: RequestRedirect | undefined;
|
|
399
|
+
referrer?: string | undefined;
|
|
400
|
+
referrerPolicy?: ReferrerPolicy | undefined;
|
|
401
|
+
signal?: (AbortSignal | null) | undefined;
|
|
402
|
+
window?: null | undefined;
|
|
403
|
+
onRequest?: (<T extends Record<string, any>>(context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext<T>) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext | void> | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext | void) | undefined;
|
|
404
|
+
onResponse?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<Response | void | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext> | Response | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext | void) | undefined;
|
|
405
|
+
onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
406
|
+
onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
|
|
407
|
+
onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
|
|
408
|
+
hookOptions?: {
|
|
409
|
+
cloneResponse?: boolean;
|
|
410
|
+
} | undefined;
|
|
411
|
+
timeout?: number | undefined;
|
|
412
|
+
customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
|
|
413
|
+
plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
|
|
414
|
+
baseURL?: string | undefined;
|
|
415
|
+
throw?: boolean | undefined;
|
|
416
|
+
auth?: ({
|
|
417
|
+
type: "Bearer";
|
|
418
|
+
token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
|
|
419
|
+
} | {
|
|
420
|
+
type: "Basic";
|
|
421
|
+
username: string | (() => string | undefined) | undefined;
|
|
422
|
+
password: string | (() => string | undefined) | undefined;
|
|
423
|
+
} | {
|
|
424
|
+
type: "Custom";
|
|
425
|
+
prefix: string | (() => string | undefined) | undefined;
|
|
426
|
+
value: string | (() => string | undefined) | undefined;
|
|
427
|
+
}) | undefined;
|
|
428
|
+
body?: (Partial<{
|
|
429
|
+
userId: unknown;
|
|
430
|
+
}> & Record<string, any>) | undefined;
|
|
431
|
+
query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
|
|
432
|
+
params?: Record<string, any> | undefined;
|
|
433
|
+
duplex?: "full" | "half" | undefined;
|
|
434
|
+
jsonParser?: ((text: string) => Promise<any> | any) | undefined;
|
|
435
|
+
retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
|
|
436
|
+
retryAttempt?: number | undefined;
|
|
437
|
+
output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
438
|
+
errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
|
|
439
|
+
disableValidation?: boolean | undefined;
|
|
440
|
+
}>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
|
|
441
|
+
userId: unknown;
|
|
442
|
+
} & {
|
|
443
|
+
fetchOptions?: FetchOptions | undefined;
|
|
444
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
|
|
445
|
+
sessions: import("better-auth/plugins", { with: { "resolution-mode": "require" } }).SessionWithImpersonatedBy[];
|
|
446
|
+
}, {
|
|
447
|
+
code?: string;
|
|
448
|
+
message?: string;
|
|
449
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
450
|
+
};
|
|
451
|
+
} & {
|
|
452
|
+
admin: {
|
|
453
|
+
unbanUser: <FetchOptions extends {
|
|
454
|
+
method?: string | undefined;
|
|
455
|
+
headers?: (HeadersInit & (HeadersInit | {
|
|
456
|
+
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
457
|
+
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
458
|
+
authorization: "Bearer" | "Basic";
|
|
459
|
+
})) | undefined;
|
|
460
|
+
cache?: RequestCache | undefined;
|
|
461
|
+
credentials?: RequestCredentials | undefined;
|
|
462
|
+
integrity?: string | undefined;
|
|
463
|
+
keepalive?: boolean | undefined;
|
|
464
|
+
mode?: RequestMode | undefined;
|
|
465
|
+
priority?: RequestPriority | undefined;
|
|
466
|
+
redirect?: RequestRedirect | undefined;
|
|
467
|
+
referrer?: string | undefined;
|
|
468
|
+
referrerPolicy?: ReferrerPolicy | undefined;
|
|
469
|
+
signal?: (AbortSignal | null) | undefined;
|
|
470
|
+
window?: null | undefined;
|
|
471
|
+
onRequest?: (<T extends Record<string, any>>(context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext<T>) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext | void> | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext | void) | undefined;
|
|
472
|
+
onResponse?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<Response | void | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext> | Response | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext | void) | undefined;
|
|
473
|
+
onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
474
|
+
onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
|
|
475
|
+
onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
|
|
476
|
+
hookOptions?: {
|
|
477
|
+
cloneResponse?: boolean;
|
|
478
|
+
} | undefined;
|
|
479
|
+
timeout?: number | undefined;
|
|
480
|
+
customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
|
|
481
|
+
plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
|
|
482
|
+
baseURL?: string | undefined;
|
|
483
|
+
throw?: boolean | undefined;
|
|
484
|
+
auth?: ({
|
|
485
|
+
type: "Bearer";
|
|
486
|
+
token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
|
|
487
|
+
} | {
|
|
488
|
+
type: "Basic";
|
|
489
|
+
username: string | (() => string | undefined) | undefined;
|
|
490
|
+
password: string | (() => string | undefined) | undefined;
|
|
491
|
+
} | {
|
|
492
|
+
type: "Custom";
|
|
493
|
+
prefix: string | (() => string | undefined) | undefined;
|
|
494
|
+
value: string | (() => string | undefined) | undefined;
|
|
495
|
+
}) | undefined;
|
|
496
|
+
body?: (Partial<{
|
|
497
|
+
userId: unknown;
|
|
498
|
+
}> & Record<string, any>) | undefined;
|
|
499
|
+
query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
|
|
500
|
+
params?: Record<string, any> | undefined;
|
|
501
|
+
duplex?: "full" | "half" | undefined;
|
|
502
|
+
jsonParser?: ((text: string) => Promise<any> | any) | undefined;
|
|
503
|
+
retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
|
|
504
|
+
retryAttempt?: number | undefined;
|
|
505
|
+
output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
506
|
+
errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
|
|
507
|
+
disableValidation?: boolean | undefined;
|
|
508
|
+
}>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
|
|
509
|
+
userId: unknown;
|
|
510
|
+
} & {
|
|
511
|
+
fetchOptions?: FetchOptions | undefined;
|
|
512
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
|
|
513
|
+
user: any;
|
|
514
|
+
}, {
|
|
515
|
+
code?: string;
|
|
516
|
+
message?: string;
|
|
517
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
518
|
+
};
|
|
519
|
+
} & {
|
|
520
|
+
admin: {
|
|
521
|
+
banUser: <FetchOptions extends {
|
|
522
|
+
method?: string | undefined;
|
|
523
|
+
headers?: (HeadersInit & (HeadersInit | {
|
|
524
|
+
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
525
|
+
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
526
|
+
authorization: "Bearer" | "Basic";
|
|
527
|
+
})) | undefined;
|
|
528
|
+
cache?: RequestCache | undefined;
|
|
529
|
+
credentials?: RequestCredentials | undefined;
|
|
530
|
+
integrity?: string | undefined;
|
|
531
|
+
keepalive?: boolean | undefined;
|
|
532
|
+
mode?: RequestMode | undefined;
|
|
533
|
+
priority?: RequestPriority | undefined;
|
|
534
|
+
redirect?: RequestRedirect | undefined;
|
|
535
|
+
referrer?: string | undefined;
|
|
536
|
+
referrerPolicy?: ReferrerPolicy | undefined;
|
|
537
|
+
signal?: (AbortSignal | null) | undefined;
|
|
538
|
+
window?: null | undefined;
|
|
539
|
+
onRequest?: (<T extends Record<string, any>>(context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext<T>) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext | void> | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext | void) | undefined;
|
|
540
|
+
onResponse?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<Response | void | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext> | Response | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext | void) | undefined;
|
|
541
|
+
onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
542
|
+
onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
|
|
543
|
+
onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
|
|
544
|
+
hookOptions?: {
|
|
545
|
+
cloneResponse?: boolean;
|
|
546
|
+
} | undefined;
|
|
547
|
+
timeout?: number | undefined;
|
|
548
|
+
customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
|
|
549
|
+
plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
|
|
550
|
+
baseURL?: string | undefined;
|
|
551
|
+
throw?: boolean | undefined;
|
|
552
|
+
auth?: ({
|
|
553
|
+
type: "Bearer";
|
|
554
|
+
token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
|
|
555
|
+
} | {
|
|
556
|
+
type: "Basic";
|
|
557
|
+
username: string | (() => string | undefined) | undefined;
|
|
558
|
+
password: string | (() => string | undefined) | undefined;
|
|
559
|
+
} | {
|
|
560
|
+
type: "Custom";
|
|
561
|
+
prefix: string | (() => string | undefined) | undefined;
|
|
562
|
+
value: string | (() => string | undefined) | undefined;
|
|
563
|
+
}) | undefined;
|
|
564
|
+
body?: (Partial<{
|
|
565
|
+
userId: unknown;
|
|
566
|
+
banReason?: string | undefined;
|
|
567
|
+
banExpiresIn?: number | undefined;
|
|
568
|
+
}> & Record<string, any>) | undefined;
|
|
569
|
+
query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
|
|
570
|
+
params?: Record<string, any> | undefined;
|
|
571
|
+
duplex?: "full" | "half" | undefined;
|
|
572
|
+
jsonParser?: ((text: string) => Promise<any> | any) | undefined;
|
|
573
|
+
retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
|
|
574
|
+
retryAttempt?: number | undefined;
|
|
575
|
+
output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
576
|
+
errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
|
|
577
|
+
disableValidation?: boolean | undefined;
|
|
578
|
+
}>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
|
|
579
|
+
userId: unknown;
|
|
580
|
+
banReason?: string | undefined;
|
|
581
|
+
banExpiresIn?: number | undefined;
|
|
582
|
+
} & {
|
|
583
|
+
fetchOptions?: FetchOptions | undefined;
|
|
584
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
|
|
585
|
+
user: any;
|
|
586
|
+
}, {
|
|
587
|
+
code?: string;
|
|
588
|
+
message?: string;
|
|
589
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
590
|
+
};
|
|
591
|
+
} & {
|
|
592
|
+
admin: {
|
|
593
|
+
impersonateUser: <FetchOptions extends {
|
|
594
|
+
method?: string | undefined;
|
|
595
|
+
headers?: (HeadersInit & (HeadersInit | {
|
|
596
|
+
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
597
|
+
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
598
|
+
authorization: "Bearer" | "Basic";
|
|
599
|
+
})) | undefined;
|
|
600
|
+
cache?: RequestCache | undefined;
|
|
601
|
+
credentials?: RequestCredentials | undefined;
|
|
602
|
+
integrity?: string | undefined;
|
|
603
|
+
keepalive?: boolean | undefined;
|
|
604
|
+
mode?: RequestMode | undefined;
|
|
605
|
+
priority?: RequestPriority | undefined;
|
|
606
|
+
redirect?: RequestRedirect | undefined;
|
|
607
|
+
referrer?: string | undefined;
|
|
608
|
+
referrerPolicy?: ReferrerPolicy | undefined;
|
|
609
|
+
signal?: (AbortSignal | null) | undefined;
|
|
610
|
+
window?: null | undefined;
|
|
611
|
+
onRequest?: (<T extends Record<string, any>>(context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext<T>) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext | void> | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext | void) | undefined;
|
|
612
|
+
onResponse?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<Response | void | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext> | Response | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext | void) | undefined;
|
|
613
|
+
onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
614
|
+
onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
|
|
615
|
+
onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
|
|
616
|
+
hookOptions?: {
|
|
617
|
+
cloneResponse?: boolean;
|
|
618
|
+
} | undefined;
|
|
619
|
+
timeout?: number | undefined;
|
|
620
|
+
customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
|
|
621
|
+
plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
|
|
622
|
+
baseURL?: string | undefined;
|
|
623
|
+
throw?: boolean | undefined;
|
|
624
|
+
auth?: ({
|
|
625
|
+
type: "Bearer";
|
|
626
|
+
token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
|
|
627
|
+
} | {
|
|
628
|
+
type: "Basic";
|
|
629
|
+
username: string | (() => string | undefined) | undefined;
|
|
630
|
+
password: string | (() => string | undefined) | undefined;
|
|
631
|
+
} | {
|
|
632
|
+
type: "Custom";
|
|
633
|
+
prefix: string | (() => string | undefined) | undefined;
|
|
634
|
+
value: string | (() => string | undefined) | undefined;
|
|
635
|
+
}) | undefined;
|
|
636
|
+
body?: (Partial<{
|
|
637
|
+
userId: unknown;
|
|
638
|
+
}> & Record<string, any>) | undefined;
|
|
639
|
+
query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
|
|
640
|
+
params?: Record<string, any> | undefined;
|
|
641
|
+
duplex?: "full" | "half" | undefined;
|
|
642
|
+
jsonParser?: ((text: string) => Promise<any> | any) | undefined;
|
|
643
|
+
retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
|
|
644
|
+
retryAttempt?: number | undefined;
|
|
645
|
+
output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
646
|
+
errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
|
|
647
|
+
disableValidation?: boolean | undefined;
|
|
648
|
+
}>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
|
|
649
|
+
userId: unknown;
|
|
650
|
+
} & {
|
|
651
|
+
fetchOptions?: FetchOptions | undefined;
|
|
652
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
|
|
653
|
+
session: {
|
|
654
|
+
id: string;
|
|
655
|
+
createdAt: Date;
|
|
656
|
+
updatedAt: Date;
|
|
657
|
+
userId: string;
|
|
658
|
+
expiresAt: Date;
|
|
659
|
+
token: string;
|
|
660
|
+
ipAddress?: string | null | undefined;
|
|
661
|
+
userAgent?: string | null | undefined;
|
|
662
|
+
};
|
|
663
|
+
user: {
|
|
664
|
+
id: string;
|
|
665
|
+
createdAt: Date;
|
|
666
|
+
updatedAt: Date;
|
|
667
|
+
email: string;
|
|
668
|
+
emailVerified: boolean;
|
|
669
|
+
name: string;
|
|
670
|
+
image?: string | null | undefined;
|
|
671
|
+
};
|
|
672
|
+
}, {
|
|
673
|
+
code?: string;
|
|
674
|
+
message?: string;
|
|
675
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
676
|
+
};
|
|
677
|
+
} & {
|
|
678
|
+
admin: {
|
|
679
|
+
stopImpersonating: <FetchOptions extends {
|
|
680
|
+
method?: string | undefined;
|
|
681
|
+
headers?: (HeadersInit & (HeadersInit | {
|
|
682
|
+
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
683
|
+
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
684
|
+
authorization: "Bearer" | "Basic";
|
|
685
|
+
})) | undefined;
|
|
686
|
+
cache?: RequestCache | undefined;
|
|
687
|
+
credentials?: RequestCredentials | undefined;
|
|
688
|
+
integrity?: string | undefined;
|
|
689
|
+
keepalive?: boolean | undefined;
|
|
690
|
+
mode?: RequestMode | undefined;
|
|
691
|
+
priority?: RequestPriority | undefined;
|
|
692
|
+
redirect?: RequestRedirect | undefined;
|
|
693
|
+
referrer?: string | undefined;
|
|
694
|
+
referrerPolicy?: ReferrerPolicy | undefined;
|
|
695
|
+
signal?: (AbortSignal | null) | undefined;
|
|
696
|
+
window?: null | undefined;
|
|
697
|
+
onRequest?: (<T extends Record<string, any>>(context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext<T>) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext | void> | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext | void) | undefined;
|
|
698
|
+
onResponse?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<Response | void | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext> | Response | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext | void) | undefined;
|
|
699
|
+
onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
700
|
+
onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
|
|
701
|
+
onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
|
|
702
|
+
hookOptions?: {
|
|
703
|
+
cloneResponse?: boolean;
|
|
704
|
+
} | undefined;
|
|
705
|
+
timeout?: number | undefined;
|
|
706
|
+
customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
|
|
707
|
+
plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
|
|
708
|
+
baseURL?: string | undefined;
|
|
709
|
+
throw?: boolean | undefined;
|
|
710
|
+
auth?: ({
|
|
711
|
+
type: "Bearer";
|
|
712
|
+
token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
|
|
713
|
+
} | {
|
|
714
|
+
type: "Basic";
|
|
715
|
+
username: string | (() => string | undefined) | undefined;
|
|
716
|
+
password: string | (() => string | undefined) | undefined;
|
|
717
|
+
} | {
|
|
718
|
+
type: "Custom";
|
|
719
|
+
prefix: string | (() => string | undefined) | undefined;
|
|
720
|
+
value: string | (() => string | undefined) | undefined;
|
|
721
|
+
}) | undefined;
|
|
722
|
+
body?: undefined;
|
|
723
|
+
query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
|
|
724
|
+
params?: Record<string, any> | undefined;
|
|
725
|
+
duplex?: "full" | "half" | undefined;
|
|
726
|
+
jsonParser?: ((text: string) => Promise<any> | any) | undefined;
|
|
727
|
+
retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
|
|
728
|
+
retryAttempt?: number | undefined;
|
|
729
|
+
output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
730
|
+
errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
|
|
731
|
+
disableValidation?: boolean | undefined;
|
|
732
|
+
}>(data_0?: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
|
|
733
|
+
query?: Record<string, any> | undefined;
|
|
734
|
+
fetchOptions?: FetchOptions | undefined;
|
|
735
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
|
|
736
|
+
session: import("better-auth", { with: { "resolution-mode": "require" } }).Session & Record<string, any>;
|
|
737
|
+
user: packages_core_dist_db.User & Record<string, any>;
|
|
738
|
+
}, {
|
|
739
|
+
code?: string;
|
|
740
|
+
message?: string;
|
|
741
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
742
|
+
};
|
|
743
|
+
} & {
|
|
744
|
+
admin: {
|
|
745
|
+
revokeUserSession: <FetchOptions extends {
|
|
746
|
+
method?: string | undefined;
|
|
747
|
+
headers?: (HeadersInit & (HeadersInit | {
|
|
748
|
+
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
749
|
+
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
750
|
+
authorization: "Bearer" | "Basic";
|
|
751
|
+
})) | undefined;
|
|
752
|
+
cache?: RequestCache | undefined;
|
|
753
|
+
credentials?: RequestCredentials | undefined;
|
|
754
|
+
integrity?: string | undefined;
|
|
755
|
+
keepalive?: boolean | undefined;
|
|
756
|
+
mode?: RequestMode | undefined;
|
|
757
|
+
priority?: RequestPriority | undefined;
|
|
758
|
+
redirect?: RequestRedirect | undefined;
|
|
759
|
+
referrer?: string | undefined;
|
|
760
|
+
referrerPolicy?: ReferrerPolicy | undefined;
|
|
761
|
+
signal?: (AbortSignal | null) | undefined;
|
|
762
|
+
window?: null | undefined;
|
|
763
|
+
onRequest?: (<T extends Record<string, any>>(context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext<T>) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext | void> | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext | void) | undefined;
|
|
764
|
+
onResponse?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<Response | void | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext> | Response | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext | void) | undefined;
|
|
765
|
+
onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
766
|
+
onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
|
|
767
|
+
onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
|
|
768
|
+
hookOptions?: {
|
|
769
|
+
cloneResponse?: boolean;
|
|
770
|
+
} | undefined;
|
|
771
|
+
timeout?: number | undefined;
|
|
772
|
+
customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
|
|
773
|
+
plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
|
|
774
|
+
baseURL?: string | undefined;
|
|
775
|
+
throw?: boolean | undefined;
|
|
776
|
+
auth?: ({
|
|
777
|
+
type: "Bearer";
|
|
778
|
+
token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
|
|
779
|
+
} | {
|
|
780
|
+
type: "Basic";
|
|
781
|
+
username: string | (() => string | undefined) | undefined;
|
|
782
|
+
password: string | (() => string | undefined) | undefined;
|
|
783
|
+
} | {
|
|
784
|
+
type: "Custom";
|
|
785
|
+
prefix: string | (() => string | undefined) | undefined;
|
|
786
|
+
value: string | (() => string | undefined) | undefined;
|
|
787
|
+
}) | undefined;
|
|
788
|
+
body?: (Partial<{
|
|
789
|
+
sessionToken: string;
|
|
790
|
+
}> & Record<string, any>) | undefined;
|
|
791
|
+
query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
|
|
792
|
+
params?: Record<string, any> | undefined;
|
|
793
|
+
duplex?: "full" | "half" | undefined;
|
|
794
|
+
jsonParser?: ((text: string) => Promise<any> | any) | undefined;
|
|
795
|
+
retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
|
|
796
|
+
retryAttempt?: number | undefined;
|
|
797
|
+
output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
798
|
+
errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
|
|
799
|
+
disableValidation?: boolean | undefined;
|
|
800
|
+
}>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
|
|
801
|
+
sessionToken: string;
|
|
802
|
+
} & {
|
|
803
|
+
fetchOptions?: FetchOptions | undefined;
|
|
804
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
|
|
805
|
+
success: boolean;
|
|
806
|
+
}, {
|
|
807
|
+
code?: string;
|
|
808
|
+
message?: string;
|
|
809
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
810
|
+
};
|
|
811
|
+
} & {
|
|
812
|
+
admin: {
|
|
813
|
+
revokeUserSessions: <FetchOptions extends {
|
|
814
|
+
method?: string | undefined;
|
|
815
|
+
headers?: (HeadersInit & (HeadersInit | {
|
|
816
|
+
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
817
|
+
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
818
|
+
authorization: "Bearer" | "Basic";
|
|
819
|
+
})) | undefined;
|
|
820
|
+
cache?: RequestCache | undefined;
|
|
821
|
+
credentials?: RequestCredentials | undefined;
|
|
822
|
+
integrity?: string | undefined;
|
|
823
|
+
keepalive?: boolean | undefined;
|
|
824
|
+
mode?: RequestMode | undefined;
|
|
825
|
+
priority?: RequestPriority | undefined;
|
|
826
|
+
redirect?: RequestRedirect | undefined;
|
|
827
|
+
referrer?: string | undefined;
|
|
828
|
+
referrerPolicy?: ReferrerPolicy | undefined;
|
|
829
|
+
signal?: (AbortSignal | null) | undefined;
|
|
830
|
+
window?: null | undefined;
|
|
831
|
+
onRequest?: (<T extends Record<string, any>>(context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext<T>) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext | void> | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext | void) | undefined;
|
|
832
|
+
onResponse?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<Response | void | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext> | Response | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext | void) | undefined;
|
|
833
|
+
onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
834
|
+
onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
|
|
835
|
+
onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
|
|
836
|
+
hookOptions?: {
|
|
837
|
+
cloneResponse?: boolean;
|
|
838
|
+
} | undefined;
|
|
839
|
+
timeout?: number | undefined;
|
|
840
|
+
customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
|
|
841
|
+
plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
|
|
842
|
+
baseURL?: string | undefined;
|
|
843
|
+
throw?: boolean | undefined;
|
|
844
|
+
auth?: ({
|
|
845
|
+
type: "Bearer";
|
|
846
|
+
token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
|
|
847
|
+
} | {
|
|
848
|
+
type: "Basic";
|
|
849
|
+
username: string | (() => string | undefined) | undefined;
|
|
850
|
+
password: string | (() => string | undefined) | undefined;
|
|
851
|
+
} | {
|
|
852
|
+
type: "Custom";
|
|
853
|
+
prefix: string | (() => string | undefined) | undefined;
|
|
854
|
+
value: string | (() => string | undefined) | undefined;
|
|
855
|
+
}) | undefined;
|
|
856
|
+
body?: (Partial<{
|
|
857
|
+
userId: unknown;
|
|
858
|
+
}> & Record<string, any>) | undefined;
|
|
859
|
+
query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
|
|
860
|
+
params?: Record<string, any> | undefined;
|
|
861
|
+
duplex?: "full" | "half" | undefined;
|
|
862
|
+
jsonParser?: ((text: string) => Promise<any> | any) | undefined;
|
|
863
|
+
retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
|
|
864
|
+
retryAttempt?: number | undefined;
|
|
865
|
+
output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
866
|
+
errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
|
|
867
|
+
disableValidation?: boolean | undefined;
|
|
868
|
+
}>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
|
|
869
|
+
userId: unknown;
|
|
870
|
+
} & {
|
|
871
|
+
fetchOptions?: FetchOptions | undefined;
|
|
872
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
|
|
873
|
+
success: boolean;
|
|
874
|
+
}, {
|
|
875
|
+
code?: string;
|
|
876
|
+
message?: string;
|
|
877
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
878
|
+
};
|
|
879
|
+
} & {
|
|
880
|
+
admin: {
|
|
881
|
+
removeUser: <FetchOptions extends {
|
|
882
|
+
method?: string | undefined;
|
|
883
|
+
headers?: (HeadersInit & (HeadersInit | {
|
|
884
|
+
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
885
|
+
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
886
|
+
authorization: "Bearer" | "Basic";
|
|
887
|
+
})) | undefined;
|
|
888
|
+
cache?: RequestCache | undefined;
|
|
889
|
+
credentials?: RequestCredentials | undefined;
|
|
890
|
+
integrity?: string | undefined;
|
|
891
|
+
keepalive?: boolean | undefined;
|
|
892
|
+
mode?: RequestMode | undefined;
|
|
893
|
+
priority?: RequestPriority | undefined;
|
|
894
|
+
redirect?: RequestRedirect | undefined;
|
|
895
|
+
referrer?: string | undefined;
|
|
896
|
+
referrerPolicy?: ReferrerPolicy | undefined;
|
|
897
|
+
signal?: (AbortSignal | null) | undefined;
|
|
898
|
+
window?: null | undefined;
|
|
899
|
+
onRequest?: (<T extends Record<string, any>>(context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext<T>) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext | void> | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext | void) | undefined;
|
|
900
|
+
onResponse?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<Response | void | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext> | Response | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext | void) | undefined;
|
|
901
|
+
onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
902
|
+
onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
|
|
903
|
+
onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
|
|
904
|
+
hookOptions?: {
|
|
905
|
+
cloneResponse?: boolean;
|
|
906
|
+
} | undefined;
|
|
907
|
+
timeout?: number | undefined;
|
|
908
|
+
customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
|
|
909
|
+
plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
|
|
910
|
+
baseURL?: string | undefined;
|
|
911
|
+
throw?: boolean | undefined;
|
|
912
|
+
auth?: ({
|
|
913
|
+
type: "Bearer";
|
|
914
|
+
token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
|
|
915
|
+
} | {
|
|
916
|
+
type: "Basic";
|
|
917
|
+
username: string | (() => string | undefined) | undefined;
|
|
918
|
+
password: string | (() => string | undefined) | undefined;
|
|
919
|
+
} | {
|
|
920
|
+
type: "Custom";
|
|
921
|
+
prefix: string | (() => string | undefined) | undefined;
|
|
922
|
+
value: string | (() => string | undefined) | undefined;
|
|
923
|
+
}) | undefined;
|
|
924
|
+
body?: (Partial<{
|
|
925
|
+
userId: unknown;
|
|
926
|
+
}> & Record<string, any>) | undefined;
|
|
927
|
+
query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
|
|
928
|
+
params?: Record<string, any> | undefined;
|
|
929
|
+
duplex?: "full" | "half" | undefined;
|
|
930
|
+
jsonParser?: ((text: string) => Promise<any> | any) | undefined;
|
|
931
|
+
retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
|
|
932
|
+
retryAttempt?: number | undefined;
|
|
933
|
+
output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
934
|
+
errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
|
|
935
|
+
disableValidation?: boolean | undefined;
|
|
936
|
+
}>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
|
|
937
|
+
userId: unknown;
|
|
938
|
+
} & {
|
|
939
|
+
fetchOptions?: FetchOptions | undefined;
|
|
940
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
|
|
941
|
+
success: boolean;
|
|
942
|
+
}, {
|
|
943
|
+
code?: string;
|
|
944
|
+
message?: string;
|
|
945
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
946
|
+
};
|
|
947
|
+
} & {
|
|
948
|
+
admin: {
|
|
949
|
+
setUserPassword: <FetchOptions extends {
|
|
950
|
+
method?: string | undefined;
|
|
951
|
+
headers?: (HeadersInit & (HeadersInit | {
|
|
952
|
+
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
953
|
+
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
954
|
+
authorization: "Bearer" | "Basic";
|
|
955
|
+
})) | undefined;
|
|
956
|
+
cache?: RequestCache | undefined;
|
|
957
|
+
credentials?: RequestCredentials | undefined;
|
|
958
|
+
integrity?: string | undefined;
|
|
959
|
+
keepalive?: boolean | undefined;
|
|
960
|
+
mode?: RequestMode | undefined;
|
|
961
|
+
priority?: RequestPriority | undefined;
|
|
962
|
+
redirect?: RequestRedirect | undefined;
|
|
963
|
+
referrer?: string | undefined;
|
|
964
|
+
referrerPolicy?: ReferrerPolicy | undefined;
|
|
965
|
+
signal?: (AbortSignal | null) | undefined;
|
|
966
|
+
window?: null | undefined;
|
|
967
|
+
onRequest?: (<T extends Record<string, any>>(context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext<T>) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext | void> | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext | void) | undefined;
|
|
968
|
+
onResponse?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<Response | void | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext> | Response | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext | void) | undefined;
|
|
969
|
+
onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
970
|
+
onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
|
|
971
|
+
onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
|
|
972
|
+
hookOptions?: {
|
|
973
|
+
cloneResponse?: boolean;
|
|
974
|
+
} | undefined;
|
|
975
|
+
timeout?: number | undefined;
|
|
976
|
+
customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
|
|
977
|
+
plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
|
|
978
|
+
baseURL?: string | undefined;
|
|
979
|
+
throw?: boolean | undefined;
|
|
980
|
+
auth?: ({
|
|
981
|
+
type: "Bearer";
|
|
982
|
+
token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
|
|
983
|
+
} | {
|
|
984
|
+
type: "Basic";
|
|
985
|
+
username: string | (() => string | undefined) | undefined;
|
|
986
|
+
password: string | (() => string | undefined) | undefined;
|
|
987
|
+
} | {
|
|
988
|
+
type: "Custom";
|
|
989
|
+
prefix: string | (() => string | undefined) | undefined;
|
|
990
|
+
value: string | (() => string | undefined) | undefined;
|
|
991
|
+
}) | undefined;
|
|
992
|
+
body?: (Partial<{
|
|
993
|
+
newPassword: string;
|
|
994
|
+
userId: unknown;
|
|
995
|
+
}> & Record<string, any>) | undefined;
|
|
996
|
+
query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
|
|
997
|
+
params?: Record<string, any> | undefined;
|
|
998
|
+
duplex?: "full" | "half" | undefined;
|
|
999
|
+
jsonParser?: ((text: string) => Promise<any> | any) | undefined;
|
|
1000
|
+
retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
|
|
1001
|
+
retryAttempt?: number | undefined;
|
|
1002
|
+
output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
1003
|
+
errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
|
|
1004
|
+
disableValidation?: boolean | undefined;
|
|
1005
|
+
}>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
|
|
1006
|
+
newPassword: string;
|
|
1007
|
+
userId: unknown;
|
|
1008
|
+
} & {
|
|
1009
|
+
fetchOptions?: FetchOptions | undefined;
|
|
1010
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
|
|
1011
|
+
status: boolean;
|
|
1012
|
+
}, {
|
|
1013
|
+
code?: string;
|
|
1014
|
+
message?: string;
|
|
1015
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1016
|
+
};
|
|
1017
|
+
} & {
|
|
1018
|
+
admin: {
|
|
1019
|
+
hasPermission: <FetchOptions extends {
|
|
1020
|
+
method?: string | undefined;
|
|
1021
|
+
headers?: (HeadersInit & (HeadersInit | {
|
|
1022
|
+
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
1023
|
+
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
1024
|
+
authorization: "Bearer" | "Basic";
|
|
1025
|
+
})) | undefined;
|
|
1026
|
+
cache?: RequestCache | undefined;
|
|
1027
|
+
credentials?: RequestCredentials | undefined;
|
|
1028
|
+
integrity?: string | undefined;
|
|
1029
|
+
keepalive?: boolean | undefined;
|
|
1030
|
+
mode?: RequestMode | undefined;
|
|
1031
|
+
priority?: RequestPriority | undefined;
|
|
1032
|
+
redirect?: RequestRedirect | undefined;
|
|
1033
|
+
referrer?: string | undefined;
|
|
1034
|
+
referrerPolicy?: ReferrerPolicy | undefined;
|
|
1035
|
+
signal?: (AbortSignal | null) | undefined;
|
|
1036
|
+
window?: null | undefined;
|
|
1037
|
+
onRequest?: (<T extends Record<string, any>>(context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext<T>) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext | void> | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext | void) | undefined;
|
|
1038
|
+
onResponse?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<Response | void | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext> | Response | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext | void) | undefined;
|
|
1039
|
+
onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
1040
|
+
onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
|
|
1041
|
+
onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
|
|
1042
|
+
hookOptions?: {
|
|
1043
|
+
cloneResponse?: boolean;
|
|
1044
|
+
} | undefined;
|
|
1045
|
+
timeout?: number | undefined;
|
|
1046
|
+
customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
|
|
1047
|
+
plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
|
|
1048
|
+
baseURL?: string | undefined;
|
|
1049
|
+
throw?: boolean | undefined;
|
|
1050
|
+
auth?: ({
|
|
1051
|
+
type: "Bearer";
|
|
1052
|
+
token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
|
|
1053
|
+
} | {
|
|
1054
|
+
type: "Basic";
|
|
1055
|
+
username: string | (() => string | undefined) | undefined;
|
|
1056
|
+
password: string | (() => string | undefined) | undefined;
|
|
1057
|
+
} | {
|
|
1058
|
+
type: "Custom";
|
|
1059
|
+
prefix: string | (() => string | undefined) | undefined;
|
|
1060
|
+
value: string | (() => string | undefined) | undefined;
|
|
1061
|
+
}) | undefined;
|
|
1062
|
+
body?: (Partial<({
|
|
1063
|
+
permission: {
|
|
1064
|
+
readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "delete" | "set-password" | "get" | "update")[] | undefined;
|
|
1065
|
+
readonly session?: ("list" | "delete" | "revoke")[] | undefined;
|
|
1066
|
+
};
|
|
1067
|
+
permissions?: never;
|
|
1068
|
+
} | {
|
|
1069
|
+
permissions: {
|
|
1070
|
+
readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "delete" | "set-password" | "get" | "update")[] | undefined;
|
|
1071
|
+
readonly session?: ("list" | "delete" | "revoke")[] | undefined;
|
|
1072
|
+
};
|
|
1073
|
+
permission?: never;
|
|
1074
|
+
}) & {
|
|
1075
|
+
userId?: string;
|
|
1076
|
+
role?: "user" | "admin" | undefined;
|
|
1077
|
+
}> & Record<string, any>) | undefined;
|
|
1078
|
+
query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
|
|
1079
|
+
params?: Record<string, any> | undefined;
|
|
1080
|
+
duplex?: "full" | "half" | undefined;
|
|
1081
|
+
jsonParser?: ((text: string) => Promise<any> | any) | undefined;
|
|
1082
|
+
retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
|
|
1083
|
+
retryAttempt?: number | undefined;
|
|
1084
|
+
output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
1085
|
+
errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
|
|
1086
|
+
disableValidation?: boolean | undefined;
|
|
1087
|
+
}>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<(({
|
|
1088
|
+
permission: {
|
|
1089
|
+
readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "delete" | "set-password" | "get" | "update")[] | undefined;
|
|
1090
|
+
readonly session?: ("list" | "delete" | "revoke")[] | undefined;
|
|
1091
|
+
};
|
|
1092
|
+
permissions?: never;
|
|
1093
|
+
} | {
|
|
1094
|
+
permissions: {
|
|
1095
|
+
readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "delete" | "set-password" | "get" | "update")[] | undefined;
|
|
1096
|
+
readonly session?: ("list" | "delete" | "revoke")[] | undefined;
|
|
1097
|
+
};
|
|
1098
|
+
permission?: never;
|
|
1099
|
+
}) & {
|
|
1100
|
+
userId?: string;
|
|
1101
|
+
role?: "user" | "admin" | undefined;
|
|
1102
|
+
}) & {
|
|
1103
|
+
fetchOptions?: FetchOptions | undefined;
|
|
1104
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
|
|
1105
|
+
error: null;
|
|
1106
|
+
success: boolean;
|
|
1107
|
+
}, {
|
|
1108
|
+
code?: string;
|
|
1109
|
+
message?: string;
|
|
1110
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1111
|
+
};
|
|
1112
|
+
} & {
|
|
2
1113
|
signIn: {
|
|
3
1114
|
social: <FetchOptions extends {
|
|
4
1115
|
method?: string | undefined;
|
|
@@ -240,7 +1351,7 @@ export declare const authClient: {
|
|
|
240
1351
|
image?: string;
|
|
241
1352
|
callbackURL?: string;
|
|
242
1353
|
fetchOptions?: FetchOptions | undefined;
|
|
243
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<NonNullable<{
|
|
1354
|
+
} & {} & {}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<NonNullable<{
|
|
244
1355
|
token: null;
|
|
245
1356
|
user: {
|
|
246
1357
|
id: string;
|
|
@@ -847,7 +1958,7 @@ export declare const authClient: {
|
|
|
847
1958
|
image?: string | null;
|
|
848
1959
|
name?: string;
|
|
849
1960
|
fetchOptions?: FetchOptions | undefined;
|
|
850
|
-
} & Partial<{}>> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
|
|
1961
|
+
} & Partial<{} & {}>> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
|
|
851
1962
|
status: boolean;
|
|
852
1963
|
}, {
|
|
853
1964
|
code?: string;
|
|
@@ -1972,6 +3083,10 @@ export declare const authClient: {
|
|
|
1972
3083
|
emailVerified: boolean;
|
|
1973
3084
|
name: string;
|
|
1974
3085
|
image?: string | null | undefined;
|
|
3086
|
+
banned: boolean | null | undefined;
|
|
3087
|
+
role?: string | null | undefined;
|
|
3088
|
+
banReason?: string | null | undefined;
|
|
3089
|
+
banExpires?: Date | null | undefined;
|
|
1975
3090
|
};
|
|
1976
3091
|
session: {
|
|
1977
3092
|
id: string;
|
|
@@ -1982,11 +3097,30 @@ export declare const authClient: {
|
|
|
1982
3097
|
token: string;
|
|
1983
3098
|
ipAddress?: string | null | undefined;
|
|
1984
3099
|
userAgent?: string | null | undefined;
|
|
3100
|
+
impersonatedBy?: string | null | undefined;
|
|
1985
3101
|
};
|
|
1986
3102
|
} | null, {
|
|
1987
3103
|
code?: string;
|
|
1988
3104
|
message?: string;
|
|
1989
3105
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
3106
|
+
} & {
|
|
3107
|
+
admin: {
|
|
3108
|
+
checkRolePermission: <R extends "user" | "admin">(data: ({
|
|
3109
|
+
permission: {
|
|
3110
|
+
readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "delete" | "set-password" | "get" | "update")[] | undefined;
|
|
3111
|
+
readonly session?: ("list" | "delete" | "revoke")[] | undefined;
|
|
3112
|
+
};
|
|
3113
|
+
permissions?: never;
|
|
3114
|
+
} | {
|
|
3115
|
+
permissions: {
|
|
3116
|
+
readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "delete" | "set-password" | "get" | "update")[] | undefined;
|
|
3117
|
+
readonly session?: ("list" | "delete" | "revoke")[] | undefined;
|
|
3118
|
+
};
|
|
3119
|
+
permission?: never;
|
|
3120
|
+
}) & {
|
|
3121
|
+
role: R;
|
|
3122
|
+
}) => boolean;
|
|
3123
|
+
};
|
|
1990
3124
|
} & {
|
|
1991
3125
|
useSession: () => import("better-auth/svelte", { with: { "resolution-mode": "require" } }).Atom<{
|
|
1992
3126
|
data: {
|
|
@@ -1998,6 +3132,10 @@ export declare const authClient: {
|
|
|
1998
3132
|
emailVerified: boolean;
|
|
1999
3133
|
name: string;
|
|
2000
3134
|
image?: string | null | undefined;
|
|
3135
|
+
banned: boolean | null | undefined;
|
|
3136
|
+
role?: string | null | undefined;
|
|
3137
|
+
banReason?: string | null | undefined;
|
|
3138
|
+
banExpires?: Date | null | undefined;
|
|
2001
3139
|
};
|
|
2002
3140
|
session: {
|
|
2003
3141
|
id: string;
|
|
@@ -2008,6 +3146,7 @@ export declare const authClient: {
|
|
|
2008
3146
|
token: string;
|
|
2009
3147
|
ipAddress?: string | null | undefined;
|
|
2010
3148
|
userAgent?: string | null | undefined;
|
|
3149
|
+
impersonatedBy?: string | null | undefined;
|
|
2011
3150
|
};
|
|
2012
3151
|
} | null;
|
|
2013
3152
|
error: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchError | null;
|
|
@@ -2094,6 +3233,10 @@ export declare const authClient: {
|
|
|
2094
3233
|
emailVerified: boolean;
|
|
2095
3234
|
name: string;
|
|
2096
3235
|
image?: string | null | undefined;
|
|
3236
|
+
banned: boolean | null | undefined;
|
|
3237
|
+
role?: string | null | undefined;
|
|
3238
|
+
banReason?: string | null | undefined;
|
|
3239
|
+
banExpires?: Date | null | undefined;
|
|
2097
3240
|
};
|
|
2098
3241
|
session: {
|
|
2099
3242
|
id: string;
|
|
@@ -2104,12 +3247,31 @@ export declare const authClient: {
|
|
|
2104
3247
|
token: string;
|
|
2105
3248
|
ipAddress?: string | null | undefined;
|
|
2106
3249
|
userAgent?: string | null | undefined;
|
|
3250
|
+
impersonatedBy?: string | null | undefined;
|
|
2107
3251
|
};
|
|
2108
3252
|
};
|
|
2109
3253
|
};
|
|
2110
3254
|
$ERROR_CODES: {
|
|
2111
|
-
readonly USER_NOT_FOUND: "User not found";
|
|
2112
3255
|
readonly FAILED_TO_CREATE_USER: "Failed to create user";
|
|
3256
|
+
readonly USER_ALREADY_EXISTS: "User already exists.";
|
|
3257
|
+
readonly USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL: "User already exists. Use another email.";
|
|
3258
|
+
readonly YOU_CANNOT_BAN_YOURSELF: "You cannot ban yourself";
|
|
3259
|
+
readonly YOU_ARE_NOT_ALLOWED_TO_CHANGE_USERS_ROLE: "You are not allowed to change users role";
|
|
3260
|
+
readonly YOU_ARE_NOT_ALLOWED_TO_CREATE_USERS: "You are not allowed to create users";
|
|
3261
|
+
readonly YOU_ARE_NOT_ALLOWED_TO_LIST_USERS: "You are not allowed to list users";
|
|
3262
|
+
readonly YOU_ARE_NOT_ALLOWED_TO_LIST_USERS_SESSIONS: "You are not allowed to list users sessions";
|
|
3263
|
+
readonly YOU_ARE_NOT_ALLOWED_TO_BAN_USERS: "You are not allowed to ban users";
|
|
3264
|
+
readonly YOU_ARE_NOT_ALLOWED_TO_IMPERSONATE_USERS: "You are not allowed to impersonate users";
|
|
3265
|
+
readonly YOU_ARE_NOT_ALLOWED_TO_REVOKE_USERS_SESSIONS: "You are not allowed to revoke users sessions";
|
|
3266
|
+
readonly YOU_ARE_NOT_ALLOWED_TO_DELETE_USERS: "You are not allowed to delete users";
|
|
3267
|
+
readonly YOU_ARE_NOT_ALLOWED_TO_SET_USERS_PASSWORD: "You are not allowed to set users password";
|
|
3268
|
+
readonly BANNED_USER: "You have been banned from this application";
|
|
3269
|
+
readonly YOU_ARE_NOT_ALLOWED_TO_GET_USER: "You are not allowed to get user";
|
|
3270
|
+
readonly NO_DATA_TO_UPDATE: "No data to update";
|
|
3271
|
+
readonly YOU_ARE_NOT_ALLOWED_TO_UPDATE_USERS: "You are not allowed to update users";
|
|
3272
|
+
readonly YOU_CANNOT_REMOVE_YOURSELF: "You cannot remove yourself";
|
|
3273
|
+
readonly YOU_ARE_NOT_ALLOWED_TO_SET_NON_EXISTENT_VALUE: "You are not allowed to set a non-existent role value";
|
|
3274
|
+
readonly USER_NOT_FOUND: "User not found";
|
|
2113
3275
|
readonly FAILED_TO_CREATE_SESSION: "Failed to create session";
|
|
2114
3276
|
readonly FAILED_TO_UPDATE_USER: "Failed to update user";
|
|
2115
3277
|
readonly FAILED_TO_GET_SESSION: "Failed to get session";
|
|
@@ -2125,8 +3287,6 @@ export declare const authClient: {
|
|
|
2125
3287
|
readonly EMAIL_NOT_VERIFIED: "Email not verified";
|
|
2126
3288
|
readonly PASSWORD_TOO_SHORT: "Password too short";
|
|
2127
3289
|
readonly PASSWORD_TOO_LONG: "Password too long";
|
|
2128
|
-
readonly USER_ALREADY_EXISTS: "User already exists.";
|
|
2129
|
-
readonly USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL: "User already exists. Use another email.";
|
|
2130
3290
|
readonly EMAIL_CAN_NOT_BE_UPDATED: "Email can not be updated";
|
|
2131
3291
|
readonly CREDENTIAL_ACCOUNT_NOT_FOUND: "Credential account not found";
|
|
2132
3292
|
readonly SESSION_EXPIRED: "Session expired. Re-authenticate to perform this action.";
|