@m5kdev/frontend 0.21.7 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/dist/_virtual/_rolldown/runtime.js +23 -0
  2. package/dist/src/modules/app/components/AppConfigProvider.d.mts +2 -0
  3. package/dist/src/modules/app/components/AppConfigProvider.d.mts.map +1 -1
  4. package/dist/src/modules/app/components/AppConfigProvider.d.ts +2 -0
  5. package/dist/src/modules/app/components/AppConfigProvider.d.ts.map +1 -1
  6. package/dist/src/modules/app/components/AppConfigProvider.js +1 -0
  7. package/dist/src/modules/app/components/AppConfigProvider.js.map +1 -1
  8. package/dist/src/modules/app/components/AppConfigProvider.mjs.map +1 -1
  9. package/dist/src/modules/app/components/AppTrpcQueryProvider.js +1 -0
  10. package/dist/src/modules/app/components/AppTrpcQueryProvider.js.map +1 -1
  11. package/dist/src/modules/app/hooks/useAppConfig.d.mts +3 -0
  12. package/dist/src/modules/app/hooks/useAppConfig.d.mts.map +1 -1
  13. package/dist/src/modules/app/hooks/useAppConfig.d.ts +3 -0
  14. package/dist/src/modules/app/hooks/useAppConfig.d.ts.map +1 -1
  15. package/dist/src/modules/app/hooks/useAppConfig.js +1 -0
  16. package/dist/src/modules/app/hooks/useAppConfig.js.map +1 -1
  17. package/dist/src/modules/app/utils/locale.d.mts +8 -0
  18. package/dist/src/modules/app/utils/locale.d.mts.map +1 -0
  19. package/dist/src/modules/app/utils/locale.d.ts +8 -0
  20. package/dist/src/modules/app/utils/locale.d.ts.map +1 -0
  21. package/dist/src/modules/app/utils/locale.js +20 -0
  22. package/dist/src/modules/app/utils/locale.js.map +1 -0
  23. package/dist/src/modules/app/utils/locale.mjs +16 -0
  24. package/dist/src/modules/app/utils/locale.mjs.map +1 -0
  25. package/dist/src/modules/auth/auth.client.d.mts +1643 -102
  26. package/dist/src/modules/auth/auth.client.d.mts.map +1 -1
  27. package/dist/src/modules/auth/auth.client.d.ts +1643 -102
  28. package/dist/src/modules/auth/auth.client.d.ts.map +1 -1
  29. package/dist/src/modules/auth/auth.client.js +7 -3
  30. package/dist/src/modules/auth/auth.client.js.map +1 -1
  31. package/dist/src/modules/auth/auth.client.mjs +6 -3
  32. package/dist/src/modules/auth/auth.client.mjs.map +1 -1
  33. package/dist/src/modules/auth/auth.context.js +1 -0
  34. package/dist/src/modules/auth/auth.context.js.map +1 -1
  35. package/dist/src/modules/auth/auth.lib.d.mts +4 -2103
  36. package/dist/src/modules/auth/auth.lib.d.mts.map +1 -1
  37. package/dist/src/modules/auth/auth.lib.d.ts +4 -2103
  38. package/dist/src/modules/auth/auth.lib.d.ts.map +1 -1
  39. package/dist/src/modules/auth/auth.lib.js.map +1 -1
  40. package/dist/src/modules/auth/auth.lib.mjs.map +1 -1
  41. package/dist/src/modules/auth/components/AuthProvider.d.mts +1 -1
  42. package/dist/src/modules/auth/components/AuthProvider.d.mts.map +1 -1
  43. package/dist/src/modules/auth/components/AuthProvider.d.ts +1 -1
  44. package/dist/src/modules/auth/components/AuthProvider.d.ts.map +1 -1
  45. package/dist/src/modules/auth/components/AuthProvider.js +4 -0
  46. package/dist/src/modules/auth/components/AuthProvider.js.map +1 -1
  47. package/dist/src/modules/auth/components/AuthProvider.mjs +3 -0
  48. package/dist/src/modules/auth/components/AuthProvider.mjs.map +1 -1
  49. package/dist/src/modules/auth/hooks/useAuth.js +1 -0
  50. package/dist/src/modules/auth/hooks/useAuth.js.map +1 -1
  51. package/dist/src/modules/auth/hooks/useAuthAdmin.d.mts +10 -1
  52. package/dist/src/modules/auth/hooks/useAuthAdmin.d.mts.map +1 -1
  53. package/dist/src/modules/auth/hooks/useAuthAdmin.d.ts +10 -1
  54. package/dist/src/modules/auth/hooks/useAuthAdmin.d.ts.map +1 -1
  55. package/dist/src/modules/auth/hooks/useAuthAdmin.js +1 -0
  56. package/dist/src/modules/auth/hooks/useAuthAdmin.js.map +1 -1
  57. package/dist/src/modules/auth/hooks/useAuthClient.d.mts +2 -702
  58. package/dist/src/modules/auth/hooks/useAuthClient.d.mts.map +1 -1
  59. package/dist/src/modules/auth/hooks/useAuthClient.d.ts +2 -702
  60. package/dist/src/modules/auth/hooks/useAuthClient.d.ts.map +1 -1
  61. package/dist/src/modules/auth/hooks/useAuthClient.js +1 -0
  62. package/dist/src/modules/auth/hooks/useAuthClient.js.map +1 -1
  63. package/dist/src/modules/auth/hooks/useAuthClient.mjs.map +1 -1
  64. package/dist/src/modules/auth/hooks/useAuthLocale.d.mts +23 -0
  65. package/dist/src/modules/auth/hooks/useAuthLocale.d.mts.map +1 -0
  66. package/dist/src/modules/auth/hooks/useAuthLocale.d.ts +23 -0
  67. package/dist/src/modules/auth/hooks/useAuthLocale.d.ts.map +1 -0
  68. package/dist/src/modules/auth/hooks/useAuthLocale.js +25 -0
  69. package/dist/src/modules/auth/hooks/useAuthLocale.js.map +1 -0
  70. package/dist/src/modules/auth/hooks/useAuthLocale.mjs +23 -0
  71. package/dist/src/modules/auth/hooks/useAuthLocale.mjs.map +1 -0
  72. package/dist/src/modules/auth/hooks/useMemberInvite.js +1 -0
  73. package/dist/src/modules/auth/hooks/useMemberInvite.js.map +1 -1
  74. package/dist/src/modules/auth/hooks/useOrganizationAccess.d.mts +1 -1
  75. package/dist/src/modules/auth/hooks/useOrganizationAccess.d.ts +1 -1
  76. package/dist/src/modules/auth/hooks/useOrganizationAccess.js +1 -0
  77. package/dist/src/modules/auth/hooks/useOrganizationAccess.js.map +1 -1
  78. package/dist/src/modules/auth/hooks/useSession.js +1 -0
  79. package/dist/src/modules/auth/hooks/useSession.js.map +1 -1
  80. package/dist/src/modules/auth/hooks/useUserOrganizations.d.mts +1 -0
  81. package/dist/src/modules/auth/hooks/useUserOrganizations.d.ts +1 -0
  82. package/dist/src/modules/auth/hooks/useUserOrganizations.js +1 -0
  83. package/dist/src/modules/auth/hooks/useUserOrganizations.js.map +1 -1
  84. package/dist/src/modules/billing/components/BillingProvider.d.mts +1 -1
  85. package/dist/src/modules/billing/components/BillingProvider.d.mts.map +1 -1
  86. package/dist/src/modules/billing/components/BillingProvider.d.ts +1 -1
  87. package/dist/src/modules/billing/components/BillingProvider.d.ts.map +1 -1
  88. package/dist/src/modules/billing/components/BillingProvider.js +1 -0
  89. package/dist/src/modules/billing/components/BillingProvider.js.map +1 -1
  90. package/dist/src/modules/billing/hooks/useSubscription.js +1 -0
  91. package/dist/src/modules/billing/hooks/useSubscription.js.map +1 -1
  92. package/dist/src/modules/file/hooks/useS3DownloadUrl.js +1 -0
  93. package/dist/src/modules/file/hooks/useS3DownloadUrl.js.map +1 -1
  94. package/dist/src/modules/file/hooks/useS3Upload.js +1 -0
  95. package/dist/src/modules/file/hooks/useS3Upload.js.map +1 -1
  96. package/dist/src/modules/file/hooks/useUpload.js +1 -0
  97. package/dist/src/modules/file/hooks/useUpload.js.map +1 -1
  98. package/dist/src/modules/table/hooks/useQueryWithParams.js +1 -0
  99. package/dist/src/modules/table/hooks/useQueryWithParams.js.map +1 -1
  100. package/dist/src/modules/table/hooks/useTableQueryParams.js +1 -0
  101. package/dist/src/modules/table/hooks/useTableQueryParams.js.map +1 -1
  102. package/dist/src/modules/table/queryParams.js +1 -0
  103. package/dist/src/modules/table/queryParams.js.map +1 -1
  104. package/dist/src/utils/date.js +1 -0
  105. package/dist/src/utils/date.js.map +1 -1
  106. package/package.json +17 -5
@@ -1,8 +1,94 @@
1
+ import * as _$better_auth_plugins0 from "better-auth/plugins";
1
2
  import * as _$better_auth0 from "better-auth";
2
3
  import * as _$better_auth_client0 from "better-auth/client";
3
4
 
4
5
  //#region src/modules/auth/auth.client.d.ts
5
- declare function createM5KAuthClient(baseURL?: string, plugins?: any[]): {
6
+ declare function createM5KAuthClient(baseURL?: string): {
7
+ useActiveOrganization: () => {
8
+ data: _$better_auth0.Prettify<{
9
+ id: string;
10
+ name: string;
11
+ slug: string;
12
+ createdAt: Date;
13
+ logo?: string | null | undefined | undefined;
14
+ metadata?: any;
15
+ } & {
16
+ members: {
17
+ id: string;
18
+ organizationId: string;
19
+ role: "admin" | "member" | "owner";
20
+ createdAt: Date;
21
+ userId: string;
22
+ teamId?: string | undefined | undefined;
23
+ user: {
24
+ id: string;
25
+ email: string;
26
+ name: string;
27
+ image?: string | undefined;
28
+ };
29
+ }[];
30
+ invitations: {
31
+ id: string;
32
+ organizationId: string;
33
+ email: string;
34
+ role: "admin" | "member" | "owner";
35
+ status: _$better_auth_plugins0.InvitationStatus;
36
+ inviterId: string;
37
+ expiresAt: Date;
38
+ createdAt: Date;
39
+ teamId?: string | undefined | undefined;
40
+ }[];
41
+ }> | null;
42
+ error: null | _$better_auth_client0.BetterFetchError;
43
+ isPending: boolean;
44
+ isRefetching: boolean;
45
+ refetch: (queryParams?: {
46
+ query?: _$better_auth0.SessionQueryParams;
47
+ } | undefined) => Promise<void>;
48
+ };
49
+ useListOrganizations: () => {
50
+ data: {
51
+ id: string;
52
+ name: string;
53
+ slug: string;
54
+ createdAt: Date;
55
+ logo?: string | null | undefined | undefined;
56
+ metadata?: any;
57
+ }[] | null;
58
+ error: null | _$better_auth_client0.BetterFetchError;
59
+ isPending: boolean;
60
+ isRefetching: boolean;
61
+ refetch: (queryParams?: {
62
+ query?: _$better_auth0.SessionQueryParams;
63
+ } | undefined) => Promise<void>;
64
+ };
65
+ useActiveMember: () => {
66
+ data: {
67
+ id: string;
68
+ organizationId: string;
69
+ userId: string;
70
+ role: string;
71
+ createdAt: Date;
72
+ } | null;
73
+ error: null | _$better_auth_client0.BetterFetchError;
74
+ isPending: boolean;
75
+ isRefetching: boolean;
76
+ refetch: (queryParams?: {
77
+ query?: _$better_auth0.SessionQueryParams;
78
+ } | undefined) => Promise<void>;
79
+ };
80
+ useActiveMemberRole: () => {
81
+ data: {
82
+ role: string;
83
+ } | null;
84
+ error: null | _$better_auth_client0.BetterFetchError;
85
+ isPending: boolean;
86
+ isRefetching: boolean;
87
+ refetch: (queryParams?: {
88
+ query?: _$better_auth0.SessionQueryParams;
89
+ } | undefined) => Promise<void>;
90
+ };
91
+ } & {
6
92
  signOut: <FetchOptions extends _$better_auth0.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: _$better_auth0.Prettify<{
7
93
  query?: Record<string, any> | undefined;
8
94
  fetchOptions?: FetchOptions | undefined;
@@ -334,133 +420,318 @@ declare function createM5KAuthClient(baseURL?: string, plugins?: any[]): {
334
420
  message?: string | undefined;
335
421
  }, FetchOptions["throw"] extends true ? true : false>>;
336
422
  } & {
337
- signIn: {
338
- social: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
339
- provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
340
- callbackURL?: string | undefined;
341
- newUserCallbackURL?: string | undefined;
342
- errorCallbackURL?: string | undefined;
343
- disableRedirect?: boolean | undefined;
344
- idToken?: {
345
- token: string;
346
- nonce?: string | undefined;
347
- accessToken?: string | undefined;
348
- refreshToken?: string | undefined;
349
- expiresAt?: number | undefined;
350
- } | undefined;
351
- scopes?: string[] | undefined;
352
- requestSignUp?: boolean | undefined;
353
- loginHint?: string | undefined;
354
- additionalData?: Record<string, any> | undefined;
423
+ organization: {
424
+ create: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
425
+ name: string;
426
+ slug: string;
427
+ userId?: string | undefined;
428
+ logo?: string | undefined;
429
+ metadata?: Record<string, any> | undefined;
430
+ keepCurrentActiveOrganization?: boolean | undefined;
355
431
  }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
356
- provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
357
- callbackURL?: string | undefined;
358
- newUserCallbackURL?: string | undefined;
359
- errorCallbackURL?: string | undefined;
360
- disableRedirect?: boolean | undefined;
361
- idToken?: {
362
- token: string;
363
- nonce?: string | undefined;
364
- accessToken?: string | undefined;
365
- refreshToken?: string | undefined;
366
- expiresAt?: number | undefined;
367
- } | undefined;
368
- scopes?: string[] | undefined;
369
- requestSignUp?: boolean | undefined;
370
- loginHint?: string | undefined;
371
- additionalData?: Record<string, any> | undefined;
432
+ name: string;
433
+ slug: string;
434
+ userId?: string | undefined;
435
+ logo?: string | undefined;
436
+ metadata?: Record<string, any> | undefined;
437
+ keepCurrentActiveOrganization?: boolean | undefined;
372
438
  } & {
373
439
  fetchOptions?: FetchOptions | undefined;
374
- }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<NonNullable<{
375
- redirect: boolean;
376
- url: string;
377
- } | {
378
- redirect: boolean;
379
- token: string;
380
- url: undefined;
381
- user: {
440
+ }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
441
+ id: string;
442
+ name: string;
443
+ slug: string;
444
+ createdAt: Date;
445
+ logo?: string | null | undefined | undefined;
446
+ metadata?: any;
447
+ } & {
448
+ metadata: any;
449
+ members: ({
382
450
  id: string;
451
+ organizationId: string;
452
+ userId: string;
453
+ role: string;
383
454
  createdAt: Date;
384
- updatedAt: Date;
385
- email: string;
386
- emailVerified: boolean;
387
- name: string;
388
- image?: string | null | undefined | undefined;
389
- };
390
- }>, {
455
+ } | undefined)[];
456
+ }, {
391
457
  code?: string | undefined;
392
458
  message?: string | undefined;
393
459
  }, FetchOptions["throw"] extends true ? true : false>>;
394
460
  };
395
461
  } & {
396
- signUp: {
397
- email: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
462
+ organization: {
463
+ update: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
464
+ data: {
465
+ name?: string | undefined;
466
+ slug?: string | undefined;
467
+ logo?: string | undefined;
468
+ metadata?: Record<string, any> | undefined;
469
+ } & Partial<{}>;
470
+ organizationId?: string | undefined;
471
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
472
+ data: {
473
+ name?: string | undefined;
474
+ slug?: string | undefined;
475
+ logo?: string | undefined;
476
+ metadata?: Record<string, any> | undefined;
477
+ } & Partial<{}>;
478
+ organizationId?: string | undefined;
479
+ } & {
480
+ fetchOptions?: FetchOptions | undefined;
481
+ }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
482
+ id: string;
398
483
  name: string;
399
- email: string;
400
- password: string;
401
- image?: string | undefined;
402
- callbackURL?: string | undefined;
403
- rememberMe?: boolean | undefined;
484
+ slug: string;
485
+ createdAt: Date;
486
+ logo?: string | null | undefined | undefined;
487
+ metadata?: any;
488
+ }, {
489
+ code?: string | undefined;
490
+ message?: string | undefined;
491
+ }, FetchOptions["throw"] extends true ? true : false>>;
492
+ };
493
+ } & {
494
+ organization: {
495
+ delete: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
496
+ organizationId: string;
404
497
  }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
405
- email: string;
498
+ organizationId: string;
499
+ } & {
500
+ fetchOptions?: FetchOptions | undefined;
501
+ }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
502
+ id: string;
406
503
  name: string;
407
- password: string;
408
- image?: string | undefined;
409
- callbackURL?: string | undefined;
504
+ slug: string;
505
+ createdAt: Date;
506
+ logo?: string | null | undefined | undefined;
507
+ metadata?: any;
508
+ }, {
509
+ code?: string | undefined;
510
+ message?: string | undefined;
511
+ }, FetchOptions["throw"] extends true ? true : false>>;
512
+ };
513
+ } & {
514
+ organization: {
515
+ setActive: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
516
+ organizationId?: string | null | undefined;
517
+ organizationSlug?: string | undefined;
518
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: _$better_auth0.Prettify<{
519
+ organizationId?: string | null | undefined;
520
+ organizationSlug?: string | undefined;
521
+ } & {
410
522
  fetchOptions?: FetchOptions | undefined;
411
- }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<NonNullable<{
412
- token: null;
413
- user: {
523
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
524
+ members: {
414
525
  id: string;
526
+ organizationId: string;
527
+ role: "admin" | "member" | "owner";
415
528
  createdAt: Date;
416
- updatedAt: Date;
529
+ userId: string;
530
+ teamId?: string | undefined | undefined;
531
+ user: {
532
+ id: string;
533
+ email: string;
534
+ name: string;
535
+ image?: string | undefined;
536
+ };
537
+ }[];
538
+ invitations: {
539
+ id: string;
540
+ organizationId: string;
417
541
  email: string;
418
- emailVerified: boolean;
542
+ role: "admin" | "member" | "owner";
543
+ status: _$better_auth_plugins0.InvitationStatus;
544
+ inviterId: string;
545
+ expiresAt: Date;
546
+ createdAt: Date;
547
+ teamId?: string | undefined | undefined;
548
+ }[];
549
+ teams: {
550
+ id: string;
419
551
  name: string;
420
- image?: string | null | undefined | undefined;
421
- };
422
- } | {
423
- token: string;
424
- user: {
552
+ organizationId: string;
553
+ createdAt: Date;
554
+ updatedAt?: Date | undefined;
555
+ }[];
556
+ } & {
557
+ id: string;
558
+ name: string;
559
+ slug: string;
560
+ createdAt: Date;
561
+ logo?: string | null | undefined | undefined;
562
+ metadata?: any;
563
+ }, {
564
+ code?: string | undefined;
565
+ message?: string | undefined;
566
+ }, FetchOptions["throw"] extends true ? true : false>>;
567
+ };
568
+ } & {
569
+ organization: {
570
+ getFullOrganization: <FetchOptions extends _$better_auth0.ClientFetchOption<never, Partial<{
571
+ organizationId?: string | undefined;
572
+ organizationSlug?: string | undefined;
573
+ membersLimit?: string | number | undefined;
574
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: _$better_auth0.Prettify<{
575
+ query?: {
576
+ organizationId?: string | undefined;
577
+ organizationSlug?: string | undefined;
578
+ membersLimit?: string | number | undefined;
579
+ } | undefined;
580
+ fetchOptions?: FetchOptions | undefined;
581
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
582
+ members: {
425
583
  id: string;
584
+ organizationId: string;
585
+ role: "admin" | "member" | "owner";
426
586
  createdAt: Date;
427
- updatedAt: Date;
587
+ userId: string;
588
+ teamId?: string | undefined | undefined;
589
+ user: {
590
+ id: string;
591
+ email: string;
592
+ name: string;
593
+ image?: string | undefined;
594
+ };
595
+ }[];
596
+ invitations: {
597
+ id: string;
598
+ organizationId: string;
428
599
  email: string;
429
- emailVerified: boolean;
600
+ role: "admin" | "member" | "owner";
601
+ status: _$better_auth_plugins0.InvitationStatus;
602
+ inviterId: string;
603
+ expiresAt: Date;
604
+ createdAt: Date;
605
+ teamId?: string | undefined | undefined;
606
+ }[];
607
+ teams: {
608
+ id: string;
430
609
  name: string;
431
- image?: string | null | undefined | undefined;
432
- };
433
- }>, {
610
+ organizationId: string;
611
+ createdAt: Date;
612
+ updatedAt?: Date | undefined;
613
+ }[];
614
+ } & {
615
+ id: string;
616
+ name: string;
617
+ slug: string;
618
+ createdAt: Date;
619
+ logo?: string | null | undefined | undefined;
620
+ metadata?: any;
621
+ }, {
434
622
  code?: string | undefined;
435
623
  message?: string | undefined;
436
624
  }, FetchOptions["throw"] extends true ? true : false>>;
437
625
  };
438
626
  } & {
439
- signIn: {
440
- email: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
627
+ organization: {
628
+ list: <FetchOptions extends _$better_auth0.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: _$better_auth0.Prettify<{
629
+ query?: Record<string, any> | undefined;
630
+ fetchOptions?: FetchOptions | undefined;
631
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
632
+ id: string;
633
+ name: string;
634
+ slug: string;
635
+ createdAt: Date;
636
+ logo?: string | null | undefined | undefined;
637
+ metadata?: any;
638
+ }[], {
639
+ code?: string | undefined;
640
+ message?: string | undefined;
641
+ }, FetchOptions["throw"] extends true ? true : false>>;
642
+ };
643
+ } & {
644
+ organization: {
645
+ inviteMember: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
441
646
  email: string;
442
- password: string;
443
- callbackURL?: string | undefined;
444
- rememberMe?: boolean | undefined;
647
+ role: "admin" | "member" | "owner" | ("admin" | "member" | "owner")[];
648
+ organizationId?: string | undefined;
649
+ resend?: boolean | undefined;
650
+ } & {
651
+ teamId?: (string | string[]) | undefined;
445
652
  }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
446
653
  email: string;
447
- password: string;
448
- callbackURL?: string | undefined;
449
- rememberMe?: boolean | undefined;
654
+ role: "admin" | "member" | "owner" | ("admin" | "member" | "owner")[];
655
+ organizationId?: string | undefined;
656
+ resend?: boolean | undefined;
657
+ } & {
658
+ teamId?: (string | string[]) | undefined;
659
+ } & {
660
+ fetchOptions?: FetchOptions | undefined;
661
+ }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<NonNullable<{
662
+ id: string;
663
+ organizationId: string;
664
+ email: string;
665
+ role: "admin" | "member" | "owner";
666
+ status: _$better_auth_plugins0.InvitationStatus;
667
+ inviterId: string;
668
+ expiresAt: Date;
669
+ createdAt: Date;
670
+ teamId?: string | undefined | undefined;
671
+ } | {
672
+ id: string;
673
+ organizationId: string;
674
+ email: string;
675
+ role: "admin" | "member" | "owner";
676
+ status: _$better_auth_plugins0.InvitationStatus;
677
+ inviterId: string;
678
+ expiresAt: Date;
679
+ createdAt: Date;
680
+ teamId?: string | undefined | undefined;
681
+ }>, {
682
+ code?: string | undefined;
683
+ message?: string | undefined;
684
+ }, FetchOptions["throw"] extends true ? true : false>>;
685
+ };
686
+ } & {
687
+ organization: {
688
+ cancelInvitation: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
689
+ invitationId: string;
690
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
691
+ invitationId: string;
450
692
  } & {
451
693
  fetchOptions?: FetchOptions | undefined;
452
694
  }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
453
- redirect: boolean;
454
- token: string;
455
- url?: string | undefined;
456
- user: {
695
+ id: string;
696
+ organizationId: string;
697
+ email: string;
698
+ role: "admin" | "member" | "owner";
699
+ status: _$better_auth_plugins0.InvitationStatus;
700
+ inviterId: string;
701
+ expiresAt: Date;
702
+ createdAt: Date;
703
+ teamId?: string | undefined | undefined;
704
+ }, {
705
+ code?: string | undefined;
706
+ message?: string | undefined;
707
+ }, FetchOptions["throw"] extends true ? true : false>>;
708
+ };
709
+ } & {
710
+ organization: {
711
+ acceptInvitation: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
712
+ invitationId: string;
713
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
714
+ invitationId: string;
715
+ } & {
716
+ fetchOptions?: FetchOptions | undefined;
717
+ }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
718
+ invitation: {
457
719
  id: string;
458
- createdAt: Date;
459
- updatedAt: Date;
720
+ organizationId: string;
460
721
  email: string;
461
- emailVerified: boolean;
462
- name: string;
463
- image?: string | null | undefined | undefined;
722
+ role: "admin" | "member" | "owner";
723
+ status: _$better_auth_plugins0.InvitationStatus;
724
+ inviterId: string;
725
+ expiresAt: Date;
726
+ createdAt: Date;
727
+ teamId?: string | undefined | undefined;
728
+ };
729
+ member: {
730
+ id: string;
731
+ organizationId: string;
732
+ userId: string;
733
+ role: string;
734
+ createdAt: Date;
464
735
  };
465
736
  }, {
466
737
  code?: string | undefined;
@@ -468,14 +739,1033 @@ declare function createM5KAuthClient(baseURL?: string, plugins?: any[]): {
468
739
  }, FetchOptions["throw"] extends true ? true : false>>;
469
740
  };
470
741
  } & {
471
- updateUser: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<Partial<{}> & {
472
- name?: string | undefined;
473
- image?: string | undefined | null;
474
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: _$better_auth0.Prettify<{
475
- image?: (string | null) | undefined;
742
+ organization: {
743
+ getInvitation: <FetchOptions extends _$better_auth0.ClientFetchOption<never, Partial<{
744
+ id: string;
745
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
746
+ query: {
747
+ id: string;
748
+ };
749
+ fetchOptions?: FetchOptions | undefined;
750
+ }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<NonNullable<{
751
+ id: string;
752
+ organizationId: string;
753
+ email: string;
754
+ role: "admin" | "member" | "owner";
755
+ status: _$better_auth_plugins0.InvitationStatus;
756
+ inviterId: string;
757
+ expiresAt: Date;
758
+ createdAt: Date;
759
+ teamId?: string | undefined | undefined;
760
+ } & {
761
+ organizationName: string;
762
+ organizationSlug: string;
763
+ inviterEmail: string;
764
+ }>, {
765
+ code?: string | undefined;
766
+ message?: string | undefined;
767
+ }, FetchOptions["throw"] extends true ? true : false>>;
768
+ };
769
+ } & {
770
+ organization: {
771
+ rejectInvitation: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
772
+ invitationId: string;
773
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
774
+ invitationId: string;
775
+ } & {
776
+ fetchOptions?: FetchOptions | undefined;
777
+ }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
778
+ invitation: {
779
+ id: string;
780
+ organizationId: string;
781
+ email: string;
782
+ role: "member" | "admin" | "owner";
783
+ status: _$better_auth_plugins0.InvitationStatus;
784
+ inviterId: string;
785
+ expiresAt: Date;
786
+ createdAt: Date;
787
+ } | null;
788
+ member: null;
789
+ }, {
790
+ code?: string | undefined;
791
+ message?: string | undefined;
792
+ }, FetchOptions["throw"] extends true ? true : false>>;
793
+ };
794
+ } & {
795
+ organization: {
796
+ listInvitations: <FetchOptions extends _$better_auth0.ClientFetchOption<never, Partial<{
797
+ organizationId?: string | undefined;
798
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: _$better_auth0.Prettify<{
799
+ query?: {
800
+ organizationId?: string | undefined;
801
+ } | undefined;
802
+ fetchOptions?: FetchOptions | undefined;
803
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
804
+ id: string;
805
+ organizationId: string;
806
+ email: string;
807
+ role: "admin" | "member" | "owner";
808
+ status: _$better_auth_plugins0.InvitationStatus;
809
+ inviterId: string;
810
+ expiresAt: Date;
811
+ createdAt: Date;
812
+ teamId?: string | undefined | undefined;
813
+ }[], {
814
+ code?: string | undefined;
815
+ message?: string | undefined;
816
+ }, FetchOptions["throw"] extends true ? true : false>>;
817
+ };
818
+ } & {
819
+ organization: {
820
+ getActiveMember: <FetchOptions extends _$better_auth0.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: _$better_auth0.Prettify<{
821
+ query?: Record<string, any> | undefined;
822
+ fetchOptions?: FetchOptions | undefined;
823
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<Omit<{
824
+ id: string;
825
+ organizationId: string;
826
+ role: "admin" | "member" | "owner";
827
+ createdAt: Date;
828
+ userId: string;
829
+ teamId?: string | undefined | undefined;
830
+ user: {
831
+ id: string;
832
+ email: string;
833
+ name: string;
834
+ image?: string | undefined;
835
+ };
836
+ } & {
837
+ user: _$better_auth0.User;
838
+ }, "user"> & {
839
+ user: {
840
+ id: string;
841
+ name: string;
842
+ email: string;
843
+ image: string | undefined;
844
+ };
845
+ }, {
846
+ code?: string | undefined;
847
+ message?: string | undefined;
848
+ }, FetchOptions["throw"] extends true ? true : false>>;
849
+ };
850
+ } & {
851
+ organization: {
852
+ checkSlug: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
853
+ slug: string;
854
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
855
+ slug: string;
856
+ } & {
857
+ fetchOptions?: FetchOptions | undefined;
858
+ }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
859
+ status: boolean;
860
+ }, {
861
+ code?: string | undefined;
862
+ message?: string | undefined;
863
+ }, FetchOptions["throw"] extends true ? true : false>>;
864
+ };
865
+ } & {
866
+ organization: {
867
+ removeMember: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
868
+ memberIdOrEmail: string;
869
+ organizationId?: string | undefined;
870
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
871
+ memberIdOrEmail: string;
872
+ organizationId?: string | undefined;
873
+ } & {
874
+ fetchOptions?: FetchOptions | undefined;
875
+ }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
876
+ member: {
877
+ id: string;
878
+ organizationId: string;
879
+ role: "admin" | "member" | "owner";
880
+ createdAt: Date;
881
+ userId: string;
882
+ teamId?: string | undefined | undefined;
883
+ user: {
884
+ id: string;
885
+ email: string;
886
+ name: string;
887
+ image?: string | undefined;
888
+ };
889
+ };
890
+ }, {
891
+ code?: string | undefined;
892
+ message?: string | undefined;
893
+ }, FetchOptions["throw"] extends true ? true : false>>;
894
+ };
895
+ } & {
896
+ organization: {
897
+ updateMemberRole: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
898
+ role: _$better_auth0.LiteralString | _$better_auth0.LiteralString[] | "admin" | "member" | "owner" | ("admin" | "member" | "owner")[];
899
+ memberId: string;
900
+ organizationId?: string | undefined;
901
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
902
+ role: _$better_auth0.LiteralString | _$better_auth0.LiteralString[] | "admin" | "member" | "owner" | ("admin" | "member" | "owner")[];
903
+ memberId: string;
904
+ organizationId?: string | undefined;
905
+ } & {
906
+ fetchOptions?: FetchOptions | undefined;
907
+ }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
908
+ id: string;
909
+ organizationId: string;
910
+ role: "member" | "admin" | "owner";
911
+ createdAt: Date;
912
+ userId: string;
913
+ user: {
914
+ id: string;
915
+ email: string;
916
+ name: string;
917
+ image?: string | undefined;
918
+ };
919
+ }, {
920
+ code?: string | undefined;
921
+ message?: string | undefined;
922
+ }, FetchOptions["throw"] extends true ? true : false>>;
923
+ };
924
+ } & {
925
+ organization: {
926
+ leave: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
927
+ organizationId: string;
928
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
929
+ organizationId: string;
930
+ } & {
931
+ fetchOptions?: FetchOptions | undefined;
932
+ }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<NonNullable<Omit<{
933
+ id: string;
934
+ organizationId: string;
935
+ role: "admin" | "member" | "owner";
936
+ createdAt: Date;
937
+ userId: string;
938
+ teamId?: string | undefined | undefined;
939
+ user: {
940
+ id: string;
941
+ email: string;
942
+ name: string;
943
+ image?: string | undefined;
944
+ };
945
+ } & {
946
+ user: _$better_auth0.User;
947
+ }, "user"> & {
948
+ user: {
949
+ id: string;
950
+ name: string;
951
+ email: string;
952
+ image: string | undefined;
953
+ };
954
+ }>, {
955
+ code?: string | undefined;
956
+ message?: string | undefined;
957
+ }, FetchOptions["throw"] extends true ? true : false>>;
958
+ };
959
+ } & {
960
+ organization: {
961
+ listUserInvitations: <FetchOptions extends _$better_auth0.ClientFetchOption<never, Partial<{
962
+ email?: string | undefined;
963
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: _$better_auth0.Prettify<{
964
+ query?: {
965
+ email?: string | undefined;
966
+ } | undefined;
967
+ fetchOptions?: FetchOptions | undefined;
968
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<(Omit<{
969
+ id: string;
970
+ organizationId: string;
971
+ email: string;
972
+ role: "admin" | "member" | "owner";
973
+ status: _$better_auth_plugins0.InvitationStatus;
974
+ inviterId: string;
975
+ expiresAt: Date;
976
+ createdAt: Date;
977
+ teamId?: string | undefined | undefined;
978
+ } & {
979
+ organization: {
980
+ id: string;
981
+ name: string;
982
+ slug: string;
983
+ createdAt: Date;
984
+ logo?: string | null | undefined | undefined;
985
+ metadata?: any;
986
+ };
987
+ }, "organization"> & {
988
+ organizationName: string;
989
+ })[], {
990
+ code?: string | undefined;
991
+ message?: string | undefined;
992
+ }, FetchOptions["throw"] extends true ? true : false>>;
993
+ };
994
+ } & {
995
+ organization: {
996
+ listMembers: <FetchOptions extends _$better_auth0.ClientFetchOption<never, Partial<{
997
+ limit?: string | number | undefined;
998
+ offset?: string | number | undefined;
999
+ sortBy?: string | undefined;
1000
+ sortDirection?: "asc" | "desc" | undefined;
1001
+ filterField?: string | undefined;
1002
+ filterValue?: string | number | boolean | undefined;
1003
+ filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | undefined;
1004
+ organizationId?: string | undefined;
1005
+ organizationSlug?: string | undefined;
1006
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: _$better_auth0.Prettify<{
1007
+ query?: {
1008
+ limit?: string | number | undefined;
1009
+ offset?: string | number | undefined;
1010
+ sortBy?: string | undefined;
1011
+ sortDirection?: "asc" | "desc" | undefined;
1012
+ filterField?: string | undefined;
1013
+ filterValue?: string | number | boolean | undefined;
1014
+ filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | undefined;
1015
+ organizationId?: string | undefined;
1016
+ organizationSlug?: string | undefined;
1017
+ } | undefined;
1018
+ fetchOptions?: FetchOptions | undefined;
1019
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
1020
+ members: ({
1021
+ id: string;
1022
+ organizationId: string;
1023
+ role: "admin" | "member" | "owner";
1024
+ createdAt: Date;
1025
+ userId: string;
1026
+ teamId?: string | undefined | undefined;
1027
+ user: {
1028
+ id: string;
1029
+ email: string;
1030
+ name: string;
1031
+ image?: string | undefined;
1032
+ };
1033
+ } & {
1034
+ user: {
1035
+ id: string;
1036
+ name: string;
1037
+ email: string;
1038
+ image: string | null | undefined;
1039
+ };
1040
+ })[];
1041
+ total: number;
1042
+ }, {
1043
+ code?: string | undefined;
1044
+ message?: string | undefined;
1045
+ }, FetchOptions["throw"] extends true ? true : false>>;
1046
+ };
1047
+ } & {
1048
+ organization: {
1049
+ getActiveMemberRole: <FetchOptions extends _$better_auth0.ClientFetchOption<never, Partial<{
1050
+ userId?: string | undefined;
1051
+ organizationId?: string | undefined;
1052
+ organizationSlug?: string | undefined;
1053
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: _$better_auth0.Prettify<{
1054
+ query?: {
1055
+ userId?: string | undefined;
1056
+ organizationId?: string | undefined;
1057
+ organizationSlug?: string | undefined;
1058
+ } | undefined;
1059
+ fetchOptions?: FetchOptions | undefined;
1060
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
1061
+ role: "admin" | "member" | "owner";
1062
+ }, {
1063
+ code?: string | undefined;
1064
+ message?: string | undefined;
1065
+ }, FetchOptions["throw"] extends true ? true : false>>;
1066
+ };
1067
+ } & {
1068
+ organization: {
1069
+ hasPermission: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<({
1070
+ permission: {
1071
+ readonly organization?: ("delete" | "update")[] | undefined;
1072
+ readonly member?: ("create" | "delete" | "update")[] | undefined;
1073
+ readonly invitation?: ("create" | "cancel")[] | undefined;
1074
+ readonly team?: ("create" | "delete" | "update")[] | undefined;
1075
+ readonly ac?: ("create" | "delete" | "update" | "read")[] | undefined;
1076
+ };
1077
+ permissions?: never | undefined;
1078
+ } | {
1079
+ permissions: {
1080
+ readonly organization?: ("delete" | "update")[] | undefined;
1081
+ readonly member?: ("create" | "delete" | "update")[] | undefined;
1082
+ readonly invitation?: ("create" | "cancel")[] | undefined;
1083
+ readonly team?: ("create" | "delete" | "update")[] | undefined;
1084
+ readonly ac?: ("create" | "delete" | "update" | "read")[] | undefined;
1085
+ };
1086
+ permission?: never | undefined;
1087
+ }) & {
1088
+ organizationId?: string | undefined;
1089
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<(({
1090
+ permission: {
1091
+ readonly organization?: ("delete" | "update")[] | undefined;
1092
+ readonly member?: ("create" | "delete" | "update")[] | undefined;
1093
+ readonly invitation?: ("create" | "cancel")[] | undefined;
1094
+ readonly team?: ("create" | "delete" | "update")[] | undefined;
1095
+ readonly ac?: ("create" | "delete" | "update" | "read")[] | undefined;
1096
+ };
1097
+ permissions?: never | undefined;
1098
+ } | {
1099
+ permissions: {
1100
+ readonly organization?: ("delete" | "update")[] | undefined;
1101
+ readonly member?: ("create" | "delete" | "update")[] | undefined;
1102
+ readonly invitation?: ("create" | "cancel")[] | undefined;
1103
+ readonly team?: ("create" | "delete" | "update")[] | undefined;
1104
+ readonly ac?: ("create" | "delete" | "update" | "read")[] | undefined;
1105
+ };
1106
+ permission?: never | undefined;
1107
+ }) & {
1108
+ organizationId?: string | undefined;
1109
+ }) & {
1110
+ fetchOptions?: FetchOptions | undefined;
1111
+ }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
1112
+ error: null;
1113
+ success: boolean;
1114
+ }, {
1115
+ code?: string | undefined;
1116
+ message?: string | undefined;
1117
+ }, FetchOptions["throw"] extends true ? true : false>>;
1118
+ };
1119
+ } & {
1120
+ organization: {
1121
+ createTeam: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
1122
+ name: string;
1123
+ organizationId?: string | undefined;
1124
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
1125
+ name: string;
1126
+ organizationId?: string | undefined;
1127
+ } & {
1128
+ fetchOptions?: FetchOptions | undefined;
1129
+ }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
1130
+ id: string;
1131
+ name: string;
1132
+ organizationId: string;
1133
+ createdAt: Date;
1134
+ updatedAt?: Date | undefined;
1135
+ }, {
1136
+ code?: string | undefined;
1137
+ message?: string | undefined;
1138
+ }, FetchOptions["throw"] extends true ? true : false>>;
1139
+ };
1140
+ } & {
1141
+ organization: {
1142
+ listTeams: <FetchOptions extends _$better_auth0.ClientFetchOption<never, Partial<{
1143
+ organizationId?: string | undefined;
1144
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: _$better_auth0.Prettify<{
1145
+ query?: {
1146
+ organizationId?: string | undefined;
1147
+ } | undefined;
1148
+ fetchOptions?: FetchOptions | undefined;
1149
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
1150
+ id: string;
1151
+ name: string;
1152
+ organizationId: string;
1153
+ createdAt: Date;
1154
+ updatedAt?: Date | undefined;
1155
+ }[], {
1156
+ code?: string | undefined;
1157
+ message?: string | undefined;
1158
+ }, FetchOptions["throw"] extends true ? true : false>>;
1159
+ };
1160
+ } & {
1161
+ organization: {
1162
+ removeTeam: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
1163
+ teamId: string;
1164
+ organizationId?: string | undefined;
1165
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
1166
+ teamId: string;
1167
+ organizationId?: string | undefined;
1168
+ } & {
1169
+ fetchOptions?: FetchOptions | undefined;
1170
+ }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
1171
+ message: string;
1172
+ }, {
1173
+ code?: string | undefined;
1174
+ message?: string | undefined;
1175
+ }, FetchOptions["throw"] extends true ? true : false>>;
1176
+ };
1177
+ } & {
1178
+ organization: {
1179
+ updateTeam: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
1180
+ teamId: string;
1181
+ data: Partial<{
1182
+ name: string;
1183
+ organizationId: string;
1184
+ }>;
1185
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
1186
+ teamId: string;
1187
+ data: Partial<{
1188
+ name: string;
1189
+ organizationId: string;
1190
+ }>;
1191
+ } & {
1192
+ fetchOptions?: FetchOptions | undefined;
1193
+ }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
1194
+ id: string;
1195
+ name: string;
1196
+ organizationId: string;
1197
+ createdAt: Date;
1198
+ updatedAt?: Date | undefined;
1199
+ }, {
1200
+ code?: string | undefined;
1201
+ message?: string | undefined;
1202
+ }, FetchOptions["throw"] extends true ? true : false>>;
1203
+ };
1204
+ } & {
1205
+ organization: {
1206
+ setActiveTeam: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
1207
+ teamId?: string | null | undefined;
1208
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: _$better_auth0.Prettify<{
1209
+ teamId?: string | null | undefined;
1210
+ } & {
1211
+ fetchOptions?: FetchOptions | undefined;
1212
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
1213
+ id: string;
1214
+ name: string;
1215
+ organizationId: string;
1216
+ createdAt: Date;
1217
+ updatedAt?: Date | undefined;
1218
+ }, {
1219
+ code?: string | undefined;
1220
+ message?: string | undefined;
1221
+ }, FetchOptions["throw"] extends true ? true : false>>;
1222
+ };
1223
+ } & {
1224
+ organization: {
1225
+ listUserTeams: <FetchOptions extends _$better_auth0.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: _$better_auth0.Prettify<{
1226
+ query?: Record<string, any> | undefined;
1227
+ fetchOptions?: FetchOptions | undefined;
1228
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
1229
+ id: string;
1230
+ name: string;
1231
+ organizationId: string;
1232
+ createdAt: Date;
1233
+ updatedAt?: Date | undefined;
1234
+ }[], {
1235
+ code?: string | undefined;
1236
+ message?: string | undefined;
1237
+ }, FetchOptions["throw"] extends true ? true : false>>;
1238
+ };
1239
+ } & {
1240
+ organization: {
1241
+ listTeamMembers: <FetchOptions extends _$better_auth0.ClientFetchOption<never, Partial<{
1242
+ teamId?: string | undefined;
1243
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: _$better_auth0.Prettify<{
1244
+ query?: {
1245
+ teamId?: string | undefined;
1246
+ } | undefined;
1247
+ fetchOptions?: FetchOptions | undefined;
1248
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
1249
+ id: string;
1250
+ teamId: string;
1251
+ userId: string;
1252
+ createdAt: Date;
1253
+ }[], {
1254
+ code?: string | undefined;
1255
+ message?: string | undefined;
1256
+ }, FetchOptions["throw"] extends true ? true : false>>;
1257
+ };
1258
+ } & {
1259
+ organization: {
1260
+ addTeamMember: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
1261
+ teamId: string;
1262
+ userId: unknown;
1263
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
1264
+ teamId: string;
1265
+ userId: unknown;
1266
+ } & {
1267
+ fetchOptions?: FetchOptions | undefined;
1268
+ }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
1269
+ id: string;
1270
+ teamId: string;
1271
+ userId: string;
1272
+ createdAt: Date;
1273
+ }, {
1274
+ code?: string | undefined;
1275
+ message?: string | undefined;
1276
+ }, FetchOptions["throw"] extends true ? true : false>>;
1277
+ };
1278
+ } & {
1279
+ organization: {
1280
+ removeTeamMember: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
1281
+ teamId: string;
1282
+ userId: unknown;
1283
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
1284
+ teamId: string;
1285
+ userId: unknown;
1286
+ } & {
1287
+ fetchOptions?: FetchOptions | undefined;
1288
+ }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
1289
+ message: string;
1290
+ }, {
1291
+ code?: string | undefined;
1292
+ message?: string | undefined;
1293
+ }, FetchOptions["throw"] extends true ? true : false>>;
1294
+ };
1295
+ } & {
1296
+ admin: {
1297
+ setRole: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
1298
+ userId: string;
1299
+ role: "user" | "admin" | ("user" | "admin")[];
1300
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
1301
+ userId: string;
1302
+ role: "user" | "admin" | ("user" | "admin")[];
1303
+ } & {
1304
+ fetchOptions?: FetchOptions | undefined;
1305
+ }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
1306
+ user: _$better_auth_plugins0.UserWithRole;
1307
+ }, {
1308
+ code?: string | undefined;
1309
+ message?: string | undefined;
1310
+ }, FetchOptions["throw"] extends true ? true : false>>;
1311
+ };
1312
+ } & {
1313
+ admin: {
1314
+ getUser: <FetchOptions extends _$better_auth0.ClientFetchOption<never, Partial<{
1315
+ id: string;
1316
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
1317
+ query: {
1318
+ id: string;
1319
+ };
1320
+ fetchOptions?: FetchOptions | undefined;
1321
+ }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<_$better_auth_plugins0.UserWithRole, {
1322
+ code?: string | undefined;
1323
+ message?: string | undefined;
1324
+ }, FetchOptions["throw"] extends true ? true : false>>;
1325
+ };
1326
+ } & {
1327
+ admin: {
1328
+ createUser: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
1329
+ email: string;
1330
+ password?: string | undefined;
1331
+ name: string;
1332
+ role?: "user" | "admin" | ("user" | "admin")[] | undefined;
1333
+ data?: Record<string, any> | undefined;
1334
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
1335
+ email: string;
1336
+ password?: string | undefined;
1337
+ name: string;
1338
+ role?: "user" | "admin" | ("user" | "admin")[] | undefined;
1339
+ data?: Record<string, any> | undefined;
1340
+ } & {
1341
+ fetchOptions?: FetchOptions | undefined;
1342
+ }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
1343
+ user: _$better_auth_plugins0.UserWithRole;
1344
+ }, {
1345
+ code?: string | undefined;
1346
+ message?: string | undefined;
1347
+ }, FetchOptions["throw"] extends true ? true : false>>;
1348
+ };
1349
+ } & {
1350
+ admin: {
1351
+ updateUser: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
1352
+ userId: unknown;
1353
+ data: Record<any, any>;
1354
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
1355
+ userId: unknown;
1356
+ data: Record<any, any>;
1357
+ } & {
1358
+ fetchOptions?: FetchOptions | undefined;
1359
+ }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<_$better_auth_plugins0.UserWithRole, {
1360
+ code?: string | undefined;
1361
+ message?: string | undefined;
1362
+ }, FetchOptions["throw"] extends true ? true : false>>;
1363
+ };
1364
+ } & {
1365
+ admin: {
1366
+ listUsers: <FetchOptions extends _$better_auth0.ClientFetchOption<never, Partial<{
1367
+ searchValue?: string | undefined;
1368
+ searchField?: "email" | "name" | undefined;
1369
+ searchOperator?: "contains" | "starts_with" | "ends_with" | undefined;
1370
+ limit?: string | number | undefined;
1371
+ offset?: string | number | undefined;
1372
+ sortBy?: string | undefined;
1373
+ sortDirection?: "asc" | "desc" | undefined;
1374
+ filterField?: string | undefined;
1375
+ filterValue?: string | number | boolean | undefined;
1376
+ filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | undefined;
1377
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
1378
+ query: {
1379
+ searchValue?: string | undefined;
1380
+ searchField?: "email" | "name" | undefined;
1381
+ searchOperator?: "contains" | "starts_with" | "ends_with" | undefined;
1382
+ limit?: string | number | undefined;
1383
+ offset?: string | number | undefined;
1384
+ sortBy?: string | undefined;
1385
+ sortDirection?: "asc" | "desc" | undefined;
1386
+ filterField?: string | undefined;
1387
+ filterValue?: string | number | boolean | undefined;
1388
+ filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | undefined;
1389
+ };
1390
+ fetchOptions?: FetchOptions | undefined;
1391
+ }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<NonNullable<{
1392
+ users: _$better_auth_plugins0.UserWithRole[];
1393
+ total: number;
1394
+ limit: number | undefined;
1395
+ offset: number | undefined;
1396
+ } | {
1397
+ users: never[];
1398
+ total: number;
1399
+ }>, {
1400
+ code?: string | undefined;
1401
+ message?: string | undefined;
1402
+ }, FetchOptions["throw"] extends true ? true : false>>;
1403
+ };
1404
+ } & {
1405
+ admin: {
1406
+ listUserSessions: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
1407
+ userId: unknown;
1408
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
1409
+ userId: unknown;
1410
+ } & {
1411
+ fetchOptions?: FetchOptions | undefined;
1412
+ }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
1413
+ sessions: _$better_auth_plugins0.SessionWithImpersonatedBy[];
1414
+ }, {
1415
+ code?: string | undefined;
1416
+ message?: string | undefined;
1417
+ }, FetchOptions["throw"] extends true ? true : false>>;
1418
+ };
1419
+ } & {
1420
+ admin: {
1421
+ unbanUser: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
1422
+ userId: unknown;
1423
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
1424
+ userId: unknown;
1425
+ } & {
1426
+ fetchOptions?: FetchOptions | undefined;
1427
+ }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
1428
+ user: _$better_auth_plugins0.UserWithRole;
1429
+ }, {
1430
+ code?: string | undefined;
1431
+ message?: string | undefined;
1432
+ }, FetchOptions["throw"] extends true ? true : false>>;
1433
+ };
1434
+ } & {
1435
+ admin: {
1436
+ banUser: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
1437
+ userId: unknown;
1438
+ banReason?: string | undefined;
1439
+ banExpiresIn?: number | undefined;
1440
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
1441
+ userId: unknown;
1442
+ banReason?: string | undefined;
1443
+ banExpiresIn?: number | undefined;
1444
+ } & {
1445
+ fetchOptions?: FetchOptions | undefined;
1446
+ }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
1447
+ user: _$better_auth_plugins0.UserWithRole;
1448
+ }, {
1449
+ code?: string | undefined;
1450
+ message?: string | undefined;
1451
+ }, FetchOptions["throw"] extends true ? true : false>>;
1452
+ };
1453
+ } & {
1454
+ admin: {
1455
+ impersonateUser: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
1456
+ userId: unknown;
1457
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
1458
+ userId: unknown;
1459
+ } & {
1460
+ fetchOptions?: FetchOptions | undefined;
1461
+ }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
1462
+ session: {
1463
+ id: string;
1464
+ createdAt: Date;
1465
+ updatedAt: Date;
1466
+ userId: string;
1467
+ expiresAt: Date;
1468
+ token: string;
1469
+ ipAddress?: string | null | undefined;
1470
+ userAgent?: string | null | undefined;
1471
+ };
1472
+ user: _$better_auth_plugins0.UserWithRole;
1473
+ }, {
1474
+ code?: string | undefined;
1475
+ message?: string | undefined;
1476
+ }, FetchOptions["throw"] extends true ? true : false>>;
1477
+ };
1478
+ } & {
1479
+ admin: {
1480
+ stopImpersonating: <FetchOptions extends _$better_auth0.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: _$better_auth0.Prettify<{
1481
+ query?: Record<string, any> | undefined;
1482
+ fetchOptions?: FetchOptions | undefined;
1483
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
1484
+ session: {
1485
+ id: string;
1486
+ createdAt: Date;
1487
+ updatedAt: Date;
1488
+ userId: string;
1489
+ expiresAt: Date;
1490
+ token: string;
1491
+ ipAddress?: string | null | undefined;
1492
+ userAgent?: string | null | undefined;
1493
+ } & Record<string, any>;
1494
+ user: {
1495
+ id: string;
1496
+ createdAt: Date;
1497
+ updatedAt: Date;
1498
+ email: string;
1499
+ emailVerified: boolean;
1500
+ name: string;
1501
+ image?: string | null | undefined;
1502
+ } & Record<string, any>;
1503
+ }, {
1504
+ code?: string | undefined;
1505
+ message?: string | undefined;
1506
+ }, FetchOptions["throw"] extends true ? true : false>>;
1507
+ };
1508
+ } & {
1509
+ admin: {
1510
+ revokeUserSession: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
1511
+ sessionToken: string;
1512
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
1513
+ sessionToken: string;
1514
+ } & {
1515
+ fetchOptions?: FetchOptions | undefined;
1516
+ }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
1517
+ success: boolean;
1518
+ }, {
1519
+ code?: string | undefined;
1520
+ message?: string | undefined;
1521
+ }, FetchOptions["throw"] extends true ? true : false>>;
1522
+ };
1523
+ } & {
1524
+ admin: {
1525
+ revokeUserSessions: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
1526
+ userId: unknown;
1527
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
1528
+ userId: unknown;
1529
+ } & {
1530
+ fetchOptions?: FetchOptions | undefined;
1531
+ }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
1532
+ success: boolean;
1533
+ }, {
1534
+ code?: string | undefined;
1535
+ message?: string | undefined;
1536
+ }, FetchOptions["throw"] extends true ? true : false>>;
1537
+ };
1538
+ } & {
1539
+ admin: {
1540
+ removeUser: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
1541
+ userId: unknown;
1542
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
1543
+ userId: unknown;
1544
+ } & {
1545
+ fetchOptions?: FetchOptions | undefined;
1546
+ }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
1547
+ success: boolean;
1548
+ }, {
1549
+ code?: string | undefined;
1550
+ message?: string | undefined;
1551
+ }, FetchOptions["throw"] extends true ? true : false>>;
1552
+ };
1553
+ } & {
1554
+ admin: {
1555
+ setUserPassword: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
1556
+ newPassword: string;
1557
+ userId: unknown;
1558
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
1559
+ newPassword: string;
1560
+ userId: unknown;
1561
+ } & {
1562
+ fetchOptions?: FetchOptions | undefined;
1563
+ }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
1564
+ status: boolean;
1565
+ }, {
1566
+ code?: string | undefined;
1567
+ message?: string | undefined;
1568
+ }, FetchOptions["throw"] extends true ? true : false>>;
1569
+ };
1570
+ } & {
1571
+ admin: {
1572
+ hasPermission: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<({
1573
+ permission: {
1574
+ readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "delete" | "set-password" | "get" | "update")[] | undefined;
1575
+ readonly session?: ("list" | "delete" | "revoke")[] | undefined;
1576
+ };
1577
+ permissions?: never | undefined;
1578
+ } | {
1579
+ permissions: {
1580
+ readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "delete" | "set-password" | "get" | "update")[] | undefined;
1581
+ readonly session?: ("list" | "delete" | "revoke")[] | undefined;
1582
+ };
1583
+ permission?: never | undefined;
1584
+ }) & {
1585
+ userId?: string | undefined;
1586
+ role?: "user" | "admin" | undefined;
1587
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<(({
1588
+ permission: {
1589
+ readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "delete" | "set-password" | "get" | "update")[] | undefined;
1590
+ readonly session?: ("list" | "delete" | "revoke")[] | undefined;
1591
+ };
1592
+ permissions?: never | undefined;
1593
+ } | {
1594
+ permissions: {
1595
+ readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "delete" | "set-password" | "get" | "update")[] | undefined;
1596
+ readonly session?: ("list" | "delete" | "revoke")[] | undefined;
1597
+ };
1598
+ permission?: never | undefined;
1599
+ }) & {
1600
+ userId?: string | undefined;
1601
+ role?: "user" | "admin" | undefined;
1602
+ }) & {
1603
+ fetchOptions?: FetchOptions | undefined;
1604
+ }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
1605
+ error: null;
1606
+ success: boolean;
1607
+ }, {
1608
+ code?: string | undefined;
1609
+ message?: string | undefined;
1610
+ }, FetchOptions["throw"] extends true ? true : false>>;
1611
+ };
1612
+ } & {
1613
+ signIn: {
1614
+ social: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
1615
+ provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
1616
+ callbackURL?: string | undefined;
1617
+ newUserCallbackURL?: string | undefined;
1618
+ errorCallbackURL?: string | undefined;
1619
+ disableRedirect?: boolean | undefined;
1620
+ idToken?: {
1621
+ token: string;
1622
+ nonce?: string | undefined;
1623
+ accessToken?: string | undefined;
1624
+ refreshToken?: string | undefined;
1625
+ expiresAt?: number | undefined;
1626
+ } | undefined;
1627
+ scopes?: string[] | undefined;
1628
+ requestSignUp?: boolean | undefined;
1629
+ loginHint?: string | undefined;
1630
+ additionalData?: Record<string, any> | undefined;
1631
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
1632
+ provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
1633
+ callbackURL?: string | undefined;
1634
+ newUserCallbackURL?: string | undefined;
1635
+ errorCallbackURL?: string | undefined;
1636
+ disableRedirect?: boolean | undefined;
1637
+ idToken?: {
1638
+ token: string;
1639
+ nonce?: string | undefined;
1640
+ accessToken?: string | undefined;
1641
+ refreshToken?: string | undefined;
1642
+ expiresAt?: number | undefined;
1643
+ } | undefined;
1644
+ scopes?: string[] | undefined;
1645
+ requestSignUp?: boolean | undefined;
1646
+ loginHint?: string | undefined;
1647
+ additionalData?: Record<string, any> | undefined;
1648
+ } & {
1649
+ fetchOptions?: FetchOptions | undefined;
1650
+ }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<NonNullable<{
1651
+ redirect: boolean;
1652
+ url: string;
1653
+ } | {
1654
+ redirect: boolean;
1655
+ token: string;
1656
+ url: undefined;
1657
+ user: {
1658
+ id: string;
1659
+ createdAt: Date;
1660
+ updatedAt: Date;
1661
+ email: string;
1662
+ emailVerified: boolean;
1663
+ name: string;
1664
+ image?: string | null | undefined | undefined;
1665
+ };
1666
+ }>, {
1667
+ code?: string | undefined;
1668
+ message?: string | undefined;
1669
+ }, FetchOptions["throw"] extends true ? true : false>>;
1670
+ };
1671
+ } & {
1672
+ signUp: {
1673
+ email: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
1674
+ name: string;
1675
+ email: string;
1676
+ password: string;
1677
+ image?: string | undefined;
1678
+ callbackURL?: string | undefined;
1679
+ rememberMe?: boolean | undefined;
1680
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
1681
+ email: string;
1682
+ name: string;
1683
+ password: string;
1684
+ image?: string | undefined;
1685
+ callbackURL?: string | undefined;
1686
+ fetchOptions?: FetchOptions | undefined;
1687
+ } & {} & {} & {} & {
1688
+ metadata?: string | null | undefined;
1689
+ onboarding?: number | null | undefined;
1690
+ preferences?: string | null | undefined;
1691
+ flags?: string | null | undefined;
1692
+ locale?: string | null | undefined;
1693
+ stripeCustomerId?: string | null | undefined;
1694
+ }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<NonNullable<{
1695
+ token: null;
1696
+ user: {
1697
+ id: string;
1698
+ createdAt: Date;
1699
+ updatedAt: Date;
1700
+ email: string;
1701
+ emailVerified: boolean;
1702
+ name: string;
1703
+ image?: string | null | undefined | undefined;
1704
+ };
1705
+ } | {
1706
+ token: string;
1707
+ user: {
1708
+ id: string;
1709
+ createdAt: Date;
1710
+ updatedAt: Date;
1711
+ email: string;
1712
+ emailVerified: boolean;
1713
+ name: string;
1714
+ image?: string | null | undefined | undefined;
1715
+ };
1716
+ }>, {
1717
+ code?: string | undefined;
1718
+ message?: string | undefined;
1719
+ }, FetchOptions["throw"] extends true ? true : false>>;
1720
+ };
1721
+ } & {
1722
+ signIn: {
1723
+ email: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
1724
+ email: string;
1725
+ password: string;
1726
+ callbackURL?: string | undefined;
1727
+ rememberMe?: boolean | undefined;
1728
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
1729
+ email: string;
1730
+ password: string;
1731
+ callbackURL?: string | undefined;
1732
+ rememberMe?: boolean | undefined;
1733
+ } & {
1734
+ fetchOptions?: FetchOptions | undefined;
1735
+ }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
1736
+ redirect: boolean;
1737
+ token: string;
1738
+ url?: string | undefined;
1739
+ user: {
1740
+ id: string;
1741
+ createdAt: Date;
1742
+ updatedAt: Date;
1743
+ email: string;
1744
+ emailVerified: boolean;
1745
+ name: string;
1746
+ image?: string | null | undefined | undefined;
1747
+ };
1748
+ }, {
1749
+ code?: string | undefined;
1750
+ message?: string | undefined;
1751
+ }, FetchOptions["throw"] extends true ? true : false>>;
1752
+ };
1753
+ } & {
1754
+ updateUser: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<Partial<{}> & {
1755
+ name?: string | undefined;
1756
+ image?: string | undefined | null;
1757
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: _$better_auth0.Prettify<{
1758
+ image?: (string | null) | undefined;
476
1759
  name?: string | undefined;
477
1760
  fetchOptions?: FetchOptions | undefined;
478
- } & Partial<{}>> | undefined, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
1761
+ } & Partial<{} & {} & {} & {
1762
+ metadata?: string | null | undefined;
1763
+ onboarding?: number | null | undefined;
1764
+ preferences?: string | null | undefined;
1765
+ flags?: string | null | undefined;
1766
+ locale?: string | null | undefined;
1767
+ stripeCustomerId?: string | null | undefined;
1768
+ }>> | undefined, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
479
1769
  status: boolean;
480
1770
  }, {
481
1771
  code?: string | undefined;
@@ -517,6 +1807,16 @@ declare function createM5KAuthClient(baseURL?: string, plugins?: any[]): {
517
1807
  emailVerified: boolean;
518
1808
  name: string;
519
1809
  image?: string | null | undefined;
1810
+ banned: boolean | null | undefined;
1811
+ role?: string | null | undefined;
1812
+ banReason?: string | null | undefined;
1813
+ banExpires?: Date | null | undefined;
1814
+ metadata?: string | null | undefined;
1815
+ onboarding?: number | null | undefined;
1816
+ preferences?: string | null | undefined;
1817
+ flags?: string | null | undefined;
1818
+ locale?: string | null | undefined;
1819
+ stripeCustomerId?: string | null | undefined;
520
1820
  };
521
1821
  session: {
522
1822
  id: string;
@@ -527,11 +1827,146 @@ declare function createM5KAuthClient(baseURL?: string, plugins?: any[]): {
527
1827
  token: string;
528
1828
  ipAddress?: string | null | undefined;
529
1829
  userAgent?: string | null | undefined;
1830
+ activeOrganizationId?: string | null | undefined;
1831
+ activeTeamId?: string | null | undefined;
1832
+ impersonatedBy?: string | null | undefined;
1833
+ activeTeamRole?: string | null | undefined;
1834
+ activeOrganizationRole?: string | null | undefined;
1835
+ activeOrganizationType?: string | null | undefined;
530
1836
  };
531
1837
  } | null, {
532
1838
  code?: string | undefined;
533
1839
  message?: string | undefined;
534
1840
  }, FetchOptions["throw"] extends true ? true : false>>;
1841
+ } & {
1842
+ getLastUsedLoginMethod: () => string | null;
1843
+ clearLastUsedLoginMethod: () => void;
1844
+ isLastUsedLoginMethod: (method: string) => boolean;
1845
+ } & {
1846
+ $Infer: {
1847
+ ActiveOrganization: {
1848
+ members: {
1849
+ id: string;
1850
+ organizationId: string;
1851
+ role: "admin" | "member" | "owner";
1852
+ createdAt: Date;
1853
+ userId: string;
1854
+ teamId?: string | undefined | undefined;
1855
+ user: {
1856
+ id: string;
1857
+ email: string;
1858
+ name: string;
1859
+ image?: string | undefined;
1860
+ };
1861
+ }[];
1862
+ invitations: {
1863
+ id: string;
1864
+ organizationId: string;
1865
+ email: string;
1866
+ role: "admin" | "member" | "owner";
1867
+ status: _$better_auth_plugins0.InvitationStatus;
1868
+ inviterId: string;
1869
+ expiresAt: Date;
1870
+ createdAt: Date;
1871
+ teamId?: string | undefined | undefined;
1872
+ }[];
1873
+ teams: {
1874
+ id: string;
1875
+ name: string;
1876
+ organizationId: string;
1877
+ createdAt: Date;
1878
+ updatedAt?: Date | undefined;
1879
+ }[];
1880
+ } & {
1881
+ id: string;
1882
+ name: string;
1883
+ slug: string;
1884
+ createdAt: Date;
1885
+ logo?: string | null | undefined | undefined;
1886
+ metadata?: any;
1887
+ };
1888
+ Organization: {
1889
+ id: string;
1890
+ name: string;
1891
+ slug: string;
1892
+ createdAt: Date;
1893
+ logo?: string | null | undefined;
1894
+ metadata?: any;
1895
+ };
1896
+ Invitation: {
1897
+ id: string;
1898
+ organizationId: string;
1899
+ email: string;
1900
+ role: "admin" | "member" | "owner";
1901
+ status: _$better_auth_plugins0.InvitationStatus;
1902
+ inviterId: string;
1903
+ expiresAt: Date;
1904
+ createdAt: Date;
1905
+ teamId?: string | undefined | undefined;
1906
+ };
1907
+ Member: {
1908
+ id: string;
1909
+ organizationId: string;
1910
+ role: "admin" | "member" | "owner";
1911
+ createdAt: Date;
1912
+ userId: string;
1913
+ teamId?: string | undefined | undefined;
1914
+ user: {
1915
+ id: string;
1916
+ email: string;
1917
+ name: string;
1918
+ image?: string | undefined;
1919
+ };
1920
+ };
1921
+ Team: {
1922
+ id: string;
1923
+ name: string;
1924
+ organizationId: string;
1925
+ createdAt: Date;
1926
+ updatedAt?: Date | undefined;
1927
+ };
1928
+ };
1929
+ organization: {
1930
+ checkRolePermission: <R extends "admin" | "member" | "owner">(data: ({
1931
+ permission: {
1932
+ readonly organization?: ("delete" | "update")[] | undefined;
1933
+ readonly member?: ("create" | "delete" | "update")[] | undefined;
1934
+ readonly invitation?: ("create" | "cancel")[] | undefined;
1935
+ readonly team?: ("create" | "delete" | "update")[] | undefined;
1936
+ readonly ac?: ("create" | "delete" | "update" | "read")[] | undefined;
1937
+ };
1938
+ permissions?: never | undefined;
1939
+ } | {
1940
+ permissions: {
1941
+ readonly organization?: ("delete" | "update")[] | undefined;
1942
+ readonly member?: ("create" | "delete" | "update")[] | undefined;
1943
+ readonly invitation?: ("create" | "cancel")[] | undefined;
1944
+ readonly team?: ("create" | "delete" | "update")[] | undefined;
1945
+ readonly ac?: ("create" | "delete" | "update" | "read")[] | undefined;
1946
+ };
1947
+ permission?: never | undefined;
1948
+ }) & {
1949
+ role: R;
1950
+ }) => boolean;
1951
+ };
1952
+ } & {
1953
+ admin: {
1954
+ checkRolePermission: <R extends "user" | "admin">(data: ({
1955
+ permission: {
1956
+ readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "delete" | "set-password" | "get" | "update")[] | undefined;
1957
+ readonly session?: ("list" | "delete" | "revoke")[] | undefined;
1958
+ };
1959
+ permissions?: never | undefined;
1960
+ } | {
1961
+ permissions: {
1962
+ readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "delete" | "set-password" | "get" | "update")[] | undefined;
1963
+ readonly session?: ("list" | "delete" | "revoke")[] | undefined;
1964
+ };
1965
+ permission?: never | undefined;
1966
+ }) & {
1967
+ role: R;
1968
+ }) => boolean;
1969
+ };
535
1970
  } & {
536
1971
  useSession: () => {
537
1972
  data: {
@@ -543,6 +1978,16 @@ declare function createM5KAuthClient(baseURL?: string, plugins?: any[]): {
543
1978
  emailVerified: boolean;
544
1979
  name: string;
545
1980
  image?: string | null | undefined;
1981
+ banned: boolean | null | undefined;
1982
+ role?: string | null | undefined;
1983
+ banReason?: string | null | undefined;
1984
+ banExpires?: Date | null | undefined;
1985
+ metadata?: string | null | undefined;
1986
+ onboarding?: number | null | undefined;
1987
+ preferences?: string | null | undefined;
1988
+ flags?: string | null | undefined;
1989
+ locale?: string | null | undefined;
1990
+ stripeCustomerId?: string | null | undefined;
546
1991
  };
547
1992
  session: {
548
1993
  id: string;
@@ -553,6 +1998,12 @@ declare function createM5KAuthClient(baseURL?: string, plugins?: any[]): {
553
1998
  token: string;
554
1999
  ipAddress?: string | null | undefined;
555
2000
  userAgent?: string | null | undefined;
2001
+ activeOrganizationId?: string | null | undefined;
2002
+ activeTeamId?: string | null | undefined;
2003
+ impersonatedBy?: string | null | undefined;
2004
+ activeTeamRole?: string | null | undefined;
2005
+ activeOrganizationRole?: string | null | undefined;
2006
+ activeOrganizationType?: string | null | undefined;
556
2007
  };
557
2008
  } | null;
558
2009
  isPending: boolean;
@@ -572,6 +2023,16 @@ declare function createM5KAuthClient(baseURL?: string, plugins?: any[]): {
572
2023
  emailVerified: boolean;
573
2024
  name: string;
574
2025
  image?: string | null | undefined;
2026
+ banned: boolean | null | undefined;
2027
+ role?: string | null | undefined;
2028
+ banReason?: string | null | undefined;
2029
+ banExpires?: Date | null | undefined;
2030
+ metadata?: string | null | undefined;
2031
+ onboarding?: number | null | undefined;
2032
+ preferences?: string | null | undefined;
2033
+ flags?: string | null | undefined;
2034
+ locale?: string | null | undefined;
2035
+ stripeCustomerId?: string | null | undefined;
575
2036
  };
576
2037
  session: {
577
2038
  id: string;
@@ -582,6 +2043,12 @@ declare function createM5KAuthClient(baseURL?: string, plugins?: any[]): {
582
2043
  token: string;
583
2044
  ipAddress?: string | null | undefined;
584
2045
  userAgent?: string | null | undefined;
2046
+ activeOrganizationId?: string | null | undefined;
2047
+ activeTeamId?: string | null | undefined;
2048
+ impersonatedBy?: string | null | undefined;
2049
+ activeTeamRole?: string | null | undefined;
2050
+ activeOrganizationRole?: string | null | undefined;
2051
+ activeOrganizationType?: string | null | undefined;
585
2052
  };
586
2053
  };
587
2054
  };
@@ -657,8 +2124,84 @@ declare function createM5KAuthClient(baseURL?: string, plugins?: any[]): {
657
2124
  atoms: Record<string, _$better_auth_client0.WritableAtom<any>>;
658
2125
  };
659
2126
  $ERROR_CODES: {
660
- readonly USER_NOT_FOUND: "User not found";
2127
+ readonly YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_ORGANIZATION: "You are not allowed to create a new organization";
2128
+ readonly YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_ORGANIZATIONS: "You have reached the maximum number of organizations";
2129
+ readonly ORGANIZATION_ALREADY_EXISTS: "Organization already exists";
2130
+ readonly ORGANIZATION_SLUG_ALREADY_TAKEN: "Organization slug already taken";
2131
+ readonly ORGANIZATION_NOT_FOUND: "Organization not found";
2132
+ readonly USER_IS_NOT_A_MEMBER_OF_THE_ORGANIZATION: "User is not a member of the organization";
2133
+ readonly YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_ORGANIZATION: "You are not allowed to update this organization";
2134
+ readonly YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_ORGANIZATION: "You are not allowed to delete this organization";
2135
+ readonly NO_ACTIVE_ORGANIZATION: "No active organization";
2136
+ readonly USER_IS_ALREADY_A_MEMBER_OF_THIS_ORGANIZATION: "User is already a member of this organization";
2137
+ readonly MEMBER_NOT_FOUND: "Member not found";
2138
+ readonly ROLE_NOT_FOUND: "Role not found";
2139
+ readonly YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM: "You are not allowed to create a new team";
2140
+ readonly TEAM_ALREADY_EXISTS: "Team already exists";
2141
+ readonly TEAM_NOT_FOUND: "Team not found";
2142
+ readonly YOU_CANNOT_LEAVE_THE_ORGANIZATION_AS_THE_ONLY_OWNER: "You cannot leave the organization as the only owner";
2143
+ readonly YOU_CANNOT_LEAVE_THE_ORGANIZATION_WITHOUT_AN_OWNER: "You cannot leave the organization without an owner";
2144
+ readonly YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_MEMBER: "You are not allowed to delete this member";
2145
+ readonly YOU_ARE_NOT_ALLOWED_TO_INVITE_USERS_TO_THIS_ORGANIZATION: "You are not allowed to invite users to this organization";
2146
+ readonly USER_IS_ALREADY_INVITED_TO_THIS_ORGANIZATION: "User is already invited to this organization";
2147
+ readonly INVITATION_NOT_FOUND: "Invitation not found";
2148
+ readonly YOU_ARE_NOT_THE_RECIPIENT_OF_THE_INVITATION: "You are not the recipient of the invitation";
2149
+ readonly EMAIL_VERIFICATION_REQUIRED_BEFORE_ACCEPTING_OR_REJECTING_INVITATION: "Email verification required before accepting or rejecting invitation";
2150
+ readonly YOU_ARE_NOT_ALLOWED_TO_CANCEL_THIS_INVITATION: "You are not allowed to cancel this invitation";
2151
+ readonly INVITER_IS_NO_LONGER_A_MEMBER_OF_THE_ORGANIZATION: "Inviter is no longer a member of the organization";
2152
+ readonly YOU_ARE_NOT_ALLOWED_TO_INVITE_USER_WITH_THIS_ROLE: "You are not allowed to invite a user with this role";
2153
+ readonly FAILED_TO_RETRIEVE_INVITATION: "Failed to retrieve invitation";
2154
+ readonly YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_TEAMS: "You have reached the maximum number of teams";
2155
+ readonly UNABLE_TO_REMOVE_LAST_TEAM: "Unable to remove last team";
2156
+ readonly YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_MEMBER: "You are not allowed to update this member";
2157
+ readonly ORGANIZATION_MEMBERSHIP_LIMIT_REACHED: "Organization membership limit reached";
2158
+ readonly YOU_ARE_NOT_ALLOWED_TO_CREATE_TEAMS_IN_THIS_ORGANIZATION: "You are not allowed to create teams in this organization";
2159
+ readonly YOU_ARE_NOT_ALLOWED_TO_DELETE_TEAMS_IN_THIS_ORGANIZATION: "You are not allowed to delete teams in this organization";
2160
+ readonly YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_TEAM: "You are not allowed to update this team";
2161
+ readonly YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_TEAM: "You are not allowed to delete this team";
2162
+ readonly INVITATION_LIMIT_REACHED: "Invitation limit reached";
2163
+ readonly TEAM_MEMBER_LIMIT_REACHED: "Team member limit reached";
2164
+ readonly USER_IS_NOT_A_MEMBER_OF_THE_TEAM: "User is not a member of the team";
2165
+ readonly YOU_CAN_NOT_ACCESS_THE_MEMBERS_OF_THIS_TEAM: "You are not allowed to list the members of this team";
2166
+ readonly YOU_DO_NOT_HAVE_AN_ACTIVE_TEAM: "You do not have an active team";
2167
+ readonly YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM_MEMBER: "You are not allowed to create a new member";
2168
+ readonly YOU_ARE_NOT_ALLOWED_TO_REMOVE_A_TEAM_MEMBER: "You are not allowed to remove a team member";
2169
+ readonly YOU_ARE_NOT_ALLOWED_TO_ACCESS_THIS_ORGANIZATION: "You are not allowed to access this organization as an owner";
2170
+ readonly YOU_ARE_NOT_A_MEMBER_OF_THIS_ORGANIZATION: "You are not a member of this organization";
2171
+ readonly MISSING_AC_INSTANCE: "Dynamic Access Control requires a pre-defined ac instance on the server auth plugin. Read server logs for more information";
2172
+ readonly YOU_MUST_BE_IN_AN_ORGANIZATION_TO_CREATE_A_ROLE: "You must be in an organization to create a role";
2173
+ readonly YOU_ARE_NOT_ALLOWED_TO_CREATE_A_ROLE: "You are not allowed to create a role";
2174
+ readonly YOU_ARE_NOT_ALLOWED_TO_UPDATE_A_ROLE: "You are not allowed to update a role";
2175
+ readonly YOU_ARE_NOT_ALLOWED_TO_DELETE_A_ROLE: "You are not allowed to delete a role";
2176
+ readonly YOU_ARE_NOT_ALLOWED_TO_READ_A_ROLE: "You are not allowed to read a role";
2177
+ readonly YOU_ARE_NOT_ALLOWED_TO_LIST_A_ROLE: "You are not allowed to list a role";
2178
+ readonly YOU_ARE_NOT_ALLOWED_TO_GET_A_ROLE: "You are not allowed to get a role";
2179
+ readonly TOO_MANY_ROLES: "This organization has too many roles";
2180
+ readonly INVALID_RESOURCE: "The provided permission includes an invalid resource";
2181
+ readonly ROLE_NAME_IS_ALREADY_TAKEN: "That role name is already taken";
2182
+ readonly CANNOT_DELETE_A_PRE_DEFINED_ROLE: "Cannot delete a pre-defined role";
661
2183
  readonly FAILED_TO_CREATE_USER: "Failed to create user";
2184
+ readonly USER_ALREADY_EXISTS: "User already exists.";
2185
+ readonly USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL: "User already exists. Use another email.";
2186
+ readonly YOU_CANNOT_BAN_YOURSELF: "You cannot ban yourself";
2187
+ readonly YOU_ARE_NOT_ALLOWED_TO_CHANGE_USERS_ROLE: "You are not allowed to change users role";
2188
+ readonly YOU_ARE_NOT_ALLOWED_TO_CREATE_USERS: "You are not allowed to create users";
2189
+ readonly YOU_ARE_NOT_ALLOWED_TO_LIST_USERS: "You are not allowed to list users";
2190
+ readonly YOU_ARE_NOT_ALLOWED_TO_LIST_USERS_SESSIONS: "You are not allowed to list users sessions";
2191
+ readonly YOU_ARE_NOT_ALLOWED_TO_BAN_USERS: "You are not allowed to ban users";
2192
+ readonly YOU_ARE_NOT_ALLOWED_TO_IMPERSONATE_USERS: "You are not allowed to impersonate users";
2193
+ readonly YOU_ARE_NOT_ALLOWED_TO_REVOKE_USERS_SESSIONS: "You are not allowed to revoke users sessions";
2194
+ readonly YOU_ARE_NOT_ALLOWED_TO_DELETE_USERS: "You are not allowed to delete users";
2195
+ readonly YOU_ARE_NOT_ALLOWED_TO_SET_USERS_PASSWORD: "You are not allowed to set users password";
2196
+ readonly BANNED_USER: "You have been banned from this application";
2197
+ readonly YOU_ARE_NOT_ALLOWED_TO_GET_USER: "You are not allowed to get user";
2198
+ readonly NO_DATA_TO_UPDATE: "No data to update";
2199
+ readonly YOU_ARE_NOT_ALLOWED_TO_UPDATE_USERS: "You are not allowed to update users";
2200
+ readonly YOU_CANNOT_REMOVE_YOURSELF: "You cannot remove yourself";
2201
+ readonly YOU_ARE_NOT_ALLOWED_TO_SET_NON_EXISTENT_VALUE: "You are not allowed to set a non-existent role value";
2202
+ readonly YOU_CANNOT_IMPERSONATE_ADMINS: "You cannot impersonate admins";
2203
+ readonly INVALID_ROLE_TYPE: "Invalid role type";
2204
+ readonly USER_NOT_FOUND: "User not found";
662
2205
  readonly FAILED_TO_CREATE_SESSION: "Failed to create session";
663
2206
  readonly FAILED_TO_UPDATE_USER: "Failed to update user";
664
2207
  readonly FAILED_TO_GET_SESSION: "Failed to get session";
@@ -674,8 +2217,6 @@ declare function createM5KAuthClient(baseURL?: string, plugins?: any[]): {
674
2217
  readonly EMAIL_NOT_VERIFIED: "Email not verified";
675
2218
  readonly PASSWORD_TOO_SHORT: "Password too short";
676
2219
  readonly PASSWORD_TOO_LONG: "Password too long";
677
- readonly USER_ALREADY_EXISTS: "User already exists.";
678
- readonly USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL: "User already exists. Use another email.";
679
2220
  readonly EMAIL_CAN_NOT_BE_UPDATED: "Email can not be updated";
680
2221
  readonly CREDENTIAL_ACCOUNT_NOT_FOUND: "Credential account not found";
681
2222
  readonly SESSION_EXPIRED: "Session expired. Re-authenticate to perform this action.";