@pelatform/starter 0.1.5 → 0.1.6

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,281 @@
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';
15
13
 
16
- type AnyAuthClient = Omit<ReturnType<typeof createAuthClient>, 'signUp' | 'getSession'>;
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
+ [key: string]: string;
180
+ };
181
+ /** Authentication related paths */
182
+ auth: {
183
+ CALLBACK: string;
184
+ EMAIL_OTP: string;
185
+ FORGOT_PASSWORD: string;
186
+ MAGIC_LINK: string;
187
+ RECOVER_ACCOUNT: string;
188
+ RESET_PASSWORD: string;
189
+ SIGN_IN: string;
190
+ SIGN_OUT: string;
191
+ SIGN_UP: string;
192
+ TWO_FACTOR: string;
193
+ [key: string]: string;
194
+ };
195
+ /** Onboarding flow paths */
196
+ onboarding: {
197
+ WELCOME: string;
198
+ WORKSPACE: string;
199
+ [key: string]: string;
200
+ };
201
+ /** User account settings paths */
202
+ account: {
203
+ SETTINGS: string;
204
+ SECURITY: string;
205
+ API_KEYS: string;
206
+ WORKSPACES: string;
207
+ [key: string]: string;
208
+ };
209
+ /** Workspace settings paths */
210
+ workspaces: {
211
+ SETTINGS: string;
212
+ MEMBERS: string;
213
+ API_KEYS: string;
214
+ BILLINGS: string;
215
+ WEBHOOKS: string;
216
+ [key: string]: string;
217
+ };
218
+ /** Admin paths */
219
+ admin: {
220
+ OVERVIEW: string;
221
+ USERS: string;
222
+ [key: string]: string;
223
+ };
224
+ /** Custom paths */
225
+ custom: {
226
+ ACCEPT_INVITATION: string;
227
+ NEW_WORKSPACE: string;
228
+ [key: string]: string;
229
+ };
230
+ };
231
+ /**
232
+ * UI configuration
233
+ */
234
+ type UIConfig = {
235
+ /** Enable multiple theme support */
236
+ enableMultiThemes: boolean;
237
+ /** Default theme name */
238
+ defaultTheme: string;
239
+ /** Enable workspace slug in URLs */
240
+ enableWorkspaceSlug: boolean;
241
+ };
242
+ /**
243
+ * Main configuration object structure
244
+ * This is the complete configuration that should be passed to ConfigProvider
245
+ */
246
+ type Config = {
247
+ /** Application metadata */
248
+ app: AppConfig;
249
+ /** Internationalization settings */
250
+ i18n: I18nConfig;
251
+ /** Authentication settings */
252
+ auth: AuthConfig;
253
+ /** Feature flags */
254
+ features: FeaturesConfig;
255
+ /** Application paths */
256
+ path: PathConfig;
257
+ /** UI settings */
258
+ ui: UIConfig;
259
+ };
260
+
261
+ type Passkey = {
262
+ id: string;
263
+ name?: string | undefined;
264
+ publicKey: string;
265
+ userId: string;
266
+ credentialID: string;
267
+ counter: number;
268
+ deviceType: CredentialDeviceType;
269
+ backedUp: boolean;
270
+ transports?: string | undefined;
271
+ createdAt: Date;
272
+ aaguid?: string | undefined;
273
+ };
274
+
275
+ type AnyAuthClient = Omit<ReturnType<typeof createAuthClient>, "signUp" | "getSession">;
17
276
  declare const authClient: {} & {
18
277
  useListPasskeys: () => {
19
- data: node_modules__better_auth_passkey_dist_index_BosVYrMJ_mjs.n[] | null;
278
+ data: Passkey[] | null;
20
279
  error: null | _better_fetch_fetch.BetterFetchError;
21
280
  isPending: boolean;
22
281
  isRefetching: boolean;
@@ -26,7 +285,7 @@ declare const authClient: {} & {
26
285
  };
27
286
  } & {
28
287
  useActiveOrganization: () => {
29
- data: better_auth_client_plugins.Prettify<{
288
+ data: better_auth.Prettify<{
30
289
  id: string;
31
290
  name: string;
32
291
  slug: string;
@@ -110,7 +369,7 @@ declare const authClient: {} & {
110
369
  } & {
111
370
  signIn: {
112
371
  social: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
113
- provider: unknown;
372
+ 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
373
  callbackURL?: string | undefined;
115
374
  newUserCallbackURL?: string | undefined;
116
375
  errorCallbackURL?: string | undefined;
@@ -126,8 +385,8 @@ declare const authClient: {} & {
126
385
  requestSignUp?: boolean | undefined;
127
386
  loginHint?: string | undefined;
128
387
  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;
388
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
389
+ 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
390
  callbackURL?: string | undefined;
132
391
  newUserCallbackURL?: string | undefined;
133
392
  errorCallbackURL?: string | undefined;
@@ -146,28 +405,28 @@ declare const authClient: {} & {
146
405
  } & {
147
406
  fetchOptions?: FetchOptions | undefined;
148
407
  }>, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<NonNullable<{
408
+ redirect: boolean;
409
+ url: string;
410
+ } | {
149
411
  redirect: boolean;
150
412
  token: string;
151
413
  url: undefined;
152
414
  user: {
153
415
  id: string;
154
- email: string;
155
- name: string;
156
- image: string | null | undefined;
157
- emailVerified: boolean;
158
416
  createdAt: Date;
159
417
  updatedAt: Date;
418
+ email: string;
419
+ emailVerified: boolean;
420
+ name: string;
421
+ image?: string | null | undefined | undefined;
160
422
  };
161
- } | {
162
- url: string;
163
- redirect: boolean;
164
423
  }>, {
165
424
  code?: string | undefined;
166
425
  message?: string | undefined;
167
426
  }, FetchOptions["throw"] extends true ? true : false>>;
168
427
  };
169
428
  } & {
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<{
429
+ signOut: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
171
430
  query?: Record<string, any> | undefined;
172
431
  fetchOptions?: FetchOptions | undefined;
173
432
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<{
@@ -185,7 +444,7 @@ declare const authClient: {} & {
185
444
  image?: string | undefined;
186
445
  callbackURL?: string | undefined;
187
446
  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<{
447
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
189
448
  email: string;
190
449
  name: string;
191
450
  password: string;
@@ -201,23 +460,23 @@ declare const authClient: {} & {
201
460
  token: null;
202
461
  user: {
203
462
  id: string;
204
- email: string;
205
- name: string;
206
- image: string | null | undefined;
207
- emailVerified: boolean;
208
463
  createdAt: Date;
209
464
  updatedAt: Date;
465
+ email: string;
466
+ emailVerified: boolean;
467
+ name: string;
468
+ image?: string | null | undefined | undefined;
210
469
  };
211
470
  } | {
212
471
  token: string;
213
472
  user: {
214
473
  id: string;
215
- email: string;
216
- name: string;
217
- image: string | null | undefined;
218
- emailVerified: boolean;
219
474
  createdAt: Date;
220
475
  updatedAt: Date;
476
+ email: string;
477
+ emailVerified: boolean;
478
+ name: string;
479
+ image?: string | null | undefined | undefined;
221
480
  };
222
481
  }>, {
223
482
  code?: string | undefined;
@@ -231,7 +490,7 @@ declare const authClient: {} & {
231
490
  password: string;
232
491
  callbackURL?: string | undefined;
233
492
  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<{
493
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
235
494
  email: string;
236
495
  password: string;
237
496
  callbackURL?: string | undefined;
@@ -241,15 +500,15 @@ declare const authClient: {} & {
241
500
  }>, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<{
242
501
  redirect: boolean;
243
502
  token: string;
244
- url: string | undefined;
503
+ url?: string | undefined;
245
504
  user: {
246
505
  id: string;
247
- email: string;
248
- name: string;
249
- image: string | null | undefined;
250
- emailVerified: boolean;
251
506
  createdAt: Date;
252
507
  updatedAt: Date;
508
+ email: string;
509
+ emailVerified: boolean;
510
+ name: string;
511
+ image?: string | null | undefined | undefined;
253
512
  };
254
513
  }, {
255
514
  code?: string | undefined;
@@ -262,7 +521,7 @@ declare const authClient: {} & {
262
521
  token?: string | undefined;
263
522
  }> & Record<string, any>, Partial<{
264
523
  token?: string | undefined;
265
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
524
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
266
525
  newPassword: string;
267
526
  token?: string | undefined;
268
527
  } & {
@@ -277,7 +536,7 @@ declare const authClient: {} & {
277
536
  verifyEmail: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
278
537
  token: string;
279
538
  callbackURL?: string | undefined;
280
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
539
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
281
540
  query: {
282
541
  token: string;
283
542
  callbackURL?: string | undefined;
@@ -293,7 +552,7 @@ declare const authClient: {} & {
293
552
  sendVerificationEmail: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
294
553
  email: string;
295
554
  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<{
555
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
297
556
  email: string;
298
557
  callbackURL?: string | undefined;
299
558
  } & {
@@ -308,7 +567,7 @@ declare const authClient: {} & {
308
567
  changeEmail: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
309
568
  newEmail: string;
310
569
  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<{
570
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
312
571
  newEmail: string;
313
572
  callbackURL?: string | undefined;
314
573
  } & {
@@ -324,7 +583,7 @@ declare const authClient: {} & {
324
583
  newPassword: string;
325
584
  currentPassword: string;
326
585
  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<{
586
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
328
587
  newPassword: string;
329
588
  currentPassword: string;
330
589
  revokeOtherSessions?: boolean | undefined;
@@ -348,8 +607,8 @@ declare const authClient: {} & {
348
607
  } & {
349
608
  updateUser: <FetchOptions extends better_auth.ClientFetchOption<Partial<Partial<{}> & {
350
609
  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<{
610
+ image?: string | undefined | null;
611
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
353
612
  image?: (string | null) | undefined;
354
613
  name?: string | undefined;
355
614
  fetchOptions?: FetchOptions | undefined;
@@ -369,7 +628,7 @@ declare const authClient: {} & {
369
628
  callbackURL?: string | undefined;
370
629
  password?: string | undefined;
371
630
  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<{
631
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
373
632
  callbackURL?: string | undefined;
374
633
  password?: string | undefined;
375
634
  token?: string | undefined;
@@ -386,7 +645,7 @@ declare const authClient: {} & {
386
645
  requestPasswordReset: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
387
646
  email: string;
388
647
  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<{
648
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
390
649
  email: string;
391
650
  redirectTo?: string | undefined;
392
651
  } & {
@@ -404,7 +663,7 @@ declare const authClient: {} & {
404
663
  callbackURL: string;
405
664
  }> & Record<string, any>, {
406
665
  token: string;
407
- }>>(data_0: better_auth_client_plugins.Prettify<{
666
+ }>>(data_0: better_auth.Prettify<{
408
667
  query: {
409
668
  callbackURL: string;
410
669
  };
@@ -415,10 +674,10 @@ declare const authClient: {} & {
415
674
  }, FetchOptions["throw"] extends true ? true : false>>;
416
675
  };
417
676
  } & {
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<{
677
+ listSessions: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
419
678
  query?: Record<string, any> | undefined;
420
679
  fetchOptions?: FetchOptions | undefined;
421
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<better_auth_client_plugins.Prettify<{
680
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<better_auth.Prettify<{
422
681
  id: string;
423
682
  createdAt: Date;
424
683
  updatedAt: Date;
@@ -434,7 +693,7 @@ declare const authClient: {} & {
434
693
  } & {
435
694
  revokeSession: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
436
695
  token: string;
437
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
696
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
438
697
  token: string;
439
698
  } & {
440
699
  fetchOptions?: FetchOptions | undefined;
@@ -445,7 +704,7 @@ declare const authClient: {} & {
445
704
  message?: string | undefined;
446
705
  }, FetchOptions["throw"] extends true ? true : false>>;
447
706
  } & {
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<{
707
+ revokeSessions: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
449
708
  query?: Record<string, any> | undefined;
450
709
  fetchOptions?: FetchOptions | undefined;
451
710
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<{
@@ -455,7 +714,7 @@ declare const authClient: {} & {
455
714
  message?: string | undefined;
456
715
  }, FetchOptions["throw"] extends true ? true : false>>;
457
716
  } & {
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<{
717
+ revokeOtherSessions: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
459
718
  query?: Record<string, any> | undefined;
460
719
  fetchOptions?: FetchOptions | undefined;
461
720
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<{
@@ -480,7 +739,7 @@ declare const authClient: {} & {
480
739
  errorCallbackURL?: string | undefined;
481
740
  disableRedirect?: boolean | undefined;
482
741
  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<{
742
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
484
743
  provider: unknown;
485
744
  callbackURL?: string | undefined;
486
745
  idToken?: {
@@ -505,7 +764,7 @@ declare const authClient: {} & {
505
764
  message?: string | undefined;
506
765
  }, FetchOptions["throw"] extends true ? true : false>>;
507
766
  } & {
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<{
767
+ listAccounts: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
509
768
  query?: Record<string, any> | undefined;
510
769
  fetchOptions?: FetchOptions | undefined;
511
770
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<{
@@ -525,7 +784,7 @@ declare const authClient: {} & {
525
784
  callback: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
526
785
  token: string;
527
786
  callbackURL?: string | undefined;
528
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
787
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
529
788
  query: {
530
789
  token: string;
531
790
  callbackURL?: string | undefined;
@@ -543,7 +802,7 @@ declare const authClient: {} & {
543
802
  unlinkAccount: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
544
803
  providerId: string;
545
804
  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<{
805
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
547
806
  providerId: string;
548
807
  accountId?: string | undefined;
549
808
  } & {
@@ -559,7 +818,7 @@ declare const authClient: {} & {
559
818
  providerId: string;
560
819
  accountId?: string | undefined;
561
820
  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<{
821
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
563
822
  providerId: string;
564
823
  accountId?: string | undefined;
565
824
  userId?: string | undefined;
@@ -583,7 +842,7 @@ declare const authClient: {} & {
583
842
  providerId: string;
584
843
  accountId?: string | undefined;
585
844
  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<{
845
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
587
846
  providerId: string;
588
847
  accountId?: string | undefined;
589
848
  userId?: string | undefined;
@@ -601,7 +860,7 @@ declare const authClient: {} & {
601
860
  } & {
602
861
  accountInfo: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
603
862
  accountId?: string | undefined;
604
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
863
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
605
864
  query?: {
606
865
  accountId?: string | undefined;
607
866
  } | undefined;
@@ -617,7 +876,7 @@ declare const authClient: {} & {
617
876
  getSession: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
618
877
  disableCookieCache?: unknown;
619
878
  disableRefresh?: unknown;
620
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
879
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
621
880
  query?: {
622
881
  disableCookieCache?: unknown;
623
882
  disableRefresh?: unknown;
@@ -661,7 +920,7 @@ declare const authClient: {} & {
661
920
  }, FetchOptions["throw"] extends true ? true : false>>;
662
921
  } & {
663
922
  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<{
923
+ anonymous: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
665
924
  query?: Record<string, any> | undefined;
666
925
  fetchOptions?: FetchOptions | undefined;
667
926
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<{
@@ -685,7 +944,7 @@ declare const authClient: {} & {
685
944
  email: string;
686
945
  type: "sign-in" | "email-verification" | "forget-password";
687
946
  otp: string;
688
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
947
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
689
948
  email: string;
690
949
  type: "sign-in" | "email-verification" | "forget-password";
691
950
  otp: string;
@@ -703,7 +962,7 @@ declare const authClient: {} & {
703
962
  verifyEmail: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
704
963
  email: string;
705
964
  otp: string;
706
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
965
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
707
966
  email: string;
708
967
  otp: string;
709
968
  } & {
@@ -742,7 +1001,7 @@ declare const authClient: {} & {
742
1001
  emailOtp: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
743
1002
  email: string;
744
1003
  otp: string;
745
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1004
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
746
1005
  email: string;
747
1006
  otp: string;
748
1007
  } & {
@@ -767,7 +1026,7 @@ declare const authClient: {} & {
767
1026
  forgetPassword: {
768
1027
  emailOtp: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
769
1028
  email: string;
770
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1029
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
771
1030
  email: string;
772
1031
  } & {
773
1032
  fetchOptions?: FetchOptions | undefined;
@@ -784,7 +1043,7 @@ declare const authClient: {} & {
784
1043
  email: string;
785
1044
  otp: string;
786
1045
  password: string;
787
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1046
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
788
1047
  email: string;
789
1048
  otp: string;
790
1049
  password: string;
@@ -802,7 +1061,7 @@ declare const authClient: {} & {
802
1061
  sendVerificationOtp: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
803
1062
  email: string;
804
1063
  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<{
1064
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
806
1065
  email: string;
807
1066
  type: "sign-in" | "email-verification" | "forget-password";
808
1067
  } & {
@@ -822,7 +1081,7 @@ declare const authClient: {} & {
822
1081
  callbackURL?: string | undefined;
823
1082
  newUserCallbackURL?: string | undefined;
824
1083
  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<{
1084
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
826
1085
  email: string;
827
1086
  name?: string | undefined;
828
1087
  callbackURL?: string | undefined;
@@ -844,7 +1103,7 @@ declare const authClient: {} & {
844
1103
  callbackURL?: string | undefined;
845
1104
  errorCallbackURL?: string | undefined;
846
1105
  newUserCallbackURL?: string | undefined;
847
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1106
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
848
1107
  query: {
849
1108
  token: string;
850
1109
  callbackURL?: string | undefined;
@@ -879,7 +1138,7 @@ declare const authClient: {} & {
879
1138
  scopes?: string[] | undefined;
880
1139
  requestSignUp?: boolean | undefined;
881
1140
  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<{
1141
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
883
1142
  providerId: string;
884
1143
  callbackURL?: string | undefined;
885
1144
  errorCallbackURL?: string | undefined;
@@ -898,30 +1157,6 @@ declare const authClient: {} & {
898
1157
  message?: string | undefined;
899
1158
  }, FetchOptions["throw"] extends true ? true : false>>;
900
1159
  };
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
- };
924
- };
925
1160
  } & {
926
1161
  oauth2: {
927
1162
  link: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
@@ -929,7 +1164,7 @@ declare const authClient: {} & {
929
1164
  callbackURL: string;
930
1165
  scopes?: string[] | undefined;
931
1166
  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<{
1167
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
933
1168
  providerId: string;
934
1169
  callbackURL: string;
935
1170
  scopes?: string[] | undefined;
@@ -949,7 +1184,7 @@ declare const authClient: {} & {
949
1184
  generateRegisterOptions: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
950
1185
  authenticatorAttachment?: "platform" | "cross-platform" | undefined;
951
1186
  name?: string | undefined;
952
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
1187
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
953
1188
  query?: {
954
1189
  authenticatorAttachment?: "platform" | "cross-platform" | undefined;
955
1190
  name?: string | undefined;
@@ -962,7 +1197,7 @@ declare const authClient: {} & {
962
1197
  };
963
1198
  } & {
964
1199
  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<{
1200
+ generateAuthenticateOptions: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
966
1201
  query?: Record<string, any> | undefined;
967
1202
  fetchOptions?: FetchOptions | undefined;
968
1203
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<_simplewebauthn_server.PublicKeyCredentialRequestOptionsJSON, {
@@ -975,12 +1210,12 @@ declare const authClient: {} & {
975
1210
  verifyRegistration: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
976
1211
  response: any;
977
1212
  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<{
1213
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
979
1214
  response: any;
980
1215
  name?: string | undefined;
981
1216
  } & {
982
1217
  fetchOptions?: FetchOptions | undefined;
983
- }>, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<node_modules__better_auth_passkey_dist_index_BosVYrMJ_mjs.n, {
1218
+ }>, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<Passkey, {
984
1219
  code?: string | undefined;
985
1220
  message?: string | undefined;
986
1221
  }, FetchOptions["throw"] extends true ? true : false>>;
@@ -989,7 +1224,7 @@ declare const authClient: {} & {
989
1224
  passkey: {
990
1225
  verifyAuthentication: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
991
1226
  response: AuthenticationResponseJSON;
992
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1227
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
993
1228
  response: AuthenticationResponseJSON;
994
1229
  } & {
995
1230
  fetchOptions?: FetchOptions | undefined;
@@ -1011,10 +1246,10 @@ declare const authClient: {} & {
1011
1246
  };
1012
1247
  } & {
1013
1248
  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<{
1249
+ listUserPasskeys: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
1015
1250
  query?: Record<string, any> | undefined;
1016
1251
  fetchOptions?: FetchOptions | undefined;
1017
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<node_modules__better_auth_passkey_dist_index_BosVYrMJ_mjs.n[], {
1252
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<Passkey[], {
1018
1253
  code?: string | undefined;
1019
1254
  message?: string | undefined;
1020
1255
  }, FetchOptions["throw"] extends true ? true : false>>;
@@ -1023,11 +1258,13 @@ declare const authClient: {} & {
1023
1258
  passkey: {
1024
1259
  deletePasskey: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1025
1260
  id: string;
1026
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1261
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1027
1262
  id: string;
1028
1263
  } & {
1029
1264
  fetchOptions?: FetchOptions | undefined;
1030
- }>, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<never, {
1265
+ }>, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<{
1266
+ status: boolean;
1267
+ }, {
1031
1268
  code?: string | undefined;
1032
1269
  message?: string | undefined;
1033
1270
  }, FetchOptions["throw"] extends true ? true : false>>;
@@ -1037,13 +1274,13 @@ declare const authClient: {} & {
1037
1274
  updatePasskey: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1038
1275
  id: string;
1039
1276
  name: string;
1040
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1277
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1041
1278
  id: string;
1042
1279
  name: string;
1043
1280
  } & {
1044
1281
  fetchOptions?: FetchOptions | undefined;
1045
1282
  }>, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<{
1046
- passkey: node_modules__better_auth_passkey_dist_index_BosVYrMJ_mjs.n;
1283
+ passkey: Passkey;
1047
1284
  }, {
1048
1285
  code?: string | undefined;
1049
1286
  message?: string | undefined;
@@ -1055,7 +1292,7 @@ declare const authClient: {} & {
1055
1292
  phoneNumber: string;
1056
1293
  password: string;
1057
1294
  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<{
1295
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1059
1296
  phoneNumber: string;
1060
1297
  password: string;
1061
1298
  rememberMe?: boolean | undefined;
@@ -1063,7 +1300,7 @@ declare const authClient: {} & {
1063
1300
  fetchOptions?: FetchOptions | undefined;
1064
1301
  }>, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<{
1065
1302
  token: string;
1066
- user: node_modules_better_auth_dist_index_CfImj7fH_mjs.r;
1303
+ user: better_auth_client_plugins.UserWithPhoneNumber;
1067
1304
  }, {
1068
1305
  code?: string | undefined;
1069
1306
  message?: string | undefined;
@@ -1073,7 +1310,7 @@ declare const authClient: {} & {
1073
1310
  phoneNumber: {
1074
1311
  sendOtp: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1075
1312
  phoneNumber: string;
1076
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1313
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1077
1314
  phoneNumber: string;
1078
1315
  } & {
1079
1316
  fetchOptions?: FetchOptions | undefined;
@@ -1091,7 +1328,7 @@ declare const authClient: {} & {
1091
1328
  code: string;
1092
1329
  disableSession?: boolean | undefined;
1093
1330
  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<{
1331
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1095
1332
  phoneNumber: string;
1096
1333
  code: string;
1097
1334
  disableSession?: boolean | undefined;
@@ -1101,11 +1338,11 @@ declare const authClient: {} & {
1101
1338
  }>, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<NonNullable<{
1102
1339
  status: boolean;
1103
1340
  token: string;
1104
- user: node_modules_better_auth_dist_index_CfImj7fH_mjs.r;
1341
+ user: better_auth_client_plugins.UserWithPhoneNumber;
1105
1342
  } | {
1106
1343
  status: boolean;
1107
1344
  token: null;
1108
- user: node_modules_better_auth_dist_index_CfImj7fH_mjs.r;
1345
+ user: better_auth_client_plugins.UserWithPhoneNumber;
1109
1346
  }>, {
1110
1347
  code?: string | undefined;
1111
1348
  message?: string | undefined;
@@ -1115,7 +1352,7 @@ declare const authClient: {} & {
1115
1352
  phoneNumber: {
1116
1353
  requestPasswordReset: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1117
1354
  phoneNumber: string;
1118
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1355
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1119
1356
  phoneNumber: string;
1120
1357
  } & {
1121
1358
  fetchOptions?: FetchOptions | undefined;
@@ -1132,7 +1369,7 @@ declare const authClient: {} & {
1132
1369
  otp: string;
1133
1370
  phoneNumber: string;
1134
1371
  newPassword: string;
1135
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1372
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1136
1373
  otp: string;
1137
1374
  phoneNumber: string;
1138
1375
  newPassword: string;
@@ -1150,7 +1387,7 @@ declare const authClient: {} & {
1150
1387
  enable: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1151
1388
  password: string;
1152
1389
  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<{
1390
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1154
1391
  password: string;
1155
1392
  issuer?: string | undefined;
1156
1393
  } & {
@@ -1167,7 +1404,7 @@ declare const authClient: {} & {
1167
1404
  twoFactor: {
1168
1405
  disable: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1169
1406
  password: string;
1170
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1407
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1171
1408
  password: string;
1172
1409
  } & {
1173
1410
  fetchOptions?: FetchOptions | undefined;
@@ -1184,7 +1421,7 @@ declare const authClient: {} & {
1184
1421
  code: string;
1185
1422
  disableSession?: boolean | undefined;
1186
1423
  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<{
1424
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1188
1425
  code: string;
1189
1426
  disableSession?: boolean | undefined;
1190
1427
  trustDevice?: boolean | undefined;
@@ -1210,7 +1447,7 @@ declare const authClient: {} & {
1210
1447
  twoFactor: {
1211
1448
  generateBackupCodes: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1212
1449
  password: string;
1213
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1450
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1214
1451
  password: string;
1215
1452
  } & {
1216
1453
  fetchOptions?: FetchOptions | undefined;
@@ -1226,7 +1463,7 @@ declare const authClient: {} & {
1226
1463
  twoFactor: {
1227
1464
  sendOtp: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1228
1465
  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<{
1466
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
1230
1467
  query?: Record<string, any> | undefined;
1231
1468
  fetchOptions?: FetchOptions | undefined;
1232
1469
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<{
@@ -1241,7 +1478,7 @@ declare const authClient: {} & {
1241
1478
  verifyOtp: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1242
1479
  code: string;
1243
1480
  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<{
1481
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1245
1482
  code: string;
1246
1483
  trustDevice?: boolean | undefined;
1247
1484
  } & {
@@ -1266,7 +1503,7 @@ declare const authClient: {} & {
1266
1503
  twoFactor: {
1267
1504
  getTotpUri: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1268
1505
  password: string;
1269
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1506
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1270
1507
  password: string;
1271
1508
  } & {
1272
1509
  fetchOptions?: FetchOptions | undefined;
@@ -1282,7 +1519,7 @@ declare const authClient: {} & {
1282
1519
  verifyTotp: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1283
1520
  code: string;
1284
1521
  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<{
1522
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1286
1523
  code: string;
1287
1524
  trustDevice?: boolean | undefined;
1288
1525
  } & {
@@ -1310,7 +1547,7 @@ declare const authClient: {} & {
1310
1547
  password: string;
1311
1548
  rememberMe?: boolean | undefined;
1312
1549
  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<{
1550
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1314
1551
  username: string;
1315
1552
  password: string;
1316
1553
  rememberMe?: boolean | undefined;
@@ -1338,7 +1575,7 @@ declare const authClient: {} & {
1338
1575
  } & {
1339
1576
  isUsernameAvailable: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1340
1577
  username: string;
1341
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1578
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1342
1579
  username: string;
1343
1580
  } & {
1344
1581
  fetchOptions?: FetchOptions | undefined;
@@ -1353,13 +1590,13 @@ declare const authClient: {} & {
1353
1590
  setRole: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1354
1591
  userId: string;
1355
1592
  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<{
1593
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1357
1594
  userId: string;
1358
1595
  role: "user" | "admin" | ("user" | "admin")[];
1359
1596
  } & {
1360
1597
  fetchOptions?: FetchOptions | undefined;
1361
1598
  }>, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<{
1362
- user: node_modules_better_auth_dist_index_BLP8lbCx_mjs.yt;
1599
+ user: better_auth_client_plugins.UserWithRole;
1363
1600
  }, {
1364
1601
  code?: string | undefined;
1365
1602
  message?: string | undefined;
@@ -1369,7 +1606,7 @@ declare const authClient: {} & {
1369
1606
  admin: {
1370
1607
  getUser: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
1371
1608
  id: string;
1372
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1609
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1373
1610
  query: {
1374
1611
  id: string;
1375
1612
  };
@@ -1395,7 +1632,7 @@ declare const authClient: {} & {
1395
1632
  name: string;
1396
1633
  role?: "user" | "admin" | ("user" | "admin")[] | undefined;
1397
1634
  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<{
1635
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1399
1636
  email: string;
1400
1637
  password: string;
1401
1638
  name: string;
@@ -1404,7 +1641,7 @@ declare const authClient: {} & {
1404
1641
  } & {
1405
1642
  fetchOptions?: FetchOptions | undefined;
1406
1643
  }>, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<{
1407
- user: node_modules_better_auth_dist_index_BLP8lbCx_mjs.yt;
1644
+ user: better_auth_client_plugins.UserWithRole;
1408
1645
  }, {
1409
1646
  code?: string | undefined;
1410
1647
  message?: string | undefined;
@@ -1415,12 +1652,12 @@ declare const authClient: {} & {
1415
1652
  updateUser: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1416
1653
  userId: unknown;
1417
1654
  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<{
1655
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1419
1656
  userId: unknown;
1420
1657
  data: Record<any, any>;
1421
1658
  } & {
1422
1659
  fetchOptions?: FetchOptions | undefined;
1423
- }>, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<node_modules_better_auth_dist_index_BLP8lbCx_mjs.yt, {
1660
+ }>, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<better_auth_client_plugins.UserWithRole, {
1424
1661
  code?: string | undefined;
1425
1662
  message?: string | undefined;
1426
1663
  }, FetchOptions["throw"] extends true ? true : false>>;
@@ -1429,7 +1666,7 @@ declare const authClient: {} & {
1429
1666
  admin: {
1430
1667
  listUsers: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
1431
1668
  searchValue?: string | undefined;
1432
- searchField?: "email" | "name" | undefined;
1669
+ searchField?: "name" | "email" | undefined;
1433
1670
  searchOperator?: "contains" | "starts_with" | "ends_with" | undefined;
1434
1671
  limit?: string | number | undefined;
1435
1672
  offset?: string | number | undefined;
@@ -1438,10 +1675,10 @@ declare const authClient: {} & {
1438
1675
  filterField?: string | undefined;
1439
1676
  filterValue?: string | number | boolean | undefined;
1440
1677
  filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
1441
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1678
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1442
1679
  query: {
1443
1680
  searchValue?: string | undefined;
1444
- searchField?: "email" | "name" | undefined;
1681
+ searchField?: "name" | "email" | undefined;
1445
1682
  searchOperator?: "contains" | "starts_with" | "ends_with" | undefined;
1446
1683
  limit?: string | number | undefined;
1447
1684
  offset?: string | number | undefined;
@@ -1453,7 +1690,7 @@ declare const authClient: {} & {
1453
1690
  };
1454
1691
  fetchOptions?: FetchOptions | undefined;
1455
1692
  }>, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<NonNullable<{
1456
- users: node_modules_better_auth_dist_index_BLP8lbCx_mjs.yt[];
1693
+ users: better_auth_client_plugins.UserWithRole[];
1457
1694
  total: number;
1458
1695
  limit: number | undefined;
1459
1696
  offset: number | undefined;
@@ -1469,12 +1706,12 @@ declare const authClient: {} & {
1469
1706
  admin: {
1470
1707
  listUserSessions: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1471
1708
  userId: unknown;
1472
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1709
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1473
1710
  userId: unknown;
1474
1711
  } & {
1475
1712
  fetchOptions?: FetchOptions | undefined;
1476
1713
  }>, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<{
1477
- sessions: node_modules_better_auth_dist_index_BLP8lbCx_mjs.vt[];
1714
+ sessions: better_auth_client_plugins.SessionWithImpersonatedBy[];
1478
1715
  }, {
1479
1716
  code?: string | undefined;
1480
1717
  message?: string | undefined;
@@ -1484,7 +1721,7 @@ declare const authClient: {} & {
1484
1721
  admin: {
1485
1722
  unbanUser: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1486
1723
  userId: unknown;
1487
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1724
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1488
1725
  userId: unknown;
1489
1726
  } & {
1490
1727
  fetchOptions?: FetchOptions | undefined;
@@ -1509,7 +1746,7 @@ declare const authClient: {} & {
1509
1746
  userId: unknown;
1510
1747
  banReason?: string | undefined;
1511
1748
  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<{
1749
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1513
1750
  userId: unknown;
1514
1751
  banReason?: string | undefined;
1515
1752
  banExpiresIn?: number | undefined;
@@ -1534,7 +1771,7 @@ declare const authClient: {} & {
1534
1771
  admin: {
1535
1772
  impersonateUser: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1536
1773
  userId: unknown;
1537
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1774
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1538
1775
  userId: unknown;
1539
1776
  } & {
1540
1777
  fetchOptions?: FetchOptions | undefined;
@@ -1565,7 +1802,7 @@ declare const authClient: {} & {
1565
1802
  };
1566
1803
  } & {
1567
1804
  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<{
1805
+ stopImpersonating: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
1569
1806
  query?: Record<string, any> | undefined;
1570
1807
  fetchOptions?: FetchOptions | undefined;
1571
1808
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<{
@@ -1580,7 +1817,7 @@ declare const authClient: {} & {
1580
1817
  admin: {
1581
1818
  revokeUserSession: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1582
1819
  sessionToken: string;
1583
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1820
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1584
1821
  sessionToken: string;
1585
1822
  } & {
1586
1823
  fetchOptions?: FetchOptions | undefined;
@@ -1595,7 +1832,7 @@ declare const authClient: {} & {
1595
1832
  admin: {
1596
1833
  revokeUserSessions: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1597
1834
  userId: unknown;
1598
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1835
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1599
1836
  userId: unknown;
1600
1837
  } & {
1601
1838
  fetchOptions?: FetchOptions | undefined;
@@ -1610,7 +1847,7 @@ declare const authClient: {} & {
1610
1847
  admin: {
1611
1848
  removeUser: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1612
1849
  userId: unknown;
1613
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1850
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1614
1851
  userId: unknown;
1615
1852
  } & {
1616
1853
  fetchOptions?: FetchOptions | undefined;
@@ -1626,7 +1863,7 @@ declare const authClient: {} & {
1626
1863
  setUserPassword: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1627
1864
  newPassword: string;
1628
1865
  userId: unknown;
1629
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1866
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1630
1867
  newPassword: string;
1631
1868
  userId: unknown;
1632
1869
  } & {
@@ -1642,28 +1879,28 @@ declare const authClient: {} & {
1642
1879
  admin: {
1643
1880
  hasPermission: <FetchOptions extends better_auth.ClientFetchOption<Partial<({
1644
1881
  permission: {
1645
- readonly user?: ("set-password" | "update" | "delete" | "list" | "get" | "create" | "set-role" | "ban" | "impersonate")[] | undefined;
1882
+ readonly user?: ("delete" | "get" | "set-password" | "update" | "list" | "create" | "set-role" | "ban" | "impersonate")[] | undefined;
1646
1883
  readonly session?: ("delete" | "list" | "revoke")[] | undefined;
1647
1884
  };
1648
1885
  permissions?: never | undefined;
1649
1886
  } | {
1650
1887
  permissions: {
1651
- readonly user?: ("set-password" | "update" | "delete" | "list" | "get" | "create" | "set-role" | "ban" | "impersonate")[] | undefined;
1888
+ readonly user?: ("delete" | "get" | "set-password" | "update" | "list" | "create" | "set-role" | "ban" | "impersonate")[] | undefined;
1652
1889
  readonly session?: ("delete" | "list" | "revoke")[] | undefined;
1653
1890
  };
1654
1891
  permission?: never | undefined;
1655
1892
  }) & {
1656
1893
  userId?: string | undefined;
1657
1894
  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<(({
1895
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<(({
1659
1896
  permission: {
1660
- readonly user?: ("set-password" | "update" | "delete" | "list" | "get" | "create" | "set-role" | "ban" | "impersonate")[] | undefined;
1897
+ readonly user?: ("delete" | "get" | "set-password" | "update" | "list" | "create" | "set-role" | "ban" | "impersonate")[] | undefined;
1661
1898
  readonly session?: ("delete" | "list" | "revoke")[] | undefined;
1662
1899
  };
1663
1900
  permissions?: never | undefined;
1664
1901
  } | {
1665
1902
  permissions: {
1666
- readonly user?: ("set-password" | "update" | "delete" | "list" | "get" | "create" | "set-role" | "ban" | "impersonate")[] | undefined;
1903
+ readonly user?: ("delete" | "get" | "set-password" | "update" | "list" | "create" | "set-role" | "ban" | "impersonate")[] | undefined;
1667
1904
  readonly session?: ("delete" | "list" | "revoke")[] | undefined;
1668
1905
  };
1669
1906
  permission?: never | undefined;
@@ -1695,7 +1932,7 @@ declare const authClient: {} & {
1695
1932
  rateLimitMax?: number | undefined;
1696
1933
  rateLimitEnabled?: boolean | undefined;
1697
1934
  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<{
1935
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
1699
1936
  name?: string | undefined;
1700
1937
  expiresIn?: number | null | undefined;
1701
1938
  userId?: unknown;
@@ -1741,7 +1978,7 @@ declare const authClient: {} & {
1741
1978
  apiKey: {
1742
1979
  get: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
1743
1980
  id: string;
1744
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1981
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1745
1982
  query: {
1746
1983
  id: string;
1747
1984
  };
@@ -1790,7 +2027,7 @@ declare const authClient: {} & {
1790
2027
  rateLimitTimeWindow?: number | undefined;
1791
2028
  rateLimitMax?: number | undefined;
1792
2029
  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<{
2030
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1794
2031
  keyId: string;
1795
2032
  userId?: unknown;
1796
2033
  name?: string | undefined;
@@ -1838,7 +2075,7 @@ declare const authClient: {} & {
1838
2075
  apiKey: {
1839
2076
  delete: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1840
2077
  keyId: string;
1841
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
2078
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1842
2079
  keyId: string;
1843
2080
  } & {
1844
2081
  fetchOptions?: FetchOptions | undefined;
@@ -1851,7 +2088,7 @@ declare const authClient: {} & {
1851
2088
  };
1852
2089
  } & {
1853
2090
  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<{
2091
+ list: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
1855
2092
  query?: Record<string, any> | undefined;
1856
2093
  fetchOptions?: FetchOptions | undefined;
1857
2094
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<{
@@ -1891,7 +2128,7 @@ declare const authClient: {} & {
1891
2128
  logo?: string | undefined;
1892
2129
  metadata?: Record<string, any> | undefined;
1893
2130
  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<{
2131
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1895
2132
  name: string;
1896
2133
  slug: string;
1897
2134
  userId?: string | undefined;
@@ -1931,7 +2168,7 @@ declare const authClient: {} & {
1931
2168
  metadata?: Record<string, any> | undefined;
1932
2169
  } & Partial<{}>;
1933
2170
  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<{
2171
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1935
2172
  data: {
1936
2173
  name?: string | undefined;
1937
2174
  slug?: string | undefined;
@@ -1959,7 +2196,7 @@ declare const authClient: {} & {
1959
2196
  organization: {
1960
2197
  delete: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1961
2198
  organizationId: string;
1962
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
2199
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1963
2200
  organizationId: string;
1964
2201
  } & {
1965
2202
  fetchOptions?: FetchOptions | undefined;
@@ -1980,7 +2217,7 @@ declare const authClient: {} & {
1980
2217
  setActive: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1981
2218
  organizationId?: string | null | undefined;
1982
2219
  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<{
2220
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
1984
2221
  organizationId?: string | null | undefined;
1985
2222
  organizationSlug?: string | undefined;
1986
2223
  } & {
@@ -2027,7 +2264,7 @@ declare const authClient: {} & {
2027
2264
  organizationId?: string | undefined;
2028
2265
  organizationSlug?: string | undefined;
2029
2266
  membersLimit?: string | number | undefined;
2030
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
2267
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
2031
2268
  query?: {
2032
2269
  organizationId?: string | undefined;
2033
2270
  organizationSlug?: string | undefined;
@@ -2072,7 +2309,7 @@ declare const authClient: {} & {
2072
2309
  };
2073
2310
  } & {
2074
2311
  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<{
2312
+ list: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
2076
2313
  query?: Record<string, any> | undefined;
2077
2314
  fetchOptions?: FetchOptions | undefined;
2078
2315
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<{
@@ -2094,7 +2331,7 @@ declare const authClient: {} & {
2094
2331
  role: "admin" | "member" | "owner" | ("admin" | "member" | "owner")[];
2095
2332
  organizationId?: string | undefined;
2096
2333
  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<{
2334
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2098
2335
  email: string;
2099
2336
  role: "admin" | "member" | "owner" | ("admin" | "member" | "owner")[];
2100
2337
  organizationId?: string | undefined;
@@ -2119,7 +2356,7 @@ declare const authClient: {} & {
2119
2356
  organization: {
2120
2357
  cancelInvitation: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
2121
2358
  invitationId: string;
2122
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
2359
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2123
2360
  invitationId: string;
2124
2361
  } & {
2125
2362
  fetchOptions?: FetchOptions | undefined;
@@ -2141,7 +2378,7 @@ declare const authClient: {} & {
2141
2378
  organization: {
2142
2379
  acceptInvitation: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
2143
2380
  invitationId: string;
2144
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
2381
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2145
2382
  invitationId: string;
2146
2383
  } & {
2147
2384
  fetchOptions?: FetchOptions | undefined;
@@ -2172,7 +2409,7 @@ declare const authClient: {} & {
2172
2409
  organization: {
2173
2410
  getInvitation: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
2174
2411
  id: string;
2175
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
2412
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2176
2413
  query: {
2177
2414
  id: string;
2178
2415
  };
@@ -2199,7 +2436,7 @@ declare const authClient: {} & {
2199
2436
  organization: {
2200
2437
  rejectInvitation: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
2201
2438
  invitationId: string;
2202
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
2439
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2203
2440
  invitationId: string;
2204
2441
  } & {
2205
2442
  fetchOptions?: FetchOptions | undefined;
@@ -2208,7 +2445,7 @@ declare const authClient: {} & {
2208
2445
  id: string;
2209
2446
  organizationId: string;
2210
2447
  email: string;
2211
- role: "member" | "admin" | "owner";
2448
+ role: "admin" | "member" | "owner";
2212
2449
  status: better_auth_plugins_organization.InvitationStatus;
2213
2450
  inviterId: string;
2214
2451
  expiresAt: Date;
@@ -2224,7 +2461,7 @@ declare const authClient: {} & {
2224
2461
  organization: {
2225
2462
  listInvitations: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
2226
2463
  organizationId?: string | undefined;
2227
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
2464
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
2228
2465
  query?: {
2229
2466
  organizationId?: string | undefined;
2230
2467
  } | undefined;
@@ -2245,7 +2482,7 @@ declare const authClient: {} & {
2245
2482
  };
2246
2483
  } & {
2247
2484
  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<{
2485
+ getActiveMember: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
2249
2486
  query?: Record<string, any> | undefined;
2250
2487
  fetchOptions?: FetchOptions | undefined;
2251
2488
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<Omit<{
@@ -2278,7 +2515,7 @@ declare const authClient: {} & {
2278
2515
  organization: {
2279
2516
  checkSlug: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
2280
2517
  slug: string;
2281
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
2518
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2282
2519
  slug: string;
2283
2520
  } & {
2284
2521
  fetchOptions?: FetchOptions | undefined;
@@ -2294,7 +2531,7 @@ declare const authClient: {} & {
2294
2531
  removeMember: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
2295
2532
  memberIdOrEmail: string;
2296
2533
  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<{
2534
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2298
2535
  memberIdOrEmail: string;
2299
2536
  organizationId?: string | undefined;
2300
2537
  } & {
@@ -2321,11 +2558,11 @@ declare const authClient: {} & {
2321
2558
  } & {
2322
2559
  organization: {
2323
2560
  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[];
2561
+ role: better_auth.LiteralString | "admin" | "member" | "owner" | ("admin" | "member" | "owner")[] | better_auth.LiteralString[];
2325
2562
  memberId: string;
2326
2563
  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[];
2564
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2565
+ role: better_auth.LiteralString | "admin" | "member" | "owner" | ("admin" | "member" | "owner")[] | better_auth.LiteralString[];
2329
2566
  memberId: string;
2330
2567
  organizationId?: string | undefined;
2331
2568
  } & {
@@ -2333,7 +2570,7 @@ declare const authClient: {} & {
2333
2570
  }>, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<{
2334
2571
  id: string;
2335
2572
  organizationId: string;
2336
- role: "member" | "admin" | "owner";
2573
+ role: "admin" | "member" | "owner";
2337
2574
  createdAt: Date;
2338
2575
  userId: string;
2339
2576
  user: {
@@ -2351,7 +2588,7 @@ declare const authClient: {} & {
2351
2588
  organization: {
2352
2589
  leave: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
2353
2590
  organizationId: string;
2354
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
2591
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2355
2592
  organizationId: string;
2356
2593
  } & {
2357
2594
  fetchOptions?: FetchOptions | undefined;
@@ -2385,7 +2622,7 @@ declare const authClient: {} & {
2385
2622
  organization: {
2386
2623
  listUserInvitations: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
2387
2624
  email?: string | undefined;
2388
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
2625
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
2389
2626
  query?: {
2390
2627
  email?: string | undefined;
2391
2628
  } | undefined;
@@ -2416,7 +2653,7 @@ declare const authClient: {} & {
2416
2653
  filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
2417
2654
  organizationId?: string | undefined;
2418
2655
  organizationSlug?: string | undefined;
2419
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
2656
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
2420
2657
  query?: {
2421
2658
  limit?: string | number | undefined;
2422
2659
  offset?: string | number | undefined;
@@ -2462,7 +2699,7 @@ declare const authClient: {} & {
2462
2699
  userId?: string | undefined;
2463
2700
  organizationId?: string | undefined;
2464
2701
  organizationSlug?: string | undefined;
2465
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
2702
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
2466
2703
  query?: {
2467
2704
  userId?: string | undefined;
2468
2705
  organizationId?: string | undefined;
@@ -2480,40 +2717,40 @@ declare const authClient: {} & {
2480
2717
  organization: {
2481
2718
  hasPermission: <FetchOptions extends better_auth.ClientFetchOption<Partial<({
2482
2719
  permission: {
2483
- readonly organization?: ("update" | "delete")[] | undefined;
2484
- readonly member?: ("update" | "delete" | "create")[] | undefined;
2720
+ readonly organization?: ("delete" | "update")[] | undefined;
2721
+ readonly member?: ("delete" | "update" | "create")[] | undefined;
2485
2722
  readonly invitation?: ("create" | "cancel")[] | undefined;
2486
- readonly team?: ("update" | "delete" | "create")[] | undefined;
2487
- readonly ac?: ("update" | "delete" | "create" | "read")[] | undefined;
2723
+ readonly team?: ("delete" | "update" | "create")[] | undefined;
2724
+ readonly ac?: ("delete" | "update" | "create" | "read")[] | undefined;
2488
2725
  };
2489
2726
  permissions?: never | undefined;
2490
2727
  } | {
2491
2728
  permissions: {
2492
- readonly organization?: ("update" | "delete")[] | undefined;
2493
- readonly member?: ("update" | "delete" | "create")[] | undefined;
2729
+ readonly organization?: ("delete" | "update")[] | undefined;
2730
+ readonly member?: ("delete" | "update" | "create")[] | undefined;
2494
2731
  readonly invitation?: ("create" | "cancel")[] | undefined;
2495
- readonly team?: ("update" | "delete" | "create")[] | undefined;
2496
- readonly ac?: ("update" | "delete" | "create" | "read")[] | undefined;
2732
+ readonly team?: ("delete" | "update" | "create")[] | undefined;
2733
+ readonly ac?: ("delete" | "update" | "create" | "read")[] | undefined;
2497
2734
  };
2498
2735
  permission?: never | undefined;
2499
2736
  }) & {
2500
2737
  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<(({
2738
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<(({
2502
2739
  permission: {
2503
- readonly organization?: ("update" | "delete")[] | undefined;
2504
- readonly member?: ("update" | "delete" | "create")[] | undefined;
2740
+ readonly organization?: ("delete" | "update")[] | undefined;
2741
+ readonly member?: ("delete" | "update" | "create")[] | undefined;
2505
2742
  readonly invitation?: ("create" | "cancel")[] | undefined;
2506
- readonly team?: ("update" | "delete" | "create")[] | undefined;
2507
- readonly ac?: ("update" | "delete" | "create" | "read")[] | undefined;
2743
+ readonly team?: ("delete" | "update" | "create")[] | undefined;
2744
+ readonly ac?: ("delete" | "update" | "create" | "read")[] | undefined;
2508
2745
  };
2509
2746
  permissions?: never | undefined;
2510
2747
  } | {
2511
2748
  permissions: {
2512
- readonly organization?: ("update" | "delete")[] | undefined;
2513
- readonly member?: ("update" | "delete" | "create")[] | undefined;
2749
+ readonly organization?: ("delete" | "update")[] | undefined;
2750
+ readonly member?: ("delete" | "update" | "create")[] | undefined;
2514
2751
  readonly invitation?: ("create" | "cancel")[] | undefined;
2515
- readonly team?: ("update" | "delete" | "create")[] | undefined;
2516
- readonly ac?: ("update" | "delete" | "create" | "read")[] | undefined;
2752
+ readonly team?: ("delete" | "update" | "create")[] | undefined;
2753
+ readonly ac?: ("delete" | "update" | "create" | "read")[] | undefined;
2517
2754
  };
2518
2755
  permission?: never | undefined;
2519
2756
  }) & {
@@ -2533,7 +2770,7 @@ declare const authClient: {} & {
2533
2770
  code: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
2534
2771
  client_id: string;
2535
2772
  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<{
2773
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2537
2774
  client_id: string;
2538
2775
  scope?: string | undefined;
2539
2776
  } & {
@@ -2556,7 +2793,7 @@ declare const authClient: {} & {
2556
2793
  grant_type: "urn:ietf:params:oauth:grant-type:device_code";
2557
2794
  device_code: string;
2558
2795
  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<{
2796
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2560
2797
  grant_type: "urn:ietf:params:oauth:grant-type:device_code";
2561
2798
  device_code: string;
2562
2799
  client_id: string;
@@ -2575,7 +2812,7 @@ declare const authClient: {} & {
2575
2812
  } & {
2576
2813
  device: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
2577
2814
  user_code: string;
2578
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
2815
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2579
2816
  query: {
2580
2817
  user_code: string;
2581
2818
  };
@@ -2591,7 +2828,7 @@ declare const authClient: {} & {
2591
2828
  device: {
2592
2829
  approve: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
2593
2830
  userCode: string;
2594
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
2831
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2595
2832
  userCode: string;
2596
2833
  } & {
2597
2834
  fetchOptions?: FetchOptions | undefined;
@@ -2606,7 +2843,7 @@ declare const authClient: {} & {
2606
2843
  device: {
2607
2844
  deny: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
2608
2845
  userCode: string;
2609
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
2846
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2610
2847
  userCode: string;
2611
2848
  } & {
2612
2849
  fetchOptions?: FetchOptions | undefined;
@@ -2619,7 +2856,7 @@ declare const authClient: {} & {
2619
2856
  };
2620
2857
  } & {
2621
2858
  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<{
2859
+ listDeviceSessions: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
2623
2860
  query?: Record<string, any> | undefined;
2624
2861
  fetchOptions?: FetchOptions | undefined;
2625
2862
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<{
@@ -2634,7 +2871,7 @@ declare const authClient: {} & {
2634
2871
  multiSession: {
2635
2872
  setActive: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
2636
2873
  sessionToken: string;
2637
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
2874
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2638
2875
  sessionToken: string;
2639
2876
  } & {
2640
2877
  fetchOptions?: FetchOptions | undefined;
@@ -2650,7 +2887,7 @@ declare const authClient: {} & {
2650
2887
  multiSession: {
2651
2888
  revoke: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
2652
2889
  sessionToken: string;
2653
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
2890
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2654
2891
  sessionToken: string;
2655
2892
  } & {
2656
2893
  fetchOptions?: FetchOptions | undefined;
@@ -2705,7 +2942,7 @@ declare const authClient: {} & {
2705
2942
  statusText: string;
2706
2943
  };
2707
2944
  } | {
2708
- data: node_modules__better_auth_passkey_dist_index_BosVYrMJ_mjs.n;
2945
+ data: Passkey;
2709
2946
  error: null;
2710
2947
  } | {
2711
2948
  data: null;
@@ -2718,19 +2955,19 @@ declare const authClient: {} & {
2718
2955
  }>;
2719
2956
  };
2720
2957
  $Infer: {
2721
- Passkey: node_modules__better_auth_passkey_dist_index_BosVYrMJ_mjs.n;
2958
+ Passkey: Passkey;
2722
2959
  };
2723
2960
  } & {
2724
2961
  admin: {
2725
2962
  checkRolePermission: <R extends "user" | "admin">(data: ({
2726
2963
  permission: {
2727
- readonly user?: ("set-password" | "update" | "delete" | "list" | "get" | "create" | "set-role" | "ban" | "impersonate")[] | undefined;
2964
+ readonly user?: ("delete" | "get" | "set-password" | "update" | "list" | "create" | "set-role" | "ban" | "impersonate")[] | undefined;
2728
2965
  readonly session?: ("delete" | "list" | "revoke")[] | undefined;
2729
2966
  };
2730
2967
  permissions?: never | undefined;
2731
2968
  } | {
2732
2969
  permissions: {
2733
- readonly user?: ("set-password" | "update" | "delete" | "list" | "get" | "create" | "set-role" | "ban" | "impersonate")[] | undefined;
2970
+ readonly user?: ("delete" | "get" | "set-password" | "update" | "list" | "create" | "set-role" | "ban" | "impersonate")[] | undefined;
2734
2971
  readonly session?: ("delete" | "list" | "revoke")[] | undefined;
2735
2972
  };
2736
2973
  permission?: never | undefined;
@@ -2814,20 +3051,20 @@ declare const authClient: {} & {
2814
3051
  organization: {
2815
3052
  checkRolePermission: <R extends "admin" | "member" | "owner">(data: ({
2816
3053
  permission: {
2817
- readonly organization?: ("update" | "delete")[] | undefined;
2818
- readonly member?: ("update" | "delete" | "create")[] | undefined;
3054
+ readonly organization?: ("delete" | "update")[] | undefined;
3055
+ readonly member?: ("delete" | "update" | "create")[] | undefined;
2819
3056
  readonly invitation?: ("create" | "cancel")[] | undefined;
2820
- readonly team?: ("update" | "delete" | "create")[] | undefined;
2821
- readonly ac?: ("update" | "delete" | "create" | "read")[] | undefined;
3057
+ readonly team?: ("delete" | "update" | "create")[] | undefined;
3058
+ readonly ac?: ("delete" | "update" | "create" | "read")[] | undefined;
2822
3059
  };
2823
3060
  permissions?: never | undefined;
2824
3061
  } | {
2825
3062
  permissions: {
2826
- readonly organization?: ("update" | "delete")[] | undefined;
2827
- readonly member?: ("update" | "delete" | "create")[] | undefined;
3063
+ readonly organization?: ("delete" | "update")[] | undefined;
3064
+ readonly member?: ("delete" | "update" | "create")[] | undefined;
2828
3065
  readonly invitation?: ("create" | "cancel")[] | undefined;
2829
- readonly team?: ("update" | "delete" | "create")[] | undefined;
2830
- readonly ac?: ("update" | "delete" | "create" | "read")[] | undefined;
3066
+ readonly team?: ("delete" | "update" | "create")[] | undefined;
3067
+ readonly ac?: ("delete" | "update" | "create" | "read")[] | undefined;
2831
3068
  };
2832
3069
  permission?: never | undefined;
2833
3070
  }) & {
@@ -2922,12 +3159,6 @@ declare const authClient: {} & {
2922
3159
  hooks: {
2923
3160
  onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
2924
3161
  };
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
3162
  } | {
2932
3163
  id: string;
2933
3164
  name: string;
@@ -2993,9 +3224,163 @@ declare const authClient: {} & {
2993
3224
  atoms: Record<string, better_auth_react.WritableAtom<any>>;
2994
3225
  };
2995
3226
  $ERROR_CODES: {
2996
- readonly USER_NOT_FOUND: "User not found";
2997
3227
  readonly FAILED_TO_CREATE_USER: "Failed to create user";
3228
+ readonly USER_ALREADY_EXISTS: "User already exists.";
3229
+ readonly USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL: "User already exists. Use another email.";
3230
+ readonly YOU_CANNOT_BAN_YOURSELF: "You cannot ban yourself";
3231
+ readonly YOU_ARE_NOT_ALLOWED_TO_CHANGE_USERS_ROLE: "You are not allowed to change users role";
3232
+ readonly YOU_ARE_NOT_ALLOWED_TO_CREATE_USERS: "You are not allowed to create users";
3233
+ readonly YOU_ARE_NOT_ALLOWED_TO_LIST_USERS: "You are not allowed to list users";
3234
+ readonly YOU_ARE_NOT_ALLOWED_TO_LIST_USERS_SESSIONS: "You are not allowed to list users sessions";
3235
+ readonly YOU_ARE_NOT_ALLOWED_TO_BAN_USERS: "You are not allowed to ban users";
3236
+ readonly YOU_ARE_NOT_ALLOWED_TO_IMPERSONATE_USERS: "You are not allowed to impersonate users";
3237
+ readonly YOU_ARE_NOT_ALLOWED_TO_REVOKE_USERS_SESSIONS: "You are not allowed to revoke users sessions";
3238
+ readonly YOU_ARE_NOT_ALLOWED_TO_DELETE_USERS: "You are not allowed to delete users";
3239
+ readonly YOU_ARE_NOT_ALLOWED_TO_SET_USERS_PASSWORD: "You are not allowed to set users password";
3240
+ readonly BANNED_USER: "You have been banned from this application";
3241
+ readonly YOU_ARE_NOT_ALLOWED_TO_GET_USER: "You are not allowed to get user";
3242
+ readonly NO_DATA_TO_UPDATE: "No data to update";
3243
+ readonly YOU_ARE_NOT_ALLOWED_TO_UPDATE_USERS: "You are not allowed to update users";
3244
+ readonly YOU_CANNOT_REMOVE_YOURSELF: "You cannot remove yourself";
3245
+ readonly YOU_ARE_NOT_ALLOWED_TO_SET_NON_EXISTENT_VALUE: "You are not allowed to set a non-existent role value";
3246
+ readonly YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_ORGANIZATION: "You are not allowed to create a new organization";
3247
+ readonly YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_ORGANIZATIONS: "You have reached the maximum number of organizations";
3248
+ readonly ORGANIZATION_ALREADY_EXISTS: "Organization already exists";
3249
+ readonly ORGANIZATION_SLUG_ALREADY_TAKEN: "Organization slug already taken";
3250
+ readonly ORGANIZATION_NOT_FOUND: "Organization not found";
3251
+ readonly USER_IS_NOT_A_MEMBER_OF_THE_ORGANIZATION: "User is not a member of the organization";
3252
+ readonly YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_ORGANIZATION: "You are not allowed to update this organization";
3253
+ readonly YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_ORGANIZATION: "You are not allowed to delete this organization";
3254
+ readonly NO_ACTIVE_ORGANIZATION: "No active organization";
3255
+ readonly USER_IS_ALREADY_A_MEMBER_OF_THIS_ORGANIZATION: "User is already a member of this organization";
3256
+ readonly MEMBER_NOT_FOUND: "Member not found";
3257
+ readonly ROLE_NOT_FOUND: "Role not found";
3258
+ readonly YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM: "You are not allowed to create a new team";
3259
+ readonly TEAM_ALREADY_EXISTS: "Team already exists";
3260
+ readonly TEAM_NOT_FOUND: "Team not found";
3261
+ readonly YOU_CANNOT_LEAVE_THE_ORGANIZATION_AS_THE_ONLY_OWNER: "You cannot leave the organization as the only owner";
3262
+ readonly YOU_CANNOT_LEAVE_THE_ORGANIZATION_WITHOUT_AN_OWNER: "You cannot leave the organization without an owner";
3263
+ readonly YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_MEMBER: "You are not allowed to delete this member";
3264
+ readonly YOU_ARE_NOT_ALLOWED_TO_INVITE_USERS_TO_THIS_ORGANIZATION: "You are not allowed to invite users to this organization";
3265
+ readonly USER_IS_ALREADY_INVITED_TO_THIS_ORGANIZATION: "User is already invited to this organization";
3266
+ readonly INVITATION_NOT_FOUND: "Invitation not found";
3267
+ readonly YOU_ARE_NOT_THE_RECIPIENT_OF_THE_INVITATION: "You are not the recipient of the invitation";
3268
+ readonly EMAIL_VERIFICATION_REQUIRED_BEFORE_ACCEPTING_OR_REJECTING_INVITATION: "Email verification required before accepting or rejecting invitation";
3269
+ readonly YOU_ARE_NOT_ALLOWED_TO_CANCEL_THIS_INVITATION: "You are not allowed to cancel this invitation";
3270
+ readonly INVITER_IS_NO_LONGER_A_MEMBER_OF_THE_ORGANIZATION: "Inviter is no longer a member of the organization";
3271
+ readonly YOU_ARE_NOT_ALLOWED_TO_INVITE_USER_WITH_THIS_ROLE: "You are not allowed to invite a user with this role";
3272
+ readonly FAILED_TO_RETRIEVE_INVITATION: "Failed to retrieve invitation";
3273
+ readonly YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_TEAMS: "You have reached the maximum number of teams";
3274
+ readonly UNABLE_TO_REMOVE_LAST_TEAM: "Unable to remove last team";
3275
+ readonly YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_MEMBER: "You are not allowed to update this member";
3276
+ readonly ORGANIZATION_MEMBERSHIP_LIMIT_REACHED: "Organization membership limit reached";
3277
+ readonly YOU_ARE_NOT_ALLOWED_TO_CREATE_TEAMS_IN_THIS_ORGANIZATION: "You are not allowed to create teams in this organization";
3278
+ readonly YOU_ARE_NOT_ALLOWED_TO_DELETE_TEAMS_IN_THIS_ORGANIZATION: "You are not allowed to delete teams in this organization";
3279
+ readonly YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_TEAM: "You are not allowed to update this team";
3280
+ readonly YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_TEAM: "You are not allowed to delete this team";
3281
+ readonly INVITATION_LIMIT_REACHED: "Invitation limit reached";
3282
+ readonly TEAM_MEMBER_LIMIT_REACHED: "Team member limit reached";
3283
+ readonly USER_IS_NOT_A_MEMBER_OF_THE_TEAM: "User is not a member of the team";
3284
+ readonly YOU_CAN_NOT_ACCESS_THE_MEMBERS_OF_THIS_TEAM: "You are not allowed to list the members of this team";
3285
+ readonly YOU_DO_NOT_HAVE_AN_ACTIVE_TEAM: "You do not have an active team";
3286
+ readonly YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM_MEMBER: "You are not allowed to create a new member";
3287
+ readonly YOU_ARE_NOT_ALLOWED_TO_REMOVE_A_TEAM_MEMBER: "You are not allowed to remove a team member";
3288
+ readonly YOU_ARE_NOT_ALLOWED_TO_ACCESS_THIS_ORGANIZATION: "You are not allowed to access this organization as an owner";
3289
+ readonly YOU_ARE_NOT_A_MEMBER_OF_THIS_ORGANIZATION: "You are not a member of this organization";
3290
+ readonly MISSING_AC_INSTANCE: "Dynamic Access Control requires a pre-defined ac instance on the server auth plugin. Read server logs for more information";
3291
+ readonly YOU_MUST_BE_IN_AN_ORGANIZATION_TO_CREATE_A_ROLE: "You must be in an organization to create a role";
3292
+ readonly YOU_ARE_NOT_ALLOWED_TO_CREATE_A_ROLE: "You are not allowed to create a role";
3293
+ readonly YOU_ARE_NOT_ALLOWED_TO_UPDATE_A_ROLE: "You are not allowed to update a role";
3294
+ readonly YOU_ARE_NOT_ALLOWED_TO_DELETE_A_ROLE: "You are not allowed to delete a role";
3295
+ readonly YOU_ARE_NOT_ALLOWED_TO_READ_A_ROLE: "You are not allowed to read a role";
3296
+ readonly YOU_ARE_NOT_ALLOWED_TO_LIST_A_ROLE: "You are not allowed to list a role";
3297
+ readonly YOU_ARE_NOT_ALLOWED_TO_GET_A_ROLE: "You are not allowed to get a role";
3298
+ readonly TOO_MANY_ROLES: "This organization has too many roles";
3299
+ readonly INVALID_RESOURCE: "The provided permission includes an invalid resource";
3300
+ readonly ROLE_NAME_IS_ALREADY_TAKEN: "That role name is already taken";
3301
+ readonly CANNOT_DELETE_A_PRE_DEFINED_ROLE: "Cannot delete a pre-defined role";
3302
+ readonly INVALID_EMAIL_FORMAT: "Email was not generated in a valid format";
3303
+ readonly COULD_NOT_CREATE_SESSION: "Could not create session";
3304
+ readonly ANONYMOUS_USERS_CANNOT_SIGN_IN_AGAIN_ANONYMOUSLY: "Anonymous users cannot sign in again anonymously";
3305
+ readonly OTP_EXPIRED: "OTP expired";
3306
+ readonly INVALID_OTP: "Invalid OTP";
3307
+ readonly TOO_MANY_ATTEMPTS: "Too many attempts";
3308
+ readonly INVALID_OAUTH_CONFIGURATION: "Invalid OAuth configuration";
3309
+ readonly TOKEN_URL_NOT_FOUND: "Invalid OAuth configuration. Token URL not found.";
3310
+ readonly PROVIDER_CONFIG_NOT_FOUND: "No config found for provider";
3311
+ readonly PROVIDER_ID_REQUIRED: "Provider ID is required";
3312
+ readonly INVALID_OAUTH_CONFIG: "Invalid OAuth configuration.";
3313
+ readonly SESSION_REQUIRED: "Session is required";
3314
+ readonly CHALLENGE_NOT_FOUND: "Challenge not found";
3315
+ readonly YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY: "You are not allowed to register this passkey";
3316
+ readonly FAILED_TO_VERIFY_REGISTRATION: "Failed to verify registration";
3317
+ readonly PASSKEY_NOT_FOUND: "Passkey not found";
3318
+ readonly AUTHENTICATION_FAILED: "Authentication failed";
3319
+ readonly UNABLE_TO_CREATE_SESSION: "Unable to create session";
3320
+ readonly FAILED_TO_UPDATE_PASSKEY: "Failed to update passkey";
3321
+ readonly INVALID_PHONE_NUMBER: "Invalid phone number";
3322
+ readonly PHONE_NUMBER_EXIST: "Phone number already exists";
3323
+ readonly PHONE_NUMBER_NOT_EXIST: "phone number isn't registered";
3324
+ readonly INVALID_PHONE_NUMBER_OR_PASSWORD: "Invalid phone number or password";
3325
+ readonly UNEXPECTED_ERROR: "Unexpected error";
3326
+ readonly OTP_NOT_FOUND: "OTP not found";
3327
+ readonly PHONE_NUMBER_NOT_VERIFIED: "Phone number not verified";
3328
+ readonly PHONE_NUMBER_CANNOT_BE_UPDATED: "Phone number cannot be updated";
3329
+ readonly SEND_OTP_NOT_IMPLEMENTED: "sendOTP not implemented";
3330
+ readonly OTP_NOT_ENABLED: "OTP not enabled";
3331
+ readonly OTP_HAS_EXPIRED: "OTP has expired";
3332
+ readonly TOTP_NOT_ENABLED: "TOTP not enabled";
3333
+ readonly TWO_FACTOR_NOT_ENABLED: "Two factor isn't enabled";
3334
+ readonly BACKUP_CODES_NOT_ENABLED: "Backup codes aren't enabled";
3335
+ readonly INVALID_BACKUP_CODE: "Invalid backup code";
3336
+ readonly INVALID_CODE: "Invalid code";
3337
+ readonly TOO_MANY_ATTEMPTS_REQUEST_NEW_CODE: "Too many attempts. Please request a new code.";
3338
+ readonly INVALID_TWO_FACTOR_COOKIE: "Invalid two factor cookie";
3339
+ readonly INVALID_USERNAME_OR_PASSWORD: "Invalid username or password";
3340
+ readonly EMAIL_NOT_VERIFIED: "Email not verified";
3341
+ readonly USERNAME_IS_ALREADY_TAKEN: "Username is already taken. Please try another.";
3342
+ readonly USERNAME_TOO_SHORT: "Username is too short";
3343
+ readonly USERNAME_TOO_LONG: "Username is too long";
3344
+ readonly INVALID_USERNAME: "Username is invalid";
3345
+ readonly INVALID_DISPLAY_USERNAME: "Display username is invalid";
3346
+ readonly INVALID_METADATA_TYPE: "metadata must be an object or undefined";
3347
+ readonly REFILL_AMOUNT_AND_INTERVAL_REQUIRED: "refillAmount is required when refillInterval is provided";
3348
+ readonly REFILL_INTERVAL_AND_AMOUNT_REQUIRED: "refillInterval is required when refillAmount is provided";
3349
+ readonly USER_BANNED: "User is banned";
3350
+ readonly UNAUTHORIZED_SESSION: "Unauthorized or invalid session";
3351
+ readonly KEY_NOT_FOUND: "API Key not found";
3352
+ readonly KEY_DISABLED: "API Key is disabled";
3353
+ readonly KEY_EXPIRED: "API Key has expired";
3354
+ readonly USAGE_EXCEEDED: "API Key has reached its usage limit";
3355
+ readonly KEY_NOT_RECOVERABLE: "API Key is not recoverable";
3356
+ readonly EXPIRES_IN_IS_TOO_SMALL: "The expiresIn is smaller than the predefined minimum value.";
3357
+ readonly EXPIRES_IN_IS_TOO_LARGE: "The expiresIn is larger than the predefined maximum value.";
3358
+ readonly INVALID_REMAINING: "The remaining count is either too large or too small.";
3359
+ readonly INVALID_PREFIX_LENGTH: "The prefix length is either too large or too small.";
3360
+ readonly INVALID_NAME_LENGTH: "The name length is either too large or too small.";
3361
+ readonly METADATA_DISABLED: "Metadata is disabled.";
3362
+ readonly RATE_LIMIT_EXCEEDED: "Rate limit exceeded.";
3363
+ readonly NO_VALUES_TO_UPDATE: "No values to update.";
3364
+ readonly KEY_DISABLED_EXPIRATION: "Custom key expiration values are disabled.";
3365
+ readonly INVALID_API_KEY: "Invalid API key.";
3366
+ readonly INVALID_USER_ID_FROM_API_KEY: "The user id from the API key is invalid.";
3367
+ readonly INVALID_API_KEY_GETTER_RETURN_TYPE: "API Key getter returned an invalid key type. Expected string.";
3368
+ readonly SERVER_ONLY_PROPERTY: "The property you're trying to set can only be set from the server auth instance only.";
3369
+ readonly FAILED_TO_UPDATE_API_KEY: "Failed to update API key";
3370
+ readonly NAME_REQUIRED: "API Key name is required.";
3371
+ readonly INVALID_DEVICE_CODE: "Invalid device code";
3372
+ readonly EXPIRED_DEVICE_CODE: "Device code has expired";
3373
+ readonly EXPIRED_USER_CODE: "User code has expired";
3374
+ readonly AUTHORIZATION_PENDING: "Authorization pending";
3375
+ readonly ACCESS_DENIED: "Access denied";
3376
+ readonly INVALID_USER_CODE: "Invalid user code";
3377
+ readonly DEVICE_CODE_ALREADY_PROCESSED: "Device code already processed";
3378
+ readonly POLLING_TOO_FREQUENTLY: "Polling too frequently";
3379
+ readonly USER_NOT_FOUND: "User not found";
2998
3380
  readonly FAILED_TO_CREATE_SESSION: "Failed to create session";
3381
+ readonly INVALID_DEVICE_CODE_STATUS: "Invalid device code status";
3382
+ readonly AUTHENTICATION_REQUIRED: "Authentication required";
3383
+ readonly INVALID_SESSION_TOKEN: "Invalid session token";
2999
3384
  readonly FAILED_TO_UPDATE_USER: "Failed to update user";
3000
3385
  readonly FAILED_TO_GET_SESSION: "Failed to get session";
3001
3386
  readonly INVALID_PASSWORD: "Invalid password";
@@ -3007,11 +3392,8 @@ declare const authClient: {} & {
3007
3392
  readonly ID_TOKEN_NOT_SUPPORTED: "id_token not supported";
3008
3393
  readonly FAILED_TO_GET_USER_INFO: "Failed to get user info";
3009
3394
  readonly USER_EMAIL_NOT_FOUND: "User email not found";
3010
- readonly EMAIL_NOT_VERIFIED: "Email not verified";
3011
3395
  readonly PASSWORD_TOO_SHORT: "Password too short";
3012
3396
  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
3397
  readonly EMAIL_CAN_NOT_BE_UPDATED: "Email can not be updated";
3016
3398
  readonly CREDENTIAL_ACCOUNT_NOT_FOUND: "Credential account not found";
3017
3399
  readonly SESSION_EXPIRED: "Session expired. Re-authenticate to perform this action.";
@@ -3021,258 +3403,17 @@ declare const authClient: {} & {
3021
3403
  };
3022
3404
  };
3023
3405
  type AuthClient = typeof authClient;
3024
- type SessionData = AuthClient['$Infer']['Session'];
3025
- type Session = AuthClient['$Infer']['Session']['session'];
3026
- type User = AuthClient['$Infer']['Session']['user'];
3406
+ type SessionData = AuthClient["$Infer"]["Session"];
3407
+ type Session = AuthClient["$Infer"]["Session"]["session"];
3408
+ type User = AuthClient["$Infer"]["Session"]["user"];
3027
3409
  type ActiveOrganization = typeof authClient.$Infer.ActiveOrganization;
3028
3410
 
3029
3411
  type BetterFetchRequest<TData> = ({ fetchOptions, }: {
3030
3412
  fetchOptions: BetterFetchOption;
3031
3413
  }) => Promise<BetterFetchResponse<TData>>;
3032
3414
 
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';
3415
+ type Locale = keyof Config["i18n"]["locales"] & string;
3416
+ type FieldType = "string" | "number" | "boolean";
3276
3417
  type ImageOptions = {
3277
3418
  upload?: (file: File) => Promise<string | undefined | null>;
3278
3419
  delete?: (url: string) => Promise<void>;
@@ -3400,15 +3541,17 @@ interface AvatarProps extends ComponentProps<typeof Avatar> {
3400
3541
  className?: string;
3401
3542
  classNames?: AvatarClassNames;
3402
3543
  isPending?: boolean;
3403
- size?: NonNullable<Parameters<typeof buttonVariants>[0]>['size'] | null | undefined;
3544
+ size?: NonNullable<Parameters<typeof buttonVariants>[0]>["size"] | null | undefined;
3404
3545
  user?: Profile | null;
3546
+ workspace?: Partial<Organization> | null;
3405
3547
  }
3406
3548
  interface ViewProps {
3407
3549
  className?: string;
3408
3550
  classNames?: ViewClassNames;
3409
3551
  isPending?: boolean;
3410
- size?: NonNullable<Parameters<typeof buttonVariants>[0]>['size'] | null | undefined;
3552
+ size?: NonNullable<Parameters<typeof buttonVariants>[0]>["size"] | null | undefined;
3411
3553
  user?: Profile | null;
3554
+ workspace?: Organization | null;
3412
3555
  }
3413
3556
  interface DialogComponentProps extends ComponentProps<typeof Dialog> {
3414
3557
  className?: string;
@@ -3421,7 +3564,7 @@ interface DialogComponentProps extends ComponentProps<typeof Dialog> {
3421
3564
  cancelButtonDisabled?: boolean;
3422
3565
  button?: ReactNode;
3423
3566
  }
3424
- interface CardComponentProps extends Omit<ComponentProps<typeof Card>, 'title' | 'variant'> {
3567
+ interface CardComponentProps extends Omit<ComponentProps<typeof Card>, "title" | "variant"> {
3425
3568
  className?: string;
3426
3569
  children?: ReactNode;
3427
3570
  classNames?: CardClassNames;
@@ -3436,4 +3579,4 @@ interface CardComponentProps extends Omit<ComponentProps<typeof Card>, 'title' |
3436
3579
  isSubmitting?: boolean;
3437
3580
  }
3438
3581
 
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 };
3582
+ 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 };