wcz-test 6.5.4 → 6.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.
- package/dist/client-utils.d.ts +281 -1733
- package/dist/client-utils.js +1 -6
- package/dist/client-utils.js.map +1 -1
- package/dist/index.d.ts +16 -2
- package/dist/index.js +58 -12
- package/dist/index.js.map +1 -1
- package/dist/server-utils.d.ts +3 -10
- package/dist/server-utils.js +2 -2
- package/dist/server-utils.js.map +1 -1
- package/package.json +5 -2
package/dist/client-utils.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export { P as Platform } from './utils-ChipkRJ9.js';
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export { default as LanguageDetector } from 'i18next-browser-languagedetector';
|
|
2
|
+
export { t } from 'i18next';
|
|
3
|
+
export { useTranslation } from 'react-i18next';
|
|
5
4
|
import * as nanostores from 'nanostores';
|
|
6
|
-
import * as better_auth from 'better-auth';
|
|
7
5
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
6
|
+
import * as node_modules_better_auth_dist_helper_DU33OcfW_d_mts from 'node_modules/better-auth/dist/helper-DU33OcfW.d.mts';
|
|
7
|
+
import * as better_auth from 'better-auth';
|
|
8
8
|
import 'axios';
|
|
9
9
|
import 'uuidv7';
|
|
10
10
|
import '@t3-oss/env-core';
|
|
@@ -14,76 +14,24 @@ declare const WISTRON_SECONDARY_COLOR = "#64DC00";
|
|
|
14
14
|
|
|
15
15
|
declare const authClient: {
|
|
16
16
|
signIn: {
|
|
17
|
-
social: <FetchOptions extends {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
mode?: RequestMode | undefined;
|
|
30
|
-
priority?: RequestPriority | undefined;
|
|
31
|
-
redirect?: RequestRedirect | undefined;
|
|
32
|
-
referrer?: string | undefined;
|
|
33
|
-
referrerPolicy?: ReferrerPolicy | undefined;
|
|
34
|
-
window?: null | undefined;
|
|
35
|
-
onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
|
|
36
|
-
onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
|
|
37
|
-
onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
38
|
-
onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
|
|
39
|
-
onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
|
|
40
|
-
hookOptions?: {
|
|
41
|
-
cloneResponse?: boolean;
|
|
17
|
+
social: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
18
|
+
provider: unknown;
|
|
19
|
+
callbackURL?: string | undefined;
|
|
20
|
+
newUserCallbackURL?: string | undefined;
|
|
21
|
+
errorCallbackURL?: string | undefined;
|
|
22
|
+
disableRedirect?: boolean | undefined;
|
|
23
|
+
idToken?: {
|
|
24
|
+
token: string;
|
|
25
|
+
nonce?: string | undefined;
|
|
26
|
+
accessToken?: string | undefined;
|
|
27
|
+
refreshToken?: string | undefined;
|
|
28
|
+
expiresAt?: number | undefined;
|
|
42
29
|
} | undefined;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
auth?: ({
|
|
49
|
-
type: "Bearer";
|
|
50
|
-
token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
|
|
51
|
-
} | {
|
|
52
|
-
type: "Basic";
|
|
53
|
-
username: string | (() => string | undefined) | undefined;
|
|
54
|
-
password: string | (() => string | undefined) | undefined;
|
|
55
|
-
} | {
|
|
56
|
-
type: "Custom";
|
|
57
|
-
prefix: string | (() => string | undefined) | undefined;
|
|
58
|
-
value: string | (() => string | undefined) | undefined;
|
|
59
|
-
}) | undefined;
|
|
60
|
-
body?: (Partial<{
|
|
61
|
-
provider: unknown;
|
|
62
|
-
callbackURL?: string | undefined;
|
|
63
|
-
newUserCallbackURL?: string | undefined;
|
|
64
|
-
errorCallbackURL?: string | undefined;
|
|
65
|
-
disableRedirect?: boolean | undefined;
|
|
66
|
-
idToken?: {
|
|
67
|
-
token: string;
|
|
68
|
-
nonce?: string | undefined;
|
|
69
|
-
accessToken?: string | undefined;
|
|
70
|
-
refreshToken?: string | undefined;
|
|
71
|
-
expiresAt?: number | undefined;
|
|
72
|
-
} | undefined;
|
|
73
|
-
scopes?: string[] | undefined;
|
|
74
|
-
requestSignUp?: boolean | undefined;
|
|
75
|
-
loginHint?: string | undefined;
|
|
76
|
-
}> & Record<string, any>) | undefined;
|
|
77
|
-
query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
|
|
78
|
-
params?: Record<string, any> | undefined;
|
|
79
|
-
duplex?: "full" | "half" | undefined;
|
|
80
|
-
jsonParser?: ((text: string) => Promise<any> | any) | undefined;
|
|
81
|
-
retry?: _better_fetch_fetch.RetryOptions | undefined;
|
|
82
|
-
retryAttempt?: number | undefined;
|
|
83
|
-
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
84
|
-
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
85
|
-
disableValidation?: boolean | undefined;
|
|
86
|
-
}>(data_0: better_auth.Prettify<{
|
|
30
|
+
scopes?: string[] | undefined;
|
|
31
|
+
requestSignUp?: boolean | undefined;
|
|
32
|
+
loginHint?: string | undefined;
|
|
33
|
+
additionalData?: Record<string, any> | undefined;
|
|
34
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: node_modules_better_auth_dist_helper_DU33OcfW_d_mts.u<{
|
|
87
35
|
provider: unknown;
|
|
88
36
|
callbackURL?: string | undefined;
|
|
89
37
|
newUserCallbackURL?: string | undefined;
|
|
@@ -99,6 +47,7 @@ declare const authClient: {
|
|
|
99
47
|
scopes?: string[] | undefined;
|
|
100
48
|
requestSignUp?: boolean | undefined;
|
|
101
49
|
loginHint?: string | undefined;
|
|
50
|
+
additionalData?: Record<string, any> | undefined;
|
|
102
51
|
} & {
|
|
103
52
|
fetchOptions?: FetchOptions | undefined;
|
|
104
53
|
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<NonNullable<{
|
|
@@ -118,141 +67,35 @@ declare const authClient: {
|
|
|
118
67
|
url: string;
|
|
119
68
|
redirect: boolean;
|
|
120
69
|
}>, {
|
|
121
|
-
code?: string;
|
|
122
|
-
message?: string;
|
|
70
|
+
code?: string | undefined;
|
|
71
|
+
message?: string | undefined;
|
|
123
72
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
124
73
|
};
|
|
125
74
|
} & {
|
|
126
|
-
signOut: <FetchOptions extends {
|
|
127
|
-
headers?: (HeadersInit & (HeadersInit | {
|
|
128
|
-
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
129
|
-
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
130
|
-
authorization: "Bearer" | "Basic";
|
|
131
|
-
})) | undefined;
|
|
132
|
-
method?: string | undefined;
|
|
133
|
-
signal?: (AbortSignal | null) | undefined;
|
|
134
|
-
cache?: RequestCache | undefined;
|
|
135
|
-
credentials?: RequestCredentials | undefined;
|
|
136
|
-
integrity?: string | undefined;
|
|
137
|
-
keepalive?: boolean | undefined;
|
|
138
|
-
mode?: RequestMode | undefined;
|
|
139
|
-
priority?: RequestPriority | undefined;
|
|
140
|
-
redirect?: RequestRedirect | undefined;
|
|
141
|
-
referrer?: string | undefined;
|
|
142
|
-
referrerPolicy?: ReferrerPolicy | undefined;
|
|
143
|
-
window?: null | undefined;
|
|
144
|
-
onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
|
|
145
|
-
onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
|
|
146
|
-
onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
147
|
-
onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
|
|
148
|
-
onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
|
|
149
|
-
hookOptions?: {
|
|
150
|
-
cloneResponse?: boolean;
|
|
151
|
-
} | undefined;
|
|
152
|
-
timeout?: number | undefined;
|
|
153
|
-
customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
|
|
154
|
-
plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
|
|
155
|
-
baseURL?: string | undefined;
|
|
156
|
-
throw?: boolean | undefined;
|
|
157
|
-
auth?: ({
|
|
158
|
-
type: "Bearer";
|
|
159
|
-
token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
|
|
160
|
-
} | {
|
|
161
|
-
type: "Basic";
|
|
162
|
-
username: string | (() => string | undefined) | undefined;
|
|
163
|
-
password: string | (() => string | undefined) | undefined;
|
|
164
|
-
} | {
|
|
165
|
-
type: "Custom";
|
|
166
|
-
prefix: string | (() => string | undefined) | undefined;
|
|
167
|
-
value: string | (() => string | undefined) | undefined;
|
|
168
|
-
}) | undefined;
|
|
169
|
-
body?: undefined;
|
|
170
|
-
query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
|
|
171
|
-
params?: Record<string, any> | undefined;
|
|
172
|
-
duplex?: "full" | "half" | undefined;
|
|
173
|
-
jsonParser?: ((text: string) => Promise<any> | any) | undefined;
|
|
174
|
-
retry?: _better_fetch_fetch.RetryOptions | undefined;
|
|
175
|
-
retryAttempt?: number | undefined;
|
|
176
|
-
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
177
|
-
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
178
|
-
disableValidation?: boolean | undefined;
|
|
179
|
-
}>(data_0?: better_auth.Prettify<{
|
|
75
|
+
signOut: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: node_modules_better_auth_dist_helper_DU33OcfW_d_mts.u<{
|
|
180
76
|
query?: Record<string, any> | undefined;
|
|
181
77
|
fetchOptions?: FetchOptions | undefined;
|
|
182
78
|
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
183
79
|
success: boolean;
|
|
184
80
|
}, {
|
|
185
|
-
code?: string;
|
|
186
|
-
message?: string;
|
|
81
|
+
code?: string | undefined;
|
|
82
|
+
message?: string | undefined;
|
|
187
83
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
188
84
|
} & {
|
|
189
85
|
signUp: {
|
|
190
|
-
email: <FetchOptions extends {
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
cache?: RequestCache | undefined;
|
|
199
|
-
credentials?: RequestCredentials | undefined;
|
|
200
|
-
integrity?: string | undefined;
|
|
201
|
-
keepalive?: boolean | undefined;
|
|
202
|
-
mode?: RequestMode | undefined;
|
|
203
|
-
priority?: RequestPriority | undefined;
|
|
204
|
-
redirect?: RequestRedirect | undefined;
|
|
205
|
-
referrer?: string | undefined;
|
|
206
|
-
referrerPolicy?: ReferrerPolicy | undefined;
|
|
207
|
-
window?: null | undefined;
|
|
208
|
-
onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
|
|
209
|
-
onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
|
|
210
|
-
onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
211
|
-
onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
|
|
212
|
-
onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
|
|
213
|
-
hookOptions?: {
|
|
214
|
-
cloneResponse?: boolean;
|
|
215
|
-
} | undefined;
|
|
216
|
-
timeout?: number | undefined;
|
|
217
|
-
customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
|
|
218
|
-
plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
|
|
219
|
-
baseURL?: string | undefined;
|
|
220
|
-
throw?: boolean | undefined;
|
|
221
|
-
auth?: ({
|
|
222
|
-
type: "Bearer";
|
|
223
|
-
token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
|
|
224
|
-
} | {
|
|
225
|
-
type: "Basic";
|
|
226
|
-
username: string | (() => string | undefined) | undefined;
|
|
227
|
-
password: string | (() => string | undefined) | undefined;
|
|
228
|
-
} | {
|
|
229
|
-
type: "Custom";
|
|
230
|
-
prefix: string | (() => string | undefined) | undefined;
|
|
231
|
-
value: string | (() => string | undefined) | undefined;
|
|
232
|
-
}) | undefined;
|
|
233
|
-
body?: (Partial<{
|
|
234
|
-
name: string;
|
|
235
|
-
email: string;
|
|
236
|
-
password: string;
|
|
237
|
-
image?: string;
|
|
238
|
-
callbackURL?: string;
|
|
239
|
-
rememberMe?: boolean;
|
|
240
|
-
}> & Record<string, any>) | undefined;
|
|
241
|
-
query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
|
|
242
|
-
params?: Record<string, any> | undefined;
|
|
243
|
-
duplex?: "full" | "half" | undefined;
|
|
244
|
-
jsonParser?: ((text: string) => Promise<any> | any) | undefined;
|
|
245
|
-
retry?: _better_fetch_fetch.RetryOptions | undefined;
|
|
246
|
-
retryAttempt?: number | undefined;
|
|
247
|
-
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
248
|
-
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
249
|
-
disableValidation?: boolean | undefined;
|
|
250
|
-
}>(data_0: better_auth.Prettify<{
|
|
86
|
+
email: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
87
|
+
name: string;
|
|
88
|
+
email: string;
|
|
89
|
+
password: string;
|
|
90
|
+
image?: string | undefined;
|
|
91
|
+
callbackURL?: string | undefined;
|
|
92
|
+
rememberMe?: boolean | undefined;
|
|
93
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: node_modules_better_auth_dist_helper_DU33OcfW_d_mts.u<{
|
|
251
94
|
email: string;
|
|
252
95
|
name: string;
|
|
253
96
|
password: string;
|
|
254
|
-
image?: string;
|
|
255
|
-
callbackURL?: string;
|
|
97
|
+
image?: string | undefined;
|
|
98
|
+
callbackURL?: string | undefined;
|
|
256
99
|
fetchOptions?: FetchOptions | undefined;
|
|
257
100
|
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<NonNullable<{
|
|
258
101
|
token: null;
|
|
@@ -277,71 +120,18 @@ declare const authClient: {
|
|
|
277
120
|
updatedAt: Date;
|
|
278
121
|
};
|
|
279
122
|
}>, {
|
|
280
|
-
code?: string;
|
|
281
|
-
message?: string;
|
|
123
|
+
code?: string | undefined;
|
|
124
|
+
message?: string | undefined;
|
|
282
125
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
283
126
|
};
|
|
284
127
|
} & {
|
|
285
128
|
signIn: {
|
|
286
|
-
email: <FetchOptions extends {
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
method?: string | undefined;
|
|
293
|
-
signal?: (AbortSignal | null) | undefined;
|
|
294
|
-
cache?: RequestCache | undefined;
|
|
295
|
-
credentials?: RequestCredentials | undefined;
|
|
296
|
-
integrity?: string | undefined;
|
|
297
|
-
keepalive?: boolean | undefined;
|
|
298
|
-
mode?: RequestMode | undefined;
|
|
299
|
-
priority?: RequestPriority | undefined;
|
|
300
|
-
redirect?: RequestRedirect | undefined;
|
|
301
|
-
referrer?: string | undefined;
|
|
302
|
-
referrerPolicy?: ReferrerPolicy | undefined;
|
|
303
|
-
window?: null | undefined;
|
|
304
|
-
onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
|
|
305
|
-
onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
|
|
306
|
-
onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
307
|
-
onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
|
|
308
|
-
onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
|
|
309
|
-
hookOptions?: {
|
|
310
|
-
cloneResponse?: boolean;
|
|
311
|
-
} | undefined;
|
|
312
|
-
timeout?: number | undefined;
|
|
313
|
-
customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
|
|
314
|
-
plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
|
|
315
|
-
baseURL?: string | undefined;
|
|
316
|
-
throw?: boolean | undefined;
|
|
317
|
-
auth?: ({
|
|
318
|
-
type: "Bearer";
|
|
319
|
-
token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
|
|
320
|
-
} | {
|
|
321
|
-
type: "Basic";
|
|
322
|
-
username: string | (() => string | undefined) | undefined;
|
|
323
|
-
password: string | (() => string | undefined) | undefined;
|
|
324
|
-
} | {
|
|
325
|
-
type: "Custom";
|
|
326
|
-
prefix: string | (() => string | undefined) | undefined;
|
|
327
|
-
value: string | (() => string | undefined) | undefined;
|
|
328
|
-
}) | undefined;
|
|
329
|
-
body?: (Partial<{
|
|
330
|
-
email: string;
|
|
331
|
-
password: string;
|
|
332
|
-
callbackURL?: string | undefined;
|
|
333
|
-
rememberMe?: boolean | undefined;
|
|
334
|
-
}> & Record<string, any>) | undefined;
|
|
335
|
-
query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
|
|
336
|
-
params?: Record<string, any> | undefined;
|
|
337
|
-
duplex?: "full" | "half" | undefined;
|
|
338
|
-
jsonParser?: ((text: string) => Promise<any> | any) | undefined;
|
|
339
|
-
retry?: _better_fetch_fetch.RetryOptions | undefined;
|
|
340
|
-
retryAttempt?: number | undefined;
|
|
341
|
-
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
342
|
-
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
343
|
-
disableValidation?: boolean | undefined;
|
|
344
|
-
}>(data_0: better_auth.Prettify<{
|
|
129
|
+
email: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
130
|
+
email: string;
|
|
131
|
+
password: string;
|
|
132
|
+
callbackURL?: string | undefined;
|
|
133
|
+
rememberMe?: boolean | undefined;
|
|
134
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: node_modules_better_auth_dist_helper_DU33OcfW_d_mts.u<{
|
|
345
135
|
email: string;
|
|
346
136
|
password: string;
|
|
347
137
|
callbackURL?: string | undefined;
|
|
@@ -362,138 +152,17 @@ declare const authClient: {
|
|
|
362
152
|
updatedAt: Date;
|
|
363
153
|
};
|
|
364
154
|
}, {
|
|
365
|
-
code?: string;
|
|
366
|
-
message?: string;
|
|
155
|
+
code?: string | undefined;
|
|
156
|
+
message?: string | undefined;
|
|
367
157
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
368
158
|
};
|
|
369
159
|
} & {
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
method?: string | undefined;
|
|
377
|
-
signal?: (AbortSignal | null) | undefined;
|
|
378
|
-
cache?: RequestCache | undefined;
|
|
379
|
-
credentials?: RequestCredentials | undefined;
|
|
380
|
-
integrity?: string | undefined;
|
|
381
|
-
keepalive?: boolean | undefined;
|
|
382
|
-
mode?: RequestMode | undefined;
|
|
383
|
-
priority?: RequestPriority | undefined;
|
|
384
|
-
redirect?: RequestRedirect | undefined;
|
|
385
|
-
referrer?: string | undefined;
|
|
386
|
-
referrerPolicy?: ReferrerPolicy | undefined;
|
|
387
|
-
window?: null | undefined;
|
|
388
|
-
onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
|
|
389
|
-
onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
|
|
390
|
-
onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
391
|
-
onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
|
|
392
|
-
onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
|
|
393
|
-
hookOptions?: {
|
|
394
|
-
cloneResponse?: boolean;
|
|
395
|
-
} | undefined;
|
|
396
|
-
timeout?: number | undefined;
|
|
397
|
-
customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
|
|
398
|
-
plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
|
|
399
|
-
baseURL?: string | undefined;
|
|
400
|
-
throw?: boolean | undefined;
|
|
401
|
-
auth?: ({
|
|
402
|
-
type: "Bearer";
|
|
403
|
-
token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
|
|
404
|
-
} | {
|
|
405
|
-
type: "Basic";
|
|
406
|
-
username: string | (() => string | undefined) | undefined;
|
|
407
|
-
password: string | (() => string | undefined) | undefined;
|
|
408
|
-
} | {
|
|
409
|
-
type: "Custom";
|
|
410
|
-
prefix: string | (() => string | undefined) | undefined;
|
|
411
|
-
value: string | (() => string | undefined) | undefined;
|
|
412
|
-
}) | undefined;
|
|
413
|
-
body?: (Partial<{
|
|
414
|
-
email: string;
|
|
415
|
-
redirectTo?: string | undefined;
|
|
416
|
-
}> & Record<string, any>) | undefined;
|
|
417
|
-
query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
|
|
418
|
-
params?: Record<string, any> | undefined;
|
|
419
|
-
duplex?: "full" | "half" | undefined;
|
|
420
|
-
jsonParser?: ((text: string) => Promise<any> | any) | undefined;
|
|
421
|
-
retry?: _better_fetch_fetch.RetryOptions | undefined;
|
|
422
|
-
retryAttempt?: number | undefined;
|
|
423
|
-
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
424
|
-
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
425
|
-
disableValidation?: boolean | undefined;
|
|
426
|
-
}>(data_0: better_auth.Prettify<{
|
|
427
|
-
email: string;
|
|
428
|
-
redirectTo?: string | undefined;
|
|
429
|
-
} & {
|
|
430
|
-
fetchOptions?: FetchOptions | undefined;
|
|
431
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
432
|
-
status: boolean;
|
|
433
|
-
}, {
|
|
434
|
-
code?: string;
|
|
435
|
-
message?: string;
|
|
436
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
437
|
-
} & {
|
|
438
|
-
resetPassword: <FetchOptions extends {
|
|
439
|
-
headers?: (HeadersInit & (HeadersInit | {
|
|
440
|
-
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
441
|
-
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
442
|
-
authorization: "Bearer" | "Basic";
|
|
443
|
-
})) | undefined;
|
|
444
|
-
method?: string | undefined;
|
|
445
|
-
signal?: (AbortSignal | null) | undefined;
|
|
446
|
-
cache?: RequestCache | undefined;
|
|
447
|
-
credentials?: RequestCredentials | undefined;
|
|
448
|
-
integrity?: string | undefined;
|
|
449
|
-
keepalive?: boolean | undefined;
|
|
450
|
-
mode?: RequestMode | undefined;
|
|
451
|
-
priority?: RequestPriority | undefined;
|
|
452
|
-
redirect?: RequestRedirect | undefined;
|
|
453
|
-
referrer?: string | undefined;
|
|
454
|
-
referrerPolicy?: ReferrerPolicy | undefined;
|
|
455
|
-
window?: null | undefined;
|
|
456
|
-
onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
|
|
457
|
-
onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
|
|
458
|
-
onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
459
|
-
onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
|
|
460
|
-
onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
|
|
461
|
-
hookOptions?: {
|
|
462
|
-
cloneResponse?: boolean;
|
|
463
|
-
} | undefined;
|
|
464
|
-
timeout?: number | undefined;
|
|
465
|
-
customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
|
|
466
|
-
plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
|
|
467
|
-
baseURL?: string | undefined;
|
|
468
|
-
throw?: boolean | undefined;
|
|
469
|
-
auth?: ({
|
|
470
|
-
type: "Bearer";
|
|
471
|
-
token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
|
|
472
|
-
} | {
|
|
473
|
-
type: "Basic";
|
|
474
|
-
username: string | (() => string | undefined) | undefined;
|
|
475
|
-
password: string | (() => string | undefined) | undefined;
|
|
476
|
-
} | {
|
|
477
|
-
type: "Custom";
|
|
478
|
-
prefix: string | (() => string | undefined) | undefined;
|
|
479
|
-
value: string | (() => string | undefined) | undefined;
|
|
480
|
-
}) | undefined;
|
|
481
|
-
body?: (Partial<{
|
|
482
|
-
newPassword: string;
|
|
483
|
-
token?: string | undefined;
|
|
484
|
-
}> & Record<string, any>) | undefined;
|
|
485
|
-
query?: (Partial<{
|
|
486
|
-
token?: string | undefined;
|
|
487
|
-
}> & Record<string, any>) | undefined;
|
|
488
|
-
params?: Record<string, any> | undefined;
|
|
489
|
-
duplex?: "full" | "half" | undefined;
|
|
490
|
-
jsonParser?: ((text: string) => Promise<any> | any) | undefined;
|
|
491
|
-
retry?: _better_fetch_fetch.RetryOptions | undefined;
|
|
492
|
-
retryAttempt?: number | undefined;
|
|
493
|
-
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
494
|
-
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
495
|
-
disableValidation?: boolean | undefined;
|
|
496
|
-
}>(data_0: better_auth.Prettify<{
|
|
160
|
+
resetPassword: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
161
|
+
newPassword: string;
|
|
162
|
+
token?: string | undefined;
|
|
163
|
+
}> & Record<string, any>, Partial<{
|
|
164
|
+
token?: string | undefined;
|
|
165
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: node_modules_better_auth_dist_helper_DU33OcfW_d_mts.u<{
|
|
497
166
|
newPassword: string;
|
|
498
167
|
token?: string | undefined;
|
|
499
168
|
} & {
|
|
@@ -501,67 +170,14 @@ declare const authClient: {
|
|
|
501
170
|
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
502
171
|
status: boolean;
|
|
503
172
|
}, {
|
|
504
|
-
code?: string;
|
|
505
|
-
message?: string;
|
|
173
|
+
code?: string | undefined;
|
|
174
|
+
message?: string | undefined;
|
|
506
175
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
507
176
|
} & {
|
|
508
|
-
verifyEmail: <FetchOptions extends {
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
authorization: "Bearer" | "Basic";
|
|
513
|
-
})) | undefined;
|
|
514
|
-
method?: string | undefined;
|
|
515
|
-
signal?: (AbortSignal | null) | undefined;
|
|
516
|
-
cache?: RequestCache | undefined;
|
|
517
|
-
credentials?: RequestCredentials | undefined;
|
|
518
|
-
integrity?: string | undefined;
|
|
519
|
-
keepalive?: boolean | undefined;
|
|
520
|
-
mode?: RequestMode | undefined;
|
|
521
|
-
priority?: RequestPriority | undefined;
|
|
522
|
-
redirect?: RequestRedirect | undefined;
|
|
523
|
-
referrer?: string | undefined;
|
|
524
|
-
referrerPolicy?: ReferrerPolicy | undefined;
|
|
525
|
-
window?: null | undefined;
|
|
526
|
-
onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
|
|
527
|
-
onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
|
|
528
|
-
onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
529
|
-
onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
|
|
530
|
-
onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
|
|
531
|
-
hookOptions?: {
|
|
532
|
-
cloneResponse?: boolean;
|
|
533
|
-
} | undefined;
|
|
534
|
-
timeout?: number | undefined;
|
|
535
|
-
customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
|
|
536
|
-
plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
|
|
537
|
-
baseURL?: string | undefined;
|
|
538
|
-
throw?: boolean | undefined;
|
|
539
|
-
auth?: ({
|
|
540
|
-
type: "Bearer";
|
|
541
|
-
token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
|
|
542
|
-
} | {
|
|
543
|
-
type: "Basic";
|
|
544
|
-
username: string | (() => string | undefined) | undefined;
|
|
545
|
-
password: string | (() => string | undefined) | undefined;
|
|
546
|
-
} | {
|
|
547
|
-
type: "Custom";
|
|
548
|
-
prefix: string | (() => string | undefined) | undefined;
|
|
549
|
-
value: string | (() => string | undefined) | undefined;
|
|
550
|
-
}) | undefined;
|
|
551
|
-
body?: undefined;
|
|
552
|
-
query?: (Partial<{
|
|
553
|
-
token: string;
|
|
554
|
-
callbackURL?: string | undefined;
|
|
555
|
-
}> & Record<string, any>) | undefined;
|
|
556
|
-
params?: Record<string, any> | undefined;
|
|
557
|
-
duplex?: "full" | "half" | undefined;
|
|
558
|
-
jsonParser?: ((text: string) => Promise<any> | any) | undefined;
|
|
559
|
-
retry?: _better_fetch_fetch.RetryOptions | undefined;
|
|
560
|
-
retryAttempt?: number | undefined;
|
|
561
|
-
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
562
|
-
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
563
|
-
disableValidation?: boolean | undefined;
|
|
564
|
-
}>(data_0: better_auth.Prettify<{
|
|
177
|
+
verifyEmail: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
|
|
178
|
+
token: string;
|
|
179
|
+
callbackURL?: string | undefined;
|
|
180
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: node_modules_better_auth_dist_helper_DU33OcfW_d_mts.u<{
|
|
565
181
|
query: {
|
|
566
182
|
token: string;
|
|
567
183
|
callbackURL?: string | undefined;
|
|
@@ -569,6 +185,53 @@ declare const authClient: {
|
|
|
569
185
|
fetchOptions?: FetchOptions | undefined;
|
|
570
186
|
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<NonNullable<void | {
|
|
571
187
|
status: boolean;
|
|
188
|
+
}>, {
|
|
189
|
+
code?: string | undefined;
|
|
190
|
+
message?: string | undefined;
|
|
191
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
192
|
+
} & {
|
|
193
|
+
sendVerificationEmail: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
194
|
+
email: string;
|
|
195
|
+
callbackURL?: string | undefined;
|
|
196
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: node_modules_better_auth_dist_helper_DU33OcfW_d_mts.u<{
|
|
197
|
+
email: string;
|
|
198
|
+
callbackURL?: string | undefined;
|
|
199
|
+
} & {
|
|
200
|
+
fetchOptions?: FetchOptions | undefined;
|
|
201
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
202
|
+
status: boolean;
|
|
203
|
+
}, {
|
|
204
|
+
code?: string | undefined;
|
|
205
|
+
message?: string | undefined;
|
|
206
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
207
|
+
} & {
|
|
208
|
+
changeEmail: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
209
|
+
newEmail: string;
|
|
210
|
+
callbackURL?: string | undefined;
|
|
211
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: node_modules_better_auth_dist_helper_DU33OcfW_d_mts.u<{
|
|
212
|
+
newEmail: string;
|
|
213
|
+
callbackURL?: string | undefined;
|
|
214
|
+
} & {
|
|
215
|
+
fetchOptions?: FetchOptions | undefined;
|
|
216
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
217
|
+
status: boolean;
|
|
218
|
+
}, {
|
|
219
|
+
code?: string | undefined;
|
|
220
|
+
message?: string | undefined;
|
|
221
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
222
|
+
} & {
|
|
223
|
+
changePassword: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
224
|
+
newPassword: string;
|
|
225
|
+
currentPassword: string;
|
|
226
|
+
revokeOtherSessions?: boolean | undefined;
|
|
227
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: node_modules_better_auth_dist_helper_DU33OcfW_d_mts.u<{
|
|
228
|
+
newPassword: string;
|
|
229
|
+
currentPassword: string;
|
|
230
|
+
revokeOtherSessions?: boolean | undefined;
|
|
231
|
+
} & {
|
|
232
|
+
fetchOptions?: FetchOptions | undefined;
|
|
233
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
234
|
+
token: string | null;
|
|
572
235
|
user: {
|
|
573
236
|
id: string;
|
|
574
237
|
email: string;
|
|
@@ -578,631 +241,79 @@ declare const authClient: {
|
|
|
578
241
|
createdAt: Date;
|
|
579
242
|
updatedAt: Date;
|
|
580
243
|
};
|
|
581
|
-
}
|
|
244
|
+
}, {
|
|
245
|
+
code?: string | undefined;
|
|
246
|
+
message?: string | undefined;
|
|
247
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
248
|
+
} & {
|
|
249
|
+
updateUser: <FetchOptions extends better_auth.ClientFetchOption<Partial<Partial<{}> & {
|
|
250
|
+
name?: string | undefined;
|
|
251
|
+
image?: string | undefined;
|
|
252
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: node_modules_better_auth_dist_helper_DU33OcfW_d_mts.u<{
|
|
253
|
+
image?: (string | null) | undefined;
|
|
254
|
+
name?: string | undefined;
|
|
255
|
+
fetchOptions?: FetchOptions | undefined;
|
|
256
|
+
} & Partial<{}>> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
582
257
|
status: boolean;
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
message?: string;
|
|
258
|
+
}, {
|
|
259
|
+
code?: string | undefined;
|
|
260
|
+
message?: string | undefined;
|
|
587
261
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
588
262
|
} & {
|
|
589
|
-
|
|
590
|
-
headers?: (HeadersInit & (HeadersInit | {
|
|
591
|
-
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
592
|
-
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
593
|
-
authorization: "Bearer" | "Basic";
|
|
594
|
-
})) | undefined;
|
|
595
|
-
method?: string | undefined;
|
|
596
|
-
signal?: (AbortSignal | null) | undefined;
|
|
597
|
-
cache?: RequestCache | undefined;
|
|
598
|
-
credentials?: RequestCredentials | undefined;
|
|
599
|
-
integrity?: string | undefined;
|
|
600
|
-
keepalive?: boolean | undefined;
|
|
601
|
-
mode?: RequestMode | undefined;
|
|
602
|
-
priority?: RequestPriority | undefined;
|
|
603
|
-
redirect?: RequestRedirect | undefined;
|
|
604
|
-
referrer?: string | undefined;
|
|
605
|
-
referrerPolicy?: ReferrerPolicy | undefined;
|
|
606
|
-
window?: null | undefined;
|
|
607
|
-
onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
|
|
608
|
-
onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
|
|
609
|
-
onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
610
|
-
onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
|
|
611
|
-
onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
|
|
612
|
-
hookOptions?: {
|
|
613
|
-
cloneResponse?: boolean;
|
|
614
|
-
} | undefined;
|
|
615
|
-
timeout?: number | undefined;
|
|
616
|
-
customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
|
|
617
|
-
plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
|
|
618
|
-
baseURL?: string | undefined;
|
|
619
|
-
throw?: boolean | undefined;
|
|
620
|
-
auth?: ({
|
|
621
|
-
type: "Bearer";
|
|
622
|
-
token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
|
|
623
|
-
} | {
|
|
624
|
-
type: "Basic";
|
|
625
|
-
username: string | (() => string | undefined) | undefined;
|
|
626
|
-
password: string | (() => string | undefined) | undefined;
|
|
627
|
-
} | {
|
|
628
|
-
type: "Custom";
|
|
629
|
-
prefix: string | (() => string | undefined) | undefined;
|
|
630
|
-
value: string | (() => string | undefined) | undefined;
|
|
631
|
-
}) | undefined;
|
|
632
|
-
body?: (Partial<{
|
|
633
|
-
email: string;
|
|
634
|
-
callbackURL?: string | undefined;
|
|
635
|
-
}> & Record<string, any>) | undefined;
|
|
636
|
-
query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
|
|
637
|
-
params?: Record<string, any> | undefined;
|
|
638
|
-
duplex?: "full" | "half" | undefined;
|
|
639
|
-
jsonParser?: ((text: string) => Promise<any> | any) | undefined;
|
|
640
|
-
retry?: _better_fetch_fetch.RetryOptions | undefined;
|
|
641
|
-
retryAttempt?: number | undefined;
|
|
642
|
-
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
643
|
-
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
644
|
-
disableValidation?: boolean | undefined;
|
|
645
|
-
}>(data_0: better_auth.Prettify<{
|
|
646
|
-
email: string;
|
|
647
|
-
callbackURL?: string | undefined;
|
|
648
|
-
} & {
|
|
649
|
-
fetchOptions?: FetchOptions | undefined;
|
|
650
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
651
|
-
status: boolean;
|
|
652
|
-
}, {
|
|
653
|
-
code?: string;
|
|
654
|
-
message?: string;
|
|
655
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
656
|
-
} & {
|
|
657
|
-
changeEmail: <FetchOptions extends {
|
|
658
|
-
headers?: (HeadersInit & (HeadersInit | {
|
|
659
|
-
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
660
|
-
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
661
|
-
authorization: "Bearer" | "Basic";
|
|
662
|
-
})) | undefined;
|
|
663
|
-
method?: string | undefined;
|
|
664
|
-
signal?: (AbortSignal | null) | undefined;
|
|
665
|
-
cache?: RequestCache | undefined;
|
|
666
|
-
credentials?: RequestCredentials | undefined;
|
|
667
|
-
integrity?: string | undefined;
|
|
668
|
-
keepalive?: boolean | undefined;
|
|
669
|
-
mode?: RequestMode | undefined;
|
|
670
|
-
priority?: RequestPriority | undefined;
|
|
671
|
-
redirect?: RequestRedirect | undefined;
|
|
672
|
-
referrer?: string | undefined;
|
|
673
|
-
referrerPolicy?: ReferrerPolicy | undefined;
|
|
674
|
-
window?: null | undefined;
|
|
675
|
-
onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
|
|
676
|
-
onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
|
|
677
|
-
onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
678
|
-
onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
|
|
679
|
-
onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
|
|
680
|
-
hookOptions?: {
|
|
681
|
-
cloneResponse?: boolean;
|
|
682
|
-
} | undefined;
|
|
683
|
-
timeout?: number | undefined;
|
|
684
|
-
customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
|
|
685
|
-
plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
|
|
686
|
-
baseURL?: string | undefined;
|
|
687
|
-
throw?: boolean | undefined;
|
|
688
|
-
auth?: ({
|
|
689
|
-
type: "Bearer";
|
|
690
|
-
token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
|
|
691
|
-
} | {
|
|
692
|
-
type: "Basic";
|
|
693
|
-
username: string | (() => string | undefined) | undefined;
|
|
694
|
-
password: string | (() => string | undefined) | undefined;
|
|
695
|
-
} | {
|
|
696
|
-
type: "Custom";
|
|
697
|
-
prefix: string | (() => string | undefined) | undefined;
|
|
698
|
-
value: string | (() => string | undefined) | undefined;
|
|
699
|
-
}) | undefined;
|
|
700
|
-
body?: (Partial<{
|
|
701
|
-
newEmail: string;
|
|
702
|
-
callbackURL?: string | undefined;
|
|
703
|
-
}> & Record<string, any>) | undefined;
|
|
704
|
-
query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
|
|
705
|
-
params?: Record<string, any> | undefined;
|
|
706
|
-
duplex?: "full" | "half" | undefined;
|
|
707
|
-
jsonParser?: ((text: string) => Promise<any> | any) | undefined;
|
|
708
|
-
retry?: _better_fetch_fetch.RetryOptions | undefined;
|
|
709
|
-
retryAttempt?: number | undefined;
|
|
710
|
-
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
711
|
-
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
712
|
-
disableValidation?: boolean | undefined;
|
|
713
|
-
}>(data_0: better_auth.Prettify<{
|
|
714
|
-
newEmail: string;
|
|
715
|
-
callbackURL?: string | undefined;
|
|
716
|
-
} & {
|
|
717
|
-
fetchOptions?: FetchOptions | undefined;
|
|
718
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
719
|
-
status: boolean;
|
|
720
|
-
}, {
|
|
721
|
-
code?: string;
|
|
722
|
-
message?: string;
|
|
723
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
724
|
-
} & {
|
|
725
|
-
changePassword: <FetchOptions extends {
|
|
726
|
-
headers?: (HeadersInit & (HeadersInit | {
|
|
727
|
-
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
728
|
-
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
729
|
-
authorization: "Bearer" | "Basic";
|
|
730
|
-
})) | undefined;
|
|
731
|
-
method?: string | undefined;
|
|
732
|
-
signal?: (AbortSignal | null) | undefined;
|
|
733
|
-
cache?: RequestCache | undefined;
|
|
734
|
-
credentials?: RequestCredentials | undefined;
|
|
735
|
-
integrity?: string | undefined;
|
|
736
|
-
keepalive?: boolean | undefined;
|
|
737
|
-
mode?: RequestMode | undefined;
|
|
738
|
-
priority?: RequestPriority | undefined;
|
|
739
|
-
redirect?: RequestRedirect | undefined;
|
|
740
|
-
referrer?: string | undefined;
|
|
741
|
-
referrerPolicy?: ReferrerPolicy | undefined;
|
|
742
|
-
window?: null | undefined;
|
|
743
|
-
onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
|
|
744
|
-
onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
|
|
745
|
-
onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
746
|
-
onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
|
|
747
|
-
onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
|
|
748
|
-
hookOptions?: {
|
|
749
|
-
cloneResponse?: boolean;
|
|
750
|
-
} | undefined;
|
|
751
|
-
timeout?: number | undefined;
|
|
752
|
-
customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
|
|
753
|
-
plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
|
|
754
|
-
baseURL?: string | undefined;
|
|
755
|
-
throw?: boolean | undefined;
|
|
756
|
-
auth?: ({
|
|
757
|
-
type: "Bearer";
|
|
758
|
-
token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
|
|
759
|
-
} | {
|
|
760
|
-
type: "Basic";
|
|
761
|
-
username: string | (() => string | undefined) | undefined;
|
|
762
|
-
password: string | (() => string | undefined) | undefined;
|
|
763
|
-
} | {
|
|
764
|
-
type: "Custom";
|
|
765
|
-
prefix: string | (() => string | undefined) | undefined;
|
|
766
|
-
value: string | (() => string | undefined) | undefined;
|
|
767
|
-
}) | undefined;
|
|
768
|
-
body?: (Partial<{
|
|
769
|
-
newPassword: string;
|
|
770
|
-
currentPassword: string;
|
|
771
|
-
revokeOtherSessions?: boolean | undefined;
|
|
772
|
-
}> & Record<string, any>) | undefined;
|
|
773
|
-
query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
|
|
774
|
-
params?: Record<string, any> | undefined;
|
|
775
|
-
duplex?: "full" | "half" | undefined;
|
|
776
|
-
jsonParser?: ((text: string) => Promise<any> | any) | undefined;
|
|
777
|
-
retry?: _better_fetch_fetch.RetryOptions | undefined;
|
|
778
|
-
retryAttempt?: number | undefined;
|
|
779
|
-
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
780
|
-
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
781
|
-
disableValidation?: boolean | undefined;
|
|
782
|
-
}>(data_0: better_auth.Prettify<{
|
|
783
|
-
newPassword: string;
|
|
784
|
-
currentPassword: string;
|
|
785
|
-
revokeOtherSessions?: boolean | undefined;
|
|
786
|
-
} & {
|
|
787
|
-
fetchOptions?: FetchOptions | undefined;
|
|
788
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
789
|
-
token: string | null;
|
|
790
|
-
user: {
|
|
791
|
-
id: string;
|
|
792
|
-
email: string;
|
|
793
|
-
name: string;
|
|
794
|
-
image: string | null | undefined;
|
|
795
|
-
emailVerified: boolean;
|
|
796
|
-
createdAt: Date;
|
|
797
|
-
updatedAt: Date;
|
|
798
|
-
};
|
|
799
|
-
}, {
|
|
800
|
-
code?: string;
|
|
801
|
-
message?: string;
|
|
802
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
803
|
-
} & {
|
|
804
|
-
updateUser: <FetchOptions extends {
|
|
805
|
-
headers?: (HeadersInit & (HeadersInit | {
|
|
806
|
-
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
807
|
-
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
808
|
-
authorization: "Bearer" | "Basic";
|
|
809
|
-
})) | undefined;
|
|
810
|
-
method?: string | undefined;
|
|
811
|
-
signal?: (AbortSignal | null) | undefined;
|
|
812
|
-
cache?: RequestCache | undefined;
|
|
813
|
-
credentials?: RequestCredentials | undefined;
|
|
814
|
-
integrity?: string | undefined;
|
|
815
|
-
keepalive?: boolean | undefined;
|
|
816
|
-
mode?: RequestMode | undefined;
|
|
817
|
-
priority?: RequestPriority | undefined;
|
|
818
|
-
redirect?: RequestRedirect | undefined;
|
|
819
|
-
referrer?: string | undefined;
|
|
820
|
-
referrerPolicy?: ReferrerPolicy | undefined;
|
|
821
|
-
window?: null | undefined;
|
|
822
|
-
onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
|
|
823
|
-
onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
|
|
824
|
-
onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
825
|
-
onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
|
|
826
|
-
onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
|
|
827
|
-
hookOptions?: {
|
|
828
|
-
cloneResponse?: boolean;
|
|
829
|
-
} | undefined;
|
|
830
|
-
timeout?: number | undefined;
|
|
831
|
-
customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
|
|
832
|
-
plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
|
|
833
|
-
baseURL?: string | undefined;
|
|
834
|
-
throw?: boolean | undefined;
|
|
835
|
-
auth?: ({
|
|
836
|
-
type: "Bearer";
|
|
837
|
-
token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
|
|
838
|
-
} | {
|
|
839
|
-
type: "Basic";
|
|
840
|
-
username: string | (() => string | undefined) | undefined;
|
|
841
|
-
password: string | (() => string | undefined) | undefined;
|
|
842
|
-
} | {
|
|
843
|
-
type: "Custom";
|
|
844
|
-
prefix: string | (() => string | undefined) | undefined;
|
|
845
|
-
value: string | (() => string | undefined) | undefined;
|
|
846
|
-
}) | undefined;
|
|
847
|
-
body?: (Partial<Partial<{}> & {
|
|
848
|
-
name?: string;
|
|
849
|
-
image?: string;
|
|
850
|
-
}> & Record<string, any>) | undefined;
|
|
851
|
-
query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
|
|
852
|
-
params?: Record<string, any> | undefined;
|
|
853
|
-
duplex?: "full" | "half" | undefined;
|
|
854
|
-
jsonParser?: ((text: string) => Promise<any> | any) | undefined;
|
|
855
|
-
retry?: _better_fetch_fetch.RetryOptions | undefined;
|
|
856
|
-
retryAttempt?: number | undefined;
|
|
857
|
-
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
858
|
-
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
859
|
-
disableValidation?: boolean | undefined;
|
|
860
|
-
}>(data_0?: better_auth.Prettify<{
|
|
861
|
-
image?: string | null;
|
|
862
|
-
name?: string;
|
|
863
|
-
fetchOptions?: FetchOptions | undefined;
|
|
864
|
-
} & Partial<{}>> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
865
|
-
status: boolean;
|
|
866
|
-
}, {
|
|
867
|
-
code?: string;
|
|
868
|
-
message?: string;
|
|
869
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
870
|
-
} & {
|
|
871
|
-
deleteUser: <FetchOptions extends {
|
|
872
|
-
headers?: (HeadersInit & (HeadersInit | {
|
|
873
|
-
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
874
|
-
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
875
|
-
authorization: "Bearer" | "Basic";
|
|
876
|
-
})) | undefined;
|
|
877
|
-
method?: string | undefined;
|
|
878
|
-
signal?: (AbortSignal | null) | undefined;
|
|
879
|
-
cache?: RequestCache | undefined;
|
|
880
|
-
credentials?: RequestCredentials | undefined;
|
|
881
|
-
integrity?: string | undefined;
|
|
882
|
-
keepalive?: boolean | undefined;
|
|
883
|
-
mode?: RequestMode | undefined;
|
|
884
|
-
priority?: RequestPriority | undefined;
|
|
885
|
-
redirect?: RequestRedirect | undefined;
|
|
886
|
-
referrer?: string | undefined;
|
|
887
|
-
referrerPolicy?: ReferrerPolicy | undefined;
|
|
888
|
-
window?: null | undefined;
|
|
889
|
-
onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
|
|
890
|
-
onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
|
|
891
|
-
onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
892
|
-
onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
|
|
893
|
-
onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
|
|
894
|
-
hookOptions?: {
|
|
895
|
-
cloneResponse?: boolean;
|
|
896
|
-
} | undefined;
|
|
897
|
-
timeout?: number | undefined;
|
|
898
|
-
customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
|
|
899
|
-
plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
|
|
900
|
-
baseURL?: string | undefined;
|
|
901
|
-
throw?: boolean | undefined;
|
|
902
|
-
auth?: ({
|
|
903
|
-
type: "Bearer";
|
|
904
|
-
token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
|
|
905
|
-
} | {
|
|
906
|
-
type: "Basic";
|
|
907
|
-
username: string | (() => string | undefined) | undefined;
|
|
908
|
-
password: string | (() => string | undefined) | undefined;
|
|
909
|
-
} | {
|
|
910
|
-
type: "Custom";
|
|
911
|
-
prefix: string | (() => string | undefined) | undefined;
|
|
912
|
-
value: string | (() => string | undefined) | undefined;
|
|
913
|
-
}) | undefined;
|
|
914
|
-
body?: (Partial<{
|
|
915
|
-
callbackURL?: string | undefined;
|
|
916
|
-
password?: string | undefined;
|
|
917
|
-
token?: string | undefined;
|
|
918
|
-
}> & Record<string, any>) | undefined;
|
|
919
|
-
query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
|
|
920
|
-
params?: Record<string, any> | undefined;
|
|
921
|
-
duplex?: "full" | "half" | undefined;
|
|
922
|
-
jsonParser?: ((text: string) => Promise<any> | any) | undefined;
|
|
923
|
-
retry?: _better_fetch_fetch.RetryOptions | undefined;
|
|
924
|
-
retryAttempt?: number | undefined;
|
|
925
|
-
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
926
|
-
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
927
|
-
disableValidation?: boolean | undefined;
|
|
928
|
-
}>(data_0?: better_auth.Prettify<{
|
|
263
|
+
deleteUser: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
929
264
|
callbackURL?: string | undefined;
|
|
930
265
|
password?: string | undefined;
|
|
931
266
|
token?: string | undefined;
|
|
932
|
-
} & {
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
}
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
username: string | (() => string | undefined) | undefined;
|
|
980
|
-
password: string | (() => string | undefined) | undefined;
|
|
981
|
-
} | {
|
|
982
|
-
type: "Custom";
|
|
983
|
-
prefix: string | (() => string | undefined) | undefined;
|
|
984
|
-
value: string | (() => string | undefined) | undefined;
|
|
985
|
-
}) | undefined;
|
|
986
|
-
body?: undefined;
|
|
987
|
-
query?: (Partial<{
|
|
988
|
-
callbackURL: string;
|
|
989
|
-
}> & Record<string, any>) | undefined;
|
|
990
|
-
params?: {
|
|
991
|
-
token: string;
|
|
992
|
-
} | undefined;
|
|
993
|
-
duplex?: "full" | "half" | undefined;
|
|
994
|
-
jsonParser?: ((text: string) => Promise<any> | any) | undefined;
|
|
995
|
-
retry?: _better_fetch_fetch.RetryOptions | undefined;
|
|
996
|
-
retryAttempt?: number | undefined;
|
|
997
|
-
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
998
|
-
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
999
|
-
disableValidation?: boolean | undefined;
|
|
1000
|
-
}>(data_0: better_auth.Prettify<{
|
|
1001
|
-
query: {
|
|
1002
|
-
callbackURL: string;
|
|
1003
|
-
};
|
|
1004
|
-
fetchOptions?: FetchOptions | undefined;
|
|
1005
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<never, {
|
|
1006
|
-
code?: string;
|
|
1007
|
-
message?: string;
|
|
1008
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1009
|
-
};
|
|
1010
|
-
} & {
|
|
1011
|
-
requestPasswordReset: <FetchOptions extends {
|
|
1012
|
-
headers?: (HeadersInit & (HeadersInit | {
|
|
1013
|
-
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
1014
|
-
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
1015
|
-
authorization: "Bearer" | "Basic";
|
|
1016
|
-
})) | undefined;
|
|
1017
|
-
method?: string | undefined;
|
|
1018
|
-
signal?: (AbortSignal | null) | undefined;
|
|
1019
|
-
cache?: RequestCache | undefined;
|
|
1020
|
-
credentials?: RequestCredentials | undefined;
|
|
1021
|
-
integrity?: string | undefined;
|
|
1022
|
-
keepalive?: boolean | undefined;
|
|
1023
|
-
mode?: RequestMode | undefined;
|
|
1024
|
-
priority?: RequestPriority | undefined;
|
|
1025
|
-
redirect?: RequestRedirect | undefined;
|
|
1026
|
-
referrer?: string | undefined;
|
|
1027
|
-
referrerPolicy?: ReferrerPolicy | undefined;
|
|
1028
|
-
window?: null | undefined;
|
|
1029
|
-
onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
|
|
1030
|
-
onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
|
|
1031
|
-
onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
1032
|
-
onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
|
|
1033
|
-
onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
|
|
1034
|
-
hookOptions?: {
|
|
1035
|
-
cloneResponse?: boolean;
|
|
1036
|
-
} | undefined;
|
|
1037
|
-
timeout?: number | undefined;
|
|
1038
|
-
customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
|
|
1039
|
-
plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
|
|
1040
|
-
baseURL?: string | undefined;
|
|
1041
|
-
throw?: boolean | undefined;
|
|
1042
|
-
auth?: ({
|
|
1043
|
-
type: "Bearer";
|
|
1044
|
-
token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
|
|
1045
|
-
} | {
|
|
1046
|
-
type: "Basic";
|
|
1047
|
-
username: string | (() => string | undefined) | undefined;
|
|
1048
|
-
password: string | (() => string | undefined) | undefined;
|
|
1049
|
-
} | {
|
|
1050
|
-
type: "Custom";
|
|
1051
|
-
prefix: string | (() => string | undefined) | undefined;
|
|
1052
|
-
value: string | (() => string | undefined) | undefined;
|
|
1053
|
-
}) | undefined;
|
|
1054
|
-
body?: (Partial<{
|
|
1055
|
-
email: string;
|
|
1056
|
-
redirectTo?: string | undefined;
|
|
1057
|
-
}> & Record<string, any>) | undefined;
|
|
1058
|
-
query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
|
|
1059
|
-
params?: Record<string, any> | undefined;
|
|
1060
|
-
duplex?: "full" | "half" | undefined;
|
|
1061
|
-
jsonParser?: ((text: string) => Promise<any> | any) | undefined;
|
|
1062
|
-
retry?: _better_fetch_fetch.RetryOptions | undefined;
|
|
1063
|
-
retryAttempt?: number | undefined;
|
|
1064
|
-
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
1065
|
-
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
1066
|
-
disableValidation?: boolean | undefined;
|
|
1067
|
-
}>(data_0: better_auth.Prettify<{
|
|
1068
|
-
email: string;
|
|
1069
|
-
redirectTo?: string | undefined;
|
|
1070
|
-
} & {
|
|
1071
|
-
fetchOptions?: FetchOptions | undefined;
|
|
1072
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
1073
|
-
status: boolean;
|
|
1074
|
-
message: string;
|
|
1075
|
-
}, {
|
|
1076
|
-
code?: string;
|
|
1077
|
-
message?: string;
|
|
1078
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1079
|
-
} & {
|
|
1080
|
-
resetPassword: {
|
|
1081
|
-
":token": <FetchOptions extends {
|
|
1082
|
-
headers?: (HeadersInit & (HeadersInit | {
|
|
1083
|
-
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
1084
|
-
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
1085
|
-
authorization: "Bearer" | "Basic";
|
|
1086
|
-
})) | undefined;
|
|
1087
|
-
method?: string | undefined;
|
|
1088
|
-
signal?: (AbortSignal | null) | undefined;
|
|
1089
|
-
cache?: RequestCache | undefined;
|
|
1090
|
-
credentials?: RequestCredentials | undefined;
|
|
1091
|
-
integrity?: string | undefined;
|
|
1092
|
-
keepalive?: boolean | undefined;
|
|
1093
|
-
mode?: RequestMode | undefined;
|
|
1094
|
-
priority?: RequestPriority | undefined;
|
|
1095
|
-
redirect?: RequestRedirect | undefined;
|
|
1096
|
-
referrer?: string | undefined;
|
|
1097
|
-
referrerPolicy?: ReferrerPolicy | undefined;
|
|
1098
|
-
window?: null | undefined;
|
|
1099
|
-
onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
|
|
1100
|
-
onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
|
|
1101
|
-
onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
1102
|
-
onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
|
|
1103
|
-
onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
|
|
1104
|
-
hookOptions?: {
|
|
1105
|
-
cloneResponse?: boolean;
|
|
1106
|
-
} | undefined;
|
|
1107
|
-
timeout?: number | undefined;
|
|
1108
|
-
customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
|
|
1109
|
-
plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
|
|
1110
|
-
baseURL?: string | undefined;
|
|
1111
|
-
throw?: boolean | undefined;
|
|
1112
|
-
auth?: ({
|
|
1113
|
-
type: "Bearer";
|
|
1114
|
-
token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
|
|
1115
|
-
} | {
|
|
1116
|
-
type: "Basic";
|
|
1117
|
-
username: string | (() => string | undefined) | undefined;
|
|
1118
|
-
password: string | (() => string | undefined) | undefined;
|
|
1119
|
-
} | {
|
|
1120
|
-
type: "Custom";
|
|
1121
|
-
prefix: string | (() => string | undefined) | undefined;
|
|
1122
|
-
value: string | (() => string | undefined) | undefined;
|
|
1123
|
-
}) | undefined;
|
|
1124
|
-
body?: undefined;
|
|
1125
|
-
query?: (Partial<{
|
|
1126
|
-
callbackURL: string;
|
|
1127
|
-
}> & Record<string, any>) | undefined;
|
|
1128
|
-
params?: {
|
|
1129
|
-
token: string;
|
|
1130
|
-
} | undefined;
|
|
1131
|
-
duplex?: "full" | "half" | undefined;
|
|
1132
|
-
jsonParser?: ((text: string) => Promise<any> | any) | undefined;
|
|
1133
|
-
retry?: _better_fetch_fetch.RetryOptions | undefined;
|
|
1134
|
-
retryAttempt?: number | undefined;
|
|
1135
|
-
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
1136
|
-
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
1137
|
-
disableValidation?: boolean | undefined;
|
|
1138
|
-
}>(data_0: better_auth.Prettify<{
|
|
1139
|
-
query: {
|
|
1140
|
-
callbackURL: string;
|
|
1141
|
-
};
|
|
1142
|
-
fetchOptions?: FetchOptions | undefined;
|
|
1143
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<never, {
|
|
1144
|
-
code?: string;
|
|
1145
|
-
message?: string;
|
|
1146
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1147
|
-
};
|
|
1148
|
-
} & {
|
|
1149
|
-
listSessions: <FetchOptions extends {
|
|
1150
|
-
headers?: (HeadersInit & (HeadersInit | {
|
|
1151
|
-
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
1152
|
-
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
1153
|
-
authorization: "Bearer" | "Basic";
|
|
1154
|
-
})) | undefined;
|
|
1155
|
-
method?: string | undefined;
|
|
1156
|
-
signal?: (AbortSignal | null) | undefined;
|
|
1157
|
-
cache?: RequestCache | undefined;
|
|
1158
|
-
credentials?: RequestCredentials | undefined;
|
|
1159
|
-
integrity?: string | undefined;
|
|
1160
|
-
keepalive?: boolean | undefined;
|
|
1161
|
-
mode?: RequestMode | undefined;
|
|
1162
|
-
priority?: RequestPriority | undefined;
|
|
1163
|
-
redirect?: RequestRedirect | undefined;
|
|
1164
|
-
referrer?: string | undefined;
|
|
1165
|
-
referrerPolicy?: ReferrerPolicy | undefined;
|
|
1166
|
-
window?: null | undefined;
|
|
1167
|
-
onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
|
|
1168
|
-
onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
|
|
1169
|
-
onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
1170
|
-
onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
|
|
1171
|
-
onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
|
|
1172
|
-
hookOptions?: {
|
|
1173
|
-
cloneResponse?: boolean;
|
|
1174
|
-
} | undefined;
|
|
1175
|
-
timeout?: number | undefined;
|
|
1176
|
-
customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
|
|
1177
|
-
plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
|
|
1178
|
-
baseURL?: string | undefined;
|
|
1179
|
-
throw?: boolean | undefined;
|
|
1180
|
-
auth?: ({
|
|
1181
|
-
type: "Bearer";
|
|
1182
|
-
token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
|
|
1183
|
-
} | {
|
|
1184
|
-
type: "Basic";
|
|
1185
|
-
username: string | (() => string | undefined) | undefined;
|
|
1186
|
-
password: string | (() => string | undefined) | undefined;
|
|
1187
|
-
} | {
|
|
1188
|
-
type: "Custom";
|
|
1189
|
-
prefix: string | (() => string | undefined) | undefined;
|
|
1190
|
-
value: string | (() => string | undefined) | undefined;
|
|
1191
|
-
}) | undefined;
|
|
1192
|
-
body?: undefined;
|
|
1193
|
-
query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
|
|
1194
|
-
params?: Record<string, any> | undefined;
|
|
1195
|
-
duplex?: "full" | "half" | undefined;
|
|
1196
|
-
jsonParser?: ((text: string) => Promise<any> | any) | undefined;
|
|
1197
|
-
retry?: _better_fetch_fetch.RetryOptions | undefined;
|
|
1198
|
-
retryAttempt?: number | undefined;
|
|
1199
|
-
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
1200
|
-
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
1201
|
-
disableValidation?: boolean | undefined;
|
|
1202
|
-
}>(data_0?: better_auth.Prettify<{
|
|
267
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: node_modules_better_auth_dist_helper_DU33OcfW_d_mts.u<{
|
|
268
|
+
callbackURL?: string | undefined;
|
|
269
|
+
password?: string | undefined;
|
|
270
|
+
token?: string | undefined;
|
|
271
|
+
} & {
|
|
272
|
+
fetchOptions?: FetchOptions | undefined;
|
|
273
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
274
|
+
success: boolean;
|
|
275
|
+
message: string;
|
|
276
|
+
}, {
|
|
277
|
+
code?: string | undefined;
|
|
278
|
+
message?: string | undefined;
|
|
279
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
280
|
+
} & {
|
|
281
|
+
requestPasswordReset: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
282
|
+
email: string;
|
|
283
|
+
redirectTo?: string | undefined;
|
|
284
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: node_modules_better_auth_dist_helper_DU33OcfW_d_mts.u<{
|
|
285
|
+
email: string;
|
|
286
|
+
redirectTo?: string | undefined;
|
|
287
|
+
} & {
|
|
288
|
+
fetchOptions?: FetchOptions | undefined;
|
|
289
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
290
|
+
status: boolean;
|
|
291
|
+
message: string;
|
|
292
|
+
}, {
|
|
293
|
+
code?: string | undefined;
|
|
294
|
+
message?: string | undefined;
|
|
295
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
296
|
+
} & {
|
|
297
|
+
resetPassword: {
|
|
298
|
+
":token": <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
|
|
299
|
+
callbackURL: string;
|
|
300
|
+
}> & Record<string, any>, {
|
|
301
|
+
token: string;
|
|
302
|
+
}>>(data_0: node_modules_better_auth_dist_helper_DU33OcfW_d_mts.u<{
|
|
303
|
+
query: {
|
|
304
|
+
callbackURL: string;
|
|
305
|
+
};
|
|
306
|
+
fetchOptions?: FetchOptions | undefined;
|
|
307
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<never, {
|
|
308
|
+
code?: string | undefined;
|
|
309
|
+
message?: string | undefined;
|
|
310
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
311
|
+
};
|
|
312
|
+
} & {
|
|
313
|
+
listSessions: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: node_modules_better_auth_dist_helper_DU33OcfW_d_mts.u<{
|
|
1203
314
|
query?: Record<string, any> | undefined;
|
|
1204
315
|
fetchOptions?: FetchOptions | undefined;
|
|
1205
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<
|
|
316
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<node_modules_better_auth_dist_helper_DU33OcfW_d_mts.u<{
|
|
1206
317
|
id: string;
|
|
1207
318
|
createdAt: Date;
|
|
1208
319
|
updatedAt: Date;
|
|
@@ -1212,270 +323,44 @@ declare const authClient: {
|
|
|
1212
323
|
ipAddress?: string | null | undefined | undefined;
|
|
1213
324
|
userAgent?: string | null | undefined | undefined;
|
|
1214
325
|
}>[], {
|
|
1215
|
-
code?: string;
|
|
1216
|
-
message?: string;
|
|
326
|
+
code?: string | undefined;
|
|
327
|
+
message?: string | undefined;
|
|
1217
328
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1218
329
|
} & {
|
|
1219
|
-
revokeSession: <FetchOptions extends {
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
1223
|
-
authorization: "Bearer" | "Basic";
|
|
1224
|
-
})) | undefined;
|
|
1225
|
-
method?: string | undefined;
|
|
1226
|
-
signal?: (AbortSignal | null) | undefined;
|
|
1227
|
-
cache?: RequestCache | undefined;
|
|
1228
|
-
credentials?: RequestCredentials | undefined;
|
|
1229
|
-
integrity?: string | undefined;
|
|
1230
|
-
keepalive?: boolean | undefined;
|
|
1231
|
-
mode?: RequestMode | undefined;
|
|
1232
|
-
priority?: RequestPriority | undefined;
|
|
1233
|
-
redirect?: RequestRedirect | undefined;
|
|
1234
|
-
referrer?: string | undefined;
|
|
1235
|
-
referrerPolicy?: ReferrerPolicy | undefined;
|
|
1236
|
-
window?: null | undefined;
|
|
1237
|
-
onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
|
|
1238
|
-
onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
|
|
1239
|
-
onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
1240
|
-
onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
|
|
1241
|
-
onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
|
|
1242
|
-
hookOptions?: {
|
|
1243
|
-
cloneResponse?: boolean;
|
|
1244
|
-
} | undefined;
|
|
1245
|
-
timeout?: number | undefined;
|
|
1246
|
-
customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
|
|
1247
|
-
plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
|
|
1248
|
-
baseURL?: string | undefined;
|
|
1249
|
-
throw?: boolean | undefined;
|
|
1250
|
-
auth?: ({
|
|
1251
|
-
type: "Bearer";
|
|
1252
|
-
token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
|
|
1253
|
-
} | {
|
|
1254
|
-
type: "Basic";
|
|
1255
|
-
username: string | (() => string | undefined) | undefined;
|
|
1256
|
-
password: string | (() => string | undefined) | undefined;
|
|
1257
|
-
} | {
|
|
1258
|
-
type: "Custom";
|
|
1259
|
-
prefix: string | (() => string | undefined) | undefined;
|
|
1260
|
-
value: string | (() => string | undefined) | undefined;
|
|
1261
|
-
}) | undefined;
|
|
1262
|
-
body?: (Partial<{
|
|
1263
|
-
token: string;
|
|
1264
|
-
}> & Record<string, any>) | undefined;
|
|
1265
|
-
query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
|
|
1266
|
-
params?: Record<string, any> | undefined;
|
|
1267
|
-
duplex?: "full" | "half" | undefined;
|
|
1268
|
-
jsonParser?: ((text: string) => Promise<any> | any) | undefined;
|
|
1269
|
-
retry?: _better_fetch_fetch.RetryOptions | undefined;
|
|
1270
|
-
retryAttempt?: number | undefined;
|
|
1271
|
-
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
1272
|
-
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
1273
|
-
disableValidation?: boolean | undefined;
|
|
1274
|
-
}>(data_0: better_auth.Prettify<{
|
|
330
|
+
revokeSession: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
331
|
+
token: string;
|
|
332
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: node_modules_better_auth_dist_helper_DU33OcfW_d_mts.u<{
|
|
1275
333
|
token: string;
|
|
1276
334
|
} & {
|
|
1277
335
|
fetchOptions?: FetchOptions | undefined;
|
|
1278
336
|
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
1279
337
|
status: boolean;
|
|
1280
338
|
}, {
|
|
1281
|
-
code?: string;
|
|
1282
|
-
message?: string;
|
|
339
|
+
code?: string | undefined;
|
|
340
|
+
message?: string | undefined;
|
|
1283
341
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1284
342
|
} & {
|
|
1285
|
-
revokeSessions: <FetchOptions extends {
|
|
1286
|
-
headers?: (HeadersInit & (HeadersInit | {
|
|
1287
|
-
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
1288
|
-
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
1289
|
-
authorization: "Bearer" | "Basic";
|
|
1290
|
-
})) | undefined;
|
|
1291
|
-
method?: string | undefined;
|
|
1292
|
-
signal?: (AbortSignal | null) | undefined;
|
|
1293
|
-
cache?: RequestCache | undefined;
|
|
1294
|
-
credentials?: RequestCredentials | undefined;
|
|
1295
|
-
integrity?: string | undefined;
|
|
1296
|
-
keepalive?: boolean | undefined;
|
|
1297
|
-
mode?: RequestMode | undefined;
|
|
1298
|
-
priority?: RequestPriority | undefined;
|
|
1299
|
-
redirect?: RequestRedirect | undefined;
|
|
1300
|
-
referrer?: string | undefined;
|
|
1301
|
-
referrerPolicy?: ReferrerPolicy | undefined;
|
|
1302
|
-
window?: null | undefined;
|
|
1303
|
-
onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
|
|
1304
|
-
onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
|
|
1305
|
-
onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
1306
|
-
onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
|
|
1307
|
-
onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
|
|
1308
|
-
hookOptions?: {
|
|
1309
|
-
cloneResponse?: boolean;
|
|
1310
|
-
} | undefined;
|
|
1311
|
-
timeout?: number | undefined;
|
|
1312
|
-
customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
|
|
1313
|
-
plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
|
|
1314
|
-
baseURL?: string | undefined;
|
|
1315
|
-
throw?: boolean | undefined;
|
|
1316
|
-
auth?: ({
|
|
1317
|
-
type: "Bearer";
|
|
1318
|
-
token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
|
|
1319
|
-
} | {
|
|
1320
|
-
type: "Basic";
|
|
1321
|
-
username: string | (() => string | undefined) | undefined;
|
|
1322
|
-
password: string | (() => string | undefined) | undefined;
|
|
1323
|
-
} | {
|
|
1324
|
-
type: "Custom";
|
|
1325
|
-
prefix: string | (() => string | undefined) | undefined;
|
|
1326
|
-
value: string | (() => string | undefined) | undefined;
|
|
1327
|
-
}) | undefined;
|
|
1328
|
-
body?: undefined;
|
|
1329
|
-
query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
|
|
1330
|
-
params?: Record<string, any> | undefined;
|
|
1331
|
-
duplex?: "full" | "half" | undefined;
|
|
1332
|
-
jsonParser?: ((text: string) => Promise<any> | any) | undefined;
|
|
1333
|
-
retry?: _better_fetch_fetch.RetryOptions | undefined;
|
|
1334
|
-
retryAttempt?: number | undefined;
|
|
1335
|
-
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
1336
|
-
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
1337
|
-
disableValidation?: boolean | undefined;
|
|
1338
|
-
}>(data_0?: better_auth.Prettify<{
|
|
343
|
+
revokeSessions: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: node_modules_better_auth_dist_helper_DU33OcfW_d_mts.u<{
|
|
1339
344
|
query?: Record<string, any> | undefined;
|
|
1340
345
|
fetchOptions?: FetchOptions | undefined;
|
|
1341
346
|
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
1342
347
|
status: boolean;
|
|
1343
348
|
}, {
|
|
1344
|
-
code?: string;
|
|
1345
|
-
message?: string;
|
|
349
|
+
code?: string | undefined;
|
|
350
|
+
message?: string | undefined;
|
|
1346
351
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1347
352
|
} & {
|
|
1348
|
-
revokeOtherSessions: <FetchOptions extends {
|
|
1349
|
-
headers?: (HeadersInit & (HeadersInit | {
|
|
1350
|
-
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
1351
|
-
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
1352
|
-
authorization: "Bearer" | "Basic";
|
|
1353
|
-
})) | undefined;
|
|
1354
|
-
method?: string | undefined;
|
|
1355
|
-
signal?: (AbortSignal | null) | undefined;
|
|
1356
|
-
cache?: RequestCache | undefined;
|
|
1357
|
-
credentials?: RequestCredentials | undefined;
|
|
1358
|
-
integrity?: string | undefined;
|
|
1359
|
-
keepalive?: boolean | undefined;
|
|
1360
|
-
mode?: RequestMode | undefined;
|
|
1361
|
-
priority?: RequestPriority | undefined;
|
|
1362
|
-
redirect?: RequestRedirect | undefined;
|
|
1363
|
-
referrer?: string | undefined;
|
|
1364
|
-
referrerPolicy?: ReferrerPolicy | undefined;
|
|
1365
|
-
window?: null | undefined;
|
|
1366
|
-
onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
|
|
1367
|
-
onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
|
|
1368
|
-
onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
1369
|
-
onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
|
|
1370
|
-
onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
|
|
1371
|
-
hookOptions?: {
|
|
1372
|
-
cloneResponse?: boolean;
|
|
1373
|
-
} | undefined;
|
|
1374
|
-
timeout?: number | undefined;
|
|
1375
|
-
customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
|
|
1376
|
-
plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
|
|
1377
|
-
baseURL?: string | undefined;
|
|
1378
|
-
throw?: boolean | undefined;
|
|
1379
|
-
auth?: ({
|
|
1380
|
-
type: "Bearer";
|
|
1381
|
-
token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
|
|
1382
|
-
} | {
|
|
1383
|
-
type: "Basic";
|
|
1384
|
-
username: string | (() => string | undefined) | undefined;
|
|
1385
|
-
password: string | (() => string | undefined) | undefined;
|
|
1386
|
-
} | {
|
|
1387
|
-
type: "Custom";
|
|
1388
|
-
prefix: string | (() => string | undefined) | undefined;
|
|
1389
|
-
value: string | (() => string | undefined) | undefined;
|
|
1390
|
-
}) | undefined;
|
|
1391
|
-
body?: undefined;
|
|
1392
|
-
query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
|
|
1393
|
-
params?: Record<string, any> | undefined;
|
|
1394
|
-
duplex?: "full" | "half" | undefined;
|
|
1395
|
-
jsonParser?: ((text: string) => Promise<any> | any) | undefined;
|
|
1396
|
-
retry?: _better_fetch_fetch.RetryOptions | undefined;
|
|
1397
|
-
retryAttempt?: number | undefined;
|
|
1398
|
-
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
1399
|
-
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
1400
|
-
disableValidation?: boolean | undefined;
|
|
1401
|
-
}>(data_0?: better_auth.Prettify<{
|
|
353
|
+
revokeOtherSessions: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: node_modules_better_auth_dist_helper_DU33OcfW_d_mts.u<{
|
|
1402
354
|
query?: Record<string, any> | undefined;
|
|
1403
355
|
fetchOptions?: FetchOptions | undefined;
|
|
1404
356
|
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
1405
357
|
status: boolean;
|
|
1406
358
|
}, {
|
|
1407
|
-
code?: string;
|
|
1408
|
-
message?: string;
|
|
359
|
+
code?: string | undefined;
|
|
360
|
+
message?: string | undefined;
|
|
1409
361
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1410
362
|
} & {
|
|
1411
|
-
linkSocial: <FetchOptions extends {
|
|
1412
|
-
headers?: (HeadersInit & (HeadersInit | {
|
|
1413
|
-
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
1414
|
-
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
1415
|
-
authorization: "Bearer" | "Basic";
|
|
1416
|
-
})) | undefined;
|
|
1417
|
-
method?: string | undefined;
|
|
1418
|
-
signal?: (AbortSignal | null) | undefined;
|
|
1419
|
-
cache?: RequestCache | undefined;
|
|
1420
|
-
credentials?: RequestCredentials | undefined;
|
|
1421
|
-
integrity?: string | undefined;
|
|
1422
|
-
keepalive?: boolean | undefined;
|
|
1423
|
-
mode?: RequestMode | undefined;
|
|
1424
|
-
priority?: RequestPriority | undefined;
|
|
1425
|
-
redirect?: RequestRedirect | undefined;
|
|
1426
|
-
referrer?: string | undefined;
|
|
1427
|
-
referrerPolicy?: ReferrerPolicy | undefined;
|
|
1428
|
-
window?: null | undefined;
|
|
1429
|
-
onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
|
|
1430
|
-
onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
|
|
1431
|
-
onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
1432
|
-
onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
|
|
1433
|
-
onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
|
|
1434
|
-
hookOptions?: {
|
|
1435
|
-
cloneResponse?: boolean;
|
|
1436
|
-
} | undefined;
|
|
1437
|
-
timeout?: number | undefined;
|
|
1438
|
-
customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
|
|
1439
|
-
plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
|
|
1440
|
-
baseURL?: string | undefined;
|
|
1441
|
-
throw?: boolean | undefined;
|
|
1442
|
-
auth?: ({
|
|
1443
|
-
type: "Bearer";
|
|
1444
|
-
token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
|
|
1445
|
-
} | {
|
|
1446
|
-
type: "Basic";
|
|
1447
|
-
username: string | (() => string | undefined) | undefined;
|
|
1448
|
-
password: string | (() => string | undefined) | undefined;
|
|
1449
|
-
} | {
|
|
1450
|
-
type: "Custom";
|
|
1451
|
-
prefix: string | (() => string | undefined) | undefined;
|
|
1452
|
-
value: string | (() => string | undefined) | undefined;
|
|
1453
|
-
}) | undefined;
|
|
1454
|
-
body?: (Partial<{
|
|
1455
|
-
provider: unknown;
|
|
1456
|
-
callbackURL?: string | undefined;
|
|
1457
|
-
idToken?: {
|
|
1458
|
-
token: string;
|
|
1459
|
-
nonce?: string | undefined;
|
|
1460
|
-
accessToken?: string | undefined;
|
|
1461
|
-
refreshToken?: string | undefined;
|
|
1462
|
-
scopes?: string[] | undefined;
|
|
1463
|
-
} | undefined;
|
|
1464
|
-
requestSignUp?: boolean | undefined;
|
|
1465
|
-
scopes?: string[] | undefined;
|
|
1466
|
-
errorCallbackURL?: string | undefined;
|
|
1467
|
-
disableRedirect?: boolean | undefined;
|
|
1468
|
-
}> & Record<string, any>) | undefined;
|
|
1469
|
-
query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
|
|
1470
|
-
params?: Record<string, any> | undefined;
|
|
1471
|
-
duplex?: "full" | "half" | undefined;
|
|
1472
|
-
jsonParser?: ((text: string) => Promise<any> | any) | undefined;
|
|
1473
|
-
retry?: _better_fetch_fetch.RetryOptions | undefined;
|
|
1474
|
-
retryAttempt?: number | undefined;
|
|
1475
|
-
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
1476
|
-
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
1477
|
-
disableValidation?: boolean | undefined;
|
|
1478
|
-
}>(data_0: better_auth.Prettify<{
|
|
363
|
+
linkSocial: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
1479
364
|
provider: unknown;
|
|
1480
365
|
callbackURL?: string | undefined;
|
|
1481
366
|
idToken?: {
|
|
@@ -1489,70 +374,33 @@ declare const authClient: {
|
|
|
1489
374
|
scopes?: string[] | undefined;
|
|
1490
375
|
errorCallbackURL?: string | undefined;
|
|
1491
376
|
disableRedirect?: boolean | undefined;
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
window?: null | undefined;
|
|
1520
|
-
onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
|
|
1521
|
-
onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
|
|
1522
|
-
onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
1523
|
-
onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
|
|
1524
|
-
onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
|
|
1525
|
-
hookOptions?: {
|
|
1526
|
-
cloneResponse?: boolean;
|
|
1527
|
-
} | undefined;
|
|
1528
|
-
timeout?: number | undefined;
|
|
1529
|
-
customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
|
|
1530
|
-
plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
|
|
1531
|
-
baseURL?: string | undefined;
|
|
1532
|
-
throw?: boolean | undefined;
|
|
1533
|
-
auth?: ({
|
|
1534
|
-
type: "Bearer";
|
|
1535
|
-
token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
|
|
1536
|
-
} | {
|
|
1537
|
-
type: "Basic";
|
|
1538
|
-
username: string | (() => string | undefined) | undefined;
|
|
1539
|
-
password: string | (() => string | undefined) | undefined;
|
|
1540
|
-
} | {
|
|
1541
|
-
type: "Custom";
|
|
1542
|
-
prefix: string | (() => string | undefined) | undefined;
|
|
1543
|
-
value: string | (() => string | undefined) | undefined;
|
|
1544
|
-
}) | undefined;
|
|
1545
|
-
body?: undefined;
|
|
1546
|
-
query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
|
|
1547
|
-
params?: Record<string, any> | undefined;
|
|
1548
|
-
duplex?: "full" | "half" | undefined;
|
|
1549
|
-
jsonParser?: ((text: string) => Promise<any> | any) | undefined;
|
|
1550
|
-
retry?: _better_fetch_fetch.RetryOptions | undefined;
|
|
1551
|
-
retryAttempt?: number | undefined;
|
|
1552
|
-
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
1553
|
-
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
1554
|
-
disableValidation?: boolean | undefined;
|
|
1555
|
-
}>(data_0?: better_auth.Prettify<{
|
|
377
|
+
additionalData?: Record<string, any> | undefined;
|
|
378
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: node_modules_better_auth_dist_helper_DU33OcfW_d_mts.u<{
|
|
379
|
+
provider: unknown;
|
|
380
|
+
callbackURL?: string | undefined;
|
|
381
|
+
idToken?: {
|
|
382
|
+
token: string;
|
|
383
|
+
nonce?: string | undefined;
|
|
384
|
+
accessToken?: string | undefined;
|
|
385
|
+
refreshToken?: string | undefined;
|
|
386
|
+
scopes?: string[] | undefined;
|
|
387
|
+
} | undefined;
|
|
388
|
+
requestSignUp?: boolean | undefined;
|
|
389
|
+
scopes?: string[] | undefined;
|
|
390
|
+
errorCallbackURL?: string | undefined;
|
|
391
|
+
disableRedirect?: boolean | undefined;
|
|
392
|
+
additionalData?: Record<string, any> | undefined;
|
|
393
|
+
} & {
|
|
394
|
+
fetchOptions?: FetchOptions | undefined;
|
|
395
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
396
|
+
url: string;
|
|
397
|
+
redirect: boolean;
|
|
398
|
+
}, {
|
|
399
|
+
code?: string | undefined;
|
|
400
|
+
message?: string | undefined;
|
|
401
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
402
|
+
} & {
|
|
403
|
+
listAccounts: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: node_modules_better_auth_dist_helper_DU33OcfW_d_mts.u<{
|
|
1556
404
|
query?: Record<string, any> | undefined;
|
|
1557
405
|
fetchOptions?: FetchOptions | undefined;
|
|
1558
406
|
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
@@ -1561,70 +409,18 @@ declare const authClient: {
|
|
|
1561
409
|
createdAt: Date;
|
|
1562
410
|
updatedAt: Date;
|
|
1563
411
|
accountId: string;
|
|
412
|
+
userId: string;
|
|
1564
413
|
scopes: string[];
|
|
1565
414
|
}[], {
|
|
1566
|
-
code?: string;
|
|
1567
|
-
message?: string;
|
|
415
|
+
code?: string | undefined;
|
|
416
|
+
message?: string | undefined;
|
|
1568
417
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1569
418
|
} & {
|
|
1570
419
|
deleteUser: {
|
|
1571
|
-
callback: <FetchOptions extends {
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
authorization: "Bearer" | "Basic";
|
|
1576
|
-
})) | undefined;
|
|
1577
|
-
method?: string | undefined;
|
|
1578
|
-
signal?: (AbortSignal | null) | undefined;
|
|
1579
|
-
cache?: RequestCache | undefined;
|
|
1580
|
-
credentials?: RequestCredentials | undefined;
|
|
1581
|
-
integrity?: string | undefined;
|
|
1582
|
-
keepalive?: boolean | undefined;
|
|
1583
|
-
mode?: RequestMode | undefined;
|
|
1584
|
-
priority?: RequestPriority | undefined;
|
|
1585
|
-
redirect?: RequestRedirect | undefined;
|
|
1586
|
-
referrer?: string | undefined;
|
|
1587
|
-
referrerPolicy?: ReferrerPolicy | undefined;
|
|
1588
|
-
window?: null | undefined;
|
|
1589
|
-
onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
|
|
1590
|
-
onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
|
|
1591
|
-
onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
1592
|
-
onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
|
|
1593
|
-
onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
|
|
1594
|
-
hookOptions?: {
|
|
1595
|
-
cloneResponse?: boolean;
|
|
1596
|
-
} | undefined;
|
|
1597
|
-
timeout?: number | undefined;
|
|
1598
|
-
customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
|
|
1599
|
-
plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
|
|
1600
|
-
baseURL?: string | undefined;
|
|
1601
|
-
throw?: boolean | undefined;
|
|
1602
|
-
auth?: ({
|
|
1603
|
-
type: "Bearer";
|
|
1604
|
-
token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
|
|
1605
|
-
} | {
|
|
1606
|
-
type: "Basic";
|
|
1607
|
-
username: string | (() => string | undefined) | undefined;
|
|
1608
|
-
password: string | (() => string | undefined) | undefined;
|
|
1609
|
-
} | {
|
|
1610
|
-
type: "Custom";
|
|
1611
|
-
prefix: string | (() => string | undefined) | undefined;
|
|
1612
|
-
value: string | (() => string | undefined) | undefined;
|
|
1613
|
-
}) | undefined;
|
|
1614
|
-
body?: undefined;
|
|
1615
|
-
query?: (Partial<{
|
|
1616
|
-
token: string;
|
|
1617
|
-
callbackURL?: string | undefined;
|
|
1618
|
-
}> & Record<string, any>) | undefined;
|
|
1619
|
-
params?: Record<string, any> | undefined;
|
|
1620
|
-
duplex?: "full" | "half" | undefined;
|
|
1621
|
-
jsonParser?: ((text: string) => Promise<any> | any) | undefined;
|
|
1622
|
-
retry?: _better_fetch_fetch.RetryOptions | undefined;
|
|
1623
|
-
retryAttempt?: number | undefined;
|
|
1624
|
-
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
1625
|
-
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
1626
|
-
disableValidation?: boolean | undefined;
|
|
1627
|
-
}>(data_0: better_auth.Prettify<{
|
|
420
|
+
callback: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
|
|
421
|
+
token: string;
|
|
422
|
+
callbackURL?: string | undefined;
|
|
423
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: node_modules_better_auth_dist_helper_DU33OcfW_d_mts.u<{
|
|
1628
424
|
query: {
|
|
1629
425
|
token: string;
|
|
1630
426
|
callbackURL?: string | undefined;
|
|
@@ -1634,68 +430,15 @@ declare const authClient: {
|
|
|
1634
430
|
success: boolean;
|
|
1635
431
|
message: string;
|
|
1636
432
|
}, {
|
|
1637
|
-
code?: string;
|
|
1638
|
-
message?: string;
|
|
433
|
+
code?: string | undefined;
|
|
434
|
+
message?: string | undefined;
|
|
1639
435
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1640
436
|
};
|
|
1641
437
|
} & {
|
|
1642
|
-
unlinkAccount: <FetchOptions extends {
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
authorization: "Bearer" | "Basic";
|
|
1647
|
-
})) | undefined;
|
|
1648
|
-
method?: string | undefined;
|
|
1649
|
-
signal?: (AbortSignal | null) | undefined;
|
|
1650
|
-
cache?: RequestCache | undefined;
|
|
1651
|
-
credentials?: RequestCredentials | undefined;
|
|
1652
|
-
integrity?: string | undefined;
|
|
1653
|
-
keepalive?: boolean | undefined;
|
|
1654
|
-
mode?: RequestMode | undefined;
|
|
1655
|
-
priority?: RequestPriority | undefined;
|
|
1656
|
-
redirect?: RequestRedirect | undefined;
|
|
1657
|
-
referrer?: string | undefined;
|
|
1658
|
-
referrerPolicy?: ReferrerPolicy | undefined;
|
|
1659
|
-
window?: null | undefined;
|
|
1660
|
-
onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
|
|
1661
|
-
onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
|
|
1662
|
-
onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
1663
|
-
onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
|
|
1664
|
-
onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
|
|
1665
|
-
hookOptions?: {
|
|
1666
|
-
cloneResponse?: boolean;
|
|
1667
|
-
} | undefined;
|
|
1668
|
-
timeout?: number | undefined;
|
|
1669
|
-
customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
|
|
1670
|
-
plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
|
|
1671
|
-
baseURL?: string | undefined;
|
|
1672
|
-
throw?: boolean | undefined;
|
|
1673
|
-
auth?: ({
|
|
1674
|
-
type: "Bearer";
|
|
1675
|
-
token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
|
|
1676
|
-
} | {
|
|
1677
|
-
type: "Basic";
|
|
1678
|
-
username: string | (() => string | undefined) | undefined;
|
|
1679
|
-
password: string | (() => string | undefined) | undefined;
|
|
1680
|
-
} | {
|
|
1681
|
-
type: "Custom";
|
|
1682
|
-
prefix: string | (() => string | undefined) | undefined;
|
|
1683
|
-
value: string | (() => string | undefined) | undefined;
|
|
1684
|
-
}) | undefined;
|
|
1685
|
-
body?: (Partial<{
|
|
1686
|
-
providerId: string;
|
|
1687
|
-
accountId?: string | undefined;
|
|
1688
|
-
}> & Record<string, any>) | undefined;
|
|
1689
|
-
query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
|
|
1690
|
-
params?: Record<string, any> | undefined;
|
|
1691
|
-
duplex?: "full" | "half" | undefined;
|
|
1692
|
-
jsonParser?: ((text: string) => Promise<any> | any) | undefined;
|
|
1693
|
-
retry?: _better_fetch_fetch.RetryOptions | undefined;
|
|
1694
|
-
retryAttempt?: number | undefined;
|
|
1695
|
-
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
1696
|
-
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
1697
|
-
disableValidation?: boolean | undefined;
|
|
1698
|
-
}>(data_0: better_auth.Prettify<{
|
|
438
|
+
unlinkAccount: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
439
|
+
providerId: string;
|
|
440
|
+
accountId?: string | undefined;
|
|
441
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: node_modules_better_auth_dist_helper_DU33OcfW_d_mts.u<{
|
|
1699
442
|
providerId: string;
|
|
1700
443
|
accountId?: string | undefined;
|
|
1701
444
|
} & {
|
|
@@ -1703,136 +446,39 @@ declare const authClient: {
|
|
|
1703
446
|
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
1704
447
|
status: boolean;
|
|
1705
448
|
}, {
|
|
1706
|
-
code?: string;
|
|
1707
|
-
message?: string;
|
|
449
|
+
code?: string | undefined;
|
|
450
|
+
message?: string | undefined;
|
|
1708
451
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1709
452
|
} & {
|
|
1710
|
-
refreshToken: <FetchOptions extends {
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
})) | undefined;
|
|
1716
|
-
method?: string | undefined;
|
|
1717
|
-
signal?: (AbortSignal | null) | undefined;
|
|
1718
|
-
cache?: RequestCache | undefined;
|
|
1719
|
-
credentials?: RequestCredentials | undefined;
|
|
1720
|
-
integrity?: string | undefined;
|
|
1721
|
-
keepalive?: boolean | undefined;
|
|
1722
|
-
mode?: RequestMode | undefined;
|
|
1723
|
-
priority?: RequestPriority | undefined;
|
|
1724
|
-
redirect?: RequestRedirect | undefined;
|
|
1725
|
-
referrer?: string | undefined;
|
|
1726
|
-
referrerPolicy?: ReferrerPolicy | undefined;
|
|
1727
|
-
window?: null | undefined;
|
|
1728
|
-
onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
|
|
1729
|
-
onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
|
|
1730
|
-
onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
1731
|
-
onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
|
|
1732
|
-
onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
|
|
1733
|
-
hookOptions?: {
|
|
1734
|
-
cloneResponse?: boolean;
|
|
1735
|
-
} | undefined;
|
|
1736
|
-
timeout?: number | undefined;
|
|
1737
|
-
customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
|
|
1738
|
-
plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
|
|
1739
|
-
baseURL?: string | undefined;
|
|
1740
|
-
throw?: boolean | undefined;
|
|
1741
|
-
auth?: ({
|
|
1742
|
-
type: "Bearer";
|
|
1743
|
-
token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
|
|
1744
|
-
} | {
|
|
1745
|
-
type: "Basic";
|
|
1746
|
-
username: string | (() => string | undefined) | undefined;
|
|
1747
|
-
password: string | (() => string | undefined) | undefined;
|
|
1748
|
-
} | {
|
|
1749
|
-
type: "Custom";
|
|
1750
|
-
prefix: string | (() => string | undefined) | undefined;
|
|
1751
|
-
value: string | (() => string | undefined) | undefined;
|
|
1752
|
-
}) | undefined;
|
|
1753
|
-
body?: (Partial<{
|
|
1754
|
-
providerId: string;
|
|
1755
|
-
accountId?: string | undefined;
|
|
1756
|
-
userId?: string | undefined;
|
|
1757
|
-
}> & Record<string, any>) | undefined;
|
|
1758
|
-
query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
|
|
1759
|
-
params?: Record<string, any> | undefined;
|
|
1760
|
-
duplex?: "full" | "half" | undefined;
|
|
1761
|
-
jsonParser?: ((text: string) => Promise<any> | any) | undefined;
|
|
1762
|
-
retry?: _better_fetch_fetch.RetryOptions | undefined;
|
|
1763
|
-
retryAttempt?: number | undefined;
|
|
1764
|
-
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
1765
|
-
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
1766
|
-
disableValidation?: boolean | undefined;
|
|
1767
|
-
}>(data_0: better_auth.Prettify<{
|
|
453
|
+
refreshToken: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
454
|
+
providerId: string;
|
|
455
|
+
accountId?: string | undefined;
|
|
456
|
+
userId?: string | undefined;
|
|
457
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: node_modules_better_auth_dist_helper_DU33OcfW_d_mts.u<{
|
|
1768
458
|
providerId: string;
|
|
1769
459
|
accountId?: string | undefined;
|
|
1770
460
|
userId?: string | undefined;
|
|
1771
461
|
} & {
|
|
1772
462
|
fetchOptions?: FetchOptions | undefined;
|
|
1773
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<
|
|
1774
|
-
|
|
1775
|
-
|
|
463
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
464
|
+
accessToken: string | undefined;
|
|
465
|
+
refreshToken: string | undefined;
|
|
466
|
+
accessTokenExpiresAt: Date | undefined;
|
|
467
|
+
refreshTokenExpiresAt: Date | undefined;
|
|
468
|
+
scope: string | null | undefined;
|
|
469
|
+
idToken: string | null | undefined;
|
|
470
|
+
providerId: string;
|
|
471
|
+
accountId: string;
|
|
472
|
+
}, {
|
|
473
|
+
code?: string | undefined;
|
|
474
|
+
message?: string | undefined;
|
|
1776
475
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1777
476
|
} & {
|
|
1778
|
-
getAccessToken: <FetchOptions extends {
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
})) | undefined;
|
|
1784
|
-
method?: string | undefined;
|
|
1785
|
-
signal?: (AbortSignal | null) | undefined;
|
|
1786
|
-
cache?: RequestCache | undefined;
|
|
1787
|
-
credentials?: RequestCredentials | undefined;
|
|
1788
|
-
integrity?: string | undefined;
|
|
1789
|
-
keepalive?: boolean | undefined;
|
|
1790
|
-
mode?: RequestMode | undefined;
|
|
1791
|
-
priority?: RequestPriority | undefined;
|
|
1792
|
-
redirect?: RequestRedirect | undefined;
|
|
1793
|
-
referrer?: string | undefined;
|
|
1794
|
-
referrerPolicy?: ReferrerPolicy | undefined;
|
|
1795
|
-
window?: null | undefined;
|
|
1796
|
-
onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
|
|
1797
|
-
onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
|
|
1798
|
-
onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
1799
|
-
onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
|
|
1800
|
-
onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
|
|
1801
|
-
hookOptions?: {
|
|
1802
|
-
cloneResponse?: boolean;
|
|
1803
|
-
} | undefined;
|
|
1804
|
-
timeout?: number | undefined;
|
|
1805
|
-
customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
|
|
1806
|
-
plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
|
|
1807
|
-
baseURL?: string | undefined;
|
|
1808
|
-
throw?: boolean | undefined;
|
|
1809
|
-
auth?: ({
|
|
1810
|
-
type: "Bearer";
|
|
1811
|
-
token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
|
|
1812
|
-
} | {
|
|
1813
|
-
type: "Basic";
|
|
1814
|
-
username: string | (() => string | undefined) | undefined;
|
|
1815
|
-
password: string | (() => string | undefined) | undefined;
|
|
1816
|
-
} | {
|
|
1817
|
-
type: "Custom";
|
|
1818
|
-
prefix: string | (() => string | undefined) | undefined;
|
|
1819
|
-
value: string | (() => string | undefined) | undefined;
|
|
1820
|
-
}) | undefined;
|
|
1821
|
-
body?: (Partial<{
|
|
1822
|
-
providerId: string;
|
|
1823
|
-
accountId?: string | undefined;
|
|
1824
|
-
userId?: string | undefined;
|
|
1825
|
-
}> & Record<string, any>) | undefined;
|
|
1826
|
-
query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
|
|
1827
|
-
params?: Record<string, any> | undefined;
|
|
1828
|
-
duplex?: "full" | "half" | undefined;
|
|
1829
|
-
jsonParser?: ((text: string) => Promise<any> | any) | undefined;
|
|
1830
|
-
retry?: _better_fetch_fetch.RetryOptions | undefined;
|
|
1831
|
-
retryAttempt?: number | undefined;
|
|
1832
|
-
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
1833
|
-
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
1834
|
-
disableValidation?: boolean | undefined;
|
|
1835
|
-
}>(data_0: better_auth.Prettify<{
|
|
477
|
+
getAccessToken: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
478
|
+
providerId: string;
|
|
479
|
+
accountId?: string | undefined;
|
|
480
|
+
userId?: string | undefined;
|
|
481
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: node_modules_better_auth_dist_helper_DU33OcfW_d_mts.u<{
|
|
1836
482
|
providerId: string;
|
|
1837
483
|
accountId?: string | undefined;
|
|
1838
484
|
userId?: string | undefined;
|
|
@@ -1844,134 +490,29 @@ declare const authClient: {
|
|
|
1844
490
|
scopes: string[];
|
|
1845
491
|
idToken: string | undefined;
|
|
1846
492
|
}, {
|
|
1847
|
-
code?: string;
|
|
1848
|
-
message?: string;
|
|
493
|
+
code?: string | undefined;
|
|
494
|
+
message?: string | undefined;
|
|
1849
495
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1850
496
|
} & {
|
|
1851
|
-
accountInfo: <FetchOptions extends {
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
})) | undefined;
|
|
1857
|
-
method?: string | undefined;
|
|
1858
|
-
signal?: (AbortSignal | null) | undefined;
|
|
1859
|
-
cache?: RequestCache | undefined;
|
|
1860
|
-
credentials?: RequestCredentials | undefined;
|
|
1861
|
-
integrity?: string | undefined;
|
|
1862
|
-
keepalive?: boolean | undefined;
|
|
1863
|
-
mode?: RequestMode | undefined;
|
|
1864
|
-
priority?: RequestPriority | undefined;
|
|
1865
|
-
redirect?: RequestRedirect | undefined;
|
|
1866
|
-
referrer?: string | undefined;
|
|
1867
|
-
referrerPolicy?: ReferrerPolicy | undefined;
|
|
1868
|
-
window?: null | undefined;
|
|
1869
|
-
onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
|
|
1870
|
-
onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
|
|
1871
|
-
onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
1872
|
-
onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
|
|
1873
|
-
onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
|
|
1874
|
-
hookOptions?: {
|
|
1875
|
-
cloneResponse?: boolean;
|
|
497
|
+
accountInfo: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
|
|
498
|
+
accountId?: string | undefined;
|
|
499
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: node_modules_better_auth_dist_helper_DU33OcfW_d_mts.u<{
|
|
500
|
+
query?: {
|
|
501
|
+
accountId?: string | undefined;
|
|
1876
502
|
} | undefined;
|
|
1877
|
-
timeout?: number | undefined;
|
|
1878
|
-
customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
|
|
1879
|
-
plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
|
|
1880
|
-
baseURL?: string | undefined;
|
|
1881
|
-
throw?: boolean | undefined;
|
|
1882
|
-
auth?: ({
|
|
1883
|
-
type: "Bearer";
|
|
1884
|
-
token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
|
|
1885
|
-
} | {
|
|
1886
|
-
type: "Basic";
|
|
1887
|
-
username: string | (() => string | undefined) | undefined;
|
|
1888
|
-
password: string | (() => string | undefined) | undefined;
|
|
1889
|
-
} | {
|
|
1890
|
-
type: "Custom";
|
|
1891
|
-
prefix: string | (() => string | undefined) | undefined;
|
|
1892
|
-
value: string | (() => string | undefined) | undefined;
|
|
1893
|
-
}) | undefined;
|
|
1894
|
-
body?: (Partial<{
|
|
1895
|
-
accountId: string;
|
|
1896
|
-
}> & Record<string, any>) | undefined;
|
|
1897
|
-
query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
|
|
1898
|
-
params?: Record<string, any> | undefined;
|
|
1899
|
-
duplex?: "full" | "half" | undefined;
|
|
1900
|
-
jsonParser?: ((text: string) => Promise<any> | any) | undefined;
|
|
1901
|
-
retry?: _better_fetch_fetch.RetryOptions | undefined;
|
|
1902
|
-
retryAttempt?: number | undefined;
|
|
1903
|
-
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
1904
|
-
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
1905
|
-
disableValidation?: boolean | undefined;
|
|
1906
|
-
}>(data_0: better_auth.Prettify<{
|
|
1907
|
-
accountId: string;
|
|
1908
|
-
} & {
|
|
1909
503
|
fetchOptions?: FetchOptions | undefined;
|
|
1910
|
-
}
|
|
1911
|
-
user:
|
|
504
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
505
|
+
user: better_auth.OAuth2UserInfo;
|
|
1912
506
|
data: Record<string, any>;
|
|
1913
507
|
}, {
|
|
1914
|
-
code?: string;
|
|
1915
|
-
message?: string;
|
|
508
|
+
code?: string | undefined;
|
|
509
|
+
message?: string | undefined;
|
|
1916
510
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1917
511
|
} & {
|
|
1918
|
-
getSession: <FetchOptions extends {
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
authorization: "Bearer" | "Basic";
|
|
1923
|
-
})) | undefined;
|
|
1924
|
-
method?: string | undefined;
|
|
1925
|
-
signal?: (AbortSignal | null) | undefined;
|
|
1926
|
-
cache?: RequestCache | undefined;
|
|
1927
|
-
credentials?: RequestCredentials | undefined;
|
|
1928
|
-
integrity?: string | undefined;
|
|
1929
|
-
keepalive?: boolean | undefined;
|
|
1930
|
-
mode?: RequestMode | undefined;
|
|
1931
|
-
priority?: RequestPriority | undefined;
|
|
1932
|
-
redirect?: RequestRedirect | undefined;
|
|
1933
|
-
referrer?: string | undefined;
|
|
1934
|
-
referrerPolicy?: ReferrerPolicy | undefined;
|
|
1935
|
-
window?: null | undefined;
|
|
1936
|
-
onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
|
|
1937
|
-
onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
|
|
1938
|
-
onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
1939
|
-
onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
|
|
1940
|
-
onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
|
|
1941
|
-
hookOptions?: {
|
|
1942
|
-
cloneResponse?: boolean;
|
|
1943
|
-
} | undefined;
|
|
1944
|
-
timeout?: number | undefined;
|
|
1945
|
-
customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
|
|
1946
|
-
plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
|
|
1947
|
-
baseURL?: string | undefined;
|
|
1948
|
-
throw?: boolean | undefined;
|
|
1949
|
-
auth?: ({
|
|
1950
|
-
type: "Bearer";
|
|
1951
|
-
token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
|
|
1952
|
-
} | {
|
|
1953
|
-
type: "Basic";
|
|
1954
|
-
username: string | (() => string | undefined) | undefined;
|
|
1955
|
-
password: string | (() => string | undefined) | undefined;
|
|
1956
|
-
} | {
|
|
1957
|
-
type: "Custom";
|
|
1958
|
-
prefix: string | (() => string | undefined) | undefined;
|
|
1959
|
-
value: string | (() => string | undefined) | undefined;
|
|
1960
|
-
}) | undefined;
|
|
1961
|
-
body?: undefined;
|
|
1962
|
-
query?: (Partial<{
|
|
1963
|
-
disableCookieCache?: unknown;
|
|
1964
|
-
disableRefresh?: unknown;
|
|
1965
|
-
}> & Record<string, any>) | undefined;
|
|
1966
|
-
params?: Record<string, any> | undefined;
|
|
1967
|
-
duplex?: "full" | "half" | undefined;
|
|
1968
|
-
jsonParser?: ((text: string) => Promise<any> | any) | undefined;
|
|
1969
|
-
retry?: _better_fetch_fetch.RetryOptions | undefined;
|
|
1970
|
-
retryAttempt?: number | undefined;
|
|
1971
|
-
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
1972
|
-
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
1973
|
-
disableValidation?: boolean | undefined;
|
|
1974
|
-
}>(data_0?: better_auth.Prettify<{
|
|
512
|
+
getSession: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
|
|
513
|
+
disableCookieCache?: unknown;
|
|
514
|
+
disableRefresh?: unknown;
|
|
515
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: node_modules_better_auth_dist_helper_DU33OcfW_d_mts.u<{
|
|
1975
516
|
query?: {
|
|
1976
517
|
disableCookieCache?: unknown;
|
|
1977
518
|
disableRefresh?: unknown;
|
|
@@ -1998,8 +539,8 @@ declare const authClient: {
|
|
|
1998
539
|
userAgent?: string | null | undefined;
|
|
1999
540
|
};
|
|
2000
541
|
} | null, {
|
|
2001
|
-
code?: string;
|
|
2002
|
-
message?: string;
|
|
542
|
+
code?: string | undefined;
|
|
543
|
+
message?: string | undefined;
|
|
2003
544
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
2004
545
|
} & {
|
|
2005
546
|
useSession: () => {
|
|
@@ -2029,7 +570,7 @@ declare const authClient: {
|
|
|
2029
570
|
error: _better_fetch_fetch.BetterFetchError | null;
|
|
2030
571
|
refetch: (queryParams?: {
|
|
2031
572
|
query?: better_auth.SessionQueryParams;
|
|
2032
|
-
}) => void
|
|
573
|
+
} | undefined) => Promise<void>;
|
|
2033
574
|
};
|
|
2034
575
|
$Infer: {
|
|
2035
576
|
Session: {
|
|
@@ -2059,18 +600,25 @@ declare const authClient: {
|
|
|
2059
600
|
id: string;
|
|
2060
601
|
name: string;
|
|
2061
602
|
hooks: {
|
|
2062
|
-
onSuccess
|
|
2063
|
-
onError: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
|
|
2064
|
-
onRequest: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
|
|
2065
|
-
onResponse: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
|
|
603
|
+
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
2066
604
|
};
|
|
2067
605
|
} | {
|
|
2068
606
|
id: string;
|
|
2069
607
|
name: string;
|
|
2070
608
|
hooks: {
|
|
2071
|
-
|
|
609
|
+
onRequest<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>): void;
|
|
610
|
+
};
|
|
611
|
+
} | {
|
|
612
|
+
id: string;
|
|
613
|
+
name: string;
|
|
614
|
+
hooks: {
|
|
615
|
+
onSuccess: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
616
|
+
onError: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
|
|
617
|
+
onRequest: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
|
|
618
|
+
onResponse: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
|
|
2072
619
|
};
|
|
2073
620
|
})[];
|
|
621
|
+
cache?: RequestCache | undefined;
|
|
2074
622
|
method: string;
|
|
2075
623
|
headers?: (HeadersInit & (HeadersInit | {
|
|
2076
624
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
@@ -2078,7 +626,6 @@ declare const authClient: {
|
|
|
2078
626
|
authorization: "Bearer" | "Basic";
|
|
2079
627
|
})) | undefined;
|
|
2080
628
|
redirect?: RequestRedirect | undefined;
|
|
2081
|
-
cache?: RequestCache | undefined;
|
|
2082
629
|
credentials?: RequestCredentials;
|
|
2083
630
|
integrity?: string | undefined;
|
|
2084
631
|
keepalive?: boolean | undefined;
|
|
@@ -2118,9 +665,10 @@ declare const authClient: {
|
|
|
2118
665
|
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
2119
666
|
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
2120
667
|
disableValidation?: boolean | undefined;
|
|
668
|
+
disableSignal?: boolean | undefined;
|
|
2121
669
|
}, unknown, unknown, {}>;
|
|
2122
670
|
$store: {
|
|
2123
|
-
notify: (signal?: Omit<string, "$sessionSignal"> | "$sessionSignal") => void;
|
|
671
|
+
notify: (signal?: (Omit<string, "$sessionSignal"> | "$sessionSignal") | undefined) => void;
|
|
2124
672
|
listen: (signal: Omit<string, "$sessionSignal"> | "$sessionSignal", listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
|
|
2125
673
|
atoms: Record<string, nanostores.WritableAtom<any>>;
|
|
2126
674
|
};
|