includio-cms 0.6.1 → 0.7.0

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.
Files changed (36) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/ROADMAP.md +10 -2
  3. package/dist/admin/api/accept-invite.js +2 -2
  4. package/dist/admin/auth-client.d.ts +2122 -2122
  5. package/dist/admin/client/admin/admin-layout.svelte +18 -4
  6. package/dist/admin/components/fields/blocks-field.svelte +3 -3
  7. package/dist/admin/components/fields/image-field.svelte +2 -2
  8. package/dist/admin/components/fields/media-field.svelte +4 -4
  9. package/dist/admin/components/media/file/file-miniature.svelte +6 -6
  10. package/dist/admin/context/remotes.d.ts +1 -1
  11. package/dist/admin/context/remotes.js +0 -1
  12. package/dist/admin/styles/admin.css +1 -1
  13. package/dist/components/ui/command/command.svelte.d.ts +1 -1
  14. package/dist/components/ui/input/input.svelte +2 -2
  15. package/dist/components/ui/input-group/input-group-input.svelte.d.ts +1 -1
  16. package/dist/components/ui/input-group/input-group.svelte +1 -1
  17. package/dist/components/ui/select/select-trigger.svelte +1 -1
  18. package/dist/components/ui/sidebar/sidebar-input.svelte.d.ts +1 -1
  19. package/dist/components/ui/textarea/textarea.svelte +1 -1
  20. package/dist/core/cms.d.ts +5 -3
  21. package/dist/core/cms.js +41 -2
  22. package/dist/db-postgres/index.d.ts +6 -1
  23. package/dist/db-postgres/index.js +1 -0
  24. package/dist/server/auth.d.ts +1 -1358
  25. package/dist/server/auth.js +3 -23
  26. package/dist/sveltekit/server/handle.js +21 -2
  27. package/dist/types/cms.d.ts +6 -2
  28. package/dist/types/index.d.ts +1 -1
  29. package/dist/updates/0.6.1/index.d.ts +2 -0
  30. package/dist/updates/0.6.1/index.js +9 -0
  31. package/dist/updates/0.6.2/index.d.ts +2 -0
  32. package/dist/updates/0.6.2/index.js +8 -0
  33. package/dist/updates/0.7.0/index.d.ts +2 -0
  34. package/dist/updates/0.7.0/index.js +16 -0
  35. package/dist/updates/index.js +4 -1
  36. package/package.json +5 -1
@@ -1,6 +1,6 @@
1
1
  export declare const authClient: {
2
- admin: {
3
- setRole: <FetchOptions extends {
2
+ signIn: {
3
+ social: <FetchOptions extends {
4
4
  method?: string | undefined;
5
5
  mode?: RequestMode | undefined;
6
6
  headers?: (HeadersInit & (HeadersInit | {
@@ -44,8 +44,21 @@ export declare const authClient: {
44
44
  value: string | (() => string | undefined) | undefined;
45
45
  }) | undefined;
46
46
  body?: (Partial<{
47
- userId: string;
48
- role: "user" | "admin" | ("user" | "admin")[];
47
+ provider: unknown;
48
+ callbackURL?: string | undefined;
49
+ newUserCallbackURL?: string | undefined;
50
+ errorCallbackURL?: string | undefined;
51
+ disableRedirect?: boolean | undefined;
52
+ idToken?: {
53
+ token: string;
54
+ nonce?: string | undefined;
55
+ accessToken?: string | undefined;
56
+ refreshToken?: string | undefined;
57
+ expiresAt?: number | undefined;
58
+ } | undefined;
59
+ scopes?: string[] | undefined;
60
+ requestSignUp?: boolean | undefined;
61
+ loginHint?: string | undefined;
49
62
  }> & Record<string, any>) | undefined;
50
63
  query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
51
64
  params?: Record<string, any> | undefined;
@@ -57,95 +70,110 @@ export declare const authClient: {
57
70
  errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
58
71
  disableValidation?: boolean | undefined;
59
72
  }>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
60
- userId: string;
61
- role: "user" | "admin" | ("user" | "admin")[];
73
+ provider: unknown;
74
+ callbackURL?: string | undefined;
75
+ newUserCallbackURL?: string | undefined;
76
+ errorCallbackURL?: string | undefined;
77
+ disableRedirect?: boolean | undefined;
78
+ idToken?: {
79
+ token: string;
80
+ nonce?: string | undefined;
81
+ accessToken?: string | undefined;
82
+ refreshToken?: string | undefined;
83
+ expiresAt?: number | undefined;
84
+ } | undefined;
85
+ scopes?: string[] | undefined;
86
+ requestSignUp?: boolean | undefined;
87
+ loginHint?: string | undefined;
62
88
  } & {
63
89
  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
- mode?: RequestMode | undefined;
76
- headers?: (HeadersInit & (HeadersInit | {
77
- accept: "application/json" | "text/plain" | "application/octet-stream";
78
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
79
- authorization: "Bearer" | "Basic";
80
- })) | undefined;
81
- cache?: RequestCache | undefined;
82
- credentials?: RequestCredentials | undefined;
83
- integrity?: string | undefined;
84
- keepalive?: boolean | 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: {
90
+ }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<NonNullable<{
91
+ redirect: boolean;
92
+ token: string;
93
+ url: undefined;
94
+ user: {
130
95
  id: string;
96
+ email: string;
97
+ name: string;
98
+ image: string | null | undefined;
99
+ emailVerified: boolean;
100
+ createdAt: Date;
101
+ updatedAt: Date;
131
102
  };
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
- }, {
103
+ } | {
104
+ url: string;
105
+ redirect: boolean;
106
+ }>, {
142
107
  code?: string;
143
108
  message?: string;
144
109
  }, FetchOptions["throw"] extends true ? true : false>>;
145
110
  };
146
111
  } & {
147
- admin: {
148
- createUser: <FetchOptions extends {
112
+ signOut: <FetchOptions extends {
113
+ method?: string | undefined;
114
+ mode?: RequestMode | undefined;
115
+ headers?: (HeadersInit & (HeadersInit | {
116
+ accept: "application/json" | "text/plain" | "application/octet-stream";
117
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
118
+ authorization: "Bearer" | "Basic";
119
+ })) | undefined;
120
+ cache?: RequestCache | undefined;
121
+ credentials?: RequestCredentials | undefined;
122
+ integrity?: string | undefined;
123
+ keepalive?: boolean | undefined;
124
+ priority?: RequestPriority | undefined;
125
+ redirect?: RequestRedirect | undefined;
126
+ referrer?: string | undefined;
127
+ referrerPolicy?: ReferrerPolicy | undefined;
128
+ signal?: (AbortSignal | null) | undefined;
129
+ window?: null | undefined;
130
+ 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;
131
+ 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;
132
+ onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
133
+ onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
134
+ onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
135
+ hookOptions?: {
136
+ cloneResponse?: boolean;
137
+ } | undefined;
138
+ timeout?: number | undefined;
139
+ customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
140
+ plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
141
+ baseURL?: string | undefined;
142
+ throw?: boolean | undefined;
143
+ auth?: ({
144
+ type: "Bearer";
145
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
146
+ } | {
147
+ type: "Basic";
148
+ username: string | (() => string | undefined) | undefined;
149
+ password: string | (() => string | undefined) | undefined;
150
+ } | {
151
+ type: "Custom";
152
+ prefix: string | (() => string | undefined) | undefined;
153
+ value: string | (() => string | undefined) | undefined;
154
+ }) | undefined;
155
+ body?: undefined;
156
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
157
+ params?: Record<string, any> | undefined;
158
+ duplex?: "full" | "half" | undefined;
159
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
160
+ retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
161
+ retryAttempt?: number | undefined;
162
+ output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
163
+ errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
164
+ disableValidation?: boolean | undefined;
165
+ }>(data_0?: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
166
+ query?: Record<string, any> | undefined;
167
+ fetchOptions?: FetchOptions | undefined;
168
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
169
+ success: boolean;
170
+ }, {
171
+ code?: string;
172
+ message?: string;
173
+ }, FetchOptions["throw"] extends true ? true : false>>;
174
+ } & {
175
+ signIn: {
176
+ email: <FetchOptions extends {
149
177
  method?: string | undefined;
150
178
  mode?: RequestMode | undefined;
151
179
  headers?: (HeadersInit & (HeadersInit | {
@@ -191,9 +219,8 @@ export declare const authClient: {
191
219
  body?: (Partial<{
192
220
  email: string;
193
221
  password: string;
194
- name: string;
195
- role?: "user" | "admin" | ("user" | "admin")[] | undefined;
196
- data?: Record<string, any>;
222
+ callbackURL?: string | undefined;
223
+ rememberMe?: boolean | undefined;
197
224
  }> & Record<string, any>) | undefined;
198
225
  query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
199
226
  params?: Record<string, any> | undefined;
@@ -207,746 +234,536 @@ export declare const authClient: {
207
234
  }>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
208
235
  email: string;
209
236
  password: string;
210
- name: string;
211
- role?: "user" | "admin" | ("user" | "admin")[] | undefined;
212
- data?: Record<string, any>;
237
+ callbackURL?: string | undefined;
238
+ rememberMe?: boolean | undefined;
213
239
  } & {
214
240
  fetchOptions?: FetchOptions | undefined;
215
241
  }>, 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;
242
+ redirect: boolean;
243
+ token: string;
244
+ url: string | undefined;
245
+ user: {
246
+ id: string;
247
+ email: string;
248
+ name: string;
249
+ image: string | null | undefined;
250
+ emailVerified: boolean;
251
+ createdAt: Date;
252
+ updatedAt: Date;
253
+ };
217
254
  }, {
218
255
  code?: string;
219
256
  message?: string;
220
257
  }, FetchOptions["throw"] extends true ? true : false>>;
221
258
  };
222
259
  } & {
223
- admin: {
224
- updateUser: <FetchOptions extends {
225
- method?: string | undefined;
226
- mode?: RequestMode | undefined;
227
- headers?: (HeadersInit & (HeadersInit | {
228
- accept: "application/json" | "text/plain" | "application/octet-stream";
229
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
230
- authorization: "Bearer" | "Basic";
231
- })) | undefined;
232
- cache?: RequestCache | undefined;
233
- credentials?: RequestCredentials | undefined;
234
- integrity?: string | undefined;
235
- keepalive?: boolean | 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
- };
260
+ forgetPassword: <FetchOptions extends {
261
+ method?: string | undefined;
262
+ mode?: RequestMode | undefined;
263
+ headers?: (HeadersInit & (HeadersInit | {
264
+ accept: "application/json" | "text/plain" | "application/octet-stream";
265
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
266
+ authorization: "Bearer" | "Basic";
267
+ })) | undefined;
268
+ cache?: RequestCache | undefined;
269
+ credentials?: RequestCredentials | undefined;
270
+ integrity?: string | undefined;
271
+ keepalive?: boolean | undefined;
272
+ priority?: RequestPriority | undefined;
273
+ redirect?: RequestRedirect | undefined;
274
+ referrer?: string | undefined;
275
+ referrerPolicy?: ReferrerPolicy | undefined;
276
+ signal?: (AbortSignal | null) | undefined;
277
+ window?: null | undefined;
278
+ 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;
279
+ 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;
280
+ onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
281
+ onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
282
+ onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
283
+ hookOptions?: {
284
+ cloneResponse?: boolean;
285
+ } | undefined;
286
+ timeout?: number | undefined;
287
+ customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
288
+ plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
289
+ baseURL?: string | undefined;
290
+ throw?: boolean | undefined;
291
+ auth?: ({
292
+ type: "Bearer";
293
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
294
+ } | {
295
+ type: "Basic";
296
+ username: string | (() => string | undefined) | undefined;
297
+ password: string | (() => string | undefined) | undefined;
298
+ } | {
299
+ type: "Custom";
300
+ prefix: string | (() => string | undefined) | undefined;
301
+ value: string | (() => string | undefined) | undefined;
302
+ }) | undefined;
303
+ body?: (Partial<{
304
+ email: string;
305
+ redirectTo?: string | undefined;
306
+ }> & Record<string, any>) | undefined;
307
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
308
+ params?: Record<string, any> | undefined;
309
+ duplex?: "full" | "half" | undefined;
310
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
311
+ retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
312
+ retryAttempt?: number | undefined;
313
+ output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
314
+ errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
315
+ disableValidation?: boolean | undefined;
316
+ }>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
317
+ email: string;
318
+ redirectTo?: string | undefined;
319
+ } & {
320
+ fetchOptions?: FetchOptions | undefined;
321
+ }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
322
+ status: boolean;
323
+ }, {
324
+ code?: string;
325
+ message?: string;
326
+ }, FetchOptions["throw"] extends true ? true : false>>;
290
327
  } & {
291
- admin: {
292
- listUsers: <FetchOptions extends {
293
- method?: string | undefined;
294
- mode?: RequestMode | undefined;
295
- headers?: (HeadersInit & (HeadersInit | {
296
- accept: "application/json" | "text/plain" | "application/octet-stream";
297
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
298
- authorization: "Bearer" | "Basic";
299
- })) | undefined;
300
- cache?: RequestCache | undefined;
301
- credentials?: RequestCredentials | undefined;
302
- integrity?: string | undefined;
303
- keepalive?: boolean | 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;
328
+ resetPassword: <FetchOptions extends {
329
+ method?: string | undefined;
330
+ mode?: RequestMode | undefined;
331
+ headers?: (HeadersInit & (HeadersInit | {
332
+ accept: "application/json" | "text/plain" | "application/octet-stream";
333
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
334
+ authorization: "Bearer" | "Basic";
335
+ })) | undefined;
336
+ cache?: RequestCache | undefined;
337
+ credentials?: RequestCredentials | undefined;
338
+ integrity?: string | undefined;
339
+ keepalive?: boolean | undefined;
340
+ priority?: RequestPriority | undefined;
341
+ redirect?: RequestRedirect | undefined;
342
+ referrer?: string | undefined;
343
+ referrerPolicy?: ReferrerPolicy | undefined;
344
+ signal?: (AbortSignal | null) | undefined;
345
+ window?: null | undefined;
346
+ 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;
347
+ 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;
348
+ onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
349
+ onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
350
+ onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
351
+ hookOptions?: {
352
+ cloneResponse?: boolean;
353
+ } | undefined;
354
+ timeout?: number | undefined;
355
+ customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
356
+ plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
357
+ baseURL?: string | undefined;
358
+ throw?: boolean | undefined;
359
+ auth?: ({
360
+ type: "Bearer";
361
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
375
362
  } | {
376
- users: never[];
377
- total: number;
378
- }>, {
379
- code?: string;
380
- message?: string;
381
- }, FetchOptions["throw"] extends true ? true : false>>;
382
- };
363
+ type: "Basic";
364
+ username: string | (() => string | undefined) | undefined;
365
+ password: string | (() => string | undefined) | undefined;
366
+ } | {
367
+ type: "Custom";
368
+ prefix: string | (() => string | undefined) | undefined;
369
+ value: string | (() => string | undefined) | undefined;
370
+ }) | undefined;
371
+ body?: (Partial<{
372
+ newPassword: string;
373
+ token?: string | undefined;
374
+ }> & Record<string, any>) | undefined;
375
+ query?: (Partial<{
376
+ token?: string | undefined;
377
+ }> & Record<string, any>) | undefined;
378
+ params?: Record<string, any> | undefined;
379
+ duplex?: "full" | "half" | undefined;
380
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
381
+ retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
382
+ retryAttempt?: number | undefined;
383
+ output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
384
+ errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
385
+ disableValidation?: boolean | undefined;
386
+ }>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
387
+ newPassword: string;
388
+ token?: string | undefined;
389
+ } & {
390
+ fetchOptions?: FetchOptions | undefined;
391
+ }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
392
+ status: boolean;
393
+ }, {
394
+ code?: string;
395
+ message?: string;
396
+ }, FetchOptions["throw"] extends true ? true : false>>;
383
397
  } & {
384
- admin: {
385
- listUserSessions: <FetchOptions extends {
386
- method?: string | undefined;
387
- mode?: RequestMode | undefined;
388
- headers?: (HeadersInit & (HeadersInit | {
389
- accept: "application/json" | "text/plain" | "application/octet-stream";
390
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
391
- authorization: "Bearer" | "Basic";
392
- })) | undefined;
393
- cache?: RequestCache | undefined;
394
- credentials?: RequestCredentials | undefined;
395
- integrity?: string | undefined;
396
- keepalive?: boolean | 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
- mode?: RequestMode | undefined;
456
- headers?: (HeadersInit & (HeadersInit | {
457
- accept: "application/json" | "text/plain" | "application/octet-stream";
458
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
459
- authorization: "Bearer" | "Basic";
460
- })) | undefined;
461
- cache?: RequestCache | undefined;
462
- credentials?: RequestCredentials | undefined;
463
- integrity?: string | undefined;
464
- keepalive?: boolean | 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
- mode?: RequestMode | undefined;
524
- headers?: (HeadersInit & (HeadersInit | {
525
- accept: "application/json" | "text/plain" | "application/octet-stream";
526
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
527
- authorization: "Bearer" | "Basic";
528
- })) | undefined;
529
- cache?: RequestCache | undefined;
530
- credentials?: RequestCredentials | undefined;
531
- integrity?: string | undefined;
532
- keepalive?: boolean | 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
- mode?: RequestMode | undefined;
596
- headers?: (HeadersInit & (HeadersInit | {
597
- accept: "application/json" | "text/plain" | "application/octet-stream";
598
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
599
- authorization: "Bearer" | "Basic";
600
- })) | undefined;
601
- cache?: RequestCache | undefined;
602
- credentials?: RequestCredentials | undefined;
603
- integrity?: string | undefined;
604
- keepalive?: boolean | 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
- mode?: RequestMode | undefined;
682
- headers?: (HeadersInit & (HeadersInit | {
683
- accept: "application/json" | "text/plain" | "application/octet-stream";
684
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
685
- authorization: "Bearer" | "Basic";
686
- })) | undefined;
687
- cache?: RequestCache | undefined;
688
- credentials?: RequestCredentials | undefined;
689
- integrity?: string | undefined;
690
- keepalive?: boolean | 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
- };
398
+ verifyEmail: <FetchOptions extends {
399
+ method?: string | undefined;
400
+ mode?: RequestMode | undefined;
401
+ headers?: (HeadersInit & (HeadersInit | {
402
+ accept: "application/json" | "text/plain" | "application/octet-stream";
403
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
404
+ authorization: "Bearer" | "Basic";
405
+ })) | undefined;
406
+ cache?: RequestCache | undefined;
407
+ credentials?: RequestCredentials | undefined;
408
+ integrity?: string | undefined;
409
+ keepalive?: boolean | undefined;
410
+ priority?: RequestPriority | undefined;
411
+ redirect?: RequestRedirect | undefined;
412
+ referrer?: string | undefined;
413
+ referrerPolicy?: ReferrerPolicy | undefined;
414
+ signal?: (AbortSignal | null) | undefined;
415
+ window?: null | undefined;
416
+ 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;
417
+ 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;
418
+ onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
419
+ onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
420
+ onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
421
+ hookOptions?: {
422
+ cloneResponse?: boolean;
423
+ } | undefined;
424
+ timeout?: number | undefined;
425
+ customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
426
+ plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
427
+ baseURL?: string | undefined;
428
+ throw?: boolean | undefined;
429
+ auth?: ({
430
+ type: "Bearer";
431
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
432
+ } | {
433
+ type: "Basic";
434
+ username: string | (() => string | undefined) | undefined;
435
+ password: string | (() => string | undefined) | undefined;
436
+ } | {
437
+ type: "Custom";
438
+ prefix: string | (() => string | undefined) | undefined;
439
+ value: string | (() => string | undefined) | undefined;
440
+ }) | undefined;
441
+ body?: undefined;
442
+ query?: (Partial<{
443
+ token: string;
444
+ callbackURL?: string | undefined;
445
+ }> & Record<string, any>) | undefined;
446
+ params?: Record<string, any> | undefined;
447
+ duplex?: "full" | "half" | undefined;
448
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
449
+ retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
450
+ retryAttempt?: number | undefined;
451
+ output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
452
+ errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
453
+ disableValidation?: boolean | undefined;
454
+ }>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
455
+ query: {
456
+ token: string;
457
+ callbackURL?: string | undefined;
458
+ };
459
+ fetchOptions?: FetchOptions | undefined;
460
+ }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<NonNullable<void | {
461
+ status: boolean;
462
+ user: {
463
+ id: string;
464
+ email: string;
465
+ name: string;
466
+ image: string | null | undefined;
467
+ emailVerified: boolean;
468
+ createdAt: Date;
469
+ updatedAt: Date;
470
+ };
471
+ } | {
472
+ status: boolean;
473
+ user: null;
474
+ }>, {
475
+ code?: string;
476
+ message?: string;
477
+ }, FetchOptions["throw"] extends true ? true : false>>;
743
478
  } & {
744
- admin: {
745
- revokeUserSession: <FetchOptions extends {
746
- method?: string | undefined;
747
- mode?: RequestMode | undefined;
748
- headers?: (HeadersInit & (HeadersInit | {
749
- accept: "application/json" | "text/plain" | "application/octet-stream";
750
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
751
- authorization: "Bearer" | "Basic";
752
- })) | undefined;
753
- cache?: RequestCache | undefined;
754
- credentials?: RequestCredentials | undefined;
755
- integrity?: string | undefined;
756
- keepalive?: boolean | 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
- };
479
+ sendVerificationEmail: <FetchOptions extends {
480
+ method?: string | undefined;
481
+ mode?: RequestMode | undefined;
482
+ headers?: (HeadersInit & (HeadersInit | {
483
+ accept: "application/json" | "text/plain" | "application/octet-stream";
484
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
485
+ authorization: "Bearer" | "Basic";
486
+ })) | undefined;
487
+ cache?: RequestCache | undefined;
488
+ credentials?: RequestCredentials | undefined;
489
+ integrity?: string | undefined;
490
+ keepalive?: boolean | undefined;
491
+ priority?: RequestPriority | undefined;
492
+ redirect?: RequestRedirect | undefined;
493
+ referrer?: string | undefined;
494
+ referrerPolicy?: ReferrerPolicy | undefined;
495
+ signal?: (AbortSignal | null) | undefined;
496
+ window?: null | undefined;
497
+ 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;
498
+ 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;
499
+ onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
500
+ onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
501
+ onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
502
+ hookOptions?: {
503
+ cloneResponse?: boolean;
504
+ } | undefined;
505
+ timeout?: number | undefined;
506
+ customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
507
+ plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
508
+ baseURL?: string | undefined;
509
+ throw?: boolean | undefined;
510
+ auth?: ({
511
+ type: "Bearer";
512
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
513
+ } | {
514
+ type: "Basic";
515
+ username: string | (() => string | undefined) | undefined;
516
+ password: string | (() => string | undefined) | undefined;
517
+ } | {
518
+ type: "Custom";
519
+ prefix: string | (() => string | undefined) | undefined;
520
+ value: string | (() => string | undefined) | undefined;
521
+ }) | undefined;
522
+ body?: (Partial<{
523
+ email: string;
524
+ callbackURL?: string | undefined;
525
+ }> & Record<string, any>) | undefined;
526
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
527
+ params?: Record<string, any> | undefined;
528
+ duplex?: "full" | "half" | undefined;
529
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
530
+ retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
531
+ retryAttempt?: number | undefined;
532
+ output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
533
+ errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
534
+ disableValidation?: boolean | undefined;
535
+ }>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
536
+ email: string;
537
+ callbackURL?: string | undefined;
538
+ } & {
539
+ fetchOptions?: FetchOptions | undefined;
540
+ }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
541
+ status: boolean;
542
+ }, {
543
+ code?: string;
544
+ message?: string;
545
+ }, FetchOptions["throw"] extends true ? true : false>>;
811
546
  } & {
812
- admin: {
813
- revokeUserSessions: <FetchOptions extends {
814
- method?: string | undefined;
815
- mode?: RequestMode | undefined;
816
- headers?: (HeadersInit & (HeadersInit | {
817
- accept: "application/json" | "text/plain" | "application/octet-stream";
818
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
819
- authorization: "Bearer" | "Basic";
820
- })) | undefined;
821
- cache?: RequestCache | undefined;
822
- credentials?: RequestCredentials | undefined;
823
- integrity?: string | undefined;
824
- keepalive?: boolean | 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
- };
547
+ changeEmail: <FetchOptions extends {
548
+ method?: string | undefined;
549
+ mode?: RequestMode | undefined;
550
+ headers?: (HeadersInit & (HeadersInit | {
551
+ accept: "application/json" | "text/plain" | "application/octet-stream";
552
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
553
+ authorization: "Bearer" | "Basic";
554
+ })) | undefined;
555
+ cache?: RequestCache | undefined;
556
+ credentials?: RequestCredentials | undefined;
557
+ integrity?: string | undefined;
558
+ keepalive?: boolean | undefined;
559
+ priority?: RequestPriority | undefined;
560
+ redirect?: RequestRedirect | undefined;
561
+ referrer?: string | undefined;
562
+ referrerPolicy?: ReferrerPolicy | undefined;
563
+ signal?: (AbortSignal | null) | undefined;
564
+ window?: null | undefined;
565
+ 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;
566
+ 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;
567
+ onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
568
+ onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
569
+ onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
570
+ hookOptions?: {
571
+ cloneResponse?: boolean;
572
+ } | undefined;
573
+ timeout?: number | undefined;
574
+ customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
575
+ plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
576
+ baseURL?: string | undefined;
577
+ throw?: boolean | undefined;
578
+ auth?: ({
579
+ type: "Bearer";
580
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
581
+ } | {
582
+ type: "Basic";
583
+ username: string | (() => string | undefined) | undefined;
584
+ password: string | (() => string | undefined) | undefined;
585
+ } | {
586
+ type: "Custom";
587
+ prefix: string | (() => string | undefined) | undefined;
588
+ value: string | (() => string | undefined) | undefined;
589
+ }) | undefined;
590
+ body?: (Partial<{
591
+ newEmail: string;
592
+ callbackURL?: string | undefined;
593
+ }> & Record<string, any>) | undefined;
594
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
595
+ params?: Record<string, any> | undefined;
596
+ duplex?: "full" | "half" | undefined;
597
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
598
+ retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
599
+ retryAttempt?: number | undefined;
600
+ output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
601
+ errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
602
+ disableValidation?: boolean | undefined;
603
+ }>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
604
+ newEmail: string;
605
+ callbackURL?: string | undefined;
606
+ } & {
607
+ fetchOptions?: FetchOptions | undefined;
608
+ }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
609
+ status: boolean;
610
+ }, {
611
+ code?: string;
612
+ message?: string;
613
+ }, FetchOptions["throw"] extends true ? true : false>>;
879
614
  } & {
880
- admin: {
881
- removeUser: <FetchOptions extends {
882
- method?: string | undefined;
883
- mode?: RequestMode | undefined;
884
- headers?: (HeadersInit & (HeadersInit | {
885
- accept: "application/json" | "text/plain" | "application/octet-stream";
886
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
887
- authorization: "Bearer" | "Basic";
888
- })) | undefined;
889
- cache?: RequestCache | undefined;
890
- credentials?: RequestCredentials | undefined;
891
- integrity?: string | undefined;
892
- keepalive?: boolean | 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
- };
615
+ changePassword: <FetchOptions extends {
616
+ method?: string | undefined;
617
+ mode?: RequestMode | undefined;
618
+ headers?: (HeadersInit & (HeadersInit | {
619
+ accept: "application/json" | "text/plain" | "application/octet-stream";
620
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
621
+ authorization: "Bearer" | "Basic";
622
+ })) | undefined;
623
+ cache?: RequestCache | undefined;
624
+ credentials?: RequestCredentials | undefined;
625
+ integrity?: string | undefined;
626
+ keepalive?: boolean | undefined;
627
+ priority?: RequestPriority | undefined;
628
+ redirect?: RequestRedirect | undefined;
629
+ referrer?: string | undefined;
630
+ referrerPolicy?: ReferrerPolicy | undefined;
631
+ signal?: (AbortSignal | null) | undefined;
632
+ window?: null | undefined;
633
+ 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;
634
+ 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;
635
+ onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
636
+ onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
637
+ onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
638
+ hookOptions?: {
639
+ cloneResponse?: boolean;
640
+ } | undefined;
641
+ timeout?: number | undefined;
642
+ customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
643
+ plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
644
+ baseURL?: string | undefined;
645
+ throw?: boolean | undefined;
646
+ auth?: ({
647
+ type: "Bearer";
648
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
649
+ } | {
650
+ type: "Basic";
651
+ username: string | (() => string | undefined) | undefined;
652
+ password: string | (() => string | undefined) | undefined;
653
+ } | {
654
+ type: "Custom";
655
+ prefix: string | (() => string | undefined) | undefined;
656
+ value: string | (() => string | undefined) | undefined;
657
+ }) | undefined;
658
+ body?: (Partial<{
659
+ newPassword: string;
660
+ currentPassword: string;
661
+ revokeOtherSessions?: boolean | undefined;
662
+ }> & Record<string, any>) | undefined;
663
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
664
+ params?: Record<string, any> | undefined;
665
+ duplex?: "full" | "half" | undefined;
666
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
667
+ retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
668
+ retryAttempt?: number | undefined;
669
+ output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
670
+ errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
671
+ disableValidation?: boolean | undefined;
672
+ }>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
673
+ newPassword: string;
674
+ currentPassword: string;
675
+ revokeOtherSessions?: boolean | undefined;
676
+ } & {
677
+ fetchOptions?: FetchOptions | undefined;
678
+ }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
679
+ token: string | null;
680
+ user: {
681
+ id: string;
682
+ email: string;
683
+ name: string;
684
+ image: string | null | undefined;
685
+ emailVerified: boolean;
686
+ createdAt: Date;
687
+ updatedAt: Date;
688
+ };
689
+ }, {
690
+ code?: string;
691
+ message?: string;
692
+ }, FetchOptions["throw"] extends true ? true : false>>;
693
+ } & {
694
+ deleteUser: <FetchOptions extends {
695
+ method?: string | undefined;
696
+ mode?: RequestMode | undefined;
697
+ headers?: (HeadersInit & (HeadersInit | {
698
+ accept: "application/json" | "text/plain" | "application/octet-stream";
699
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
700
+ authorization: "Bearer" | "Basic";
701
+ })) | undefined;
702
+ cache?: RequestCache | undefined;
703
+ credentials?: RequestCredentials | undefined;
704
+ integrity?: string | undefined;
705
+ keepalive?: boolean | undefined;
706
+ priority?: RequestPriority | undefined;
707
+ redirect?: RequestRedirect | undefined;
708
+ referrer?: string | undefined;
709
+ referrerPolicy?: ReferrerPolicy | undefined;
710
+ signal?: (AbortSignal | null) | undefined;
711
+ window?: null | undefined;
712
+ 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;
713
+ 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;
714
+ onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
715
+ onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
716
+ onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
717
+ hookOptions?: {
718
+ cloneResponse?: boolean;
719
+ } | undefined;
720
+ timeout?: number | undefined;
721
+ customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
722
+ plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
723
+ baseURL?: string | undefined;
724
+ throw?: boolean | undefined;
725
+ auth?: ({
726
+ type: "Bearer";
727
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
728
+ } | {
729
+ type: "Basic";
730
+ username: string | (() => string | undefined) | undefined;
731
+ password: string | (() => string | undefined) | undefined;
732
+ } | {
733
+ type: "Custom";
734
+ prefix: string | (() => string | undefined) | undefined;
735
+ value: string | (() => string | undefined) | undefined;
736
+ }) | undefined;
737
+ body?: (Partial<{
738
+ callbackURL?: string | undefined;
739
+ password?: string | undefined;
740
+ token?: string | undefined;
741
+ }> & Record<string, any>) | undefined;
742
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
743
+ params?: Record<string, any> | undefined;
744
+ duplex?: "full" | "half" | undefined;
745
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
746
+ retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
747
+ retryAttempt?: number | undefined;
748
+ output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
749
+ errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
750
+ disableValidation?: boolean | undefined;
751
+ }>(data_0?: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
752
+ callbackURL?: string | undefined;
753
+ password?: string | undefined;
754
+ token?: string | undefined;
755
+ } & {
756
+ fetchOptions?: FetchOptions | undefined;
757
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
758
+ success: boolean;
759
+ message: string;
760
+ }, {
761
+ code?: string;
762
+ message?: string;
763
+ }, FetchOptions["throw"] extends true ? true : false>>;
947
764
  } & {
948
- admin: {
949
- setUserPassword: <FetchOptions extends {
765
+ resetPassword: {
766
+ ":token": <FetchOptions extends {
950
767
  method?: string | undefined;
951
768
  mode?: RequestMode | undefined;
952
769
  headers?: (HeadersInit & (HeadersInit | {
@@ -989,12 +806,13 @@ export declare const authClient: {
989
806
  prefix: string | (() => string | undefined) | undefined;
990
807
  value: string | (() => string | undefined) | undefined;
991
808
  }) | undefined;
992
- body?: (Partial<{
993
- newPassword: string;
994
- userId: unknown;
809
+ body?: undefined;
810
+ query?: (Partial<{
811
+ callbackURL: string;
995
812
  }> & Record<string, any>) | undefined;
996
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
997
- params?: Record<string, any> | undefined;
813
+ params?: {
814
+ token: string;
815
+ } | undefined;
998
816
  duplex?: "full" | "half" | undefined;
999
817
  jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1000
818
  retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
@@ -1003,20 +821,87 @@ export declare const authClient: {
1003
821
  errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
1004
822
  disableValidation?: boolean | undefined;
1005
823
  }>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
1006
- newPassword: string;
1007
- userId: unknown;
1008
- } & {
824
+ query: {
825
+ callbackURL: string;
826
+ };
1009
827
  fetchOptions?: FetchOptions | undefined;
1010
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
1011
- status: boolean;
1012
- }, {
828
+ }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<never, {
1013
829
  code?: string;
1014
830
  message?: string;
1015
831
  }, FetchOptions["throw"] extends true ? true : false>>;
1016
832
  };
1017
833
  } & {
1018
- admin: {
1019
- hasPermission: <FetchOptions extends {
834
+ requestPasswordReset: <FetchOptions extends {
835
+ method?: string | undefined;
836
+ mode?: RequestMode | undefined;
837
+ headers?: (HeadersInit & (HeadersInit | {
838
+ accept: "application/json" | "text/plain" | "application/octet-stream";
839
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
840
+ authorization: "Bearer" | "Basic";
841
+ })) | undefined;
842
+ cache?: RequestCache | undefined;
843
+ credentials?: RequestCredentials | undefined;
844
+ integrity?: string | undefined;
845
+ keepalive?: boolean | undefined;
846
+ priority?: RequestPriority | undefined;
847
+ redirect?: RequestRedirect | undefined;
848
+ referrer?: string | undefined;
849
+ referrerPolicy?: ReferrerPolicy | undefined;
850
+ signal?: (AbortSignal | null) | undefined;
851
+ window?: null | undefined;
852
+ 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;
853
+ 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;
854
+ onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
855
+ onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
856
+ onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
857
+ hookOptions?: {
858
+ cloneResponse?: boolean;
859
+ } | undefined;
860
+ timeout?: number | undefined;
861
+ customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
862
+ plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
863
+ baseURL?: string | undefined;
864
+ throw?: boolean | undefined;
865
+ auth?: ({
866
+ type: "Bearer";
867
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
868
+ } | {
869
+ type: "Basic";
870
+ username: string | (() => string | undefined) | undefined;
871
+ password: string | (() => string | undefined) | undefined;
872
+ } | {
873
+ type: "Custom";
874
+ prefix: string | (() => string | undefined) | undefined;
875
+ value: string | (() => string | undefined) | undefined;
876
+ }) | undefined;
877
+ body?: (Partial<{
878
+ email: string;
879
+ redirectTo?: string | undefined;
880
+ }> & Record<string, any>) | undefined;
881
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
882
+ params?: Record<string, any> | undefined;
883
+ duplex?: "full" | "half" | undefined;
884
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
885
+ retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
886
+ retryAttempt?: number | undefined;
887
+ output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
888
+ errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
889
+ disableValidation?: boolean | undefined;
890
+ }>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
891
+ email: string;
892
+ redirectTo?: string | undefined;
893
+ } & {
894
+ fetchOptions?: FetchOptions | undefined;
895
+ }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
896
+ status: boolean;
897
+ message: string;
898
+ }, {
899
+ code?: string;
900
+ message?: string;
901
+ }, FetchOptions["throw"] extends true ? true : false>>;
902
+ } & {
903
+ resetPassword: {
904
+ ":token": <FetchOptions extends {
1020
905
  method?: string | undefined;
1021
906
  mode?: RequestMode | undefined;
1022
907
  headers?: (HeadersInit & (HeadersInit | {
@@ -1059,24 +944,13 @@ export declare const authClient: {
1059
944
  prefix: string | (() => string | undefined) | undefined;
1060
945
  value: string | (() => string | undefined) | undefined;
1061
946
  }) | undefined;
1062
- body?: (Partial<({
1063
- permission: {
1064
- readonly user?: ("list" | "create" | "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?: ("list" | "create" | "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;
947
+ body?: undefined;
948
+ query?: (Partial<{
949
+ callbackURL: string;
1077
950
  }> & Record<string, any>) | undefined;
1078
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1079
- params?: Record<string, any> | undefined;
951
+ params?: {
952
+ token: string;
953
+ } | undefined;
1080
954
  duplex?: "full" | "half" | undefined;
1081
955
  jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1082
956
  retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
@@ -1084,143 +958,301 @@ export declare const authClient: {
1084
958
  output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1085
959
  errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
1086
960
  disableValidation?: boolean | undefined;
1087
- }>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<(({
1088
- permission: {
1089
- readonly user?: ("list" | "create" | "set-role" | "ban" | "impersonate" | "delete" | "set-password" | "get" | "update")[] | undefined;
1090
- readonly session?: ("list" | "delete" | "revoke")[] | undefined;
961
+ }>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
962
+ query: {
963
+ callbackURL: string;
1091
964
  };
1092
- permissions?: never;
965
+ fetchOptions?: FetchOptions | undefined;
966
+ }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<never, {
967
+ code?: string;
968
+ message?: string;
969
+ }, FetchOptions["throw"] extends true ? true : false>>;
970
+ };
971
+ } & {
972
+ revokeSession: <FetchOptions extends {
973
+ method?: string | undefined;
974
+ mode?: RequestMode | undefined;
975
+ headers?: (HeadersInit & (HeadersInit | {
976
+ accept: "application/json" | "text/plain" | "application/octet-stream";
977
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
978
+ authorization: "Bearer" | "Basic";
979
+ })) | undefined;
980
+ cache?: RequestCache | undefined;
981
+ credentials?: RequestCredentials | undefined;
982
+ integrity?: string | undefined;
983
+ keepalive?: boolean | undefined;
984
+ priority?: RequestPriority | undefined;
985
+ redirect?: RequestRedirect | undefined;
986
+ referrer?: string | undefined;
987
+ referrerPolicy?: ReferrerPolicy | undefined;
988
+ signal?: (AbortSignal | null) | undefined;
989
+ window?: null | undefined;
990
+ 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;
991
+ 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;
992
+ onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
993
+ onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
994
+ onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
995
+ hookOptions?: {
996
+ cloneResponse?: boolean;
997
+ } | undefined;
998
+ timeout?: number | undefined;
999
+ customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
1000
+ plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
1001
+ baseURL?: string | undefined;
1002
+ throw?: boolean | undefined;
1003
+ auth?: ({
1004
+ type: "Bearer";
1005
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1006
+ } | {
1007
+ type: "Basic";
1008
+ username: string | (() => string | undefined) | undefined;
1009
+ password: string | (() => string | undefined) | undefined;
1010
+ } | {
1011
+ type: "Custom";
1012
+ prefix: string | (() => string | undefined) | undefined;
1013
+ value: string | (() => string | undefined) | undefined;
1014
+ }) | undefined;
1015
+ body?: (Partial<{
1016
+ token: string;
1017
+ }> & Record<string, any>) | undefined;
1018
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1019
+ params?: Record<string, any> | undefined;
1020
+ duplex?: "full" | "half" | undefined;
1021
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1022
+ retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
1023
+ retryAttempt?: number | undefined;
1024
+ output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1025
+ errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
1026
+ disableValidation?: boolean | undefined;
1027
+ }>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
1028
+ token: string;
1029
+ } & {
1030
+ fetchOptions?: FetchOptions | undefined;
1031
+ }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
1032
+ status: boolean;
1033
+ }, {
1034
+ code?: string;
1035
+ message?: string;
1036
+ }, FetchOptions["throw"] extends true ? true : false>>;
1037
+ } & {
1038
+ revokeSessions: <FetchOptions extends {
1039
+ method?: string | undefined;
1040
+ mode?: RequestMode | undefined;
1041
+ headers?: (HeadersInit & (HeadersInit | {
1042
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1043
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1044
+ authorization: "Bearer" | "Basic";
1045
+ })) | undefined;
1046
+ cache?: RequestCache | undefined;
1047
+ credentials?: RequestCredentials | undefined;
1048
+ integrity?: string | undefined;
1049
+ keepalive?: boolean | undefined;
1050
+ priority?: RequestPriority | undefined;
1051
+ redirect?: RequestRedirect | undefined;
1052
+ referrer?: string | undefined;
1053
+ referrerPolicy?: ReferrerPolicy | undefined;
1054
+ signal?: (AbortSignal | null) | undefined;
1055
+ window?: null | undefined;
1056
+ 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;
1057
+ 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;
1058
+ onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
1059
+ onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
1060
+ onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
1061
+ hookOptions?: {
1062
+ cloneResponse?: boolean;
1063
+ } | undefined;
1064
+ timeout?: number | undefined;
1065
+ customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
1066
+ plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
1067
+ baseURL?: string | undefined;
1068
+ throw?: boolean | undefined;
1069
+ auth?: ({
1070
+ type: "Bearer";
1071
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1072
+ } | {
1073
+ type: "Basic";
1074
+ username: string | (() => string | undefined) | undefined;
1075
+ password: string | (() => string | undefined) | undefined;
1076
+ } | {
1077
+ type: "Custom";
1078
+ prefix: string | (() => string | undefined) | undefined;
1079
+ value: string | (() => string | undefined) | undefined;
1080
+ }) | undefined;
1081
+ body?: undefined;
1082
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1083
+ params?: Record<string, any> | undefined;
1084
+ duplex?: "full" | "half" | undefined;
1085
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1086
+ retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
1087
+ retryAttempt?: number | undefined;
1088
+ output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1089
+ errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
1090
+ disableValidation?: boolean | undefined;
1091
+ }>(data_0?: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
1092
+ query?: Record<string, any> | undefined;
1093
+ fetchOptions?: FetchOptions | undefined;
1094
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
1095
+ status: boolean;
1096
+ }, {
1097
+ code?: string;
1098
+ message?: string;
1099
+ }, FetchOptions["throw"] extends true ? true : false>>;
1100
+ } & {
1101
+ revokeOtherSessions: <FetchOptions extends {
1102
+ method?: string | undefined;
1103
+ mode?: RequestMode | undefined;
1104
+ headers?: (HeadersInit & (HeadersInit | {
1105
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1106
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1107
+ authorization: "Bearer" | "Basic";
1108
+ })) | undefined;
1109
+ cache?: RequestCache | undefined;
1110
+ credentials?: RequestCredentials | undefined;
1111
+ integrity?: string | undefined;
1112
+ keepalive?: boolean | undefined;
1113
+ priority?: RequestPriority | undefined;
1114
+ redirect?: RequestRedirect | undefined;
1115
+ referrer?: string | undefined;
1116
+ referrerPolicy?: ReferrerPolicy | undefined;
1117
+ signal?: (AbortSignal | null) | undefined;
1118
+ window?: null | undefined;
1119
+ 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;
1120
+ 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;
1121
+ onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
1122
+ onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
1123
+ onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
1124
+ hookOptions?: {
1125
+ cloneResponse?: boolean;
1126
+ } | undefined;
1127
+ timeout?: number | undefined;
1128
+ customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
1129
+ plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
1130
+ baseURL?: string | undefined;
1131
+ throw?: boolean | undefined;
1132
+ auth?: ({
1133
+ type: "Bearer";
1134
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1093
1135
  } | {
1094
- permissions: {
1095
- readonly user?: ("list" | "create" | "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
- };
1136
+ type: "Basic";
1137
+ username: string | (() => string | undefined) | undefined;
1138
+ password: string | (() => string | undefined) | undefined;
1139
+ } | {
1140
+ type: "Custom";
1141
+ prefix: string | (() => string | undefined) | undefined;
1142
+ value: string | (() => string | undefined) | undefined;
1143
+ }) | undefined;
1144
+ body?: undefined;
1145
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1146
+ params?: Record<string, any> | undefined;
1147
+ duplex?: "full" | "half" | undefined;
1148
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1149
+ retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
1150
+ retryAttempt?: number | undefined;
1151
+ output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1152
+ errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
1153
+ disableValidation?: boolean | undefined;
1154
+ }>(data_0?: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
1155
+ query?: Record<string, any> | undefined;
1156
+ fetchOptions?: FetchOptions | undefined;
1157
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
1158
+ status: boolean;
1159
+ }, {
1160
+ code?: string;
1161
+ message?: string;
1162
+ }, FetchOptions["throw"] extends true ? true : false>>;
1112
1163
  } & {
1113
- signIn: {
1114
- social: <FetchOptions extends {
1115
- method?: string | undefined;
1116
- mode?: RequestMode | undefined;
1117
- headers?: (HeadersInit & (HeadersInit | {
1118
- accept: "application/json" | "text/plain" | "application/octet-stream";
1119
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1120
- authorization: "Bearer" | "Basic";
1121
- })) | undefined;
1122
- cache?: RequestCache | undefined;
1123
- credentials?: RequestCredentials | undefined;
1124
- integrity?: string | undefined;
1125
- keepalive?: boolean | undefined;
1126
- priority?: RequestPriority | undefined;
1127
- redirect?: RequestRedirect | undefined;
1128
- referrer?: string | undefined;
1129
- referrerPolicy?: ReferrerPolicy | undefined;
1130
- signal?: (AbortSignal | null) | undefined;
1131
- window?: null | undefined;
1132
- 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;
1133
- 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;
1134
- onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
1135
- onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
1136
- onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
1137
- hookOptions?: {
1138
- cloneResponse?: boolean;
1139
- } | undefined;
1140
- timeout?: number | undefined;
1141
- customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
1142
- plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
1143
- baseURL?: string | undefined;
1144
- throw?: boolean | undefined;
1145
- auth?: ({
1146
- type: "Bearer";
1147
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1148
- } | {
1149
- type: "Basic";
1150
- username: string | (() => string | undefined) | undefined;
1151
- password: string | (() => string | undefined) | undefined;
1152
- } | {
1153
- type: "Custom";
1154
- prefix: string | (() => string | undefined) | undefined;
1155
- value: string | (() => string | undefined) | undefined;
1156
- }) | undefined;
1157
- body?: (Partial<{
1158
- provider: unknown;
1159
- callbackURL?: string | undefined;
1160
- newUserCallbackURL?: string | undefined;
1161
- errorCallbackURL?: string | undefined;
1162
- disableRedirect?: boolean | undefined;
1163
- idToken?: {
1164
- token: string;
1165
- nonce?: string | undefined;
1166
- accessToken?: string | undefined;
1167
- refreshToken?: string | undefined;
1168
- expiresAt?: number | undefined;
1169
- } | undefined;
1170
- scopes?: string[] | undefined;
1171
- requestSignUp?: boolean | undefined;
1172
- loginHint?: string | undefined;
1173
- }> & Record<string, any>) | undefined;
1174
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1175
- params?: Record<string, any> | undefined;
1176
- duplex?: "full" | "half" | undefined;
1177
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1178
- retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
1179
- retryAttempt?: number | undefined;
1180
- output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1181
- errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
1182
- disableValidation?: boolean | undefined;
1183
- }>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
1164
+ linkSocial: <FetchOptions extends {
1165
+ method?: string | undefined;
1166
+ mode?: RequestMode | undefined;
1167
+ headers?: (HeadersInit & (HeadersInit | {
1168
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1169
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1170
+ authorization: "Bearer" | "Basic";
1171
+ })) | undefined;
1172
+ cache?: RequestCache | undefined;
1173
+ credentials?: RequestCredentials | undefined;
1174
+ integrity?: string | undefined;
1175
+ keepalive?: boolean | undefined;
1176
+ priority?: RequestPriority | undefined;
1177
+ redirect?: RequestRedirect | undefined;
1178
+ referrer?: string | undefined;
1179
+ referrerPolicy?: ReferrerPolicy | undefined;
1180
+ signal?: (AbortSignal | null) | undefined;
1181
+ window?: null | undefined;
1182
+ 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;
1183
+ 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;
1184
+ onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
1185
+ onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
1186
+ onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
1187
+ hookOptions?: {
1188
+ cloneResponse?: boolean;
1189
+ } | undefined;
1190
+ timeout?: number | undefined;
1191
+ customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
1192
+ plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
1193
+ baseURL?: string | undefined;
1194
+ throw?: boolean | undefined;
1195
+ auth?: ({
1196
+ type: "Bearer";
1197
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1198
+ } | {
1199
+ type: "Basic";
1200
+ username: string | (() => string | undefined) | undefined;
1201
+ password: string | (() => string | undefined) | undefined;
1202
+ } | {
1203
+ type: "Custom";
1204
+ prefix: string | (() => string | undefined) | undefined;
1205
+ value: string | (() => string | undefined) | undefined;
1206
+ }) | undefined;
1207
+ body?: (Partial<{
1184
1208
  provider: unknown;
1185
1209
  callbackURL?: string | undefined;
1186
- newUserCallbackURL?: string | undefined;
1187
- errorCallbackURL?: string | undefined;
1188
- disableRedirect?: boolean | undefined;
1189
1210
  idToken?: {
1190
1211
  token: string;
1191
1212
  nonce?: string | undefined;
1192
1213
  accessToken?: string | undefined;
1193
1214
  refreshToken?: string | undefined;
1194
- expiresAt?: number | undefined;
1215
+ scopes?: string[] | undefined;
1195
1216
  } | undefined;
1196
- scopes?: string[] | undefined;
1197
1217
  requestSignUp?: boolean | undefined;
1198
- loginHint?: string | undefined;
1199
- } & {
1200
- fetchOptions?: FetchOptions | undefined;
1201
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<NonNullable<{
1202
- redirect: boolean;
1203
- token: string;
1204
- url: undefined;
1205
- user: {
1206
- id: string;
1207
- email: string;
1208
- name: string;
1209
- image: string | null | undefined;
1210
- emailVerified: boolean;
1211
- createdAt: Date;
1212
- updatedAt: Date;
1213
- };
1214
- } | {
1215
- url: string;
1216
- redirect: boolean;
1217
- }>, {
1218
- code?: string;
1219
- message?: string;
1220
- }, FetchOptions["throw"] extends true ? true : false>>;
1221
- };
1218
+ scopes?: string[] | undefined;
1219
+ errorCallbackURL?: string | undefined;
1220
+ disableRedirect?: boolean | undefined;
1221
+ }> & Record<string, any>) | undefined;
1222
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1223
+ params?: Record<string, any> | undefined;
1224
+ duplex?: "full" | "half" | undefined;
1225
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1226
+ retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
1227
+ retryAttempt?: number | undefined;
1228
+ output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1229
+ errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
1230
+ disableValidation?: boolean | undefined;
1231
+ }>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
1232
+ provider: unknown;
1233
+ callbackURL?: string | undefined;
1234
+ idToken?: {
1235
+ token: string;
1236
+ nonce?: string | undefined;
1237
+ accessToken?: string | undefined;
1238
+ refreshToken?: string | undefined;
1239
+ scopes?: string[] | undefined;
1240
+ } | undefined;
1241
+ requestSignUp?: boolean | undefined;
1242
+ scopes?: string[] | undefined;
1243
+ errorCallbackURL?: string | undefined;
1244
+ disableRedirect?: boolean | undefined;
1245
+ } & {
1246
+ fetchOptions?: FetchOptions | undefined;
1247
+ }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
1248
+ url: string;
1249
+ redirect: boolean;
1250
+ }, {
1251
+ code?: string;
1252
+ message?: string;
1253
+ }, FetchOptions["throw"] extends true ? true : false>>;
1222
1254
  } & {
1223
- signOut: <FetchOptions extends {
1255
+ listAccounts: <FetchOptions extends {
1224
1256
  method?: string | undefined;
1225
1257
  mode?: RequestMode | undefined;
1226
1258
  headers?: (HeadersInit & (HeadersInit | {
@@ -1277,110 +1309,19 @@ export declare const authClient: {
1277
1309
  query?: Record<string, any> | undefined;
1278
1310
  fetchOptions?: FetchOptions | undefined;
1279
1311
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
1280
- success: boolean;
1281
- }, {
1312
+ id: string;
1313
+ providerId: string;
1314
+ createdAt: Date;
1315
+ updatedAt: Date;
1316
+ accountId: string;
1317
+ scopes: string[];
1318
+ }[], {
1282
1319
  code?: string;
1283
1320
  message?: string;
1284
1321
  }, FetchOptions["throw"] extends true ? true : false>>;
1285
1322
  } & {
1286
- signUp: {
1287
- email: <FetchOptions extends {
1288
- method?: string | undefined;
1289
- mode?: RequestMode | undefined;
1290
- headers?: (HeadersInit & (HeadersInit | {
1291
- accept: "application/json" | "text/plain" | "application/octet-stream";
1292
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1293
- authorization: "Bearer" | "Basic";
1294
- })) | undefined;
1295
- cache?: RequestCache | undefined;
1296
- credentials?: RequestCredentials | undefined;
1297
- integrity?: string | undefined;
1298
- keepalive?: boolean | undefined;
1299
- priority?: RequestPriority | undefined;
1300
- redirect?: RequestRedirect | undefined;
1301
- referrer?: string | undefined;
1302
- referrerPolicy?: ReferrerPolicy | undefined;
1303
- signal?: (AbortSignal | null) | undefined;
1304
- window?: null | undefined;
1305
- 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;
1306
- 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;
1307
- onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
1308
- onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
1309
- onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
1310
- hookOptions?: {
1311
- cloneResponse?: boolean;
1312
- } | undefined;
1313
- timeout?: number | undefined;
1314
- customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
1315
- plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
1316
- baseURL?: string | undefined;
1317
- throw?: boolean | undefined;
1318
- auth?: ({
1319
- type: "Bearer";
1320
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1321
- } | {
1322
- type: "Basic";
1323
- username: string | (() => string | undefined) | undefined;
1324
- password: string | (() => string | undefined) | undefined;
1325
- } | {
1326
- type: "Custom";
1327
- prefix: string | (() => string | undefined) | undefined;
1328
- value: string | (() => string | undefined) | undefined;
1329
- }) | undefined;
1330
- body?: (Partial<{
1331
- name: string;
1332
- email: string;
1333
- password: string;
1334
- image?: string;
1335
- callbackURL?: string;
1336
- rememberMe?: boolean;
1337
- }> & Record<string, any>) | undefined;
1338
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1339
- params?: Record<string, any> | undefined;
1340
- duplex?: "full" | "half" | undefined;
1341
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1342
- retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
1343
- retryAttempt?: number | undefined;
1344
- output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1345
- errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
1346
- disableValidation?: boolean | undefined;
1347
- }>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
1348
- email: string;
1349
- name: string;
1350
- password: string;
1351
- image?: string;
1352
- callbackURL?: string;
1353
- fetchOptions?: FetchOptions | undefined;
1354
- } & {} & {}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<NonNullable<{
1355
- token: null;
1356
- user: {
1357
- id: string;
1358
- email: string;
1359
- name: string;
1360
- image: string | null | undefined;
1361
- emailVerified: boolean;
1362
- createdAt: Date;
1363
- updatedAt: Date;
1364
- };
1365
- } | {
1366
- token: string;
1367
- user: {
1368
- id: string;
1369
- email: string;
1370
- name: string;
1371
- image: string | null | undefined;
1372
- emailVerified: boolean;
1373
- createdAt: Date;
1374
- updatedAt: Date;
1375
- };
1376
- }>, {
1377
- code?: string;
1378
- message?: string;
1379
- }, FetchOptions["throw"] extends true ? true : false>>;
1380
- };
1381
- } & {
1382
- signIn: {
1383
- email: <FetchOptions extends {
1323
+ deleteUser: {
1324
+ callback: <FetchOptions extends {
1384
1325
  method?: string | undefined;
1385
1326
  mode?: RequestMode | undefined;
1386
1327
  headers?: (HeadersInit & (HeadersInit | {
@@ -1423,13 +1364,11 @@ export declare const authClient: {
1423
1364
  prefix: string | (() => string | undefined) | undefined;
1424
1365
  value: string | (() => string | undefined) | undefined;
1425
1366
  }) | undefined;
1426
- body?: (Partial<{
1427
- email: string;
1428
- password: string;
1367
+ body?: undefined;
1368
+ query?: (Partial<{
1369
+ token: string;
1429
1370
  callbackURL?: string | undefined;
1430
- rememberMe?: boolean | undefined;
1431
1371
  }> & Record<string, any>) | undefined;
1432
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1433
1372
  params?: Record<string, any> | undefined;
1434
1373
  duplex?: "full" | "half" | undefined;
1435
1374
  jsonParser?: ((text: string) => Promise<any> | any) | undefined;
@@ -1439,32 +1378,21 @@ export declare const authClient: {
1439
1378
  errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
1440
1379
  disableValidation?: boolean | undefined;
1441
1380
  }>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
1442
- email: string;
1443
- password: string;
1444
- callbackURL?: string | undefined;
1445
- rememberMe?: boolean | undefined;
1446
- } & {
1381
+ query: {
1382
+ token: string;
1383
+ callbackURL?: string | undefined;
1384
+ };
1447
1385
  fetchOptions?: FetchOptions | undefined;
1448
1386
  }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
1449
- redirect: boolean;
1450
- token: string;
1451
- url: string | undefined;
1452
- user: {
1453
- id: string;
1454
- email: string;
1455
- name: string;
1456
- image: string | null | undefined;
1457
- emailVerified: boolean;
1458
- createdAt: Date;
1459
- updatedAt: Date;
1460
- };
1387
+ success: boolean;
1388
+ message: string;
1461
1389
  }, {
1462
1390
  code?: string;
1463
1391
  message?: string;
1464
1392
  }, FetchOptions["throw"] extends true ? true : false>>;
1465
1393
  };
1466
1394
  } & {
1467
- forgetPassword: <FetchOptions extends {
1395
+ unlinkAccount: <FetchOptions extends {
1468
1396
  method?: string | undefined;
1469
1397
  mode?: RequestMode | undefined;
1470
1398
  headers?: (HeadersInit & (HeadersInit | {
@@ -1508,8 +1436,8 @@ export declare const authClient: {
1508
1436
  value: string | (() => string | undefined) | undefined;
1509
1437
  }) | undefined;
1510
1438
  body?: (Partial<{
1511
- email: string;
1512
- redirectTo?: string | undefined;
1439
+ providerId: string;
1440
+ accountId?: string | undefined;
1513
1441
  }> & Record<string, any>) | undefined;
1514
1442
  query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1515
1443
  params?: Record<string, any> | undefined;
@@ -1521,8 +1449,8 @@ export declare const authClient: {
1521
1449
  errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
1522
1450
  disableValidation?: boolean | undefined;
1523
1451
  }>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
1524
- email: string;
1525
- redirectTo?: string | undefined;
1452
+ providerId: string;
1453
+ accountId?: string | undefined;
1526
1454
  } & {
1527
1455
  fetchOptions?: FetchOptions | undefined;
1528
1456
  }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
@@ -1532,7 +1460,7 @@ export declare const authClient: {
1532
1460
  message?: string;
1533
1461
  }, FetchOptions["throw"] extends true ? true : false>>;
1534
1462
  } & {
1535
- resetPassword: <FetchOptions extends {
1463
+ refreshToken: <FetchOptions extends {
1536
1464
  method?: string | undefined;
1537
1465
  mode?: RequestMode | undefined;
1538
1466
  headers?: (HeadersInit & (HeadersInit | {
@@ -1576,80 +1504,11 @@ export declare const authClient: {
1576
1504
  value: string | (() => string | undefined) | undefined;
1577
1505
  }) | undefined;
1578
1506
  body?: (Partial<{
1579
- newPassword: string;
1580
- token?: string | undefined;
1581
- }> & Record<string, any>) | undefined;
1582
- query?: (Partial<{
1583
- token?: string | undefined;
1584
- }> & Record<string, any>) | undefined;
1585
- params?: Record<string, any> | undefined;
1586
- duplex?: "full" | "half" | undefined;
1587
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1588
- retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
1589
- retryAttempt?: number | undefined;
1590
- output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1591
- errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
1592
- disableValidation?: boolean | undefined;
1593
- }>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
1594
- newPassword: string;
1595
- token?: string | undefined;
1596
- } & {
1597
- fetchOptions?: FetchOptions | undefined;
1598
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
1599
- status: boolean;
1600
- }, {
1601
- code?: string;
1602
- message?: string;
1603
- }, FetchOptions["throw"] extends true ? true : false>>;
1604
- } & {
1605
- verifyEmail: <FetchOptions extends {
1606
- method?: string | undefined;
1607
- mode?: RequestMode | undefined;
1608
- headers?: (HeadersInit & (HeadersInit | {
1609
- accept: "application/json" | "text/plain" | "application/octet-stream";
1610
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1611
- authorization: "Bearer" | "Basic";
1612
- })) | undefined;
1613
- cache?: RequestCache | undefined;
1614
- credentials?: RequestCredentials | undefined;
1615
- integrity?: string | undefined;
1616
- keepalive?: boolean | undefined;
1617
- priority?: RequestPriority | undefined;
1618
- redirect?: RequestRedirect | undefined;
1619
- referrer?: string | undefined;
1620
- referrerPolicy?: ReferrerPolicy | undefined;
1621
- signal?: (AbortSignal | null) | undefined;
1622
- window?: null | undefined;
1623
- 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;
1624
- 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;
1625
- onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
1626
- onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
1627
- onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
1628
- hookOptions?: {
1629
- cloneResponse?: boolean;
1630
- } | undefined;
1631
- timeout?: number | undefined;
1632
- customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
1633
- plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
1634
- baseURL?: string | undefined;
1635
- throw?: boolean | undefined;
1636
- auth?: ({
1637
- type: "Bearer";
1638
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1639
- } | {
1640
- type: "Basic";
1641
- username: string | (() => string | undefined) | undefined;
1642
- password: string | (() => string | undefined) | undefined;
1643
- } | {
1644
- type: "Custom";
1645
- prefix: string | (() => string | undefined) | undefined;
1646
- value: string | (() => string | undefined) | undefined;
1647
- }) | undefined;
1648
- body?: undefined;
1649
- query?: (Partial<{
1650
- token: string;
1651
- callbackURL?: string | undefined;
1507
+ providerId: string;
1508
+ accountId?: string | undefined;
1509
+ userId?: string | undefined;
1652
1510
  }> & Record<string, any>) | undefined;
1511
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1653
1512
  params?: Record<string, any> | undefined;
1654
1513
  duplex?: "full" | "half" | undefined;
1655
1514
  jsonParser?: ((text: string) => Promise<any> | any) | undefined;
@@ -1659,31 +1518,17 @@ export declare const authClient: {
1659
1518
  errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
1660
1519
  disableValidation?: boolean | undefined;
1661
1520
  }>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
1662
- query: {
1663
- token: string;
1664
- callbackURL?: string | undefined;
1665
- };
1521
+ providerId: string;
1522
+ accountId?: string | undefined;
1523
+ userId?: string | undefined;
1524
+ } & {
1666
1525
  fetchOptions?: FetchOptions | undefined;
1667
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<NonNullable<void | {
1668
- status: boolean;
1669
- user: {
1670
- id: string;
1671
- email: string;
1672
- name: string;
1673
- image: string | null | undefined;
1674
- emailVerified: boolean;
1675
- createdAt: Date;
1676
- updatedAt: Date;
1677
- };
1678
- } | {
1679
- status: boolean;
1680
- user: null;
1681
- }>, {
1526
+ }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<any, {
1682
1527
  code?: string;
1683
1528
  message?: string;
1684
1529
  }, FetchOptions["throw"] extends true ? true : false>>;
1685
1530
  } & {
1686
- sendVerificationEmail: <FetchOptions extends {
1531
+ getAccessToken: <FetchOptions extends {
1687
1532
  method?: string | undefined;
1688
1533
  mode?: RequestMode | undefined;
1689
1534
  headers?: (HeadersInit & (HeadersInit | {
@@ -1727,8 +1572,9 @@ export declare const authClient: {
1727
1572
  value: string | (() => string | undefined) | undefined;
1728
1573
  }) | undefined;
1729
1574
  body?: (Partial<{
1730
- email: string;
1731
- callbackURL?: string | undefined;
1575
+ providerId: string;
1576
+ accountId?: string | undefined;
1577
+ userId?: string | undefined;
1732
1578
  }> & Record<string, any>) | undefined;
1733
1579
  query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1734
1580
  params?: Record<string, any> | undefined;
@@ -1740,18 +1586,22 @@ export declare const authClient: {
1740
1586
  errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
1741
1587
  disableValidation?: boolean | undefined;
1742
1588
  }>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
1743
- email: string;
1744
- callbackURL?: string | undefined;
1589
+ providerId: string;
1590
+ accountId?: string | undefined;
1591
+ userId?: string | undefined;
1745
1592
  } & {
1746
1593
  fetchOptions?: FetchOptions | undefined;
1747
1594
  }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
1748
- status: boolean;
1595
+ accessToken: string;
1596
+ accessTokenExpiresAt: Date | undefined;
1597
+ scopes: string[];
1598
+ idToken: string | undefined;
1749
1599
  }, {
1750
1600
  code?: string;
1751
1601
  message?: string;
1752
1602
  }, FetchOptions["throw"] extends true ? true : false>>;
1753
1603
  } & {
1754
- changeEmail: <FetchOptions extends {
1604
+ accountInfo: <FetchOptions extends {
1755
1605
  method?: string | undefined;
1756
1606
  mode?: RequestMode | undefined;
1757
1607
  headers?: (HeadersInit & (HeadersInit | {
@@ -1790,254 +1640,566 @@ export declare const authClient: {
1790
1640
  username: string | (() => string | undefined) | undefined;
1791
1641
  password: string | (() => string | undefined) | undefined;
1792
1642
  } | {
1793
- type: "Custom";
1794
- prefix: string | (() => string | undefined) | undefined;
1795
- value: string | (() => string | undefined) | undefined;
1796
- }) | undefined;
1797
- body?: (Partial<{
1798
- newEmail: string;
1799
- callbackURL?: string | undefined;
1800
- }> & Record<string, any>) | undefined;
1801
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1802
- params?: Record<string, any> | undefined;
1803
- duplex?: "full" | "half" | undefined;
1804
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1805
- retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
1806
- retryAttempt?: number | undefined;
1807
- output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1808
- errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
1809
- disableValidation?: boolean | undefined;
1810
- }>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
1811
- newEmail: string;
1812
- callbackURL?: string | undefined;
1813
- } & {
1814
- fetchOptions?: FetchOptions | undefined;
1815
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
1816
- status: boolean;
1817
- }, {
1818
- code?: string;
1819
- message?: string;
1820
- }, FetchOptions["throw"] extends true ? true : false>>;
1643
+ type: "Custom";
1644
+ prefix: string | (() => string | undefined) | undefined;
1645
+ value: string | (() => string | undefined) | undefined;
1646
+ }) | undefined;
1647
+ body?: (Partial<{
1648
+ accountId: string;
1649
+ }> & Record<string, any>) | undefined;
1650
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1651
+ params?: Record<string, any> | undefined;
1652
+ duplex?: "full" | "half" | undefined;
1653
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1654
+ retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
1655
+ retryAttempt?: number | undefined;
1656
+ output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1657
+ errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
1658
+ disableValidation?: boolean | undefined;
1659
+ }>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
1660
+ accountId: string;
1661
+ } & {
1662
+ fetchOptions?: FetchOptions | undefined;
1663
+ }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
1664
+ user: packages_core_dist_oauth2.OAuth2UserInfo;
1665
+ data: Record<string, any>;
1666
+ }, {
1667
+ code?: string;
1668
+ message?: string;
1669
+ }, FetchOptions["throw"] extends true ? true : false>>;
1670
+ } & {
1671
+ admin: {
1672
+ getUser: <FetchOptions extends {
1673
+ method?: string | undefined;
1674
+ mode?: RequestMode | undefined;
1675
+ headers?: (HeadersInit & (HeadersInit | {
1676
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1677
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1678
+ authorization: "Bearer" | "Basic";
1679
+ })) | undefined;
1680
+ cache?: RequestCache | undefined;
1681
+ credentials?: RequestCredentials | undefined;
1682
+ integrity?: string | undefined;
1683
+ keepalive?: boolean | undefined;
1684
+ priority?: RequestPriority | undefined;
1685
+ redirect?: RequestRedirect | undefined;
1686
+ referrer?: string | undefined;
1687
+ referrerPolicy?: ReferrerPolicy | undefined;
1688
+ signal?: (AbortSignal | null) | undefined;
1689
+ window?: null | undefined;
1690
+ 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;
1691
+ 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;
1692
+ onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
1693
+ onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
1694
+ onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
1695
+ hookOptions?: {
1696
+ cloneResponse?: boolean;
1697
+ } | undefined;
1698
+ timeout?: number | undefined;
1699
+ customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
1700
+ plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
1701
+ baseURL?: string | undefined;
1702
+ throw?: boolean | undefined;
1703
+ auth?: ({
1704
+ type: "Bearer";
1705
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1706
+ } | {
1707
+ type: "Basic";
1708
+ username: string | (() => string | undefined) | undefined;
1709
+ password: string | (() => string | undefined) | undefined;
1710
+ } | {
1711
+ type: "Custom";
1712
+ prefix: string | (() => string | undefined) | undefined;
1713
+ value: string | (() => string | undefined) | undefined;
1714
+ }) | undefined;
1715
+ body?: undefined;
1716
+ query?: (Partial<{
1717
+ id: string;
1718
+ }> & Record<string, any>) | undefined;
1719
+ params?: Record<string, any> | undefined;
1720
+ duplex?: "full" | "half" | undefined;
1721
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1722
+ retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
1723
+ retryAttempt?: number | undefined;
1724
+ output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1725
+ errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
1726
+ disableValidation?: boolean | undefined;
1727
+ }>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
1728
+ query: {
1729
+ id: string;
1730
+ };
1731
+ fetchOptions?: FetchOptions | undefined;
1732
+ }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
1733
+ id: string;
1734
+ createdAt: Date;
1735
+ updatedAt: Date;
1736
+ email: string;
1737
+ emailVerified: boolean;
1738
+ name: string;
1739
+ image?: string | null | undefined;
1740
+ }, {
1741
+ code?: string;
1742
+ message?: string;
1743
+ }, FetchOptions["throw"] extends true ? true : false>>;
1744
+ };
1745
+ } & {
1746
+ admin: {
1747
+ updateUser: <FetchOptions extends {
1748
+ method?: string | undefined;
1749
+ mode?: RequestMode | undefined;
1750
+ headers?: (HeadersInit & (HeadersInit | {
1751
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1752
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1753
+ authorization: "Bearer" | "Basic";
1754
+ })) | undefined;
1755
+ cache?: RequestCache | undefined;
1756
+ credentials?: RequestCredentials | undefined;
1757
+ integrity?: string | undefined;
1758
+ keepalive?: boolean | undefined;
1759
+ priority?: RequestPriority | undefined;
1760
+ redirect?: RequestRedirect | undefined;
1761
+ referrer?: string | undefined;
1762
+ referrerPolicy?: ReferrerPolicy | undefined;
1763
+ signal?: (AbortSignal | null) | undefined;
1764
+ window?: null | undefined;
1765
+ 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;
1766
+ 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;
1767
+ onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
1768
+ onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
1769
+ onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
1770
+ hookOptions?: {
1771
+ cloneResponse?: boolean;
1772
+ } | undefined;
1773
+ timeout?: number | undefined;
1774
+ customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
1775
+ plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
1776
+ baseURL?: string | undefined;
1777
+ throw?: boolean | undefined;
1778
+ auth?: ({
1779
+ type: "Bearer";
1780
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1781
+ } | {
1782
+ type: "Basic";
1783
+ username: string | (() => string | undefined) | undefined;
1784
+ password: string | (() => string | undefined) | undefined;
1785
+ } | {
1786
+ type: "Custom";
1787
+ prefix: string | (() => string | undefined) | undefined;
1788
+ value: string | (() => string | undefined) | undefined;
1789
+ }) | undefined;
1790
+ body?: (Partial<{
1791
+ userId: unknown;
1792
+ data: Record<any, any>;
1793
+ }> & Record<string, any>) | undefined;
1794
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1795
+ params?: Record<string, any> | undefined;
1796
+ duplex?: "full" | "half" | undefined;
1797
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1798
+ retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
1799
+ retryAttempt?: number | undefined;
1800
+ output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1801
+ errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
1802
+ disableValidation?: boolean | undefined;
1803
+ }>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
1804
+ userId: unknown;
1805
+ data: Record<any, any>;
1806
+ } & {
1807
+ fetchOptions?: FetchOptions | undefined;
1808
+ }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<import("better-auth/plugins", { with: { "resolution-mode": "require" } }).UserWithRole, {
1809
+ code?: string;
1810
+ message?: string;
1811
+ }, FetchOptions["throw"] extends true ? true : false>>;
1812
+ };
1813
+ } & {
1814
+ admin: {
1815
+ listUsers: <FetchOptions extends {
1816
+ method?: string | undefined;
1817
+ mode?: RequestMode | undefined;
1818
+ headers?: (HeadersInit & (HeadersInit | {
1819
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1820
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1821
+ authorization: "Bearer" | "Basic";
1822
+ })) | undefined;
1823
+ cache?: RequestCache | undefined;
1824
+ credentials?: RequestCredentials | undefined;
1825
+ integrity?: string | undefined;
1826
+ keepalive?: boolean | undefined;
1827
+ priority?: RequestPriority | undefined;
1828
+ redirect?: RequestRedirect | undefined;
1829
+ referrer?: string | undefined;
1830
+ referrerPolicy?: ReferrerPolicy | undefined;
1831
+ signal?: (AbortSignal | null) | undefined;
1832
+ window?: null | undefined;
1833
+ 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;
1834
+ 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;
1835
+ onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
1836
+ onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
1837
+ onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
1838
+ hookOptions?: {
1839
+ cloneResponse?: boolean;
1840
+ } | undefined;
1841
+ timeout?: number | undefined;
1842
+ customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
1843
+ plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
1844
+ baseURL?: string | undefined;
1845
+ throw?: boolean | undefined;
1846
+ auth?: ({
1847
+ type: "Bearer";
1848
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1849
+ } | {
1850
+ type: "Basic";
1851
+ username: string | (() => string | undefined) | undefined;
1852
+ password: string | (() => string | undefined) | undefined;
1853
+ } | {
1854
+ type: "Custom";
1855
+ prefix: string | (() => string | undefined) | undefined;
1856
+ value: string | (() => string | undefined) | undefined;
1857
+ }) | undefined;
1858
+ body?: undefined;
1859
+ query?: (Partial<{
1860
+ searchValue?: string | undefined;
1861
+ searchField?: "email" | "name" | undefined;
1862
+ searchOperator?: "contains" | "starts_with" | "ends_with" | undefined;
1863
+ limit?: string | number | undefined;
1864
+ offset?: string | number | undefined;
1865
+ sortBy?: string | undefined;
1866
+ sortDirection?: "asc" | "desc" | undefined;
1867
+ filterField?: string | undefined;
1868
+ filterValue?: string | number | boolean | undefined;
1869
+ filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | undefined;
1870
+ }> & Record<string, any>) | undefined;
1871
+ params?: Record<string, any> | undefined;
1872
+ duplex?: "full" | "half" | undefined;
1873
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1874
+ retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
1875
+ retryAttempt?: number | undefined;
1876
+ output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1877
+ errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
1878
+ disableValidation?: boolean | undefined;
1879
+ }>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
1880
+ query: {
1881
+ searchValue?: string | undefined;
1882
+ searchField?: "email" | "name" | undefined;
1883
+ searchOperator?: "contains" | "starts_with" | "ends_with" | undefined;
1884
+ limit?: string | number | undefined;
1885
+ offset?: string | number | undefined;
1886
+ sortBy?: string | undefined;
1887
+ sortDirection?: "asc" | "desc" | undefined;
1888
+ filterField?: string | undefined;
1889
+ filterValue?: string | number | boolean | undefined;
1890
+ filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | undefined;
1891
+ };
1892
+ fetchOptions?: FetchOptions | undefined;
1893
+ }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<NonNullable<{
1894
+ users: import("better-auth/plugins", { with: { "resolution-mode": "require" } }).UserWithRole[];
1895
+ total: number;
1896
+ limit: number | undefined;
1897
+ offset: number | undefined;
1898
+ } | {
1899
+ users: never[];
1900
+ total: number;
1901
+ }>, {
1902
+ code?: string;
1903
+ message?: string;
1904
+ }, FetchOptions["throw"] extends true ? true : false>>;
1905
+ };
1821
1906
  } & {
1822
- changePassword: <FetchOptions extends {
1823
- method?: string | undefined;
1824
- mode?: RequestMode | undefined;
1825
- headers?: (HeadersInit & (HeadersInit | {
1826
- accept: "application/json" | "text/plain" | "application/octet-stream";
1827
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1828
- authorization: "Bearer" | "Basic";
1829
- })) | undefined;
1830
- cache?: RequestCache | undefined;
1831
- credentials?: RequestCredentials | undefined;
1832
- integrity?: string | undefined;
1833
- keepalive?: boolean | undefined;
1834
- priority?: RequestPriority | undefined;
1835
- redirect?: RequestRedirect | undefined;
1836
- referrer?: string | undefined;
1837
- referrerPolicy?: ReferrerPolicy | undefined;
1838
- signal?: (AbortSignal | null) | undefined;
1839
- window?: null | undefined;
1840
- 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;
1841
- 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;
1842
- onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
1843
- onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
1844
- onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
1845
- hookOptions?: {
1846
- cloneResponse?: boolean;
1847
- } | undefined;
1848
- timeout?: number | undefined;
1849
- customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
1850
- plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
1851
- baseURL?: string | undefined;
1852
- throw?: boolean | undefined;
1853
- auth?: ({
1854
- type: "Bearer";
1855
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1856
- } | {
1857
- type: "Basic";
1858
- username: string | (() => string | undefined) | undefined;
1859
- password: string | (() => string | undefined) | undefined;
1860
- } | {
1861
- type: "Custom";
1862
- prefix: string | (() => string | undefined) | undefined;
1863
- value: string | (() => string | undefined) | undefined;
1864
- }) | undefined;
1865
- body?: (Partial<{
1866
- newPassword: string;
1867
- currentPassword: string;
1868
- revokeOtherSessions?: boolean | undefined;
1869
- }> & Record<string, any>) | undefined;
1870
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1871
- params?: Record<string, any> | undefined;
1872
- duplex?: "full" | "half" | undefined;
1873
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1874
- retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
1875
- retryAttempt?: number | undefined;
1876
- output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1877
- errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
1878
- disableValidation?: boolean | undefined;
1879
- }>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
1880
- newPassword: string;
1881
- currentPassword: string;
1882
- revokeOtherSessions?: boolean | undefined;
1883
- } & {
1884
- fetchOptions?: FetchOptions | undefined;
1885
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
1886
- token: string | null;
1887
- user: {
1888
- id: string;
1889
- email: string;
1890
- name: string;
1891
- image: string | null | undefined;
1892
- emailVerified: boolean;
1893
- createdAt: Date;
1894
- updatedAt: Date;
1895
- };
1896
- }, {
1897
- code?: string;
1898
- message?: string;
1899
- }, FetchOptions["throw"] extends true ? true : false>>;
1907
+ admin: {
1908
+ listUserSessions: <FetchOptions extends {
1909
+ method?: string | undefined;
1910
+ mode?: RequestMode | undefined;
1911
+ headers?: (HeadersInit & (HeadersInit | {
1912
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1913
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1914
+ authorization: "Bearer" | "Basic";
1915
+ })) | undefined;
1916
+ cache?: RequestCache | undefined;
1917
+ credentials?: RequestCredentials | undefined;
1918
+ integrity?: string | undefined;
1919
+ keepalive?: boolean | undefined;
1920
+ priority?: RequestPriority | undefined;
1921
+ redirect?: RequestRedirect | undefined;
1922
+ referrer?: string | undefined;
1923
+ referrerPolicy?: ReferrerPolicy | undefined;
1924
+ signal?: (AbortSignal | null) | undefined;
1925
+ window?: null | undefined;
1926
+ 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;
1927
+ 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;
1928
+ onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
1929
+ onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
1930
+ onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
1931
+ hookOptions?: {
1932
+ cloneResponse?: boolean;
1933
+ } | undefined;
1934
+ timeout?: number | undefined;
1935
+ customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
1936
+ plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
1937
+ baseURL?: string | undefined;
1938
+ throw?: boolean | undefined;
1939
+ auth?: ({
1940
+ type: "Bearer";
1941
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1942
+ } | {
1943
+ type: "Basic";
1944
+ username: string | (() => string | undefined) | undefined;
1945
+ password: string | (() => string | undefined) | undefined;
1946
+ } | {
1947
+ type: "Custom";
1948
+ prefix: string | (() => string | undefined) | undefined;
1949
+ value: string | (() => string | undefined) | undefined;
1950
+ }) | undefined;
1951
+ body?: (Partial<{
1952
+ userId: unknown;
1953
+ }> & Record<string, any>) | undefined;
1954
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1955
+ params?: Record<string, any> | undefined;
1956
+ duplex?: "full" | "half" | undefined;
1957
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1958
+ retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
1959
+ retryAttempt?: number | undefined;
1960
+ output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1961
+ errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
1962
+ disableValidation?: boolean | undefined;
1963
+ }>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
1964
+ userId: unknown;
1965
+ } & {
1966
+ fetchOptions?: FetchOptions | undefined;
1967
+ }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
1968
+ sessions: import("better-auth/plugins", { with: { "resolution-mode": "require" } }).SessionWithImpersonatedBy[];
1969
+ }, {
1970
+ code?: string;
1971
+ message?: string;
1972
+ }, FetchOptions["throw"] extends true ? true : false>>;
1973
+ };
1974
+ } & {
1975
+ admin: {
1976
+ unbanUser: <FetchOptions extends {
1977
+ method?: string | undefined;
1978
+ mode?: RequestMode | undefined;
1979
+ headers?: (HeadersInit & (HeadersInit | {
1980
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1981
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1982
+ authorization: "Bearer" | "Basic";
1983
+ })) | undefined;
1984
+ cache?: RequestCache | undefined;
1985
+ credentials?: RequestCredentials | undefined;
1986
+ integrity?: string | undefined;
1987
+ keepalive?: boolean | undefined;
1988
+ priority?: RequestPriority | undefined;
1989
+ redirect?: RequestRedirect | undefined;
1990
+ referrer?: string | undefined;
1991
+ referrerPolicy?: ReferrerPolicy | undefined;
1992
+ signal?: (AbortSignal | null) | undefined;
1993
+ window?: null | undefined;
1994
+ 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;
1995
+ 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;
1996
+ onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
1997
+ onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
1998
+ onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
1999
+ hookOptions?: {
2000
+ cloneResponse?: boolean;
2001
+ } | undefined;
2002
+ timeout?: number | undefined;
2003
+ customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
2004
+ plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
2005
+ baseURL?: string | undefined;
2006
+ throw?: boolean | undefined;
2007
+ auth?: ({
2008
+ type: "Bearer";
2009
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2010
+ } | {
2011
+ type: "Basic";
2012
+ username: string | (() => string | undefined) | undefined;
2013
+ password: string | (() => string | undefined) | undefined;
2014
+ } | {
2015
+ type: "Custom";
2016
+ prefix: string | (() => string | undefined) | undefined;
2017
+ value: string | (() => string | undefined) | undefined;
2018
+ }) | undefined;
2019
+ body?: (Partial<{
2020
+ userId: unknown;
2021
+ }> & Record<string, any>) | undefined;
2022
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2023
+ params?: Record<string, any> | undefined;
2024
+ duplex?: "full" | "half" | undefined;
2025
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2026
+ retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
2027
+ retryAttempt?: number | undefined;
2028
+ output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2029
+ errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
2030
+ disableValidation?: boolean | undefined;
2031
+ }>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
2032
+ userId: unknown;
2033
+ } & {
2034
+ fetchOptions?: FetchOptions | undefined;
2035
+ }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
2036
+ user: any;
2037
+ }, {
2038
+ code?: string;
2039
+ message?: string;
2040
+ }, FetchOptions["throw"] extends true ? true : false>>;
2041
+ };
1900
2042
  } & {
1901
- updateUser: <FetchOptions extends {
1902
- method?: string | undefined;
1903
- mode?: RequestMode | undefined;
1904
- headers?: (HeadersInit & (HeadersInit | {
1905
- accept: "application/json" | "text/plain" | "application/octet-stream";
1906
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1907
- authorization: "Bearer" | "Basic";
1908
- })) | undefined;
1909
- cache?: RequestCache | undefined;
1910
- credentials?: RequestCredentials | undefined;
1911
- integrity?: string | undefined;
1912
- keepalive?: boolean | undefined;
1913
- priority?: RequestPriority | undefined;
1914
- redirect?: RequestRedirect | undefined;
1915
- referrer?: string | undefined;
1916
- referrerPolicy?: ReferrerPolicy | undefined;
1917
- signal?: (AbortSignal | null) | undefined;
1918
- window?: null | undefined;
1919
- 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;
1920
- 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;
1921
- onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
1922
- onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
1923
- onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
1924
- hookOptions?: {
1925
- cloneResponse?: boolean;
1926
- } | undefined;
1927
- timeout?: number | undefined;
1928
- customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
1929
- plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
1930
- baseURL?: string | undefined;
1931
- throw?: boolean | undefined;
1932
- auth?: ({
1933
- type: "Bearer";
1934
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1935
- } | {
1936
- type: "Basic";
1937
- username: string | (() => string | undefined) | undefined;
1938
- password: string | (() => string | undefined) | undefined;
1939
- } | {
1940
- type: "Custom";
1941
- prefix: string | (() => string | undefined) | undefined;
1942
- value: string | (() => string | undefined) | undefined;
1943
- }) | undefined;
1944
- body?: (Partial<Partial<{}> & {
1945
- name?: string;
1946
- image?: string;
1947
- }> & Record<string, any>) | undefined;
1948
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1949
- params?: Record<string, any> | undefined;
1950
- duplex?: "full" | "half" | undefined;
1951
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1952
- retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
1953
- retryAttempt?: number | undefined;
1954
- output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1955
- errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
1956
- disableValidation?: boolean | undefined;
1957
- }>(data_0?: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
1958
- image?: string | null;
1959
- name?: string;
1960
- fetchOptions?: FetchOptions | undefined;
1961
- } & Partial<{} & {}>> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
1962
- status: boolean;
1963
- }, {
1964
- code?: string;
1965
- message?: string;
1966
- }, FetchOptions["throw"] extends true ? true : false>>;
2043
+ admin: {
2044
+ banUser: <FetchOptions extends {
2045
+ method?: string | undefined;
2046
+ mode?: RequestMode | undefined;
2047
+ headers?: (HeadersInit & (HeadersInit | {
2048
+ accept: "application/json" | "text/plain" | "application/octet-stream";
2049
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2050
+ authorization: "Bearer" | "Basic";
2051
+ })) | undefined;
2052
+ cache?: RequestCache | undefined;
2053
+ credentials?: RequestCredentials | undefined;
2054
+ integrity?: string | undefined;
2055
+ keepalive?: boolean | undefined;
2056
+ priority?: RequestPriority | undefined;
2057
+ redirect?: RequestRedirect | undefined;
2058
+ referrer?: string | undefined;
2059
+ referrerPolicy?: ReferrerPolicy | undefined;
2060
+ signal?: (AbortSignal | null) | undefined;
2061
+ window?: null | undefined;
2062
+ 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;
2063
+ 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;
2064
+ onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
2065
+ onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
2066
+ onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
2067
+ hookOptions?: {
2068
+ cloneResponse?: boolean;
2069
+ } | undefined;
2070
+ timeout?: number | undefined;
2071
+ customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
2072
+ plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
2073
+ baseURL?: string | undefined;
2074
+ throw?: boolean | undefined;
2075
+ auth?: ({
2076
+ type: "Bearer";
2077
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2078
+ } | {
2079
+ type: "Basic";
2080
+ username: string | (() => string | undefined) | undefined;
2081
+ password: string | (() => string | undefined) | undefined;
2082
+ } | {
2083
+ type: "Custom";
2084
+ prefix: string | (() => string | undefined) | undefined;
2085
+ value: string | (() => string | undefined) | undefined;
2086
+ }) | undefined;
2087
+ body?: (Partial<{
2088
+ userId: unknown;
2089
+ banReason?: string | undefined;
2090
+ banExpiresIn?: number | undefined;
2091
+ }> & Record<string, any>) | undefined;
2092
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2093
+ params?: Record<string, any> | undefined;
2094
+ duplex?: "full" | "half" | undefined;
2095
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2096
+ retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
2097
+ retryAttempt?: number | undefined;
2098
+ output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2099
+ errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
2100
+ disableValidation?: boolean | undefined;
2101
+ }>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
2102
+ userId: unknown;
2103
+ banReason?: string | undefined;
2104
+ banExpiresIn?: number | undefined;
2105
+ } & {
2106
+ fetchOptions?: FetchOptions | undefined;
2107
+ }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
2108
+ user: any;
2109
+ }, {
2110
+ code?: string;
2111
+ message?: string;
2112
+ }, FetchOptions["throw"] extends true ? true : false>>;
2113
+ };
1967
2114
  } & {
1968
- deleteUser: <FetchOptions extends {
1969
- method?: string | undefined;
1970
- mode?: RequestMode | undefined;
1971
- headers?: (HeadersInit & (HeadersInit | {
1972
- accept: "application/json" | "text/plain" | "application/octet-stream";
1973
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1974
- authorization: "Bearer" | "Basic";
1975
- })) | undefined;
1976
- cache?: RequestCache | undefined;
1977
- credentials?: RequestCredentials | undefined;
1978
- integrity?: string | undefined;
1979
- keepalive?: boolean | undefined;
1980
- priority?: RequestPriority | undefined;
1981
- redirect?: RequestRedirect | undefined;
1982
- referrer?: string | undefined;
1983
- referrerPolicy?: ReferrerPolicy | undefined;
1984
- signal?: (AbortSignal | null) | undefined;
1985
- window?: null | undefined;
1986
- 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;
1987
- 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;
1988
- onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
1989
- onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
1990
- onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
1991
- hookOptions?: {
1992
- cloneResponse?: boolean;
1993
- } | undefined;
1994
- timeout?: number | undefined;
1995
- customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
1996
- plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
1997
- baseURL?: string | undefined;
1998
- throw?: boolean | undefined;
1999
- auth?: ({
2000
- type: "Bearer";
2001
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2002
- } | {
2003
- type: "Basic";
2004
- username: string | (() => string | undefined) | undefined;
2005
- password: string | (() => string | undefined) | undefined;
2006
- } | {
2007
- type: "Custom";
2008
- prefix: string | (() => string | undefined) | undefined;
2009
- value: string | (() => string | undefined) | undefined;
2010
- }) | undefined;
2011
- body?: (Partial<{
2012
- callbackURL?: string | undefined;
2013
- password?: string | undefined;
2014
- token?: string | undefined;
2015
- }> & Record<string, any>) | undefined;
2016
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2017
- params?: Record<string, any> | undefined;
2018
- duplex?: "full" | "half" | undefined;
2019
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2020
- retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
2021
- retryAttempt?: number | undefined;
2022
- output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2023
- errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
2024
- disableValidation?: boolean | undefined;
2025
- }>(data_0?: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
2026
- callbackURL?: string | undefined;
2027
- password?: string | undefined;
2028
- token?: string | undefined;
2029
- } & {
2030
- fetchOptions?: FetchOptions | undefined;
2031
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
2032
- success: boolean;
2033
- message: string;
2034
- }, {
2035
- code?: string;
2036
- message?: string;
2037
- }, FetchOptions["throw"] extends true ? true : false>>;
2115
+ admin: {
2116
+ impersonateUser: <FetchOptions extends {
2117
+ method?: string | undefined;
2118
+ mode?: RequestMode | undefined;
2119
+ headers?: (HeadersInit & (HeadersInit | {
2120
+ accept: "application/json" | "text/plain" | "application/octet-stream";
2121
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2122
+ authorization: "Bearer" | "Basic";
2123
+ })) | undefined;
2124
+ cache?: RequestCache | undefined;
2125
+ credentials?: RequestCredentials | undefined;
2126
+ integrity?: string | undefined;
2127
+ keepalive?: boolean | undefined;
2128
+ priority?: RequestPriority | undefined;
2129
+ redirect?: RequestRedirect | undefined;
2130
+ referrer?: string | undefined;
2131
+ referrerPolicy?: ReferrerPolicy | undefined;
2132
+ signal?: (AbortSignal | null) | undefined;
2133
+ window?: null | undefined;
2134
+ 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;
2135
+ 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;
2136
+ onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
2137
+ onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
2138
+ onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
2139
+ hookOptions?: {
2140
+ cloneResponse?: boolean;
2141
+ } | undefined;
2142
+ timeout?: number | undefined;
2143
+ customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
2144
+ plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
2145
+ baseURL?: string | undefined;
2146
+ throw?: boolean | undefined;
2147
+ auth?: ({
2148
+ type: "Bearer";
2149
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2150
+ } | {
2151
+ type: "Basic";
2152
+ username: string | (() => string | undefined) | undefined;
2153
+ password: string | (() => string | undefined) | undefined;
2154
+ } | {
2155
+ type: "Custom";
2156
+ prefix: string | (() => string | undefined) | undefined;
2157
+ value: string | (() => string | undefined) | undefined;
2158
+ }) | undefined;
2159
+ body?: (Partial<{
2160
+ userId: unknown;
2161
+ }> & Record<string, any>) | undefined;
2162
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2163
+ params?: Record<string, any> | undefined;
2164
+ duplex?: "full" | "half" | undefined;
2165
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2166
+ retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
2167
+ retryAttempt?: number | undefined;
2168
+ output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2169
+ errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
2170
+ disableValidation?: boolean | undefined;
2171
+ }>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
2172
+ userId: unknown;
2173
+ } & {
2174
+ fetchOptions?: FetchOptions | undefined;
2175
+ }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
2176
+ session: {
2177
+ id: string;
2178
+ createdAt: Date;
2179
+ updatedAt: Date;
2180
+ userId: string;
2181
+ expiresAt: Date;
2182
+ token: string;
2183
+ ipAddress?: string | null | undefined;
2184
+ userAgent?: string | null | undefined;
2185
+ };
2186
+ user: {
2187
+ id: string;
2188
+ createdAt: Date;
2189
+ updatedAt: Date;
2190
+ email: string;
2191
+ emailVerified: boolean;
2192
+ name: string;
2193
+ image?: string | null | undefined;
2194
+ };
2195
+ }, {
2196
+ code?: string;
2197
+ message?: string;
2198
+ }, FetchOptions["throw"] extends true ? true : false>>;
2199
+ };
2038
2200
  } & {
2039
- resetPassword: {
2040
- ":token": <FetchOptions extends {
2201
+ admin: {
2202
+ stopImpersonating: <FetchOptions extends {
2041
2203
  method?: string | undefined;
2042
2204
  mode?: RequestMode | undefined;
2043
2205
  headers?: (HeadersInit & (HeadersInit | {
@@ -2081,12 +2243,76 @@ export declare const authClient: {
2081
2243
  value: string | (() => string | undefined) | undefined;
2082
2244
  }) | undefined;
2083
2245
  body?: undefined;
2084
- query?: (Partial<{
2085
- callbackURL: string;
2086
- }> & Record<string, any>) | undefined;
2087
- params?: {
2088
- token: string;
2246
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2247
+ params?: Record<string, any> | undefined;
2248
+ duplex?: "full" | "half" | undefined;
2249
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2250
+ retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
2251
+ retryAttempt?: number | undefined;
2252
+ output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2253
+ errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
2254
+ disableValidation?: boolean | undefined;
2255
+ }>(data_0?: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
2256
+ query?: Record<string, any> | undefined;
2257
+ fetchOptions?: FetchOptions | undefined;
2258
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
2259
+ session: import("better-auth", { with: { "resolution-mode": "require" } }).Session & Record<string, any>;
2260
+ user: packages_core_dist_db.User & Record<string, any>;
2261
+ }, {
2262
+ code?: string;
2263
+ message?: string;
2264
+ }, FetchOptions["throw"] extends true ? true : false>>;
2265
+ };
2266
+ } & {
2267
+ admin: {
2268
+ revokeUserSession: <FetchOptions extends {
2269
+ method?: string | undefined;
2270
+ mode?: RequestMode | undefined;
2271
+ headers?: (HeadersInit & (HeadersInit | {
2272
+ accept: "application/json" | "text/plain" | "application/octet-stream";
2273
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2274
+ authorization: "Bearer" | "Basic";
2275
+ })) | undefined;
2276
+ cache?: RequestCache | undefined;
2277
+ credentials?: RequestCredentials | undefined;
2278
+ integrity?: string | undefined;
2279
+ keepalive?: boolean | undefined;
2280
+ priority?: RequestPriority | undefined;
2281
+ redirect?: RequestRedirect | undefined;
2282
+ referrer?: string | undefined;
2283
+ referrerPolicy?: ReferrerPolicy | undefined;
2284
+ signal?: (AbortSignal | null) | undefined;
2285
+ window?: null | undefined;
2286
+ 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;
2287
+ 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;
2288
+ onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
2289
+ onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
2290
+ onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
2291
+ hookOptions?: {
2292
+ cloneResponse?: boolean;
2089
2293
  } | undefined;
2294
+ timeout?: number | undefined;
2295
+ customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
2296
+ plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
2297
+ baseURL?: string | undefined;
2298
+ throw?: boolean | undefined;
2299
+ auth?: ({
2300
+ type: "Bearer";
2301
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2302
+ } | {
2303
+ type: "Basic";
2304
+ username: string | (() => string | undefined) | undefined;
2305
+ password: string | (() => string | undefined) | undefined;
2306
+ } | {
2307
+ type: "Custom";
2308
+ prefix: string | (() => string | undefined) | undefined;
2309
+ value: string | (() => string | undefined) | undefined;
2310
+ }) | undefined;
2311
+ body?: (Partial<{
2312
+ sessionToken: string;
2313
+ }> & Record<string, any>) | undefined;
2314
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2315
+ params?: Record<string, any> | undefined;
2090
2316
  duplex?: "full" | "half" | undefined;
2091
2317
  jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2092
2318
  retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
@@ -2095,87 +2321,87 @@ export declare const authClient: {
2095
2321
  errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
2096
2322
  disableValidation?: boolean | undefined;
2097
2323
  }>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
2098
- query: {
2099
- callbackURL: string;
2100
- };
2324
+ sessionToken: string;
2325
+ } & {
2101
2326
  fetchOptions?: FetchOptions | undefined;
2102
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<never, {
2327
+ }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
2328
+ success: boolean;
2329
+ }, {
2103
2330
  code?: string;
2104
2331
  message?: string;
2105
2332
  }, FetchOptions["throw"] extends true ? true : false>>;
2106
2333
  };
2107
2334
  } & {
2108
- requestPasswordReset: <FetchOptions extends {
2109
- method?: string | undefined;
2110
- mode?: RequestMode | undefined;
2111
- headers?: (HeadersInit & (HeadersInit | {
2112
- accept: "application/json" | "text/plain" | "application/octet-stream";
2113
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2114
- authorization: "Bearer" | "Basic";
2115
- })) | undefined;
2116
- cache?: RequestCache | undefined;
2117
- credentials?: RequestCredentials | undefined;
2118
- integrity?: string | undefined;
2119
- keepalive?: boolean | undefined;
2120
- priority?: RequestPriority | undefined;
2121
- redirect?: RequestRedirect | undefined;
2122
- referrer?: string | undefined;
2123
- referrerPolicy?: ReferrerPolicy | undefined;
2124
- signal?: (AbortSignal | null) | undefined;
2125
- window?: null | undefined;
2126
- 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;
2127
- 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;
2128
- onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
2129
- onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
2130
- onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
2131
- hookOptions?: {
2132
- cloneResponse?: boolean;
2133
- } | undefined;
2134
- timeout?: number | undefined;
2135
- customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
2136
- plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
2137
- baseURL?: string | undefined;
2138
- throw?: boolean | undefined;
2139
- auth?: ({
2140
- type: "Bearer";
2141
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2142
- } | {
2143
- type: "Basic";
2144
- username: string | (() => string | undefined) | undefined;
2145
- password: string | (() => string | undefined) | undefined;
2146
- } | {
2147
- type: "Custom";
2148
- prefix: string | (() => string | undefined) | undefined;
2149
- value: string | (() => string | undefined) | undefined;
2150
- }) | undefined;
2151
- body?: (Partial<{
2152
- email: string;
2153
- redirectTo?: string | undefined;
2154
- }> & Record<string, any>) | undefined;
2155
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2156
- params?: Record<string, any> | undefined;
2157
- duplex?: "full" | "half" | undefined;
2158
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2159
- retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
2160
- retryAttempt?: number | undefined;
2161
- output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2162
- errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
2163
- disableValidation?: boolean | undefined;
2164
- }>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
2165
- email: string;
2166
- redirectTo?: string | undefined;
2167
- } & {
2168
- fetchOptions?: FetchOptions | undefined;
2169
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
2170
- status: boolean;
2171
- message: string;
2172
- }, {
2173
- code?: string;
2174
- message?: string;
2175
- }, FetchOptions["throw"] extends true ? true : false>>;
2335
+ admin: {
2336
+ revokeUserSessions: <FetchOptions extends {
2337
+ method?: string | undefined;
2338
+ mode?: RequestMode | undefined;
2339
+ headers?: (HeadersInit & (HeadersInit | {
2340
+ accept: "application/json" | "text/plain" | "application/octet-stream";
2341
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2342
+ authorization: "Bearer" | "Basic";
2343
+ })) | undefined;
2344
+ cache?: RequestCache | undefined;
2345
+ credentials?: RequestCredentials | undefined;
2346
+ integrity?: string | undefined;
2347
+ keepalive?: boolean | undefined;
2348
+ priority?: RequestPriority | undefined;
2349
+ redirect?: RequestRedirect | undefined;
2350
+ referrer?: string | undefined;
2351
+ referrerPolicy?: ReferrerPolicy | undefined;
2352
+ signal?: (AbortSignal | null) | undefined;
2353
+ window?: null | undefined;
2354
+ 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;
2355
+ 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;
2356
+ onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
2357
+ onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
2358
+ onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
2359
+ hookOptions?: {
2360
+ cloneResponse?: boolean;
2361
+ } | undefined;
2362
+ timeout?: number | undefined;
2363
+ customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
2364
+ plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
2365
+ baseURL?: string | undefined;
2366
+ throw?: boolean | undefined;
2367
+ auth?: ({
2368
+ type: "Bearer";
2369
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2370
+ } | {
2371
+ type: "Basic";
2372
+ username: string | (() => string | undefined) | undefined;
2373
+ password: string | (() => string | undefined) | undefined;
2374
+ } | {
2375
+ type: "Custom";
2376
+ prefix: string | (() => string | undefined) | undefined;
2377
+ value: string | (() => string | undefined) | undefined;
2378
+ }) | undefined;
2379
+ body?: (Partial<{
2380
+ userId: unknown;
2381
+ }> & Record<string, any>) | undefined;
2382
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2383
+ params?: Record<string, any> | undefined;
2384
+ duplex?: "full" | "half" | undefined;
2385
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2386
+ retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
2387
+ retryAttempt?: number | undefined;
2388
+ output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2389
+ errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
2390
+ disableValidation?: boolean | undefined;
2391
+ }>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
2392
+ userId: unknown;
2393
+ } & {
2394
+ fetchOptions?: FetchOptions | undefined;
2395
+ }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
2396
+ success: boolean;
2397
+ }, {
2398
+ code?: string;
2399
+ message?: string;
2400
+ }, FetchOptions["throw"] extends true ? true : false>>;
2401
+ };
2176
2402
  } & {
2177
- resetPassword: {
2178
- ":token": <FetchOptions extends {
2403
+ admin: {
2404
+ removeUser: <FetchOptions extends {
2179
2405
  method?: string | undefined;
2180
2406
  mode?: RequestMode | undefined;
2181
2407
  headers?: (HeadersInit & (HeadersInit | {
@@ -2218,13 +2444,11 @@ export declare const authClient: {
2218
2444
  prefix: string | (() => string | undefined) | undefined;
2219
2445
  value: string | (() => string | undefined) | undefined;
2220
2446
  }) | undefined;
2221
- body?: undefined;
2222
- query?: (Partial<{
2223
- callbackURL: string;
2447
+ body?: (Partial<{
2448
+ userId: unknown;
2224
2449
  }> & Record<string, any>) | undefined;
2225
- params?: {
2226
- token: string;
2227
- } | undefined;
2450
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2451
+ params?: Record<string, any> | undefined;
2228
2452
  duplex?: "full" | "half" | undefined;
2229
2453
  jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2230
2454
  retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
@@ -2233,439 +2457,330 @@ export declare const authClient: {
2233
2457
  errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
2234
2458
  disableValidation?: boolean | undefined;
2235
2459
  }>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
2236
- query: {
2237
- callbackURL: string;
2238
- };
2239
- fetchOptions?: FetchOptions | undefined;
2240
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<never, {
2241
- code?: string;
2242
- message?: string;
2243
- }, FetchOptions["throw"] extends true ? true : false>>;
2244
- };
2245
- } & {
2246
- listSessions: <FetchOptions extends {
2247
- method?: string | undefined;
2248
- mode?: RequestMode | undefined;
2249
- headers?: (HeadersInit & (HeadersInit | {
2250
- accept: "application/json" | "text/plain" | "application/octet-stream";
2251
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2252
- authorization: "Bearer" | "Basic";
2253
- })) | undefined;
2254
- cache?: RequestCache | undefined;
2255
- credentials?: RequestCredentials | undefined;
2256
- integrity?: string | undefined;
2257
- keepalive?: boolean | undefined;
2258
- priority?: RequestPriority | undefined;
2259
- redirect?: RequestRedirect | undefined;
2260
- referrer?: string | undefined;
2261
- referrerPolicy?: ReferrerPolicy | undefined;
2262
- signal?: (AbortSignal | null) | undefined;
2263
- window?: null | undefined;
2264
- 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;
2265
- 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;
2266
- onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
2267
- onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
2268
- onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
2269
- hookOptions?: {
2270
- cloneResponse?: boolean;
2271
- } | undefined;
2272
- timeout?: number | undefined;
2273
- customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
2274
- plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
2275
- baseURL?: string | undefined;
2276
- throw?: boolean | undefined;
2277
- auth?: ({
2278
- type: "Bearer";
2279
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2280
- } | {
2281
- type: "Basic";
2282
- username: string | (() => string | undefined) | undefined;
2283
- password: string | (() => string | undefined) | undefined;
2284
- } | {
2285
- type: "Custom";
2286
- prefix: string | (() => string | undefined) | undefined;
2287
- value: string | (() => string | undefined) | undefined;
2288
- }) | undefined;
2289
- body?: undefined;
2290
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2291
- params?: Record<string, any> | undefined;
2292
- duplex?: "full" | "half" | undefined;
2293
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2294
- retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
2295
- retryAttempt?: number | undefined;
2296
- output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2297
- errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
2298
- disableValidation?: boolean | undefined;
2299
- }>(data_0?: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
2300
- query?: Record<string, any> | undefined;
2301
- fetchOptions?: FetchOptions | undefined;
2302
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
2303
- id: string;
2304
- createdAt: Date;
2305
- updatedAt: Date;
2306
- userId: string;
2307
- expiresAt: Date;
2308
- token: string;
2309
- ipAddress?: string | null | undefined | undefined;
2310
- userAgent?: string | null | undefined | undefined;
2311
- }>[], {
2312
- code?: string;
2313
- message?: string;
2314
- }, FetchOptions["throw"] extends true ? true : false>>;
2315
- } & {
2316
- revokeSession: <FetchOptions extends {
2317
- method?: string | undefined;
2318
- mode?: RequestMode | undefined;
2319
- headers?: (HeadersInit & (HeadersInit | {
2320
- accept: "application/json" | "text/plain" | "application/octet-stream";
2321
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2322
- authorization: "Bearer" | "Basic";
2323
- })) | undefined;
2324
- cache?: RequestCache | undefined;
2325
- credentials?: RequestCredentials | undefined;
2326
- integrity?: string | undefined;
2327
- keepalive?: boolean | undefined;
2328
- priority?: RequestPriority | undefined;
2329
- redirect?: RequestRedirect | undefined;
2330
- referrer?: string | undefined;
2331
- referrerPolicy?: ReferrerPolicy | undefined;
2332
- signal?: (AbortSignal | null) | undefined;
2333
- window?: null | undefined;
2334
- 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;
2335
- 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;
2336
- onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
2337
- onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
2338
- onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
2339
- hookOptions?: {
2340
- cloneResponse?: boolean;
2341
- } | undefined;
2342
- timeout?: number | undefined;
2343
- customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
2344
- plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
2345
- baseURL?: string | undefined;
2346
- throw?: boolean | undefined;
2347
- auth?: ({
2348
- type: "Bearer";
2349
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2350
- } | {
2351
- type: "Basic";
2352
- username: string | (() => string | undefined) | undefined;
2353
- password: string | (() => string | undefined) | undefined;
2354
- } | {
2355
- type: "Custom";
2356
- prefix: string | (() => string | undefined) | undefined;
2357
- value: string | (() => string | undefined) | undefined;
2358
- }) | undefined;
2359
- body?: (Partial<{
2360
- token: string;
2361
- }> & Record<string, any>) | undefined;
2362
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2363
- params?: Record<string, any> | undefined;
2364
- duplex?: "full" | "half" | undefined;
2365
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2366
- retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
2367
- retryAttempt?: number | undefined;
2368
- output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2369
- errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
2370
- disableValidation?: boolean | undefined;
2371
- }>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
2372
- token: string;
2373
- } & {
2374
- fetchOptions?: FetchOptions | undefined;
2375
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
2376
- status: boolean;
2377
- }, {
2378
- code?: string;
2379
- message?: string;
2380
- }, FetchOptions["throw"] extends true ? true : false>>;
2381
- } & {
2382
- revokeSessions: <FetchOptions extends {
2383
- method?: string | undefined;
2384
- mode?: RequestMode | undefined;
2385
- headers?: (HeadersInit & (HeadersInit | {
2386
- accept: "application/json" | "text/plain" | "application/octet-stream";
2387
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2388
- authorization: "Bearer" | "Basic";
2389
- })) | undefined;
2390
- cache?: RequestCache | undefined;
2391
- credentials?: RequestCredentials | undefined;
2392
- integrity?: string | undefined;
2393
- keepalive?: boolean | undefined;
2394
- priority?: RequestPriority | undefined;
2395
- redirect?: RequestRedirect | undefined;
2396
- referrer?: string | undefined;
2397
- referrerPolicy?: ReferrerPolicy | undefined;
2398
- signal?: (AbortSignal | null) | undefined;
2399
- window?: null | undefined;
2400
- 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;
2401
- 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;
2402
- onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
2403
- onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
2404
- onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
2405
- hookOptions?: {
2406
- cloneResponse?: boolean;
2407
- } | undefined;
2408
- timeout?: number | undefined;
2409
- customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
2410
- plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
2411
- baseURL?: string | undefined;
2412
- throw?: boolean | undefined;
2413
- auth?: ({
2414
- type: "Bearer";
2415
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2416
- } | {
2417
- type: "Basic";
2418
- username: string | (() => string | undefined) | undefined;
2419
- password: string | (() => string | undefined) | undefined;
2420
- } | {
2421
- type: "Custom";
2422
- prefix: string | (() => string | undefined) | undefined;
2423
- value: string | (() => string | undefined) | undefined;
2424
- }) | undefined;
2425
- body?: undefined;
2426
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2427
- params?: Record<string, any> | undefined;
2428
- duplex?: "full" | "half" | undefined;
2429
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2430
- retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
2431
- retryAttempt?: number | undefined;
2432
- output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2433
- errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
2434
- disableValidation?: boolean | undefined;
2435
- }>(data_0?: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
2436
- query?: Record<string, any> | undefined;
2437
- fetchOptions?: FetchOptions | undefined;
2438
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
2439
- status: boolean;
2440
- }, {
2441
- code?: string;
2442
- message?: string;
2443
- }, FetchOptions["throw"] extends true ? true : false>>;
2460
+ userId: unknown;
2461
+ } & {
2462
+ fetchOptions?: FetchOptions | undefined;
2463
+ }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
2464
+ success: boolean;
2465
+ }, {
2466
+ code?: string;
2467
+ message?: string;
2468
+ }, FetchOptions["throw"] extends true ? true : false>>;
2469
+ };
2444
2470
  } & {
2445
- revokeOtherSessions: <FetchOptions extends {
2446
- method?: string | undefined;
2447
- mode?: RequestMode | undefined;
2448
- headers?: (HeadersInit & (HeadersInit | {
2449
- accept: "application/json" | "text/plain" | "application/octet-stream";
2450
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2451
- authorization: "Bearer" | "Basic";
2452
- })) | undefined;
2453
- cache?: RequestCache | undefined;
2454
- credentials?: RequestCredentials | undefined;
2455
- integrity?: string | undefined;
2456
- keepalive?: boolean | undefined;
2457
- priority?: RequestPriority | undefined;
2458
- redirect?: RequestRedirect | undefined;
2459
- referrer?: string | undefined;
2460
- referrerPolicy?: ReferrerPolicy | undefined;
2461
- signal?: (AbortSignal | null) | undefined;
2462
- window?: null | undefined;
2463
- 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;
2464
- 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;
2465
- onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
2466
- onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
2467
- onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
2468
- hookOptions?: {
2469
- cloneResponse?: boolean;
2470
- } | undefined;
2471
- timeout?: number | undefined;
2472
- customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
2473
- plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
2474
- baseURL?: string | undefined;
2475
- throw?: boolean | undefined;
2476
- auth?: ({
2477
- type: "Bearer";
2478
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2479
- } | {
2480
- type: "Basic";
2481
- username: string | (() => string | undefined) | undefined;
2482
- password: string | (() => string | undefined) | undefined;
2483
- } | {
2484
- type: "Custom";
2485
- prefix: string | (() => string | undefined) | undefined;
2486
- value: string | (() => string | undefined) | undefined;
2487
- }) | undefined;
2488
- body?: undefined;
2489
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2490
- params?: Record<string, any> | undefined;
2491
- duplex?: "full" | "half" | undefined;
2492
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2493
- retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
2494
- retryAttempt?: number | undefined;
2495
- output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2496
- errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
2497
- disableValidation?: boolean | undefined;
2498
- }>(data_0?: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
2499
- query?: Record<string, any> | undefined;
2500
- fetchOptions?: FetchOptions | undefined;
2501
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
2502
- status: boolean;
2503
- }, {
2504
- code?: string;
2505
- message?: string;
2506
- }, FetchOptions["throw"] extends true ? true : false>>;
2471
+ admin: {
2472
+ setUserPassword: <FetchOptions extends {
2473
+ method?: string | undefined;
2474
+ mode?: RequestMode | undefined;
2475
+ headers?: (HeadersInit & (HeadersInit | {
2476
+ accept: "application/json" | "text/plain" | "application/octet-stream";
2477
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2478
+ authorization: "Bearer" | "Basic";
2479
+ })) | undefined;
2480
+ cache?: RequestCache | undefined;
2481
+ credentials?: RequestCredentials | undefined;
2482
+ integrity?: string | undefined;
2483
+ keepalive?: boolean | undefined;
2484
+ priority?: RequestPriority | undefined;
2485
+ redirect?: RequestRedirect | undefined;
2486
+ referrer?: string | undefined;
2487
+ referrerPolicy?: ReferrerPolicy | undefined;
2488
+ signal?: (AbortSignal | null) | undefined;
2489
+ window?: null | undefined;
2490
+ 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;
2491
+ 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;
2492
+ onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
2493
+ onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
2494
+ onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
2495
+ hookOptions?: {
2496
+ cloneResponse?: boolean;
2497
+ } | undefined;
2498
+ timeout?: number | undefined;
2499
+ customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
2500
+ plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
2501
+ baseURL?: string | undefined;
2502
+ throw?: boolean | undefined;
2503
+ auth?: ({
2504
+ type: "Bearer";
2505
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2506
+ } | {
2507
+ type: "Basic";
2508
+ username: string | (() => string | undefined) | undefined;
2509
+ password: string | (() => string | undefined) | undefined;
2510
+ } | {
2511
+ type: "Custom";
2512
+ prefix: string | (() => string | undefined) | undefined;
2513
+ value: string | (() => string | undefined) | undefined;
2514
+ }) | undefined;
2515
+ body?: (Partial<{
2516
+ newPassword: string;
2517
+ userId: unknown;
2518
+ }> & Record<string, any>) | undefined;
2519
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2520
+ params?: Record<string, any> | undefined;
2521
+ duplex?: "full" | "half" | undefined;
2522
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2523
+ retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
2524
+ retryAttempt?: number | undefined;
2525
+ output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2526
+ errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
2527
+ disableValidation?: boolean | undefined;
2528
+ }>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
2529
+ newPassword: string;
2530
+ userId: unknown;
2531
+ } & {
2532
+ fetchOptions?: FetchOptions | undefined;
2533
+ }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
2534
+ status: boolean;
2535
+ }, {
2536
+ code?: string;
2537
+ message?: string;
2538
+ }, FetchOptions["throw"] extends true ? true : false>>;
2539
+ };
2507
2540
  } & {
2508
- linkSocial: <FetchOptions extends {
2509
- method?: string | undefined;
2510
- mode?: RequestMode | undefined;
2511
- headers?: (HeadersInit & (HeadersInit | {
2512
- accept: "application/json" | "text/plain" | "application/octet-stream";
2513
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2514
- authorization: "Bearer" | "Basic";
2515
- })) | undefined;
2516
- cache?: RequestCache | undefined;
2517
- credentials?: RequestCredentials | undefined;
2518
- integrity?: string | undefined;
2519
- keepalive?: boolean | undefined;
2520
- priority?: RequestPriority | undefined;
2521
- redirect?: RequestRedirect | undefined;
2522
- referrer?: string | undefined;
2523
- referrerPolicy?: ReferrerPolicy | undefined;
2524
- signal?: (AbortSignal | null) | undefined;
2525
- window?: null | undefined;
2526
- 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;
2527
- 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;
2528
- onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
2529
- onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
2530
- onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
2531
- hookOptions?: {
2532
- cloneResponse?: boolean;
2533
- } | undefined;
2534
- timeout?: number | undefined;
2535
- customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
2536
- plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
2537
- baseURL?: string | undefined;
2538
- throw?: boolean | undefined;
2539
- auth?: ({
2540
- type: "Bearer";
2541
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2542
- } | {
2543
- type: "Basic";
2544
- username: string | (() => string | undefined) | undefined;
2545
- password: string | (() => string | undefined) | undefined;
2546
- } | {
2547
- type: "Custom";
2548
- prefix: string | (() => string | undefined) | undefined;
2549
- value: string | (() => string | undefined) | undefined;
2550
- }) | undefined;
2551
- body?: (Partial<{
2552
- provider: unknown;
2553
- callbackURL?: string | undefined;
2554
- idToken?: {
2555
- token: string;
2556
- nonce?: string | undefined;
2557
- accessToken?: string | undefined;
2558
- refreshToken?: string | undefined;
2559
- scopes?: string[] | undefined;
2541
+ admin: {
2542
+ setRole: <FetchOptions extends {
2543
+ method?: string | undefined;
2544
+ mode?: RequestMode | undefined;
2545
+ headers?: (HeadersInit & (HeadersInit | {
2546
+ accept: "application/json" | "text/plain" | "application/octet-stream";
2547
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2548
+ authorization: "Bearer" | "Basic";
2549
+ })) | undefined;
2550
+ cache?: RequestCache | undefined;
2551
+ credentials?: RequestCredentials | undefined;
2552
+ integrity?: string | undefined;
2553
+ keepalive?: boolean | undefined;
2554
+ priority?: RequestPriority | undefined;
2555
+ redirect?: RequestRedirect | undefined;
2556
+ referrer?: string | undefined;
2557
+ referrerPolicy?: ReferrerPolicy | undefined;
2558
+ signal?: (AbortSignal | null) | undefined;
2559
+ window?: null | undefined;
2560
+ 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;
2561
+ 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;
2562
+ onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
2563
+ onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
2564
+ onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
2565
+ hookOptions?: {
2566
+ cloneResponse?: boolean;
2567
+ } | undefined;
2568
+ timeout?: number | undefined;
2569
+ customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
2570
+ plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
2571
+ baseURL?: string | undefined;
2572
+ throw?: boolean | undefined;
2573
+ auth?: ({
2574
+ type: "Bearer";
2575
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2576
+ } | {
2577
+ type: "Basic";
2578
+ username: string | (() => string | undefined) | undefined;
2579
+ password: string | (() => string | undefined) | undefined;
2580
+ } | {
2581
+ type: "Custom";
2582
+ prefix: string | (() => string | undefined) | undefined;
2583
+ value: string | (() => string | undefined) | undefined;
2584
+ }) | undefined;
2585
+ body?: (Partial<{
2586
+ userId: string;
2587
+ role: "user" | "admin" | ("user" | "admin")[];
2588
+ }> & Record<string, any>) | undefined;
2589
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2590
+ params?: Record<string, any> | undefined;
2591
+ duplex?: "full" | "half" | undefined;
2592
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2593
+ retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
2594
+ retryAttempt?: number | undefined;
2595
+ output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2596
+ errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
2597
+ disableValidation?: boolean | undefined;
2598
+ }>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
2599
+ userId: string;
2600
+ role: "user" | "admin" | ("user" | "admin")[];
2601
+ } & {
2602
+ fetchOptions?: FetchOptions | undefined;
2603
+ }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
2604
+ user: import("better-auth/plugins", { with: { "resolution-mode": "require" } }).UserWithRole;
2605
+ }, {
2606
+ code?: string;
2607
+ message?: string;
2608
+ }, FetchOptions["throw"] extends true ? true : false>>;
2609
+ };
2610
+ } & {
2611
+ admin: {
2612
+ createUser: <FetchOptions extends {
2613
+ method?: string | undefined;
2614
+ mode?: RequestMode | undefined;
2615
+ headers?: (HeadersInit & (HeadersInit | {
2616
+ accept: "application/json" | "text/plain" | "application/octet-stream";
2617
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2618
+ authorization: "Bearer" | "Basic";
2619
+ })) | undefined;
2620
+ cache?: RequestCache | undefined;
2621
+ credentials?: RequestCredentials | undefined;
2622
+ integrity?: string | undefined;
2623
+ keepalive?: boolean | undefined;
2624
+ priority?: RequestPriority | undefined;
2625
+ redirect?: RequestRedirect | undefined;
2626
+ referrer?: string | undefined;
2627
+ referrerPolicy?: ReferrerPolicy | undefined;
2628
+ signal?: (AbortSignal | null) | undefined;
2629
+ window?: null | undefined;
2630
+ 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;
2631
+ 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;
2632
+ onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
2633
+ onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
2634
+ onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
2635
+ hookOptions?: {
2636
+ cloneResponse?: boolean;
2560
2637
  } | undefined;
2561
- requestSignUp?: boolean | undefined;
2562
- scopes?: string[] | undefined;
2563
- errorCallbackURL?: string | undefined;
2564
- disableRedirect?: boolean | undefined;
2565
- }> & Record<string, any>) | undefined;
2566
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2567
- params?: Record<string, any> | undefined;
2568
- duplex?: "full" | "half" | undefined;
2569
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2570
- retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
2571
- retryAttempt?: number | undefined;
2572
- output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2573
- errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
2574
- disableValidation?: boolean | undefined;
2575
- }>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
2576
- provider: unknown;
2577
- callbackURL?: string | undefined;
2578
- idToken?: {
2579
- token: string;
2580
- nonce?: string | undefined;
2581
- accessToken?: string | undefined;
2582
- refreshToken?: string | undefined;
2583
- scopes?: string[] | undefined;
2584
- } | undefined;
2585
- requestSignUp?: boolean | undefined;
2586
- scopes?: string[] | undefined;
2587
- errorCallbackURL?: string | undefined;
2588
- disableRedirect?: boolean | undefined;
2589
- } & {
2590
- fetchOptions?: FetchOptions | undefined;
2591
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
2592
- url: string;
2593
- redirect: boolean;
2594
- }, {
2595
- code?: string;
2596
- message?: string;
2597
- }, FetchOptions["throw"] extends true ? true : false>>;
2638
+ timeout?: number | undefined;
2639
+ customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
2640
+ plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
2641
+ baseURL?: string | undefined;
2642
+ throw?: boolean | undefined;
2643
+ auth?: ({
2644
+ type: "Bearer";
2645
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2646
+ } | {
2647
+ type: "Basic";
2648
+ username: string | (() => string | undefined) | undefined;
2649
+ password: string | (() => string | undefined) | undefined;
2650
+ } | {
2651
+ type: "Custom";
2652
+ prefix: string | (() => string | undefined) | undefined;
2653
+ value: string | (() => string | undefined) | undefined;
2654
+ }) | undefined;
2655
+ body?: (Partial<{
2656
+ email: string;
2657
+ password: string;
2658
+ name: string;
2659
+ role?: "user" | "admin" | ("user" | "admin")[] | undefined;
2660
+ data?: Record<string, any>;
2661
+ }> & Record<string, any>) | undefined;
2662
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2663
+ params?: Record<string, any> | undefined;
2664
+ duplex?: "full" | "half" | undefined;
2665
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2666
+ retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
2667
+ retryAttempt?: number | undefined;
2668
+ output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2669
+ errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
2670
+ disableValidation?: boolean | undefined;
2671
+ }>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
2672
+ email: string;
2673
+ password: string;
2674
+ name: string;
2675
+ role?: "user" | "admin" | ("user" | "admin")[] | undefined;
2676
+ data?: Record<string, any>;
2677
+ } & {
2678
+ fetchOptions?: FetchOptions | undefined;
2679
+ }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
2680
+ user: import("better-auth/plugins", { with: { "resolution-mode": "require" } }).UserWithRole;
2681
+ }, {
2682
+ code?: string;
2683
+ message?: string;
2684
+ }, FetchOptions["throw"] extends true ? true : false>>;
2685
+ };
2598
2686
  } & {
2599
- listAccounts: <FetchOptions extends {
2600
- method?: string | undefined;
2601
- mode?: RequestMode | undefined;
2602
- headers?: (HeadersInit & (HeadersInit | {
2603
- accept: "application/json" | "text/plain" | "application/octet-stream";
2604
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2605
- authorization: "Bearer" | "Basic";
2606
- })) | undefined;
2607
- cache?: RequestCache | undefined;
2608
- credentials?: RequestCredentials | undefined;
2609
- integrity?: string | undefined;
2610
- keepalive?: boolean | undefined;
2611
- priority?: RequestPriority | undefined;
2612
- redirect?: RequestRedirect | undefined;
2613
- referrer?: string | undefined;
2614
- referrerPolicy?: ReferrerPolicy | undefined;
2615
- signal?: (AbortSignal | null) | undefined;
2616
- window?: null | undefined;
2617
- 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;
2618
- 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;
2619
- onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
2620
- onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
2621
- onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
2622
- hookOptions?: {
2623
- cloneResponse?: boolean;
2624
- } | undefined;
2625
- timeout?: number | undefined;
2626
- customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
2627
- plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
2628
- baseURL?: string | undefined;
2629
- throw?: boolean | undefined;
2630
- auth?: ({
2631
- type: "Bearer";
2632
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2633
- } | {
2634
- type: "Basic";
2635
- username: string | (() => string | undefined) | undefined;
2636
- password: string | (() => string | undefined) | undefined;
2637
- } | {
2638
- type: "Custom";
2639
- prefix: string | (() => string | undefined) | undefined;
2640
- value: string | (() => string | undefined) | undefined;
2641
- }) | undefined;
2642
- body?: undefined;
2643
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2644
- params?: Record<string, any> | undefined;
2645
- duplex?: "full" | "half" | undefined;
2646
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2647
- retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
2648
- retryAttempt?: number | undefined;
2649
- output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2650
- errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
2651
- disableValidation?: boolean | undefined;
2652
- }>(data_0?: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
2653
- query?: Record<string, any> | undefined;
2654
- fetchOptions?: FetchOptions | undefined;
2655
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
2656
- id: string;
2657
- providerId: string;
2658
- createdAt: Date;
2659
- updatedAt: Date;
2660
- accountId: string;
2661
- scopes: string[];
2662
- }[], {
2663
- code?: string;
2664
- message?: string;
2665
- }, FetchOptions["throw"] extends true ? true : false>>;
2687
+ admin: {
2688
+ hasPermission: <FetchOptions extends {
2689
+ method?: string | undefined;
2690
+ mode?: RequestMode | undefined;
2691
+ headers?: (HeadersInit & (HeadersInit | {
2692
+ accept: "application/json" | "text/plain" | "application/octet-stream";
2693
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2694
+ authorization: "Bearer" | "Basic";
2695
+ })) | undefined;
2696
+ cache?: RequestCache | undefined;
2697
+ credentials?: RequestCredentials | undefined;
2698
+ integrity?: string | undefined;
2699
+ keepalive?: boolean | undefined;
2700
+ priority?: RequestPriority | undefined;
2701
+ redirect?: RequestRedirect | undefined;
2702
+ referrer?: string | undefined;
2703
+ referrerPolicy?: ReferrerPolicy | undefined;
2704
+ signal?: (AbortSignal | null) | undefined;
2705
+ window?: null | undefined;
2706
+ 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;
2707
+ 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;
2708
+ onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
2709
+ onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
2710
+ onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
2711
+ hookOptions?: {
2712
+ cloneResponse?: boolean;
2713
+ } | undefined;
2714
+ timeout?: number | undefined;
2715
+ customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
2716
+ plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
2717
+ baseURL?: string | undefined;
2718
+ throw?: boolean | undefined;
2719
+ auth?: ({
2720
+ type: "Bearer";
2721
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2722
+ } | {
2723
+ type: "Basic";
2724
+ username: string | (() => string | undefined) | undefined;
2725
+ password: string | (() => string | undefined) | undefined;
2726
+ } | {
2727
+ type: "Custom";
2728
+ prefix: string | (() => string | undefined) | undefined;
2729
+ value: string | (() => string | undefined) | undefined;
2730
+ }) | undefined;
2731
+ body?: (Partial<({
2732
+ permission: {
2733
+ readonly user?: ("list" | "create" | "set-role" | "ban" | "impersonate" | "delete" | "set-password" | "get" | "update")[] | undefined;
2734
+ readonly session?: ("list" | "delete" | "revoke")[] | undefined;
2735
+ };
2736
+ permissions?: never;
2737
+ } | {
2738
+ permissions: {
2739
+ readonly user?: ("list" | "create" | "set-role" | "ban" | "impersonate" | "delete" | "set-password" | "get" | "update")[] | undefined;
2740
+ readonly session?: ("list" | "delete" | "revoke")[] | undefined;
2741
+ };
2742
+ permission?: never;
2743
+ }) & {
2744
+ userId?: string;
2745
+ role?: "user" | "admin" | undefined;
2746
+ }> & Record<string, any>) | undefined;
2747
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2748
+ params?: Record<string, any> | undefined;
2749
+ duplex?: "full" | "half" | undefined;
2750
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2751
+ retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
2752
+ retryAttempt?: number | undefined;
2753
+ output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2754
+ errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
2755
+ disableValidation?: boolean | undefined;
2756
+ }>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<(({
2757
+ permission: {
2758
+ readonly user?: ("list" | "create" | "set-role" | "ban" | "impersonate" | "delete" | "set-password" | "get" | "update")[] | undefined;
2759
+ readonly session?: ("list" | "delete" | "revoke")[] | undefined;
2760
+ };
2761
+ permissions?: never;
2762
+ } | {
2763
+ permissions: {
2764
+ readonly user?: ("list" | "create" | "set-role" | "ban" | "impersonate" | "delete" | "set-password" | "get" | "update")[] | undefined;
2765
+ readonly session?: ("list" | "delete" | "revoke")[] | undefined;
2766
+ };
2767
+ permission?: never;
2768
+ }) & {
2769
+ userId?: string;
2770
+ role?: "user" | "admin" | undefined;
2771
+ }) & {
2772
+ fetchOptions?: FetchOptions | undefined;
2773
+ }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
2774
+ error: null;
2775
+ success: boolean;
2776
+ }, {
2777
+ code?: string;
2778
+ message?: string;
2779
+ }, FetchOptions["throw"] extends true ? true : false>>;
2780
+ };
2666
2781
  } & {
2667
- deleteUser: {
2668
- callback: <FetchOptions extends {
2782
+ signUp: {
2783
+ email: <FetchOptions extends {
2669
2784
  method?: string | undefined;
2670
2785
  mode?: RequestMode | undefined;
2671
2786
  headers?: (HeadersInit & (HeadersInit | {
@@ -2708,11 +2823,15 @@ export declare const authClient: {
2708
2823
  prefix: string | (() => string | undefined) | undefined;
2709
2824
  value: string | (() => string | undefined) | undefined;
2710
2825
  }) | undefined;
2711
- body?: undefined;
2712
- query?: (Partial<{
2713
- token: string;
2714
- callbackURL?: string | undefined;
2826
+ body?: (Partial<{
2827
+ name: string;
2828
+ email: string;
2829
+ password: string;
2830
+ image?: string;
2831
+ callbackURL?: string;
2832
+ rememberMe?: boolean;
2715
2833
  }> & Record<string, any>) | undefined;
2834
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2716
2835
  params?: Record<string, any> | undefined;
2717
2836
  duplex?: "full" | "half" | undefined;
2718
2837
  jsonParser?: ((text: string) => Promise<any> | any) | undefined;
@@ -2722,21 +2841,41 @@ export declare const authClient: {
2722
2841
  errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
2723
2842
  disableValidation?: boolean | undefined;
2724
2843
  }>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
2725
- query: {
2726
- token: string;
2727
- callbackURL?: string | undefined;
2728
- };
2844
+ email: string;
2845
+ name: string;
2846
+ password: string;
2847
+ image?: string;
2848
+ callbackURL?: string;
2729
2849
  fetchOptions?: FetchOptions | undefined;
2730
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
2731
- success: boolean;
2732
- message: string;
2733
- }, {
2850
+ } & {} & {}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<NonNullable<{
2851
+ token: null;
2852
+ user: {
2853
+ id: string;
2854
+ email: string;
2855
+ name: string;
2856
+ image: string | null | undefined;
2857
+ emailVerified: boolean;
2858
+ createdAt: Date;
2859
+ updatedAt: Date;
2860
+ };
2861
+ } | {
2862
+ token: string;
2863
+ user: {
2864
+ id: string;
2865
+ email: string;
2866
+ name: string;
2867
+ image: string | null | undefined;
2868
+ emailVerified: boolean;
2869
+ createdAt: Date;
2870
+ updatedAt: Date;
2871
+ };
2872
+ }>, {
2734
2873
  code?: string;
2735
2874
  message?: string;
2736
2875
  }, FetchOptions["throw"] extends true ? true : false>>;
2737
2876
  };
2738
2877
  } & {
2739
- unlinkAccount: <FetchOptions extends {
2878
+ updateUser: <FetchOptions extends {
2740
2879
  method?: string | undefined;
2741
2880
  mode?: RequestMode | undefined;
2742
2881
  headers?: (HeadersInit & (HeadersInit | {
@@ -2779,9 +2918,9 @@ export declare const authClient: {
2779
2918
  prefix: string | (() => string | undefined) | undefined;
2780
2919
  value: string | (() => string | undefined) | undefined;
2781
2920
  }) | undefined;
2782
- body?: (Partial<{
2783
- providerId: string;
2784
- accountId?: string | undefined;
2921
+ body?: (Partial<Partial<{}> & {
2922
+ name?: string;
2923
+ image?: string;
2785
2924
  }> & Record<string, any>) | undefined;
2786
2925
  query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2787
2926
  params?: Record<string, any> | undefined;
@@ -2792,160 +2931,18 @@ export declare const authClient: {
2792
2931
  output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2793
2932
  errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
2794
2933
  disableValidation?: boolean | undefined;
2795
- }>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
2796
- providerId: string;
2797
- accountId?: string | undefined;
2798
- } & {
2934
+ }>(data_0?: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
2935
+ image?: string | null;
2936
+ name?: string;
2799
2937
  fetchOptions?: FetchOptions | undefined;
2800
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
2938
+ } & Partial<{} & {}>> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
2801
2939
  status: boolean;
2802
2940
  }, {
2803
2941
  code?: string;
2804
2942
  message?: string;
2805
2943
  }, FetchOptions["throw"] extends true ? true : false>>;
2806
2944
  } & {
2807
- refreshToken: <FetchOptions extends {
2808
- method?: string | undefined;
2809
- mode?: RequestMode | undefined;
2810
- headers?: (HeadersInit & (HeadersInit | {
2811
- accept: "application/json" | "text/plain" | "application/octet-stream";
2812
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2813
- authorization: "Bearer" | "Basic";
2814
- })) | undefined;
2815
- cache?: RequestCache | undefined;
2816
- credentials?: RequestCredentials | undefined;
2817
- integrity?: string | undefined;
2818
- keepalive?: boolean | undefined;
2819
- priority?: RequestPriority | undefined;
2820
- redirect?: RequestRedirect | undefined;
2821
- referrer?: string | undefined;
2822
- referrerPolicy?: ReferrerPolicy | undefined;
2823
- signal?: (AbortSignal | null) | undefined;
2824
- window?: null | undefined;
2825
- 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;
2826
- 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;
2827
- onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
2828
- onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
2829
- onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
2830
- hookOptions?: {
2831
- cloneResponse?: boolean;
2832
- } | undefined;
2833
- timeout?: number | undefined;
2834
- customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
2835
- plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
2836
- baseURL?: string | undefined;
2837
- throw?: boolean | undefined;
2838
- auth?: ({
2839
- type: "Bearer";
2840
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2841
- } | {
2842
- type: "Basic";
2843
- username: string | (() => string | undefined) | undefined;
2844
- password: string | (() => string | undefined) | undefined;
2845
- } | {
2846
- type: "Custom";
2847
- prefix: string | (() => string | undefined) | undefined;
2848
- value: string | (() => string | undefined) | undefined;
2849
- }) | undefined;
2850
- body?: (Partial<{
2851
- providerId: string;
2852
- accountId?: string | undefined;
2853
- userId?: string | undefined;
2854
- }> & Record<string, any>) | undefined;
2855
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2856
- params?: Record<string, any> | undefined;
2857
- duplex?: "full" | "half" | undefined;
2858
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2859
- retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
2860
- retryAttempt?: number | undefined;
2861
- output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2862
- errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
2863
- disableValidation?: boolean | undefined;
2864
- }>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
2865
- providerId: string;
2866
- accountId?: string | undefined;
2867
- userId?: string | undefined;
2868
- } & {
2869
- fetchOptions?: FetchOptions | undefined;
2870
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<any, {
2871
- code?: string;
2872
- message?: string;
2873
- }, FetchOptions["throw"] extends true ? true : false>>;
2874
- } & {
2875
- getAccessToken: <FetchOptions extends {
2876
- method?: string | undefined;
2877
- mode?: RequestMode | undefined;
2878
- headers?: (HeadersInit & (HeadersInit | {
2879
- accept: "application/json" | "text/plain" | "application/octet-stream";
2880
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2881
- authorization: "Bearer" | "Basic";
2882
- })) | undefined;
2883
- cache?: RequestCache | undefined;
2884
- credentials?: RequestCredentials | undefined;
2885
- integrity?: string | undefined;
2886
- keepalive?: boolean | undefined;
2887
- priority?: RequestPriority | undefined;
2888
- redirect?: RequestRedirect | undefined;
2889
- referrer?: string | undefined;
2890
- referrerPolicy?: ReferrerPolicy | undefined;
2891
- signal?: (AbortSignal | null) | undefined;
2892
- window?: null | undefined;
2893
- 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;
2894
- 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;
2895
- onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
2896
- onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
2897
- onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
2898
- hookOptions?: {
2899
- cloneResponse?: boolean;
2900
- } | undefined;
2901
- timeout?: number | undefined;
2902
- customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
2903
- plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
2904
- baseURL?: string | undefined;
2905
- throw?: boolean | undefined;
2906
- auth?: ({
2907
- type: "Bearer";
2908
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2909
- } | {
2910
- type: "Basic";
2911
- username: string | (() => string | undefined) | undefined;
2912
- password: string | (() => string | undefined) | undefined;
2913
- } | {
2914
- type: "Custom";
2915
- prefix: string | (() => string | undefined) | undefined;
2916
- value: string | (() => string | undefined) | undefined;
2917
- }) | undefined;
2918
- body?: (Partial<{
2919
- providerId: string;
2920
- accountId?: string | undefined;
2921
- userId?: string | undefined;
2922
- }> & Record<string, any>) | undefined;
2923
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2924
- params?: Record<string, any> | undefined;
2925
- duplex?: "full" | "half" | undefined;
2926
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2927
- retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
2928
- retryAttempt?: number | undefined;
2929
- output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2930
- errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
2931
- disableValidation?: boolean | undefined;
2932
- }>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
2933
- providerId: string;
2934
- accountId?: string | undefined;
2935
- userId?: string | undefined;
2936
- } & {
2937
- fetchOptions?: FetchOptions | undefined;
2938
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
2939
- accessToken: string;
2940
- accessTokenExpiresAt: Date | undefined;
2941
- scopes: string[];
2942
- idToken: string | undefined;
2943
- }, {
2944
- code?: string;
2945
- message?: string;
2946
- }, FetchOptions["throw"] extends true ? true : false>>;
2947
- } & {
2948
- accountInfo: <FetchOptions extends {
2945
+ listSessions: <FetchOptions extends {
2949
2946
  method?: string | undefined;
2950
2947
  mode?: RequestMode | undefined;
2951
2948
  headers?: (HeadersInit & (HeadersInit | {
@@ -2988,9 +2985,7 @@ export declare const authClient: {
2988
2985
  prefix: string | (() => string | undefined) | undefined;
2989
2986
  value: string | (() => string | undefined) | undefined;
2990
2987
  }) | undefined;
2991
- body?: (Partial<{
2992
- accountId: string;
2993
- }> & Record<string, any>) | undefined;
2988
+ body?: undefined;
2994
2989
  query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2995
2990
  params?: Record<string, any> | undefined;
2996
2991
  duplex?: "full" | "half" | undefined;
@@ -3000,14 +2995,19 @@ export declare const authClient: {
3000
2995
  output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
3001
2996
  errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
3002
2997
  disableValidation?: boolean | undefined;
3003
- }>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
3004
- accountId: string;
3005
- } & {
2998
+ }>(data_0?: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
2999
+ query?: Record<string, any> | undefined;
3006
3000
  fetchOptions?: FetchOptions | undefined;
3007
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
3008
- user: packages_core_dist_oauth2.OAuth2UserInfo;
3009
- data: Record<string, any>;
3010
- }, {
3001
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
3002
+ id: string;
3003
+ createdAt: Date;
3004
+ updatedAt: Date;
3005
+ userId: string;
3006
+ expiresAt: Date;
3007
+ token: string;
3008
+ ipAddress?: string | null | undefined | undefined;
3009
+ userAgent?: string | null | undefined | undefined;
3010
+ }>[], {
3011
3011
  code?: string;
3012
3012
  message?: string;
3013
3013
  }, FetchOptions["throw"] extends true ? true : false>>;