@meistrari/auth-core 1.3.0 → 1.4.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.
package/dist/index.d.mts CHANGED
@@ -1,18 +1,15 @@
1
- import * as better_auth_client from 'better-auth/client';
2
- import { BetterFetchOption } from 'better-auth/client';
1
+ import * as better_auth_plugins from 'better-auth/plugins';
3
2
  import * as better_auth from 'better-auth';
4
3
  import { JWTPayload } from 'better-auth';
5
- import * as better_auth_plugins from 'better-auth/plugins';
4
+ import { BetterFetchOption } from 'better-auth/client';
6
5
  import * as jose from 'jose';
7
6
  import * as _better_auth_sso from '@better-auth/sso';
8
- import * as better_call from 'better-call';
9
7
  import * as nanostores from 'nanostores';
10
8
  import * as _better_fetch_fetch from '@better-fetch/fetch';
11
9
  export { BetterFetchError as APIError } from '@better-fetch/fetch';
12
- import * as better_auth_client_plugins from 'better-auth/client/plugins';
13
10
 
14
11
  declare const ac: {
15
- newRole<K extends "member" | "access" | "organization" | "invitation" | "team" | "ac">(statements: better_auth_client.Subset<K, {
12
+ newRole<K extends "member" | "access" | "organization" | "invitation" | "team" | "ac">(statements: better_auth_plugins.Subset<K, {
16
13
  access: string[];
17
14
  organization: readonly ["update", "delete"];
18
15
  member: readonly ["create", "update", "delete"];
@@ -20,7 +17,7 @@ declare const ac: {
20
17
  team: readonly ["create", "update", "delete"];
21
18
  ac: readonly ["create", "read", "update", "delete"];
22
19
  }>): {
23
- authorize<K_1 extends K>(request: K_1 extends infer T extends K_2 ? { [key in T]?: better_auth_client.Subset<K, {
20
+ authorize<K_1 extends K>(request: K_1 extends infer T extends K_2 ? { [key in T]?: better_auth_plugins.Subset<K, {
24
21
  access: string[];
25
22
  organization: readonly ["update", "delete"];
26
23
  member: readonly ["create", "update", "delete"];
@@ -28,7 +25,7 @@ declare const ac: {
28
25
  team: readonly ["create", "update", "delete"];
29
26
  ac: readonly ["create", "read", "update", "delete"];
30
27
  }>[key] | {
31
- actions: better_auth_client.Subset<K, {
28
+ actions: better_auth_plugins.Subset<K, {
32
29
  access: string[];
33
30
  organization: readonly ["update", "delete"];
34
31
  member: readonly ["create", "update", "delete"];
@@ -37,8 +34,8 @@ declare const ac: {
37
34
  ac: readonly ["create", "read", "update", "delete"];
38
35
  }>[key];
39
36
  connector: "OR" | "AND";
40
- } | undefined; } : never, connector?: "OR" | "AND"): better_auth_client.AuthorizeResponse;
41
- statements: better_auth_client.Subset<K, {
37
+ } | undefined; } : never, connector?: "OR" | "AND"): better_auth_plugins.AuthorizeResponse;
38
+ statements: better_auth_plugins.Subset<K, {
42
39
  access: string[];
43
40
  organization: readonly ["update", "delete"];
44
41
  member: readonly ["create", "update", "delete"];
@@ -81,7 +78,7 @@ declare const Roles: {
81
78
  type Role = typeof Roles[keyof typeof Roles];
82
79
  declare const rolesAccessControl: {
83
80
  "org:admin": {
84
- authorize<K_1 extends "member" | "access" | "organization" | "invitation" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_client.Subset<"member" | "access" | "organization" | "invitation" | "team", {
81
+ authorize<K_1 extends "member" | "access" | "organization" | "invitation" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins.Subset<"member" | "access" | "organization" | "invitation" | "team", {
85
82
  access: string[];
86
83
  organization: readonly ["update", "delete"];
87
84
  member: readonly ["create", "update", "delete"];
@@ -89,7 +86,7 @@ declare const rolesAccessControl: {
89
86
  team: readonly ["create", "update", "delete"];
90
87
  ac: readonly ["create", "read", "update", "delete"];
91
88
  }>[key] | {
92
- actions: better_auth_client.Subset<"member" | "access" | "organization" | "invitation" | "team", {
89
+ actions: better_auth_plugins.Subset<"member" | "access" | "organization" | "invitation" | "team", {
93
90
  access: string[];
94
91
  organization: readonly ["update", "delete"];
95
92
  member: readonly ["create", "update", "delete"];
@@ -98,8 +95,8 @@ declare const rolesAccessControl: {
98
95
  ac: readonly ["create", "read", "update", "delete"];
99
96
  }>[key];
100
97
  connector: "OR" | "AND";
101
- } | undefined; } : never, connector?: "OR" | "AND"): better_auth_client.AuthorizeResponse;
102
- statements: better_auth_client.Subset<"member" | "access" | "organization" | "invitation" | "team", {
98
+ } | undefined; } : never, connector?: "OR" | "AND"): better_auth_plugins.AuthorizeResponse;
99
+ statements: better_auth_plugins.Subset<"member" | "access" | "organization" | "invitation" | "team", {
103
100
  access: string[];
104
101
  organization: readonly ["update", "delete"];
105
102
  member: readonly ["create", "update", "delete"];
@@ -109,7 +106,7 @@ declare const rolesAccessControl: {
109
106
  }>;
110
107
  };
111
108
  "org:member": {
112
- authorize<K_1 extends "access">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_client.Subset<"access", {
109
+ authorize<K_1 extends "access">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins.Subset<"access", {
113
110
  access: string[];
114
111
  organization: readonly ["update", "delete"];
115
112
  member: readonly ["create", "update", "delete"];
@@ -117,7 +114,7 @@ declare const rolesAccessControl: {
117
114
  team: readonly ["create", "update", "delete"];
118
115
  ac: readonly ["create", "read", "update", "delete"];
119
116
  }>[key] | {
120
- actions: better_auth_client.Subset<"access", {
117
+ actions: better_auth_plugins.Subset<"access", {
121
118
  access: string[];
122
119
  organization: readonly ["update", "delete"];
123
120
  member: readonly ["create", "update", "delete"];
@@ -126,8 +123,8 @@ declare const rolesAccessControl: {
126
123
  ac: readonly ["create", "read", "update", "delete"];
127
124
  }>[key];
128
125
  connector: "OR" | "AND";
129
- } | undefined; } : never, connector?: "OR" | "AND"): better_auth_client.AuthorizeResponse;
130
- statements: better_auth_client.Subset<"access", {
126
+ } | undefined; } : never, connector?: "OR" | "AND"): better_auth_plugins.AuthorizeResponse;
127
+ statements: better_auth_plugins.Subset<"access", {
131
128
  access: string[];
132
129
  organization: readonly ["update", "delete"];
133
130
  member: readonly ["create", "update", "delete"];
@@ -137,7 +134,7 @@ declare const rolesAccessControl: {
137
134
  }>;
138
135
  };
139
136
  "org:reviewer": {
140
- authorize<K_1 extends "access">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_client.Subset<"access", {
137
+ authorize<K_1 extends "access">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins.Subset<"access", {
141
138
  access: string[];
142
139
  organization: readonly ["update", "delete"];
143
140
  member: readonly ["create", "update", "delete"];
@@ -145,7 +142,7 @@ declare const rolesAccessControl: {
145
142
  team: readonly ["create", "update", "delete"];
146
143
  ac: readonly ["create", "read", "update", "delete"];
147
144
  }>[key] | {
148
- actions: better_auth_client.Subset<"access", {
145
+ actions: better_auth_plugins.Subset<"access", {
149
146
  access: string[];
150
147
  organization: readonly ["update", "delete"];
151
148
  member: readonly ["create", "update", "delete"];
@@ -154,8 +151,8 @@ declare const rolesAccessControl: {
154
151
  ac: readonly ["create", "read", "update", "delete"];
155
152
  }>[key];
156
153
  connector: "OR" | "AND";
157
- } | undefined; } : never, connector?: "OR" | "AND"): better_auth_client.AuthorizeResponse;
158
- statements: better_auth_client.Subset<"access", {
154
+ } | undefined; } : never, connector?: "OR" | "AND"): better_auth_plugins.AuthorizeResponse;
155
+ statements: better_auth_plugins.Subset<"access", {
159
156
  access: string[];
160
157
  organization: readonly ["update", "delete"];
161
158
  member: readonly ["create", "update", "delete"];
@@ -195,7 +192,7 @@ type JWTTokenPayload = JWTPayload & {
195
192
 
196
193
  declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOption): {
197
194
  useActiveOrganization: nanostores.PreinitializedWritableAtom<{
198
- data: better_auth_client_plugins.Prettify<{
195
+ data: better_auth.Prettify<{
199
196
  id: string;
200
197
  name: string;
201
198
  slug: string;
@@ -284,7 +281,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
284
281
  ":id": {
285
282
  members: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, {
286
283
  id: string;
287
- }>>(data_0?: better_auth_client_plugins.Prettify<{
284
+ }>>(data_0?: better_auth.Prettify<{
288
285
  query?: Record<string, any> | undefined;
289
286
  fetchOptions?: FetchOptions | undefined;
290
287
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
@@ -304,13 +301,13 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
304
301
  } & {
305
302
  handshake: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
306
303
  origin: string;
307
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
304
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
308
305
  query: {
309
306
  origin: string;
310
307
  };
311
308
  fetchOptions?: FetchOptions | undefined;
312
309
  }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
313
- status: ("OK" | "CREATED" | "ACCEPTED" | "NO_CONTENT" | "MULTIPLE_CHOICES" | "MOVED_PERMANENTLY" | "FOUND" | "SEE_OTHER" | "NOT_MODIFIED" | "TEMPORARY_REDIRECT" | "BAD_REQUEST" | "UNAUTHORIZED" | "PAYMENT_REQUIRED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_ALLOWED" | "NOT_ACCEPTABLE" | "PROXY_AUTHENTICATION_REQUIRED" | "REQUEST_TIMEOUT" | "CONFLICT" | "GONE" | "LENGTH_REQUIRED" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "URI_TOO_LONG" | "UNSUPPORTED_MEDIA_TYPE" | "RANGE_NOT_SATISFIABLE" | "EXPECTATION_FAILED" | "I'M_A_TEAPOT" | "MISDIRECTED_REQUEST" | "UNPROCESSABLE_ENTITY" | "LOCKED" | "FAILED_DEPENDENCY" | "TOO_EARLY" | "UPGRADE_REQUIRED" | "PRECONDITION_REQUIRED" | "TOO_MANY_REQUESTS" | "REQUEST_HEADER_FIELDS_TOO_LARGE" | "UNAVAILABLE_FOR_LEGAL_REASONS" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "BAD_GATEWAY" | "SERVICE_UNAVAILABLE" | "GATEWAY_TIMEOUT" | "HTTP_VERSION_NOT_SUPPORTED" | "VARIANT_ALSO_NEGOTIATES" | "INSUFFICIENT_STORAGE" | "LOOP_DETECTED" | "NOT_EXTENDED" | "NETWORK_AUTHENTICATION_REQUIRED") | better_call.Status;
310
+ status: ("OK" | "CREATED" | "ACCEPTED" | "NO_CONTENT" | "MULTIPLE_CHOICES" | "MOVED_PERMANENTLY" | "FOUND" | "SEE_OTHER" | "NOT_MODIFIED" | "TEMPORARY_REDIRECT" | "BAD_REQUEST" | "UNAUTHORIZED" | "PAYMENT_REQUIRED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_ALLOWED" | "NOT_ACCEPTABLE" | "PROXY_AUTHENTICATION_REQUIRED" | "REQUEST_TIMEOUT" | "CONFLICT" | "GONE" | "LENGTH_REQUIRED" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "URI_TOO_LONG" | "UNSUPPORTED_MEDIA_TYPE" | "RANGE_NOT_SATISFIABLE" | "EXPECTATION_FAILED" | "I'M_A_TEAPOT" | "MISDIRECTED_REQUEST" | "UNPROCESSABLE_ENTITY" | "LOCKED" | "FAILED_DEPENDENCY" | "TOO_EARLY" | "UPGRADE_REQUIRED" | "PRECONDITION_REQUIRED" | "TOO_MANY_REQUESTS" | "REQUEST_HEADER_FIELDS_TOO_LARGE" | "UNAVAILABLE_FOR_LEGAL_REASONS" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "BAD_GATEWAY" | "SERVICE_UNAVAILABLE" | "GATEWAY_TIMEOUT" | "HTTP_VERSION_NOT_SUPPORTED" | "VARIANT_ALSO_NEGOTIATES" | "INSUFFICIENT_STORAGE" | "LOOP_DETECTED" | "NOT_EXTENDED" | "NETWORK_AUTHENTICATION_REQUIRED") | better_auth.Status;
314
311
  body: ({
315
312
  message?: string;
316
313
  code?: string;
@@ -330,7 +327,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
330
327
  handshake: {
331
328
  noncePayload: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
332
329
  nonce: string;
333
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
330
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
334
331
  query: {
335
332
  nonce: string;
336
333
  };
@@ -351,7 +348,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
351
348
  logo?: string | undefined;
352
349
  metadata?: Record<string, any> | undefined;
353
350
  keepCurrentActiveOrganization?: boolean | undefined;
354
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
351
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
355
352
  name: string;
356
353
  slug: string;
357
354
  userId?: string | undefined;
@@ -391,7 +388,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
391
388
  metadata?: Record<string, any> | undefined;
392
389
  } & Partial<{}>;
393
390
  organizationId?: string | undefined;
394
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
391
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
395
392
  data: {
396
393
  name?: string | undefined;
397
394
  slug?: string | undefined;
@@ -419,7 +416,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
419
416
  organization: {
420
417
  delete: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
421
418
  organizationId: string;
422
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
419
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
423
420
  organizationId: string;
424
421
  } & {
425
422
  fetchOptions?: FetchOptions | undefined;
@@ -440,7 +437,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
440
437
  setActive: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
441
438
  organizationId?: string | null | undefined;
442
439
  organizationSlug?: string | undefined;
443
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
440
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
444
441
  organizationId?: string | null | undefined;
445
442
  organizationSlug?: string | undefined;
446
443
  } & {
@@ -496,7 +493,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
496
493
  organizationId?: string | undefined;
497
494
  organizationSlug?: string | undefined;
498
495
  membersLimit?: string | number | undefined;
499
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
496
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
500
497
  query?: {
501
498
  organizationId?: string | undefined;
502
499
  organizationSlug?: string | undefined;
@@ -550,7 +547,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
550
547
  };
551
548
  } & {
552
549
  organization: {
553
- 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<{
550
+ list: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
554
551
  query?: Record<string, any> | undefined;
555
552
  fetchOptions?: FetchOptions | undefined;
556
553
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
@@ -574,7 +571,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
574
571
  resend?: boolean | undefined;
575
572
  } & {
576
573
  teamId?: (string | string[]) | undefined;
577
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
574
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
578
575
  email: string;
579
576
  role: "org:admin" | "org:member" | "org:reviewer" | ("org:admin" | "org:member" | "org:reviewer")[];
580
577
  organizationId?: string | undefined;
@@ -602,7 +599,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
602
599
  organization: {
603
600
  cancelInvitation: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
604
601
  invitationId: string;
605
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
602
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
606
603
  invitationId: string;
607
604
  } & {
608
605
  fetchOptions?: FetchOptions | undefined;
@@ -625,7 +622,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
625
622
  organization: {
626
623
  acceptInvitation: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
627
624
  invitationId: string;
628
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
625
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
629
626
  invitationId: string;
630
627
  } & {
631
628
  fetchOptions?: FetchOptions | undefined;
@@ -657,7 +654,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
657
654
  organization: {
658
655
  getInvitation: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
659
656
  id: string;
660
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
657
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
661
658
  query: {
662
659
  id: string;
663
660
  };
@@ -685,7 +682,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
685
682
  organization: {
686
683
  rejectInvitation: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
687
684
  invitationId: string;
688
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
685
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
689
686
  invitationId: string;
690
687
  } & {
691
688
  fetchOptions?: FetchOptions | undefined;
@@ -710,7 +707,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
710
707
  organization: {
711
708
  listInvitations: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
712
709
  organizationId?: string | undefined;
713
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
710
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
714
711
  query?: {
715
712
  organizationId?: string | undefined;
716
713
  } | undefined;
@@ -732,7 +729,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
732
729
  };
733
730
  } & {
734
731
  organization: {
735
- 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<{
732
+ getActiveMember: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
736
733
  query?: Record<string, any> | undefined;
737
734
  fetchOptions?: FetchOptions | undefined;
738
735
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<Omit<{
@@ -766,7 +763,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
766
763
  organization: {
767
764
  checkSlug: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
768
765
  slug: string;
769
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
766
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
770
767
  slug: string;
771
768
  } & {
772
769
  fetchOptions?: FetchOptions | undefined;
@@ -782,7 +779,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
782
779
  removeMember: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
783
780
  memberIdOrEmail: string;
784
781
  organizationId?: string | undefined;
785
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
782
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
786
783
  memberIdOrEmail: string;
787
784
  organizationId?: string | undefined;
788
785
  } & {
@@ -810,11 +807,11 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
810
807
  } & {
811
808
  organization: {
812
809
  updateMemberRole: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
813
- role: better_auth_client_plugins.LiteralString | "org:admin" | "org:member" | "org:reviewer" | better_auth_client_plugins.LiteralString[] | ("org:admin" | "org:member" | "org:reviewer")[];
810
+ role: better_auth.LiteralString | "org:admin" | "org:member" | "org:reviewer" | better_auth.LiteralString[] | ("org:admin" | "org:member" | "org:reviewer")[];
814
811
  memberId: string;
815
812
  organizationId?: string | undefined;
816
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
817
- role: better_auth_client_plugins.LiteralString | "org:admin" | "org:member" | "org:reviewer" | better_auth_client_plugins.LiteralString[] | ("org:admin" | "org:member" | "org:reviewer")[];
813
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
814
+ role: better_auth.LiteralString | "org:admin" | "org:member" | "org:reviewer" | better_auth.LiteralString[] | ("org:admin" | "org:member" | "org:reviewer")[];
818
815
  memberId: string;
819
816
  organizationId?: string | undefined;
820
817
  } & {
@@ -840,7 +837,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
840
837
  organization: {
841
838
  leave: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
842
839
  organizationId: string;
843
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
840
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
844
841
  organizationId: string;
845
842
  } & {
846
843
  fetchOptions?: FetchOptions | undefined;
@@ -875,12 +872,12 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
875
872
  organization: {
876
873
  listUserInvitations: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
877
874
  email?: string | undefined;
878
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
875
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
879
876
  query?: {
880
877
  email?: string | undefined;
881
878
  } | undefined;
882
879
  fetchOptions?: FetchOptions | undefined;
883
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
880
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<(Omit<{
884
881
  id: string;
885
882
  organizationId: string;
886
883
  email: string;
@@ -890,7 +887,18 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
890
887
  expiresAt: Date;
891
888
  createdAt: Date;
892
889
  teamId?: string | undefined | undefined;
893
- }[], {
890
+ } & {
891
+ organization: {
892
+ id: string;
893
+ name: string;
894
+ slug: string;
895
+ createdAt: Date;
896
+ logo?: string | null | undefined | undefined;
897
+ metadata?: any;
898
+ };
899
+ }, "organization"> & {
900
+ organizationName: string;
901
+ })[], {
894
902
  code?: string | undefined;
895
903
  message?: string | undefined;
896
904
  }, FetchOptions["throw"] extends true ? true : true>>;
@@ -907,7 +915,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
907
915
  filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | undefined;
908
916
  organizationId?: string | undefined;
909
917
  organizationSlug?: string | undefined;
910
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
918
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
911
919
  query?: {
912
920
  limit?: string | number | undefined;
913
921
  offset?: string | number | undefined;
@@ -954,7 +962,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
954
962
  userId?: string | undefined;
955
963
  organizationId?: string | undefined;
956
964
  organizationSlug?: string | undefined;
957
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
965
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
958
966
  query?: {
959
967
  userId?: string | undefined;
960
968
  organizationId?: string | undefined;
@@ -992,7 +1000,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
992
1000
  permission?: never | undefined;
993
1001
  }) & {
994
1002
  organizationId?: string | undefined;
995
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<(({
1003
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<(({
996
1004
  permission: {
997
1005
  access?: string[] | undefined;
998
1006
  organization?: ("update" | "delete")[] | undefined;
@@ -1029,7 +1037,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
1029
1037
  createTeam: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1030
1038
  name: string;
1031
1039
  organizationId?: string | undefined;
1032
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1040
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1033
1041
  name: string;
1034
1042
  organizationId?: string | undefined;
1035
1043
  } & {
@@ -1049,7 +1057,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
1049
1057
  organization: {
1050
1058
  listTeams: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
1051
1059
  organizationId?: string | undefined;
1052
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
1060
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
1053
1061
  query?: {
1054
1062
  organizationId?: string | undefined;
1055
1063
  } | undefined;
@@ -1070,7 +1078,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
1070
1078
  removeTeam: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1071
1079
  teamId: string;
1072
1080
  organizationId?: string | undefined;
1073
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1081
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1074
1082
  teamId: string;
1075
1083
  organizationId?: string | undefined;
1076
1084
  } & {
@@ -1090,7 +1098,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
1090
1098
  name: string;
1091
1099
  organizationId: string;
1092
1100
  }>;
1093
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1101
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1094
1102
  teamId: string;
1095
1103
  data: Partial<{
1096
1104
  name: string;
@@ -1113,7 +1121,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
1113
1121
  organization: {
1114
1122
  setActiveTeam: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1115
1123
  teamId?: string | null | undefined;
1116
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
1124
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
1117
1125
  teamId?: string | null | undefined;
1118
1126
  } & {
1119
1127
  fetchOptions?: FetchOptions | undefined;
@@ -1130,7 +1138,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
1130
1138
  };
1131
1139
  } & {
1132
1140
  organization: {
1133
- listUserTeams: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
1141
+ listUserTeams: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
1134
1142
  query?: Record<string, any> | undefined;
1135
1143
  fetchOptions?: FetchOptions | undefined;
1136
1144
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
@@ -1148,7 +1156,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
1148
1156
  organization: {
1149
1157
  listTeamMembers: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
1150
1158
  teamId?: string | undefined;
1151
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
1159
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
1152
1160
  query?: {
1153
1161
  teamId?: string | undefined;
1154
1162
  } | undefined;
@@ -1168,7 +1176,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
1168
1176
  addTeamMember: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1169
1177
  teamId: string;
1170
1178
  userId: unknown;
1171
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1179
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1172
1180
  teamId: string;
1173
1181
  userId: unknown;
1174
1182
  } & {
@@ -1188,7 +1196,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
1188
1196
  removeTeamMember: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1189
1197
  teamId: string;
1190
1198
  userId: unknown;
1191
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1199
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1192
1200
  teamId: string;
1193
1201
  userId: unknown;
1194
1202
  } & {
@@ -1207,7 +1215,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
1207
1215
  metadata: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
1208
1216
  providerId: string;
1209
1217
  format?: "json" | "xml" | undefined;
1210
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1218
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1211
1219
  query: {
1212
1220
  providerId: string;
1213
1221
  format?: "json" | "xml" | undefined;
@@ -1235,6 +1243,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
1235
1243
  tokenEndpointAuthentication?: "client_secret_post" | "client_secret_basic" | undefined;
1236
1244
  jwksEndpoint?: string | undefined;
1237
1245
  discoveryEndpoint?: string | undefined;
1246
+ skipDiscovery?: boolean | undefined;
1238
1247
  scopes?: string[] | undefined;
1239
1248
  pkce?: boolean | undefined;
1240
1249
  mapping?: {
@@ -1294,7 +1303,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
1294
1303
  } | undefined;
1295
1304
  organizationId?: string | undefined;
1296
1305
  overrideUserInfo?: boolean | undefined;
1297
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1306
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1298
1307
  providerId: string;
1299
1308
  issuer: string;
1300
1309
  domain: string;
@@ -1307,6 +1316,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
1307
1316
  tokenEndpointAuthentication?: "client_secret_post" | "client_secret_basic" | undefined;
1308
1317
  jwksEndpoint?: string | undefined;
1309
1318
  discoveryEndpoint?: string | undefined;
1319
+ skipDiscovery?: boolean | undefined;
1310
1320
  scopes?: string[] | undefined;
1311
1321
  pkce?: boolean | undefined;
1312
1322
  mapping?: {
@@ -1394,8 +1404,8 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
1394
1404
  scopes?: string[] | undefined;
1395
1405
  loginHint?: string | undefined;
1396
1406
  requestSignUp?: boolean | undefined;
1397
- providerType?: "oidc" | "saml" | undefined;
1398
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1407
+ providerType?: "saml" | "oidc" | undefined;
1408
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1399
1409
  callbackURL: string;
1400
1410
  email?: string | undefined;
1401
1411
  organizationSlug?: string | undefined;
@@ -1406,7 +1416,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
1406
1416
  scopes?: string[] | undefined;
1407
1417
  loginHint?: string | undefined;
1408
1418
  requestSignUp?: boolean | undefined;
1409
- providerType?: "oidc" | "saml" | undefined;
1419
+ providerType?: "saml" | "oidc" | undefined;
1410
1420
  } & {
1411
1421
  fetchOptions?: FetchOptions | undefined;
1412
1422
  }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
@@ -1422,7 +1432,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
1422
1432
  enable: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1423
1433
  password: string;
1424
1434
  issuer?: string | undefined;
1425
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1435
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1426
1436
  password: string;
1427
1437
  issuer?: string | undefined;
1428
1438
  } & {
@@ -1439,7 +1449,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
1439
1449
  twoFactor: {
1440
1450
  disable: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1441
1451
  password: string;
1442
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1452
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1443
1453
  password: string;
1444
1454
  } & {
1445
1455
  fetchOptions?: FetchOptions | undefined;
@@ -1456,7 +1466,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
1456
1466
  code: string;
1457
1467
  disableSession?: boolean | undefined;
1458
1468
  trustDevice?: boolean | undefined;
1459
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1469
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1460
1470
  code: string;
1461
1471
  disableSession?: boolean | undefined;
1462
1472
  trustDevice?: boolean | undefined;
@@ -1482,7 +1492,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
1482
1492
  twoFactor: {
1483
1493
  generateBackupCodes: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1484
1494
  password: string;
1485
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1495
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1486
1496
  password: string;
1487
1497
  } & {
1488
1498
  fetchOptions?: FetchOptions | undefined;
@@ -1498,7 +1508,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
1498
1508
  twoFactor: {
1499
1509
  sendOtp: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1500
1510
  trustDevice?: boolean | undefined;
1501
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
1511
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
1502
1512
  query?: Record<string, any> | undefined;
1503
1513
  fetchOptions?: FetchOptions | undefined;
1504
1514
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
@@ -1513,7 +1523,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
1513
1523
  verifyOtp: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1514
1524
  code: string;
1515
1525
  trustDevice?: boolean | undefined;
1516
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1526
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1517
1527
  code: string;
1518
1528
  trustDevice?: boolean | undefined;
1519
1529
  } & {
@@ -1538,7 +1548,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
1538
1548
  twoFactor: {
1539
1549
  getTotpUri: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1540
1550
  password: string;
1541
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1551
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1542
1552
  password: string;
1543
1553
  } & {
1544
1554
  fetchOptions?: FetchOptions | undefined;
@@ -1554,7 +1564,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
1554
1564
  verifyTotp: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1555
1565
  code: string;
1556
1566
  trustDevice?: boolean | undefined;
1557
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1567
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1558
1568
  code: string;
1559
1569
  trustDevice?: boolean | undefined;
1560
1570
  } & {
@@ -1576,15 +1586,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
1576
1586
  }, FetchOptions["throw"] extends true ? true : true>>;
1577
1587
  };
1578
1588
  } & {
1579
- jwks: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
1580
- query?: Record<string, any> | undefined;
1581
- fetchOptions?: FetchOptions | undefined;
1582
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<jose.JSONWebKeySet, {
1583
- code?: string | undefined;
1584
- message?: string | undefined;
1585
- }, FetchOptions["throw"] extends true ? true : true>>;
1586
- } & {
1587
- token: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
1589
+ token: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
1588
1590
  query?: Record<string, any> | undefined;
1589
1591
  fetchOptions?: FetchOptions | undefined;
1590
1592
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
@@ -1608,7 +1610,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
1608
1610
  rateLimitMax?: number | undefined;
1609
1611
  rateLimitEnabled?: boolean | undefined;
1610
1612
  permissions?: Record<string, string[]> | undefined;
1611
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
1613
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
1612
1614
  name?: string | undefined;
1613
1615
  expiresIn?: number | null | undefined;
1614
1616
  userId?: unknown;
@@ -1654,7 +1656,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
1654
1656
  apiKey: {
1655
1657
  get: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
1656
1658
  id: string;
1657
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1659
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1658
1660
  query: {
1659
1661
  id: string;
1660
1662
  };
@@ -1703,7 +1705,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
1703
1705
  rateLimitTimeWindow?: number | undefined;
1704
1706
  rateLimitMax?: number | undefined;
1705
1707
  permissions?: Record<string, string[]> | null | undefined;
1706
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1708
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1707
1709
  keyId: string;
1708
1710
  userId?: unknown;
1709
1711
  name?: string | undefined;
@@ -1751,7 +1753,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
1751
1753
  apiKey: {
1752
1754
  delete: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1753
1755
  keyId: string;
1754
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1756
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1755
1757
  keyId: string;
1756
1758
  } & {
1757
1759
  fetchOptions?: FetchOptions | undefined;
@@ -1764,7 +1766,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
1764
1766
  };
1765
1767
  } & {
1766
1768
  apiKey: {
1767
- 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<{
1769
+ list: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
1768
1770
  query?: Record<string, any> | undefined;
1769
1771
  fetchOptions?: FetchOptions | undefined;
1770
1772
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
@@ -1799,10 +1801,10 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
1799
1801
  admin: {
1800
1802
  setRole: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1801
1803
  userId: string;
1802
- role: "admin" | "user" | ("admin" | "user")[];
1803
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1804
+ role: "user" | "admin" | ("user" | "admin")[];
1805
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1804
1806
  userId: string;
1805
- role: "admin" | "user" | ("admin" | "user")[];
1807
+ role: "user" | "admin" | ("user" | "admin")[];
1806
1808
  } & {
1807
1809
  fetchOptions?: FetchOptions | undefined;
1808
1810
  }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
@@ -1816,7 +1818,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
1816
1818
  admin: {
1817
1819
  getUser: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
1818
1820
  id: string;
1819
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1821
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1820
1822
  query: {
1821
1823
  id: string;
1822
1824
  };
@@ -1840,13 +1842,13 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
1840
1842
  email: string;
1841
1843
  password: string;
1842
1844
  name: string;
1843
- role?: "admin" | "user" | ("admin" | "user")[] | undefined;
1845
+ role?: "user" | "admin" | ("user" | "admin")[] | undefined;
1844
1846
  data?: Record<string, any> | undefined;
1845
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1847
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1846
1848
  email: string;
1847
1849
  password: string;
1848
1850
  name: string;
1849
- role?: "admin" | "user" | ("admin" | "user")[] | undefined;
1851
+ role?: "user" | "admin" | ("user" | "admin")[] | undefined;
1850
1852
  data?: Record<string, any> | undefined;
1851
1853
  } & {
1852
1854
  fetchOptions?: FetchOptions | undefined;
@@ -1862,7 +1864,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
1862
1864
  updateUser: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1863
1865
  userId: unknown;
1864
1866
  data: Record<any, any>;
1865
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1867
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1866
1868
  userId: unknown;
1867
1869
  data: Record<any, any>;
1868
1870
  } & {
@@ -1885,7 +1887,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
1885
1887
  filterField?: string | undefined;
1886
1888
  filterValue?: string | number | boolean | undefined;
1887
1889
  filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | undefined;
1888
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1890
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1889
1891
  query: {
1890
1892
  searchValue?: string | undefined;
1891
1893
  searchField?: "name" | "email" | undefined;
@@ -1916,7 +1918,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
1916
1918
  admin: {
1917
1919
  listUserSessions: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1918
1920
  userId: unknown;
1919
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1921
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1920
1922
  userId: unknown;
1921
1923
  } & {
1922
1924
  fetchOptions?: FetchOptions | undefined;
@@ -1931,7 +1933,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
1931
1933
  admin: {
1932
1934
  unbanUser: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1933
1935
  userId: unknown;
1934
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1936
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1935
1937
  userId: unknown;
1936
1938
  } & {
1937
1939
  fetchOptions?: FetchOptions | undefined;
@@ -1956,7 +1958,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
1956
1958
  userId: unknown;
1957
1959
  banReason?: string | undefined;
1958
1960
  banExpiresIn?: number | undefined;
1959
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1961
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1960
1962
  userId: unknown;
1961
1963
  banReason?: string | undefined;
1962
1964
  banExpiresIn?: number | undefined;
@@ -1981,7 +1983,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
1981
1983
  admin: {
1982
1984
  impersonateUser: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
1983
1985
  userId: unknown;
1984
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
1986
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
1985
1987
  userId: unknown;
1986
1988
  } & {
1987
1989
  fetchOptions?: FetchOptions | undefined;
@@ -1996,15 +1998,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
1996
1998
  ipAddress?: string | null | undefined;
1997
1999
  userAgent?: string | null | undefined;
1998
2000
  };
1999
- user: {
2000
- id: string;
2001
- createdAt: Date;
2002
- updatedAt: Date;
2003
- email: string;
2004
- emailVerified: boolean;
2005
- name: string;
2006
- image?: string | null | undefined;
2007
- };
2001
+ user: better_auth_plugins.UserWithRole;
2008
2002
  }, {
2009
2003
  code?: string | undefined;
2010
2004
  message?: string | undefined;
@@ -2012,7 +2006,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
2012
2006
  };
2013
2007
  } & {
2014
2008
  admin: {
2015
- 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<{
2009
+ stopImpersonating: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
2016
2010
  query?: Record<string, any> | undefined;
2017
2011
  fetchOptions?: FetchOptions | undefined;
2018
2012
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
@@ -2027,7 +2021,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
2027
2021
  admin: {
2028
2022
  revokeUserSession: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
2029
2023
  sessionToken: string;
2030
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
2024
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2031
2025
  sessionToken: string;
2032
2026
  } & {
2033
2027
  fetchOptions?: FetchOptions | undefined;
@@ -2042,7 +2036,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
2042
2036
  admin: {
2043
2037
  revokeUserSessions: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
2044
2038
  userId: unknown;
2045
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
2039
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2046
2040
  userId: unknown;
2047
2041
  } & {
2048
2042
  fetchOptions?: FetchOptions | undefined;
@@ -2057,7 +2051,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
2057
2051
  admin: {
2058
2052
  removeUser: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
2059
2053
  userId: unknown;
2060
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
2054
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2061
2055
  userId: unknown;
2062
2056
  } & {
2063
2057
  fetchOptions?: FetchOptions | undefined;
@@ -2073,7 +2067,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
2073
2067
  setUserPassword: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
2074
2068
  newPassword: string;
2075
2069
  userId: unknown;
2076
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
2070
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2077
2071
  newPassword: string;
2078
2072
  userId: unknown;
2079
2073
  } & {
@@ -2102,7 +2096,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
2102
2096
  }) & {
2103
2097
  userId?: string | undefined;
2104
2098
  role?: "admin" | "user" | undefined;
2105
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<(({
2099
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<(({
2106
2100
  permission: {
2107
2101
  readonly user?: ("update" | "delete" | "create" | "list" | "set-role" | "ban" | "impersonate" | "set-password" | "get")[] | undefined;
2108
2102
  readonly session?: ("delete" | "list" | "revoke")[] | undefined;
@@ -2130,7 +2124,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
2130
2124
  } & {
2131
2125
  signIn: {
2132
2126
  social: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
2133
- provider: unknown;
2127
+ 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";
2134
2128
  callbackURL?: string | undefined;
2135
2129
  newUserCallbackURL?: string | undefined;
2136
2130
  errorCallbackURL?: string | undefined;
@@ -2146,8 +2140,8 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
2146
2140
  requestSignUp?: boolean | undefined;
2147
2141
  loginHint?: string | undefined;
2148
2142
  additionalData?: Record<string, any> | undefined;
2149
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
2150
- provider: unknown;
2143
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2144
+ 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";
2151
2145
  callbackURL?: string | undefined;
2152
2146
  newUserCallbackURL?: string | undefined;
2153
2147
  errorCallbackURL?: string | undefined;
@@ -2166,28 +2160,28 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
2166
2160
  } & {
2167
2161
  fetchOptions?: FetchOptions | undefined;
2168
2162
  }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<NonNullable<{
2163
+ redirect: boolean;
2164
+ url: string;
2165
+ } | {
2169
2166
  redirect: boolean;
2170
2167
  token: string;
2171
2168
  url: undefined;
2172
2169
  user: {
2173
2170
  id: string;
2174
- email: string;
2175
- name: string;
2176
- image: string | null | undefined;
2177
- emailVerified: boolean;
2178
2171
  createdAt: Date;
2179
2172
  updatedAt: Date;
2173
+ email: string;
2174
+ emailVerified: boolean;
2175
+ name: string;
2176
+ image?: string | null | undefined | undefined;
2180
2177
  };
2181
- } | {
2182
- url: string;
2183
- redirect: boolean;
2184
2178
  }>, {
2185
2179
  code?: string | undefined;
2186
2180
  message?: string | undefined;
2187
2181
  }, FetchOptions["throw"] extends true ? true : true>>;
2188
2182
  };
2189
2183
  } & {
2190
- 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<{
2184
+ signOut: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
2191
2185
  query?: Record<string, any> | undefined;
2192
2186
  fetchOptions?: FetchOptions | undefined;
2193
2187
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
@@ -2205,7 +2199,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
2205
2199
  image?: string | undefined;
2206
2200
  callbackURL?: string | undefined;
2207
2201
  rememberMe?: boolean | undefined;
2208
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
2202
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2209
2203
  email: string;
2210
2204
  name: string;
2211
2205
  password: string;
@@ -2218,23 +2212,23 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
2218
2212
  token: null;
2219
2213
  user: {
2220
2214
  id: string;
2221
- email: string;
2222
- name: string;
2223
- image: string | null | undefined;
2224
- emailVerified: boolean;
2225
2215
  createdAt: Date;
2226
2216
  updatedAt: Date;
2217
+ email: string;
2218
+ emailVerified: boolean;
2219
+ name: string;
2220
+ image?: string | null | undefined | undefined;
2227
2221
  };
2228
2222
  } | {
2229
2223
  token: string;
2230
2224
  user: {
2231
2225
  id: string;
2232
- email: string;
2233
- name: string;
2234
- image: string | null | undefined;
2235
- emailVerified: boolean;
2236
2226
  createdAt: Date;
2237
2227
  updatedAt: Date;
2228
+ email: string;
2229
+ emailVerified: boolean;
2230
+ name: string;
2231
+ image?: string | null | undefined | undefined;
2238
2232
  };
2239
2233
  }>, {
2240
2234
  code?: string | undefined;
@@ -2248,7 +2242,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
2248
2242
  password: string;
2249
2243
  callbackURL?: string | undefined;
2250
2244
  rememberMe?: boolean | undefined;
2251
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
2245
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2252
2246
  email: string;
2253
2247
  password: string;
2254
2248
  callbackURL?: string | undefined;
@@ -2258,15 +2252,15 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
2258
2252
  }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
2259
2253
  redirect: boolean;
2260
2254
  token: string;
2261
- url: string | undefined;
2255
+ url?: string | undefined;
2262
2256
  user: {
2263
2257
  id: string;
2264
- email: string;
2265
- name: string;
2266
- image: string | null | undefined;
2267
- emailVerified: boolean;
2268
2258
  createdAt: Date;
2269
2259
  updatedAt: Date;
2260
+ email: string;
2261
+ emailVerified: boolean;
2262
+ name: string;
2263
+ image?: string | null | undefined | undefined;
2270
2264
  };
2271
2265
  }, {
2272
2266
  code?: string | undefined;
@@ -2279,7 +2273,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
2279
2273
  token?: string | undefined;
2280
2274
  }> & Record<string, any>, Partial<{
2281
2275
  token?: string | undefined;
2282
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
2276
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2283
2277
  newPassword: string;
2284
2278
  token?: string | undefined;
2285
2279
  } & {
@@ -2294,7 +2288,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
2294
2288
  verifyEmail: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
2295
2289
  token: string;
2296
2290
  callbackURL?: string | undefined;
2297
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
2291
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2298
2292
  query: {
2299
2293
  token: string;
2300
2294
  callbackURL?: string | undefined;
@@ -2310,7 +2304,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
2310
2304
  sendVerificationEmail: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
2311
2305
  email: string;
2312
2306
  callbackURL?: string | undefined;
2313
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
2307
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2314
2308
  email: string;
2315
2309
  callbackURL?: string | undefined;
2316
2310
  } & {
@@ -2325,7 +2319,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
2325
2319
  changeEmail: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
2326
2320
  newEmail: string;
2327
2321
  callbackURL?: string | undefined;
2328
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
2322
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2329
2323
  newEmail: string;
2330
2324
  callbackURL?: string | undefined;
2331
2325
  } & {
@@ -2341,7 +2335,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
2341
2335
  newPassword: string;
2342
2336
  currentPassword: string;
2343
2337
  revokeOtherSessions?: boolean | undefined;
2344
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
2338
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2345
2339
  newPassword: string;
2346
2340
  currentPassword: string;
2347
2341
  revokeOtherSessions?: boolean | undefined;
@@ -2365,8 +2359,8 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
2365
2359
  } & {
2366
2360
  updateUser: <FetchOptions extends better_auth.ClientFetchOption<Partial<Partial<{}> & {
2367
2361
  name?: string | undefined;
2368
- image?: string | undefined;
2369
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
2362
+ image?: string | undefined | null;
2363
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
2370
2364
  image?: (string | null) | undefined;
2371
2365
  name?: string | undefined;
2372
2366
  fetchOptions?: FetchOptions | undefined;
@@ -2383,7 +2377,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
2383
2377
  callbackURL?: string | undefined;
2384
2378
  password?: string | undefined;
2385
2379
  token?: string | undefined;
2386
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
2380
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
2387
2381
  callbackURL?: string | undefined;
2388
2382
  password?: string | undefined;
2389
2383
  token?: string | undefined;
@@ -2400,7 +2394,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
2400
2394
  requestPasswordReset: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
2401
2395
  email: string;
2402
2396
  redirectTo?: string | undefined;
2403
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
2397
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2404
2398
  email: string;
2405
2399
  redirectTo?: string | undefined;
2406
2400
  } & {
@@ -2418,7 +2412,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
2418
2412
  callbackURL: string;
2419
2413
  }> & Record<string, any>, {
2420
2414
  token: string;
2421
- }>>(data_0: better_auth_client_plugins.Prettify<{
2415
+ }>>(data_0: better_auth.Prettify<{
2422
2416
  query: {
2423
2417
  callbackURL: string;
2424
2418
  };
@@ -2429,10 +2423,10 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
2429
2423
  }, FetchOptions["throw"] extends true ? true : true>>;
2430
2424
  };
2431
2425
  } & {
2432
- 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<{
2426
+ listSessions: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
2433
2427
  query?: Record<string, any> | undefined;
2434
2428
  fetchOptions?: FetchOptions | undefined;
2435
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<better_auth_client_plugins.Prettify<{
2429
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<better_auth.Prettify<{
2436
2430
  id: string;
2437
2431
  createdAt: Date;
2438
2432
  updatedAt: Date;
@@ -2448,7 +2442,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
2448
2442
  } & {
2449
2443
  revokeSession: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
2450
2444
  token: string;
2451
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
2445
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2452
2446
  token: string;
2453
2447
  } & {
2454
2448
  fetchOptions?: FetchOptions | undefined;
@@ -2459,7 +2453,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
2459
2453
  message?: string | undefined;
2460
2454
  }, FetchOptions["throw"] extends true ? true : true>>;
2461
2455
  } & {
2462
- 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<{
2456
+ revokeSessions: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
2463
2457
  query?: Record<string, any> | undefined;
2464
2458
  fetchOptions?: FetchOptions | undefined;
2465
2459
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
@@ -2469,7 +2463,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
2469
2463
  message?: string | undefined;
2470
2464
  }, FetchOptions["throw"] extends true ? true : true>>;
2471
2465
  } & {
2472
- 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<{
2466
+ revokeOtherSessions: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
2473
2467
  query?: Record<string, any> | undefined;
2474
2468
  fetchOptions?: FetchOptions | undefined;
2475
2469
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
@@ -2494,7 +2488,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
2494
2488
  errorCallbackURL?: string | undefined;
2495
2489
  disableRedirect?: boolean | undefined;
2496
2490
  additionalData?: Record<string, any> | undefined;
2497
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
2491
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2498
2492
  provider: unknown;
2499
2493
  callbackURL?: string | undefined;
2500
2494
  idToken?: {
@@ -2519,7 +2513,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
2519
2513
  message?: string | undefined;
2520
2514
  }, FetchOptions["throw"] extends true ? true : true>>;
2521
2515
  } & {
2522
- 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<{
2516
+ listAccounts: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
2523
2517
  query?: Record<string, any> | undefined;
2524
2518
  fetchOptions?: FetchOptions | undefined;
2525
2519
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
@@ -2539,7 +2533,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
2539
2533
  callback: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
2540
2534
  token: string;
2541
2535
  callbackURL?: string | undefined;
2542
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
2536
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2543
2537
  query: {
2544
2538
  token: string;
2545
2539
  callbackURL?: string | undefined;
@@ -2557,7 +2551,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
2557
2551
  unlinkAccount: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
2558
2552
  providerId: string;
2559
2553
  accountId?: string | undefined;
2560
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
2554
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2561
2555
  providerId: string;
2562
2556
  accountId?: string | undefined;
2563
2557
  } & {
@@ -2573,7 +2567,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
2573
2567
  providerId: string;
2574
2568
  accountId?: string | undefined;
2575
2569
  userId?: string | undefined;
2576
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
2570
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2577
2571
  providerId: string;
2578
2572
  accountId?: string | undefined;
2579
2573
  userId?: string | undefined;
@@ -2597,7 +2591,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
2597
2591
  providerId: string;
2598
2592
  accountId?: string | undefined;
2599
2593
  userId?: string | undefined;
2600
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
2594
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
2601
2595
  providerId: string;
2602
2596
  accountId?: string | undefined;
2603
2597
  userId?: string | undefined;
@@ -2615,7 +2609,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
2615
2609
  } & {
2616
2610
  accountInfo: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
2617
2611
  accountId?: string | undefined;
2618
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
2612
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
2619
2613
  query?: {
2620
2614
  accountId?: string | undefined;
2621
2615
  } | undefined;
@@ -2631,7 +2625,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
2631
2625
  getSession: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
2632
2626
  disableCookieCache?: unknown;
2633
2627
  disableRefresh?: unknown;
2634
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
2628
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
2635
2629
  query?: {
2636
2630
  disableCookieCache?: unknown;
2637
2631
  disableRefresh?: unknown;
@@ -2779,6 +2773,18 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
2779
2773
  role: R;
2780
2774
  }) => boolean;
2781
2775
  };
2776
+ } & {
2777
+ jwks: (fetchOptions?: any) => Promise<{
2778
+ data: null;
2779
+ error: {
2780
+ message?: string | undefined;
2781
+ status: number;
2782
+ statusText: string;
2783
+ };
2784
+ } | {
2785
+ data: jose.JSONWebKeySet;
2786
+ error: null;
2787
+ }>;
2782
2788
  } & {
2783
2789
  admin: {
2784
2790
  checkRolePermission: <R extends "admin" | "user">(data: ({
@@ -2833,18 +2839,12 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
2833
2839
  isPending: boolean;
2834
2840
  }>;
2835
2841
  $fetch: _better_fetch_fetch.BetterFetch<{
2836
- plugins: (_better_fetch_fetch.BetterFetchPlugin | {
2842
+ plugins: (_better_fetch_fetch.BetterFetchPlugin<Record<string, any>> | {
2837
2843
  id: string;
2838
2844
  name: string;
2839
2845
  hooks: {
2840
2846
  onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
2841
2847
  };
2842
- } | {
2843
- id: string;
2844
- name: string;
2845
- hooks: {
2846
- onRequest<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>): void;
2847
- };
2848
2848
  } | {
2849
2849
  id: string;
2850
2850
  name: string;
@@ -2942,8 +2942,118 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
2942
2942
  };
2943
2943
  };
2944
2944
  $ERROR_CODES: {
2945
- readonly USER_NOT_FOUND: "User not found";
2945
+ readonly YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_ORGANIZATION: "You are not allowed to create a new organization";
2946
+ readonly YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_ORGANIZATIONS: "You have reached the maximum number of organizations";
2947
+ readonly ORGANIZATION_ALREADY_EXISTS: "Organization already exists";
2948
+ readonly ORGANIZATION_SLUG_ALREADY_TAKEN: "Organization slug already taken";
2949
+ readonly ORGANIZATION_NOT_FOUND: "Organization not found";
2950
+ readonly USER_IS_NOT_A_MEMBER_OF_THE_ORGANIZATION: "User is not a member of the organization";
2951
+ readonly YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_ORGANIZATION: "You are not allowed to update this organization";
2952
+ readonly YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_ORGANIZATION: "You are not allowed to delete this organization";
2953
+ readonly NO_ACTIVE_ORGANIZATION: "No active organization";
2954
+ readonly USER_IS_ALREADY_A_MEMBER_OF_THIS_ORGANIZATION: "User is already a member of this organization";
2955
+ readonly MEMBER_NOT_FOUND: "Member not found";
2956
+ readonly ROLE_NOT_FOUND: "Role not found";
2957
+ readonly YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM: "You are not allowed to create a new team";
2958
+ readonly TEAM_ALREADY_EXISTS: "Team already exists";
2959
+ readonly TEAM_NOT_FOUND: "Team not found";
2960
+ readonly YOU_CANNOT_LEAVE_THE_ORGANIZATION_AS_THE_ONLY_OWNER: "You cannot leave the organization as the only owner";
2961
+ readonly YOU_CANNOT_LEAVE_THE_ORGANIZATION_WITHOUT_AN_OWNER: "You cannot leave the organization without an owner";
2962
+ readonly YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_MEMBER: "You are not allowed to delete this member";
2963
+ readonly YOU_ARE_NOT_ALLOWED_TO_INVITE_USERS_TO_THIS_ORGANIZATION: "You are not allowed to invite users to this organization";
2964
+ readonly USER_IS_ALREADY_INVITED_TO_THIS_ORGANIZATION: "User is already invited to this organization";
2965
+ readonly INVITATION_NOT_FOUND: "Invitation not found";
2966
+ readonly YOU_ARE_NOT_THE_RECIPIENT_OF_THE_INVITATION: "You are not the recipient of the invitation";
2967
+ readonly EMAIL_VERIFICATION_REQUIRED_BEFORE_ACCEPTING_OR_REJECTING_INVITATION: "Email verification required before accepting or rejecting invitation";
2968
+ readonly YOU_ARE_NOT_ALLOWED_TO_CANCEL_THIS_INVITATION: "You are not allowed to cancel this invitation";
2969
+ readonly INVITER_IS_NO_LONGER_A_MEMBER_OF_THE_ORGANIZATION: "Inviter is no longer a member of the organization";
2970
+ readonly YOU_ARE_NOT_ALLOWED_TO_INVITE_USER_WITH_THIS_ROLE: "You are not allowed to invite a user with this role";
2971
+ readonly FAILED_TO_RETRIEVE_INVITATION: "Failed to retrieve invitation";
2972
+ readonly YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_TEAMS: "You have reached the maximum number of teams";
2973
+ readonly UNABLE_TO_REMOVE_LAST_TEAM: "Unable to remove last team";
2974
+ readonly YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_MEMBER: "You are not allowed to update this member";
2975
+ readonly ORGANIZATION_MEMBERSHIP_LIMIT_REACHED: "Organization membership limit reached";
2976
+ readonly YOU_ARE_NOT_ALLOWED_TO_CREATE_TEAMS_IN_THIS_ORGANIZATION: "You are not allowed to create teams in this organization";
2977
+ readonly YOU_ARE_NOT_ALLOWED_TO_DELETE_TEAMS_IN_THIS_ORGANIZATION: "You are not allowed to delete teams in this organization";
2978
+ readonly YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_TEAM: "You are not allowed to update this team";
2979
+ readonly YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_TEAM: "You are not allowed to delete this team";
2980
+ readonly INVITATION_LIMIT_REACHED: "Invitation limit reached";
2981
+ readonly TEAM_MEMBER_LIMIT_REACHED: "Team member limit reached";
2982
+ readonly USER_IS_NOT_A_MEMBER_OF_THE_TEAM: "User is not a member of the team";
2983
+ readonly YOU_CAN_NOT_ACCESS_THE_MEMBERS_OF_THIS_TEAM: "You are not allowed to list the members of this team";
2984
+ readonly YOU_DO_NOT_HAVE_AN_ACTIVE_TEAM: "You do not have an active team";
2985
+ readonly YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM_MEMBER: "You are not allowed to create a new member";
2986
+ readonly YOU_ARE_NOT_ALLOWED_TO_REMOVE_A_TEAM_MEMBER: "You are not allowed to remove a team member";
2987
+ readonly YOU_ARE_NOT_ALLOWED_TO_ACCESS_THIS_ORGANIZATION: "You are not allowed to access this organization as an owner";
2988
+ readonly YOU_ARE_NOT_A_MEMBER_OF_THIS_ORGANIZATION: "You are not a member of this organization";
2989
+ readonly MISSING_AC_INSTANCE: "Dynamic Access Control requires a pre-defined ac instance on the server auth plugin. Read server logs for more information";
2990
+ readonly YOU_MUST_BE_IN_AN_ORGANIZATION_TO_CREATE_A_ROLE: "You must be in an organization to create a role";
2991
+ readonly YOU_ARE_NOT_ALLOWED_TO_CREATE_A_ROLE: "You are not allowed to create a role";
2992
+ readonly YOU_ARE_NOT_ALLOWED_TO_UPDATE_A_ROLE: "You are not allowed to update a role";
2993
+ readonly YOU_ARE_NOT_ALLOWED_TO_DELETE_A_ROLE: "You are not allowed to delete a role";
2994
+ readonly YOU_ARE_NOT_ALLOWED_TO_READ_A_ROLE: "You are not allowed to read a role";
2995
+ readonly YOU_ARE_NOT_ALLOWED_TO_LIST_A_ROLE: "You are not allowed to list a role";
2996
+ readonly YOU_ARE_NOT_ALLOWED_TO_GET_A_ROLE: "You are not allowed to get a role";
2997
+ readonly TOO_MANY_ROLES: "This organization has too many roles";
2998
+ readonly INVALID_RESOURCE: "The provided permission includes an invalid resource";
2999
+ readonly ROLE_NAME_IS_ALREADY_TAKEN: "That role name is already taken";
3000
+ readonly CANNOT_DELETE_A_PRE_DEFINED_ROLE: "Cannot delete a pre-defined role";
2946
3001
  readonly FAILED_TO_CREATE_USER: "Failed to create user";
3002
+ readonly USER_ALREADY_EXISTS: "User already exists.";
3003
+ readonly USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL: "User already exists. Use another email.";
3004
+ readonly YOU_CANNOT_BAN_YOURSELF: "You cannot ban yourself";
3005
+ readonly YOU_ARE_NOT_ALLOWED_TO_CHANGE_USERS_ROLE: "You are not allowed to change users role";
3006
+ readonly YOU_ARE_NOT_ALLOWED_TO_CREATE_USERS: "You are not allowed to create users";
3007
+ readonly YOU_ARE_NOT_ALLOWED_TO_LIST_USERS: "You are not allowed to list users";
3008
+ readonly YOU_ARE_NOT_ALLOWED_TO_LIST_USERS_SESSIONS: "You are not allowed to list users sessions";
3009
+ readonly YOU_ARE_NOT_ALLOWED_TO_BAN_USERS: "You are not allowed to ban users";
3010
+ readonly YOU_ARE_NOT_ALLOWED_TO_IMPERSONATE_USERS: "You are not allowed to impersonate users";
3011
+ readonly YOU_ARE_NOT_ALLOWED_TO_REVOKE_USERS_SESSIONS: "You are not allowed to revoke users sessions";
3012
+ readonly YOU_ARE_NOT_ALLOWED_TO_DELETE_USERS: "You are not allowed to delete users";
3013
+ readonly YOU_ARE_NOT_ALLOWED_TO_SET_USERS_PASSWORD: "You are not allowed to set users password";
3014
+ readonly BANNED_USER: "You have been banned from this application";
3015
+ readonly YOU_ARE_NOT_ALLOWED_TO_GET_USER: "You are not allowed to get user";
3016
+ readonly NO_DATA_TO_UPDATE: "No data to update";
3017
+ readonly YOU_ARE_NOT_ALLOWED_TO_UPDATE_USERS: "You are not allowed to update users";
3018
+ readonly YOU_CANNOT_REMOVE_YOURSELF: "You cannot remove yourself";
3019
+ readonly YOU_ARE_NOT_ALLOWED_TO_SET_NON_EXISTENT_VALUE: "You are not allowed to set a non-existent role value";
3020
+ readonly YOU_CANNOT_IMPERSONATE_ADMINS: "You cannot impersonate admins";
3021
+ readonly INVALID_ROLE_TYPE: "Invalid role type";
3022
+ readonly OTP_NOT_ENABLED: "OTP not enabled";
3023
+ readonly OTP_HAS_EXPIRED: "OTP has expired";
3024
+ readonly TOTP_NOT_ENABLED: "TOTP not enabled";
3025
+ readonly TWO_FACTOR_NOT_ENABLED: "Two factor isn't enabled";
3026
+ readonly BACKUP_CODES_NOT_ENABLED: "Backup codes aren't enabled";
3027
+ readonly INVALID_BACKUP_CODE: "Invalid backup code";
3028
+ readonly INVALID_CODE: "Invalid code";
3029
+ readonly TOO_MANY_ATTEMPTS_REQUEST_NEW_CODE: "Too many attempts. Please request a new code.";
3030
+ readonly INVALID_TWO_FACTOR_COOKIE: "Invalid two factor cookie";
3031
+ readonly INVALID_METADATA_TYPE: "metadata must be an object or undefined";
3032
+ readonly REFILL_AMOUNT_AND_INTERVAL_REQUIRED: "refillAmount is required when refillInterval is provided";
3033
+ readonly REFILL_INTERVAL_AND_AMOUNT_REQUIRED: "refillInterval is required when refillAmount is provided";
3034
+ readonly USER_BANNED: "User is banned";
3035
+ readonly UNAUTHORIZED_SESSION: "Unauthorized or invalid session";
3036
+ readonly KEY_NOT_FOUND: "API Key not found";
3037
+ readonly KEY_DISABLED: "API Key is disabled";
3038
+ readonly KEY_EXPIRED: "API Key has expired";
3039
+ readonly USAGE_EXCEEDED: "API Key has reached its usage limit";
3040
+ readonly KEY_NOT_RECOVERABLE: "API Key is not recoverable";
3041
+ readonly EXPIRES_IN_IS_TOO_SMALL: "The expiresIn is smaller than the predefined minimum value.";
3042
+ readonly EXPIRES_IN_IS_TOO_LARGE: "The expiresIn is larger than the predefined maximum value.";
3043
+ readonly INVALID_REMAINING: "The remaining count is either too large or too small.";
3044
+ readonly INVALID_PREFIX_LENGTH: "The prefix length is either too large or too small.";
3045
+ readonly INVALID_NAME_LENGTH: "The name length is either too large or too small.";
3046
+ readonly METADATA_DISABLED: "Metadata is disabled.";
3047
+ readonly RATE_LIMIT_EXCEEDED: "Rate limit exceeded.";
3048
+ readonly NO_VALUES_TO_UPDATE: "No values to update.";
3049
+ readonly KEY_DISABLED_EXPIRATION: "Custom key expiration values are disabled.";
3050
+ readonly INVALID_API_KEY: "Invalid API key.";
3051
+ readonly INVALID_USER_ID_FROM_API_KEY: "The user id from the API key is invalid.";
3052
+ readonly INVALID_API_KEY_GETTER_RETURN_TYPE: "API Key getter returned an invalid key type. Expected string.";
3053
+ readonly SERVER_ONLY_PROPERTY: "The property you're trying to set can only be set from the server auth instance only.";
3054
+ readonly FAILED_TO_UPDATE_API_KEY: "Failed to update API key";
3055
+ readonly NAME_REQUIRED: "API Key name is required.";
3056
+ readonly USER_NOT_FOUND: "User not found";
2947
3057
  readonly FAILED_TO_CREATE_SESSION: "Failed to create session";
2948
3058
  readonly FAILED_TO_UPDATE_USER: "Failed to update user";
2949
3059
  readonly FAILED_TO_GET_SESSION: "Failed to get session";
@@ -2959,8 +3069,6 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
2959
3069
  readonly EMAIL_NOT_VERIFIED: "Email not verified";
2960
3070
  readonly PASSWORD_TOO_SHORT: "Password too short";
2961
3071
  readonly PASSWORD_TOO_LONG: "Password too long";
2962
- readonly USER_ALREADY_EXISTS: "User already exists.";
2963
- readonly USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL: "User already exists. Use another email.";
2964
3072
  readonly EMAIL_CAN_NOT_BE_UPDATED: "Email can not be updated";
2965
3073
  readonly CREDENTIAL_ACCOUNT_NOT_FOUND: "Credential account not found";
2966
3074
  readonly SESSION_EXPIRED: "Session expired. Re-authenticate to perform this action.";
@@ -2972,7 +3080,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
2972
3080
  type APIClient = ReturnType<typeof createAPIClient>;
2973
3081
  declare const stub: {
2974
3082
  useActiveOrganization: nanostores.PreinitializedWritableAtom<{
2975
- data: better_auth_client_plugins.Prettify<{
3083
+ data: better_auth.Prettify<{
2976
3084
  id: string;
2977
3085
  name: string;
2978
3086
  slug: string;
@@ -3061,7 +3169,7 @@ declare const stub: {
3061
3169
  ":id": {
3062
3170
  members: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, {
3063
3171
  id: string;
3064
- }>>(data_0?: better_auth_client_plugins.Prettify<{
3172
+ }>>(data_0?: better_auth.Prettify<{
3065
3173
  query?: Record<string, any> | undefined;
3066
3174
  fetchOptions?: FetchOptions | undefined;
3067
3175
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
@@ -3081,13 +3189,13 @@ declare const stub: {
3081
3189
  } & {
3082
3190
  handshake: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
3083
3191
  origin: string;
3084
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
3192
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
3085
3193
  query: {
3086
3194
  origin: string;
3087
3195
  };
3088
3196
  fetchOptions?: FetchOptions | undefined;
3089
3197
  }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
3090
- status: ("OK" | "CREATED" | "ACCEPTED" | "NO_CONTENT" | "MULTIPLE_CHOICES" | "MOVED_PERMANENTLY" | "FOUND" | "SEE_OTHER" | "NOT_MODIFIED" | "TEMPORARY_REDIRECT" | "BAD_REQUEST" | "UNAUTHORIZED" | "PAYMENT_REQUIRED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_ALLOWED" | "NOT_ACCEPTABLE" | "PROXY_AUTHENTICATION_REQUIRED" | "REQUEST_TIMEOUT" | "CONFLICT" | "GONE" | "LENGTH_REQUIRED" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "URI_TOO_LONG" | "UNSUPPORTED_MEDIA_TYPE" | "RANGE_NOT_SATISFIABLE" | "EXPECTATION_FAILED" | "I'M_A_TEAPOT" | "MISDIRECTED_REQUEST" | "UNPROCESSABLE_ENTITY" | "LOCKED" | "FAILED_DEPENDENCY" | "TOO_EARLY" | "UPGRADE_REQUIRED" | "PRECONDITION_REQUIRED" | "TOO_MANY_REQUESTS" | "REQUEST_HEADER_FIELDS_TOO_LARGE" | "UNAVAILABLE_FOR_LEGAL_REASONS" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "BAD_GATEWAY" | "SERVICE_UNAVAILABLE" | "GATEWAY_TIMEOUT" | "HTTP_VERSION_NOT_SUPPORTED" | "VARIANT_ALSO_NEGOTIATES" | "INSUFFICIENT_STORAGE" | "LOOP_DETECTED" | "NOT_EXTENDED" | "NETWORK_AUTHENTICATION_REQUIRED") | better_call.Status;
3198
+ status: ("OK" | "CREATED" | "ACCEPTED" | "NO_CONTENT" | "MULTIPLE_CHOICES" | "MOVED_PERMANENTLY" | "FOUND" | "SEE_OTHER" | "NOT_MODIFIED" | "TEMPORARY_REDIRECT" | "BAD_REQUEST" | "UNAUTHORIZED" | "PAYMENT_REQUIRED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_ALLOWED" | "NOT_ACCEPTABLE" | "PROXY_AUTHENTICATION_REQUIRED" | "REQUEST_TIMEOUT" | "CONFLICT" | "GONE" | "LENGTH_REQUIRED" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "URI_TOO_LONG" | "UNSUPPORTED_MEDIA_TYPE" | "RANGE_NOT_SATISFIABLE" | "EXPECTATION_FAILED" | "I'M_A_TEAPOT" | "MISDIRECTED_REQUEST" | "UNPROCESSABLE_ENTITY" | "LOCKED" | "FAILED_DEPENDENCY" | "TOO_EARLY" | "UPGRADE_REQUIRED" | "PRECONDITION_REQUIRED" | "TOO_MANY_REQUESTS" | "REQUEST_HEADER_FIELDS_TOO_LARGE" | "UNAVAILABLE_FOR_LEGAL_REASONS" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "BAD_GATEWAY" | "SERVICE_UNAVAILABLE" | "GATEWAY_TIMEOUT" | "HTTP_VERSION_NOT_SUPPORTED" | "VARIANT_ALSO_NEGOTIATES" | "INSUFFICIENT_STORAGE" | "LOOP_DETECTED" | "NOT_EXTENDED" | "NETWORK_AUTHENTICATION_REQUIRED") | better_auth.Status;
3091
3199
  body: ({
3092
3200
  message?: string;
3093
3201
  code?: string;
@@ -3107,7 +3215,7 @@ declare const stub: {
3107
3215
  handshake: {
3108
3216
  noncePayload: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
3109
3217
  nonce: string;
3110
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
3218
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
3111
3219
  query: {
3112
3220
  nonce: string;
3113
3221
  };
@@ -3128,7 +3236,7 @@ declare const stub: {
3128
3236
  logo?: string | undefined;
3129
3237
  metadata?: Record<string, any> | undefined;
3130
3238
  keepCurrentActiveOrganization?: boolean | undefined;
3131
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
3239
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
3132
3240
  name: string;
3133
3241
  slug: string;
3134
3242
  userId?: string | undefined;
@@ -3168,7 +3276,7 @@ declare const stub: {
3168
3276
  metadata?: Record<string, any> | undefined;
3169
3277
  } & Partial<{}>;
3170
3278
  organizationId?: string | undefined;
3171
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
3279
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
3172
3280
  data: {
3173
3281
  name?: string | undefined;
3174
3282
  slug?: string | undefined;
@@ -3196,7 +3304,7 @@ declare const stub: {
3196
3304
  organization: {
3197
3305
  delete: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
3198
3306
  organizationId: string;
3199
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
3307
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
3200
3308
  organizationId: string;
3201
3309
  } & {
3202
3310
  fetchOptions?: FetchOptions | undefined;
@@ -3217,7 +3325,7 @@ declare const stub: {
3217
3325
  setActive: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
3218
3326
  organizationId?: string | null | undefined;
3219
3327
  organizationSlug?: string | undefined;
3220
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
3328
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
3221
3329
  organizationId?: string | null | undefined;
3222
3330
  organizationSlug?: string | undefined;
3223
3331
  } & {
@@ -3273,7 +3381,7 @@ declare const stub: {
3273
3381
  organizationId?: string | undefined;
3274
3382
  organizationSlug?: string | undefined;
3275
3383
  membersLimit?: string | number | undefined;
3276
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
3384
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
3277
3385
  query?: {
3278
3386
  organizationId?: string | undefined;
3279
3387
  organizationSlug?: string | undefined;
@@ -3327,7 +3435,7 @@ declare const stub: {
3327
3435
  };
3328
3436
  } & {
3329
3437
  organization: {
3330
- 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<{
3438
+ list: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
3331
3439
  query?: Record<string, any> | undefined;
3332
3440
  fetchOptions?: FetchOptions | undefined;
3333
3441
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
@@ -3351,7 +3459,7 @@ declare const stub: {
3351
3459
  resend?: boolean | undefined;
3352
3460
  } & {
3353
3461
  teamId?: (string | string[]) | undefined;
3354
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
3462
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
3355
3463
  email: string;
3356
3464
  role: "org:admin" | "org:member" | "org:reviewer" | ("org:admin" | "org:member" | "org:reviewer")[];
3357
3465
  organizationId?: string | undefined;
@@ -3379,7 +3487,7 @@ declare const stub: {
3379
3487
  organization: {
3380
3488
  cancelInvitation: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
3381
3489
  invitationId: string;
3382
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
3490
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
3383
3491
  invitationId: string;
3384
3492
  } & {
3385
3493
  fetchOptions?: FetchOptions | undefined;
@@ -3402,7 +3510,7 @@ declare const stub: {
3402
3510
  organization: {
3403
3511
  acceptInvitation: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
3404
3512
  invitationId: string;
3405
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
3513
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
3406
3514
  invitationId: string;
3407
3515
  } & {
3408
3516
  fetchOptions?: FetchOptions | undefined;
@@ -3434,7 +3542,7 @@ declare const stub: {
3434
3542
  organization: {
3435
3543
  getInvitation: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
3436
3544
  id: string;
3437
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
3545
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
3438
3546
  query: {
3439
3547
  id: string;
3440
3548
  };
@@ -3462,7 +3570,7 @@ declare const stub: {
3462
3570
  organization: {
3463
3571
  rejectInvitation: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
3464
3572
  invitationId: string;
3465
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
3573
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
3466
3574
  invitationId: string;
3467
3575
  } & {
3468
3576
  fetchOptions?: FetchOptions | undefined;
@@ -3487,7 +3595,7 @@ declare const stub: {
3487
3595
  organization: {
3488
3596
  listInvitations: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
3489
3597
  organizationId?: string | undefined;
3490
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
3598
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
3491
3599
  query?: {
3492
3600
  organizationId?: string | undefined;
3493
3601
  } | undefined;
@@ -3509,7 +3617,7 @@ declare const stub: {
3509
3617
  };
3510
3618
  } & {
3511
3619
  organization: {
3512
- 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<{
3620
+ getActiveMember: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
3513
3621
  query?: Record<string, any> | undefined;
3514
3622
  fetchOptions?: FetchOptions | undefined;
3515
3623
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<Omit<{
@@ -3543,7 +3651,7 @@ declare const stub: {
3543
3651
  organization: {
3544
3652
  checkSlug: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
3545
3653
  slug: string;
3546
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
3654
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
3547
3655
  slug: string;
3548
3656
  } & {
3549
3657
  fetchOptions?: FetchOptions | undefined;
@@ -3559,7 +3667,7 @@ declare const stub: {
3559
3667
  removeMember: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
3560
3668
  memberIdOrEmail: string;
3561
3669
  organizationId?: string | undefined;
3562
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
3670
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
3563
3671
  memberIdOrEmail: string;
3564
3672
  organizationId?: string | undefined;
3565
3673
  } & {
@@ -3587,11 +3695,11 @@ declare const stub: {
3587
3695
  } & {
3588
3696
  organization: {
3589
3697
  updateMemberRole: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
3590
- role: better_auth_client_plugins.LiteralString | "org:admin" | "org:member" | "org:reviewer" | better_auth_client_plugins.LiteralString[] | ("org:admin" | "org:member" | "org:reviewer")[];
3698
+ role: better_auth.LiteralString | "org:admin" | "org:member" | "org:reviewer" | better_auth.LiteralString[] | ("org:admin" | "org:member" | "org:reviewer")[];
3591
3699
  memberId: string;
3592
3700
  organizationId?: string | undefined;
3593
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
3594
- role: better_auth_client_plugins.LiteralString | "org:admin" | "org:member" | "org:reviewer" | better_auth_client_plugins.LiteralString[] | ("org:admin" | "org:member" | "org:reviewer")[];
3701
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
3702
+ role: better_auth.LiteralString | "org:admin" | "org:member" | "org:reviewer" | better_auth.LiteralString[] | ("org:admin" | "org:member" | "org:reviewer")[];
3595
3703
  memberId: string;
3596
3704
  organizationId?: string | undefined;
3597
3705
  } & {
@@ -3617,7 +3725,7 @@ declare const stub: {
3617
3725
  organization: {
3618
3726
  leave: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
3619
3727
  organizationId: string;
3620
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
3728
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
3621
3729
  organizationId: string;
3622
3730
  } & {
3623
3731
  fetchOptions?: FetchOptions | undefined;
@@ -3652,12 +3760,12 @@ declare const stub: {
3652
3760
  organization: {
3653
3761
  listUserInvitations: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
3654
3762
  email?: string | undefined;
3655
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
3763
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
3656
3764
  query?: {
3657
3765
  email?: string | undefined;
3658
3766
  } | undefined;
3659
3767
  fetchOptions?: FetchOptions | undefined;
3660
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
3768
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<(Omit<{
3661
3769
  id: string;
3662
3770
  organizationId: string;
3663
3771
  email: string;
@@ -3667,7 +3775,18 @@ declare const stub: {
3667
3775
  expiresAt: Date;
3668
3776
  createdAt: Date;
3669
3777
  teamId?: string | undefined | undefined;
3670
- }[], {
3778
+ } & {
3779
+ organization: {
3780
+ id: string;
3781
+ name: string;
3782
+ slug: string;
3783
+ createdAt: Date;
3784
+ logo?: string | null | undefined | undefined;
3785
+ metadata?: any;
3786
+ };
3787
+ }, "organization"> & {
3788
+ organizationName: string;
3789
+ })[], {
3671
3790
  code?: string | undefined;
3672
3791
  message?: string | undefined;
3673
3792
  }, FetchOptions["throw"] extends true ? true : true>>;
@@ -3684,7 +3803,7 @@ declare const stub: {
3684
3803
  filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | undefined;
3685
3804
  organizationId?: string | undefined;
3686
3805
  organizationSlug?: string | undefined;
3687
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
3806
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
3688
3807
  query?: {
3689
3808
  limit?: string | number | undefined;
3690
3809
  offset?: string | number | undefined;
@@ -3731,7 +3850,7 @@ declare const stub: {
3731
3850
  userId?: string | undefined;
3732
3851
  organizationId?: string | undefined;
3733
3852
  organizationSlug?: string | undefined;
3734
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
3853
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
3735
3854
  query?: {
3736
3855
  userId?: string | undefined;
3737
3856
  organizationId?: string | undefined;
@@ -3769,7 +3888,7 @@ declare const stub: {
3769
3888
  permission?: never | undefined;
3770
3889
  }) & {
3771
3890
  organizationId?: string | undefined;
3772
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<(({
3891
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<(({
3773
3892
  permission: {
3774
3893
  access?: string[] | undefined;
3775
3894
  organization?: ("update" | "delete")[] | undefined;
@@ -3806,7 +3925,7 @@ declare const stub: {
3806
3925
  createTeam: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
3807
3926
  name: string;
3808
3927
  organizationId?: string | undefined;
3809
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
3928
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
3810
3929
  name: string;
3811
3930
  organizationId?: string | undefined;
3812
3931
  } & {
@@ -3826,7 +3945,7 @@ declare const stub: {
3826
3945
  organization: {
3827
3946
  listTeams: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
3828
3947
  organizationId?: string | undefined;
3829
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
3948
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
3830
3949
  query?: {
3831
3950
  organizationId?: string | undefined;
3832
3951
  } | undefined;
@@ -3847,7 +3966,7 @@ declare const stub: {
3847
3966
  removeTeam: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
3848
3967
  teamId: string;
3849
3968
  organizationId?: string | undefined;
3850
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
3969
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
3851
3970
  teamId: string;
3852
3971
  organizationId?: string | undefined;
3853
3972
  } & {
@@ -3867,7 +3986,7 @@ declare const stub: {
3867
3986
  name: string;
3868
3987
  organizationId: string;
3869
3988
  }>;
3870
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
3989
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
3871
3990
  teamId: string;
3872
3991
  data: Partial<{
3873
3992
  name: string;
@@ -3890,7 +4009,7 @@ declare const stub: {
3890
4009
  organization: {
3891
4010
  setActiveTeam: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
3892
4011
  teamId?: string | null | undefined;
3893
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
4012
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
3894
4013
  teamId?: string | null | undefined;
3895
4014
  } & {
3896
4015
  fetchOptions?: FetchOptions | undefined;
@@ -3907,7 +4026,7 @@ declare const stub: {
3907
4026
  };
3908
4027
  } & {
3909
4028
  organization: {
3910
- listUserTeams: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
4029
+ listUserTeams: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
3911
4030
  query?: Record<string, any> | undefined;
3912
4031
  fetchOptions?: FetchOptions | undefined;
3913
4032
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
@@ -3925,7 +4044,7 @@ declare const stub: {
3925
4044
  organization: {
3926
4045
  listTeamMembers: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
3927
4046
  teamId?: string | undefined;
3928
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
4047
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
3929
4048
  query?: {
3930
4049
  teamId?: string | undefined;
3931
4050
  } | undefined;
@@ -3945,7 +4064,7 @@ declare const stub: {
3945
4064
  addTeamMember: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
3946
4065
  teamId: string;
3947
4066
  userId: unknown;
3948
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
4067
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
3949
4068
  teamId: string;
3950
4069
  userId: unknown;
3951
4070
  } & {
@@ -3965,7 +4084,7 @@ declare const stub: {
3965
4084
  removeTeamMember: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
3966
4085
  teamId: string;
3967
4086
  userId: unknown;
3968
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
4087
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
3969
4088
  teamId: string;
3970
4089
  userId: unknown;
3971
4090
  } & {
@@ -3984,7 +4103,7 @@ declare const stub: {
3984
4103
  metadata: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
3985
4104
  providerId: string;
3986
4105
  format?: "json" | "xml" | undefined;
3987
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
4106
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
3988
4107
  query: {
3989
4108
  providerId: string;
3990
4109
  format?: "json" | "xml" | undefined;
@@ -4012,6 +4131,7 @@ declare const stub: {
4012
4131
  tokenEndpointAuthentication?: "client_secret_post" | "client_secret_basic" | undefined;
4013
4132
  jwksEndpoint?: string | undefined;
4014
4133
  discoveryEndpoint?: string | undefined;
4134
+ skipDiscovery?: boolean | undefined;
4015
4135
  scopes?: string[] | undefined;
4016
4136
  pkce?: boolean | undefined;
4017
4137
  mapping?: {
@@ -4071,7 +4191,7 @@ declare const stub: {
4071
4191
  } | undefined;
4072
4192
  organizationId?: string | undefined;
4073
4193
  overrideUserInfo?: boolean | undefined;
4074
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
4194
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
4075
4195
  providerId: string;
4076
4196
  issuer: string;
4077
4197
  domain: string;
@@ -4084,6 +4204,7 @@ declare const stub: {
4084
4204
  tokenEndpointAuthentication?: "client_secret_post" | "client_secret_basic" | undefined;
4085
4205
  jwksEndpoint?: string | undefined;
4086
4206
  discoveryEndpoint?: string | undefined;
4207
+ skipDiscovery?: boolean | undefined;
4087
4208
  scopes?: string[] | undefined;
4088
4209
  pkce?: boolean | undefined;
4089
4210
  mapping?: {
@@ -4171,8 +4292,8 @@ declare const stub: {
4171
4292
  scopes?: string[] | undefined;
4172
4293
  loginHint?: string | undefined;
4173
4294
  requestSignUp?: boolean | undefined;
4174
- providerType?: "oidc" | "saml" | undefined;
4175
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
4295
+ providerType?: "saml" | "oidc" | undefined;
4296
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
4176
4297
  callbackURL: string;
4177
4298
  email?: string | undefined;
4178
4299
  organizationSlug?: string | undefined;
@@ -4183,7 +4304,7 @@ declare const stub: {
4183
4304
  scopes?: string[] | undefined;
4184
4305
  loginHint?: string | undefined;
4185
4306
  requestSignUp?: boolean | undefined;
4186
- providerType?: "oidc" | "saml" | undefined;
4307
+ providerType?: "saml" | "oidc" | undefined;
4187
4308
  } & {
4188
4309
  fetchOptions?: FetchOptions | undefined;
4189
4310
  }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
@@ -4199,7 +4320,7 @@ declare const stub: {
4199
4320
  enable: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
4200
4321
  password: string;
4201
4322
  issuer?: string | undefined;
4202
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
4323
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
4203
4324
  password: string;
4204
4325
  issuer?: string | undefined;
4205
4326
  } & {
@@ -4216,7 +4337,7 @@ declare const stub: {
4216
4337
  twoFactor: {
4217
4338
  disable: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
4218
4339
  password: string;
4219
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
4340
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
4220
4341
  password: string;
4221
4342
  } & {
4222
4343
  fetchOptions?: FetchOptions | undefined;
@@ -4233,7 +4354,7 @@ declare const stub: {
4233
4354
  code: string;
4234
4355
  disableSession?: boolean | undefined;
4235
4356
  trustDevice?: boolean | undefined;
4236
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
4357
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
4237
4358
  code: string;
4238
4359
  disableSession?: boolean | undefined;
4239
4360
  trustDevice?: boolean | undefined;
@@ -4259,7 +4380,7 @@ declare const stub: {
4259
4380
  twoFactor: {
4260
4381
  generateBackupCodes: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
4261
4382
  password: string;
4262
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
4383
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
4263
4384
  password: string;
4264
4385
  } & {
4265
4386
  fetchOptions?: FetchOptions | undefined;
@@ -4275,7 +4396,7 @@ declare const stub: {
4275
4396
  twoFactor: {
4276
4397
  sendOtp: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
4277
4398
  trustDevice?: boolean | undefined;
4278
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
4399
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
4279
4400
  query?: Record<string, any> | undefined;
4280
4401
  fetchOptions?: FetchOptions | undefined;
4281
4402
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
@@ -4290,7 +4411,7 @@ declare const stub: {
4290
4411
  verifyOtp: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
4291
4412
  code: string;
4292
4413
  trustDevice?: boolean | undefined;
4293
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
4414
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
4294
4415
  code: string;
4295
4416
  trustDevice?: boolean | undefined;
4296
4417
  } & {
@@ -4315,7 +4436,7 @@ declare const stub: {
4315
4436
  twoFactor: {
4316
4437
  getTotpUri: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
4317
4438
  password: string;
4318
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
4439
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
4319
4440
  password: string;
4320
4441
  } & {
4321
4442
  fetchOptions?: FetchOptions | undefined;
@@ -4331,7 +4452,7 @@ declare const stub: {
4331
4452
  verifyTotp: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
4332
4453
  code: string;
4333
4454
  trustDevice?: boolean | undefined;
4334
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
4455
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
4335
4456
  code: string;
4336
4457
  trustDevice?: boolean | undefined;
4337
4458
  } & {
@@ -4353,15 +4474,7 @@ declare const stub: {
4353
4474
  }, FetchOptions["throw"] extends true ? true : true>>;
4354
4475
  };
4355
4476
  } & {
4356
- jwks: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
4357
- query?: Record<string, any> | undefined;
4358
- fetchOptions?: FetchOptions | undefined;
4359
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<jose.JSONWebKeySet, {
4360
- code?: string | undefined;
4361
- message?: string | undefined;
4362
- }, FetchOptions["throw"] extends true ? true : true>>;
4363
- } & {
4364
- token: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
4477
+ token: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
4365
4478
  query?: Record<string, any> | undefined;
4366
4479
  fetchOptions?: FetchOptions | undefined;
4367
4480
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
@@ -4385,7 +4498,7 @@ declare const stub: {
4385
4498
  rateLimitMax?: number | undefined;
4386
4499
  rateLimitEnabled?: boolean | undefined;
4387
4500
  permissions?: Record<string, string[]> | undefined;
4388
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
4501
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
4389
4502
  name?: string | undefined;
4390
4503
  expiresIn?: number | null | undefined;
4391
4504
  userId?: unknown;
@@ -4431,7 +4544,7 @@ declare const stub: {
4431
4544
  apiKey: {
4432
4545
  get: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
4433
4546
  id: string;
4434
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
4547
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
4435
4548
  query: {
4436
4549
  id: string;
4437
4550
  };
@@ -4480,7 +4593,7 @@ declare const stub: {
4480
4593
  rateLimitTimeWindow?: number | undefined;
4481
4594
  rateLimitMax?: number | undefined;
4482
4595
  permissions?: Record<string, string[]> | null | undefined;
4483
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
4596
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
4484
4597
  keyId: string;
4485
4598
  userId?: unknown;
4486
4599
  name?: string | undefined;
@@ -4528,7 +4641,7 @@ declare const stub: {
4528
4641
  apiKey: {
4529
4642
  delete: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
4530
4643
  keyId: string;
4531
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
4644
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
4532
4645
  keyId: string;
4533
4646
  } & {
4534
4647
  fetchOptions?: FetchOptions | undefined;
@@ -4541,7 +4654,7 @@ declare const stub: {
4541
4654
  };
4542
4655
  } & {
4543
4656
  apiKey: {
4544
- 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<{
4657
+ list: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
4545
4658
  query?: Record<string, any> | undefined;
4546
4659
  fetchOptions?: FetchOptions | undefined;
4547
4660
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
@@ -4576,10 +4689,10 @@ declare const stub: {
4576
4689
  admin: {
4577
4690
  setRole: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
4578
4691
  userId: string;
4579
- role: "admin" | "user" | ("admin" | "user")[];
4580
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
4692
+ role: "user" | "admin" | ("user" | "admin")[];
4693
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
4581
4694
  userId: string;
4582
- role: "admin" | "user" | ("admin" | "user")[];
4695
+ role: "user" | "admin" | ("user" | "admin")[];
4583
4696
  } & {
4584
4697
  fetchOptions?: FetchOptions | undefined;
4585
4698
  }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
@@ -4593,7 +4706,7 @@ declare const stub: {
4593
4706
  admin: {
4594
4707
  getUser: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
4595
4708
  id: string;
4596
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
4709
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
4597
4710
  query: {
4598
4711
  id: string;
4599
4712
  };
@@ -4617,13 +4730,13 @@ declare const stub: {
4617
4730
  email: string;
4618
4731
  password: string;
4619
4732
  name: string;
4620
- role?: "admin" | "user" | ("admin" | "user")[] | undefined;
4733
+ role?: "user" | "admin" | ("user" | "admin")[] | undefined;
4621
4734
  data?: Record<string, any> | undefined;
4622
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
4735
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
4623
4736
  email: string;
4624
4737
  password: string;
4625
4738
  name: string;
4626
- role?: "admin" | "user" | ("admin" | "user")[] | undefined;
4739
+ role?: "user" | "admin" | ("user" | "admin")[] | undefined;
4627
4740
  data?: Record<string, any> | undefined;
4628
4741
  } & {
4629
4742
  fetchOptions?: FetchOptions | undefined;
@@ -4639,7 +4752,7 @@ declare const stub: {
4639
4752
  updateUser: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
4640
4753
  userId: unknown;
4641
4754
  data: Record<any, any>;
4642
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
4755
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
4643
4756
  userId: unknown;
4644
4757
  data: Record<any, any>;
4645
4758
  } & {
@@ -4662,7 +4775,7 @@ declare const stub: {
4662
4775
  filterField?: string | undefined;
4663
4776
  filterValue?: string | number | boolean | undefined;
4664
4777
  filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | undefined;
4665
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
4778
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
4666
4779
  query: {
4667
4780
  searchValue?: string | undefined;
4668
4781
  searchField?: "name" | "email" | undefined;
@@ -4693,7 +4806,7 @@ declare const stub: {
4693
4806
  admin: {
4694
4807
  listUserSessions: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
4695
4808
  userId: unknown;
4696
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
4809
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
4697
4810
  userId: unknown;
4698
4811
  } & {
4699
4812
  fetchOptions?: FetchOptions | undefined;
@@ -4708,7 +4821,7 @@ declare const stub: {
4708
4821
  admin: {
4709
4822
  unbanUser: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
4710
4823
  userId: unknown;
4711
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
4824
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
4712
4825
  userId: unknown;
4713
4826
  } & {
4714
4827
  fetchOptions?: FetchOptions | undefined;
@@ -4733,7 +4846,7 @@ declare const stub: {
4733
4846
  userId: unknown;
4734
4847
  banReason?: string | undefined;
4735
4848
  banExpiresIn?: number | undefined;
4736
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
4849
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
4737
4850
  userId: unknown;
4738
4851
  banReason?: string | undefined;
4739
4852
  banExpiresIn?: number | undefined;
@@ -4758,7 +4871,7 @@ declare const stub: {
4758
4871
  admin: {
4759
4872
  impersonateUser: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
4760
4873
  userId: unknown;
4761
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
4874
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
4762
4875
  userId: unknown;
4763
4876
  } & {
4764
4877
  fetchOptions?: FetchOptions | undefined;
@@ -4773,15 +4886,7 @@ declare const stub: {
4773
4886
  ipAddress?: string | null | undefined;
4774
4887
  userAgent?: string | null | undefined;
4775
4888
  };
4776
- user: {
4777
- id: string;
4778
- createdAt: Date;
4779
- updatedAt: Date;
4780
- email: string;
4781
- emailVerified: boolean;
4782
- name: string;
4783
- image?: string | null | undefined;
4784
- };
4889
+ user: better_auth_plugins.UserWithRole;
4785
4890
  }, {
4786
4891
  code?: string | undefined;
4787
4892
  message?: string | undefined;
@@ -4789,7 +4894,7 @@ declare const stub: {
4789
4894
  };
4790
4895
  } & {
4791
4896
  admin: {
4792
- 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<{
4897
+ stopImpersonating: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
4793
4898
  query?: Record<string, any> | undefined;
4794
4899
  fetchOptions?: FetchOptions | undefined;
4795
4900
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
@@ -4804,7 +4909,7 @@ declare const stub: {
4804
4909
  admin: {
4805
4910
  revokeUserSession: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
4806
4911
  sessionToken: string;
4807
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
4912
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
4808
4913
  sessionToken: string;
4809
4914
  } & {
4810
4915
  fetchOptions?: FetchOptions | undefined;
@@ -4819,7 +4924,7 @@ declare const stub: {
4819
4924
  admin: {
4820
4925
  revokeUserSessions: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
4821
4926
  userId: unknown;
4822
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
4927
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
4823
4928
  userId: unknown;
4824
4929
  } & {
4825
4930
  fetchOptions?: FetchOptions | undefined;
@@ -4834,7 +4939,7 @@ declare const stub: {
4834
4939
  admin: {
4835
4940
  removeUser: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
4836
4941
  userId: unknown;
4837
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
4942
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
4838
4943
  userId: unknown;
4839
4944
  } & {
4840
4945
  fetchOptions?: FetchOptions | undefined;
@@ -4850,7 +4955,7 @@ declare const stub: {
4850
4955
  setUserPassword: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
4851
4956
  newPassword: string;
4852
4957
  userId: unknown;
4853
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
4958
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
4854
4959
  newPassword: string;
4855
4960
  userId: unknown;
4856
4961
  } & {
@@ -4879,7 +4984,7 @@ declare const stub: {
4879
4984
  }) & {
4880
4985
  userId?: string | undefined;
4881
4986
  role?: "admin" | "user" | undefined;
4882
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<(({
4987
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<(({
4883
4988
  permission: {
4884
4989
  readonly user?: ("update" | "delete" | "create" | "list" | "set-role" | "ban" | "impersonate" | "set-password" | "get")[] | undefined;
4885
4990
  readonly session?: ("delete" | "list" | "revoke")[] | undefined;
@@ -4907,7 +5012,7 @@ declare const stub: {
4907
5012
  } & {
4908
5013
  signIn: {
4909
5014
  social: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
4910
- provider: unknown;
5015
+ 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";
4911
5016
  callbackURL?: string | undefined;
4912
5017
  newUserCallbackURL?: string | undefined;
4913
5018
  errorCallbackURL?: string | undefined;
@@ -4923,8 +5028,8 @@ declare const stub: {
4923
5028
  requestSignUp?: boolean | undefined;
4924
5029
  loginHint?: string | undefined;
4925
5030
  additionalData?: Record<string, any> | undefined;
4926
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
4927
- provider: unknown;
5031
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
5032
+ 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";
4928
5033
  callbackURL?: string | undefined;
4929
5034
  newUserCallbackURL?: string | undefined;
4930
5035
  errorCallbackURL?: string | undefined;
@@ -4943,28 +5048,28 @@ declare const stub: {
4943
5048
  } & {
4944
5049
  fetchOptions?: FetchOptions | undefined;
4945
5050
  }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<NonNullable<{
5051
+ redirect: boolean;
5052
+ url: string;
5053
+ } | {
4946
5054
  redirect: boolean;
4947
5055
  token: string;
4948
5056
  url: undefined;
4949
5057
  user: {
4950
5058
  id: string;
4951
- email: string;
4952
- name: string;
4953
- image: string | null | undefined;
4954
- emailVerified: boolean;
4955
5059
  createdAt: Date;
4956
5060
  updatedAt: Date;
5061
+ email: string;
5062
+ emailVerified: boolean;
5063
+ name: string;
5064
+ image?: string | null | undefined | undefined;
4957
5065
  };
4958
- } | {
4959
- url: string;
4960
- redirect: boolean;
4961
5066
  }>, {
4962
5067
  code?: string | undefined;
4963
5068
  message?: string | undefined;
4964
5069
  }, FetchOptions["throw"] extends true ? true : true>>;
4965
5070
  };
4966
5071
  } & {
4967
- 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<{
5072
+ signOut: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
4968
5073
  query?: Record<string, any> | undefined;
4969
5074
  fetchOptions?: FetchOptions | undefined;
4970
5075
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
@@ -4982,7 +5087,7 @@ declare const stub: {
4982
5087
  image?: string | undefined;
4983
5088
  callbackURL?: string | undefined;
4984
5089
  rememberMe?: boolean | undefined;
4985
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
5090
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
4986
5091
  email: string;
4987
5092
  name: string;
4988
5093
  password: string;
@@ -4995,23 +5100,23 @@ declare const stub: {
4995
5100
  token: null;
4996
5101
  user: {
4997
5102
  id: string;
4998
- email: string;
4999
- name: string;
5000
- image: string | null | undefined;
5001
- emailVerified: boolean;
5002
5103
  createdAt: Date;
5003
5104
  updatedAt: Date;
5105
+ email: string;
5106
+ emailVerified: boolean;
5107
+ name: string;
5108
+ image?: string | null | undefined | undefined;
5004
5109
  };
5005
5110
  } | {
5006
5111
  token: string;
5007
5112
  user: {
5008
5113
  id: string;
5009
- email: string;
5010
- name: string;
5011
- image: string | null | undefined;
5012
- emailVerified: boolean;
5013
5114
  createdAt: Date;
5014
5115
  updatedAt: Date;
5116
+ email: string;
5117
+ emailVerified: boolean;
5118
+ name: string;
5119
+ image?: string | null | undefined | undefined;
5015
5120
  };
5016
5121
  }>, {
5017
5122
  code?: string | undefined;
@@ -5025,7 +5130,7 @@ declare const stub: {
5025
5130
  password: string;
5026
5131
  callbackURL?: string | undefined;
5027
5132
  rememberMe?: boolean | undefined;
5028
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
5133
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
5029
5134
  email: string;
5030
5135
  password: string;
5031
5136
  callbackURL?: string | undefined;
@@ -5035,15 +5140,15 @@ declare const stub: {
5035
5140
  }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
5036
5141
  redirect: boolean;
5037
5142
  token: string;
5038
- url: string | undefined;
5143
+ url?: string | undefined;
5039
5144
  user: {
5040
5145
  id: string;
5041
- email: string;
5042
- name: string;
5043
- image: string | null | undefined;
5044
- emailVerified: boolean;
5045
5146
  createdAt: Date;
5046
5147
  updatedAt: Date;
5148
+ email: string;
5149
+ emailVerified: boolean;
5150
+ name: string;
5151
+ image?: string | null | undefined | undefined;
5047
5152
  };
5048
5153
  }, {
5049
5154
  code?: string | undefined;
@@ -5056,7 +5161,7 @@ declare const stub: {
5056
5161
  token?: string | undefined;
5057
5162
  }> & Record<string, any>, Partial<{
5058
5163
  token?: string | undefined;
5059
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
5164
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
5060
5165
  newPassword: string;
5061
5166
  token?: string | undefined;
5062
5167
  } & {
@@ -5071,7 +5176,7 @@ declare const stub: {
5071
5176
  verifyEmail: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
5072
5177
  token: string;
5073
5178
  callbackURL?: string | undefined;
5074
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
5179
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
5075
5180
  query: {
5076
5181
  token: string;
5077
5182
  callbackURL?: string | undefined;
@@ -5087,7 +5192,7 @@ declare const stub: {
5087
5192
  sendVerificationEmail: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
5088
5193
  email: string;
5089
5194
  callbackURL?: string | undefined;
5090
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
5195
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
5091
5196
  email: string;
5092
5197
  callbackURL?: string | undefined;
5093
5198
  } & {
@@ -5102,7 +5207,7 @@ declare const stub: {
5102
5207
  changeEmail: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
5103
5208
  newEmail: string;
5104
5209
  callbackURL?: string | undefined;
5105
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
5210
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
5106
5211
  newEmail: string;
5107
5212
  callbackURL?: string | undefined;
5108
5213
  } & {
@@ -5118,7 +5223,7 @@ declare const stub: {
5118
5223
  newPassword: string;
5119
5224
  currentPassword: string;
5120
5225
  revokeOtherSessions?: boolean | undefined;
5121
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
5226
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
5122
5227
  newPassword: string;
5123
5228
  currentPassword: string;
5124
5229
  revokeOtherSessions?: boolean | undefined;
@@ -5142,8 +5247,8 @@ declare const stub: {
5142
5247
  } & {
5143
5248
  updateUser: <FetchOptions extends better_auth.ClientFetchOption<Partial<Partial<{}> & {
5144
5249
  name?: string | undefined;
5145
- image?: string | undefined;
5146
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
5250
+ image?: string | undefined | null;
5251
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
5147
5252
  image?: (string | null) | undefined;
5148
5253
  name?: string | undefined;
5149
5254
  fetchOptions?: FetchOptions | undefined;
@@ -5160,7 +5265,7 @@ declare const stub: {
5160
5265
  callbackURL?: string | undefined;
5161
5266
  password?: string | undefined;
5162
5267
  token?: string | undefined;
5163
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
5268
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
5164
5269
  callbackURL?: string | undefined;
5165
5270
  password?: string | undefined;
5166
5271
  token?: string | undefined;
@@ -5177,7 +5282,7 @@ declare const stub: {
5177
5282
  requestPasswordReset: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
5178
5283
  email: string;
5179
5284
  redirectTo?: string | undefined;
5180
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
5285
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
5181
5286
  email: string;
5182
5287
  redirectTo?: string | undefined;
5183
5288
  } & {
@@ -5195,7 +5300,7 @@ declare const stub: {
5195
5300
  callbackURL: string;
5196
5301
  }> & Record<string, any>, {
5197
5302
  token: string;
5198
- }>>(data_0: better_auth_client_plugins.Prettify<{
5303
+ }>>(data_0: better_auth.Prettify<{
5199
5304
  query: {
5200
5305
  callbackURL: string;
5201
5306
  };
@@ -5206,10 +5311,10 @@ declare const stub: {
5206
5311
  }, FetchOptions["throw"] extends true ? true : true>>;
5207
5312
  };
5208
5313
  } & {
5209
- 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<{
5314
+ listSessions: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
5210
5315
  query?: Record<string, any> | undefined;
5211
5316
  fetchOptions?: FetchOptions | undefined;
5212
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<better_auth_client_plugins.Prettify<{
5317
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<better_auth.Prettify<{
5213
5318
  id: string;
5214
5319
  createdAt: Date;
5215
5320
  updatedAt: Date;
@@ -5225,7 +5330,7 @@ declare const stub: {
5225
5330
  } & {
5226
5331
  revokeSession: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
5227
5332
  token: string;
5228
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
5333
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
5229
5334
  token: string;
5230
5335
  } & {
5231
5336
  fetchOptions?: FetchOptions | undefined;
@@ -5236,7 +5341,7 @@ declare const stub: {
5236
5341
  message?: string | undefined;
5237
5342
  }, FetchOptions["throw"] extends true ? true : true>>;
5238
5343
  } & {
5239
- 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<{
5344
+ revokeSessions: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
5240
5345
  query?: Record<string, any> | undefined;
5241
5346
  fetchOptions?: FetchOptions | undefined;
5242
5347
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
@@ -5246,7 +5351,7 @@ declare const stub: {
5246
5351
  message?: string | undefined;
5247
5352
  }, FetchOptions["throw"] extends true ? true : true>>;
5248
5353
  } & {
5249
- 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<{
5354
+ revokeOtherSessions: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
5250
5355
  query?: Record<string, any> | undefined;
5251
5356
  fetchOptions?: FetchOptions | undefined;
5252
5357
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
@@ -5271,7 +5376,7 @@ declare const stub: {
5271
5376
  errorCallbackURL?: string | undefined;
5272
5377
  disableRedirect?: boolean | undefined;
5273
5378
  additionalData?: Record<string, any> | undefined;
5274
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
5379
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
5275
5380
  provider: unknown;
5276
5381
  callbackURL?: string | undefined;
5277
5382
  idToken?: {
@@ -5296,7 +5401,7 @@ declare const stub: {
5296
5401
  message?: string | undefined;
5297
5402
  }, FetchOptions["throw"] extends true ? true : true>>;
5298
5403
  } & {
5299
- 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<{
5404
+ listAccounts: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
5300
5405
  query?: Record<string, any> | undefined;
5301
5406
  fetchOptions?: FetchOptions | undefined;
5302
5407
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
@@ -5316,7 +5421,7 @@ declare const stub: {
5316
5421
  callback: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
5317
5422
  token: string;
5318
5423
  callbackURL?: string | undefined;
5319
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
5424
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
5320
5425
  query: {
5321
5426
  token: string;
5322
5427
  callbackURL?: string | undefined;
@@ -5334,7 +5439,7 @@ declare const stub: {
5334
5439
  unlinkAccount: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
5335
5440
  providerId: string;
5336
5441
  accountId?: string | undefined;
5337
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
5442
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
5338
5443
  providerId: string;
5339
5444
  accountId?: string | undefined;
5340
5445
  } & {
@@ -5350,7 +5455,7 @@ declare const stub: {
5350
5455
  providerId: string;
5351
5456
  accountId?: string | undefined;
5352
5457
  userId?: string | undefined;
5353
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
5458
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
5354
5459
  providerId: string;
5355
5460
  accountId?: string | undefined;
5356
5461
  userId?: string | undefined;
@@ -5374,7 +5479,7 @@ declare const stub: {
5374
5479
  providerId: string;
5375
5480
  accountId?: string | undefined;
5376
5481
  userId?: string | undefined;
5377
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_client_plugins.Prettify<{
5482
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
5378
5483
  providerId: string;
5379
5484
  accountId?: string | undefined;
5380
5485
  userId?: string | undefined;
@@ -5392,7 +5497,7 @@ declare const stub: {
5392
5497
  } & {
5393
5498
  accountInfo: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
5394
5499
  accountId?: string | undefined;
5395
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
5500
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
5396
5501
  query?: {
5397
5502
  accountId?: string | undefined;
5398
5503
  } | undefined;
@@ -5408,7 +5513,7 @@ declare const stub: {
5408
5513
  getSession: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
5409
5514
  disableCookieCache?: unknown;
5410
5515
  disableRefresh?: unknown;
5411
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_client_plugins.Prettify<{
5516
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
5412
5517
  query?: {
5413
5518
  disableCookieCache?: unknown;
5414
5519
  disableRefresh?: unknown;
@@ -5556,6 +5661,18 @@ declare const stub: {
5556
5661
  role: R;
5557
5662
  }) => boolean;
5558
5663
  };
5664
+ } & {
5665
+ jwks: (fetchOptions?: any) => Promise<{
5666
+ data: null;
5667
+ error: {
5668
+ message?: string | undefined;
5669
+ status: number;
5670
+ statusText: string;
5671
+ };
5672
+ } | {
5673
+ data: jose.JSONWebKeySet;
5674
+ error: null;
5675
+ }>;
5559
5676
  } & {
5560
5677
  admin: {
5561
5678
  checkRolePermission: <R extends "admin" | "user">(data: ({
@@ -5610,18 +5727,12 @@ declare const stub: {
5610
5727
  isPending: boolean;
5611
5728
  }>;
5612
5729
  $fetch: _better_fetch_fetch.BetterFetch<{
5613
- plugins: (_better_fetch_fetch.BetterFetchPlugin | {
5730
+ plugins: (_better_fetch_fetch.BetterFetchPlugin<Record<string, any>> | {
5614
5731
  id: string;
5615
5732
  name: string;
5616
5733
  hooks: {
5617
5734
  onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
5618
5735
  };
5619
- } | {
5620
- id: string;
5621
- name: string;
5622
- hooks: {
5623
- onRequest<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>): void;
5624
- };
5625
5736
  } | {
5626
5737
  id: string;
5627
5738
  name: string;
@@ -5719,8 +5830,118 @@ declare const stub: {
5719
5830
  };
5720
5831
  };
5721
5832
  $ERROR_CODES: {
5722
- readonly USER_NOT_FOUND: "User not found";
5833
+ readonly YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_ORGANIZATION: "You are not allowed to create a new organization";
5834
+ readonly YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_ORGANIZATIONS: "You have reached the maximum number of organizations";
5835
+ readonly ORGANIZATION_ALREADY_EXISTS: "Organization already exists";
5836
+ readonly ORGANIZATION_SLUG_ALREADY_TAKEN: "Organization slug already taken";
5837
+ readonly ORGANIZATION_NOT_FOUND: "Organization not found";
5838
+ readonly USER_IS_NOT_A_MEMBER_OF_THE_ORGANIZATION: "User is not a member of the organization";
5839
+ readonly YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_ORGANIZATION: "You are not allowed to update this organization";
5840
+ readonly YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_ORGANIZATION: "You are not allowed to delete this organization";
5841
+ readonly NO_ACTIVE_ORGANIZATION: "No active organization";
5842
+ readonly USER_IS_ALREADY_A_MEMBER_OF_THIS_ORGANIZATION: "User is already a member of this organization";
5843
+ readonly MEMBER_NOT_FOUND: "Member not found";
5844
+ readonly ROLE_NOT_FOUND: "Role not found";
5845
+ readonly YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM: "You are not allowed to create a new team";
5846
+ readonly TEAM_ALREADY_EXISTS: "Team already exists";
5847
+ readonly TEAM_NOT_FOUND: "Team not found";
5848
+ readonly YOU_CANNOT_LEAVE_THE_ORGANIZATION_AS_THE_ONLY_OWNER: "You cannot leave the organization as the only owner";
5849
+ readonly YOU_CANNOT_LEAVE_THE_ORGANIZATION_WITHOUT_AN_OWNER: "You cannot leave the organization without an owner";
5850
+ readonly YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_MEMBER: "You are not allowed to delete this member";
5851
+ readonly YOU_ARE_NOT_ALLOWED_TO_INVITE_USERS_TO_THIS_ORGANIZATION: "You are not allowed to invite users to this organization";
5852
+ readonly USER_IS_ALREADY_INVITED_TO_THIS_ORGANIZATION: "User is already invited to this organization";
5853
+ readonly INVITATION_NOT_FOUND: "Invitation not found";
5854
+ readonly YOU_ARE_NOT_THE_RECIPIENT_OF_THE_INVITATION: "You are not the recipient of the invitation";
5855
+ readonly EMAIL_VERIFICATION_REQUIRED_BEFORE_ACCEPTING_OR_REJECTING_INVITATION: "Email verification required before accepting or rejecting invitation";
5856
+ readonly YOU_ARE_NOT_ALLOWED_TO_CANCEL_THIS_INVITATION: "You are not allowed to cancel this invitation";
5857
+ readonly INVITER_IS_NO_LONGER_A_MEMBER_OF_THE_ORGANIZATION: "Inviter is no longer a member of the organization";
5858
+ readonly YOU_ARE_NOT_ALLOWED_TO_INVITE_USER_WITH_THIS_ROLE: "You are not allowed to invite a user with this role";
5859
+ readonly FAILED_TO_RETRIEVE_INVITATION: "Failed to retrieve invitation";
5860
+ readonly YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_TEAMS: "You have reached the maximum number of teams";
5861
+ readonly UNABLE_TO_REMOVE_LAST_TEAM: "Unable to remove last team";
5862
+ readonly YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_MEMBER: "You are not allowed to update this member";
5863
+ readonly ORGANIZATION_MEMBERSHIP_LIMIT_REACHED: "Organization membership limit reached";
5864
+ readonly YOU_ARE_NOT_ALLOWED_TO_CREATE_TEAMS_IN_THIS_ORGANIZATION: "You are not allowed to create teams in this organization";
5865
+ readonly YOU_ARE_NOT_ALLOWED_TO_DELETE_TEAMS_IN_THIS_ORGANIZATION: "You are not allowed to delete teams in this organization";
5866
+ readonly YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_TEAM: "You are not allowed to update this team";
5867
+ readonly YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_TEAM: "You are not allowed to delete this team";
5868
+ readonly INVITATION_LIMIT_REACHED: "Invitation limit reached";
5869
+ readonly TEAM_MEMBER_LIMIT_REACHED: "Team member limit reached";
5870
+ readonly USER_IS_NOT_A_MEMBER_OF_THE_TEAM: "User is not a member of the team";
5871
+ readonly YOU_CAN_NOT_ACCESS_THE_MEMBERS_OF_THIS_TEAM: "You are not allowed to list the members of this team";
5872
+ readonly YOU_DO_NOT_HAVE_AN_ACTIVE_TEAM: "You do not have an active team";
5873
+ readonly YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM_MEMBER: "You are not allowed to create a new member";
5874
+ readonly YOU_ARE_NOT_ALLOWED_TO_REMOVE_A_TEAM_MEMBER: "You are not allowed to remove a team member";
5875
+ readonly YOU_ARE_NOT_ALLOWED_TO_ACCESS_THIS_ORGANIZATION: "You are not allowed to access this organization as an owner";
5876
+ readonly YOU_ARE_NOT_A_MEMBER_OF_THIS_ORGANIZATION: "You are not a member of this organization";
5877
+ readonly MISSING_AC_INSTANCE: "Dynamic Access Control requires a pre-defined ac instance on the server auth plugin. Read server logs for more information";
5878
+ readonly YOU_MUST_BE_IN_AN_ORGANIZATION_TO_CREATE_A_ROLE: "You must be in an organization to create a role";
5879
+ readonly YOU_ARE_NOT_ALLOWED_TO_CREATE_A_ROLE: "You are not allowed to create a role";
5880
+ readonly YOU_ARE_NOT_ALLOWED_TO_UPDATE_A_ROLE: "You are not allowed to update a role";
5881
+ readonly YOU_ARE_NOT_ALLOWED_TO_DELETE_A_ROLE: "You are not allowed to delete a role";
5882
+ readonly YOU_ARE_NOT_ALLOWED_TO_READ_A_ROLE: "You are not allowed to read a role";
5883
+ readonly YOU_ARE_NOT_ALLOWED_TO_LIST_A_ROLE: "You are not allowed to list a role";
5884
+ readonly YOU_ARE_NOT_ALLOWED_TO_GET_A_ROLE: "You are not allowed to get a role";
5885
+ readonly TOO_MANY_ROLES: "This organization has too many roles";
5886
+ readonly INVALID_RESOURCE: "The provided permission includes an invalid resource";
5887
+ readonly ROLE_NAME_IS_ALREADY_TAKEN: "That role name is already taken";
5888
+ readonly CANNOT_DELETE_A_PRE_DEFINED_ROLE: "Cannot delete a pre-defined role";
5723
5889
  readonly FAILED_TO_CREATE_USER: "Failed to create user";
5890
+ readonly USER_ALREADY_EXISTS: "User already exists.";
5891
+ readonly USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL: "User already exists. Use another email.";
5892
+ readonly YOU_CANNOT_BAN_YOURSELF: "You cannot ban yourself";
5893
+ readonly YOU_ARE_NOT_ALLOWED_TO_CHANGE_USERS_ROLE: "You are not allowed to change users role";
5894
+ readonly YOU_ARE_NOT_ALLOWED_TO_CREATE_USERS: "You are not allowed to create users";
5895
+ readonly YOU_ARE_NOT_ALLOWED_TO_LIST_USERS: "You are not allowed to list users";
5896
+ readonly YOU_ARE_NOT_ALLOWED_TO_LIST_USERS_SESSIONS: "You are not allowed to list users sessions";
5897
+ readonly YOU_ARE_NOT_ALLOWED_TO_BAN_USERS: "You are not allowed to ban users";
5898
+ readonly YOU_ARE_NOT_ALLOWED_TO_IMPERSONATE_USERS: "You are not allowed to impersonate users";
5899
+ readonly YOU_ARE_NOT_ALLOWED_TO_REVOKE_USERS_SESSIONS: "You are not allowed to revoke users sessions";
5900
+ readonly YOU_ARE_NOT_ALLOWED_TO_DELETE_USERS: "You are not allowed to delete users";
5901
+ readonly YOU_ARE_NOT_ALLOWED_TO_SET_USERS_PASSWORD: "You are not allowed to set users password";
5902
+ readonly BANNED_USER: "You have been banned from this application";
5903
+ readonly YOU_ARE_NOT_ALLOWED_TO_GET_USER: "You are not allowed to get user";
5904
+ readonly NO_DATA_TO_UPDATE: "No data to update";
5905
+ readonly YOU_ARE_NOT_ALLOWED_TO_UPDATE_USERS: "You are not allowed to update users";
5906
+ readonly YOU_CANNOT_REMOVE_YOURSELF: "You cannot remove yourself";
5907
+ readonly YOU_ARE_NOT_ALLOWED_TO_SET_NON_EXISTENT_VALUE: "You are not allowed to set a non-existent role value";
5908
+ readonly YOU_CANNOT_IMPERSONATE_ADMINS: "You cannot impersonate admins";
5909
+ readonly INVALID_ROLE_TYPE: "Invalid role type";
5910
+ readonly OTP_NOT_ENABLED: "OTP not enabled";
5911
+ readonly OTP_HAS_EXPIRED: "OTP has expired";
5912
+ readonly TOTP_NOT_ENABLED: "TOTP not enabled";
5913
+ readonly TWO_FACTOR_NOT_ENABLED: "Two factor isn't enabled";
5914
+ readonly BACKUP_CODES_NOT_ENABLED: "Backup codes aren't enabled";
5915
+ readonly INVALID_BACKUP_CODE: "Invalid backup code";
5916
+ readonly INVALID_CODE: "Invalid code";
5917
+ readonly TOO_MANY_ATTEMPTS_REQUEST_NEW_CODE: "Too many attempts. Please request a new code.";
5918
+ readonly INVALID_TWO_FACTOR_COOKIE: "Invalid two factor cookie";
5919
+ readonly INVALID_METADATA_TYPE: "metadata must be an object or undefined";
5920
+ readonly REFILL_AMOUNT_AND_INTERVAL_REQUIRED: "refillAmount is required when refillInterval is provided";
5921
+ readonly REFILL_INTERVAL_AND_AMOUNT_REQUIRED: "refillInterval is required when refillAmount is provided";
5922
+ readonly USER_BANNED: "User is banned";
5923
+ readonly UNAUTHORIZED_SESSION: "Unauthorized or invalid session";
5924
+ readonly KEY_NOT_FOUND: "API Key not found";
5925
+ readonly KEY_DISABLED: "API Key is disabled";
5926
+ readonly KEY_EXPIRED: "API Key has expired";
5927
+ readonly USAGE_EXCEEDED: "API Key has reached its usage limit";
5928
+ readonly KEY_NOT_RECOVERABLE: "API Key is not recoverable";
5929
+ readonly EXPIRES_IN_IS_TOO_SMALL: "The expiresIn is smaller than the predefined minimum value.";
5930
+ readonly EXPIRES_IN_IS_TOO_LARGE: "The expiresIn is larger than the predefined maximum value.";
5931
+ readonly INVALID_REMAINING: "The remaining count is either too large or too small.";
5932
+ readonly INVALID_PREFIX_LENGTH: "The prefix length is either too large or too small.";
5933
+ readonly INVALID_NAME_LENGTH: "The name length is either too large or too small.";
5934
+ readonly METADATA_DISABLED: "Metadata is disabled.";
5935
+ readonly RATE_LIMIT_EXCEEDED: "Rate limit exceeded.";
5936
+ readonly NO_VALUES_TO_UPDATE: "No values to update.";
5937
+ readonly KEY_DISABLED_EXPIRATION: "Custom key expiration values are disabled.";
5938
+ readonly INVALID_API_KEY: "Invalid API key.";
5939
+ readonly INVALID_USER_ID_FROM_API_KEY: "The user id from the API key is invalid.";
5940
+ readonly INVALID_API_KEY_GETTER_RETURN_TYPE: "API Key getter returned an invalid key type. Expected string.";
5941
+ readonly SERVER_ONLY_PROPERTY: "The property you're trying to set can only be set from the server auth instance only.";
5942
+ readonly FAILED_TO_UPDATE_API_KEY: "Failed to update API key";
5943
+ readonly NAME_REQUIRED: "API Key name is required.";
5944
+ readonly USER_NOT_FOUND: "User not found";
5724
5945
  readonly FAILED_TO_CREATE_SESSION: "Failed to create session";
5725
5946
  readonly FAILED_TO_UPDATE_USER: "Failed to update user";
5726
5947
  readonly FAILED_TO_GET_SESSION: "Failed to get session";
@@ -5736,8 +5957,6 @@ declare const stub: {
5736
5957
  readonly EMAIL_NOT_VERIFIED: "Email not verified";
5737
5958
  readonly PASSWORD_TOO_SHORT: "Password too short";
5738
5959
  readonly PASSWORD_TOO_LONG: "Password too long";
5739
- readonly USER_ALREADY_EXISTS: "User already exists.";
5740
- readonly USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL: "User already exists. Use another email.";
5741
5960
  readonly EMAIL_CAN_NOT_BE_UPDATED: "Email can not be updated";
5742
5961
  readonly CREDENTIAL_ACCOUNT_NOT_FOUND: "Credential account not found";
5743
5962
  readonly SESSION_EXPIRED: "Session expired. Re-authenticate to perform this action.";