@pelatform/starter 0.1.5 → 0.1.7

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,22 +1,274 @@
1
+ import { AnyUseQueryOptions, QueryKey } from '@tanstack/react-query';
1
2
  import * as better_auth_react from 'better-auth/react';
2
- import { BetterFetchResponse, createAuthClient, BetterFetchOption } from 'better-auth/react';
3
- import * as node_modules_better_auth_dist_index_BLP8lbCx_mjs from 'node_modules/better-auth/dist/index-BLP8lbCx.mjs';
4
- import * as node_modules_better_auth_dist_index_CfImj7fH_mjs from 'node_modules/better-auth/dist/index-CfImj7fH.mjs';
5
- import * as _simplewebauthn_server from '@simplewebauthn/server';
6
- import { AuthenticationResponseJSON } from '@simplewebauthn/server';
3
+ import { createAuthClient, BetterFetchResponse, BetterFetchOption } from 'better-auth/react';
7
4
  import * as better_auth_client_plugins from 'better-auth/client/plugins';
5
+ import * as _simplewebauthn_server from '@simplewebauthn/server';
6
+ import { CredentialDeviceType, AuthenticationResponseJSON } from '@simplewebauthn/server';
8
7
  import * as better_auth_plugins_organization from 'better-auth/plugins/organization';
8
+ import { Organization } from 'better-auth/plugins/organization';
9
9
  import * as better_auth from 'better-auth';
10
10
  import * as _better_fetch_fetch from '@better-fetch/fetch';
11
- import * as node_modules__better_auth_passkey_dist_index_BosVYrMJ_mjs from 'node_modules/@better-auth/passkey/dist/index-BosVYrMJ.mjs';
12
- import { AnyUseQueryOptions, QueryKey } from '@pelatform/ui/re/tanstack-query';
13
11
  import { ComponentType, ComponentProps, ReactNode } from 'react';
14
- import { Dialog, Card, Avatar, buttonVariants } from '@pelatform/ui/default';
12
+ import { Avatar, buttonVariants, Dialog, Card } from 'pelatform-ui/default';
13
+
14
+ type AuthQueryOptions = {
15
+ /**
16
+ * The default query options for all queries.
17
+ */
18
+ queryOptions?: Partial<AnyUseQueryOptions>;
19
+ /**
20
+ * The default query options for session queries.
21
+ */
22
+ sessionQueryOptions?: Partial<AnyUseQueryOptions>;
23
+ /**
24
+ * Whether to use optimistic updates for mutations.
25
+ */
26
+ optimistic: boolean;
27
+ /**
28
+ * Whether to refetch queries on mutations.
29
+ */
30
+ refetchOnMutate: boolean;
31
+ /**
32
+ * The query keys for session queries.
33
+ */
34
+ queryKey: {
35
+ accountInfo: QueryKey;
36
+ invitationKey: QueryKey;
37
+ listAccounts: QueryKey;
38
+ listApiKeys: QueryKey;
39
+ listDeviceSessions: QueryKey;
40
+ listPasskeys: QueryKey;
41
+ listSessions: QueryKey;
42
+ session: QueryKey;
43
+ };
44
+ };
45
+ declare const defaultAuthQueryOptions: AuthQueryOptions;
46
+
47
+ /**
48
+ * Application configuration type definitions
49
+ * These types define the structure of the configuration object that can be passed to the starter kit
50
+ */
51
+ /**
52
+ * Application metadata configuration
53
+ */
54
+ type AppConfig = {
55
+ /** Application name */
56
+ name: string;
57
+ /** Application domain (e.g., localhost:3000, app.example.com) */
58
+ domain: string;
59
+ /** Full application URL (e.g., http://localhost:3000) */
60
+ url: string;
61
+ /** API endpoint URL (e.g., http://localhost:3001 or /api) */
62
+ api: string;
63
+ };
64
+ /**
65
+ * Locale configuration for internationalization
66
+ */
67
+ type LocaleConfig = {
68
+ /** Locale code (e.g., en, id, ar) */
69
+ code: string;
70
+ /** Display name of the locale */
71
+ name: string;
72
+ /** Text direction for the locale */
73
+ direction: "ltr" | "rtl";
74
+ /** Flag identifier for the locale */
75
+ flag: string;
76
+ };
77
+ /**
78
+ * Internationalization configuration
79
+ */
80
+ type I18nConfig = {
81
+ /** Whether i18n is enabled */
82
+ enabled: boolean;
83
+ /** Available locales mapping */
84
+ locales: {
85
+ [locale: string]: LocaleConfig;
86
+ };
87
+ /** Default locale code */
88
+ defaultLocale: string;
89
+ /** Default currency code */
90
+ defaultCurrency: string;
91
+ /** Cookie name for storing locale preference */
92
+ localeCookieName: string;
93
+ };
94
+ /**
95
+ * Authentication methods configuration
96
+ */
97
+ type AuthenticationConfig = {
98
+ /** Allow anonymous authentication */
99
+ anonymous: boolean;
100
+ /** Allow email OTP authentication */
101
+ emailOtp: boolean;
102
+ /** Allow magic link authentication */
103
+ magicLink: boolean;
104
+ /** Allow Google One Tap authentication */
105
+ oneTap: boolean;
106
+ /** Allow passkey authentication */
107
+ passkey: boolean;
108
+ /** Allow password authentication */
109
+ password: boolean;
110
+ /** Allow phone number authentication */
111
+ phoneNumber: boolean;
112
+ /** Allow two-factor authentication */
113
+ twoFactor: boolean;
114
+ /** Allow username authentication */
115
+ username: boolean;
116
+ };
117
+ /**
118
+ * Authentication configuration
119
+ */
120
+ type AuthConfig = {
121
+ /** Allow user signup */
122
+ enableSignup: boolean;
123
+ /** Allow users to change their email */
124
+ allowChangeEmail: boolean;
125
+ /** Allow users to delete their account */
126
+ allowDeleteUser: boolean;
127
+ /** Enable or disable email verification for account deletion */
128
+ deleteUserVerification: boolean;
129
+ /** Redirect path after successful sign in */
130
+ redirectAfterSignIn: string;
131
+ /** Redirect path after logout */
132
+ redirectAfterLogout: string;
133
+ /** Freshness age for Session data */
134
+ freshAge: number;
135
+ /** Session cookie max age in seconds */
136
+ sessionCookieMaxAge: number;
137
+ /** Enabled social authentication providers */
138
+ socialProviders: string[];
139
+ /** Authentication methods configuration */
140
+ authentication: AuthenticationConfig;
141
+ };
142
+ /**
143
+ * Feature flags configuration
144
+ */
145
+ type FeaturesConfig = {
146
+ /** Enable admin features */
147
+ admin: boolean;
148
+ /** Enable API key authentication */
149
+ apiKey: boolean;
150
+ /** Enable CAPTCHA */
151
+ captcha: boolean;
152
+ /** Enable device authorization */
153
+ deviceAuthorization: boolean;
154
+ /** Enable HaveIBeenPwned password breach detection */
155
+ haveIBeenPwned: boolean;
156
+ /** Track last login method */
157
+ lastLoginMethod: boolean;
158
+ /** Enable multi-session support */
159
+ multiSession: boolean;
160
+ /** Enable Polar payment integration */
161
+ polar: boolean;
162
+ /** Enable rate limiting */
163
+ rateLimit: boolean;
164
+ /** Enable workspace/organization features */
165
+ workspace: boolean;
166
+ };
167
+ /**
168
+ * Application path configuration
169
+ */
170
+ type PathConfig = {
171
+ /** Main application paths */
172
+ main: {
173
+ ERROR: string;
174
+ HOME: string;
175
+ FEATURES: string;
176
+ PRICING: string;
177
+ TERMS: string;
178
+ PRIVACY: string;
179
+ };
180
+ /** Authentication related paths */
181
+ auth: {
182
+ CALLBACK: string;
183
+ EMAIL_OTP: string;
184
+ FORGOT_PASSWORD: string;
185
+ MAGIC_LINK: string;
186
+ RECOVER_ACCOUNT: string;
187
+ RESET_PASSWORD: string;
188
+ SIGN_IN: string;
189
+ SIGN_OUT: string;
190
+ SIGN_UP: string;
191
+ TWO_FACTOR: string;
192
+ };
193
+ /** Onboarding flow paths */
194
+ onboarding: {
195
+ WELCOME: string;
196
+ WORKSPACE: string;
197
+ };
198
+ /** User account settings paths */
199
+ account: {
200
+ SETTINGS: string;
201
+ SECURITY: string;
202
+ API_KEYS: string;
203
+ WORKSPACES: string;
204
+ };
205
+ /** Workspace settings paths */
206
+ workspaces: {
207
+ SETTINGS: string;
208
+ MEMBERS: string;
209
+ API_KEYS: string;
210
+ BILLINGS: string;
211
+ WEBHOOKS: string;
212
+ };
213
+ /** Admin paths */
214
+ admin: {
215
+ OVERVIEW: string;
216
+ USERS: string;
217
+ };
218
+ /** Custom paths */
219
+ custom: {
220
+ ACCEPT_INVITATION: string;
221
+ NEW_WORKSPACE: string;
222
+ };
223
+ };
224
+ /**
225
+ * UI configuration
226
+ */
227
+ type UIConfig = {
228
+ /** Enable multiple theme support */
229
+ enableMultiThemes: boolean;
230
+ /** Default theme name */
231
+ defaultTheme: string;
232
+ /** Enable workspace slug in URLs */
233
+ enableWorkspaceSlug: boolean;
234
+ };
235
+ /**
236
+ * Main configuration object structure
237
+ * This is the complete configuration that should be passed to ConfigProvider
238
+ */
239
+ type Config = {
240
+ /** Application metadata */
241
+ app: AppConfig;
242
+ /** Internationalization settings */
243
+ i18n: I18nConfig;
244
+ /** Authentication settings */
245
+ auth: AuthConfig;
246
+ /** Feature flags */
247
+ features: FeaturesConfig;
248
+ /** Application paths */
249
+ path: PathConfig;
250
+ /** UI settings */
251
+ ui: UIConfig;
252
+ };
253
+
254
+ type Passkey = {
255
+ id: string;
256
+ name?: string | undefined;
257
+ publicKey: string;
258
+ userId: string;
259
+ credentialID: string;
260
+ counter: number;
261
+ deviceType: CredentialDeviceType;
262
+ backedUp: boolean;
263
+ transports?: string | undefined;
264
+ createdAt: Date;
265
+ aaguid?: string | undefined;
266
+ };
15
267
 
16
- type AnyAuthClient = Omit<ReturnType<typeof createAuthClient>, 'signUp' | 'getSession'>;
268
+ type AnyAuthClient = Omit<ReturnType<typeof createAuthClient>, "signUp" | "getSession">;
17
269
  declare const authClient: {} & {
18
270
  useListPasskeys: () => {
19
- data: node_modules__better_auth_passkey_dist_index_BosVYrMJ_mjs.n[] | null;
271
+ data: Passkey[] | null;
20
272
  error: null | _better_fetch_fetch.BetterFetchError;
21
273
  isPending: boolean;
22
274
  isRefetching: boolean;
@@ -26,7 +278,7 @@ declare const authClient: {} & {
26
278
  };
27
279
  } & {
28
280
  useActiveOrganization: () => {
29
- data: better_auth_client_plugins.Prettify<{
281
+ data: better_auth.Prettify<{
30
282
  id: string;
31
283
  name: string;
32
284
  slug: string;
@@ -110,7 +362,7 @@ declare const authClient: {} & {
110
362
  } & {
111
363
  signIn: {
112
364
  social: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
113
- provider: unknown;
365
+ provider: "apple" | "discord" | "dropbox" | "facebook" | "github" | "gitlab" | "google" | "huggingface" | "kick" | "linear" | "linkedin" | "microsoft" | "notion" | "reddit" | "roblox" | "slack" | "spotify" | "tiktok" | "twitch" | "vk" | "twitter" | "zoom" | "atlassian" | "cognito" | "figma" | "salesforce" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel" | (string & {});
114
366
  callbackURL?: string | undefined;
115
367
  newUserCallbackURL?: string | undefined;
116
368
  errorCallbackURL?: string | undefined;
@@ -126,8 +378,8 @@ declare const authClient: {} & {
126
378
  requestSignUp?: boolean | undefined;
127
379
  loginHint?: string | undefined;
128
380
  additionalData?: Record<string, any> | undefined;
129
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
130
- provider: unknown;
381
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
382
+ provider: "apple" | "discord" | "dropbox" | "facebook" | "github" | "gitlab" | "google" | "huggingface" | "kick" | "linear" | "linkedin" | "microsoft" | "notion" | "reddit" | "roblox" | "slack" | "spotify" | "tiktok" | "twitch" | "vk" | "twitter" | "zoom" | "atlassian" | "cognito" | "figma" | "salesforce" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel" | (string & {});
131
383
  callbackURL?: string | undefined;
132
384
  newUserCallbackURL?: string | undefined;
133
385
  errorCallbackURL?: string | undefined;
@@ -146,28 +398,28 @@ declare const authClient: {} & {
146
398
  } & {
147
399
  fetchOptions?: FetchOptions | undefined;
148
400
  }>, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<NonNullable<{
401
+ redirect: boolean;
402
+ url: string;
403
+ } | {
149
404
  redirect: boolean;
150
405
  token: string;
151
406
  url: undefined;
152
407
  user: {
153
408
  id: string;
154
- email: string;
155
- name: string;
156
- image: string | null | undefined;
157
- emailVerified: boolean;
158
409
  createdAt: Date;
159
410
  updatedAt: Date;
411
+ email: string;
412
+ emailVerified: boolean;
413
+ name: string;
414
+ image?: string | null | undefined | undefined;
160
415
  };
161
- } | {
162
- url: string;
163
- redirect: boolean;
164
416
  }>, {
165
417
  code?: string | undefined;
166
418
  message?: string | undefined;
167
419
  }, FetchOptions["throw"] extends true ? true : false>>;
168
420
  };
169
421
  } & {
170
- signOut: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
422
+ signOut: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
171
423
  query?: Record<string, any> | undefined;
172
424
  fetchOptions?: FetchOptions | undefined;
173
425
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<{
@@ -185,7 +437,7 @@ declare const authClient: {} & {
185
437
  image?: string | undefined;
186
438
  callbackURL?: string | undefined;
187
439
  rememberMe?: boolean | undefined;
188
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
440
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
189
441
  email: string;
190
442
  name: string;
191
443
  password: string;
@@ -201,23 +453,23 @@ declare const authClient: {} & {
201
453
  token: null;
202
454
  user: {
203
455
  id: string;
204
- email: string;
205
- name: string;
206
- image: string | null | undefined;
207
- emailVerified: boolean;
208
456
  createdAt: Date;
209
457
  updatedAt: Date;
458
+ email: string;
459
+ emailVerified: boolean;
460
+ name: string;
461
+ image?: string | null | undefined | undefined;
210
462
  };
211
463
  } | {
212
464
  token: string;
213
465
  user: {
214
466
  id: string;
215
- email: string;
216
- name: string;
217
- image: string | null | undefined;
218
- emailVerified: boolean;
219
467
  createdAt: Date;
220
468
  updatedAt: Date;
469
+ email: string;
470
+ emailVerified: boolean;
471
+ name: string;
472
+ image?: string | null | undefined | undefined;
221
473
  };
222
474
  }>, {
223
475
  code?: string | undefined;
@@ -231,7 +483,7 @@ declare const authClient: {} & {
231
483
  password: string;
232
484
  callbackURL?: string | undefined;
233
485
  rememberMe?: boolean | undefined;
234
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
486
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
235
487
  email: string;
236
488
  password: string;
237
489
  callbackURL?: string | undefined;
@@ -241,15 +493,15 @@ declare const authClient: {} & {
241
493
  }>, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<{
242
494
  redirect: boolean;
243
495
  token: string;
244
- url: string | undefined;
496
+ url?: string | undefined;
245
497
  user: {
246
498
  id: string;
247
- email: string;
248
- name: string;
249
- image: string | null | undefined;
250
- emailVerified: boolean;
251
499
  createdAt: Date;
252
500
  updatedAt: Date;
501
+ email: string;
502
+ emailVerified: boolean;
503
+ name: string;
504
+ image?: string | null | undefined | undefined;
253
505
  };
254
506
  }, {
255
507
  code?: string | undefined;
@@ -262,7 +514,7 @@ declare const authClient: {} & {
262
514
  token?: string | undefined;
263
515
  }> & Record<string, any>, Partial<{
264
516
  token?: string | undefined;
265
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
517
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
266
518
  newPassword: string;
267
519
  token?: string | undefined;
268
520
  } & {
@@ -277,7 +529,7 @@ declare const authClient: {} & {
277
529
  verifyEmail: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
278
530
  token: string;
279
531
  callbackURL?: string | undefined;
280
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
532
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
281
533
  query: {
282
534
  token: string;
283
535
  callbackURL?: string | undefined;
@@ -293,7 +545,7 @@ declare const authClient: {} & {
293
545
  sendVerificationEmail: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
294
546
  email: string;
295
547
  callbackURL?: string | undefined;
296
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
548
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
297
549
  email: string;
298
550
  callbackURL?: string | undefined;
299
551
  } & {
@@ -308,7 +560,7 @@ declare const authClient: {} & {
308
560
  changeEmail: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
309
561
  newEmail: string;
310
562
  callbackURL?: string | undefined;
311
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
563
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
312
564
  newEmail: string;
313
565
  callbackURL?: string | undefined;
314
566
  } & {
@@ -324,7 +576,7 @@ declare const authClient: {} & {
324
576
  newPassword: string;
325
577
  currentPassword: string;
326
578
  revokeOtherSessions?: boolean | undefined;
327
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
579
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
328
580
  newPassword: string;
329
581
  currentPassword: string;
330
582
  revokeOtherSessions?: boolean | undefined;
@@ -348,8 +600,8 @@ declare const authClient: {} & {
348
600
  } & {
349
601
  updateUser: <FetchOptions extends better_auth.ClientFetchOption<Partial<Partial<{}> & {
350
602
  name?: string | undefined;
351
- image?: string | undefined;
352
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
603
+ image?: string | undefined | null;
604
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
353
605
  image?: (string | null) | undefined;
354
606
  name?: string | undefined;
355
607
  fetchOptions?: FetchOptions | undefined;
@@ -369,7 +621,7 @@ declare const authClient: {} & {
369
621
  callbackURL?: string | undefined;
370
622
  password?: string | undefined;
371
623
  token?: string | undefined;
372
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
624
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
373
625
  callbackURL?: string | undefined;
374
626
  password?: string | undefined;
375
627
  token?: string | undefined;
@@ -386,7 +638,7 @@ declare const authClient: {} & {
386
638
  requestPasswordReset: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
387
639
  email: string;
388
640
  redirectTo?: string | undefined;
389
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
641
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
390
642
  email: string;
391
643
  redirectTo?: string | undefined;
392
644
  } & {
@@ -404,7 +656,7 @@ declare const authClient: {} & {
404
656
  callbackURL: string;
405
657
  }> & Record<string, any>, {
406
658
  token: string;
407
- }>>(data_0: better_auth_client_plugins.Prettify<{
659
+ }>>(data_0: better_auth.Prettify<{
408
660
  query: {
409
661
  callbackURL: string;
410
662
  };
@@ -415,10 +667,10 @@ declare const authClient: {} & {
415
667
  }, FetchOptions["throw"] extends true ? true : false>>;
416
668
  };
417
669
  } & {
418
- listSessions: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
670
+ listSessions: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
419
671
  query?: Record<string, any> | undefined;
420
672
  fetchOptions?: FetchOptions | undefined;
421
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<better_auth_client_plugins.Prettify<{
673
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<better_auth.Prettify<{
422
674
  id: string;
423
675
  createdAt: Date;
424
676
  updatedAt: Date;
@@ -434,7 +686,7 @@ declare const authClient: {} & {
434
686
  } & {
435
687
  revokeSession: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
436
688
  token: string;
437
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
689
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
438
690
  token: string;
439
691
  } & {
440
692
  fetchOptions?: FetchOptions | undefined;
@@ -445,7 +697,7 @@ declare const authClient: {} & {
445
697
  message?: string | undefined;
446
698
  }, FetchOptions["throw"] extends true ? true : false>>;
447
699
  } & {
448
- revokeSessions: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
700
+ revokeSessions: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
449
701
  query?: Record<string, any> | undefined;
450
702
  fetchOptions?: FetchOptions | undefined;
451
703
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<{
@@ -455,7 +707,7 @@ declare const authClient: {} & {
455
707
  message?: string | undefined;
456
708
  }, FetchOptions["throw"] extends true ? true : false>>;
457
709
  } & {
458
- revokeOtherSessions: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
710
+ revokeOtherSessions: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
459
711
  query?: Record<string, any> | undefined;
460
712
  fetchOptions?: FetchOptions | undefined;
461
713
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<{
@@ -480,7 +732,7 @@ declare const authClient: {} & {
480
732
  errorCallbackURL?: string | undefined;
481
733
  disableRedirect?: boolean | undefined;
482
734
  additionalData?: Record<string, any> | undefined;
483
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
735
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
484
736
  provider: unknown;
485
737
  callbackURL?: string | undefined;
486
738
  idToken?: {
@@ -505,7 +757,7 @@ declare const authClient: {} & {
505
757
  message?: string | undefined;
506
758
  }, FetchOptions["throw"] extends true ? true : false>>;
507
759
  } & {
508
- listAccounts: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
760
+ listAccounts: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
509
761
  query?: Record<string, any> | undefined;
510
762
  fetchOptions?: FetchOptions | undefined;
511
763
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<{
@@ -525,7 +777,7 @@ declare const authClient: {} & {
525
777
  callback: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
526
778
  token: string;
527
779
  callbackURL?: string | undefined;
528
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
780
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
529
781
  query: {
530
782
  token: string;
531
783
  callbackURL?: string | undefined;
@@ -543,7 +795,7 @@ declare const authClient: {} & {
543
795
  unlinkAccount: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
544
796
  providerId: string;
545
797
  accountId?: string | undefined;
546
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
798
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
547
799
  providerId: string;
548
800
  accountId?: string | undefined;
549
801
  } & {
@@ -559,7 +811,7 @@ declare const authClient: {} & {
559
811
  providerId: string;
560
812
  accountId?: string | undefined;
561
813
  userId?: string | undefined;
562
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
814
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
563
815
  providerId: string;
564
816
  accountId?: string | undefined;
565
817
  userId?: string | undefined;
@@ -583,7 +835,7 @@ declare const authClient: {} & {
583
835
  providerId: string;
584
836
  accountId?: string | undefined;
585
837
  userId?: string | undefined;
586
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
838
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
587
839
  providerId: string;
588
840
  accountId?: string | undefined;
589
841
  userId?: string | undefined;
@@ -601,7 +853,7 @@ declare const authClient: {} & {
601
853
  } & {
602
854
  accountInfo: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
603
855
  accountId?: string | undefined;
604
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
856
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
605
857
  query?: {
606
858
  accountId?: string | undefined;
607
859
  } | undefined;
@@ -617,7 +869,7 @@ declare const authClient: {} & {
617
869
  getSession: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
618
870
  disableCookieCache?: unknown;
619
871
  disableRefresh?: unknown;
620
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
872
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
621
873
  query?: {
622
874
  disableCookieCache?: unknown;
623
875
  disableRefresh?: unknown;
@@ -661,7 +913,7 @@ declare const authClient: {} & {
661
913
  }, FetchOptions["throw"] extends true ? true : false>>;
662
914
  } & {
663
915
  signIn: {
664
- anonymous: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
916
+ anonymous: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
665
917
  query?: Record<string, any> | undefined;
666
918
  fetchOptions?: FetchOptions | undefined;
667
919
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<{
@@ -685,7 +937,7 @@ declare const authClient: {} & {
685
937
  email: string;
686
938
  type: "sign-in" | "email-verification" | "forget-password";
687
939
  otp: string;
688
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
940
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
689
941
  email: string;
690
942
  type: "sign-in" | "email-verification" | "forget-password";
691
943
  otp: string;
@@ -703,7 +955,7 @@ declare const authClient: {} & {
703
955
  verifyEmail: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
704
956
  email: string;
705
957
  otp: string;
706
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
958
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
707
959
  email: string;
708
960
  otp: string;
709
961
  } & {
@@ -742,7 +994,7 @@ declare const authClient: {} & {
742
994
  emailOtp: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
743
995
  email: string;
744
996
  otp: string;
745
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
997
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
746
998
  email: string;
747
999
  otp: string;
748
1000
  } & {
@@ -767,7 +1019,7 @@ declare const authClient: {} & {
767
1019
  forgetPassword: {
768
1020
  emailOtp: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
769
1021
  email: string;
770
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1022
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
771
1023
  email: string;
772
1024
  } & {
773
1025
  fetchOptions?: FetchOptions | undefined;
@@ -784,7 +1036,7 @@ declare const authClient: {} & {
784
1036
  email: string;
785
1037
  otp: string;
786
1038
  password: string;
787
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1039
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
788
1040
  email: string;
789
1041
  otp: string;
790
1042
  password: string;
@@ -802,7 +1054,7 @@ declare const authClient: {} & {
802
1054
  sendVerificationOtp: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
803
1055
  email: string;
804
1056
  type: "sign-in" | "email-verification" | "forget-password";
805
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1057
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
806
1058
  email: string;
807
1059
  type: "sign-in" | "email-verification" | "forget-password";
808
1060
  } & {
@@ -822,7 +1074,7 @@ declare const authClient: {} & {
822
1074
  callbackURL?: string | undefined;
823
1075
  newUserCallbackURL?: string | undefined;
824
1076
  errorCallbackURL?: string | undefined;
825
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1077
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
826
1078
  email: string;
827
1079
  name?: string | undefined;
828
1080
  callbackURL?: string | undefined;
@@ -844,7 +1096,7 @@ declare const authClient: {} & {
844
1096
  callbackURL?: string | undefined;
845
1097
  errorCallbackURL?: string | undefined;
846
1098
  newUserCallbackURL?: string | undefined;
847
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1099
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
848
1100
  query: {
849
1101
  token: string;
850
1102
  callbackURL?: string | undefined;
@@ -879,7 +1131,7 @@ declare const authClient: {} & {
879
1131
  scopes?: string[] | undefined;
880
1132
  requestSignUp?: boolean | undefined;
881
1133
  additionalData?: Record<string, any> | undefined;
882
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1134
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
883
1135
  providerId: string;
884
1136
  callbackURL?: string | undefined;
885
1137
  errorCallbackURL?: string | undefined;
@@ -894,33 +1146,9 @@ declare const authClient: {} & {
894
1146
  url: string;
895
1147
  redirect: boolean;
896
1148
  }, {
897
- code?: string | undefined;
898
- message?: string | undefined;
899
- }, FetchOptions["throw"] extends true ? true : false>>;
900
- };
901
- } & {
902
- oauth2: {
903
- callback: {
904
- ":providerid": <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
905
- code?: string | undefined;
906
- error?: string | undefined;
907
- error_description?: string | undefined;
908
- state?: string | undefined;
909
- }> & Record<string, any>, {
910
- providerId: string;
911
- }>>(data_0: better_auth_client_plugins.Prettify<{
912
- query: {
913
- code?: string | undefined;
914
- error?: string | undefined;
915
- error_description?: string | undefined;
916
- state?: string | undefined;
917
- };
918
- fetchOptions?: FetchOptions | undefined;
919
- }>, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<NonNullable<void>, {
920
- code?: string | undefined;
921
- message?: string | undefined;
922
- }, FetchOptions["throw"] extends true ? true : false>>;
923
- };
1149
+ code?: string | undefined;
1150
+ message?: string | undefined;
1151
+ }, FetchOptions["throw"] extends true ? true : false>>;
924
1152
  };
925
1153
  } & {
926
1154
  oauth2: {
@@ -929,7 +1157,7 @@ declare const authClient: {} & {
929
1157
  callbackURL: string;
930
1158
  scopes?: string[] | undefined;
931
1159
  errorCallbackURL?: string | undefined;
932
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1160
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
933
1161
  providerId: string;
934
1162
  callbackURL: string;
935
1163
  scopes?: string[] | undefined;
@@ -949,7 +1177,7 @@ declare const authClient: {} & {
949
1177
  generateRegisterOptions: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
950
1178
  authenticatorAttachment?: "platform" | "cross-platform" | undefined;
951
1179
  name?: string | undefined;
952
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
1180
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
953
1181
  query?: {
954
1182
  authenticatorAttachment?: "platform" | "cross-platform" | undefined;
955
1183
  name?: string | undefined;
@@ -962,7 +1190,7 @@ declare const authClient: {} & {
962
1190
  };
963
1191
  } & {
964
1192
  passkey: {
965
- generateAuthenticateOptions: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
1193
+ generateAuthenticateOptions: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
966
1194
  query?: Record<string, any> | undefined;
967
1195
  fetchOptions?: FetchOptions | undefined;
968
1196
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<_simplewebauthn_server.PublicKeyCredentialRequestOptionsJSON, {
@@ -975,12 +1203,12 @@ declare const authClient: {} & {
975
1203
  verifyRegistration: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
976
1204
  response: any;
977
1205
  name?: string | undefined;
978
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1206
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
979
1207
  response: any;
980
1208
  name?: string | undefined;
981
1209
  } & {
982
1210
  fetchOptions?: FetchOptions | undefined;
983
- }>, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<node_modules__better_auth_passkey_dist_index_BosVYrMJ_mjs.n, {
1211
+ }>, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<Passkey, {
984
1212
  code?: string | undefined;
985
1213
  message?: string | undefined;
986
1214
  }, FetchOptions["throw"] extends true ? true : false>>;
@@ -989,7 +1217,7 @@ declare const authClient: {} & {
989
1217
  passkey: {
990
1218
  verifyAuthentication: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
991
1219
  response: AuthenticationResponseJSON;
992
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1220
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
993
1221
  response: AuthenticationResponseJSON;
994
1222
  } & {
995
1223
  fetchOptions?: FetchOptions | undefined;
@@ -1011,10 +1239,10 @@ declare const authClient: {} & {
1011
1239
  };
1012
1240
  } & {
1013
1241
  passkey: {
1014
- listUserPasskeys: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
1242
+ listUserPasskeys: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
1015
1243
  query?: Record<string, any> | undefined;
1016
1244
  fetchOptions?: FetchOptions | undefined;
1017
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<node_modules__better_auth_passkey_dist_index_BosVYrMJ_mjs.n[], {
1245
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<Passkey[], {
1018
1246
  code?: string | undefined;
1019
1247
  message?: string | undefined;
1020
1248
  }, FetchOptions["throw"] extends true ? true : false>>;
@@ -1023,11 +1251,13 @@ declare const authClient: {} & {
1023
1251
  passkey: {
1024
1252
  deletePasskey: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1025
1253
  id: string;
1026
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1254
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1027
1255
  id: string;
1028
1256
  } & {
1029
1257
  fetchOptions?: FetchOptions | undefined;
1030
- }>, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<never, {
1258
+ }>, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<{
1259
+ status: boolean;
1260
+ }, {
1031
1261
  code?: string | undefined;
1032
1262
  message?: string | undefined;
1033
1263
  }, FetchOptions["throw"] extends true ? true : false>>;
@@ -1037,13 +1267,13 @@ declare const authClient: {} & {
1037
1267
  updatePasskey: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1038
1268
  id: string;
1039
1269
  name: string;
1040
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1270
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1041
1271
  id: string;
1042
1272
  name: string;
1043
1273
  } & {
1044
1274
  fetchOptions?: FetchOptions | undefined;
1045
1275
  }>, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<{
1046
- passkey: node_modules__better_auth_passkey_dist_index_BosVYrMJ_mjs.n;
1276
+ passkey: Passkey;
1047
1277
  }, {
1048
1278
  code?: string | undefined;
1049
1279
  message?: string | undefined;
@@ -1055,7 +1285,7 @@ declare const authClient: {} & {
1055
1285
  phoneNumber: string;
1056
1286
  password: string;
1057
1287
  rememberMe?: boolean | undefined;
1058
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1288
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1059
1289
  phoneNumber: string;
1060
1290
  password: string;
1061
1291
  rememberMe?: boolean | undefined;
@@ -1063,7 +1293,7 @@ declare const authClient: {} & {
1063
1293
  fetchOptions?: FetchOptions | undefined;
1064
1294
  }>, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<{
1065
1295
  token: string;
1066
- user: node_modules_better_auth_dist_index_CfImj7fH_mjs.r;
1296
+ user: better_auth_client_plugins.UserWithPhoneNumber;
1067
1297
  }, {
1068
1298
  code?: string | undefined;
1069
1299
  message?: string | undefined;
@@ -1073,7 +1303,7 @@ declare const authClient: {} & {
1073
1303
  phoneNumber: {
1074
1304
  sendOtp: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1075
1305
  phoneNumber: string;
1076
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1306
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1077
1307
  phoneNumber: string;
1078
1308
  } & {
1079
1309
  fetchOptions?: FetchOptions | undefined;
@@ -1091,7 +1321,7 @@ declare const authClient: {} & {
1091
1321
  code: string;
1092
1322
  disableSession?: boolean | undefined;
1093
1323
  updatePhoneNumber?: boolean | undefined;
1094
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1324
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1095
1325
  phoneNumber: string;
1096
1326
  code: string;
1097
1327
  disableSession?: boolean | undefined;
@@ -1101,11 +1331,11 @@ declare const authClient: {} & {
1101
1331
  }>, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<NonNullable<{
1102
1332
  status: boolean;
1103
1333
  token: string;
1104
- user: node_modules_better_auth_dist_index_CfImj7fH_mjs.r;
1334
+ user: better_auth_client_plugins.UserWithPhoneNumber;
1105
1335
  } | {
1106
1336
  status: boolean;
1107
1337
  token: null;
1108
- user: node_modules_better_auth_dist_index_CfImj7fH_mjs.r;
1338
+ user: better_auth_client_plugins.UserWithPhoneNumber;
1109
1339
  }>, {
1110
1340
  code?: string | undefined;
1111
1341
  message?: string | undefined;
@@ -1115,7 +1345,7 @@ declare const authClient: {} & {
1115
1345
  phoneNumber: {
1116
1346
  requestPasswordReset: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1117
1347
  phoneNumber: string;
1118
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1348
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1119
1349
  phoneNumber: string;
1120
1350
  } & {
1121
1351
  fetchOptions?: FetchOptions | undefined;
@@ -1132,7 +1362,7 @@ declare const authClient: {} & {
1132
1362
  otp: string;
1133
1363
  phoneNumber: string;
1134
1364
  newPassword: string;
1135
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1365
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1136
1366
  otp: string;
1137
1367
  phoneNumber: string;
1138
1368
  newPassword: string;
@@ -1150,7 +1380,7 @@ declare const authClient: {} & {
1150
1380
  enable: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1151
1381
  password: string;
1152
1382
  issuer?: string | undefined;
1153
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1383
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1154
1384
  password: string;
1155
1385
  issuer?: string | undefined;
1156
1386
  } & {
@@ -1167,7 +1397,7 @@ declare const authClient: {} & {
1167
1397
  twoFactor: {
1168
1398
  disable: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1169
1399
  password: string;
1170
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1400
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1171
1401
  password: string;
1172
1402
  } & {
1173
1403
  fetchOptions?: FetchOptions | undefined;
@@ -1184,7 +1414,7 @@ declare const authClient: {} & {
1184
1414
  code: string;
1185
1415
  disableSession?: boolean | undefined;
1186
1416
  trustDevice?: boolean | undefined;
1187
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1417
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1188
1418
  code: string;
1189
1419
  disableSession?: boolean | undefined;
1190
1420
  trustDevice?: boolean | undefined;
@@ -1210,7 +1440,7 @@ declare const authClient: {} & {
1210
1440
  twoFactor: {
1211
1441
  generateBackupCodes: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1212
1442
  password: string;
1213
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1443
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1214
1444
  password: string;
1215
1445
  } & {
1216
1446
  fetchOptions?: FetchOptions | undefined;
@@ -1226,7 +1456,7 @@ declare const authClient: {} & {
1226
1456
  twoFactor: {
1227
1457
  sendOtp: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1228
1458
  trustDevice?: boolean | undefined;
1229
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
1459
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
1230
1460
  query?: Record<string, any> | undefined;
1231
1461
  fetchOptions?: FetchOptions | undefined;
1232
1462
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<{
@@ -1241,7 +1471,7 @@ declare const authClient: {} & {
1241
1471
  verifyOtp: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1242
1472
  code: string;
1243
1473
  trustDevice?: boolean | undefined;
1244
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1474
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1245
1475
  code: string;
1246
1476
  trustDevice?: boolean | undefined;
1247
1477
  } & {
@@ -1266,7 +1496,7 @@ declare const authClient: {} & {
1266
1496
  twoFactor: {
1267
1497
  getTotpUri: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1268
1498
  password: string;
1269
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1499
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1270
1500
  password: string;
1271
1501
  } & {
1272
1502
  fetchOptions?: FetchOptions | undefined;
@@ -1282,7 +1512,7 @@ declare const authClient: {} & {
1282
1512
  verifyTotp: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1283
1513
  code: string;
1284
1514
  trustDevice?: boolean | undefined;
1285
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1515
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1286
1516
  code: string;
1287
1517
  trustDevice?: boolean | undefined;
1288
1518
  } & {
@@ -1310,7 +1540,7 @@ declare const authClient: {} & {
1310
1540
  password: string;
1311
1541
  rememberMe?: boolean | undefined;
1312
1542
  callbackURL?: string | undefined;
1313
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1543
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1314
1544
  username: string;
1315
1545
  password: string;
1316
1546
  rememberMe?: boolean | undefined;
@@ -1338,7 +1568,7 @@ declare const authClient: {} & {
1338
1568
  } & {
1339
1569
  isUsernameAvailable: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1340
1570
  username: string;
1341
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1571
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1342
1572
  username: string;
1343
1573
  } & {
1344
1574
  fetchOptions?: FetchOptions | undefined;
@@ -1353,13 +1583,13 @@ declare const authClient: {} & {
1353
1583
  setRole: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1354
1584
  userId: string;
1355
1585
  role: "user" | "admin" | ("user" | "admin")[];
1356
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1586
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1357
1587
  userId: string;
1358
1588
  role: "user" | "admin" | ("user" | "admin")[];
1359
1589
  } & {
1360
1590
  fetchOptions?: FetchOptions | undefined;
1361
1591
  }>, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<{
1362
- user: node_modules_better_auth_dist_index_BLP8lbCx_mjs.yt;
1592
+ user: better_auth_client_plugins.UserWithRole;
1363
1593
  }, {
1364
1594
  code?: string | undefined;
1365
1595
  message?: string | undefined;
@@ -1369,7 +1599,7 @@ declare const authClient: {} & {
1369
1599
  admin: {
1370
1600
  getUser: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
1371
1601
  id: string;
1372
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1602
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1373
1603
  query: {
1374
1604
  id: string;
1375
1605
  };
@@ -1395,7 +1625,7 @@ declare const authClient: {} & {
1395
1625
  name: string;
1396
1626
  role?: "user" | "admin" | ("user" | "admin")[] | undefined;
1397
1627
  data?: Record<string, any> | undefined;
1398
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1628
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1399
1629
  email: string;
1400
1630
  password: string;
1401
1631
  name: string;
@@ -1404,7 +1634,7 @@ declare const authClient: {} & {
1404
1634
  } & {
1405
1635
  fetchOptions?: FetchOptions | undefined;
1406
1636
  }>, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<{
1407
- user: node_modules_better_auth_dist_index_BLP8lbCx_mjs.yt;
1637
+ user: better_auth_client_plugins.UserWithRole;
1408
1638
  }, {
1409
1639
  code?: string | undefined;
1410
1640
  message?: string | undefined;
@@ -1415,12 +1645,12 @@ declare const authClient: {} & {
1415
1645
  updateUser: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1416
1646
  userId: unknown;
1417
1647
  data: Record<any, any>;
1418
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1648
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1419
1649
  userId: unknown;
1420
1650
  data: Record<any, any>;
1421
1651
  } & {
1422
1652
  fetchOptions?: FetchOptions | undefined;
1423
- }>, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<node_modules_better_auth_dist_index_BLP8lbCx_mjs.yt, {
1653
+ }>, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<better_auth_client_plugins.UserWithRole, {
1424
1654
  code?: string | undefined;
1425
1655
  message?: string | undefined;
1426
1656
  }, FetchOptions["throw"] extends true ? true : false>>;
@@ -1429,7 +1659,7 @@ declare const authClient: {} & {
1429
1659
  admin: {
1430
1660
  listUsers: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
1431
1661
  searchValue?: string | undefined;
1432
- searchField?: "email" | "name" | undefined;
1662
+ searchField?: "name" | "email" | undefined;
1433
1663
  searchOperator?: "contains" | "starts_with" | "ends_with" | undefined;
1434
1664
  limit?: string | number | undefined;
1435
1665
  offset?: string | number | undefined;
@@ -1438,10 +1668,10 @@ declare const authClient: {} & {
1438
1668
  filterField?: string | undefined;
1439
1669
  filterValue?: string | number | boolean | undefined;
1440
1670
  filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
1441
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1671
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1442
1672
  query: {
1443
1673
  searchValue?: string | undefined;
1444
- searchField?: "email" | "name" | undefined;
1674
+ searchField?: "name" | "email" | undefined;
1445
1675
  searchOperator?: "contains" | "starts_with" | "ends_with" | undefined;
1446
1676
  limit?: string | number | undefined;
1447
1677
  offset?: string | number | undefined;
@@ -1453,7 +1683,7 @@ declare const authClient: {} & {
1453
1683
  };
1454
1684
  fetchOptions?: FetchOptions | undefined;
1455
1685
  }>, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<NonNullable<{
1456
- users: node_modules_better_auth_dist_index_BLP8lbCx_mjs.yt[];
1686
+ users: better_auth_client_plugins.UserWithRole[];
1457
1687
  total: number;
1458
1688
  limit: number | undefined;
1459
1689
  offset: number | undefined;
@@ -1469,12 +1699,12 @@ declare const authClient: {} & {
1469
1699
  admin: {
1470
1700
  listUserSessions: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1471
1701
  userId: unknown;
1472
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1702
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1473
1703
  userId: unknown;
1474
1704
  } & {
1475
1705
  fetchOptions?: FetchOptions | undefined;
1476
1706
  }>, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<{
1477
- sessions: node_modules_better_auth_dist_index_BLP8lbCx_mjs.vt[];
1707
+ sessions: better_auth_client_plugins.SessionWithImpersonatedBy[];
1478
1708
  }, {
1479
1709
  code?: string | undefined;
1480
1710
  message?: string | undefined;
@@ -1484,7 +1714,7 @@ declare const authClient: {} & {
1484
1714
  admin: {
1485
1715
  unbanUser: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1486
1716
  userId: unknown;
1487
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1717
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1488
1718
  userId: unknown;
1489
1719
  } & {
1490
1720
  fetchOptions?: FetchOptions | undefined;
@@ -1509,7 +1739,7 @@ declare const authClient: {} & {
1509
1739
  userId: unknown;
1510
1740
  banReason?: string | undefined;
1511
1741
  banExpiresIn?: number | undefined;
1512
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1742
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1513
1743
  userId: unknown;
1514
1744
  banReason?: string | undefined;
1515
1745
  banExpiresIn?: number | undefined;
@@ -1534,7 +1764,7 @@ declare const authClient: {} & {
1534
1764
  admin: {
1535
1765
  impersonateUser: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1536
1766
  userId: unknown;
1537
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1767
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1538
1768
  userId: unknown;
1539
1769
  } & {
1540
1770
  fetchOptions?: FetchOptions | undefined;
@@ -1565,7 +1795,7 @@ declare const authClient: {} & {
1565
1795
  };
1566
1796
  } & {
1567
1797
  admin: {
1568
- stopImpersonating: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
1798
+ stopImpersonating: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
1569
1799
  query?: Record<string, any> | undefined;
1570
1800
  fetchOptions?: FetchOptions | undefined;
1571
1801
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<{
@@ -1580,7 +1810,7 @@ declare const authClient: {} & {
1580
1810
  admin: {
1581
1811
  revokeUserSession: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1582
1812
  sessionToken: string;
1583
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1813
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1584
1814
  sessionToken: string;
1585
1815
  } & {
1586
1816
  fetchOptions?: FetchOptions | undefined;
@@ -1595,7 +1825,7 @@ declare const authClient: {} & {
1595
1825
  admin: {
1596
1826
  revokeUserSessions: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1597
1827
  userId: unknown;
1598
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1828
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1599
1829
  userId: unknown;
1600
1830
  } & {
1601
1831
  fetchOptions?: FetchOptions | undefined;
@@ -1610,7 +1840,7 @@ declare const authClient: {} & {
1610
1840
  admin: {
1611
1841
  removeUser: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1612
1842
  userId: unknown;
1613
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1843
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1614
1844
  userId: unknown;
1615
1845
  } & {
1616
1846
  fetchOptions?: FetchOptions | undefined;
@@ -1626,7 +1856,7 @@ declare const authClient: {} & {
1626
1856
  setUserPassword: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1627
1857
  newPassword: string;
1628
1858
  userId: unknown;
1629
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1859
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1630
1860
  newPassword: string;
1631
1861
  userId: unknown;
1632
1862
  } & {
@@ -1642,28 +1872,28 @@ declare const authClient: {} & {
1642
1872
  admin: {
1643
1873
  hasPermission: <FetchOptions extends better_auth.ClientFetchOption<Partial<({
1644
1874
  permission: {
1645
- readonly user?: ("set-password" | "update" | "delete" | "list" | "get" | "create" | "set-role" | "ban" | "impersonate")[] | undefined;
1875
+ readonly user?: ("delete" | "get" | "set-password" | "update" | "list" | "create" | "set-role" | "ban" | "impersonate")[] | undefined;
1646
1876
  readonly session?: ("delete" | "list" | "revoke")[] | undefined;
1647
1877
  };
1648
1878
  permissions?: never | undefined;
1649
1879
  } | {
1650
1880
  permissions: {
1651
- readonly user?: ("set-password" | "update" | "delete" | "list" | "get" | "create" | "set-role" | "ban" | "impersonate")[] | undefined;
1881
+ readonly user?: ("delete" | "get" | "set-password" | "update" | "list" | "create" | "set-role" | "ban" | "impersonate")[] | undefined;
1652
1882
  readonly session?: ("delete" | "list" | "revoke")[] | undefined;
1653
1883
  };
1654
1884
  permission?: never | undefined;
1655
1885
  }) & {
1656
1886
  userId?: string | undefined;
1657
1887
  role?: "user" | "admin" | undefined;
1658
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<(({
1888
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<(({
1659
1889
  permission: {
1660
- readonly user?: ("set-password" | "update" | "delete" | "list" | "get" | "create" | "set-role" | "ban" | "impersonate")[] | undefined;
1890
+ readonly user?: ("delete" | "get" | "set-password" | "update" | "list" | "create" | "set-role" | "ban" | "impersonate")[] | undefined;
1661
1891
  readonly session?: ("delete" | "list" | "revoke")[] | undefined;
1662
1892
  };
1663
1893
  permissions?: never | undefined;
1664
1894
  } | {
1665
1895
  permissions: {
1666
- readonly user?: ("set-password" | "update" | "delete" | "list" | "get" | "create" | "set-role" | "ban" | "impersonate")[] | undefined;
1896
+ readonly user?: ("delete" | "get" | "set-password" | "update" | "list" | "create" | "set-role" | "ban" | "impersonate")[] | undefined;
1667
1897
  readonly session?: ("delete" | "list" | "revoke")[] | undefined;
1668
1898
  };
1669
1899
  permission?: never | undefined;
@@ -1695,7 +1925,7 @@ declare const authClient: {} & {
1695
1925
  rateLimitMax?: number | undefined;
1696
1926
  rateLimitEnabled?: boolean | undefined;
1697
1927
  permissions?: Record<string, string[]> | undefined;
1698
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
1928
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
1699
1929
  name?: string | undefined;
1700
1930
  expiresIn?: number | null | undefined;
1701
1931
  userId?: unknown;
@@ -1741,7 +1971,7 @@ declare const authClient: {} & {
1741
1971
  apiKey: {
1742
1972
  get: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
1743
1973
  id: string;
1744
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1974
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1745
1975
  query: {
1746
1976
  id: string;
1747
1977
  };
@@ -1790,7 +2020,7 @@ declare const authClient: {} & {
1790
2020
  rateLimitTimeWindow?: number | undefined;
1791
2021
  rateLimitMax?: number | undefined;
1792
2022
  permissions?: Record<string, string[]> | null | undefined;
1793
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
2023
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1794
2024
  keyId: string;
1795
2025
  userId?: unknown;
1796
2026
  name?: string | undefined;
@@ -1838,7 +2068,7 @@ declare const authClient: {} & {
1838
2068
  apiKey: {
1839
2069
  delete: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1840
2070
  keyId: string;
1841
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
2071
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1842
2072
  keyId: string;
1843
2073
  } & {
1844
2074
  fetchOptions?: FetchOptions | undefined;
@@ -1851,7 +2081,7 @@ declare const authClient: {} & {
1851
2081
  };
1852
2082
  } & {
1853
2083
  apiKey: {
1854
- list: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
2084
+ list: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
1855
2085
  query?: Record<string, any> | undefined;
1856
2086
  fetchOptions?: FetchOptions | undefined;
1857
2087
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<{
@@ -1891,7 +2121,7 @@ declare const authClient: {} & {
1891
2121
  logo?: string | undefined;
1892
2122
  metadata?: Record<string, any> | undefined;
1893
2123
  keepCurrentActiveOrganization?: boolean | undefined;
1894
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
2124
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1895
2125
  name: string;
1896
2126
  slug: string;
1897
2127
  userId?: string | undefined;
@@ -1931,7 +2161,7 @@ declare const authClient: {} & {
1931
2161
  metadata?: Record<string, any> | undefined;
1932
2162
  } & Partial<{}>;
1933
2163
  organizationId?: string | undefined;
1934
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
2164
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1935
2165
  data: {
1936
2166
  name?: string | undefined;
1937
2167
  slug?: string | undefined;
@@ -1959,7 +2189,7 @@ declare const authClient: {} & {
1959
2189
  organization: {
1960
2190
  delete: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1961
2191
  organizationId: string;
1962
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
2192
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1963
2193
  organizationId: string;
1964
2194
  } & {
1965
2195
  fetchOptions?: FetchOptions | undefined;
@@ -1980,7 +2210,7 @@ declare const authClient: {} & {
1980
2210
  setActive: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1981
2211
  organizationId?: string | null | undefined;
1982
2212
  organizationSlug?: string | undefined;
1983
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
2213
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
1984
2214
  organizationId?: string | null | undefined;
1985
2215
  organizationSlug?: string | undefined;
1986
2216
  } & {
@@ -2027,7 +2257,7 @@ declare const authClient: {} & {
2027
2257
  organizationId?: string | undefined;
2028
2258
  organizationSlug?: string | undefined;
2029
2259
  membersLimit?: string | number | undefined;
2030
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
2260
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
2031
2261
  query?: {
2032
2262
  organizationId?: string | undefined;
2033
2263
  organizationSlug?: string | undefined;
@@ -2072,7 +2302,7 @@ declare const authClient: {} & {
2072
2302
  };
2073
2303
  } & {
2074
2304
  organization: {
2075
- list: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
2305
+ list: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
2076
2306
  query?: Record<string, any> | undefined;
2077
2307
  fetchOptions?: FetchOptions | undefined;
2078
2308
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<{
@@ -2094,7 +2324,7 @@ declare const authClient: {} & {
2094
2324
  role: "admin" | "member" | "owner" | ("admin" | "member" | "owner")[];
2095
2325
  organizationId?: string | undefined;
2096
2326
  resend?: boolean | undefined;
2097
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
2327
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2098
2328
  email: string;
2099
2329
  role: "admin" | "member" | "owner" | ("admin" | "member" | "owner")[];
2100
2330
  organizationId?: string | undefined;
@@ -2119,7 +2349,7 @@ declare const authClient: {} & {
2119
2349
  organization: {
2120
2350
  cancelInvitation: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
2121
2351
  invitationId: string;
2122
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
2352
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2123
2353
  invitationId: string;
2124
2354
  } & {
2125
2355
  fetchOptions?: FetchOptions | undefined;
@@ -2141,7 +2371,7 @@ declare const authClient: {} & {
2141
2371
  organization: {
2142
2372
  acceptInvitation: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
2143
2373
  invitationId: string;
2144
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
2374
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2145
2375
  invitationId: string;
2146
2376
  } & {
2147
2377
  fetchOptions?: FetchOptions | undefined;
@@ -2172,7 +2402,7 @@ declare const authClient: {} & {
2172
2402
  organization: {
2173
2403
  getInvitation: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
2174
2404
  id: string;
2175
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
2405
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2176
2406
  query: {
2177
2407
  id: string;
2178
2408
  };
@@ -2199,7 +2429,7 @@ declare const authClient: {} & {
2199
2429
  organization: {
2200
2430
  rejectInvitation: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
2201
2431
  invitationId: string;
2202
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
2432
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2203
2433
  invitationId: string;
2204
2434
  } & {
2205
2435
  fetchOptions?: FetchOptions | undefined;
@@ -2208,7 +2438,7 @@ declare const authClient: {} & {
2208
2438
  id: string;
2209
2439
  organizationId: string;
2210
2440
  email: string;
2211
- role: "member" | "admin" | "owner";
2441
+ role: "admin" | "member" | "owner";
2212
2442
  status: better_auth_plugins_organization.InvitationStatus;
2213
2443
  inviterId: string;
2214
2444
  expiresAt: Date;
@@ -2224,7 +2454,7 @@ declare const authClient: {} & {
2224
2454
  organization: {
2225
2455
  listInvitations: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
2226
2456
  organizationId?: string | undefined;
2227
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
2457
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
2228
2458
  query?: {
2229
2459
  organizationId?: string | undefined;
2230
2460
  } | undefined;
@@ -2245,7 +2475,7 @@ declare const authClient: {} & {
2245
2475
  };
2246
2476
  } & {
2247
2477
  organization: {
2248
- getActiveMember: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
2478
+ getActiveMember: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
2249
2479
  query?: Record<string, any> | undefined;
2250
2480
  fetchOptions?: FetchOptions | undefined;
2251
2481
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<Omit<{
@@ -2278,7 +2508,7 @@ declare const authClient: {} & {
2278
2508
  organization: {
2279
2509
  checkSlug: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
2280
2510
  slug: string;
2281
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
2511
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2282
2512
  slug: string;
2283
2513
  } & {
2284
2514
  fetchOptions?: FetchOptions | undefined;
@@ -2294,7 +2524,7 @@ declare const authClient: {} & {
2294
2524
  removeMember: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
2295
2525
  memberIdOrEmail: string;
2296
2526
  organizationId?: string | undefined;
2297
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
2527
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2298
2528
  memberIdOrEmail: string;
2299
2529
  organizationId?: string | undefined;
2300
2530
  } & {
@@ -2321,11 +2551,11 @@ declare const authClient: {} & {
2321
2551
  } & {
2322
2552
  organization: {
2323
2553
  updateMemberRole: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
2324
- role: better_auth_client_plugins.LiteralString | "admin" | "member" | "owner" | ("admin" | "member" | "owner")[] | better_auth_client_plugins.LiteralString[];
2554
+ role: better_auth.LiteralString | "admin" | "member" | "owner" | ("admin" | "member" | "owner")[] | better_auth.LiteralString[];
2325
2555
  memberId: string;
2326
2556
  organizationId?: string | undefined;
2327
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
2328
- role: better_auth_client_plugins.LiteralString | "admin" | "member" | "owner" | ("admin" | "member" | "owner")[] | better_auth_client_plugins.LiteralString[];
2557
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2558
+ role: better_auth.LiteralString | "admin" | "member" | "owner" | ("admin" | "member" | "owner")[] | better_auth.LiteralString[];
2329
2559
  memberId: string;
2330
2560
  organizationId?: string | undefined;
2331
2561
  } & {
@@ -2333,7 +2563,7 @@ declare const authClient: {} & {
2333
2563
  }>, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<{
2334
2564
  id: string;
2335
2565
  organizationId: string;
2336
- role: "member" | "admin" | "owner";
2566
+ role: "admin" | "member" | "owner";
2337
2567
  createdAt: Date;
2338
2568
  userId: string;
2339
2569
  user: {
@@ -2351,7 +2581,7 @@ declare const authClient: {} & {
2351
2581
  organization: {
2352
2582
  leave: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
2353
2583
  organizationId: string;
2354
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
2584
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2355
2585
  organizationId: string;
2356
2586
  } & {
2357
2587
  fetchOptions?: FetchOptions | undefined;
@@ -2385,7 +2615,7 @@ declare const authClient: {} & {
2385
2615
  organization: {
2386
2616
  listUserInvitations: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
2387
2617
  email?: string | undefined;
2388
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
2618
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
2389
2619
  query?: {
2390
2620
  email?: string | undefined;
2391
2621
  } | undefined;
@@ -2416,7 +2646,7 @@ declare const authClient: {} & {
2416
2646
  filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
2417
2647
  organizationId?: string | undefined;
2418
2648
  organizationSlug?: string | undefined;
2419
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
2649
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
2420
2650
  query?: {
2421
2651
  limit?: string | number | undefined;
2422
2652
  offset?: string | number | undefined;
@@ -2462,7 +2692,7 @@ declare const authClient: {} & {
2462
2692
  userId?: string | undefined;
2463
2693
  organizationId?: string | undefined;
2464
2694
  organizationSlug?: string | undefined;
2465
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
2695
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
2466
2696
  query?: {
2467
2697
  userId?: string | undefined;
2468
2698
  organizationId?: string | undefined;
@@ -2480,40 +2710,40 @@ declare const authClient: {} & {
2480
2710
  organization: {
2481
2711
  hasPermission: <FetchOptions extends better_auth.ClientFetchOption<Partial<({
2482
2712
  permission: {
2483
- readonly organization?: ("update" | "delete")[] | undefined;
2484
- readonly member?: ("update" | "delete" | "create")[] | undefined;
2713
+ readonly organization?: ("delete" | "update")[] | undefined;
2714
+ readonly member?: ("delete" | "update" | "create")[] | undefined;
2485
2715
  readonly invitation?: ("create" | "cancel")[] | undefined;
2486
- readonly team?: ("update" | "delete" | "create")[] | undefined;
2487
- readonly ac?: ("update" | "delete" | "create" | "read")[] | undefined;
2716
+ readonly team?: ("delete" | "update" | "create")[] | undefined;
2717
+ readonly ac?: ("delete" | "update" | "create" | "read")[] | undefined;
2488
2718
  };
2489
2719
  permissions?: never | undefined;
2490
2720
  } | {
2491
2721
  permissions: {
2492
- readonly organization?: ("update" | "delete")[] | undefined;
2493
- readonly member?: ("update" | "delete" | "create")[] | undefined;
2722
+ readonly organization?: ("delete" | "update")[] | undefined;
2723
+ readonly member?: ("delete" | "update" | "create")[] | undefined;
2494
2724
  readonly invitation?: ("create" | "cancel")[] | undefined;
2495
- readonly team?: ("update" | "delete" | "create")[] | undefined;
2496
- readonly ac?: ("update" | "delete" | "create" | "read")[] | undefined;
2725
+ readonly team?: ("delete" | "update" | "create")[] | undefined;
2726
+ readonly ac?: ("delete" | "update" | "create" | "read")[] | undefined;
2497
2727
  };
2498
2728
  permission?: never | undefined;
2499
2729
  }) & {
2500
2730
  organizationId?: string | undefined;
2501
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<(({
2731
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<(({
2502
2732
  permission: {
2503
- readonly organization?: ("update" | "delete")[] | undefined;
2504
- readonly member?: ("update" | "delete" | "create")[] | undefined;
2733
+ readonly organization?: ("delete" | "update")[] | undefined;
2734
+ readonly member?: ("delete" | "update" | "create")[] | undefined;
2505
2735
  readonly invitation?: ("create" | "cancel")[] | undefined;
2506
- readonly team?: ("update" | "delete" | "create")[] | undefined;
2507
- readonly ac?: ("update" | "delete" | "create" | "read")[] | undefined;
2736
+ readonly team?: ("delete" | "update" | "create")[] | undefined;
2737
+ readonly ac?: ("delete" | "update" | "create" | "read")[] | undefined;
2508
2738
  };
2509
2739
  permissions?: never | undefined;
2510
2740
  } | {
2511
2741
  permissions: {
2512
- readonly organization?: ("update" | "delete")[] | undefined;
2513
- readonly member?: ("update" | "delete" | "create")[] | undefined;
2742
+ readonly organization?: ("delete" | "update")[] | undefined;
2743
+ readonly member?: ("delete" | "update" | "create")[] | undefined;
2514
2744
  readonly invitation?: ("create" | "cancel")[] | undefined;
2515
- readonly team?: ("update" | "delete" | "create")[] | undefined;
2516
- readonly ac?: ("update" | "delete" | "create" | "read")[] | undefined;
2745
+ readonly team?: ("delete" | "update" | "create")[] | undefined;
2746
+ readonly ac?: ("delete" | "update" | "create" | "read")[] | undefined;
2517
2747
  };
2518
2748
  permission?: never | undefined;
2519
2749
  }) & {
@@ -2533,7 +2763,7 @@ declare const authClient: {} & {
2533
2763
  code: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
2534
2764
  client_id: string;
2535
2765
  scope?: string | undefined;
2536
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
2766
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2537
2767
  client_id: string;
2538
2768
  scope?: string | undefined;
2539
2769
  } & {
@@ -2556,7 +2786,7 @@ declare const authClient: {} & {
2556
2786
  grant_type: "urn:ietf:params:oauth:grant-type:device_code";
2557
2787
  device_code: string;
2558
2788
  client_id: string;
2559
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
2789
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2560
2790
  grant_type: "urn:ietf:params:oauth:grant-type:device_code";
2561
2791
  device_code: string;
2562
2792
  client_id: string;
@@ -2575,7 +2805,7 @@ declare const authClient: {} & {
2575
2805
  } & {
2576
2806
  device: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
2577
2807
  user_code: string;
2578
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
2808
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2579
2809
  query: {
2580
2810
  user_code: string;
2581
2811
  };
@@ -2591,7 +2821,7 @@ declare const authClient: {} & {
2591
2821
  device: {
2592
2822
  approve: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
2593
2823
  userCode: string;
2594
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
2824
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2595
2825
  userCode: string;
2596
2826
  } & {
2597
2827
  fetchOptions?: FetchOptions | undefined;
@@ -2606,7 +2836,7 @@ declare const authClient: {} & {
2606
2836
  device: {
2607
2837
  deny: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
2608
2838
  userCode: string;
2609
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
2839
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2610
2840
  userCode: string;
2611
2841
  } & {
2612
2842
  fetchOptions?: FetchOptions | undefined;
@@ -2619,7 +2849,7 @@ declare const authClient: {} & {
2619
2849
  };
2620
2850
  } & {
2621
2851
  multiSession: {
2622
- listDeviceSessions: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
2852
+ listDeviceSessions: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
2623
2853
  query?: Record<string, any> | undefined;
2624
2854
  fetchOptions?: FetchOptions | undefined;
2625
2855
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<{
@@ -2634,7 +2864,7 @@ declare const authClient: {} & {
2634
2864
  multiSession: {
2635
2865
  setActive: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
2636
2866
  sessionToken: string;
2637
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
2867
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2638
2868
  sessionToken: string;
2639
2869
  } & {
2640
2870
  fetchOptions?: FetchOptions | undefined;
@@ -2650,7 +2880,7 @@ declare const authClient: {} & {
2650
2880
  multiSession: {
2651
2881
  revoke: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
2652
2882
  sessionToken: string;
2653
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
2883
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2654
2884
  sessionToken: string;
2655
2885
  } & {
2656
2886
  fetchOptions?: FetchOptions | undefined;
@@ -2705,7 +2935,7 @@ declare const authClient: {} & {
2705
2935
  statusText: string;
2706
2936
  };
2707
2937
  } | {
2708
- data: node_modules__better_auth_passkey_dist_index_BosVYrMJ_mjs.n;
2938
+ data: Passkey;
2709
2939
  error: null;
2710
2940
  } | {
2711
2941
  data: null;
@@ -2718,19 +2948,19 @@ declare const authClient: {} & {
2718
2948
  }>;
2719
2949
  };
2720
2950
  $Infer: {
2721
- Passkey: node_modules__better_auth_passkey_dist_index_BosVYrMJ_mjs.n;
2951
+ Passkey: Passkey;
2722
2952
  };
2723
2953
  } & {
2724
2954
  admin: {
2725
2955
  checkRolePermission: <R extends "user" | "admin">(data: ({
2726
2956
  permission: {
2727
- readonly user?: ("set-password" | "update" | "delete" | "list" | "get" | "create" | "set-role" | "ban" | "impersonate")[] | undefined;
2957
+ readonly user?: ("delete" | "get" | "set-password" | "update" | "list" | "create" | "set-role" | "ban" | "impersonate")[] | undefined;
2728
2958
  readonly session?: ("delete" | "list" | "revoke")[] | undefined;
2729
2959
  };
2730
2960
  permissions?: never | undefined;
2731
2961
  } | {
2732
2962
  permissions: {
2733
- readonly user?: ("set-password" | "update" | "delete" | "list" | "get" | "create" | "set-role" | "ban" | "impersonate")[] | undefined;
2963
+ readonly user?: ("delete" | "get" | "set-password" | "update" | "list" | "create" | "set-role" | "ban" | "impersonate")[] | undefined;
2734
2964
  readonly session?: ("delete" | "list" | "revoke")[] | undefined;
2735
2965
  };
2736
2966
  permission?: never | undefined;
@@ -2814,20 +3044,20 @@ declare const authClient: {} & {
2814
3044
  organization: {
2815
3045
  checkRolePermission: <R extends "admin" | "member" | "owner">(data: ({
2816
3046
  permission: {
2817
- readonly organization?: ("update" | "delete")[] | undefined;
2818
- readonly member?: ("update" | "delete" | "create")[] | undefined;
3047
+ readonly organization?: ("delete" | "update")[] | undefined;
3048
+ readonly member?: ("delete" | "update" | "create")[] | undefined;
2819
3049
  readonly invitation?: ("create" | "cancel")[] | undefined;
2820
- readonly team?: ("update" | "delete" | "create")[] | undefined;
2821
- readonly ac?: ("update" | "delete" | "create" | "read")[] | undefined;
3050
+ readonly team?: ("delete" | "update" | "create")[] | undefined;
3051
+ readonly ac?: ("delete" | "update" | "create" | "read")[] | undefined;
2822
3052
  };
2823
3053
  permissions?: never | undefined;
2824
3054
  } | {
2825
3055
  permissions: {
2826
- readonly organization?: ("update" | "delete")[] | undefined;
2827
- readonly member?: ("update" | "delete" | "create")[] | undefined;
3056
+ readonly organization?: ("delete" | "update")[] | undefined;
3057
+ readonly member?: ("delete" | "update" | "create")[] | undefined;
2828
3058
  readonly invitation?: ("create" | "cancel")[] | undefined;
2829
- readonly team?: ("update" | "delete" | "create")[] | undefined;
2830
- readonly ac?: ("update" | "delete" | "create" | "read")[] | undefined;
3059
+ readonly team?: ("delete" | "update" | "create")[] | undefined;
3060
+ readonly ac?: ("delete" | "update" | "create" | "read")[] | undefined;
2831
3061
  };
2832
3062
  permission?: never | undefined;
2833
3063
  }) & {
@@ -2922,12 +3152,6 @@ declare const authClient: {} & {
2922
3152
  hooks: {
2923
3153
  onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
2924
3154
  };
2925
- } | {
2926
- id: string;
2927
- name: string;
2928
- hooks: {
2929
- onRequest<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>): void;
2930
- };
2931
3155
  } | {
2932
3156
  id: string;
2933
3157
  name: string;
@@ -2993,9 +3217,163 @@ declare const authClient: {} & {
2993
3217
  atoms: Record<string, better_auth_react.WritableAtom<any>>;
2994
3218
  };
2995
3219
  $ERROR_CODES: {
2996
- readonly USER_NOT_FOUND: "User not found";
2997
3220
  readonly FAILED_TO_CREATE_USER: "Failed to create user";
3221
+ readonly USER_ALREADY_EXISTS: "User already exists.";
3222
+ readonly USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL: "User already exists. Use another email.";
3223
+ readonly YOU_CANNOT_BAN_YOURSELF: "You cannot ban yourself";
3224
+ readonly YOU_ARE_NOT_ALLOWED_TO_CHANGE_USERS_ROLE: "You are not allowed to change users role";
3225
+ readonly YOU_ARE_NOT_ALLOWED_TO_CREATE_USERS: "You are not allowed to create users";
3226
+ readonly YOU_ARE_NOT_ALLOWED_TO_LIST_USERS: "You are not allowed to list users";
3227
+ readonly YOU_ARE_NOT_ALLOWED_TO_LIST_USERS_SESSIONS: "You are not allowed to list users sessions";
3228
+ readonly YOU_ARE_NOT_ALLOWED_TO_BAN_USERS: "You are not allowed to ban users";
3229
+ readonly YOU_ARE_NOT_ALLOWED_TO_IMPERSONATE_USERS: "You are not allowed to impersonate users";
3230
+ readonly YOU_ARE_NOT_ALLOWED_TO_REVOKE_USERS_SESSIONS: "You are not allowed to revoke users sessions";
3231
+ readonly YOU_ARE_NOT_ALLOWED_TO_DELETE_USERS: "You are not allowed to delete users";
3232
+ readonly YOU_ARE_NOT_ALLOWED_TO_SET_USERS_PASSWORD: "You are not allowed to set users password";
3233
+ readonly BANNED_USER: "You have been banned from this application";
3234
+ readonly YOU_ARE_NOT_ALLOWED_TO_GET_USER: "You are not allowed to get user";
3235
+ readonly NO_DATA_TO_UPDATE: "No data to update";
3236
+ readonly YOU_ARE_NOT_ALLOWED_TO_UPDATE_USERS: "You are not allowed to update users";
3237
+ readonly YOU_CANNOT_REMOVE_YOURSELF: "You cannot remove yourself";
3238
+ readonly YOU_ARE_NOT_ALLOWED_TO_SET_NON_EXISTENT_VALUE: "You are not allowed to set a non-existent role value";
3239
+ readonly YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_ORGANIZATION: "You are not allowed to create a new organization";
3240
+ readonly YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_ORGANIZATIONS: "You have reached the maximum number of organizations";
3241
+ readonly ORGANIZATION_ALREADY_EXISTS: "Organization already exists";
3242
+ readonly ORGANIZATION_SLUG_ALREADY_TAKEN: "Organization slug already taken";
3243
+ readonly ORGANIZATION_NOT_FOUND: "Organization not found";
3244
+ readonly USER_IS_NOT_A_MEMBER_OF_THE_ORGANIZATION: "User is not a member of the organization";
3245
+ readonly YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_ORGANIZATION: "You are not allowed to update this organization";
3246
+ readonly YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_ORGANIZATION: "You are not allowed to delete this organization";
3247
+ readonly NO_ACTIVE_ORGANIZATION: "No active organization";
3248
+ readonly USER_IS_ALREADY_A_MEMBER_OF_THIS_ORGANIZATION: "User is already a member of this organization";
3249
+ readonly MEMBER_NOT_FOUND: "Member not found";
3250
+ readonly ROLE_NOT_FOUND: "Role not found";
3251
+ readonly YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM: "You are not allowed to create a new team";
3252
+ readonly TEAM_ALREADY_EXISTS: "Team already exists";
3253
+ readonly TEAM_NOT_FOUND: "Team not found";
3254
+ readonly YOU_CANNOT_LEAVE_THE_ORGANIZATION_AS_THE_ONLY_OWNER: "You cannot leave the organization as the only owner";
3255
+ readonly YOU_CANNOT_LEAVE_THE_ORGANIZATION_WITHOUT_AN_OWNER: "You cannot leave the organization without an owner";
3256
+ readonly YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_MEMBER: "You are not allowed to delete this member";
3257
+ readonly YOU_ARE_NOT_ALLOWED_TO_INVITE_USERS_TO_THIS_ORGANIZATION: "You are not allowed to invite users to this organization";
3258
+ readonly USER_IS_ALREADY_INVITED_TO_THIS_ORGANIZATION: "User is already invited to this organization";
3259
+ readonly INVITATION_NOT_FOUND: "Invitation not found";
3260
+ readonly YOU_ARE_NOT_THE_RECIPIENT_OF_THE_INVITATION: "You are not the recipient of the invitation";
3261
+ readonly EMAIL_VERIFICATION_REQUIRED_BEFORE_ACCEPTING_OR_REJECTING_INVITATION: "Email verification required before accepting or rejecting invitation";
3262
+ readonly YOU_ARE_NOT_ALLOWED_TO_CANCEL_THIS_INVITATION: "You are not allowed to cancel this invitation";
3263
+ readonly INVITER_IS_NO_LONGER_A_MEMBER_OF_THE_ORGANIZATION: "Inviter is no longer a member of the organization";
3264
+ readonly YOU_ARE_NOT_ALLOWED_TO_INVITE_USER_WITH_THIS_ROLE: "You are not allowed to invite a user with this role";
3265
+ readonly FAILED_TO_RETRIEVE_INVITATION: "Failed to retrieve invitation";
3266
+ readonly YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_TEAMS: "You have reached the maximum number of teams";
3267
+ readonly UNABLE_TO_REMOVE_LAST_TEAM: "Unable to remove last team";
3268
+ readonly YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_MEMBER: "You are not allowed to update this member";
3269
+ readonly ORGANIZATION_MEMBERSHIP_LIMIT_REACHED: "Organization membership limit reached";
3270
+ readonly YOU_ARE_NOT_ALLOWED_TO_CREATE_TEAMS_IN_THIS_ORGANIZATION: "You are not allowed to create teams in this organization";
3271
+ readonly YOU_ARE_NOT_ALLOWED_TO_DELETE_TEAMS_IN_THIS_ORGANIZATION: "You are not allowed to delete teams in this organization";
3272
+ readonly YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_TEAM: "You are not allowed to update this team";
3273
+ readonly YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_TEAM: "You are not allowed to delete this team";
3274
+ readonly INVITATION_LIMIT_REACHED: "Invitation limit reached";
3275
+ readonly TEAM_MEMBER_LIMIT_REACHED: "Team member limit reached";
3276
+ readonly USER_IS_NOT_A_MEMBER_OF_THE_TEAM: "User is not a member of the team";
3277
+ readonly YOU_CAN_NOT_ACCESS_THE_MEMBERS_OF_THIS_TEAM: "You are not allowed to list the members of this team";
3278
+ readonly YOU_DO_NOT_HAVE_AN_ACTIVE_TEAM: "You do not have an active team";
3279
+ readonly YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM_MEMBER: "You are not allowed to create a new member";
3280
+ readonly YOU_ARE_NOT_ALLOWED_TO_REMOVE_A_TEAM_MEMBER: "You are not allowed to remove a team member";
3281
+ readonly YOU_ARE_NOT_ALLOWED_TO_ACCESS_THIS_ORGANIZATION: "You are not allowed to access this organization as an owner";
3282
+ readonly YOU_ARE_NOT_A_MEMBER_OF_THIS_ORGANIZATION: "You are not a member of this organization";
3283
+ readonly MISSING_AC_INSTANCE: "Dynamic Access Control requires a pre-defined ac instance on the server auth plugin. Read server logs for more information";
3284
+ readonly YOU_MUST_BE_IN_AN_ORGANIZATION_TO_CREATE_A_ROLE: "You must be in an organization to create a role";
3285
+ readonly YOU_ARE_NOT_ALLOWED_TO_CREATE_A_ROLE: "You are not allowed to create a role";
3286
+ readonly YOU_ARE_NOT_ALLOWED_TO_UPDATE_A_ROLE: "You are not allowed to update a role";
3287
+ readonly YOU_ARE_NOT_ALLOWED_TO_DELETE_A_ROLE: "You are not allowed to delete a role";
3288
+ readonly YOU_ARE_NOT_ALLOWED_TO_READ_A_ROLE: "You are not allowed to read a role";
3289
+ readonly YOU_ARE_NOT_ALLOWED_TO_LIST_A_ROLE: "You are not allowed to list a role";
3290
+ readonly YOU_ARE_NOT_ALLOWED_TO_GET_A_ROLE: "You are not allowed to get a role";
3291
+ readonly TOO_MANY_ROLES: "This organization has too many roles";
3292
+ readonly INVALID_RESOURCE: "The provided permission includes an invalid resource";
3293
+ readonly ROLE_NAME_IS_ALREADY_TAKEN: "That role name is already taken";
3294
+ readonly CANNOT_DELETE_A_PRE_DEFINED_ROLE: "Cannot delete a pre-defined role";
3295
+ readonly INVALID_EMAIL_FORMAT: "Email was not generated in a valid format";
3296
+ readonly COULD_NOT_CREATE_SESSION: "Could not create session";
3297
+ readonly ANONYMOUS_USERS_CANNOT_SIGN_IN_AGAIN_ANONYMOUSLY: "Anonymous users cannot sign in again anonymously";
3298
+ readonly OTP_EXPIRED: "OTP expired";
3299
+ readonly INVALID_OTP: "Invalid OTP";
3300
+ readonly TOO_MANY_ATTEMPTS: "Too many attempts";
3301
+ readonly INVALID_OAUTH_CONFIGURATION: "Invalid OAuth configuration";
3302
+ readonly TOKEN_URL_NOT_FOUND: "Invalid OAuth configuration. Token URL not found.";
3303
+ readonly PROVIDER_CONFIG_NOT_FOUND: "No config found for provider";
3304
+ readonly PROVIDER_ID_REQUIRED: "Provider ID is required";
3305
+ readonly INVALID_OAUTH_CONFIG: "Invalid OAuth configuration.";
3306
+ readonly SESSION_REQUIRED: "Session is required";
3307
+ readonly CHALLENGE_NOT_FOUND: "Challenge not found";
3308
+ readonly YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY: "You are not allowed to register this passkey";
3309
+ readonly FAILED_TO_VERIFY_REGISTRATION: "Failed to verify registration";
3310
+ readonly PASSKEY_NOT_FOUND: "Passkey not found";
3311
+ readonly AUTHENTICATION_FAILED: "Authentication failed";
3312
+ readonly UNABLE_TO_CREATE_SESSION: "Unable to create session";
3313
+ readonly FAILED_TO_UPDATE_PASSKEY: "Failed to update passkey";
3314
+ readonly INVALID_PHONE_NUMBER: "Invalid phone number";
3315
+ readonly PHONE_NUMBER_EXIST: "Phone number already exists";
3316
+ readonly PHONE_NUMBER_NOT_EXIST: "phone number isn't registered";
3317
+ readonly INVALID_PHONE_NUMBER_OR_PASSWORD: "Invalid phone number or password";
3318
+ readonly UNEXPECTED_ERROR: "Unexpected error";
3319
+ readonly OTP_NOT_FOUND: "OTP not found";
3320
+ readonly PHONE_NUMBER_NOT_VERIFIED: "Phone number not verified";
3321
+ readonly PHONE_NUMBER_CANNOT_BE_UPDATED: "Phone number cannot be updated";
3322
+ readonly SEND_OTP_NOT_IMPLEMENTED: "sendOTP not implemented";
3323
+ readonly OTP_NOT_ENABLED: "OTP not enabled";
3324
+ readonly OTP_HAS_EXPIRED: "OTP has expired";
3325
+ readonly TOTP_NOT_ENABLED: "TOTP not enabled";
3326
+ readonly TWO_FACTOR_NOT_ENABLED: "Two factor isn't enabled";
3327
+ readonly BACKUP_CODES_NOT_ENABLED: "Backup codes aren't enabled";
3328
+ readonly INVALID_BACKUP_CODE: "Invalid backup code";
3329
+ readonly INVALID_CODE: "Invalid code";
3330
+ readonly TOO_MANY_ATTEMPTS_REQUEST_NEW_CODE: "Too many attempts. Please request a new code.";
3331
+ readonly INVALID_TWO_FACTOR_COOKIE: "Invalid two factor cookie";
3332
+ readonly INVALID_USERNAME_OR_PASSWORD: "Invalid username or password";
3333
+ readonly EMAIL_NOT_VERIFIED: "Email not verified";
3334
+ readonly USERNAME_IS_ALREADY_TAKEN: "Username is already taken. Please try another.";
3335
+ readonly USERNAME_TOO_SHORT: "Username is too short";
3336
+ readonly USERNAME_TOO_LONG: "Username is too long";
3337
+ readonly INVALID_USERNAME: "Username is invalid";
3338
+ readonly INVALID_DISPLAY_USERNAME: "Display username is invalid";
3339
+ readonly INVALID_METADATA_TYPE: "metadata must be an object or undefined";
3340
+ readonly REFILL_AMOUNT_AND_INTERVAL_REQUIRED: "refillAmount is required when refillInterval is provided";
3341
+ readonly REFILL_INTERVAL_AND_AMOUNT_REQUIRED: "refillInterval is required when refillAmount is provided";
3342
+ readonly USER_BANNED: "User is banned";
3343
+ readonly UNAUTHORIZED_SESSION: "Unauthorized or invalid session";
3344
+ readonly KEY_NOT_FOUND: "API Key not found";
3345
+ readonly KEY_DISABLED: "API Key is disabled";
3346
+ readonly KEY_EXPIRED: "API Key has expired";
3347
+ readonly USAGE_EXCEEDED: "API Key has reached its usage limit";
3348
+ readonly KEY_NOT_RECOVERABLE: "API Key is not recoverable";
3349
+ readonly EXPIRES_IN_IS_TOO_SMALL: "The expiresIn is smaller than the predefined minimum value.";
3350
+ readonly EXPIRES_IN_IS_TOO_LARGE: "The expiresIn is larger than the predefined maximum value.";
3351
+ readonly INVALID_REMAINING: "The remaining count is either too large or too small.";
3352
+ readonly INVALID_PREFIX_LENGTH: "The prefix length is either too large or too small.";
3353
+ readonly INVALID_NAME_LENGTH: "The name length is either too large or too small.";
3354
+ readonly METADATA_DISABLED: "Metadata is disabled.";
3355
+ readonly RATE_LIMIT_EXCEEDED: "Rate limit exceeded.";
3356
+ readonly NO_VALUES_TO_UPDATE: "No values to update.";
3357
+ readonly KEY_DISABLED_EXPIRATION: "Custom key expiration values are disabled.";
3358
+ readonly INVALID_API_KEY: "Invalid API key.";
3359
+ readonly INVALID_USER_ID_FROM_API_KEY: "The user id from the API key is invalid.";
3360
+ readonly INVALID_API_KEY_GETTER_RETURN_TYPE: "API Key getter returned an invalid key type. Expected string.";
3361
+ readonly SERVER_ONLY_PROPERTY: "The property you're trying to set can only be set from the server auth instance only.";
3362
+ readonly FAILED_TO_UPDATE_API_KEY: "Failed to update API key";
3363
+ readonly NAME_REQUIRED: "API Key name is required.";
3364
+ readonly INVALID_DEVICE_CODE: "Invalid device code";
3365
+ readonly EXPIRED_DEVICE_CODE: "Device code has expired";
3366
+ readonly EXPIRED_USER_CODE: "User code has expired";
3367
+ readonly AUTHORIZATION_PENDING: "Authorization pending";
3368
+ readonly ACCESS_DENIED: "Access denied";
3369
+ readonly INVALID_USER_CODE: "Invalid user code";
3370
+ readonly DEVICE_CODE_ALREADY_PROCESSED: "Device code already processed";
3371
+ readonly POLLING_TOO_FREQUENTLY: "Polling too frequently";
3372
+ readonly USER_NOT_FOUND: "User not found";
2998
3373
  readonly FAILED_TO_CREATE_SESSION: "Failed to create session";
3374
+ readonly INVALID_DEVICE_CODE_STATUS: "Invalid device code status";
3375
+ readonly AUTHENTICATION_REQUIRED: "Authentication required";
3376
+ readonly INVALID_SESSION_TOKEN: "Invalid session token";
2999
3377
  readonly FAILED_TO_UPDATE_USER: "Failed to update user";
3000
3378
  readonly FAILED_TO_GET_SESSION: "Failed to get session";
3001
3379
  readonly INVALID_PASSWORD: "Invalid password";
@@ -3007,11 +3385,8 @@ declare const authClient: {} & {
3007
3385
  readonly ID_TOKEN_NOT_SUPPORTED: "id_token not supported";
3008
3386
  readonly FAILED_TO_GET_USER_INFO: "Failed to get user info";
3009
3387
  readonly USER_EMAIL_NOT_FOUND: "User email not found";
3010
- readonly EMAIL_NOT_VERIFIED: "Email not verified";
3011
3388
  readonly PASSWORD_TOO_SHORT: "Password too short";
3012
3389
  readonly PASSWORD_TOO_LONG: "Password too long";
3013
- readonly USER_ALREADY_EXISTS: "User already exists.";
3014
- readonly USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL: "User already exists. Use another email.";
3015
3390
  readonly EMAIL_CAN_NOT_BE_UPDATED: "Email can not be updated";
3016
3391
  readonly CREDENTIAL_ACCOUNT_NOT_FOUND: "Credential account not found";
3017
3392
  readonly SESSION_EXPIRED: "Session expired. Re-authenticate to perform this action.";
@@ -3021,258 +3396,17 @@ declare const authClient: {} & {
3021
3396
  };
3022
3397
  };
3023
3398
  type AuthClient = typeof authClient;
3024
- type SessionData = AuthClient['$Infer']['Session'];
3025
- type Session = AuthClient['$Infer']['Session']['session'];
3026
- type User = AuthClient['$Infer']['Session']['user'];
3399
+ type SessionData = AuthClient["$Infer"]["Session"];
3400
+ type Session = AuthClient["$Infer"]["Session"]["session"];
3401
+ type User = AuthClient["$Infer"]["Session"]["user"];
3027
3402
  type ActiveOrganization = typeof authClient.$Infer.ActiveOrganization;
3028
3403
 
3029
3404
  type BetterFetchRequest<TData> = ({ fetchOptions, }: {
3030
3405
  fetchOptions: BetterFetchOption;
3031
3406
  }) => Promise<BetterFetchResponse<TData>>;
3032
3407
 
3033
- /**
3034
- * Application configuration type definitions
3035
- * These types define the structure of the configuration object that can be passed to the starter kit
3036
- */
3037
- /**
3038
- * Application metadata configuration
3039
- */
3040
- type AppConfig = {
3041
- /** Application name */
3042
- name: string;
3043
- /** Application domain (e.g., localhost:3000, app.example.com) */
3044
- domain: string;
3045
- /** Full application URL (e.g., http://localhost:3000) */
3046
- url: string;
3047
- /** API endpoint URL (e.g., http://localhost:3001 or /api) */
3048
- api: string;
3049
- };
3050
- /**
3051
- * Locale configuration for internationalization
3052
- */
3053
- type LocaleConfig = {
3054
- /** Locale code (e.g., en, id, ar) */
3055
- code: string;
3056
- /** Display name of the locale */
3057
- name: string;
3058
- /** Text direction for the locale */
3059
- direction: 'ltr' | 'rtl';
3060
- /** Flag identifier for the locale */
3061
- flag: string;
3062
- };
3063
- /**
3064
- * Internationalization configuration
3065
- */
3066
- type I18nConfig = {
3067
- /** Whether i18n is enabled */
3068
- enabled: boolean;
3069
- /** Available locales mapping */
3070
- locales: {
3071
- [locale: string]: LocaleConfig;
3072
- };
3073
- /** Default locale code */
3074
- defaultLocale: string;
3075
- /** Default currency code */
3076
- defaultCurrency: string;
3077
- /** Cookie name for storing locale preference */
3078
- localeCookieName: string;
3079
- };
3080
- /**
3081
- * Authentication methods configuration
3082
- */
3083
- type AuthenticationConfig = {
3084
- /** Allow anonymous authentication */
3085
- anonymous: boolean;
3086
- /** Allow email OTP authentication */
3087
- emailOtp: boolean;
3088
- /** Allow magic link authentication */
3089
- magicLink: boolean;
3090
- /** Allow Google One Tap authentication */
3091
- oneTap: boolean;
3092
- /** Allow passkey authentication */
3093
- passkey: boolean;
3094
- /** Allow password authentication */
3095
- password: boolean;
3096
- /** Allow phone number authentication */
3097
- phoneNumber: boolean;
3098
- /** Allow two-factor authentication */
3099
- twoFactor: boolean;
3100
- /** Allow username authentication */
3101
- username: boolean;
3102
- };
3103
- /**
3104
- * Authentication configuration
3105
- */
3106
- type AuthConfig = {
3107
- /** Allow user signup */
3108
- enableSignup: boolean;
3109
- /** Allow users to change their email */
3110
- allowChangeEmail: boolean;
3111
- /** Allow users to delete their account */
3112
- allowDeleteUser: boolean;
3113
- /** Enable or disable email verification for account deletion */
3114
- deleteUserVerification: boolean;
3115
- /** Redirect path after successful sign in */
3116
- redirectAfterSignIn: string;
3117
- /** Redirect path after logout */
3118
- redirectAfterLogout: string;
3119
- /** Freshness age for Session data */
3120
- freshAge: number;
3121
- /** Session cookie max age in seconds */
3122
- sessionCookieMaxAge: number;
3123
- /** Enabled social authentication providers */
3124
- socialProviders: string[];
3125
- /** Authentication methods configuration */
3126
- authentication: AuthenticationConfig;
3127
- };
3128
- /**
3129
- * Feature flags configuration
3130
- */
3131
- type FeaturesConfig = {
3132
- /** Enable admin features */
3133
- admin: boolean;
3134
- /** Enable API key authentication */
3135
- apiKey: boolean;
3136
- /** Enable CAPTCHA */
3137
- captcha: boolean;
3138
- /** Enable device authorization */
3139
- deviceAuthorization: boolean;
3140
- /** Enable HaveIBeenPwned password breach detection */
3141
- haveIBeenPwned: boolean;
3142
- /** Track last login method */
3143
- lastLoginMethod: boolean;
3144
- /** Enable multi-session support */
3145
- multiSession: boolean;
3146
- /** Enable Polar payment integration */
3147
- polar: boolean;
3148
- /** Enable rate limiting */
3149
- rateLimit: boolean;
3150
- /** Enable workspace/organization features */
3151
- workspace: boolean;
3152
- };
3153
- /**
3154
- * Application path configuration
3155
- */
3156
- type PathConfig = {
3157
- /** Main application paths */
3158
- main: {
3159
- ERROR: string;
3160
- HOME: string;
3161
- FEATURES: string;
3162
- PRICING: string;
3163
- TERMS: string;
3164
- PRIVACY: string;
3165
- [key: string]: string;
3166
- };
3167
- /** Authentication related paths */
3168
- auth: {
3169
- ACCEPT_INVITATION: string;
3170
- CALLBACK: string;
3171
- EMAIL_OTP: string;
3172
- FORGOT_PASSWORD: string;
3173
- MAGIC_LINK: string;
3174
- RECOVER_ACCOUNT: string;
3175
- RESET_PASSWORD: string;
3176
- SIGN_IN: string;
3177
- SIGN_OUT: string;
3178
- SIGN_UP: string;
3179
- TWO_FACTOR: string;
3180
- [key: string]: string;
3181
- };
3182
- /** Onboarding flow paths */
3183
- onboarding: {
3184
- WELCOME: string;
3185
- WORKSPACE: string;
3186
- [key: string]: string;
3187
- };
3188
- /** User account settings paths */
3189
- account: {
3190
- SETTINGS: string;
3191
- SECURITY: string;
3192
- API_KEYS: string;
3193
- WORKSPACES: string;
3194
- [key: string]: string;
3195
- };
3196
- /** Workspace settings paths */
3197
- workspaces: {
3198
- SETTINGS: string;
3199
- MEMBERS: string;
3200
- API_KEYS: string;
3201
- BILLINGS: string;
3202
- WEBHOOKS: string;
3203
- [key: string]: string;
3204
- };
3205
- /** Admin paths */
3206
- admin: {
3207
- OVERVIEW: string;
3208
- USERS: string;
3209
- [key: string]: string;
3210
- };
3211
- };
3212
- /**
3213
- * UI configuration
3214
- */
3215
- type UIConfig = {
3216
- /** Enable multiple theme support */
3217
- enableMultiThemes: boolean;
3218
- /** Default theme name */
3219
- defaultTheme: string;
3220
- /** Enable workspace slug in URLs */
3221
- enableWorkspaceSlug: boolean;
3222
- };
3223
- /**
3224
- * Main configuration object structure
3225
- * This is the complete configuration that should be passed to ConfigProvider
3226
- */
3227
- type Config = {
3228
- /** Application metadata */
3229
- app: AppConfig;
3230
- /** Internationalization settings */
3231
- i18n: I18nConfig;
3232
- /** Authentication settings */
3233
- auth: AuthConfig;
3234
- /** Feature flags */
3235
- features: FeaturesConfig;
3236
- /** Application paths */
3237
- path: PathConfig;
3238
- /** UI settings */
3239
- ui: UIConfig;
3240
- };
3241
-
3242
- type AuthQueryOptions = {
3243
- /**
3244
- * The default query options for all queries.
3245
- */
3246
- queryOptions?: Partial<AnyUseQueryOptions>;
3247
- /**
3248
- * The default query options for session queries.
3249
- */
3250
- sessionQueryOptions?: Partial<AnyUseQueryOptions>;
3251
- /**
3252
- * Whether to use optimistic updates for mutations.
3253
- */
3254
- optimistic: boolean;
3255
- /**
3256
- * Whether to refetch queries on mutations.
3257
- */
3258
- refetchOnMutate: boolean;
3259
- /**
3260
- * The query keys for session queries.
3261
- */
3262
- queryKey: {
3263
- accountInfo: QueryKey;
3264
- listAccounts: QueryKey;
3265
- listApiKeys: QueryKey;
3266
- listDeviceSessions: QueryKey;
3267
- listPasskeys: QueryKey;
3268
- listSessions: QueryKey;
3269
- session: QueryKey;
3270
- };
3271
- };
3272
- declare const defaultAuthQueryOptions: AuthQueryOptions;
3273
-
3274
- type Locale = keyof Config['i18n']['locales'] & string;
3275
- type FieldType = 'string' | 'number' | 'boolean';
3408
+ type Locale = keyof Config["i18n"]["locales"] & string;
3409
+ type FieldType = "string" | "number" | "boolean";
3276
3410
  type ImageOptions = {
3277
3411
  upload?: (file: File) => Promise<string | undefined | null>;
3278
3412
  delete?: (url: string) => Promise<void>;
@@ -3400,15 +3534,17 @@ interface AvatarProps extends ComponentProps<typeof Avatar> {
3400
3534
  className?: string;
3401
3535
  classNames?: AvatarClassNames;
3402
3536
  isPending?: boolean;
3403
- size?: NonNullable<Parameters<typeof buttonVariants>[0]>['size'] | null | undefined;
3537
+ size?: NonNullable<Parameters<typeof buttonVariants>[0]>["size"] | null | undefined;
3404
3538
  user?: Profile | null;
3539
+ workspace?: Partial<Organization> | null;
3405
3540
  }
3406
3541
  interface ViewProps {
3407
3542
  className?: string;
3408
3543
  classNames?: ViewClassNames;
3409
3544
  isPending?: boolean;
3410
- size?: NonNullable<Parameters<typeof buttonVariants>[0]>['size'] | null | undefined;
3545
+ size?: NonNullable<Parameters<typeof buttonVariants>[0]>["size"] | null | undefined;
3411
3546
  user?: Profile | null;
3547
+ workspace?: Organization | null;
3412
3548
  }
3413
3549
  interface DialogComponentProps extends ComponentProps<typeof Dialog> {
3414
3550
  className?: string;
@@ -3421,7 +3557,7 @@ interface DialogComponentProps extends ComponentProps<typeof Dialog> {
3421
3557
  cancelButtonDisabled?: boolean;
3422
3558
  button?: ReactNode;
3423
3559
  }
3424
- interface CardComponentProps extends Omit<ComponentProps<typeof Card>, 'title' | 'variant'> {
3560
+ interface CardComponentProps extends Omit<ComponentProps<typeof Card>, "title" | "variant"> {
3425
3561
  className?: string;
3426
3562
  children?: ReactNode;
3427
3563
  classNames?: CardClassNames;
@@ -3436,4 +3572,4 @@ interface CardComponentProps extends Omit<ComponentProps<typeof Card>, 'title' |
3436
3572
  isSubmitting?: boolean;
3437
3573
  }
3438
3574
 
3439
- export { type AuthClient as A, type BetterFetchRequest as B, type Config as C, type DialogComponentProps as D, type FieldType as F, type ImageOptions as I, type LocaleConfig as L, type NonThrowableResult as N, type PasswordValidation as P, type Refetch as R, type Session as S, type ThrowableResult as T, type User as U, type ViewProps as V, type AuthQueryOptions as a, type AnyAuthClient as b, type CardComponentProps as c, type CardClassNames as d, type ApiKey as e, type PathConfig as f, type Provider as g, type Profile as h, type AvatarProps as i, type ProviderIcon as j, defaultAuthQueryOptions as k, type AppConfig as l, type I18nConfig as m, type AuthenticationConfig as n, type AuthConfig as o, type FeaturesConfig as p, type UIConfig as q, authClient as r, type SessionData as s, type ActiveOrganization as t, type Locale as u, type Invitation as v, type FetchError as w, type AvatarClassNames as x, type ViewClassNames as y, type DialogClassNames as z };
3575
+ export { type AuthQueryOptions as A, type BetterFetchRequest as B, type Config as C, type DialogClassNames as D, type Passkey as E, type FeaturesConfig as F, type I18nConfig as I, type LocaleConfig as L, type NonThrowableResult as N, type PathConfig as P, type Refetch as R, type SessionData as S, type ThrowableResult as T, type UIConfig as U, type ViewClassNames as V, type AppConfig as a, type AuthenticationConfig as b, type AuthConfig as c, defaultAuthQueryOptions as d, type AnyAuthClient as e, authClient as f, type AuthClient as g, type Session as h, type User as i, type ActiveOrganization as j, type Locale as k, type FieldType as l, type ImageOptions as m, type ProviderIcon as n, type Provider as o, type ApiKey as p, type Invitation as q, type PasswordValidation as r, type Profile as s, type FetchError as t, type AvatarClassNames as u, type CardClassNames as v, type AvatarProps as w, type ViewProps as x, type DialogComponentProps as y, type CardComponentProps as z };