@kuckit/app-web 2.0.1

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.
@@ -0,0 +1,1511 @@
1
+ import * as react0 from "react";
2
+ import { ComponentType, ReactNode } from "react";
3
+ import * as _tanstack_react_query0 from "@tanstack/react-query";
4
+ import { QueryClient } from "@tanstack/react-query";
5
+ import { RouteComponent } from "@tanstack/react-router";
6
+ import { ClientModuleSpec, ClientModuleSpec as ClientModuleSpec$1, NavItem, NavRegistry, RouteDefinition, RouteRegistry, SlotRegistry } from "@kuckit/sdk-react";
7
+ import * as _orpc_client0 from "@orpc/client";
8
+ import { RPCLink } from "@orpc/client/fetch";
9
+ import * as _orpc_tanstack_query0 from "@orpc/tanstack-query";
10
+ import { createTanstackQueryUtils } from "@orpc/tanstack-query";
11
+ import * as better_auth_react0 from "better-auth/react";
12
+ import { createAuthClient } from "better-auth/react";
13
+ import * as _orpc_server0 from "@orpc/server";
14
+ import * as zod0 from "zod";
15
+ import * as better_auth0 from "better-auth";
16
+ import { AppRouterClient } from "@kuckit/api/routers/index";
17
+
18
+ //#region src/types.d.ts
19
+ type ORPCUtils = ReturnType<typeof createTanstackQueryUtils<AppRouterClient>>;
20
+ type AuthClient = ReturnType<typeof createAuthClient>;
21
+ interface KuckitWebServices {
22
+ queryClient: QueryClient;
23
+ rpcClient: AppRouterClient;
24
+ orpc: ORPCUtils;
25
+ authClient: AuthClient;
26
+ }
27
+ interface KuckitWebConfig {
28
+ /** Server URL for RPC and auth. Defaults to window.location.origin */
29
+ serverUrl?: string;
30
+ /** Client module specifications to load */
31
+ modules: ClientModuleSpec$1[];
32
+ /** Environment mode (e.g., 'development', 'production') */
33
+ env?: string;
34
+ /** Custom loader component shown while modules load */
35
+ loaderComponent?: ComponentType;
36
+ /** Custom error component shown on module load failure */
37
+ errorComponent?: ComponentType<{
38
+ error: Error;
39
+ }>;
40
+ }
41
+ interface KuckitWebContext {
42
+ routeRegistry: RouteRegistry;
43
+ navRegistry: NavRegistry;
44
+ slotRegistry: SlotRegistry;
45
+ services: KuckitWebServices;
46
+ isLoaded: boolean;
47
+ }
48
+ interface KuckitWebProviderProps {
49
+ config: KuckitWebConfig;
50
+ children?: ReactNode;
51
+ }
52
+ interface KuckitWebRouterProps {
53
+ /** TanStack Router route tree from routeTree.gen.ts */
54
+ routeTree: unknown;
55
+ /** Root route for module route attachment */
56
+ rootRoute: unknown;
57
+ }
58
+ interface CreateKuckitWebProviderOptions extends KuckitWebConfig, KuckitWebRouterProps {}
59
+ interface ModuleRoute {
60
+ id: string;
61
+ path: string;
62
+ component: RouteComponent;
63
+ }
64
+ //#endregion
65
+ //#region src/provider.d.ts
66
+ declare const KuckitWebContext: react0.Context<KuckitWebContext | null>;
67
+ declare function useKuckitWeb(): KuckitWebContext;
68
+ declare function useServices(): KuckitWebServices;
69
+ declare function useRpc(): {
70
+ healthCheck: _orpc_server0.ProcedureClient<Record<never, never>, _orpc_server0.Schema<unknown, unknown>, _orpc_server0.Schema<string, string>, Record<never, never>>;
71
+ privateData: _orpc_server0.ProcedureClient<Record<never, never>, _orpc_server0.Schema<unknown, unknown>, _orpc_server0.Schema<{
72
+ message: string;
73
+ user: {
74
+ id: string;
75
+ createdAt: Date;
76
+ updatedAt: Date;
77
+ email: string;
78
+ emailVerified: boolean;
79
+ name: string;
80
+ image?: string | null | undefined | undefined;
81
+ };
82
+ }, {
83
+ message: string;
84
+ user: {
85
+ id: string;
86
+ createdAt: Date;
87
+ updatedAt: Date;
88
+ email: string;
89
+ emailVerified: boolean;
90
+ name: string;
91
+ image?: string | null | undefined | undefined;
92
+ };
93
+ }>, Record<never, never>>;
94
+ profile: {
95
+ me: _orpc_server0.ProcedureClient<Record<never, never>, _orpc_server0.Schema<unknown, unknown>, zod0.ZodObject<{
96
+ id: zod0.ZodString;
97
+ name: zod0.ZodString;
98
+ email: zod0.ZodString;
99
+ emailVerified: zod0.ZodBoolean;
100
+ createdAt: zod0.ZodString;
101
+ updatedAt: zod0.ZodString;
102
+ }, better_auth0.$strip>, Record<never, never>>;
103
+ };
104
+ };
105
+ declare function useOrpc(): {
106
+ healthCheck: _orpc_tanstack_query0.ProcedureUtils<Record<never, never>, unknown, string, Error> & _orpc_tanstack_query0.GeneralUtils<unknown>;
107
+ privateData: _orpc_tanstack_query0.ProcedureUtils<Record<never, never>, unknown, {
108
+ message: string;
109
+ user: {
110
+ id: string;
111
+ createdAt: Date;
112
+ updatedAt: Date;
113
+ email: string;
114
+ emailVerified: boolean;
115
+ name: string;
116
+ image?: string | null | undefined | undefined;
117
+ };
118
+ }, Error> & _orpc_tanstack_query0.GeneralUtils<unknown>;
119
+ profile: {
120
+ me: _orpc_tanstack_query0.ProcedureUtils<Record<never, never>, unknown, {
121
+ id: string;
122
+ name: string;
123
+ email: string;
124
+ emailVerified: boolean;
125
+ createdAt: string;
126
+ updatedAt: string;
127
+ }, Error> & _orpc_tanstack_query0.GeneralUtils<unknown>;
128
+ } & _orpc_tanstack_query0.GeneralUtils<unknown>;
129
+ } & _orpc_tanstack_query0.GeneralUtils<unknown>;
130
+ declare function useAuth(): {
131
+ signOut: <FetchOptions extends better_auth0.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth0.Prettify<{
132
+ query?: Record<string, any> | undefined;
133
+ fetchOptions?: FetchOptions | undefined;
134
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
135
+ success: boolean;
136
+ }, {
137
+ code?: string | undefined;
138
+ message?: string | undefined;
139
+ }, FetchOptions["throw"] extends true ? true : false>>;
140
+ } & {
141
+ resetPassword: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
142
+ newPassword: string;
143
+ token?: string | undefined;
144
+ }> & Record<string, any>, Partial<{
145
+ token?: string | undefined;
146
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
147
+ newPassword: string;
148
+ token?: string | undefined;
149
+ } & {
150
+ fetchOptions?: FetchOptions | undefined;
151
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
152
+ status: boolean;
153
+ }, {
154
+ code?: string | undefined;
155
+ message?: string | undefined;
156
+ }, FetchOptions["throw"] extends true ? true : false>>;
157
+ } & {
158
+ verifyEmail: <FetchOptions extends better_auth0.ClientFetchOption<never, Partial<{
159
+ token: string;
160
+ callbackURL?: string | undefined;
161
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
162
+ query: {
163
+ token: string;
164
+ callbackURL?: string | undefined;
165
+ };
166
+ fetchOptions?: FetchOptions | undefined;
167
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<NonNullable<void | {
168
+ status: boolean;
169
+ }>, {
170
+ code?: string | undefined;
171
+ message?: string | undefined;
172
+ }, FetchOptions["throw"] extends true ? true : false>>;
173
+ } & {
174
+ sendVerificationEmail: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
175
+ email: string;
176
+ callbackURL?: string | undefined;
177
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
178
+ email: string;
179
+ callbackURL?: string | undefined;
180
+ } & {
181
+ fetchOptions?: FetchOptions | undefined;
182
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
183
+ status: boolean;
184
+ }, {
185
+ code?: string | undefined;
186
+ message?: string | undefined;
187
+ }, FetchOptions["throw"] extends true ? true : false>>;
188
+ } & {
189
+ changeEmail: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
190
+ newEmail: string;
191
+ callbackURL?: string | undefined;
192
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
193
+ newEmail: string;
194
+ callbackURL?: string | undefined;
195
+ } & {
196
+ fetchOptions?: FetchOptions | undefined;
197
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
198
+ status: boolean;
199
+ }, {
200
+ code?: string | undefined;
201
+ message?: string | undefined;
202
+ }, FetchOptions["throw"] extends true ? true : false>>;
203
+ } & {
204
+ changePassword: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
205
+ newPassword: string;
206
+ currentPassword: string;
207
+ revokeOtherSessions?: boolean | undefined;
208
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
209
+ newPassword: string;
210
+ currentPassword: string;
211
+ revokeOtherSessions?: boolean | undefined;
212
+ } & {
213
+ fetchOptions?: FetchOptions | undefined;
214
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
215
+ token: string | null;
216
+ user: {
217
+ id: string;
218
+ email: string;
219
+ name: string;
220
+ image: string | null | undefined;
221
+ emailVerified: boolean;
222
+ createdAt: Date;
223
+ updatedAt: Date;
224
+ };
225
+ }, {
226
+ code?: string | undefined;
227
+ message?: string | undefined;
228
+ }, FetchOptions["throw"] extends true ? true : false>>;
229
+ } & {
230
+ deleteUser: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
231
+ callbackURL?: string | undefined;
232
+ password?: string | undefined;
233
+ token?: string | undefined;
234
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth0.Prettify<{
235
+ callbackURL?: string | undefined;
236
+ password?: string | undefined;
237
+ token?: string | undefined;
238
+ } & {
239
+ fetchOptions?: FetchOptions | undefined;
240
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
241
+ success: boolean;
242
+ message: string;
243
+ }, {
244
+ code?: string | undefined;
245
+ message?: string | undefined;
246
+ }, FetchOptions["throw"] extends true ? true : false>>;
247
+ } & {
248
+ requestPasswordReset: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
249
+ email: string;
250
+ redirectTo?: string | undefined;
251
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
252
+ email: string;
253
+ redirectTo?: string | undefined;
254
+ } & {
255
+ fetchOptions?: FetchOptions | undefined;
256
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
257
+ status: boolean;
258
+ message: string;
259
+ }, {
260
+ code?: string | undefined;
261
+ message?: string | undefined;
262
+ }, FetchOptions["throw"] extends true ? true : false>>;
263
+ } & {
264
+ resetPassword: {
265
+ ":token": <FetchOptions extends better_auth0.ClientFetchOption<never, Partial<{
266
+ callbackURL: string;
267
+ }> & Record<string, any>, {
268
+ token: string;
269
+ }>>(data_0: better_auth0.Prettify<{
270
+ query: {
271
+ callbackURL: string;
272
+ };
273
+ fetchOptions?: FetchOptions | undefined;
274
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<never, {
275
+ code?: string | undefined;
276
+ message?: string | undefined;
277
+ }, FetchOptions["throw"] extends true ? true : false>>;
278
+ };
279
+ } & {
280
+ revokeSession: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
281
+ token: string;
282
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
283
+ token: string;
284
+ } & {
285
+ fetchOptions?: FetchOptions | undefined;
286
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
287
+ status: boolean;
288
+ }, {
289
+ code?: string | undefined;
290
+ message?: string | undefined;
291
+ }, FetchOptions["throw"] extends true ? true : false>>;
292
+ } & {
293
+ revokeSessions: <FetchOptions extends better_auth0.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth0.Prettify<{
294
+ query?: Record<string, any> | undefined;
295
+ fetchOptions?: FetchOptions | undefined;
296
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
297
+ status: boolean;
298
+ }, {
299
+ code?: string | undefined;
300
+ message?: string | undefined;
301
+ }, FetchOptions["throw"] extends true ? true : false>>;
302
+ } & {
303
+ revokeOtherSessions: <FetchOptions extends better_auth0.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth0.Prettify<{
304
+ query?: Record<string, any> | undefined;
305
+ fetchOptions?: FetchOptions | undefined;
306
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
307
+ status: boolean;
308
+ }, {
309
+ code?: string | undefined;
310
+ message?: string | undefined;
311
+ }, FetchOptions["throw"] extends true ? true : false>>;
312
+ } & {
313
+ linkSocial: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
314
+ provider: unknown;
315
+ callbackURL?: string | undefined;
316
+ idToken?: {
317
+ token: string;
318
+ nonce?: string | undefined;
319
+ accessToken?: string | undefined;
320
+ refreshToken?: string | undefined;
321
+ scopes?: string[] | undefined;
322
+ } | undefined;
323
+ requestSignUp?: boolean | undefined;
324
+ scopes?: string[] | undefined;
325
+ errorCallbackURL?: string | undefined;
326
+ disableRedirect?: boolean | undefined;
327
+ additionalData?: Record<string, any> | undefined;
328
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
329
+ provider: unknown;
330
+ callbackURL?: string | undefined;
331
+ idToken?: {
332
+ token: string;
333
+ nonce?: string | undefined;
334
+ accessToken?: string | undefined;
335
+ refreshToken?: string | undefined;
336
+ scopes?: string[] | undefined;
337
+ } | undefined;
338
+ requestSignUp?: boolean | undefined;
339
+ scopes?: string[] | undefined;
340
+ errorCallbackURL?: string | undefined;
341
+ disableRedirect?: boolean | undefined;
342
+ additionalData?: Record<string, any> | undefined;
343
+ } & {
344
+ fetchOptions?: FetchOptions | undefined;
345
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
346
+ url: string;
347
+ redirect: boolean;
348
+ }, {
349
+ code?: string | undefined;
350
+ message?: string | undefined;
351
+ }, FetchOptions["throw"] extends true ? true : false>>;
352
+ } & {
353
+ listAccounts: <FetchOptions extends better_auth0.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth0.Prettify<{
354
+ query?: Record<string, any> | undefined;
355
+ fetchOptions?: FetchOptions | undefined;
356
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
357
+ id: string;
358
+ providerId: string;
359
+ createdAt: Date;
360
+ updatedAt: Date;
361
+ accountId: string;
362
+ userId: string;
363
+ scopes: string[];
364
+ }[], {
365
+ code?: string | undefined;
366
+ message?: string | undefined;
367
+ }, FetchOptions["throw"] extends true ? true : false>>;
368
+ } & {
369
+ deleteUser: {
370
+ callback: <FetchOptions extends better_auth0.ClientFetchOption<never, Partial<{
371
+ token: string;
372
+ callbackURL?: string | undefined;
373
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
374
+ query: {
375
+ token: string;
376
+ callbackURL?: string | undefined;
377
+ };
378
+ fetchOptions?: FetchOptions | undefined;
379
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
380
+ success: boolean;
381
+ message: string;
382
+ }, {
383
+ code?: string | undefined;
384
+ message?: string | undefined;
385
+ }, FetchOptions["throw"] extends true ? true : false>>;
386
+ };
387
+ } & {
388
+ unlinkAccount: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
389
+ providerId: string;
390
+ accountId?: string | undefined;
391
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
392
+ providerId: string;
393
+ accountId?: string | undefined;
394
+ } & {
395
+ fetchOptions?: FetchOptions | undefined;
396
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
397
+ status: boolean;
398
+ }, {
399
+ code?: string | undefined;
400
+ message?: string | undefined;
401
+ }, FetchOptions["throw"] extends true ? true : false>>;
402
+ } & {
403
+ refreshToken: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
404
+ providerId: string;
405
+ accountId?: string | undefined;
406
+ userId?: string | undefined;
407
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
408
+ providerId: string;
409
+ accountId?: string | undefined;
410
+ userId?: string | undefined;
411
+ } & {
412
+ fetchOptions?: FetchOptions | undefined;
413
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
414
+ accessToken: string | undefined;
415
+ refreshToken: string | undefined;
416
+ accessTokenExpiresAt: Date | undefined;
417
+ refreshTokenExpiresAt: Date | undefined;
418
+ scope: string | null | undefined;
419
+ idToken: string | null | undefined;
420
+ providerId: string;
421
+ accountId: string;
422
+ }, {
423
+ code?: string | undefined;
424
+ message?: string | undefined;
425
+ }, FetchOptions["throw"] extends true ? true : false>>;
426
+ } & {
427
+ getAccessToken: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
428
+ providerId: string;
429
+ accountId?: string | undefined;
430
+ userId?: string | undefined;
431
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
432
+ providerId: string;
433
+ accountId?: string | undefined;
434
+ userId?: string | undefined;
435
+ } & {
436
+ fetchOptions?: FetchOptions | undefined;
437
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
438
+ accessToken: string;
439
+ accessTokenExpiresAt: Date | undefined;
440
+ scopes: string[];
441
+ idToken: string | undefined;
442
+ }, {
443
+ code?: string | undefined;
444
+ message?: string | undefined;
445
+ }, FetchOptions["throw"] extends true ? true : false>>;
446
+ } & {
447
+ accountInfo: <FetchOptions extends better_auth0.ClientFetchOption<never, Partial<{
448
+ accountId?: string | undefined;
449
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth0.Prettify<{
450
+ query?: {
451
+ accountId?: string | undefined;
452
+ } | undefined;
453
+ fetchOptions?: FetchOptions | undefined;
454
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
455
+ user: better_auth0.OAuth2UserInfo;
456
+ data: Record<string, any>;
457
+ }, {
458
+ code?: string | undefined;
459
+ message?: string | undefined;
460
+ }, FetchOptions["throw"] extends true ? true : false>>;
461
+ } & {
462
+ signIn: {
463
+ social: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
464
+ provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
465
+ callbackURL?: string | undefined;
466
+ newUserCallbackURL?: string | undefined;
467
+ errorCallbackURL?: string | undefined;
468
+ disableRedirect?: boolean | undefined;
469
+ idToken?: {
470
+ token: string;
471
+ nonce?: string | undefined;
472
+ accessToken?: string | undefined;
473
+ refreshToken?: string | undefined;
474
+ expiresAt?: number | undefined;
475
+ } | undefined;
476
+ scopes?: string[] | undefined;
477
+ requestSignUp?: boolean | undefined;
478
+ loginHint?: string | undefined;
479
+ additionalData?: Record<string, any> | undefined;
480
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
481
+ provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
482
+ callbackURL?: string | undefined;
483
+ newUserCallbackURL?: string | undefined;
484
+ errorCallbackURL?: string | undefined;
485
+ disableRedirect?: boolean | undefined;
486
+ idToken?: {
487
+ token: string;
488
+ nonce?: string | undefined;
489
+ accessToken?: string | undefined;
490
+ refreshToken?: string | undefined;
491
+ expiresAt?: number | undefined;
492
+ } | undefined;
493
+ scopes?: string[] | undefined;
494
+ requestSignUp?: boolean | undefined;
495
+ loginHint?: string | undefined;
496
+ additionalData?: Record<string, any> | undefined;
497
+ } & {
498
+ fetchOptions?: FetchOptions | undefined;
499
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<NonNullable<{
500
+ redirect: boolean;
501
+ url: string;
502
+ } | {
503
+ redirect: boolean;
504
+ token: string;
505
+ url: undefined;
506
+ user: {
507
+ id: string;
508
+ createdAt: Date;
509
+ updatedAt: Date;
510
+ email: string;
511
+ emailVerified: boolean;
512
+ name: string;
513
+ image?: string | null | undefined | undefined;
514
+ };
515
+ }>, {
516
+ code?: string | undefined;
517
+ message?: string | undefined;
518
+ }, FetchOptions["throw"] extends true ? true : false>>;
519
+ };
520
+ } & {
521
+ signUp: {
522
+ email: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
523
+ name: string;
524
+ email: string;
525
+ password: string;
526
+ image?: string | undefined;
527
+ callbackURL?: string | undefined;
528
+ rememberMe?: boolean | undefined;
529
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
530
+ email: string;
531
+ name: string;
532
+ password: string;
533
+ image?: string | undefined;
534
+ callbackURL?: string | undefined;
535
+ fetchOptions?: FetchOptions | undefined;
536
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<NonNullable<{
537
+ token: null;
538
+ user: {
539
+ id: string;
540
+ createdAt: Date;
541
+ updatedAt: Date;
542
+ email: string;
543
+ emailVerified: boolean;
544
+ name: string;
545
+ image?: string | null | undefined | undefined;
546
+ };
547
+ } | {
548
+ token: string;
549
+ user: {
550
+ id: string;
551
+ createdAt: Date;
552
+ updatedAt: Date;
553
+ email: string;
554
+ emailVerified: boolean;
555
+ name: string;
556
+ image?: string | null | undefined | undefined;
557
+ };
558
+ }>, {
559
+ code?: string | undefined;
560
+ message?: string | undefined;
561
+ }, FetchOptions["throw"] extends true ? true : false>>;
562
+ };
563
+ } & {
564
+ signIn: {
565
+ email: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
566
+ email: string;
567
+ password: string;
568
+ callbackURL?: string | undefined;
569
+ rememberMe?: boolean | undefined;
570
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
571
+ email: string;
572
+ password: string;
573
+ callbackURL?: string | undefined;
574
+ rememberMe?: boolean | undefined;
575
+ } & {
576
+ fetchOptions?: FetchOptions | undefined;
577
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
578
+ redirect: boolean;
579
+ token: string;
580
+ url?: string | undefined;
581
+ user: {
582
+ id: string;
583
+ createdAt: Date;
584
+ updatedAt: Date;
585
+ email: string;
586
+ emailVerified: boolean;
587
+ name: string;
588
+ image?: string | null | undefined | undefined;
589
+ };
590
+ }, {
591
+ code?: string | undefined;
592
+ message?: string | undefined;
593
+ }, FetchOptions["throw"] extends true ? true : false>>;
594
+ };
595
+ } & {
596
+ updateUser: <FetchOptions extends better_auth0.ClientFetchOption<Partial<Partial<{}> & {
597
+ name?: string | undefined;
598
+ image?: string | undefined | null;
599
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth0.Prettify<{
600
+ image?: (string | null) | undefined;
601
+ name?: string | undefined;
602
+ fetchOptions?: FetchOptions | undefined;
603
+ } & Partial<{}>> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
604
+ status: boolean;
605
+ }, {
606
+ code?: string | undefined;
607
+ message?: string | undefined;
608
+ }, FetchOptions["throw"] extends true ? true : false>>;
609
+ } & {
610
+ listSessions: <FetchOptions extends better_auth0.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth0.Prettify<{
611
+ query?: Record<string, any> | undefined;
612
+ fetchOptions?: FetchOptions | undefined;
613
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<better_auth0.Prettify<{
614
+ id: string;
615
+ createdAt: Date;
616
+ updatedAt: Date;
617
+ userId: string;
618
+ expiresAt: Date;
619
+ token: string;
620
+ ipAddress?: string | null | undefined | undefined;
621
+ userAgent?: string | null | undefined | undefined;
622
+ }>[], {
623
+ code?: string | undefined;
624
+ message?: string | undefined;
625
+ }, FetchOptions["throw"] extends true ? true : false>>;
626
+ } & {
627
+ getSession: <FetchOptions extends better_auth0.ClientFetchOption<never, Partial<{
628
+ disableCookieCache?: unknown;
629
+ disableRefresh?: unknown;
630
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth0.Prettify<{
631
+ query?: {
632
+ disableCookieCache?: unknown;
633
+ disableRefresh?: unknown;
634
+ } | undefined;
635
+ fetchOptions?: FetchOptions | undefined;
636
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
637
+ user: {
638
+ id: string;
639
+ createdAt: Date;
640
+ updatedAt: Date;
641
+ email: string;
642
+ emailVerified: boolean;
643
+ name: string;
644
+ image?: string | null | undefined;
645
+ };
646
+ session: {
647
+ id: string;
648
+ createdAt: Date;
649
+ updatedAt: Date;
650
+ userId: string;
651
+ expiresAt: Date;
652
+ token: string;
653
+ ipAddress?: string | null | undefined;
654
+ userAgent?: string | null | undefined;
655
+ };
656
+ } | null, {
657
+ code?: string | undefined;
658
+ message?: string | undefined;
659
+ }, FetchOptions["throw"] extends true ? true : false>>;
660
+ } & {
661
+ useSession: () => {
662
+ data: {
663
+ user: {
664
+ id: string;
665
+ createdAt: Date;
666
+ updatedAt: Date;
667
+ email: string;
668
+ emailVerified: boolean;
669
+ name: string;
670
+ image?: string | null | undefined;
671
+ };
672
+ session: {
673
+ id: string;
674
+ createdAt: Date;
675
+ updatedAt: Date;
676
+ userId: string;
677
+ expiresAt: Date;
678
+ token: string;
679
+ ipAddress?: string | null | undefined;
680
+ userAgent?: string | null | undefined;
681
+ };
682
+ } | null;
683
+ isPending: boolean;
684
+ isRefetching: boolean;
685
+ error: better_auth_react0.BetterFetchError | null;
686
+ refetch: (queryParams?: {
687
+ query?: better_auth0.SessionQueryParams;
688
+ } | undefined) => Promise<void>;
689
+ };
690
+ $Infer: {
691
+ Session: {
692
+ user: {
693
+ id: string;
694
+ createdAt: Date;
695
+ updatedAt: Date;
696
+ email: string;
697
+ emailVerified: boolean;
698
+ name: string;
699
+ image?: string | null | undefined;
700
+ };
701
+ session: {
702
+ id: string;
703
+ createdAt: Date;
704
+ updatedAt: Date;
705
+ userId: string;
706
+ expiresAt: Date;
707
+ token: string;
708
+ ipAddress?: string | null | undefined;
709
+ userAgent?: string | null | undefined;
710
+ };
711
+ };
712
+ };
713
+ $fetch: better_auth_react0.BetterFetch<{
714
+ plugins: (better_auth_react0.BetterFetchPlugin | {
715
+ id: string;
716
+ name: string;
717
+ hooks: {
718
+ onSuccess(context: better_auth_react0.SuccessContext<any>): void;
719
+ };
720
+ } | {
721
+ id: string;
722
+ name: string;
723
+ hooks: {
724
+ onSuccess: ((context: better_auth_react0.SuccessContext<any>) => Promise<void> | void) | undefined;
725
+ onError: ((context: better_auth_react0.ErrorContext) => Promise<void> | void) | undefined;
726
+ onRequest: (<T extends Record<string, any>>(context: better_auth_react0.RequestContext<T>) => Promise<better_auth_react0.RequestContext | void> | better_auth_react0.RequestContext | void) | undefined;
727
+ onResponse: ((context: better_auth_react0.ResponseContext) => Promise<Response | void | better_auth_react0.ResponseContext> | Response | better_auth_react0.ResponseContext | void) | undefined;
728
+ };
729
+ })[];
730
+ cache?: RequestCache | undefined;
731
+ method: string;
732
+ headers?: (HeadersInit & (HeadersInit | {
733
+ accept: "application/json" | "text/plain" | "application/octet-stream";
734
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
735
+ authorization: "Bearer" | "Basic";
736
+ })) | undefined;
737
+ redirect?: RequestRedirect | undefined;
738
+ credentials?: RequestCredentials;
739
+ integrity?: string | undefined;
740
+ keepalive?: boolean | undefined;
741
+ mode?: RequestMode | undefined;
742
+ priority?: RequestPriority | undefined;
743
+ referrer?: string | undefined;
744
+ referrerPolicy?: ReferrerPolicy | undefined;
745
+ signal?: (AbortSignal | null) | undefined;
746
+ window?: null | undefined;
747
+ onRetry?: ((response: better_auth_react0.ResponseContext) => Promise<void> | void) | undefined;
748
+ hookOptions?: {
749
+ cloneResponse?: boolean;
750
+ } | undefined;
751
+ timeout?: number | undefined;
752
+ customFetchImpl: better_auth_react0.FetchEsque;
753
+ baseURL: string;
754
+ throw?: boolean | undefined;
755
+ auth?: ({
756
+ type: "Bearer";
757
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
758
+ } | {
759
+ type: "Basic";
760
+ username: string | (() => string | undefined) | undefined;
761
+ password: string | (() => string | undefined) | undefined;
762
+ } | {
763
+ type: "Custom";
764
+ prefix: string | (() => string | undefined) | undefined;
765
+ value: string | (() => string | undefined) | undefined;
766
+ }) | undefined;
767
+ body?: any;
768
+ query?: any;
769
+ params?: any;
770
+ duplex?: "full" | "half" | undefined;
771
+ jsonParser: (text: string) => Promise<any> | any;
772
+ retry?: better_auth_react0.RetryOptions | undefined;
773
+ retryAttempt?: number | undefined;
774
+ output?: (better_auth_react0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
775
+ errorSchema?: better_auth_react0.StandardSchemaV1 | undefined;
776
+ disableValidation?: boolean | undefined;
777
+ disableSignal?: boolean | undefined;
778
+ }, unknown, unknown, {}>;
779
+ $store: {
780
+ notify: (signal?: (Omit<string, "$sessionSignal"> | "$sessionSignal") | undefined) => void;
781
+ listen: (signal: Omit<string, "$sessionSignal"> | "$sessionSignal", listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
782
+ atoms: Record<string, better_auth_react0.WritableAtom<any>>;
783
+ };
784
+ $ERROR_CODES: {
785
+ readonly USER_NOT_FOUND: "User not found";
786
+ readonly FAILED_TO_CREATE_USER: "Failed to create user";
787
+ readonly FAILED_TO_CREATE_SESSION: "Failed to create session";
788
+ readonly FAILED_TO_UPDATE_USER: "Failed to update user";
789
+ readonly FAILED_TO_GET_SESSION: "Failed to get session";
790
+ readonly INVALID_PASSWORD: "Invalid password";
791
+ readonly INVALID_EMAIL: "Invalid email";
792
+ readonly INVALID_EMAIL_OR_PASSWORD: "Invalid email or password";
793
+ readonly SOCIAL_ACCOUNT_ALREADY_LINKED: "Social account already linked";
794
+ readonly PROVIDER_NOT_FOUND: "Provider not found";
795
+ readonly INVALID_TOKEN: "Invalid token";
796
+ readonly ID_TOKEN_NOT_SUPPORTED: "id_token not supported";
797
+ readonly FAILED_TO_GET_USER_INFO: "Failed to get user info";
798
+ readonly USER_EMAIL_NOT_FOUND: "User email not found";
799
+ readonly EMAIL_NOT_VERIFIED: "Email not verified";
800
+ readonly PASSWORD_TOO_SHORT: "Password too short";
801
+ readonly PASSWORD_TOO_LONG: "Password too long";
802
+ readonly USER_ALREADY_EXISTS: "User already exists.";
803
+ readonly USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL: "User already exists. Use another email.";
804
+ readonly EMAIL_CAN_NOT_BE_UPDATED: "Email can not be updated";
805
+ readonly CREDENTIAL_ACCOUNT_NOT_FOUND: "Credential account not found";
806
+ readonly SESSION_EXPIRED: "Session expired. Re-authenticate to perform this action.";
807
+ readonly FAILED_TO_UNLINK_LAST_ACCOUNT: "You can't unlink your last account";
808
+ readonly ACCOUNT_NOT_FOUND: "Account not found";
809
+ readonly USER_ALREADY_HAS_PASSWORD: "User already has a password. Provide that to delete the account.";
810
+ };
811
+ };
812
+ declare function useQueryClient(): _tanstack_react_query0.QueryClient;
813
+ declare function createKuckitWebProvider(options: CreateKuckitWebProviderOptions): ComponentType<{
814
+ children?: ReactNode;
815
+ }>;
816
+ declare function withKuckitWeb<P extends object>(Component: ComponentType<P>, options: CreateKuckitWebProviderOptions): ComponentType<P>;
817
+ //#endregion
818
+ //#region src/services.d.ts
819
+ interface CreateServicesOptions {
820
+ serverUrl?: string;
821
+ onQueryError?: (error: Error) => void;
822
+ }
823
+ declare function createQueryClient(onError?: (error: Error) => void): QueryClient;
824
+ declare function createRPCLink(serverUrl: string): RPCLink<_orpc_client0.ClientContext>;
825
+ declare function createRPCClient(link: ReturnType<typeof createRPCLink>): AppRouterClient;
826
+ declare function createORPCUtils(client: AppRouterClient): ORPCUtils;
827
+ declare function createAuthClientService(serverUrl: string): {
828
+ signOut: <FetchOptions extends better_auth0.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth0.Prettify<{
829
+ query?: Record<string, any> | undefined;
830
+ fetchOptions?: FetchOptions | undefined;
831
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
832
+ success: boolean;
833
+ }, {
834
+ code?: string | undefined;
835
+ message?: string | undefined;
836
+ }, FetchOptions["throw"] extends true ? true : false>>;
837
+ } & {
838
+ resetPassword: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
839
+ newPassword: string;
840
+ token?: string | undefined;
841
+ }> & Record<string, any>, Partial<{
842
+ token?: string | undefined;
843
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
844
+ newPassword: string;
845
+ token?: string | undefined;
846
+ } & {
847
+ fetchOptions?: FetchOptions | undefined;
848
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
849
+ status: boolean;
850
+ }, {
851
+ code?: string | undefined;
852
+ message?: string | undefined;
853
+ }, FetchOptions["throw"] extends true ? true : false>>;
854
+ } & {
855
+ verifyEmail: <FetchOptions extends better_auth0.ClientFetchOption<never, Partial<{
856
+ token: string;
857
+ callbackURL?: string | undefined;
858
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
859
+ query: {
860
+ token: string;
861
+ callbackURL?: string | undefined;
862
+ };
863
+ fetchOptions?: FetchOptions | undefined;
864
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<NonNullable<void | {
865
+ status: boolean;
866
+ }>, {
867
+ code?: string | undefined;
868
+ message?: string | undefined;
869
+ }, FetchOptions["throw"] extends true ? true : false>>;
870
+ } & {
871
+ sendVerificationEmail: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
872
+ email: string;
873
+ callbackURL?: string | undefined;
874
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
875
+ email: string;
876
+ callbackURL?: string | undefined;
877
+ } & {
878
+ fetchOptions?: FetchOptions | undefined;
879
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
880
+ status: boolean;
881
+ }, {
882
+ code?: string | undefined;
883
+ message?: string | undefined;
884
+ }, FetchOptions["throw"] extends true ? true : false>>;
885
+ } & {
886
+ changeEmail: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
887
+ newEmail: string;
888
+ callbackURL?: string | undefined;
889
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
890
+ newEmail: string;
891
+ callbackURL?: string | undefined;
892
+ } & {
893
+ fetchOptions?: FetchOptions | undefined;
894
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
895
+ status: boolean;
896
+ }, {
897
+ code?: string | undefined;
898
+ message?: string | undefined;
899
+ }, FetchOptions["throw"] extends true ? true : false>>;
900
+ } & {
901
+ changePassword: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
902
+ newPassword: string;
903
+ currentPassword: string;
904
+ revokeOtherSessions?: boolean | undefined;
905
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
906
+ newPassword: string;
907
+ currentPassword: string;
908
+ revokeOtherSessions?: boolean | undefined;
909
+ } & {
910
+ fetchOptions?: FetchOptions | undefined;
911
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
912
+ token: string | null;
913
+ user: {
914
+ id: string;
915
+ email: string;
916
+ name: string;
917
+ image: string | null | undefined;
918
+ emailVerified: boolean;
919
+ createdAt: Date;
920
+ updatedAt: Date;
921
+ };
922
+ }, {
923
+ code?: string | undefined;
924
+ message?: string | undefined;
925
+ }, FetchOptions["throw"] extends true ? true : false>>;
926
+ } & {
927
+ deleteUser: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
928
+ callbackURL?: string | undefined;
929
+ password?: string | undefined;
930
+ token?: string | undefined;
931
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth0.Prettify<{
932
+ callbackURL?: string | undefined;
933
+ password?: string | undefined;
934
+ token?: string | undefined;
935
+ } & {
936
+ fetchOptions?: FetchOptions | undefined;
937
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
938
+ success: boolean;
939
+ message: string;
940
+ }, {
941
+ code?: string | undefined;
942
+ message?: string | undefined;
943
+ }, FetchOptions["throw"] extends true ? true : false>>;
944
+ } & {
945
+ requestPasswordReset: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
946
+ email: string;
947
+ redirectTo?: string | undefined;
948
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
949
+ email: string;
950
+ redirectTo?: string | undefined;
951
+ } & {
952
+ fetchOptions?: FetchOptions | undefined;
953
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
954
+ status: boolean;
955
+ message: string;
956
+ }, {
957
+ code?: string | undefined;
958
+ message?: string | undefined;
959
+ }, FetchOptions["throw"] extends true ? true : false>>;
960
+ } & {
961
+ resetPassword: {
962
+ ":token": <FetchOptions extends better_auth0.ClientFetchOption<never, Partial<{
963
+ callbackURL: string;
964
+ }> & Record<string, any>, {
965
+ token: string;
966
+ }>>(data_0: better_auth0.Prettify<{
967
+ query: {
968
+ callbackURL: string;
969
+ };
970
+ fetchOptions?: FetchOptions | undefined;
971
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<never, {
972
+ code?: string | undefined;
973
+ message?: string | undefined;
974
+ }, FetchOptions["throw"] extends true ? true : false>>;
975
+ };
976
+ } & {
977
+ revokeSession: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
978
+ token: string;
979
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
980
+ token: string;
981
+ } & {
982
+ fetchOptions?: FetchOptions | undefined;
983
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
984
+ status: boolean;
985
+ }, {
986
+ code?: string | undefined;
987
+ message?: string | undefined;
988
+ }, FetchOptions["throw"] extends true ? true : false>>;
989
+ } & {
990
+ revokeSessions: <FetchOptions extends better_auth0.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth0.Prettify<{
991
+ query?: Record<string, any> | undefined;
992
+ fetchOptions?: FetchOptions | undefined;
993
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
994
+ status: boolean;
995
+ }, {
996
+ code?: string | undefined;
997
+ message?: string | undefined;
998
+ }, FetchOptions["throw"] extends true ? true : false>>;
999
+ } & {
1000
+ revokeOtherSessions: <FetchOptions extends better_auth0.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth0.Prettify<{
1001
+ query?: Record<string, any> | undefined;
1002
+ fetchOptions?: FetchOptions | undefined;
1003
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
1004
+ status: boolean;
1005
+ }, {
1006
+ code?: string | undefined;
1007
+ message?: string | undefined;
1008
+ }, FetchOptions["throw"] extends true ? true : false>>;
1009
+ } & {
1010
+ linkSocial: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
1011
+ provider: unknown;
1012
+ callbackURL?: string | undefined;
1013
+ idToken?: {
1014
+ token: string;
1015
+ nonce?: string | undefined;
1016
+ accessToken?: string | undefined;
1017
+ refreshToken?: string | undefined;
1018
+ scopes?: string[] | undefined;
1019
+ } | undefined;
1020
+ requestSignUp?: boolean | undefined;
1021
+ scopes?: string[] | undefined;
1022
+ errorCallbackURL?: string | undefined;
1023
+ disableRedirect?: boolean | undefined;
1024
+ additionalData?: Record<string, any> | undefined;
1025
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
1026
+ provider: unknown;
1027
+ callbackURL?: string | undefined;
1028
+ idToken?: {
1029
+ token: string;
1030
+ nonce?: string | undefined;
1031
+ accessToken?: string | undefined;
1032
+ refreshToken?: string | undefined;
1033
+ scopes?: string[] | undefined;
1034
+ } | undefined;
1035
+ requestSignUp?: boolean | undefined;
1036
+ scopes?: string[] | undefined;
1037
+ errorCallbackURL?: string | undefined;
1038
+ disableRedirect?: boolean | undefined;
1039
+ additionalData?: Record<string, any> | undefined;
1040
+ } & {
1041
+ fetchOptions?: FetchOptions | undefined;
1042
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
1043
+ url: string;
1044
+ redirect: boolean;
1045
+ }, {
1046
+ code?: string | undefined;
1047
+ message?: string | undefined;
1048
+ }, FetchOptions["throw"] extends true ? true : false>>;
1049
+ } & {
1050
+ listAccounts: <FetchOptions extends better_auth0.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth0.Prettify<{
1051
+ query?: Record<string, any> | undefined;
1052
+ fetchOptions?: FetchOptions | undefined;
1053
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
1054
+ id: string;
1055
+ providerId: string;
1056
+ createdAt: Date;
1057
+ updatedAt: Date;
1058
+ accountId: string;
1059
+ userId: string;
1060
+ scopes: string[];
1061
+ }[], {
1062
+ code?: string | undefined;
1063
+ message?: string | undefined;
1064
+ }, FetchOptions["throw"] extends true ? true : false>>;
1065
+ } & {
1066
+ deleteUser: {
1067
+ callback: <FetchOptions extends better_auth0.ClientFetchOption<never, Partial<{
1068
+ token: string;
1069
+ callbackURL?: string | undefined;
1070
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
1071
+ query: {
1072
+ token: string;
1073
+ callbackURL?: string | undefined;
1074
+ };
1075
+ fetchOptions?: FetchOptions | undefined;
1076
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
1077
+ success: boolean;
1078
+ message: string;
1079
+ }, {
1080
+ code?: string | undefined;
1081
+ message?: string | undefined;
1082
+ }, FetchOptions["throw"] extends true ? true : false>>;
1083
+ };
1084
+ } & {
1085
+ unlinkAccount: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
1086
+ providerId: string;
1087
+ accountId?: string | undefined;
1088
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
1089
+ providerId: string;
1090
+ accountId?: string | undefined;
1091
+ } & {
1092
+ fetchOptions?: FetchOptions | undefined;
1093
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
1094
+ status: boolean;
1095
+ }, {
1096
+ code?: string | undefined;
1097
+ message?: string | undefined;
1098
+ }, FetchOptions["throw"] extends true ? true : false>>;
1099
+ } & {
1100
+ refreshToken: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
1101
+ providerId: string;
1102
+ accountId?: string | undefined;
1103
+ userId?: string | undefined;
1104
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
1105
+ providerId: string;
1106
+ accountId?: string | undefined;
1107
+ userId?: string | undefined;
1108
+ } & {
1109
+ fetchOptions?: FetchOptions | undefined;
1110
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
1111
+ accessToken: string | undefined;
1112
+ refreshToken: string | undefined;
1113
+ accessTokenExpiresAt: Date | undefined;
1114
+ refreshTokenExpiresAt: Date | undefined;
1115
+ scope: string | null | undefined;
1116
+ idToken: string | null | undefined;
1117
+ providerId: string;
1118
+ accountId: string;
1119
+ }, {
1120
+ code?: string | undefined;
1121
+ message?: string | undefined;
1122
+ }, FetchOptions["throw"] extends true ? true : false>>;
1123
+ } & {
1124
+ getAccessToken: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
1125
+ providerId: string;
1126
+ accountId?: string | undefined;
1127
+ userId?: string | undefined;
1128
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
1129
+ providerId: string;
1130
+ accountId?: string | undefined;
1131
+ userId?: string | undefined;
1132
+ } & {
1133
+ fetchOptions?: FetchOptions | undefined;
1134
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
1135
+ accessToken: string;
1136
+ accessTokenExpiresAt: Date | undefined;
1137
+ scopes: string[];
1138
+ idToken: string | undefined;
1139
+ }, {
1140
+ code?: string | undefined;
1141
+ message?: string | undefined;
1142
+ }, FetchOptions["throw"] extends true ? true : false>>;
1143
+ } & {
1144
+ accountInfo: <FetchOptions extends better_auth0.ClientFetchOption<never, Partial<{
1145
+ accountId?: string | undefined;
1146
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth0.Prettify<{
1147
+ query?: {
1148
+ accountId?: string | undefined;
1149
+ } | undefined;
1150
+ fetchOptions?: FetchOptions | undefined;
1151
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
1152
+ user: better_auth0.OAuth2UserInfo;
1153
+ data: Record<string, any>;
1154
+ }, {
1155
+ code?: string | undefined;
1156
+ message?: string | undefined;
1157
+ }, FetchOptions["throw"] extends true ? true : false>>;
1158
+ } & {
1159
+ signIn: {
1160
+ social: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
1161
+ provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
1162
+ callbackURL?: string | undefined;
1163
+ newUserCallbackURL?: string | undefined;
1164
+ errorCallbackURL?: string | undefined;
1165
+ disableRedirect?: boolean | undefined;
1166
+ idToken?: {
1167
+ token: string;
1168
+ nonce?: string | undefined;
1169
+ accessToken?: string | undefined;
1170
+ refreshToken?: string | undefined;
1171
+ expiresAt?: number | undefined;
1172
+ } | undefined;
1173
+ scopes?: string[] | undefined;
1174
+ requestSignUp?: boolean | undefined;
1175
+ loginHint?: string | undefined;
1176
+ additionalData?: Record<string, any> | undefined;
1177
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
1178
+ provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
1179
+ callbackURL?: string | undefined;
1180
+ newUserCallbackURL?: string | undefined;
1181
+ errorCallbackURL?: string | undefined;
1182
+ disableRedirect?: boolean | undefined;
1183
+ idToken?: {
1184
+ token: string;
1185
+ nonce?: string | undefined;
1186
+ accessToken?: string | undefined;
1187
+ refreshToken?: string | undefined;
1188
+ expiresAt?: number | undefined;
1189
+ } | undefined;
1190
+ scopes?: string[] | undefined;
1191
+ requestSignUp?: boolean | undefined;
1192
+ loginHint?: string | undefined;
1193
+ additionalData?: Record<string, any> | undefined;
1194
+ } & {
1195
+ fetchOptions?: FetchOptions | undefined;
1196
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<NonNullable<{
1197
+ redirect: boolean;
1198
+ url: string;
1199
+ } | {
1200
+ redirect: boolean;
1201
+ token: string;
1202
+ url: undefined;
1203
+ user: {
1204
+ id: string;
1205
+ createdAt: Date;
1206
+ updatedAt: Date;
1207
+ email: string;
1208
+ emailVerified: boolean;
1209
+ name: string;
1210
+ image?: string | null | undefined | undefined;
1211
+ };
1212
+ }>, {
1213
+ code?: string | undefined;
1214
+ message?: string | undefined;
1215
+ }, FetchOptions["throw"] extends true ? true : false>>;
1216
+ };
1217
+ } & {
1218
+ signUp: {
1219
+ email: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
1220
+ name: string;
1221
+ email: string;
1222
+ password: string;
1223
+ image?: string | undefined;
1224
+ callbackURL?: string | undefined;
1225
+ rememberMe?: boolean | undefined;
1226
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
1227
+ email: string;
1228
+ name: string;
1229
+ password: string;
1230
+ image?: string | undefined;
1231
+ callbackURL?: string | undefined;
1232
+ fetchOptions?: FetchOptions | undefined;
1233
+ } & {} & {}>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<NonNullable<{
1234
+ token: null;
1235
+ user: {
1236
+ id: string;
1237
+ createdAt: Date;
1238
+ updatedAt: Date;
1239
+ email: string;
1240
+ emailVerified: boolean;
1241
+ name: string;
1242
+ image?: string | null | undefined | undefined;
1243
+ };
1244
+ } | {
1245
+ token: string;
1246
+ user: {
1247
+ id: string;
1248
+ createdAt: Date;
1249
+ updatedAt: Date;
1250
+ email: string;
1251
+ emailVerified: boolean;
1252
+ name: string;
1253
+ image?: string | null | undefined | undefined;
1254
+ };
1255
+ }>, {
1256
+ code?: string | undefined;
1257
+ message?: string | undefined;
1258
+ }, FetchOptions["throw"] extends true ? true : false>>;
1259
+ };
1260
+ } & {
1261
+ signIn: {
1262
+ email: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
1263
+ email: string;
1264
+ password: string;
1265
+ callbackURL?: string | undefined;
1266
+ rememberMe?: boolean | undefined;
1267
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
1268
+ email: string;
1269
+ password: string;
1270
+ callbackURL?: string | undefined;
1271
+ rememberMe?: boolean | undefined;
1272
+ } & {
1273
+ fetchOptions?: FetchOptions | undefined;
1274
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
1275
+ redirect: boolean;
1276
+ token: string;
1277
+ url?: string | undefined;
1278
+ user: {
1279
+ id: string;
1280
+ createdAt: Date;
1281
+ updatedAt: Date;
1282
+ email: string;
1283
+ emailVerified: boolean;
1284
+ name: string;
1285
+ image?: string | null | undefined | undefined;
1286
+ };
1287
+ }, {
1288
+ code?: string | undefined;
1289
+ message?: string | undefined;
1290
+ }, FetchOptions["throw"] extends true ? true : false>>;
1291
+ };
1292
+ } & {
1293
+ updateUser: <FetchOptions extends better_auth0.ClientFetchOption<Partial<Partial<{}> & {
1294
+ name?: string | undefined;
1295
+ image?: string | undefined | null;
1296
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth0.Prettify<{
1297
+ image?: (string | null) | undefined;
1298
+ name?: string | undefined;
1299
+ fetchOptions?: FetchOptions | undefined;
1300
+ } & Partial<{} & {}>> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
1301
+ status: boolean;
1302
+ }, {
1303
+ code?: string | undefined;
1304
+ message?: string | undefined;
1305
+ }, FetchOptions["throw"] extends true ? true : false>>;
1306
+ } & {
1307
+ listSessions: <FetchOptions extends better_auth0.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth0.Prettify<{
1308
+ query?: Record<string, any> | undefined;
1309
+ fetchOptions?: FetchOptions | undefined;
1310
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<better_auth0.Prettify<{
1311
+ id: string;
1312
+ createdAt: Date;
1313
+ updatedAt: Date;
1314
+ userId: string;
1315
+ expiresAt: Date;
1316
+ token: string;
1317
+ ipAddress?: string | null | undefined | undefined;
1318
+ userAgent?: string | null | undefined | undefined;
1319
+ }>[], {
1320
+ code?: string | undefined;
1321
+ message?: string | undefined;
1322
+ }, FetchOptions["throw"] extends true ? true : false>>;
1323
+ } & {
1324
+ getSession: <FetchOptions extends better_auth0.ClientFetchOption<never, Partial<{
1325
+ disableCookieCache?: unknown;
1326
+ disableRefresh?: unknown;
1327
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth0.Prettify<{
1328
+ query?: {
1329
+ disableCookieCache?: unknown;
1330
+ disableRefresh?: unknown;
1331
+ } | undefined;
1332
+ fetchOptions?: FetchOptions | undefined;
1333
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
1334
+ user: {
1335
+ id: string;
1336
+ createdAt: Date;
1337
+ updatedAt: Date;
1338
+ email: string;
1339
+ emailVerified: boolean;
1340
+ name: string;
1341
+ image?: string | null | undefined;
1342
+ };
1343
+ session: {
1344
+ id: string;
1345
+ createdAt: Date;
1346
+ updatedAt: Date;
1347
+ userId: string;
1348
+ expiresAt: Date;
1349
+ token: string;
1350
+ ipAddress?: string | null | undefined;
1351
+ userAgent?: string | null | undefined;
1352
+ };
1353
+ } | null, {
1354
+ code?: string | undefined;
1355
+ message?: string | undefined;
1356
+ }, FetchOptions["throw"] extends true ? true : false>>;
1357
+ } & {
1358
+ useSession: () => {
1359
+ data: {
1360
+ user: {
1361
+ id: string;
1362
+ createdAt: Date;
1363
+ updatedAt: Date;
1364
+ email: string;
1365
+ emailVerified: boolean;
1366
+ name: string;
1367
+ image?: string | null | undefined;
1368
+ };
1369
+ session: {
1370
+ id: string;
1371
+ createdAt: Date;
1372
+ updatedAt: Date;
1373
+ userId: string;
1374
+ expiresAt: Date;
1375
+ token: string;
1376
+ ipAddress?: string | null | undefined;
1377
+ userAgent?: string | null | undefined;
1378
+ };
1379
+ } | null;
1380
+ isPending: boolean;
1381
+ isRefetching: boolean;
1382
+ error: better_auth_react0.BetterFetchError | null;
1383
+ refetch: (queryParams?: {
1384
+ query?: better_auth0.SessionQueryParams;
1385
+ } | undefined) => Promise<void>;
1386
+ };
1387
+ $Infer: {
1388
+ Session: {
1389
+ user: {
1390
+ id: string;
1391
+ createdAt: Date;
1392
+ updatedAt: Date;
1393
+ email: string;
1394
+ emailVerified: boolean;
1395
+ name: string;
1396
+ image?: string | null | undefined;
1397
+ };
1398
+ session: {
1399
+ id: string;
1400
+ createdAt: Date;
1401
+ updatedAt: Date;
1402
+ userId: string;
1403
+ expiresAt: Date;
1404
+ token: string;
1405
+ ipAddress?: string | null | undefined;
1406
+ userAgent?: string | null | undefined;
1407
+ };
1408
+ };
1409
+ };
1410
+ $fetch: better_auth_react0.BetterFetch<{
1411
+ plugins: (better_auth_react0.BetterFetchPlugin | {
1412
+ id: string;
1413
+ name: string;
1414
+ hooks: {
1415
+ onSuccess(context: better_auth_react0.SuccessContext<any>): void;
1416
+ };
1417
+ } | {
1418
+ id: string;
1419
+ name: string;
1420
+ hooks: {
1421
+ onSuccess: ((context: better_auth_react0.SuccessContext<any>) => Promise<void> | void) | undefined;
1422
+ onError: ((context: better_auth_react0.ErrorContext) => Promise<void> | void) | undefined;
1423
+ onRequest: (<T extends Record<string, any>>(context: better_auth_react0.RequestContext<T>) => Promise<better_auth_react0.RequestContext | void> | better_auth_react0.RequestContext | void) | undefined;
1424
+ onResponse: ((context: better_auth_react0.ResponseContext) => Promise<Response | void | better_auth_react0.ResponseContext> | Response | better_auth_react0.ResponseContext | void) | undefined;
1425
+ };
1426
+ })[];
1427
+ cache?: RequestCache | undefined;
1428
+ method: string;
1429
+ headers?: (HeadersInit & (HeadersInit | {
1430
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1431
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1432
+ authorization: "Bearer" | "Basic";
1433
+ })) | undefined;
1434
+ redirect?: RequestRedirect | undefined;
1435
+ credentials?: RequestCredentials;
1436
+ integrity?: string | undefined;
1437
+ keepalive?: boolean | undefined;
1438
+ mode?: RequestMode | undefined;
1439
+ priority?: RequestPriority | undefined;
1440
+ referrer?: string | undefined;
1441
+ referrerPolicy?: ReferrerPolicy | undefined;
1442
+ signal?: (AbortSignal | null) | undefined;
1443
+ window?: null | undefined;
1444
+ onRetry?: ((response: better_auth_react0.ResponseContext) => Promise<void> | void) | undefined;
1445
+ hookOptions?: {
1446
+ cloneResponse?: boolean;
1447
+ } | undefined;
1448
+ timeout?: number | undefined;
1449
+ customFetchImpl: better_auth_react0.FetchEsque;
1450
+ baseURL: string;
1451
+ throw?: boolean | undefined;
1452
+ auth?: ({
1453
+ type: "Bearer";
1454
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1455
+ } | {
1456
+ type: "Basic";
1457
+ username: string | (() => string | undefined) | undefined;
1458
+ password: string | (() => string | undefined) | undefined;
1459
+ } | {
1460
+ type: "Custom";
1461
+ prefix: string | (() => string | undefined) | undefined;
1462
+ value: string | (() => string | undefined) | undefined;
1463
+ }) | undefined;
1464
+ body?: any;
1465
+ query?: any;
1466
+ params?: any;
1467
+ duplex?: "full" | "half" | undefined;
1468
+ jsonParser: (text: string) => Promise<any> | any;
1469
+ retry?: better_auth_react0.RetryOptions | undefined;
1470
+ retryAttempt?: number | undefined;
1471
+ output?: (better_auth_react0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1472
+ errorSchema?: better_auth_react0.StandardSchemaV1 | undefined;
1473
+ disableValidation?: boolean | undefined;
1474
+ disableSignal?: boolean | undefined;
1475
+ }, unknown, unknown, {}>;
1476
+ $store: {
1477
+ notify: (signal?: (Omit<string, "$sessionSignal"> | "$sessionSignal") | undefined) => void;
1478
+ listen: (signal: Omit<string, "$sessionSignal"> | "$sessionSignal", listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
1479
+ atoms: Record<string, better_auth_react0.WritableAtom<any>>;
1480
+ };
1481
+ $ERROR_CODES: {
1482
+ readonly USER_NOT_FOUND: "User not found";
1483
+ readonly FAILED_TO_CREATE_USER: "Failed to create user";
1484
+ readonly FAILED_TO_CREATE_SESSION: "Failed to create session";
1485
+ readonly FAILED_TO_UPDATE_USER: "Failed to update user";
1486
+ readonly FAILED_TO_GET_SESSION: "Failed to get session";
1487
+ readonly INVALID_PASSWORD: "Invalid password";
1488
+ readonly INVALID_EMAIL: "Invalid email";
1489
+ readonly INVALID_EMAIL_OR_PASSWORD: "Invalid email or password";
1490
+ readonly SOCIAL_ACCOUNT_ALREADY_LINKED: "Social account already linked";
1491
+ readonly PROVIDER_NOT_FOUND: "Provider not found";
1492
+ readonly INVALID_TOKEN: "Invalid token";
1493
+ readonly ID_TOKEN_NOT_SUPPORTED: "id_token not supported";
1494
+ readonly FAILED_TO_GET_USER_INFO: "Failed to get user info";
1495
+ readonly USER_EMAIL_NOT_FOUND: "User email not found";
1496
+ readonly EMAIL_NOT_VERIFIED: "Email not verified";
1497
+ readonly PASSWORD_TOO_SHORT: "Password too short";
1498
+ readonly PASSWORD_TOO_LONG: "Password too long";
1499
+ readonly USER_ALREADY_EXISTS: "User already exists.";
1500
+ readonly USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL: "User already exists. Use another email.";
1501
+ readonly EMAIL_CAN_NOT_BE_UPDATED: "Email can not be updated";
1502
+ readonly CREDENTIAL_ACCOUNT_NOT_FOUND: "Credential account not found";
1503
+ readonly SESSION_EXPIRED: "Session expired. Re-authenticate to perform this action.";
1504
+ readonly FAILED_TO_UNLINK_LAST_ACCOUNT: "You can't unlink your last account";
1505
+ readonly ACCOUNT_NOT_FOUND: "Account not found";
1506
+ readonly USER_ALREADY_HAS_PASSWORD: "User already has a password. Provide that to delete the account.";
1507
+ };
1508
+ };
1509
+ declare function createKuckitWebServices(options?: CreateServicesOptions): KuckitWebServices;
1510
+ //#endregion
1511
+ export { type AuthClient, type ClientModuleSpec, type CreateKuckitWebProviderOptions, type CreateServicesOptions, type KuckitWebConfig, type KuckitWebContext, type KuckitWebProviderProps, type KuckitWebRouterProps, type KuckitWebServices, type ModuleRoute, type NavItem, type ORPCUtils, type RouteDefinition, createAuthClientService, createKuckitWebProvider, createKuckitWebServices, createORPCUtils, createQueryClient, createRPCClient, createRPCLink, useAuth, useKuckitWeb, useOrpc, useQueryClient, useRpc, useServices, withKuckitWeb };