@nextsparkjs/core 0.1.0-beta.113 → 0.1.0-beta.115

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.
@@ -1,4 +1,390 @@
1
1
  export declare const authClient: {
2
+ emailOtp: {
3
+ verifyEmail: <FetchOptions extends {
4
+ method?: string;
5
+ mode?: RequestMode;
6
+ priority?: RequestPriority;
7
+ headers?: HeadersInit & (HeadersInit | {
8
+ accept: "application/json" | "text/plain" | "application/octet-stream";
9
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
10
+ authorization: "Bearer" | "Basic";
11
+ });
12
+ cache?: RequestCache;
13
+ credentials?: RequestCredentials;
14
+ integrity?: string;
15
+ keepalive?: boolean;
16
+ redirect?: RequestRedirect;
17
+ referrer?: string;
18
+ referrerPolicy?: ReferrerPolicy;
19
+ signal?: AbortSignal | null;
20
+ window?: null;
21
+ next?: NextFetchRequestConfig | undefined;
22
+ onRequest?: <T extends Record<string, any>>(context: import("better-auth/react").RequestContext<T>) => Promise<import("better-auth/react").RequestContext | void> | import("better-auth/react").RequestContext | void;
23
+ onResponse?: (context: import("better-auth/react").ResponseContext) => Promise<Response | void | import("better-auth/react").ResponseContext> | Response | import("better-auth/react").ResponseContext | void;
24
+ onSuccess?: (context: import("better-auth/react").SuccessContext<any>) => Promise<void> | void;
25
+ onError?: (context: import("better-auth/react").ErrorContext) => Promise<void> | void;
26
+ onRetry?: (response: import("better-auth/react").ResponseContext) => Promise<void> | void;
27
+ hookOptions?: {
28
+ cloneResponse?: boolean;
29
+ };
30
+ timeout?: number;
31
+ customFetchImpl?: import("better-auth/react").FetchEsque;
32
+ plugins?: import("better-auth/react").BetterFetchPlugin[];
33
+ baseURL?: string;
34
+ throw?: boolean;
35
+ auth?: {
36
+ type: "Bearer";
37
+ token: string | Promise<string> | (() => string | Promise<string>);
38
+ } | {
39
+ type: "Basic";
40
+ username: string | (() => string);
41
+ password: string | (() => string);
42
+ } | {
43
+ type: "Custom";
44
+ prefix: string | (() => string);
45
+ value: string | (() => string);
46
+ };
47
+ body?: Partial<{
48
+ email: string;
49
+ otp: string;
50
+ }> & Record<string, any>;
51
+ query?: Partial<Record<string, any>> & Record<string, any>;
52
+ params?: Record<string, any>;
53
+ duplex?: "full" | "half";
54
+ jsonParser?: (text: string) => Promise<any> | any;
55
+ retry?: import("better-auth/react").RetryOptions;
56
+ retryAttempt?: number;
57
+ output?: import("better-auth/react").StandardSchemaV1 | typeof Blob | typeof File;
58
+ errorSchema?: import("better-auth/react").StandardSchemaV1;
59
+ disableValidation?: boolean;
60
+ }>(data_0: import("better-auth").Prettify<{
61
+ email: string;
62
+ otp: string;
63
+ } & {
64
+ fetchOptions?: FetchOptions;
65
+ }>, data_1?: FetchOptions) => Promise<import("better-auth/react").BetterFetchResponse<NonNullable<{
66
+ status: boolean;
67
+ token: string;
68
+ user: {
69
+ id: any;
70
+ email: any;
71
+ emailVerified: any;
72
+ name: any;
73
+ image: any;
74
+ createdAt: any;
75
+ updatedAt: any;
76
+ };
77
+ } | {
78
+ status: boolean;
79
+ token: null;
80
+ user: {
81
+ id: any;
82
+ email: any;
83
+ emailVerified: any;
84
+ name: any;
85
+ image: any;
86
+ createdAt: any;
87
+ updatedAt: any;
88
+ };
89
+ }>, {
90
+ code?: string;
91
+ message?: string;
92
+ }, FetchOptions["throw"] extends true ? true : false>>;
93
+ };
94
+ } & {
95
+ signIn: {
96
+ emailOtp: <FetchOptions extends {
97
+ method?: string;
98
+ mode?: RequestMode;
99
+ priority?: RequestPriority;
100
+ headers?: HeadersInit & (HeadersInit | {
101
+ accept: "application/json" | "text/plain" | "application/octet-stream";
102
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
103
+ authorization: "Bearer" | "Basic";
104
+ });
105
+ cache?: RequestCache;
106
+ credentials?: RequestCredentials;
107
+ integrity?: string;
108
+ keepalive?: boolean;
109
+ redirect?: RequestRedirect;
110
+ referrer?: string;
111
+ referrerPolicy?: ReferrerPolicy;
112
+ signal?: AbortSignal | null;
113
+ window?: null;
114
+ next?: NextFetchRequestConfig | undefined;
115
+ onRequest?: <T extends Record<string, any>>(context: import("better-auth/react").RequestContext<T>) => Promise<import("better-auth/react").RequestContext | void> | import("better-auth/react").RequestContext | void;
116
+ onResponse?: (context: import("better-auth/react").ResponseContext) => Promise<Response | void | import("better-auth/react").ResponseContext> | Response | import("better-auth/react").ResponseContext | void;
117
+ onSuccess?: (context: import("better-auth/react").SuccessContext<any>) => Promise<void> | void;
118
+ onError?: (context: import("better-auth/react").ErrorContext) => Promise<void> | void;
119
+ onRetry?: (response: import("better-auth/react").ResponseContext) => Promise<void> | void;
120
+ hookOptions?: {
121
+ cloneResponse?: boolean;
122
+ };
123
+ timeout?: number;
124
+ customFetchImpl?: import("better-auth/react").FetchEsque;
125
+ plugins?: import("better-auth/react").BetterFetchPlugin[];
126
+ baseURL?: string;
127
+ throw?: boolean;
128
+ auth?: {
129
+ type: "Bearer";
130
+ token: string | Promise<string> | (() => string | Promise<string>);
131
+ } | {
132
+ type: "Basic";
133
+ username: string | (() => string);
134
+ password: string | (() => string);
135
+ } | {
136
+ type: "Custom";
137
+ prefix: string | (() => string);
138
+ value: string | (() => string);
139
+ };
140
+ body?: Partial<{
141
+ email: string;
142
+ otp: string;
143
+ }> & Record<string, any>;
144
+ query?: Partial<Record<string, any>> & Record<string, any>;
145
+ params?: Record<string, any>;
146
+ duplex?: "full" | "half";
147
+ jsonParser?: (text: string) => Promise<any> | any;
148
+ retry?: import("better-auth/react").RetryOptions;
149
+ retryAttempt?: number;
150
+ output?: import("better-auth/react").StandardSchemaV1 | typeof Blob | typeof File;
151
+ errorSchema?: import("better-auth/react").StandardSchemaV1;
152
+ disableValidation?: boolean;
153
+ }>(data_0: import("better-auth").Prettify<{
154
+ email: string;
155
+ otp: string;
156
+ } & {
157
+ fetchOptions?: FetchOptions;
158
+ }>, data_1?: FetchOptions) => Promise<import("better-auth/react").BetterFetchResponse<{
159
+ token: string;
160
+ user: {
161
+ id: string;
162
+ email: string;
163
+ emailVerified: boolean;
164
+ name: string;
165
+ image: string | null | undefined;
166
+ createdAt: Date;
167
+ updatedAt: Date;
168
+ };
169
+ }, {
170
+ code?: string;
171
+ message?: string;
172
+ }, FetchOptions["throw"] extends true ? true : false>>;
173
+ };
174
+ } & {
175
+ forgetPassword: {
176
+ emailOtp: <FetchOptions extends {
177
+ method?: string;
178
+ mode?: RequestMode;
179
+ priority?: RequestPriority;
180
+ headers?: HeadersInit & (HeadersInit | {
181
+ accept: "application/json" | "text/plain" | "application/octet-stream";
182
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
183
+ authorization: "Bearer" | "Basic";
184
+ });
185
+ cache?: RequestCache;
186
+ credentials?: RequestCredentials;
187
+ integrity?: string;
188
+ keepalive?: boolean;
189
+ redirect?: RequestRedirect;
190
+ referrer?: string;
191
+ referrerPolicy?: ReferrerPolicy;
192
+ signal?: AbortSignal | null;
193
+ window?: null;
194
+ next?: NextFetchRequestConfig | undefined;
195
+ onRequest?: <T extends Record<string, any>>(context: import("better-auth/react").RequestContext<T>) => Promise<import("better-auth/react").RequestContext | void> | import("better-auth/react").RequestContext | void;
196
+ onResponse?: (context: import("better-auth/react").ResponseContext) => Promise<Response | void | import("better-auth/react").ResponseContext> | Response | import("better-auth/react").ResponseContext | void;
197
+ onSuccess?: (context: import("better-auth/react").SuccessContext<any>) => Promise<void> | void;
198
+ onError?: (context: import("better-auth/react").ErrorContext) => Promise<void> | void;
199
+ onRetry?: (response: import("better-auth/react").ResponseContext) => Promise<void> | void;
200
+ hookOptions?: {
201
+ cloneResponse?: boolean;
202
+ };
203
+ timeout?: number;
204
+ customFetchImpl?: import("better-auth/react").FetchEsque;
205
+ plugins?: import("better-auth/react").BetterFetchPlugin[];
206
+ baseURL?: string;
207
+ throw?: boolean;
208
+ auth?: {
209
+ type: "Bearer";
210
+ token: string | Promise<string> | (() => string | Promise<string>);
211
+ } | {
212
+ type: "Basic";
213
+ username: string | (() => string);
214
+ password: string | (() => string);
215
+ } | {
216
+ type: "Custom";
217
+ prefix: string | (() => string);
218
+ value: string | (() => string);
219
+ };
220
+ body?: Partial<{
221
+ email: string;
222
+ }> & Record<string, any>;
223
+ query?: Partial<Record<string, any>> & Record<string, any>;
224
+ params?: Record<string, any>;
225
+ duplex?: "full" | "half";
226
+ jsonParser?: (text: string) => Promise<any> | any;
227
+ retry?: import("better-auth/react").RetryOptions;
228
+ retryAttempt?: number;
229
+ output?: import("better-auth/react").StandardSchemaV1 | typeof Blob | typeof File;
230
+ errorSchema?: import("better-auth/react").StandardSchemaV1;
231
+ disableValidation?: boolean;
232
+ }>(data_0: import("better-auth").Prettify<{
233
+ email: string;
234
+ } & {
235
+ fetchOptions?: FetchOptions;
236
+ }>, data_1?: FetchOptions) => Promise<import("better-auth/react").BetterFetchResponse<{
237
+ success: boolean;
238
+ }, {
239
+ code?: string;
240
+ message?: string;
241
+ }, FetchOptions["throw"] extends true ? true : false>>;
242
+ };
243
+ } & {
244
+ emailOtp: {
245
+ resetPassword: <FetchOptions extends {
246
+ method?: string;
247
+ mode?: RequestMode;
248
+ priority?: RequestPriority;
249
+ headers?: HeadersInit & (HeadersInit | {
250
+ accept: "application/json" | "text/plain" | "application/octet-stream";
251
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
252
+ authorization: "Bearer" | "Basic";
253
+ });
254
+ cache?: RequestCache;
255
+ credentials?: RequestCredentials;
256
+ integrity?: string;
257
+ keepalive?: boolean;
258
+ redirect?: RequestRedirect;
259
+ referrer?: string;
260
+ referrerPolicy?: ReferrerPolicy;
261
+ signal?: AbortSignal | null;
262
+ window?: null;
263
+ next?: NextFetchRequestConfig | undefined;
264
+ onRequest?: <T extends Record<string, any>>(context: import("better-auth/react").RequestContext<T>) => Promise<import("better-auth/react").RequestContext | void> | import("better-auth/react").RequestContext | void;
265
+ onResponse?: (context: import("better-auth/react").ResponseContext) => Promise<Response | void | import("better-auth/react").ResponseContext> | Response | import("better-auth/react").ResponseContext | void;
266
+ onSuccess?: (context: import("better-auth/react").SuccessContext<any>) => Promise<void> | void;
267
+ onError?: (context: import("better-auth/react").ErrorContext) => Promise<void> | void;
268
+ onRetry?: (response: import("better-auth/react").ResponseContext) => Promise<void> | void;
269
+ hookOptions?: {
270
+ cloneResponse?: boolean;
271
+ };
272
+ timeout?: number;
273
+ customFetchImpl?: import("better-auth/react").FetchEsque;
274
+ plugins?: import("better-auth/react").BetterFetchPlugin[];
275
+ baseURL?: string;
276
+ throw?: boolean;
277
+ auth?: {
278
+ type: "Bearer";
279
+ token: string | Promise<string> | (() => string | Promise<string>);
280
+ } | {
281
+ type: "Basic";
282
+ username: string | (() => string);
283
+ password: string | (() => string);
284
+ } | {
285
+ type: "Custom";
286
+ prefix: string | (() => string);
287
+ value: string | (() => string);
288
+ };
289
+ body?: Partial<{
290
+ email: string;
291
+ otp: string;
292
+ password: string;
293
+ }> & Record<string, any>;
294
+ query?: Partial<Record<string, any>> & Record<string, any>;
295
+ params?: Record<string, any>;
296
+ duplex?: "full" | "half";
297
+ jsonParser?: (text: string) => Promise<any> | any;
298
+ retry?: import("better-auth/react").RetryOptions;
299
+ retryAttempt?: number;
300
+ output?: import("better-auth/react").StandardSchemaV1 | typeof Blob | typeof File;
301
+ errorSchema?: import("better-auth/react").StandardSchemaV1;
302
+ disableValidation?: boolean;
303
+ }>(data_0: import("better-auth").Prettify<{
304
+ email: string;
305
+ otp: string;
306
+ password: string;
307
+ } & {
308
+ fetchOptions?: FetchOptions;
309
+ }>, data_1?: FetchOptions) => Promise<import("better-auth/react").BetterFetchResponse<{
310
+ success: boolean;
311
+ }, {
312
+ code?: string;
313
+ message?: string;
314
+ }, FetchOptions["throw"] extends true ? true : false>>;
315
+ };
316
+ } & {
317
+ emailOtp: {
318
+ sendVerificationOtp: <FetchOptions extends {
319
+ method?: string;
320
+ mode?: RequestMode;
321
+ priority?: RequestPriority;
322
+ headers?: HeadersInit & (HeadersInit | {
323
+ accept: "application/json" | "text/plain" | "application/octet-stream";
324
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
325
+ authorization: "Bearer" | "Basic";
326
+ });
327
+ cache?: RequestCache;
328
+ credentials?: RequestCredentials;
329
+ integrity?: string;
330
+ keepalive?: boolean;
331
+ redirect?: RequestRedirect;
332
+ referrer?: string;
333
+ referrerPolicy?: ReferrerPolicy;
334
+ signal?: AbortSignal | null;
335
+ window?: null;
336
+ next?: NextFetchRequestConfig | undefined;
337
+ onRequest?: <T extends Record<string, any>>(context: import("better-auth/react").RequestContext<T>) => Promise<import("better-auth/react").RequestContext | void> | import("better-auth/react").RequestContext | void;
338
+ onResponse?: (context: import("better-auth/react").ResponseContext) => Promise<Response | void | import("better-auth/react").ResponseContext> | Response | import("better-auth/react").ResponseContext | void;
339
+ onSuccess?: (context: import("better-auth/react").SuccessContext<any>) => Promise<void> | void;
340
+ onError?: (context: import("better-auth/react").ErrorContext) => Promise<void> | void;
341
+ onRetry?: (response: import("better-auth/react").ResponseContext) => Promise<void> | void;
342
+ hookOptions?: {
343
+ cloneResponse?: boolean;
344
+ };
345
+ timeout?: number;
346
+ customFetchImpl?: import("better-auth/react").FetchEsque;
347
+ plugins?: import("better-auth/react").BetterFetchPlugin[];
348
+ baseURL?: string;
349
+ throw?: boolean;
350
+ auth?: {
351
+ type: "Bearer";
352
+ token: string | Promise<string> | (() => string | Promise<string>);
353
+ } | {
354
+ type: "Basic";
355
+ username: string | (() => string);
356
+ password: string | (() => string);
357
+ } | {
358
+ type: "Custom";
359
+ prefix: string | (() => string);
360
+ value: string | (() => string);
361
+ };
362
+ body?: Partial<{
363
+ email: string;
364
+ type: "sign-in" | "forget-password" | "email-verification";
365
+ }> & Record<string, any>;
366
+ query?: Partial<Record<string, any>> & Record<string, any>;
367
+ params?: Record<string, any>;
368
+ duplex?: "full" | "half";
369
+ jsonParser?: (text: string) => Promise<any> | any;
370
+ retry?: import("better-auth/react").RetryOptions;
371
+ retryAttempt?: number;
372
+ output?: import("better-auth/react").StandardSchemaV1 | typeof Blob | typeof File;
373
+ errorSchema?: import("better-auth/react").StandardSchemaV1;
374
+ disableValidation?: boolean;
375
+ }>(data_0: import("better-auth").Prettify<{
376
+ email: string;
377
+ type: "sign-in" | "forget-password" | "email-verification";
378
+ } & {
379
+ fetchOptions?: FetchOptions;
380
+ }>, data_1?: FetchOptions) => Promise<import("better-auth/react").BetterFetchResponse<{
381
+ success: boolean;
382
+ }, {
383
+ code?: string;
384
+ message?: string;
385
+ }, FetchOptions["throw"] extends true ? true : false>>;
386
+ };
387
+ } & {
2
388
  signIn: {
3
389
  social: <FetchOptions extends {
4
390
  method?: string;
@@ -2122,6 +2508,84 @@ export declare const authClient: {
2122
2508
  };
2123
2509
  };
2124
2510
  export declare const signIn: {
2511
+ emailOtp: <FetchOptions extends {
2512
+ method?: string;
2513
+ mode?: RequestMode;
2514
+ priority?: RequestPriority;
2515
+ headers?: HeadersInit & (HeadersInit | {
2516
+ accept: "application/json" | "text/plain" | "application/octet-stream";
2517
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2518
+ authorization: "Bearer" | "Basic";
2519
+ });
2520
+ cache?: RequestCache;
2521
+ credentials?: RequestCredentials;
2522
+ integrity?: string;
2523
+ keepalive?: boolean;
2524
+ redirect?: RequestRedirect;
2525
+ referrer?: string;
2526
+ referrerPolicy?: ReferrerPolicy;
2527
+ signal?: AbortSignal | null;
2528
+ window?: null;
2529
+ next?: NextFetchRequestConfig | undefined;
2530
+ onRequest?: <T extends Record<string, any>>(context: import("better-auth/react").RequestContext<T>) => Promise<import("better-auth/react").RequestContext | void> | import("better-auth/react").RequestContext | void;
2531
+ onResponse?: (context: import("better-auth/react").ResponseContext) => Promise<Response | void | import("better-auth/react").ResponseContext> | Response | import("better-auth/react").ResponseContext | void;
2532
+ onSuccess?: (context: import("better-auth/react").SuccessContext<any>) => Promise<void> | void;
2533
+ onError?: (context: import("better-auth/react").ErrorContext) => Promise<void> | void;
2534
+ onRetry?: (response: import("better-auth/react").ResponseContext) => Promise<void> | void;
2535
+ hookOptions?: {
2536
+ cloneResponse?: boolean;
2537
+ };
2538
+ timeout?: number;
2539
+ customFetchImpl?: import("better-auth/react").FetchEsque;
2540
+ plugins?: import("better-auth/react").BetterFetchPlugin[];
2541
+ baseURL?: string;
2542
+ throw?: boolean;
2543
+ auth?: {
2544
+ type: "Bearer";
2545
+ token: string | Promise<string> | (() => string | Promise<string>);
2546
+ } | {
2547
+ type: "Basic";
2548
+ username: string | (() => string);
2549
+ password: string | (() => string);
2550
+ } | {
2551
+ type: "Custom";
2552
+ prefix: string | (() => string);
2553
+ value: string | (() => string);
2554
+ };
2555
+ body?: Partial<{
2556
+ email: string;
2557
+ otp: string;
2558
+ }> & Record<string, any>;
2559
+ query?: Partial<Record<string, any>> & Record<string, any>;
2560
+ params?: Record<string, any>;
2561
+ duplex?: "full" | "half";
2562
+ jsonParser?: (text: string) => Promise<any> | any;
2563
+ retry?: import("better-auth/react").RetryOptions;
2564
+ retryAttempt?: number;
2565
+ output?: import("better-auth/react").StandardSchemaV1 | typeof Blob | typeof File;
2566
+ errorSchema?: import("better-auth/react").StandardSchemaV1;
2567
+ disableValidation?: boolean;
2568
+ }>(data_0: import("better-auth").Prettify<{
2569
+ email: string;
2570
+ otp: string;
2571
+ } & {
2572
+ fetchOptions?: FetchOptions;
2573
+ }>, data_1?: FetchOptions) => Promise<import("better-auth/react").BetterFetchResponse<{
2574
+ token: string;
2575
+ user: {
2576
+ id: string;
2577
+ email: string;
2578
+ emailVerified: boolean;
2579
+ name: string;
2580
+ image: string | null | undefined;
2581
+ createdAt: Date;
2582
+ updatedAt: Date;
2583
+ };
2584
+ }, {
2585
+ code?: string;
2586
+ message?: string;
2587
+ }, FetchOptions["throw"] extends true ? true : false>>;
2588
+ } & {
2125
2589
  social: <FetchOptions extends {
2126
2590
  method?: string;
2127
2591
  mode?: RequestMode;
@@ -2489,11 +2953,78 @@ export declare const signIn: {
2489
2953
  ipAddress?: string;
2490
2954
  userAgent?: string;
2491
2955
  };
2492
- };
2493
- isPending: boolean;
2494
- error: import("better-auth/react").BetterFetchError | null;
2495
- refetch: () => void;
2496
- }, forgetPassword: <FetchOptions extends {
2956
+ };
2957
+ isPending: boolean;
2958
+ error: import("better-auth/react").BetterFetchError | null;
2959
+ refetch: () => void;
2960
+ }, forgetPassword: {
2961
+ emailOtp: <FetchOptions extends {
2962
+ method?: string;
2963
+ mode?: RequestMode;
2964
+ priority?: RequestPriority;
2965
+ headers?: HeadersInit & (HeadersInit | {
2966
+ accept: "application/json" | "text/plain" | "application/octet-stream";
2967
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2968
+ authorization: "Bearer" | "Basic";
2969
+ });
2970
+ cache?: RequestCache;
2971
+ credentials?: RequestCredentials;
2972
+ integrity?: string;
2973
+ keepalive?: boolean;
2974
+ redirect?: RequestRedirect;
2975
+ referrer?: string;
2976
+ referrerPolicy?: ReferrerPolicy;
2977
+ signal?: AbortSignal | null;
2978
+ window?: null;
2979
+ next?: NextFetchRequestConfig | undefined;
2980
+ onRequest?: <T extends Record<string, any>>(context: import("better-auth/react").RequestContext<T>) => Promise<import("better-auth/react").RequestContext | void> | import("better-auth/react").RequestContext | void;
2981
+ onResponse?: (context: import("better-auth/react").ResponseContext) => Promise<Response | void | import("better-auth/react").ResponseContext> | Response | import("better-auth/react").ResponseContext | void;
2982
+ onSuccess?: (context: import("better-auth/react").SuccessContext<any>) => Promise<void> | void;
2983
+ onError?: (context: import("better-auth/react").ErrorContext) => Promise<void> | void;
2984
+ onRetry?: (response: import("better-auth/react").ResponseContext) => Promise<void> | void;
2985
+ hookOptions?: {
2986
+ cloneResponse?: boolean;
2987
+ };
2988
+ timeout?: number;
2989
+ customFetchImpl?: import("better-auth/react").FetchEsque;
2990
+ plugins?: import("better-auth/react").BetterFetchPlugin[];
2991
+ baseURL?: string;
2992
+ throw?: boolean;
2993
+ auth?: {
2994
+ type: "Bearer";
2995
+ token: string | Promise<string> | (() => string | Promise<string>);
2996
+ } | {
2997
+ type: "Basic";
2998
+ username: string | (() => string);
2999
+ password: string | (() => string);
3000
+ } | {
3001
+ type: "Custom";
3002
+ prefix: string | (() => string);
3003
+ value: string | (() => string);
3004
+ };
3005
+ body?: Partial<{
3006
+ email: string;
3007
+ }> & Record<string, any>;
3008
+ query?: Partial<Record<string, any>> & Record<string, any>;
3009
+ params?: Record<string, any>;
3010
+ duplex?: "full" | "half";
3011
+ jsonParser?: (text: string) => Promise<any> | any;
3012
+ retry?: import("better-auth/react").RetryOptions;
3013
+ retryAttempt?: number;
3014
+ output?: import("better-auth/react").StandardSchemaV1 | typeof Blob | typeof File;
3015
+ errorSchema?: import("better-auth/react").StandardSchemaV1;
3016
+ disableValidation?: boolean;
3017
+ }>(data_0: import("better-auth").Prettify<{
3018
+ email: string;
3019
+ } & {
3020
+ fetchOptions?: FetchOptions;
3021
+ }>, data_1?: FetchOptions) => Promise<import("better-auth/react").BetterFetchResponse<{
3022
+ success: boolean;
3023
+ }, {
3024
+ code?: string;
3025
+ message?: string;
3026
+ }, FetchOptions["throw"] extends true ? true : false>>;
3027
+ } & (<FetchOptions extends {
2497
3028
  method?: string;
2498
3029
  mode?: RequestMode;
2499
3030
  priority?: RequestPriority;
@@ -2560,7 +3091,7 @@ export declare const signIn: {
2560
3091
  }, {
2561
3092
  code?: string;
2562
3093
  message?: string;
2563
- }, FetchOptions["throw"] extends true ? true : false>>, resetPassword: (<FetchOptions extends {
3094
+ }, FetchOptions["throw"] extends true ? true : false>>), resetPassword: (<FetchOptions extends {
2564
3095
  method?: string;
2565
3096
  mode?: RequestMode;
2566
3097
  priority?: RequestPriority;
@@ -2896,5 +3427,236 @@ export declare const signIn: {
2896
3427
  }, {
2897
3428
  code?: string;
2898
3429
  message?: string;
2899
- }, FetchOptions["throw"] extends true ? true : false>>;
3430
+ }, FetchOptions["throw"] extends true ? true : false>>, emailOtp: {
3431
+ verifyEmail: <FetchOptions extends {
3432
+ method?: string;
3433
+ mode?: RequestMode;
3434
+ priority?: RequestPriority;
3435
+ headers?: HeadersInit & (HeadersInit | {
3436
+ accept: "application/json" | "text/plain" | "application/octet-stream";
3437
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
3438
+ authorization: "Bearer" | "Basic";
3439
+ });
3440
+ cache?: RequestCache;
3441
+ credentials?: RequestCredentials;
3442
+ integrity?: string;
3443
+ keepalive?: boolean;
3444
+ redirect?: RequestRedirect;
3445
+ referrer?: string;
3446
+ referrerPolicy?: ReferrerPolicy;
3447
+ signal?: AbortSignal | null;
3448
+ window?: null;
3449
+ next?: NextFetchRequestConfig | undefined;
3450
+ onRequest?: <T extends Record<string, any>>(context: import("better-auth/react").RequestContext<T>) => Promise<import("better-auth/react").RequestContext | void> | import("better-auth/react").RequestContext | void;
3451
+ onResponse?: (context: import("better-auth/react").ResponseContext) => Promise<Response | void | import("better-auth/react").ResponseContext> | Response | import("better-auth/react").ResponseContext | void;
3452
+ onSuccess?: (context: import("better-auth/react").SuccessContext<any>) => Promise<void> | void;
3453
+ onError?: (context: import("better-auth/react").ErrorContext) => Promise<void> | void;
3454
+ onRetry?: (response: import("better-auth/react").ResponseContext) => Promise<void> | void;
3455
+ hookOptions?: {
3456
+ cloneResponse?: boolean;
3457
+ };
3458
+ timeout?: number;
3459
+ customFetchImpl?: import("better-auth/react").FetchEsque;
3460
+ plugins?: import("better-auth/react").BetterFetchPlugin[];
3461
+ baseURL?: string;
3462
+ throw?: boolean;
3463
+ auth?: {
3464
+ type: "Bearer";
3465
+ token: string | Promise<string> | (() => string | Promise<string>);
3466
+ } | {
3467
+ type: "Basic";
3468
+ username: string | (() => string);
3469
+ password: string | (() => string);
3470
+ } | {
3471
+ type: "Custom";
3472
+ prefix: string | (() => string);
3473
+ value: string | (() => string);
3474
+ };
3475
+ body?: Partial<{
3476
+ email: string;
3477
+ otp: string;
3478
+ }> & Record<string, any>;
3479
+ query?: Partial<Record<string, any>> & Record<string, any>;
3480
+ params?: Record<string, any>;
3481
+ duplex?: "full" | "half";
3482
+ jsonParser?: (text: string) => Promise<any> | any;
3483
+ retry?: import("better-auth/react").RetryOptions;
3484
+ retryAttempt?: number;
3485
+ output?: import("better-auth/react").StandardSchemaV1 | typeof Blob | typeof File;
3486
+ errorSchema?: import("better-auth/react").StandardSchemaV1;
3487
+ disableValidation?: boolean;
3488
+ }>(data_0: import("better-auth").Prettify<{
3489
+ email: string;
3490
+ otp: string;
3491
+ } & {
3492
+ fetchOptions?: FetchOptions;
3493
+ }>, data_1?: FetchOptions) => Promise<import("better-auth/react").BetterFetchResponse<NonNullable<{
3494
+ status: boolean;
3495
+ token: string;
3496
+ user: {
3497
+ id: any;
3498
+ email: any;
3499
+ emailVerified: any;
3500
+ name: any;
3501
+ image: any;
3502
+ createdAt: any;
3503
+ updatedAt: any;
3504
+ };
3505
+ } | {
3506
+ status: boolean;
3507
+ token: null;
3508
+ user: {
3509
+ id: any;
3510
+ email: any;
3511
+ emailVerified: any;
3512
+ name: any;
3513
+ image: any;
3514
+ createdAt: any;
3515
+ updatedAt: any;
3516
+ };
3517
+ }>, {
3518
+ code?: string;
3519
+ message?: string;
3520
+ }, FetchOptions["throw"] extends true ? true : false>>;
3521
+ } & {
3522
+ resetPassword: <FetchOptions extends {
3523
+ method?: string;
3524
+ mode?: RequestMode;
3525
+ priority?: RequestPriority;
3526
+ headers?: HeadersInit & (HeadersInit | {
3527
+ accept: "application/json" | "text/plain" | "application/octet-stream";
3528
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
3529
+ authorization: "Bearer" | "Basic";
3530
+ });
3531
+ cache?: RequestCache;
3532
+ credentials?: RequestCredentials;
3533
+ integrity?: string;
3534
+ keepalive?: boolean;
3535
+ redirect?: RequestRedirect;
3536
+ referrer?: string;
3537
+ referrerPolicy?: ReferrerPolicy;
3538
+ signal?: AbortSignal | null;
3539
+ window?: null;
3540
+ next?: NextFetchRequestConfig | undefined;
3541
+ onRequest?: <T extends Record<string, any>>(context: import("better-auth/react").RequestContext<T>) => Promise<import("better-auth/react").RequestContext | void> | import("better-auth/react").RequestContext | void;
3542
+ onResponse?: (context: import("better-auth/react").ResponseContext) => Promise<Response | void | import("better-auth/react").ResponseContext> | Response | import("better-auth/react").ResponseContext | void;
3543
+ onSuccess?: (context: import("better-auth/react").SuccessContext<any>) => Promise<void> | void;
3544
+ onError?: (context: import("better-auth/react").ErrorContext) => Promise<void> | void;
3545
+ onRetry?: (response: import("better-auth/react").ResponseContext) => Promise<void> | void;
3546
+ hookOptions?: {
3547
+ cloneResponse?: boolean;
3548
+ };
3549
+ timeout?: number;
3550
+ customFetchImpl?: import("better-auth/react").FetchEsque;
3551
+ plugins?: import("better-auth/react").BetterFetchPlugin[];
3552
+ baseURL?: string;
3553
+ throw?: boolean;
3554
+ auth?: {
3555
+ type: "Bearer";
3556
+ token: string | Promise<string> | (() => string | Promise<string>);
3557
+ } | {
3558
+ type: "Basic";
3559
+ username: string | (() => string);
3560
+ password: string | (() => string);
3561
+ } | {
3562
+ type: "Custom";
3563
+ prefix: string | (() => string);
3564
+ value: string | (() => string);
3565
+ };
3566
+ body?: Partial<{
3567
+ email: string;
3568
+ otp: string;
3569
+ password: string;
3570
+ }> & Record<string, any>;
3571
+ query?: Partial<Record<string, any>> & Record<string, any>;
3572
+ params?: Record<string, any>;
3573
+ duplex?: "full" | "half";
3574
+ jsonParser?: (text: string) => Promise<any> | any;
3575
+ retry?: import("better-auth/react").RetryOptions;
3576
+ retryAttempt?: number;
3577
+ output?: import("better-auth/react").StandardSchemaV1 | typeof Blob | typeof File;
3578
+ errorSchema?: import("better-auth/react").StandardSchemaV1;
3579
+ disableValidation?: boolean;
3580
+ }>(data_0: import("better-auth").Prettify<{
3581
+ email: string;
3582
+ otp: string;
3583
+ password: string;
3584
+ } & {
3585
+ fetchOptions?: FetchOptions;
3586
+ }>, data_1?: FetchOptions) => Promise<import("better-auth/react").BetterFetchResponse<{
3587
+ success: boolean;
3588
+ }, {
3589
+ code?: string;
3590
+ message?: string;
3591
+ }, FetchOptions["throw"] extends true ? true : false>>;
3592
+ } & {
3593
+ sendVerificationOtp: <FetchOptions extends {
3594
+ method?: string;
3595
+ mode?: RequestMode;
3596
+ priority?: RequestPriority;
3597
+ headers?: HeadersInit & (HeadersInit | {
3598
+ accept: "application/json" | "text/plain" | "application/octet-stream";
3599
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
3600
+ authorization: "Bearer" | "Basic";
3601
+ });
3602
+ cache?: RequestCache;
3603
+ credentials?: RequestCredentials;
3604
+ integrity?: string;
3605
+ keepalive?: boolean;
3606
+ redirect?: RequestRedirect;
3607
+ referrer?: string;
3608
+ referrerPolicy?: ReferrerPolicy;
3609
+ signal?: AbortSignal | null;
3610
+ window?: null;
3611
+ next?: NextFetchRequestConfig | undefined;
3612
+ onRequest?: <T extends Record<string, any>>(context: import("better-auth/react").RequestContext<T>) => Promise<import("better-auth/react").RequestContext | void> | import("better-auth/react").RequestContext | void;
3613
+ onResponse?: (context: import("better-auth/react").ResponseContext) => Promise<Response | void | import("better-auth/react").ResponseContext> | Response | import("better-auth/react").ResponseContext | void;
3614
+ onSuccess?: (context: import("better-auth/react").SuccessContext<any>) => Promise<void> | void;
3615
+ onError?: (context: import("better-auth/react").ErrorContext) => Promise<void> | void;
3616
+ onRetry?: (response: import("better-auth/react").ResponseContext) => Promise<void> | void;
3617
+ hookOptions?: {
3618
+ cloneResponse?: boolean;
3619
+ };
3620
+ timeout?: number;
3621
+ customFetchImpl?: import("better-auth/react").FetchEsque;
3622
+ plugins?: import("better-auth/react").BetterFetchPlugin[];
3623
+ baseURL?: string;
3624
+ throw?: boolean;
3625
+ auth?: {
3626
+ type: "Bearer";
3627
+ token: string | Promise<string> | (() => string | Promise<string>);
3628
+ } | {
3629
+ type: "Basic";
3630
+ username: string | (() => string);
3631
+ password: string | (() => string);
3632
+ } | {
3633
+ type: "Custom";
3634
+ prefix: string | (() => string);
3635
+ value: string | (() => string);
3636
+ };
3637
+ body?: Partial<{
3638
+ email: string;
3639
+ type: "sign-in" | "forget-password" | "email-verification";
3640
+ }> & Record<string, any>;
3641
+ query?: Partial<Record<string, any>> & Record<string, any>;
3642
+ params?: Record<string, any>;
3643
+ duplex?: "full" | "half";
3644
+ jsonParser?: (text: string) => Promise<any> | any;
3645
+ retry?: import("better-auth/react").RetryOptions;
3646
+ retryAttempt?: number;
3647
+ output?: import("better-auth/react").StandardSchemaV1 | typeof Blob | typeof File;
3648
+ errorSchema?: import("better-auth/react").StandardSchemaV1;
3649
+ disableValidation?: boolean;
3650
+ }>(data_0: import("better-auth").Prettify<{
3651
+ email: string;
3652
+ type: "sign-in" | "forget-password" | "email-verification";
3653
+ } & {
3654
+ fetchOptions?: FetchOptions;
3655
+ }>, data_1?: FetchOptions) => Promise<import("better-auth/react").BetterFetchResponse<{
3656
+ success: boolean;
3657
+ }, {
3658
+ code?: string;
3659
+ message?: string;
3660
+ }, FetchOptions["throw"] extends true ? true : false>>;
3661
+ };
2900
3662
  //# sourceMappingURL=auth-client.d.ts.map