@shophost/react 2.0.13 → 2.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,1024 +1,633 @@
1
1
  export declare const useSession: () => {
2
2
  data: {
3
- user: {
3
+ user: import('better-auth/react').StripEmptyObjects<{
4
4
  id: string;
5
- name: string;
6
- email: string;
7
- emailVerified: boolean;
8
5
  createdAt: Date;
9
6
  updatedAt: Date;
10
- image?: string | null | undefined | undefined;
7
+ email: string;
8
+ emailVerified: boolean;
9
+ name: string;
10
+ image?: string | null | undefined;
11
+ } & {
11
12
  firstname: string;
12
13
  lastname: string;
13
- };
14
- session: {
14
+ } & {}>;
15
+ session: import('better-auth/react').StripEmptyObjects<{
15
16
  id: string;
16
17
  createdAt: Date;
17
18
  updatedAt: Date;
18
19
  userId: string;
19
20
  expiresAt: Date;
20
21
  token: string;
21
- ipAddress?: string | null | undefined | undefined;
22
- userAgent?: string | null | undefined | undefined;
22
+ ipAddress?: string | null | undefined;
23
+ userAgent?: string | null | undefined;
24
+ } & {} & {
23
25
  activeOrganizationId?: string | null | undefined;
24
- };
26
+ } & {} & {}>;
25
27
  } | null;
26
28
  isPending: boolean;
29
+ isRefetching: boolean;
27
30
  error: import('better-auth/react').BetterFetchError | null;
28
- refetch: () => void;
31
+ refetch: (queryParams?: {
32
+ query?: import('better-auth/*').SessionQueryParams;
33
+ } | undefined) => Promise<void>;
29
34
  }, signIn: {
30
- social: <FetchOptions extends {
31
- headers?: (HeadersInit & (HeadersInit | {
32
- accept: "application/json" | "text/plain" | "application/octet-stream";
33
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
34
- authorization: "Bearer" | "Basic";
35
- })) | undefined;
36
- method?: string | undefined;
37
- cache?: RequestCache | undefined;
38
- credentials?: RequestCredentials | undefined;
39
- integrity?: string | undefined;
40
- keepalive?: boolean | undefined;
41
- mode?: RequestMode | undefined;
42
- priority?: RequestPriority | undefined;
43
- redirect?: RequestRedirect | undefined;
44
- referrer?: string | undefined;
45
- referrerPolicy?: ReferrerPolicy | undefined;
46
- signal?: (AbortSignal | null) | undefined;
47
- window?: null | undefined;
48
- next?: NextFetchRequestConfig | undefined;
49
- onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
50
- onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
51
- onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
52
- onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
53
- onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
54
- hookOptions?: {
55
- cloneResponse?: boolean;
56
- } | undefined;
57
- timeout?: number | undefined;
58
- customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
59
- plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
60
- baseURL?: string | undefined;
61
- throw?: boolean | undefined;
62
- auth?: ({
63
- type: "Bearer";
64
- token: string | (() => string | undefined) | undefined;
65
- } | {
66
- type: "Basic";
67
- username: string | (() => string | undefined) | undefined;
68
- password: string | (() => string | undefined) | undefined;
69
- } | {
70
- type: "Custom";
71
- prefix: string | (() => string | undefined) | undefined;
72
- value: string | (() => string | undefined) | undefined;
73
- }) | undefined;
74
- body?: (Partial<{
75
- provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk";
76
- scopes?: string[] | undefined;
77
- idToken?: {
78
- token: string;
79
- accessToken?: string | undefined;
80
- refreshToken?: string | undefined;
81
- expiresAt?: number | undefined;
82
- nonce?: string | undefined;
83
- } | undefined;
84
- callbackURL?: string | undefined;
85
- requestSignUp?: boolean | undefined;
86
- errorCallbackURL?: string | undefined;
87
- newUserCallbackURL?: string | undefined;
88
- disableRedirect?: boolean | undefined;
89
- }> & Record<string, any>) | undefined;
90
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
91
- params?: Record<string, any> | undefined;
92
- duplex?: "full" | "half" | undefined;
93
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
94
- retry?: import('better-auth/react').RetryOptions | undefined;
95
- retryAttempt?: number | undefined;
96
- output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
97
- errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
98
- disableValidation?: boolean | undefined;
99
- }>(data_0: import('better-auth/dist/shared/better-auth.Bi8FQwDD').b<{
100
- provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk";
101
- scopes?: string[] | undefined;
35
+ social: <FetchOptions extends import('@better-auth/core').ClientFetchOption<Partial<{
36
+ provider: (string & {}) | "paypal" | "line" | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "paybin" | "polar" | "railway" | "vercel";
37
+ callbackURL?: string | undefined;
38
+ newUserCallbackURL?: string | undefined;
39
+ errorCallbackURL?: string | undefined;
40
+ disableRedirect?: boolean | undefined;
102
41
  idToken?: {
103
42
  token: string;
43
+ nonce?: string | undefined;
104
44
  accessToken?: string | undefined;
105
45
  refreshToken?: string | undefined;
106
46
  expiresAt?: number | undefined;
107
- nonce?: string | undefined;
47
+ user?: {
48
+ name?: {
49
+ firstName?: string | undefined;
50
+ lastName?: string | undefined;
51
+ } | undefined;
52
+ email?: string | undefined;
53
+ } | undefined;
108
54
  } | undefined;
109
- callbackURL?: string | undefined;
55
+ scopes?: string[] | undefined;
110
56
  requestSignUp?: boolean | undefined;
111
- errorCallbackURL?: string | undefined;
57
+ loginHint?: string | undefined;
58
+ additionalData?: Record<string, any> | undefined;
59
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth/react').Prettify<{
60
+ provider: (string & {}) | "paypal" | "line" | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "paybin" | "polar" | "railway" | "vercel";
61
+ callbackURL?: string | undefined;
112
62
  newUserCallbackURL?: string | undefined;
63
+ errorCallbackURL?: string | undefined;
113
64
  disableRedirect?: boolean | undefined;
114
- } & {
115
- fetchOptions?: {
116
- headers?: (HeadersInit & (HeadersInit | {
117
- accept: "application/json" | "text/plain" | "application/octet-stream";
118
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
119
- authorization: "Bearer" | "Basic";
120
- })) | undefined;
121
- method?: string | undefined;
122
- cache?: RequestCache | undefined;
123
- credentials?: RequestCredentials | undefined;
124
- integrity?: string | undefined;
125
- keepalive?: boolean | undefined;
126
- mode?: RequestMode | undefined;
127
- priority?: RequestPriority | undefined;
128
- redirect?: RequestRedirect | undefined;
129
- referrer?: string | undefined;
130
- referrerPolicy?: ReferrerPolicy | undefined;
131
- signal?: (AbortSignal | null) | undefined;
132
- window?: null | undefined;
133
- next?: NextFetchRequestConfig | undefined;
134
- onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
135
- onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
136
- onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
137
- onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
138
- onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
139
- hookOptions?: {
140
- cloneResponse?: boolean;
65
+ idToken?: {
66
+ token: string;
67
+ nonce?: string | undefined;
68
+ accessToken?: string | undefined;
69
+ refreshToken?: string | undefined;
70
+ expiresAt?: number | undefined;
71
+ user?: {
72
+ name?: {
73
+ firstName?: string | undefined;
74
+ lastName?: string | undefined;
75
+ } | undefined;
76
+ email?: string | undefined;
141
77
  } | undefined;
142
- timeout?: number | undefined;
143
- customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
144
- plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
145
- baseURL?: string | undefined;
146
- throw?: boolean | undefined;
147
- auth?: ({
148
- type: "Bearer";
149
- token: string | (() => string | undefined) | undefined;
150
- } | {
151
- type: "Basic";
152
- username: string | (() => string | undefined) | undefined;
153
- password: string | (() => string | undefined) | undefined;
154
- } | {
155
- type: "Custom";
156
- prefix: string | (() => string | undefined) | undefined;
157
- value: string | (() => string | undefined) | undefined;
158
- }) | undefined;
159
- body?: undefined;
160
- query?: Record<string, any> | undefined;
161
- params?: Record<string, any> | undefined;
162
- duplex?: "full" | "half" | undefined;
163
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
164
- retry?: import('better-auth/react').RetryOptions | undefined;
165
- retryAttempt?: number | undefined;
166
- output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
167
- errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
168
- disableValidation?: boolean | undefined;
169
78
  } | undefined;
170
- }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<NonNullable<{
79
+ scopes?: string[] | undefined;
80
+ requestSignUp?: boolean | undefined;
81
+ loginHint?: string | undefined;
82
+ additionalData?: Record<string, any> | undefined;
83
+ } & {
84
+ fetchOptions?: FetchOptions | undefined;
85
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<{
86
+ redirect: boolean;
87
+ url: string;
88
+ } | (Omit<{
171
89
  redirect: boolean;
172
90
  token: string;
173
91
  url: undefined;
174
92
  user: {
175
93
  id: string;
94
+ createdAt: Date;
95
+ updatedAt: Date;
176
96
  email: string;
177
- name: string;
178
- image: string | null | undefined;
179
97
  emailVerified: boolean;
98
+ name: string;
99
+ image?: string | null | undefined | undefined;
100
+ };
101
+ }, "user"> & {
102
+ user: import('better-auth/react').StripEmptyObjects<{
103
+ id: string;
180
104
  createdAt: Date;
181
105
  updatedAt: Date;
182
- };
183
- } | {
184
- url: string;
185
- redirect: boolean;
186
- }>, {
187
- code?: string;
188
- message?: string;
106
+ email: string;
107
+ emailVerified: boolean;
108
+ name: string;
109
+ image?: string | null | undefined;
110
+ } & {
111
+ firstname: string;
112
+ lastname: string;
113
+ } & {}>;
114
+ }), {
115
+ code?: string | undefined;
116
+ message?: string | undefined;
189
117
  }, FetchOptions["throw"] extends true ? true : false>>;
190
118
  } & {
191
- email: <FetchOptions extends {
192
- headers?: (HeadersInit & (HeadersInit | {
193
- accept: "application/json" | "text/plain" | "application/octet-stream";
194
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
195
- authorization: "Bearer" | "Basic";
196
- })) | undefined;
197
- method?: string | undefined;
198
- cache?: RequestCache | undefined;
199
- credentials?: RequestCredentials | undefined;
200
- integrity?: string | undefined;
201
- keepalive?: boolean | undefined;
202
- mode?: RequestMode | undefined;
203
- priority?: RequestPriority | undefined;
204
- redirect?: RequestRedirect | undefined;
205
- referrer?: string | undefined;
206
- referrerPolicy?: ReferrerPolicy | undefined;
207
- signal?: (AbortSignal | null) | undefined;
208
- window?: null | undefined;
209
- next?: NextFetchRequestConfig | undefined;
210
- onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
211
- onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
212
- onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
213
- onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
214
- onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
215
- hookOptions?: {
216
- cloneResponse?: boolean;
217
- } | undefined;
218
- timeout?: number | undefined;
219
- customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
220
- plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
221
- baseURL?: string | undefined;
222
- throw?: boolean | undefined;
223
- auth?: ({
224
- type: "Bearer";
225
- token: string | (() => string | undefined) | undefined;
226
- } | {
227
- type: "Basic";
228
- username: string | (() => string | undefined) | undefined;
229
- password: string | (() => string | undefined) | undefined;
230
- } | {
231
- type: "Custom";
232
- prefix: string | (() => string | undefined) | undefined;
233
- value: string | (() => string | undefined) | undefined;
234
- }) | undefined;
235
- body?: (Partial<{
236
- password: string;
237
- email: string;
238
- callbackURL?: string | undefined;
239
- rememberMe?: boolean | undefined;
240
- }> & Record<string, any>) | undefined;
241
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
242
- params?: Record<string, any> | undefined;
243
- duplex?: "full" | "half" | undefined;
244
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
245
- retry?: import('better-auth/react').RetryOptions | undefined;
246
- retryAttempt?: number | undefined;
247
- output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
248
- errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
249
- disableValidation?: boolean | undefined;
250
- }>(data_0: import('better-auth/dist/shared/better-auth.Bi8FQwDD').b<{
119
+ email: <FetchOptions extends import('@better-auth/core').ClientFetchOption<Partial<{
120
+ email: string;
251
121
  password: string;
122
+ callbackURL?: string | undefined;
123
+ rememberMe?: boolean | undefined;
124
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth/react').Prettify<{
252
125
  email: string;
126
+ password: string;
253
127
  callbackURL?: string | undefined;
254
128
  rememberMe?: boolean | undefined;
255
129
  } & {
256
- fetchOptions?: {
257
- headers?: (HeadersInit & (HeadersInit | {
258
- accept: "application/json" | "text/plain" | "application/octet-stream";
259
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
260
- authorization: "Bearer" | "Basic";
261
- })) | undefined;
262
- method?: string | undefined;
263
- cache?: RequestCache | undefined;
264
- credentials?: RequestCredentials | undefined;
265
- integrity?: string | undefined;
266
- keepalive?: boolean | undefined;
267
- mode?: RequestMode | undefined;
268
- priority?: RequestPriority | undefined;
269
- redirect?: RequestRedirect | undefined;
270
- referrer?: string | undefined;
271
- referrerPolicy?: ReferrerPolicy | undefined;
272
- signal?: (AbortSignal | null) | undefined;
273
- window?: null | undefined;
274
- next?: NextFetchRequestConfig | undefined;
275
- onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
276
- onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
277
- onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
278
- onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
279
- onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
280
- hookOptions?: {
281
- cloneResponse?: boolean;
282
- } | undefined;
283
- timeout?: number | undefined;
284
- customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
285
- plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
286
- baseURL?: string | undefined;
287
- throw?: boolean | undefined;
288
- auth?: ({
289
- type: "Bearer";
290
- token: string | (() => string | undefined) | undefined;
291
- } | {
292
- type: "Basic";
293
- username: string | (() => string | undefined) | undefined;
294
- password: string | (() => string | undefined) | undefined;
295
- } | {
296
- type: "Custom";
297
- prefix: string | (() => string | undefined) | undefined;
298
- value: string | (() => string | undefined) | undefined;
299
- }) | undefined;
300
- body?: undefined;
301
- query?: Record<string, any> | undefined;
302
- params?: Record<string, any> | undefined;
303
- duplex?: "full" | "half" | undefined;
304
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
305
- retry?: import('better-auth/react').RetryOptions | undefined;
306
- retryAttempt?: number | undefined;
307
- output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
308
- errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
309
- disableValidation?: boolean | undefined;
310
- } | undefined;
311
- }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<{
130
+ fetchOptions?: FetchOptions | undefined;
131
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<Omit<{
312
132
  redirect: boolean;
313
133
  token: string;
314
- url: string | undefined;
134
+ url?: string | undefined;
315
135
  user: {
316
136
  id: string;
137
+ createdAt: Date;
138
+ updatedAt: Date;
317
139
  email: string;
318
- name: string;
319
- image: string | null | undefined;
320
140
  emailVerified: boolean;
141
+ name: string;
142
+ image?: string | null | undefined | undefined;
143
+ };
144
+ }, "user"> & {
145
+ user: import('better-auth/react').StripEmptyObjects<{
146
+ id: string;
321
147
  createdAt: Date;
322
148
  updatedAt: Date;
323
- };
149
+ email: string;
150
+ emailVerified: boolean;
151
+ name: string;
152
+ image?: string | null | undefined;
153
+ } & {
154
+ firstname: string;
155
+ lastname: string;
156
+ } & {}>;
324
157
  }, {
325
- code?: string;
326
- message?: string;
158
+ code?: string | undefined;
159
+ message?: string | undefined;
327
160
  }, FetchOptions["throw"] extends true ? true : false>>;
328
161
  }, signUp: {
329
- email: <FetchOptions extends {
330
- headers?: (HeadersInit & (HeadersInit | {
331
- accept: "application/json" | "text/plain" | "application/octet-stream";
332
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
333
- authorization: "Bearer" | "Basic";
334
- })) | undefined;
335
- method?: string | undefined;
336
- cache?: RequestCache | undefined;
337
- credentials?: RequestCredentials | undefined;
338
- integrity?: string | undefined;
339
- keepalive?: boolean | undefined;
340
- mode?: RequestMode | undefined;
341
- priority?: RequestPriority | undefined;
342
- redirect?: RequestRedirect | undefined;
343
- referrer?: string | undefined;
344
- referrerPolicy?: ReferrerPolicy | undefined;
345
- signal?: (AbortSignal | null) | undefined;
346
- window?: null | undefined;
347
- next?: NextFetchRequestConfig | undefined;
348
- onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
349
- onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
350
- onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
351
- onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
352
- onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
353
- hookOptions?: {
354
- cloneResponse?: boolean;
355
- } | undefined;
356
- timeout?: number | undefined;
357
- customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
358
- plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
359
- baseURL?: string | undefined;
360
- throw?: boolean | undefined;
361
- auth?: ({
362
- type: "Bearer";
363
- token: string | (() => string | undefined) | undefined;
364
- } | {
365
- type: "Basic";
366
- username: string | (() => string | undefined) | undefined;
367
- password: string | (() => string | undefined) | undefined;
368
- } | {
369
- type: "Custom";
370
- prefix: string | (() => string | undefined) | undefined;
371
- value: string | (() => string | undefined) | undefined;
372
- }) | undefined;
373
- body?: (Partial<{
374
- name: string;
375
- email: string;
376
- password: string;
377
- }> & Record<string, any>) | undefined;
378
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
379
- params?: Record<string, any> | undefined;
380
- duplex?: "full" | "half" | undefined;
381
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
382
- retry?: import('better-auth/react').RetryOptions | undefined;
383
- retryAttempt?: number | undefined;
384
- output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
385
- errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
386
- disableValidation?: boolean | undefined;
387
- }>(data_0: import('better-auth/dist/shared/better-auth.Bi8FQwDD').b<{
388
- email: string;
162
+ email: <FetchOptions extends import('@better-auth/core').ClientFetchOption<Partial<{
389
163
  name: string;
164
+ email: string;
390
165
  password: string;
391
- image?: string;
392
- callbackURL?: string;
393
- fetchOptions?: FetchOptions | undefined;
394
- } & {
395
- firstname: string;
396
- lastname: string;
397
- } & {}>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<NonNullable<{
166
+ image?: string | undefined;
167
+ callbackURL?: string | undefined;
168
+ rememberMe?: boolean | undefined;
169
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth/react').Prettify<import('better-auth/client').InferSignUpEmailCtx<{
170
+ baseURL: string;
171
+ plugins: ({
172
+ id: "organization";
173
+ $InferServerPlugin: import('better-auth/plugins').OrganizationPlugin<{
174
+ ac: import('better-auth/plugins').AccessControl<{
175
+ readonly organization: readonly ["update", "delete"];
176
+ readonly member: readonly ["create", "update", "delete"];
177
+ readonly invitation: readonly ["create", "cancel"];
178
+ readonly team: readonly ["create", "update", "delete"];
179
+ readonly ac: readonly ["create", "read", "update", "delete"];
180
+ }>;
181
+ roles: {
182
+ admin: import('better-auth/plugins').Role;
183
+ member: import('better-auth/plugins').Role;
184
+ owner: import('better-auth/plugins').Role;
185
+ };
186
+ teams: {
187
+ enabled: false;
188
+ };
189
+ schema: {
190
+ organization?: {
191
+ additionalFields?: {
192
+ [key: string]: import('better-auth/*').DBFieldAttribute;
193
+ };
194
+ };
195
+ member?: {
196
+ additionalFields?: {
197
+ [key: string]: import('better-auth/*').DBFieldAttribute;
198
+ };
199
+ };
200
+ invitation?: {
201
+ additionalFields?: {
202
+ [key: string]: import('better-auth/*').DBFieldAttribute;
203
+ };
204
+ };
205
+ team?: {
206
+ additionalFields?: {
207
+ [key: string]: import('better-auth/*').DBFieldAttribute;
208
+ };
209
+ };
210
+ organizationRole?: {
211
+ additionalFields?: {
212
+ [key: string]: import('better-auth/*').DBFieldAttribute;
213
+ };
214
+ };
215
+ } | undefined;
216
+ dynamicAccessControl: {
217
+ enabled: false;
218
+ };
219
+ }>;
220
+ getActions: ($fetch: import('better-auth/react').BetterFetch, _$store: import('@better-auth/core').ClientStore, co: import('@better-auth/core').BetterAuthClientOptions | undefined) => {
221
+ $Infer: {
222
+ ActiveOrganization: {
223
+ members: {
224
+ id: string;
225
+ organizationId: string;
226
+ role: "member" | "admin" | "owner";
227
+ createdAt: Date;
228
+ userId: string;
229
+ user: {
230
+ id: string;
231
+ email: string;
232
+ name: string;
233
+ image?: string | undefined;
234
+ };
235
+ }[];
236
+ invitations: {
237
+ id: string;
238
+ organizationId: string;
239
+ email: string;
240
+ role: "member" | "admin" | "owner";
241
+ status: import('better-auth/client/plugins').InvitationStatus;
242
+ inviterId: string;
243
+ expiresAt: Date;
244
+ createdAt: Date;
245
+ }[];
246
+ } & {
247
+ id: string;
248
+ name: string;
249
+ slug: string;
250
+ createdAt: Date;
251
+ logo?: string | null | undefined | undefined;
252
+ metadata?: any;
253
+ };
254
+ Organization: {
255
+ id: string;
256
+ name: string;
257
+ slug: string;
258
+ createdAt: Date;
259
+ logo?: string | null | undefined;
260
+ metadata?: any;
261
+ };
262
+ Invitation: {
263
+ id: string;
264
+ organizationId: string;
265
+ email: string;
266
+ role: "member" | "admin" | "owner";
267
+ status: import('better-auth/client/plugins').InvitationStatus;
268
+ inviterId: string;
269
+ expiresAt: Date;
270
+ createdAt: Date;
271
+ };
272
+ Member: {
273
+ id: string;
274
+ organizationId: string;
275
+ role: "member" | "admin" | "owner";
276
+ createdAt: Date;
277
+ userId: string;
278
+ user: {
279
+ id: string;
280
+ email: string;
281
+ name: string;
282
+ image?: string | undefined;
283
+ };
284
+ };
285
+ Team: {
286
+ id: string;
287
+ name: string;
288
+ organizationId: string;
289
+ createdAt: Date;
290
+ updatedAt?: Date | undefined;
291
+ };
292
+ };
293
+ organization: {
294
+ checkRolePermission: <R extends "member" | "admin" | "owner">(data: {
295
+ permissions: {
296
+ readonly organization?: ("delete" | "update")[] | undefined;
297
+ readonly member?: ("delete" | "create" | "update")[] | undefined;
298
+ readonly invitation?: ("cancel" | "create")[] | undefined;
299
+ readonly team?: ("delete" | "create" | "update")[] | undefined;
300
+ readonly ac?: ("delete" | "create" | "update" | "read")[] | undefined;
301
+ };
302
+ } & {
303
+ role: R;
304
+ }) => boolean;
305
+ };
306
+ };
307
+ getAtoms: ($fetch: import('better-auth/react').BetterFetch) => {
308
+ $listOrg: import('better-auth/react').PreinitializedWritableAtom<boolean> & object;
309
+ $activeOrgSignal: import('better-auth/react').PreinitializedWritableAtom<boolean> & object;
310
+ $activeMemberSignal: import('better-auth/react').PreinitializedWritableAtom<boolean> & object;
311
+ $activeMemberRoleSignal: import('better-auth/react').PreinitializedWritableAtom<boolean> & object;
312
+ activeOrganization: import('better-auth/client').AuthQueryAtom<import('better-auth/react').Prettify<{
313
+ id: string;
314
+ name: string;
315
+ slug: string;
316
+ createdAt: Date;
317
+ logo?: string | null | undefined | undefined;
318
+ metadata?: any;
319
+ } & {
320
+ members: {
321
+ id: string;
322
+ organizationId: string;
323
+ role: "member" | "admin" | "owner";
324
+ createdAt: Date;
325
+ userId: string;
326
+ user: {
327
+ id: string;
328
+ email: string;
329
+ name: string;
330
+ image?: string | undefined;
331
+ };
332
+ }[];
333
+ invitations: {
334
+ id: string;
335
+ organizationId: string;
336
+ email: string;
337
+ role: "member" | "admin" | "owner";
338
+ status: import('better-auth/client/plugins').InvitationStatus;
339
+ inviterId: string;
340
+ expiresAt: Date;
341
+ createdAt: Date;
342
+ }[];
343
+ }>>;
344
+ listOrganizations: import('better-auth/client').AuthQueryAtom<{
345
+ id: string;
346
+ name: string;
347
+ slug: string;
348
+ createdAt: Date;
349
+ logo?: string | null | undefined | undefined;
350
+ metadata?: any;
351
+ }[]>;
352
+ activeMember: import('better-auth/client').AuthQueryAtom<{
353
+ id: string;
354
+ organizationId: string;
355
+ userId: string;
356
+ role: string;
357
+ createdAt: Date;
358
+ }>;
359
+ activeMemberRole: import('better-auth/client').AuthQueryAtom<{
360
+ role: string;
361
+ }>;
362
+ };
363
+ pathMethods: {
364
+ "/organization/get-full-organization": "GET";
365
+ "/organization/list-user-teams": "GET";
366
+ };
367
+ atomListeners: ({
368
+ matcher(path: string): path is "/organization/create" | "/organization/update" | "/organization/delete";
369
+ signal: "$listOrg";
370
+ } | {
371
+ matcher(path: string): boolean;
372
+ signal: "$activeOrgSignal";
373
+ } | {
374
+ matcher(path: string): boolean;
375
+ signal: "$sessionSignal";
376
+ } | {
377
+ matcher(path: string): boolean;
378
+ signal: "$activeMemberSignal";
379
+ } | {
380
+ matcher(path: string): boolean;
381
+ signal: "$activeMemberRoleSignal";
382
+ })[];
383
+ $ERROR_CODES: {
384
+ YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_ORGANIZATION: import('better-auth/*').RawError<"YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_ORGANIZATION">;
385
+ YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_ORGANIZATIONS: import('better-auth/*').RawError<"YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_ORGANIZATIONS">;
386
+ ORGANIZATION_ALREADY_EXISTS: import('better-auth/*').RawError<"ORGANIZATION_ALREADY_EXISTS">;
387
+ ORGANIZATION_SLUG_ALREADY_TAKEN: import('better-auth/*').RawError<"ORGANIZATION_SLUG_ALREADY_TAKEN">;
388
+ ORGANIZATION_NOT_FOUND: import('better-auth/*').RawError<"ORGANIZATION_NOT_FOUND">;
389
+ USER_IS_NOT_A_MEMBER_OF_THE_ORGANIZATION: import('better-auth/*').RawError<"USER_IS_NOT_A_MEMBER_OF_THE_ORGANIZATION">;
390
+ YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_ORGANIZATION: import('better-auth/*').RawError<"YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_ORGANIZATION">;
391
+ YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_ORGANIZATION: import('better-auth/*').RawError<"YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_ORGANIZATION">;
392
+ NO_ACTIVE_ORGANIZATION: import('better-auth/*').RawError<"NO_ACTIVE_ORGANIZATION">;
393
+ USER_IS_ALREADY_A_MEMBER_OF_THIS_ORGANIZATION: import('better-auth/*').RawError<"USER_IS_ALREADY_A_MEMBER_OF_THIS_ORGANIZATION">;
394
+ MEMBER_NOT_FOUND: import('better-auth/*').RawError<"MEMBER_NOT_FOUND">;
395
+ ROLE_NOT_FOUND: import('better-auth/*').RawError<"ROLE_NOT_FOUND">;
396
+ YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM: import('better-auth/*').RawError<"YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM">;
397
+ TEAM_ALREADY_EXISTS: import('better-auth/*').RawError<"TEAM_ALREADY_EXISTS">;
398
+ TEAM_NOT_FOUND: import('better-auth/*').RawError<"TEAM_NOT_FOUND">;
399
+ YOU_CANNOT_LEAVE_THE_ORGANIZATION_AS_THE_ONLY_OWNER: import('better-auth/*').RawError<"YOU_CANNOT_LEAVE_THE_ORGANIZATION_AS_THE_ONLY_OWNER">;
400
+ YOU_CANNOT_LEAVE_THE_ORGANIZATION_WITHOUT_AN_OWNER: import('better-auth/*').RawError<"YOU_CANNOT_LEAVE_THE_ORGANIZATION_WITHOUT_AN_OWNER">;
401
+ YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_MEMBER: import('better-auth/*').RawError<"YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_MEMBER">;
402
+ YOU_ARE_NOT_ALLOWED_TO_INVITE_USERS_TO_THIS_ORGANIZATION: import('better-auth/*').RawError<"YOU_ARE_NOT_ALLOWED_TO_INVITE_USERS_TO_THIS_ORGANIZATION">;
403
+ USER_IS_ALREADY_INVITED_TO_THIS_ORGANIZATION: import('better-auth/*').RawError<"USER_IS_ALREADY_INVITED_TO_THIS_ORGANIZATION">;
404
+ INVITATION_NOT_FOUND: import('better-auth/*').RawError<"INVITATION_NOT_FOUND">;
405
+ YOU_ARE_NOT_THE_RECIPIENT_OF_THE_INVITATION: import('better-auth/*').RawError<"YOU_ARE_NOT_THE_RECIPIENT_OF_THE_INVITATION">;
406
+ EMAIL_VERIFICATION_REQUIRED_BEFORE_ACCEPTING_OR_REJECTING_INVITATION: import('better-auth/*').RawError<"EMAIL_VERIFICATION_REQUIRED_BEFORE_ACCEPTING_OR_REJECTING_INVITATION">;
407
+ YOU_ARE_NOT_ALLOWED_TO_CANCEL_THIS_INVITATION: import('better-auth/*').RawError<"YOU_ARE_NOT_ALLOWED_TO_CANCEL_THIS_INVITATION">;
408
+ INVITER_IS_NO_LONGER_A_MEMBER_OF_THE_ORGANIZATION: import('better-auth/*').RawError<"INVITER_IS_NO_LONGER_A_MEMBER_OF_THE_ORGANIZATION">;
409
+ YOU_ARE_NOT_ALLOWED_TO_INVITE_USER_WITH_THIS_ROLE: import('better-auth/*').RawError<"YOU_ARE_NOT_ALLOWED_TO_INVITE_USER_WITH_THIS_ROLE">;
410
+ FAILED_TO_RETRIEVE_INVITATION: import('better-auth/*').RawError<"FAILED_TO_RETRIEVE_INVITATION">;
411
+ YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_TEAMS: import('better-auth/*').RawError<"YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_TEAMS">;
412
+ UNABLE_TO_REMOVE_LAST_TEAM: import('better-auth/*').RawError<"UNABLE_TO_REMOVE_LAST_TEAM">;
413
+ YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_MEMBER: import('better-auth/*').RawError<"YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_MEMBER">;
414
+ ORGANIZATION_MEMBERSHIP_LIMIT_REACHED: import('better-auth/*').RawError<"ORGANIZATION_MEMBERSHIP_LIMIT_REACHED">;
415
+ YOU_ARE_NOT_ALLOWED_TO_CREATE_TEAMS_IN_THIS_ORGANIZATION: import('better-auth/*').RawError<"YOU_ARE_NOT_ALLOWED_TO_CREATE_TEAMS_IN_THIS_ORGANIZATION">;
416
+ YOU_ARE_NOT_ALLOWED_TO_DELETE_TEAMS_IN_THIS_ORGANIZATION: import('better-auth/*').RawError<"YOU_ARE_NOT_ALLOWED_TO_DELETE_TEAMS_IN_THIS_ORGANIZATION">;
417
+ YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_TEAM: import('better-auth/*').RawError<"YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_TEAM">;
418
+ YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_TEAM: import('better-auth/*').RawError<"YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_TEAM">;
419
+ INVITATION_LIMIT_REACHED: import('better-auth/*').RawError<"INVITATION_LIMIT_REACHED">;
420
+ TEAM_MEMBER_LIMIT_REACHED: import('better-auth/*').RawError<"TEAM_MEMBER_LIMIT_REACHED">;
421
+ USER_IS_NOT_A_MEMBER_OF_THE_TEAM: import('better-auth/*').RawError<"USER_IS_NOT_A_MEMBER_OF_THE_TEAM">;
422
+ YOU_CAN_NOT_ACCESS_THE_MEMBERS_OF_THIS_TEAM: import('better-auth/*').RawError<"YOU_CAN_NOT_ACCESS_THE_MEMBERS_OF_THIS_TEAM">;
423
+ YOU_DO_NOT_HAVE_AN_ACTIVE_TEAM: import('better-auth/*').RawError<"YOU_DO_NOT_HAVE_AN_ACTIVE_TEAM">;
424
+ YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM_MEMBER: import('better-auth/*').RawError<"YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM_MEMBER">;
425
+ YOU_ARE_NOT_ALLOWED_TO_REMOVE_A_TEAM_MEMBER: import('better-auth/*').RawError<"YOU_ARE_NOT_ALLOWED_TO_REMOVE_A_TEAM_MEMBER">;
426
+ YOU_ARE_NOT_ALLOWED_TO_ACCESS_THIS_ORGANIZATION: import('better-auth/*').RawError<"YOU_ARE_NOT_ALLOWED_TO_ACCESS_THIS_ORGANIZATION">;
427
+ YOU_ARE_NOT_A_MEMBER_OF_THIS_ORGANIZATION: import('better-auth/*').RawError<"YOU_ARE_NOT_A_MEMBER_OF_THIS_ORGANIZATION">;
428
+ MISSING_AC_INSTANCE: import('better-auth/*').RawError<"MISSING_AC_INSTANCE">;
429
+ YOU_MUST_BE_IN_AN_ORGANIZATION_TO_CREATE_A_ROLE: import('better-auth/*').RawError<"YOU_MUST_BE_IN_AN_ORGANIZATION_TO_CREATE_A_ROLE">;
430
+ YOU_ARE_NOT_ALLOWED_TO_CREATE_A_ROLE: import('better-auth/*').RawError<"YOU_ARE_NOT_ALLOWED_TO_CREATE_A_ROLE">;
431
+ YOU_ARE_NOT_ALLOWED_TO_UPDATE_A_ROLE: import('better-auth/*').RawError<"YOU_ARE_NOT_ALLOWED_TO_UPDATE_A_ROLE">;
432
+ YOU_ARE_NOT_ALLOWED_TO_DELETE_A_ROLE: import('better-auth/*').RawError<"YOU_ARE_NOT_ALLOWED_TO_DELETE_A_ROLE">;
433
+ YOU_ARE_NOT_ALLOWED_TO_READ_A_ROLE: import('better-auth/*').RawError<"YOU_ARE_NOT_ALLOWED_TO_READ_A_ROLE">;
434
+ YOU_ARE_NOT_ALLOWED_TO_LIST_A_ROLE: import('better-auth/*').RawError<"YOU_ARE_NOT_ALLOWED_TO_LIST_A_ROLE">;
435
+ YOU_ARE_NOT_ALLOWED_TO_GET_A_ROLE: import('better-auth/*').RawError<"YOU_ARE_NOT_ALLOWED_TO_GET_A_ROLE">;
436
+ TOO_MANY_ROLES: import('better-auth/*').RawError<"TOO_MANY_ROLES">;
437
+ INVALID_RESOURCE: import('better-auth/*').RawError<"INVALID_RESOURCE">;
438
+ ROLE_NAME_IS_ALREADY_TAKEN: import('better-auth/*').RawError<"ROLE_NAME_IS_ALREADY_TAKEN">;
439
+ CANNOT_DELETE_A_PRE_DEFINED_ROLE: import('better-auth/*').RawError<"CANNOT_DELETE_A_PRE_DEFINED_ROLE">;
440
+ ROLE_IS_ASSIGNED_TO_MEMBERS: import('better-auth/*').RawError<"ROLE_IS_ASSIGNED_TO_MEMBERS">;
441
+ };
442
+ } | {
443
+ id: "additional-fields-client";
444
+ $InferServerPlugin: {
445
+ id: "additional-fields";
446
+ schema: {
447
+ user: {
448
+ fields: {
449
+ firstname: {
450
+ type: "string";
451
+ required: true;
452
+ };
453
+ lastname: {
454
+ type: "string";
455
+ required: true;
456
+ };
457
+ };
458
+ };
459
+ session: {
460
+ fields: {};
461
+ };
462
+ };
463
+ };
464
+ })[];
465
+ }, FetchOptions>>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<(Omit<{
398
466
  token: null;
399
467
  user: {
400
468
  id: string;
469
+ createdAt: Date;
470
+ updatedAt: Date;
401
471
  email: string;
402
- name: string;
403
- image: string | null | undefined;
404
472
  emailVerified: boolean;
473
+ name: string;
474
+ image?: string | null | undefined | undefined;
475
+ };
476
+ }, "user"> & {
477
+ user: import('better-auth/react').StripEmptyObjects<{
478
+ id: string;
405
479
  createdAt: Date;
406
480
  updatedAt: Date;
407
- };
408
- } | {
481
+ email: string;
482
+ emailVerified: boolean;
483
+ name: string;
484
+ image?: string | null | undefined;
485
+ } & {
486
+ firstname: string;
487
+ lastname: string;
488
+ } & {}>;
489
+ }) | (Omit<{
409
490
  token: string;
410
491
  user: {
411
492
  id: string;
493
+ createdAt: Date;
494
+ updatedAt: Date;
412
495
  email: string;
413
- name: string;
414
- image: string | null | undefined;
415
496
  emailVerified: boolean;
497
+ name: string;
498
+ image?: string | null | undefined | undefined;
499
+ };
500
+ }, "user"> & {
501
+ user: import('better-auth/react').StripEmptyObjects<{
502
+ id: string;
416
503
  createdAt: Date;
417
504
  updatedAt: Date;
418
- };
419
- }>, {
420
- code?: string;
421
- message?: string;
505
+ email: string;
506
+ emailVerified: boolean;
507
+ name: string;
508
+ image?: string | null | undefined;
509
+ } & {
510
+ firstname: string;
511
+ lastname: string;
512
+ } & {}>;
513
+ }), {
514
+ code?: string | undefined;
515
+ message?: string | undefined;
422
516
  }, FetchOptions["throw"] extends true ? true : false>>;
423
- }, signOut: <FetchOptions extends {
424
- headers?: (HeadersInit & (HeadersInit | {
425
- accept: "application/json" | "text/plain" | "application/octet-stream";
426
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
427
- authorization: "Bearer" | "Basic";
428
- })) | undefined;
429
- method?: string | undefined;
430
- cache?: RequestCache | undefined;
431
- credentials?: RequestCredentials | undefined;
432
- integrity?: string | undefined;
433
- keepalive?: boolean | undefined;
434
- mode?: RequestMode | undefined;
435
- priority?: RequestPriority | undefined;
436
- redirect?: RequestRedirect | undefined;
437
- referrer?: string | undefined;
438
- referrerPolicy?: ReferrerPolicy | undefined;
439
- signal?: (AbortSignal | null) | undefined;
440
- window?: null | undefined;
441
- next?: NextFetchRequestConfig | undefined;
442
- onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
443
- onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
444
- onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
445
- onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
446
- onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
447
- hookOptions?: {
448
- cloneResponse?: boolean;
449
- } | undefined;
450
- timeout?: number | undefined;
451
- customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
452
- plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
453
- baseURL?: string | undefined;
454
- throw?: boolean | undefined;
455
- auth?: ({
456
- type: "Bearer";
457
- token: string | (() => string | undefined) | undefined;
458
- } | {
459
- type: "Basic";
460
- username: string | (() => string | undefined) | undefined;
461
- password: string | (() => string | undefined) | undefined;
462
- } | {
463
- type: "Custom";
464
- prefix: string | (() => string | undefined) | undefined;
465
- value: string | (() => string | undefined) | undefined;
466
- }) | undefined;
467
- body?: undefined;
468
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
469
- params?: Record<string, any> | undefined;
470
- duplex?: "full" | "half" | undefined;
471
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
472
- retry?: import('better-auth/react').RetryOptions | undefined;
473
- retryAttempt?: number | undefined;
474
- output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
475
- errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
476
- disableValidation?: boolean | undefined;
477
- }>(data_0?: import('better-auth/dist/shared/better-auth.Bi8FQwDD').b<{
517
+ }, signOut: <FetchOptions extends import('@better-auth/core').ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import('better-auth/react').Prettify<{
478
518
  query?: Record<string, any> | undefined;
479
519
  fetchOptions?: FetchOptions | undefined;
480
520
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<{
481
521
  success: boolean;
482
522
  }, {
483
- code?: string;
484
- message?: string;
523
+ code?: string | undefined;
524
+ message?: string | undefined;
485
525
  }, FetchOptions["throw"] extends true ? true : false>>, organization: {
486
- create: <FetchOptions extends {
487
- headers?: (HeadersInit & (HeadersInit | {
488
- accept: "application/json" | "text/plain" | "application/octet-stream";
489
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
490
- authorization: "Bearer" | "Basic";
491
- })) | undefined;
492
- method?: string | undefined;
493
- cache?: RequestCache | undefined;
494
- credentials?: RequestCredentials | undefined;
495
- integrity?: string | undefined;
496
- keepalive?: boolean | undefined;
497
- mode?: RequestMode | undefined;
498
- priority?: RequestPriority | undefined;
499
- redirect?: RequestRedirect | undefined;
500
- referrer?: string | undefined;
501
- referrerPolicy?: ReferrerPolicy | undefined;
502
- signal?: (AbortSignal | null) | undefined;
503
- window?: null | undefined;
504
- next?: NextFetchRequestConfig | undefined;
505
- onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
506
- onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
507
- onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
508
- onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
509
- onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
510
- hookOptions?: {
511
- cloneResponse?: boolean;
512
- } | undefined;
513
- timeout?: number | undefined;
514
- customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
515
- plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
516
- baseURL?: string | undefined;
517
- throw?: boolean | undefined;
518
- auth?: ({
519
- type: "Bearer";
520
- token: string | (() => string | undefined) | undefined;
521
- } | {
522
- type: "Basic";
523
- username: string | (() => string | undefined) | undefined;
524
- password: string | (() => string | undefined) | undefined;
525
- } | {
526
- type: "Custom";
527
- prefix: string | (() => string | undefined) | undefined;
528
- value: string | (() => string | undefined) | undefined;
529
- }) | undefined;
530
- body?: (Partial<{
531
- name: string;
532
- slug: string;
533
- metadata?: Record<string, any> | undefined;
534
- userId?: string | undefined;
535
- logo?: string | undefined;
536
- keepCurrentActiveOrganization?: boolean | undefined;
537
- }> & Record<string, any>) | undefined;
538
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
539
- params?: Record<string, any> | undefined;
540
- duplex?: "full" | "half" | undefined;
541
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
542
- retry?: import('better-auth/react').RetryOptions | undefined;
543
- retryAttempt?: number | undefined;
544
- output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
545
- errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
546
- disableValidation?: boolean | undefined;
547
- }>(data_0: import('better-auth/dist/shared/better-auth.Bi8FQwDD').b<{
526
+ create: <FetchOptions extends import('@better-auth/core').ClientFetchOption<Partial<{
548
527
  name: string;
549
528
  slug: string;
529
+ userId?: string | undefined;
530
+ logo?: string | undefined;
550
531
  metadata?: Record<string, any> | undefined;
532
+ keepCurrentActiveOrganization?: boolean | undefined;
533
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth/react').Prettify<{
534
+ name: string;
535
+ slug: string;
551
536
  userId?: string | undefined;
552
537
  logo?: string | undefined;
538
+ metadata?: Record<string, any> | undefined;
553
539
  keepCurrentActiveOrganization?: boolean | undefined;
554
540
  } & {
555
- fetchOptions?: {
556
- headers?: (HeadersInit & (HeadersInit | {
557
- accept: "application/json" | "text/plain" | "application/octet-stream";
558
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
559
- authorization: "Bearer" | "Basic";
560
- })) | undefined;
561
- method?: string | undefined;
562
- cache?: RequestCache | undefined;
563
- credentials?: RequestCredentials | undefined;
564
- integrity?: string | undefined;
565
- keepalive?: boolean | undefined;
566
- mode?: RequestMode | undefined;
567
- priority?: RequestPriority | undefined;
568
- redirect?: RequestRedirect | undefined;
569
- referrer?: string | undefined;
570
- referrerPolicy?: ReferrerPolicy | undefined;
571
- signal?: (AbortSignal | null) | undefined;
572
- window?: null | undefined;
573
- next?: NextFetchRequestConfig | undefined;
574
- onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
575
- onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
576
- onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
577
- onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
578
- onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
579
- hookOptions?: {
580
- cloneResponse?: boolean;
581
- } | undefined;
582
- timeout?: number | undefined;
583
- customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
584
- plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
585
- baseURL?: string | undefined;
586
- throw?: boolean | undefined;
587
- auth?: ({
588
- type: "Bearer";
589
- token: string | (() => string | undefined) | undefined;
590
- } | {
591
- type: "Basic";
592
- username: string | (() => string | undefined) | undefined;
593
- password: string | (() => string | undefined) | undefined;
594
- } | {
595
- type: "Custom";
596
- prefix: string | (() => string | undefined) | undefined;
597
- value: string | (() => string | undefined) | undefined;
598
- }) | undefined;
599
- body?: undefined;
600
- query?: Record<string, any> | undefined;
601
- params?: Record<string, any> | undefined;
602
- duplex?: "full" | "half" | undefined;
603
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
604
- retry?: import('better-auth/react').RetryOptions | undefined;
605
- retryAttempt?: number | undefined;
606
- output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
607
- errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
608
- disableValidation?: boolean | undefined;
609
- } | undefined;
610
- }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<{
611
- metadata: Record<string, any> | undefined;
612
- members: {
613
- id: string;
614
- createdAt: Date;
615
- userId: string;
616
- organizationId: string;
617
- role: string;
618
- teamId?: string | undefined;
619
- }[];
541
+ fetchOptions?: FetchOptions | undefined;
542
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<NonNullable<{
620
543
  id: string;
621
544
  name: string;
622
- createdAt: Date;
623
545
  slug: string;
624
- logo?: string | null | undefined;
625
- }, {
626
- code?: string;
627
- message?: string;
546
+ createdAt: Date;
547
+ logo?: string | null | undefined | undefined;
548
+ metadata?: any;
549
+ } & {
550
+ metadata: any;
551
+ members: ({
552
+ id: string;
553
+ organizationId: string;
554
+ userId: string;
555
+ role: string;
556
+ createdAt: Date;
557
+ } | undefined)[];
558
+ }>, {
559
+ code?: string | undefined;
560
+ message?: string | undefined;
628
561
  }, FetchOptions["throw"] extends true ? true : false>>;
629
562
  } & {
630
- update: <FetchOptions extends {
631
- headers?: (HeadersInit & (HeadersInit | {
632
- accept: "application/json" | "text/plain" | "application/octet-stream";
633
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
634
- authorization: "Bearer" | "Basic";
635
- })) | undefined;
636
- method?: string | undefined;
637
- cache?: RequestCache | undefined;
638
- credentials?: RequestCredentials | undefined;
639
- integrity?: string | undefined;
640
- keepalive?: boolean | undefined;
641
- mode?: RequestMode | undefined;
642
- priority?: RequestPriority | undefined;
643
- redirect?: RequestRedirect | undefined;
644
- referrer?: string | undefined;
645
- referrerPolicy?: ReferrerPolicy | undefined;
646
- signal?: (AbortSignal | null) | undefined;
647
- window?: null | undefined;
648
- next?: NextFetchRequestConfig | undefined;
649
- onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
650
- onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
651
- onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
652
- onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
653
- onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
654
- hookOptions?: {
655
- cloneResponse?: boolean;
656
- } | undefined;
657
- timeout?: number | undefined;
658
- customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
659
- plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
660
- baseURL?: string | undefined;
661
- throw?: boolean | undefined;
662
- auth?: ({
663
- type: "Bearer";
664
- token: string | (() => string | undefined) | undefined;
665
- } | {
666
- type: "Basic";
667
- username: string | (() => string | undefined) | undefined;
668
- password: string | (() => string | undefined) | undefined;
669
- } | {
670
- type: "Custom";
671
- prefix: string | (() => string | undefined) | undefined;
672
- value: string | (() => string | undefined) | undefined;
673
- }) | undefined;
674
- body?: (Partial<{
675
- data: {
676
- metadata?: Record<string, any> | undefined;
677
- name?: string | undefined;
678
- slug?: string | undefined;
679
- logo?: string | undefined;
680
- };
681
- organizationId?: string | undefined;
682
- }> & Record<string, any>) | undefined;
683
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
684
- params?: Record<string, any> | undefined;
685
- duplex?: "full" | "half" | undefined;
686
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
687
- retry?: import('better-auth/react').RetryOptions | undefined;
688
- retryAttempt?: number | undefined;
689
- output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
690
- errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
691
- disableValidation?: boolean | undefined;
692
- }>(data_0: import('better-auth/dist/shared/better-auth.Bi8FQwDD').b<{
563
+ update: <FetchOptions extends import('@better-auth/core').ClientFetchOption<Partial<{
693
564
  data: {
565
+ name?: string | undefined;
566
+ slug?: string | undefined;
567
+ logo?: string | undefined;
694
568
  metadata?: Record<string, any> | undefined;
569
+ } & Partial<{}>;
570
+ organizationId?: string | undefined;
571
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth/react').Prettify<{
572
+ data: {
695
573
  name?: string | undefined;
696
574
  slug?: string | undefined;
697
575
  logo?: string | undefined;
698
- };
576
+ metadata?: Record<string, any> | undefined;
577
+ } & Partial<{}>;
699
578
  organizationId?: string | undefined;
700
579
  } & {
701
- fetchOptions?: {
702
- headers?: (HeadersInit & (HeadersInit | {
703
- accept: "application/json" | "text/plain" | "application/octet-stream";
704
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
705
- authorization: "Bearer" | "Basic";
706
- })) | undefined;
707
- method?: string | undefined;
708
- cache?: RequestCache | undefined;
709
- credentials?: RequestCredentials | undefined;
710
- integrity?: string | undefined;
711
- keepalive?: boolean | undefined;
712
- mode?: RequestMode | undefined;
713
- priority?: RequestPriority | undefined;
714
- redirect?: RequestRedirect | undefined;
715
- referrer?: string | undefined;
716
- referrerPolicy?: ReferrerPolicy | undefined;
717
- signal?: (AbortSignal | null) | undefined;
718
- window?: null | undefined;
719
- next?: NextFetchRequestConfig | undefined;
720
- onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
721
- onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
722
- onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
723
- onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
724
- onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
725
- hookOptions?: {
726
- cloneResponse?: boolean;
727
- } | undefined;
728
- timeout?: number | undefined;
729
- customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
730
- plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
731
- baseURL?: string | undefined;
732
- throw?: boolean | undefined;
733
- auth?: ({
734
- type: "Bearer";
735
- token: string | (() => string | undefined) | undefined;
736
- } | {
737
- type: "Basic";
738
- username: string | (() => string | undefined) | undefined;
739
- password: string | (() => string | undefined) | undefined;
740
- } | {
741
- type: "Custom";
742
- prefix: string | (() => string | undefined) | undefined;
743
- value: string | (() => string | undefined) | undefined;
744
- }) | undefined;
745
- body?: undefined;
746
- query?: Record<string, any> | undefined;
747
- params?: Record<string, any> | undefined;
748
- duplex?: "full" | "half" | undefined;
749
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
750
- retry?: import('better-auth/react').RetryOptions | undefined;
751
- retryAttempt?: number | undefined;
752
- output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
753
- errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
754
- disableValidation?: boolean | undefined;
755
- } | undefined;
580
+ fetchOptions?: FetchOptions | undefined;
756
581
  }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<{
757
- metadata: Record<string, any> | undefined;
758
582
  id: string;
759
583
  name: string;
760
- createdAt: Date;
761
584
  slug: string;
762
- logo?: string | null | undefined;
585
+ createdAt: Date;
586
+ logo?: string | null | undefined | undefined;
587
+ metadata?: any;
763
588
  }, {
764
- code?: string;
765
- message?: string;
589
+ code?: string | undefined;
590
+ message?: string | undefined;
766
591
  }, FetchOptions["throw"] extends true ? true : false>>;
767
592
  } & {
768
- delete: <FetchOptions extends {
769
- headers?: (HeadersInit & (HeadersInit | {
770
- accept: "application/json" | "text/plain" | "application/octet-stream";
771
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
772
- authorization: "Bearer" | "Basic";
773
- })) | undefined;
774
- method?: string | undefined;
775
- cache?: RequestCache | undefined;
776
- credentials?: RequestCredentials | undefined;
777
- integrity?: string | undefined;
778
- keepalive?: boolean | undefined;
779
- mode?: RequestMode | undefined;
780
- priority?: RequestPriority | undefined;
781
- redirect?: RequestRedirect | undefined;
782
- referrer?: string | undefined;
783
- referrerPolicy?: ReferrerPolicy | undefined;
784
- signal?: (AbortSignal | null) | undefined;
785
- window?: null | undefined;
786
- next?: NextFetchRequestConfig | undefined;
787
- onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
788
- onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
789
- onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
790
- onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
791
- onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
792
- hookOptions?: {
793
- cloneResponse?: boolean;
794
- } | undefined;
795
- timeout?: number | undefined;
796
- customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
797
- plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
798
- baseURL?: string | undefined;
799
- throw?: boolean | undefined;
800
- auth?: ({
801
- type: "Bearer";
802
- token: string | (() => string | undefined) | undefined;
803
- } | {
804
- type: "Basic";
805
- username: string | (() => string | undefined) | undefined;
806
- password: string | (() => string | undefined) | undefined;
807
- } | {
808
- type: "Custom";
809
- prefix: string | (() => string | undefined) | undefined;
810
- value: string | (() => string | undefined) | undefined;
811
- }) | undefined;
812
- body?: (Partial<{
813
- organizationId: string;
814
- }> & Record<string, any>) | undefined;
815
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
816
- params?: Record<string, any> | undefined;
817
- duplex?: "full" | "half" | undefined;
818
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
819
- retry?: import('better-auth/react').RetryOptions | undefined;
820
- retryAttempt?: number | undefined;
821
- output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
822
- errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
823
- disableValidation?: boolean | undefined;
824
- }>(data_0: import('better-auth/dist/shared/better-auth.Bi8FQwDD').b<{
593
+ delete: <FetchOptions extends import('@better-auth/core').ClientFetchOption<Partial<{
594
+ organizationId: string;
595
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth/react').Prettify<{
825
596
  organizationId: string;
826
597
  } & {
827
- fetchOptions?: {
828
- headers?: (HeadersInit & (HeadersInit | {
829
- accept: "application/json" | "text/plain" | "application/octet-stream";
830
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
831
- authorization: "Bearer" | "Basic";
832
- })) | undefined;
833
- method?: string | undefined;
834
- cache?: RequestCache | undefined;
835
- credentials?: RequestCredentials | undefined;
836
- integrity?: string | undefined;
837
- keepalive?: boolean | undefined;
838
- mode?: RequestMode | undefined;
839
- priority?: RequestPriority | undefined;
840
- redirect?: RequestRedirect | undefined;
841
- referrer?: string | undefined;
842
- referrerPolicy?: ReferrerPolicy | undefined;
843
- signal?: (AbortSignal | null) | undefined;
844
- window?: null | undefined;
845
- next?: NextFetchRequestConfig | undefined;
846
- onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
847
- onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
848
- onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
849
- onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
850
- onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
851
- hookOptions?: {
852
- cloneResponse?: boolean;
853
- } | undefined;
854
- timeout?: number | undefined;
855
- customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
856
- plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
857
- baseURL?: string | undefined;
858
- throw?: boolean | undefined;
859
- auth?: ({
860
- type: "Bearer";
861
- token: string | (() => string | undefined) | undefined;
862
- } | {
863
- type: "Basic";
864
- username: string | (() => string | undefined) | undefined;
865
- password: string | (() => string | undefined) | undefined;
866
- } | {
867
- type: "Custom";
868
- prefix: string | (() => string | undefined) | undefined;
869
- value: string | (() => string | undefined) | undefined;
870
- }) | undefined;
871
- body?: undefined;
872
- query?: Record<string, any> | undefined;
873
- params?: Record<string, any> | undefined;
874
- duplex?: "full" | "half" | undefined;
875
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
876
- retry?: import('better-auth/react').RetryOptions | undefined;
877
- retryAttempt?: number | undefined;
878
- output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
879
- errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
880
- disableValidation?: boolean | undefined;
881
- } | undefined;
598
+ fetchOptions?: FetchOptions | undefined;
882
599
  }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<{
883
600
  id: string;
884
601
  name: string;
885
- createdAt: Date;
886
602
  slug: string;
603
+ createdAt: Date;
604
+ logo?: string | null | undefined | undefined;
887
605
  metadata?: any;
888
- logo?: string | null | undefined;
889
- } & Record<string, any>, {
890
- code?: string;
891
- message?: string;
606
+ }, {
607
+ code?: string | undefined;
608
+ message?: string | undefined;
892
609
  }, FetchOptions["throw"] extends true ? true : false>>;
893
610
  } & {
894
- setActive: <FetchOptions extends {
895
- headers?: (HeadersInit & (HeadersInit | {
896
- accept: "application/json" | "text/plain" | "application/octet-stream";
897
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
898
- authorization: "Bearer" | "Basic";
899
- })) | undefined;
900
- method?: string | undefined;
901
- cache?: RequestCache | undefined;
902
- credentials?: RequestCredentials | undefined;
903
- integrity?: string | undefined;
904
- keepalive?: boolean | undefined;
905
- mode?: RequestMode | undefined;
906
- priority?: RequestPriority | undefined;
907
- redirect?: RequestRedirect | undefined;
908
- referrer?: string | undefined;
909
- referrerPolicy?: ReferrerPolicy | undefined;
910
- signal?: (AbortSignal | null) | undefined;
911
- window?: null | undefined;
912
- next?: NextFetchRequestConfig | undefined;
913
- onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
914
- onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
915
- onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
916
- onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
917
- onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
918
- hookOptions?: {
919
- cloneResponse?: boolean;
920
- } | undefined;
921
- timeout?: number | undefined;
922
- customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
923
- plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
924
- baseURL?: string | undefined;
925
- throw?: boolean | undefined;
926
- auth?: ({
927
- type: "Bearer";
928
- token: string | (() => string | undefined) | undefined;
929
- } | {
930
- type: "Basic";
931
- username: string | (() => string | undefined) | undefined;
932
- password: string | (() => string | undefined) | undefined;
933
- } | {
934
- type: "Custom";
935
- prefix: string | (() => string | undefined) | undefined;
936
- value: string | (() => string | undefined) | undefined;
937
- }) | undefined;
938
- body?: (Partial<{
939
- organizationId?: string | null | undefined;
940
- organizationSlug?: string | undefined;
941
- }> & Record<string, any>) | undefined;
942
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
943
- params?: Record<string, any> | undefined;
944
- duplex?: "full" | "half" | undefined;
945
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
946
- retry?: import('better-auth/react').RetryOptions | undefined;
947
- retryAttempt?: number | undefined;
948
- output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
949
- errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
950
- disableValidation?: boolean | undefined;
951
- }>(data_0?: import('better-auth/dist/shared/better-auth.Bi8FQwDD').b<{
611
+ setActive: <FetchOptions extends import('@better-auth/core').ClientFetchOption<Partial<{
612
+ organizationId?: string | null | undefined;
613
+ organizationSlug?: string | undefined;
614
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import('better-auth/react').Prettify<{
952
615
  organizationId?: string | null | undefined;
953
616
  organizationSlug?: string | undefined;
954
617
  } & {
955
- fetchOptions?: {
956
- headers?: (HeadersInit & (HeadersInit | {
957
- accept: "application/json" | "text/plain" | "application/octet-stream";
958
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
959
- authorization: "Bearer" | "Basic";
960
- })) | undefined;
961
- method?: string | undefined;
962
- cache?: RequestCache | undefined;
963
- credentials?: RequestCredentials | undefined;
964
- integrity?: string | undefined;
965
- keepalive?: boolean | undefined;
966
- mode?: RequestMode | undefined;
967
- priority?: RequestPriority | undefined;
968
- redirect?: RequestRedirect | undefined;
969
- referrer?: string | undefined;
970
- referrerPolicy?: ReferrerPolicy | undefined;
971
- signal?: (AbortSignal | null) | undefined;
972
- window?: null | undefined;
973
- next?: NextFetchRequestConfig | undefined;
974
- onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
975
- onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
976
- onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
977
- onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
978
- onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
979
- hookOptions?: {
980
- cloneResponse?: boolean;
981
- } | undefined;
982
- timeout?: number | undefined;
983
- customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
984
- plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
985
- baseURL?: string | undefined;
986
- throw?: boolean | undefined;
987
- auth?: ({
988
- type: "Bearer";
989
- token: string | (() => string | undefined) | undefined;
990
- } | {
991
- type: "Basic";
992
- username: string | (() => string | undefined) | undefined;
993
- password: string | (() => string | undefined) | undefined;
994
- } | {
995
- type: "Custom";
996
- prefix: string | (() => string | undefined) | undefined;
997
- value: string | (() => string | undefined) | undefined;
998
- }) | undefined;
999
- body?: undefined;
1000
- query?: Record<string, any> | undefined;
1001
- params?: Record<string, any> | undefined;
1002
- duplex?: "full" | "half" | undefined;
1003
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1004
- retry?: import('better-auth/react').RetryOptions | undefined;
1005
- retryAttempt?: number | undefined;
1006
- output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1007
- errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
1008
- disableValidation?: boolean | undefined;
1009
- } | undefined;
618
+ fetchOptions?: FetchOptions | undefined;
1010
619
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<{
1011
620
  members: {
1012
621
  id: string;
1013
622
  organizationId: string;
1014
- createdAt: Date;
1015
623
  role: "member" | "admin" | "owner";
1016
- teamId?: string;
624
+ createdAt: Date;
1017
625
  userId: string;
1018
626
  user: {
627
+ id: string;
1019
628
  email: string;
1020
629
  name: string;
1021
- image?: string;
630
+ image?: string | undefined;
1022
631
  };
1023
632
  }[];
1024
633
  invitations: {
@@ -1026,98 +635,46 @@ export declare const useSession: () => {
1026
635
  organizationId: string;
1027
636
  email: string;
1028
637
  role: "member" | "admin" | "owner";
1029
- status: "pending" | "accepted" | "canceled" | "rejected";
638
+ status: import('better-auth/client/plugins').InvitationStatus;
1030
639
  inviterId: string;
1031
640
  expiresAt: Date;
1032
- teamId?: string;
641
+ createdAt: Date;
1033
642
  }[];
1034
643
  } & {
1035
644
  id: string;
1036
645
  name: string;
1037
- createdAt: Date;
1038
646
  slug: string;
647
+ createdAt: Date;
648
+ logo?: string | null | undefined | undefined;
1039
649
  metadata?: any;
1040
- logo?: string | null | undefined;
1041
- } & Record<string, any>, {
1042
- code?: string;
1043
- message?: string;
650
+ }, {
651
+ code?: string | undefined;
652
+ message?: string | undefined;
1044
653
  }, FetchOptions["throw"] extends true ? true : false>>;
1045
654
  } & {
1046
- getFullOrganization: <FetchOptions extends {
1047
- headers?: (HeadersInit & (HeadersInit | {
1048
- accept: "application/json" | "text/plain" | "application/octet-stream";
1049
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1050
- authorization: "Bearer" | "Basic";
1051
- })) | undefined;
1052
- method?: string | undefined;
1053
- cache?: RequestCache | undefined;
1054
- credentials?: RequestCredentials | undefined;
1055
- integrity?: string | undefined;
1056
- keepalive?: boolean | undefined;
1057
- mode?: RequestMode | undefined;
1058
- priority?: RequestPriority | undefined;
1059
- redirect?: RequestRedirect | undefined;
1060
- referrer?: string | undefined;
1061
- referrerPolicy?: ReferrerPolicy | undefined;
1062
- signal?: (AbortSignal | null) | undefined;
1063
- window?: null | undefined;
1064
- next?: NextFetchRequestConfig | undefined;
1065
- onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
1066
- onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
1067
- onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
1068
- onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
1069
- onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
1070
- hookOptions?: {
1071
- cloneResponse?: boolean;
1072
- } | undefined;
1073
- timeout?: number | undefined;
1074
- customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
1075
- plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
1076
- baseURL?: string | undefined;
1077
- throw?: boolean | undefined;
1078
- auth?: ({
1079
- type: "Bearer";
1080
- token: string | (() => string | undefined) | undefined;
1081
- } | {
1082
- type: "Basic";
1083
- username: string | (() => string | undefined) | undefined;
1084
- password: string | (() => string | undefined) | undefined;
1085
- } | {
1086
- type: "Custom";
1087
- prefix: string | (() => string | undefined) | undefined;
1088
- value: string | (() => string | undefined) | undefined;
1089
- }) | undefined;
1090
- body?: undefined;
1091
- query?: (Partial<{
1092
- organizationId?: string | undefined;
1093
- organizationSlug?: string | undefined;
1094
- }> & Record<string, any>) | undefined;
1095
- params?: Record<string, any> | undefined;
1096
- duplex?: "full" | "half" | undefined;
1097
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1098
- retry?: import('better-auth/react').RetryOptions | undefined;
1099
- retryAttempt?: number | undefined;
1100
- output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1101
- errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
1102
- disableValidation?: boolean | undefined;
1103
- }>(data_0?: import('better-auth/dist/shared/better-auth.Bi8FQwDD').b<{
655
+ getFullOrganization: <FetchOptions extends import('@better-auth/core').ClientFetchOption<never, Partial<{
656
+ organizationId?: string | undefined;
657
+ organizationSlug?: string | undefined;
658
+ membersLimit?: string | number | undefined;
659
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import('better-auth/react').Prettify<{
1104
660
  query?: {
1105
661
  organizationId?: string | undefined;
1106
662
  organizationSlug?: string | undefined;
663
+ membersLimit?: string | number | undefined;
1107
664
  } | undefined;
1108
665
  fetchOptions?: FetchOptions | undefined;
1109
666
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<{
1110
667
  members: {
1111
668
  id: string;
1112
669
  organizationId: string;
1113
- createdAt: Date;
1114
670
  role: "member" | "admin" | "owner";
1115
- teamId?: string;
671
+ createdAt: Date;
1116
672
  userId: string;
1117
673
  user: {
674
+ id: string;
1118
675
  email: string;
1119
676
  name: string;
1120
- image?: string;
677
+ image?: string | undefined;
1121
678
  };
1122
679
  }[];
1123
680
  invitations: {
@@ -1125,1518 +682,526 @@ export declare const useSession: () => {
1125
682
  organizationId: string;
1126
683
  email: string;
1127
684
  role: "member" | "admin" | "owner";
1128
- status: "pending" | "accepted" | "canceled" | "rejected";
685
+ status: import('better-auth/client/plugins').InvitationStatus;
1129
686
  inviterId: string;
1130
687
  expiresAt: Date;
1131
- teamId?: string;
688
+ createdAt: Date;
1132
689
  }[];
1133
690
  } & {
1134
691
  id: string;
1135
692
  name: string;
1136
- createdAt: Date;
1137
693
  slug: string;
694
+ createdAt: Date;
695
+ logo?: string | null | undefined | undefined;
1138
696
  metadata?: any;
1139
- logo?: string | null | undefined;
1140
- } & Record<string, any>, {
1141
- code?: string;
1142
- message?: string;
697
+ }, {
698
+ code?: string | undefined;
699
+ message?: string | undefined;
1143
700
  }, FetchOptions["throw"] extends true ? true : false>>;
1144
701
  } & {
1145
- list: <FetchOptions extends {
1146
- headers?: (HeadersInit & (HeadersInit | {
1147
- accept: "application/json" | "text/plain" | "application/octet-stream";
1148
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1149
- authorization: "Bearer" | "Basic";
1150
- })) | undefined;
1151
- method?: string | undefined;
1152
- cache?: RequestCache | undefined;
1153
- credentials?: RequestCredentials | undefined;
1154
- integrity?: string | undefined;
1155
- keepalive?: boolean | undefined;
1156
- mode?: RequestMode | undefined;
1157
- priority?: RequestPriority | undefined;
1158
- redirect?: RequestRedirect | undefined;
1159
- referrer?: string | undefined;
1160
- referrerPolicy?: ReferrerPolicy | undefined;
1161
- signal?: (AbortSignal | null) | undefined;
1162
- window?: null | undefined;
1163
- next?: NextFetchRequestConfig | undefined;
1164
- onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
1165
- onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
1166
- onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
1167
- onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
1168
- onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
1169
- hookOptions?: {
1170
- cloneResponse?: boolean;
1171
- } | undefined;
1172
- timeout?: number | undefined;
1173
- customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
1174
- plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
1175
- baseURL?: string | undefined;
1176
- throw?: boolean | undefined;
1177
- auth?: ({
1178
- type: "Bearer";
1179
- token: string | (() => string | undefined) | undefined;
1180
- } | {
1181
- type: "Basic";
1182
- username: string | (() => string | undefined) | undefined;
1183
- password: string | (() => string | undefined) | undefined;
1184
- } | {
1185
- type: "Custom";
1186
- prefix: string | (() => string | undefined) | undefined;
1187
- value: string | (() => string | undefined) | undefined;
1188
- }) | undefined;
1189
- body?: undefined;
1190
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1191
- params?: Record<string, any> | undefined;
1192
- duplex?: "full" | "half" | undefined;
1193
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1194
- retry?: import('better-auth/react').RetryOptions | undefined;
1195
- retryAttempt?: number | undefined;
1196
- output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1197
- errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
1198
- disableValidation?: boolean | undefined;
1199
- }>(data_0?: import('better-auth/dist/shared/better-auth.Bi8FQwDD').b<{
702
+ list: <FetchOptions extends import('@better-auth/core').ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import('better-auth/react').Prettify<{
1200
703
  query?: Record<string, any> | undefined;
1201
704
  fetchOptions?: FetchOptions | undefined;
1202
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<import('better-auth/dist/shared/better-auth.Dxn5Xplu').b[], {
1203
- code?: string;
1204
- message?: string;
705
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<{
706
+ id: string;
707
+ name: string;
708
+ slug: string;
709
+ createdAt: Date;
710
+ logo?: string | null | undefined | undefined;
711
+ metadata?: any;
712
+ }[], {
713
+ code?: string | undefined;
714
+ message?: string | undefined;
1205
715
  }, FetchOptions["throw"] extends true ? true : false>>;
1206
716
  } & {
1207
- inviteMember: <FetchOptions extends {
1208
- headers?: (HeadersInit & (HeadersInit | {
1209
- accept: "application/json" | "text/plain" | "application/octet-stream";
1210
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1211
- authorization: "Bearer" | "Basic";
1212
- })) | undefined;
1213
- method?: string | undefined;
1214
- cache?: RequestCache | undefined;
1215
- credentials?: RequestCredentials | undefined;
1216
- integrity?: string | undefined;
1217
- keepalive?: boolean | undefined;
1218
- mode?: RequestMode | undefined;
1219
- priority?: RequestPriority | undefined;
1220
- redirect?: RequestRedirect | undefined;
1221
- referrer?: string | undefined;
1222
- referrerPolicy?: ReferrerPolicy | undefined;
1223
- signal?: (AbortSignal | null) | undefined;
1224
- window?: null | undefined;
1225
- next?: NextFetchRequestConfig | undefined;
1226
- onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
1227
- onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
1228
- onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
1229
- onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
1230
- onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
1231
- hookOptions?: {
1232
- cloneResponse?: boolean;
1233
- } | undefined;
1234
- timeout?: number | undefined;
1235
- customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
1236
- plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
1237
- baseURL?: string | undefined;
1238
- throw?: boolean | undefined;
1239
- auth?: ({
1240
- type: "Bearer";
1241
- token: string | (() => string | undefined) | undefined;
1242
- } | {
1243
- type: "Basic";
1244
- username: string | (() => string | undefined) | undefined;
1245
- password: string | (() => string | undefined) | undefined;
1246
- } | {
1247
- type: "Custom";
1248
- prefix: string | (() => string | undefined) | undefined;
1249
- value: string | (() => string | undefined) | undefined;
1250
- }) | undefined;
1251
- body?: (Partial<{
1252
- email: string;
1253
- role: "member" | "admin" | "owner";
1254
- organizationId?: string;
1255
- resend?: boolean;
1256
- }> & Record<string, any>) | undefined;
1257
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1258
- params?: Record<string, any> | undefined;
1259
- duplex?: "full" | "half" | undefined;
1260
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1261
- retry?: import('better-auth/react').RetryOptions | undefined;
1262
- retryAttempt?: number | undefined;
1263
- output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1264
- errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
1265
- disableValidation?: boolean | undefined;
1266
- }>(data_0: import('better-auth/dist/shared/better-auth.Bi8FQwDD').b<{
717
+ inviteMember: <FetchOptions extends import('@better-auth/core').ClientFetchOption<Partial<{
1267
718
  email: string;
1268
- role: "member" | "admin" | "owner";
1269
- organizationId?: string;
1270
- resend?: boolean;
719
+ role: "member" | "admin" | "owner" | ("member" | "admin" | "owner")[];
720
+ organizationId?: string | undefined;
721
+ resend?: boolean | undefined;
722
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth/react').Prettify<{
723
+ email: string;
724
+ role: "member" | "admin" | "owner" | ("member" | "admin" | "owner")[];
725
+ organizationId?: string | undefined;
726
+ resend?: boolean | undefined;
1271
727
  } & {
1272
- fetchOptions?: {
1273
- headers?: (HeadersInit & (HeadersInit | {
1274
- accept: "application/json" | "text/plain" | "application/octet-stream";
1275
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1276
- authorization: "Bearer" | "Basic";
1277
- })) | undefined;
1278
- method?: string | undefined;
1279
- cache?: RequestCache | undefined;
1280
- credentials?: RequestCredentials | undefined;
1281
- integrity?: string | undefined;
1282
- keepalive?: boolean | undefined;
1283
- mode?: RequestMode | undefined;
1284
- priority?: RequestPriority | undefined;
1285
- redirect?: RequestRedirect | undefined;
1286
- referrer?: string | undefined;
1287
- referrerPolicy?: ReferrerPolicy | undefined;
1288
- signal?: (AbortSignal | null) | undefined;
1289
- window?: null | undefined;
1290
- next?: NextFetchRequestConfig | undefined;
1291
- onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
1292
- onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
1293
- onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
1294
- onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
1295
- onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
1296
- hookOptions?: {
1297
- cloneResponse?: boolean;
1298
- } | undefined;
1299
- timeout?: number | undefined;
1300
- customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
1301
- plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
1302
- baseURL?: string | undefined;
1303
- throw?: boolean | undefined;
1304
- auth?: ({
1305
- type: "Bearer";
1306
- token: string | (() => string | undefined) | undefined;
1307
- } | {
1308
- type: "Basic";
1309
- username: string | (() => string | undefined) | undefined;
1310
- password: string | (() => string | undefined) | undefined;
1311
- } | {
1312
- type: "Custom";
1313
- prefix: string | (() => string | undefined) | undefined;
1314
- value: string | (() => string | undefined) | undefined;
1315
- }) | undefined;
1316
- body?: undefined;
1317
- query?: Record<string, any> | undefined;
1318
- params?: Record<string, any> | undefined;
1319
- duplex?: "full" | "half" | undefined;
1320
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1321
- retry?: import('better-auth/react').RetryOptions | undefined;
1322
- retryAttempt?: number | undefined;
1323
- output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1324
- errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
1325
- disableValidation?: boolean | undefined;
1326
- } | undefined;
1327
- }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<{
728
+ fetchOptions?: FetchOptions | undefined;
729
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<NonNullable<{
1328
730
  id: string;
731
+ organizationId: string;
1329
732
  email: string;
1330
- status: "pending" | "accepted" | "rejected" | "canceled";
733
+ role: "member" | "admin" | "owner";
734
+ status: import('better-auth/client/plugins').InvitationStatus;
735
+ inviterId: string;
1331
736
  expiresAt: Date;
737
+ createdAt: Date;
738
+ } | {
739
+ id: string;
1332
740
  organizationId: string;
1333
- role: string;
741
+ email: string;
742
+ role: "member" | "admin" | "owner";
743
+ status: import('better-auth/client/plugins').InvitationStatus;
1334
744
  inviterId: string;
1335
- teamId?: string | undefined;
1336
- }, {
1337
- code?: string;
1338
- message?: string;
745
+ expiresAt: Date;
746
+ createdAt: Date;
747
+ }>, {
748
+ code?: string | undefined;
749
+ message?: string | undefined;
1339
750
  }, FetchOptions["throw"] extends true ? true : false>>;
1340
751
  } & {
1341
- cancelInvitation: <FetchOptions extends {
1342
- headers?: (HeadersInit & (HeadersInit | {
1343
- accept: "application/json" | "text/plain" | "application/octet-stream";
1344
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1345
- authorization: "Bearer" | "Basic";
1346
- })) | undefined;
1347
- method?: string | undefined;
1348
- cache?: RequestCache | undefined;
1349
- credentials?: RequestCredentials | undefined;
1350
- integrity?: string | undefined;
1351
- keepalive?: boolean | undefined;
1352
- mode?: RequestMode | undefined;
1353
- priority?: RequestPriority | undefined;
1354
- redirect?: RequestRedirect | undefined;
1355
- referrer?: string | undefined;
1356
- referrerPolicy?: ReferrerPolicy | undefined;
1357
- signal?: (AbortSignal | null) | undefined;
1358
- window?: null | undefined;
1359
- next?: NextFetchRequestConfig | undefined;
1360
- onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
1361
- onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
1362
- onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
1363
- onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
1364
- onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
1365
- hookOptions?: {
1366
- cloneResponse?: boolean;
1367
- } | undefined;
1368
- timeout?: number | undefined;
1369
- customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
1370
- plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
1371
- baseURL?: string | undefined;
1372
- throw?: boolean | undefined;
1373
- auth?: ({
1374
- type: "Bearer";
1375
- token: string | (() => string | undefined) | undefined;
1376
- } | {
1377
- type: "Basic";
1378
- username: string | (() => string | undefined) | undefined;
1379
- password: string | (() => string | undefined) | undefined;
1380
- } | {
1381
- type: "Custom";
1382
- prefix: string | (() => string | undefined) | undefined;
1383
- value: string | (() => string | undefined) | undefined;
1384
- }) | undefined;
1385
- body?: (Partial<{
1386
- invitationId: string;
1387
- }> & Record<string, any>) | undefined;
1388
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1389
- params?: Record<string, any> | undefined;
1390
- duplex?: "full" | "half" | undefined;
1391
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1392
- retry?: import('better-auth/react').RetryOptions | undefined;
1393
- retryAttempt?: number | undefined;
1394
- output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1395
- errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
1396
- disableValidation?: boolean | undefined;
1397
- }>(data_0: import('better-auth/dist/shared/better-auth.Bi8FQwDD').b<{
752
+ cancelInvitation: <FetchOptions extends import('@better-auth/core').ClientFetchOption<Partial<{
753
+ invitationId: string;
754
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth/react').Prettify<{
1398
755
  invitationId: string;
1399
756
  } & {
1400
- fetchOptions?: {
1401
- headers?: (HeadersInit & (HeadersInit | {
1402
- accept: "application/json" | "text/plain" | "application/octet-stream";
1403
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1404
- authorization: "Bearer" | "Basic";
1405
- })) | undefined;
1406
- method?: string | undefined;
1407
- cache?: RequestCache | undefined;
1408
- credentials?: RequestCredentials | undefined;
1409
- integrity?: string | undefined;
1410
- keepalive?: boolean | undefined;
1411
- mode?: RequestMode | undefined;
1412
- priority?: RequestPriority | undefined;
1413
- redirect?: RequestRedirect | undefined;
1414
- referrer?: string | undefined;
1415
- referrerPolicy?: ReferrerPolicy | undefined;
1416
- signal?: (AbortSignal | null) | undefined;
1417
- window?: null | undefined;
1418
- next?: NextFetchRequestConfig | undefined;
1419
- onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
1420
- onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
1421
- onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
1422
- onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
1423
- onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
1424
- hookOptions?: {
1425
- cloneResponse?: boolean;
1426
- } | undefined;
1427
- timeout?: number | undefined;
1428
- customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
1429
- plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
1430
- baseURL?: string | undefined;
1431
- throw?: boolean | undefined;
1432
- auth?: ({
1433
- type: "Bearer";
1434
- token: string | (() => string | undefined) | undefined;
1435
- } | {
1436
- type: "Basic";
1437
- username: string | (() => string | undefined) | undefined;
1438
- password: string | (() => string | undefined) | undefined;
1439
- } | {
1440
- type: "Custom";
1441
- prefix: string | (() => string | undefined) | undefined;
1442
- value: string | (() => string | undefined) | undefined;
1443
- }) | undefined;
1444
- body?: undefined;
1445
- query?: Record<string, any> | undefined;
1446
- params?: Record<string, any> | undefined;
1447
- duplex?: "full" | "half" | undefined;
1448
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1449
- retry?: import('better-auth/react').RetryOptions | undefined;
1450
- retryAttempt?: number | undefined;
1451
- output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1452
- errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
1453
- disableValidation?: boolean | undefined;
1454
- } | undefined;
757
+ fetchOptions?: FetchOptions | undefined;
1455
758
  }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<{
1456
759
  id: string;
1457
- email: string;
1458
- status: "pending" | "accepted" | "rejected" | "canceled";
1459
- expiresAt: Date;
1460
760
  organizationId: string;
1461
- role: string;
761
+ email: string;
762
+ role: "member" | "admin" | "owner";
763
+ status: import('better-auth/client/plugins').InvitationStatus;
1462
764
  inviterId: string;
1463
- teamId?: string | undefined;
765
+ expiresAt: Date;
766
+ createdAt: Date;
1464
767
  }, {
1465
- code?: string;
1466
- message?: string;
768
+ code?: string | undefined;
769
+ message?: string | undefined;
1467
770
  }, FetchOptions["throw"] extends true ? true : false>>;
1468
771
  } & {
1469
- acceptInvitation: <FetchOptions extends {
1470
- headers?: (HeadersInit & (HeadersInit | {
1471
- accept: "application/json" | "text/plain" | "application/octet-stream";
1472
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1473
- authorization: "Bearer" | "Basic";
1474
- })) | undefined;
1475
- method?: string | undefined;
1476
- cache?: RequestCache | undefined;
1477
- credentials?: RequestCredentials | undefined;
1478
- integrity?: string | undefined;
1479
- keepalive?: boolean | undefined;
1480
- mode?: RequestMode | undefined;
1481
- priority?: RequestPriority | undefined;
1482
- redirect?: RequestRedirect | undefined;
1483
- referrer?: string | undefined;
1484
- referrerPolicy?: ReferrerPolicy | undefined;
1485
- signal?: (AbortSignal | null) | undefined;
1486
- window?: null | undefined;
1487
- next?: NextFetchRequestConfig | undefined;
1488
- onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
1489
- onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
1490
- onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
1491
- onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
1492
- onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
1493
- hookOptions?: {
1494
- cloneResponse?: boolean;
1495
- } | undefined;
1496
- timeout?: number | undefined;
1497
- customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
1498
- plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
1499
- baseURL?: string | undefined;
1500
- throw?: boolean | undefined;
1501
- auth?: ({
1502
- type: "Bearer";
1503
- token: string | (() => string | undefined) | undefined;
1504
- } | {
1505
- type: "Basic";
1506
- username: string | (() => string | undefined) | undefined;
1507
- password: string | (() => string | undefined) | undefined;
1508
- } | {
1509
- type: "Custom";
1510
- prefix: string | (() => string | undefined) | undefined;
1511
- value: string | (() => string | undefined) | undefined;
1512
- }) | undefined;
1513
- body?: (Partial<{
1514
- invitationId: string;
1515
- }> & Record<string, any>) | undefined;
1516
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1517
- params?: Record<string, any> | undefined;
1518
- duplex?: "full" | "half" | undefined;
1519
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1520
- retry?: import('better-auth/react').RetryOptions | undefined;
1521
- retryAttempt?: number | undefined;
1522
- output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1523
- errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
1524
- disableValidation?: boolean | undefined;
1525
- }>(data_0: import('better-auth/dist/shared/better-auth.Bi8FQwDD').b<{
772
+ acceptInvitation: <FetchOptions extends import('@better-auth/core').ClientFetchOption<Partial<{
773
+ invitationId: string;
774
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth/react').Prettify<{
1526
775
  invitationId: string;
1527
776
  } & {
1528
- fetchOptions?: {
1529
- headers?: (HeadersInit & (HeadersInit | {
1530
- accept: "application/json" | "text/plain" | "application/octet-stream";
1531
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1532
- authorization: "Bearer" | "Basic";
1533
- })) | undefined;
1534
- method?: string | undefined;
1535
- cache?: RequestCache | undefined;
1536
- credentials?: RequestCredentials | undefined;
1537
- integrity?: string | undefined;
1538
- keepalive?: boolean | undefined;
1539
- mode?: RequestMode | undefined;
1540
- priority?: RequestPriority | undefined;
1541
- redirect?: RequestRedirect | undefined;
1542
- referrer?: string | undefined;
1543
- referrerPolicy?: ReferrerPolicy | undefined;
1544
- signal?: (AbortSignal | null) | undefined;
1545
- window?: null | undefined;
1546
- next?: NextFetchRequestConfig | undefined;
1547
- onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
1548
- onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
1549
- onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
1550
- onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
1551
- onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
1552
- hookOptions?: {
1553
- cloneResponse?: boolean;
1554
- } | undefined;
1555
- timeout?: number | undefined;
1556
- customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
1557
- plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
1558
- baseURL?: string | undefined;
1559
- throw?: boolean | undefined;
1560
- auth?: ({
1561
- type: "Bearer";
1562
- token: string | (() => string | undefined) | undefined;
1563
- } | {
1564
- type: "Basic";
1565
- username: string | (() => string | undefined) | undefined;
1566
- password: string | (() => string | undefined) | undefined;
1567
- } | {
1568
- type: "Custom";
1569
- prefix: string | (() => string | undefined) | undefined;
1570
- value: string | (() => string | undefined) | undefined;
1571
- }) | undefined;
1572
- body?: undefined;
1573
- query?: Record<string, any> | undefined;
1574
- params?: Record<string, any> | undefined;
1575
- duplex?: "full" | "half" | undefined;
1576
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1577
- retry?: import('better-auth/react').RetryOptions | undefined;
1578
- retryAttempt?: number | undefined;
1579
- output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1580
- errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
1581
- disableValidation?: boolean | undefined;
1582
- } | undefined;
777
+ fetchOptions?: FetchOptions | undefined;
1583
778
  }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<{
1584
779
  invitation: {
1585
780
  id: string;
1586
- email: string;
1587
- status: "pending" | "accepted" | "rejected" | "canceled";
1588
- expiresAt: Date;
1589
781
  organizationId: string;
1590
- role: string;
782
+ email: string;
783
+ role: "member" | "admin" | "owner";
784
+ status: import('better-auth/client/plugins').InvitationStatus;
1591
785
  inviterId: string;
1592
- teamId?: string | undefined;
786
+ expiresAt: Date;
787
+ createdAt: Date;
1593
788
  };
1594
789
  member: {
1595
790
  id: string;
1596
- createdAt: Date;
1597
- userId: string;
1598
791
  organizationId: string;
792
+ userId: string;
1599
793
  role: string;
1600
- teamId?: string | undefined;
794
+ createdAt: Date;
1601
795
  };
1602
796
  }, {
1603
- code?: string;
1604
- message?: string;
797
+ code?: string | undefined;
798
+ message?: string | undefined;
1605
799
  }, FetchOptions["throw"] extends true ? true : false>>;
1606
800
  } & {
1607
- getInvitation: <FetchOptions extends {
1608
- headers?: (HeadersInit & (HeadersInit | {
1609
- accept: "application/json" | "text/plain" | "application/octet-stream";
1610
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1611
- authorization: "Bearer" | "Basic";
1612
- })) | undefined;
1613
- method?: string | undefined;
1614
- cache?: RequestCache | undefined;
1615
- credentials?: RequestCredentials | undefined;
1616
- integrity?: string | undefined;
1617
- keepalive?: boolean | undefined;
1618
- mode?: RequestMode | undefined;
1619
- priority?: RequestPriority | undefined;
1620
- redirect?: RequestRedirect | undefined;
1621
- referrer?: string | undefined;
1622
- referrerPolicy?: ReferrerPolicy | undefined;
1623
- signal?: (AbortSignal | null) | undefined;
1624
- window?: null | undefined;
1625
- next?: NextFetchRequestConfig | undefined;
1626
- onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
1627
- onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
1628
- onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
1629
- onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
1630
- onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
1631
- hookOptions?: {
1632
- cloneResponse?: boolean;
1633
- } | undefined;
1634
- timeout?: number | undefined;
1635
- customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
1636
- plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
1637
- baseURL?: string | undefined;
1638
- throw?: boolean | undefined;
1639
- auth?: ({
1640
- type: "Bearer";
1641
- token: string | (() => string | undefined) | undefined;
1642
- } | {
1643
- type: "Basic";
1644
- username: string | (() => string | undefined) | undefined;
1645
- password: string | (() => string | undefined) | undefined;
1646
- } | {
1647
- type: "Custom";
1648
- prefix: string | (() => string | undefined) | undefined;
1649
- value: string | (() => string | undefined) | undefined;
1650
- }) | undefined;
1651
- body?: undefined;
1652
- query?: (Partial<{
1653
- id: string;
1654
- }> & Record<string, any>) | undefined;
1655
- params?: Record<string, any> | undefined;
1656
- duplex?: "full" | "half" | undefined;
1657
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1658
- retry?: import('better-auth/react').RetryOptions | undefined;
1659
- retryAttempt?: number | undefined;
1660
- output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1661
- errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
1662
- disableValidation?: boolean | undefined;
1663
- }>(data_0: import('better-auth/dist/shared/better-auth.Bi8FQwDD').b<{
801
+ getInvitation: <FetchOptions extends import('@better-auth/core').ClientFetchOption<never, Partial<{
802
+ id: string;
803
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth/react').Prettify<{
1664
804
  query: {
1665
805
  id: string;
1666
806
  };
1667
807
  fetchOptions?: FetchOptions | undefined;
1668
- }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<{
1669
- organizationName: string;
1670
- organizationSlug: string;
1671
- inviterEmail: string;
808
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<NonNullable<{
1672
809
  id: string;
1673
- email: string;
1674
- status: "pending" | "accepted" | "rejected" | "canceled";
1675
- expiresAt: Date;
1676
810
  organizationId: string;
1677
- role: string;
811
+ email: string;
812
+ role: "member" | "admin" | "owner";
813
+ status: import('better-auth/client/plugins').InvitationStatus;
1678
814
  inviterId: string;
1679
- teamId?: string | undefined;
1680
- }, {
1681
- code?: string;
1682
- message?: string;
815
+ expiresAt: Date;
816
+ createdAt: Date;
817
+ } & {
818
+ organizationName: string;
819
+ organizationSlug: string;
820
+ inviterEmail: string;
821
+ }>, {
822
+ code?: string | undefined;
823
+ message?: string | undefined;
1683
824
  }, FetchOptions["throw"] extends true ? true : false>>;
1684
825
  } & {
1685
- rejectInvitation: <FetchOptions extends {
1686
- headers?: (HeadersInit & (HeadersInit | {
1687
- accept: "application/json" | "text/plain" | "application/octet-stream";
1688
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1689
- authorization: "Bearer" | "Basic";
1690
- })) | undefined;
1691
- method?: string | undefined;
1692
- cache?: RequestCache | undefined;
1693
- credentials?: RequestCredentials | undefined;
1694
- integrity?: string | undefined;
1695
- keepalive?: boolean | undefined;
1696
- mode?: RequestMode | undefined;
1697
- priority?: RequestPriority | undefined;
1698
- redirect?: RequestRedirect | undefined;
1699
- referrer?: string | undefined;
1700
- referrerPolicy?: ReferrerPolicy | undefined;
1701
- signal?: (AbortSignal | null) | undefined;
1702
- window?: null | undefined;
1703
- next?: NextFetchRequestConfig | undefined;
1704
- onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
1705
- onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
1706
- onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
1707
- onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
1708
- onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
1709
- hookOptions?: {
1710
- cloneResponse?: boolean;
1711
- } | undefined;
1712
- timeout?: number | undefined;
1713
- customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
1714
- plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
1715
- baseURL?: string | undefined;
1716
- throw?: boolean | undefined;
1717
- auth?: ({
1718
- type: "Bearer";
1719
- token: string | (() => string | undefined) | undefined;
1720
- } | {
1721
- type: "Basic";
1722
- username: string | (() => string | undefined) | undefined;
1723
- password: string | (() => string | undefined) | undefined;
1724
- } | {
1725
- type: "Custom";
1726
- prefix: string | (() => string | undefined) | undefined;
1727
- value: string | (() => string | undefined) | undefined;
1728
- }) | undefined;
1729
- body?: (Partial<{
1730
- invitationId: string;
1731
- }> & Record<string, any>) | undefined;
1732
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1733
- params?: Record<string, any> | undefined;
1734
- duplex?: "full" | "half" | undefined;
1735
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1736
- retry?: import('better-auth/react').RetryOptions | undefined;
1737
- retryAttempt?: number | undefined;
1738
- output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1739
- errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
1740
- disableValidation?: boolean | undefined;
1741
- }>(data_0: import('better-auth/dist/shared/better-auth.Bi8FQwDD').b<{
826
+ rejectInvitation: <FetchOptions extends import('@better-auth/core').ClientFetchOption<Partial<{
827
+ invitationId: string;
828
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth/react').Prettify<{
1742
829
  invitationId: string;
1743
830
  } & {
1744
- fetchOptions?: {
1745
- headers?: (HeadersInit & (HeadersInit | {
1746
- accept: "application/json" | "text/plain" | "application/octet-stream";
1747
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1748
- authorization: "Bearer" | "Basic";
1749
- })) | undefined;
1750
- method?: string | undefined;
1751
- cache?: RequestCache | undefined;
1752
- credentials?: RequestCredentials | undefined;
1753
- integrity?: string | undefined;
1754
- keepalive?: boolean | undefined;
1755
- mode?: RequestMode | undefined;
1756
- priority?: RequestPriority | undefined;
1757
- redirect?: RequestRedirect | undefined;
1758
- referrer?: string | undefined;
1759
- referrerPolicy?: ReferrerPolicy | undefined;
1760
- signal?: (AbortSignal | null) | undefined;
1761
- window?: null | undefined;
1762
- next?: NextFetchRequestConfig | undefined;
1763
- onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
1764
- onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
1765
- onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
1766
- onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
1767
- onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
1768
- hookOptions?: {
1769
- cloneResponse?: boolean;
1770
- } | undefined;
1771
- timeout?: number | undefined;
1772
- customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
1773
- plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
1774
- baseURL?: string | undefined;
1775
- throw?: boolean | undefined;
1776
- auth?: ({
1777
- type: "Bearer";
1778
- token: string | (() => string | undefined) | undefined;
1779
- } | {
1780
- type: "Basic";
1781
- username: string | (() => string | undefined) | undefined;
1782
- password: string | (() => string | undefined) | undefined;
1783
- } | {
1784
- type: "Custom";
1785
- prefix: string | (() => string | undefined) | undefined;
1786
- value: string | (() => string | undefined) | undefined;
1787
- }) | undefined;
1788
- body?: undefined;
1789
- query?: Record<string, any> | undefined;
1790
- params?: Record<string, any> | undefined;
1791
- duplex?: "full" | "half" | undefined;
1792
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1793
- retry?: import('better-auth/react').RetryOptions | undefined;
1794
- retryAttempt?: number | undefined;
1795
- output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1796
- errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
1797
- disableValidation?: boolean | undefined;
1798
- } | undefined;
831
+ fetchOptions?: FetchOptions | undefined;
1799
832
  }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<{
1800
833
  invitation: {
1801
834
  id: string;
1802
- email: string;
1803
- status: "pending" | "accepted" | "rejected" | "canceled";
1804
- expiresAt: Date;
1805
835
  organizationId: string;
1806
- role: string;
836
+ email: string;
837
+ role: "admin" | "member" | "owner";
838
+ status: import('better-auth/client/plugins').InvitationStatus;
1807
839
  inviterId: string;
1808
- teamId?: string | undefined;
840
+ expiresAt: Date;
841
+ createdAt: Date;
1809
842
  } | null;
1810
843
  member: null;
1811
844
  }, {
1812
- code?: string;
1813
- message?: string;
845
+ code?: string | undefined;
846
+ message?: string | undefined;
1814
847
  }, FetchOptions["throw"] extends true ? true : false>>;
1815
848
  } & {
1816
- checkSlug: <FetchOptions extends {
1817
- headers?: (HeadersInit & (HeadersInit | {
1818
- accept: "application/json" | "text/plain" | "application/octet-stream";
1819
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1820
- authorization: "Bearer" | "Basic";
1821
- })) | undefined;
1822
- method?: string | undefined;
1823
- cache?: RequestCache | undefined;
1824
- credentials?: RequestCredentials | undefined;
1825
- integrity?: string | undefined;
1826
- keepalive?: boolean | undefined;
1827
- mode?: RequestMode | undefined;
1828
- priority?: RequestPriority | undefined;
1829
- redirect?: RequestRedirect | undefined;
1830
- referrer?: string | undefined;
1831
- referrerPolicy?: ReferrerPolicy | undefined;
1832
- signal?: (AbortSignal | null) | undefined;
1833
- window?: null | undefined;
1834
- next?: NextFetchRequestConfig | undefined;
1835
- onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
1836
- onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
1837
- onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
1838
- onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
1839
- onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
1840
- hookOptions?: {
1841
- cloneResponse?: boolean;
849
+ listInvitations: <FetchOptions extends import('@better-auth/core').ClientFetchOption<never, Partial<{
850
+ organizationId?: string | undefined;
851
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import('better-auth/react').Prettify<{
852
+ query?: {
853
+ organizationId?: string | undefined;
1842
854
  } | undefined;
1843
- timeout?: number | undefined;
1844
- customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
1845
- plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
1846
- baseURL?: string | undefined;
1847
- throw?: boolean | undefined;
1848
- auth?: ({
1849
- type: "Bearer";
1850
- token: string | (() => string | undefined) | undefined;
1851
- } | {
1852
- type: "Basic";
1853
- username: string | (() => string | undefined) | undefined;
1854
- password: string | (() => string | undefined) | undefined;
1855
- } | {
1856
- type: "Custom";
1857
- prefix: string | (() => string | undefined) | undefined;
1858
- value: string | (() => string | undefined) | undefined;
1859
- }) | undefined;
1860
- body?: (Partial<{
1861
- slug: string;
1862
- }> & Record<string, any>) | undefined;
1863
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1864
- params?: Record<string, any> | undefined;
1865
- duplex?: "full" | "half" | undefined;
1866
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1867
- retry?: import('better-auth/react').RetryOptions | undefined;
1868
- retryAttempt?: number | undefined;
1869
- output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1870
- errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
1871
- disableValidation?: boolean | undefined;
1872
- }>(data_0: import('better-auth/dist/shared/better-auth.Bi8FQwDD').b<{
855
+ fetchOptions?: FetchOptions | undefined;
856
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<{
857
+ id: string;
858
+ organizationId: string;
859
+ email: string;
860
+ role: "member" | "admin" | "owner";
861
+ status: import('better-auth/client/plugins').InvitationStatus;
862
+ inviterId: string;
863
+ expiresAt: Date;
864
+ createdAt: Date;
865
+ }[], {
866
+ code?: string | undefined;
867
+ message?: string | undefined;
868
+ }, FetchOptions["throw"] extends true ? true : false>>;
869
+ } & {
870
+ getActiveMember: <FetchOptions extends import('@better-auth/core').ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import('better-auth/react').Prettify<{
871
+ query?: Record<string, any> | undefined;
872
+ fetchOptions?: FetchOptions | undefined;
873
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<NonNullable<Omit<{
874
+ id: string;
875
+ organizationId: string;
876
+ role: "member" | "admin" | "owner";
877
+ createdAt: Date;
878
+ userId: string;
879
+ user: {
880
+ id: string;
881
+ email: string;
882
+ name: string;
883
+ image?: string | undefined;
884
+ };
885
+ } & {
886
+ user: {
887
+ id: string;
888
+ createdAt: Date;
889
+ updatedAt: Date;
890
+ email: string;
891
+ emailVerified: boolean;
892
+ name: string;
893
+ image?: string | null | undefined;
894
+ };
895
+ }, "user"> & {
896
+ user: {
897
+ id: string;
898
+ name: string;
899
+ email: string;
900
+ image: string | undefined;
901
+ };
902
+ }>, {
903
+ code?: string | undefined;
904
+ message?: string | undefined;
905
+ }, FetchOptions["throw"] extends true ? true : false>>;
906
+ } & {
907
+ checkSlug: <FetchOptions extends import('@better-auth/core').ClientFetchOption<Partial<{
908
+ slug: string;
909
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth/react').Prettify<{
1873
910
  slug: string;
1874
911
  } & {
1875
- fetchOptions?: {
1876
- headers?: (HeadersInit & (HeadersInit | {
1877
- accept: "application/json" | "text/plain" | "application/octet-stream";
1878
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1879
- authorization: "Bearer" | "Basic";
1880
- })) | undefined;
1881
- method?: string | undefined;
1882
- cache?: RequestCache | undefined;
1883
- credentials?: RequestCredentials | undefined;
1884
- integrity?: string | undefined;
1885
- keepalive?: boolean | undefined;
1886
- mode?: RequestMode | undefined;
1887
- priority?: RequestPriority | undefined;
1888
- redirect?: RequestRedirect | undefined;
1889
- referrer?: string | undefined;
1890
- referrerPolicy?: ReferrerPolicy | undefined;
1891
- signal?: (AbortSignal | null) | undefined;
1892
- window?: null | undefined;
1893
- next?: NextFetchRequestConfig | undefined;
1894
- onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
1895
- onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
1896
- onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
1897
- onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
1898
- onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
1899
- hookOptions?: {
1900
- cloneResponse?: boolean;
1901
- } | undefined;
1902
- timeout?: number | undefined;
1903
- customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
1904
- plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
1905
- baseURL?: string | undefined;
1906
- throw?: boolean | undefined;
1907
- auth?: ({
1908
- type: "Bearer";
1909
- token: string | (() => string | undefined) | undefined;
1910
- } | {
1911
- type: "Basic";
1912
- username: string | (() => string | undefined) | undefined;
1913
- password: string | (() => string | undefined) | undefined;
1914
- } | {
1915
- type: "Custom";
1916
- prefix: string | (() => string | undefined) | undefined;
1917
- value: string | (() => string | undefined) | undefined;
1918
- }) | undefined;
1919
- body?: undefined;
1920
- query?: Record<string, any> | undefined;
1921
- params?: Record<string, any> | undefined;
1922
- duplex?: "full" | "half" | undefined;
1923
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1924
- retry?: import('better-auth/react').RetryOptions | undefined;
1925
- retryAttempt?: number | undefined;
1926
- output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1927
- errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
1928
- disableValidation?: boolean | undefined;
1929
- } | undefined;
912
+ fetchOptions?: FetchOptions | undefined;
1930
913
  }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<{
1931
914
  status: boolean;
1932
915
  }, {
1933
- code?: string;
1934
- message?: string;
916
+ code?: string | undefined;
917
+ message?: string | undefined;
1935
918
  }, FetchOptions["throw"] extends true ? true : false>>;
1936
919
  } & {
1937
- removeMember: <FetchOptions extends {
1938
- headers?: (HeadersInit & (HeadersInit | {
1939
- accept: "application/json" | "text/plain" | "application/octet-stream";
1940
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1941
- authorization: "Bearer" | "Basic";
1942
- })) | undefined;
1943
- method?: string | undefined;
1944
- cache?: RequestCache | undefined;
1945
- credentials?: RequestCredentials | undefined;
1946
- integrity?: string | undefined;
1947
- keepalive?: boolean | undefined;
1948
- mode?: RequestMode | undefined;
1949
- priority?: RequestPriority | undefined;
1950
- redirect?: RequestRedirect | undefined;
1951
- referrer?: string | undefined;
1952
- referrerPolicy?: ReferrerPolicy | undefined;
1953
- signal?: (AbortSignal | null) | undefined;
1954
- window?: null | undefined;
1955
- next?: NextFetchRequestConfig | undefined;
1956
- onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
1957
- onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
1958
- onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
1959
- onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
1960
- onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
1961
- hookOptions?: {
1962
- cloneResponse?: boolean;
1963
- } | undefined;
1964
- timeout?: number | undefined;
1965
- customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
1966
- plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
1967
- baseURL?: string | undefined;
1968
- throw?: boolean | undefined;
1969
- auth?: ({
1970
- type: "Bearer";
1971
- token: string | (() => string | undefined) | undefined;
1972
- } | {
1973
- type: "Basic";
1974
- username: string | (() => string | undefined) | undefined;
1975
- password: string | (() => string | undefined) | undefined;
1976
- } | {
1977
- type: "Custom";
1978
- prefix: string | (() => string | undefined) | undefined;
1979
- value: string | (() => string | undefined) | undefined;
1980
- }) | undefined;
1981
- body?: (Partial<{
1982
- memberIdOrEmail: string;
1983
- organizationId?: string | undefined;
1984
- }> & Record<string, any>) | undefined;
1985
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1986
- params?: Record<string, any> | undefined;
1987
- duplex?: "full" | "half" | undefined;
1988
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1989
- retry?: import('better-auth/react').RetryOptions | undefined;
1990
- retryAttempt?: number | undefined;
1991
- output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1992
- errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
1993
- disableValidation?: boolean | undefined;
1994
- }>(data_0: import('better-auth/dist/shared/better-auth.Bi8FQwDD').b<{
920
+ removeMember: <FetchOptions extends import('@better-auth/core').ClientFetchOption<Partial<{
921
+ memberIdOrEmail: string;
922
+ organizationId?: string | undefined;
923
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth/react').Prettify<{
1995
924
  memberIdOrEmail: string;
1996
925
  organizationId?: string | undefined;
1997
926
  } & {
1998
- fetchOptions?: {
1999
- headers?: (HeadersInit & (HeadersInit | {
2000
- accept: "application/json" | "text/plain" | "application/octet-stream";
2001
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2002
- authorization: "Bearer" | "Basic";
2003
- })) | undefined;
2004
- method?: string | undefined;
2005
- cache?: RequestCache | undefined;
2006
- credentials?: RequestCredentials | undefined;
2007
- integrity?: string | undefined;
2008
- keepalive?: boolean | undefined;
2009
- mode?: RequestMode | undefined;
2010
- priority?: RequestPriority | undefined;
2011
- redirect?: RequestRedirect | undefined;
2012
- referrer?: string | undefined;
2013
- referrerPolicy?: ReferrerPolicy | undefined;
2014
- signal?: (AbortSignal | null) | undefined;
2015
- window?: null | undefined;
2016
- next?: NextFetchRequestConfig | undefined;
2017
- onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
2018
- onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
2019
- onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
2020
- onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
2021
- onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
2022
- hookOptions?: {
2023
- cloneResponse?: boolean;
2024
- } | undefined;
2025
- timeout?: number | undefined;
2026
- customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
2027
- plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
2028
- baseURL?: string | undefined;
2029
- throw?: boolean | undefined;
2030
- auth?: ({
2031
- type: "Bearer";
2032
- token: string | (() => string | undefined) | undefined;
2033
- } | {
2034
- type: "Basic";
2035
- username: string | (() => string | undefined) | undefined;
2036
- password: string | (() => string | undefined) | undefined;
2037
- } | {
2038
- type: "Custom";
2039
- prefix: string | (() => string | undefined) | undefined;
2040
- value: string | (() => string | undefined) | undefined;
2041
- }) | undefined;
2042
- body?: undefined;
2043
- query?: Record<string, any> | undefined;
2044
- params?: Record<string, any> | undefined;
2045
- duplex?: "full" | "half" | undefined;
2046
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2047
- retry?: import('better-auth/react').RetryOptions | undefined;
2048
- retryAttempt?: number | undefined;
2049
- output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2050
- errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
2051
- disableValidation?: boolean | undefined;
2052
- } | undefined;
927
+ fetchOptions?: FetchOptions | undefined;
2053
928
  }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<{
2054
929
  member: {
2055
930
  id: string;
931
+ organizationId: string;
932
+ role: "member" | "admin" | "owner";
2056
933
  createdAt: Date;
2057
934
  userId: string;
2058
- organizationId: string;
2059
- role: string;
2060
- teamId?: string | undefined;
935
+ user: {
936
+ id: string;
937
+ email: string;
938
+ name: string;
939
+ image?: string | undefined;
940
+ };
2061
941
  };
2062
942
  }, {
2063
- code?: string;
2064
- message?: string;
943
+ code?: string | undefined;
944
+ message?: string | undefined;
2065
945
  }, FetchOptions["throw"] extends true ? true : false>>;
2066
946
  } & {
2067
- updateMemberRole: <FetchOptions extends {
2068
- headers?: (HeadersInit & (HeadersInit | {
2069
- accept: "application/json" | "text/plain" | "application/octet-stream";
2070
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2071
- authorization: "Bearer" | "Basic";
2072
- })) | undefined;
2073
- method?: string | undefined;
2074
- cache?: RequestCache | undefined;
2075
- credentials?: RequestCredentials | undefined;
2076
- integrity?: string | undefined;
2077
- keepalive?: boolean | undefined;
2078
- mode?: RequestMode | undefined;
2079
- priority?: RequestPriority | undefined;
2080
- redirect?: RequestRedirect | undefined;
2081
- referrer?: string | undefined;
2082
- referrerPolicy?: ReferrerPolicy | undefined;
2083
- signal?: (AbortSignal | null) | undefined;
2084
- window?: null | undefined;
2085
- next?: NextFetchRequestConfig | undefined;
2086
- onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
2087
- onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
2088
- onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
2089
- onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
2090
- onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
2091
- hookOptions?: {
2092
- cloneResponse?: boolean;
2093
- } | undefined;
2094
- timeout?: number | undefined;
2095
- customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
2096
- plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
2097
- baseURL?: string | undefined;
2098
- throw?: boolean | undefined;
2099
- auth?: ({
2100
- type: "Bearer";
2101
- token: string | (() => string | undefined) | undefined;
2102
- } | {
2103
- type: "Basic";
2104
- username: string | (() => string | undefined) | undefined;
2105
- password: string | (() => string | undefined) | undefined;
2106
- } | {
2107
- type: "Custom";
2108
- prefix: string | (() => string | undefined) | undefined;
2109
- value: string | (() => string | undefined) | undefined;
2110
- }) | undefined;
2111
- body?: (Partial<{
2112
- role: "member" | "admin" | "owner" | ("member" | "admin" | "owner")[];
2113
- memberId: string;
2114
- organizationId?: string;
2115
- }> & Record<string, any>) | undefined;
2116
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2117
- params?: Record<string, any> | undefined;
2118
- duplex?: "full" | "half" | undefined;
2119
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2120
- retry?: import('better-auth/react').RetryOptions | undefined;
2121
- retryAttempt?: number | undefined;
2122
- output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2123
- errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
2124
- disableValidation?: boolean | undefined;
2125
- }>(data_0: import('better-auth/dist/shared/better-auth.Bi8FQwDD').b<{
2126
- role: "member" | "admin" | "owner" | ("member" | "admin" | "owner")[];
947
+ updateMemberRole: <FetchOptions extends import('@better-auth/core').ClientFetchOption<Partial<{
948
+ role: import('@better-auth/core').LiteralString | "member" | import('@better-auth/core').LiteralString[] | "admin" | "owner" | ("member" | "admin" | "owner")[];
2127
949
  memberId: string;
2128
- organizationId?: string;
950
+ organizationId?: string | undefined;
951
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth/react').Prettify<{
952
+ role: import('@better-auth/core').LiteralString | "member" | import('@better-auth/core').LiteralString[] | "admin" | "owner" | ("member" | "admin" | "owner")[];
953
+ memberId: string;
954
+ organizationId?: string | undefined;
2129
955
  } & {
2130
- fetchOptions?: {
2131
- headers?: (HeadersInit & (HeadersInit | {
2132
- accept: "application/json" | "text/plain" | "application/octet-stream";
2133
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2134
- authorization: "Bearer" | "Basic";
2135
- })) | undefined;
2136
- method?: string | undefined;
2137
- cache?: RequestCache | undefined;
2138
- credentials?: RequestCredentials | undefined;
2139
- integrity?: string | undefined;
2140
- keepalive?: boolean | undefined;
2141
- mode?: RequestMode | undefined;
2142
- priority?: RequestPriority | undefined;
2143
- redirect?: RequestRedirect | undefined;
2144
- referrer?: string | undefined;
2145
- referrerPolicy?: ReferrerPolicy | undefined;
2146
- signal?: (AbortSignal | null) | undefined;
2147
- window?: null | undefined;
2148
- next?: NextFetchRequestConfig | undefined;
2149
- onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
2150
- onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
2151
- onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
2152
- onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
2153
- onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
2154
- hookOptions?: {
2155
- cloneResponse?: boolean;
2156
- } | undefined;
2157
- timeout?: number | undefined;
2158
- customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
2159
- plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
2160
- baseURL?: string | undefined;
2161
- throw?: boolean | undefined;
2162
- auth?: ({
2163
- type: "Bearer";
2164
- token: string | (() => string | undefined) | undefined;
2165
- } | {
2166
- type: "Basic";
2167
- username: string | (() => string | undefined) | undefined;
2168
- password: string | (() => string | undefined) | undefined;
2169
- } | {
2170
- type: "Custom";
2171
- prefix: string | (() => string | undefined) | undefined;
2172
- value: string | (() => string | undefined) | undefined;
2173
- }) | undefined;
2174
- body?: undefined;
2175
- query?: Record<string, any> | undefined;
2176
- params?: Record<string, any> | undefined;
2177
- duplex?: "full" | "half" | undefined;
2178
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2179
- retry?: import('better-auth/react').RetryOptions | undefined;
2180
- retryAttempt?: number | undefined;
2181
- output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2182
- errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
2183
- disableValidation?: boolean | undefined;
2184
- } | undefined;
956
+ fetchOptions?: FetchOptions | undefined;
2185
957
  }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<{
2186
958
  id: string;
959
+ organizationId: string;
960
+ role: "admin" | "member" | "owner";
2187
961
  createdAt: Date;
2188
962
  userId: string;
2189
- organizationId: string;
2190
- role: string;
2191
- teamId?: string | undefined;
963
+ user: {
964
+ id: string;
965
+ email: string;
966
+ name: string;
967
+ image?: string | undefined;
968
+ };
2192
969
  }, {
2193
- code?: string;
2194
- message?: string;
970
+ code?: string | undefined;
971
+ message?: string | undefined;
2195
972
  }, FetchOptions["throw"] extends true ? true : false>>;
2196
973
  } & {
2197
- getActiveMember: <FetchOptions extends {
2198
- headers?: (HeadersInit & (HeadersInit | {
2199
- accept: "application/json" | "text/plain" | "application/octet-stream";
2200
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2201
- authorization: "Bearer" | "Basic";
2202
- })) | undefined;
2203
- method?: string | undefined;
2204
- cache?: RequestCache | undefined;
2205
- credentials?: RequestCredentials | undefined;
2206
- integrity?: string | undefined;
2207
- keepalive?: boolean | undefined;
2208
- mode?: RequestMode | undefined;
2209
- priority?: RequestPriority | undefined;
2210
- redirect?: RequestRedirect | undefined;
2211
- referrer?: string | undefined;
2212
- referrerPolicy?: ReferrerPolicy | undefined;
2213
- signal?: (AbortSignal | null) | undefined;
2214
- window?: null | undefined;
2215
- next?: NextFetchRequestConfig | undefined;
2216
- onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
2217
- onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
2218
- onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
2219
- onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
2220
- onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
2221
- hookOptions?: {
2222
- cloneResponse?: boolean;
2223
- } | undefined;
2224
- timeout?: number | undefined;
2225
- customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
2226
- plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
2227
- baseURL?: string | undefined;
2228
- throw?: boolean | undefined;
2229
- auth?: ({
2230
- type: "Bearer";
2231
- token: string | (() => string | undefined) | undefined;
2232
- } | {
2233
- type: "Basic";
2234
- username: string | (() => string | undefined) | undefined;
2235
- password: string | (() => string | undefined) | undefined;
2236
- } | {
2237
- type: "Custom";
2238
- prefix: string | (() => string | undefined) | undefined;
2239
- value: string | (() => string | undefined) | undefined;
2240
- }) | undefined;
2241
- body?: undefined;
2242
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2243
- params?: Record<string, any> | undefined;
2244
- duplex?: "full" | "half" | undefined;
2245
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2246
- retry?: import('better-auth/react').RetryOptions | undefined;
2247
- retryAttempt?: number | undefined;
2248
- output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2249
- errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
2250
- disableValidation?: boolean | undefined;
2251
- }>(data_0?: import('better-auth/dist/shared/better-auth.Bi8FQwDD').b<{
2252
- query?: Record<string, any> | undefined;
974
+ leave: <FetchOptions extends import('@better-auth/core').ClientFetchOption<Partial<{
975
+ organizationId: string;
976
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth/react').Prettify<{
977
+ organizationId: string;
978
+ } & {
2253
979
  fetchOptions?: FetchOptions | undefined;
2254
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<{
980
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<NonNullable<Omit<{
981
+ id: string;
982
+ organizationId: string;
983
+ role: "member" | "admin" | "owner";
984
+ createdAt: Date;
985
+ userId: string;
2255
986
  user: {
2256
987
  id: string;
988
+ email: string;
2257
989
  name: string;
990
+ image?: string | undefined;
991
+ };
992
+ } & {
993
+ user: {
994
+ id: string;
995
+ createdAt: Date;
996
+ updatedAt: Date;
2258
997
  email: string;
2259
- image: string | null | undefined;
998
+ emailVerified: boolean;
999
+ name: string;
1000
+ image?: string | null | undefined;
2260
1001
  };
2261
- id: string;
2262
- createdAt: Date;
2263
- userId: string;
2264
- organizationId: string;
2265
- role: string;
2266
- teamId?: string | undefined;
2267
- }, {
2268
- code?: string;
2269
- message?: string;
1002
+ }, "user"> & {
1003
+ user: {
1004
+ id: string;
1005
+ name: string;
1006
+ email: string;
1007
+ image: string | undefined;
1008
+ };
1009
+ }>, {
1010
+ code?: string | undefined;
1011
+ message?: string | undefined;
2270
1012
  }, FetchOptions["throw"] extends true ? true : false>>;
2271
1013
  } & {
2272
- leave: <FetchOptions extends {
2273
- headers?: (HeadersInit & (HeadersInit | {
2274
- accept: "application/json" | "text/plain" | "application/octet-stream";
2275
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2276
- authorization: "Bearer" | "Basic";
2277
- })) | undefined;
2278
- method?: string | undefined;
2279
- cache?: RequestCache | undefined;
2280
- credentials?: RequestCredentials | undefined;
2281
- integrity?: string | undefined;
2282
- keepalive?: boolean | undefined;
2283
- mode?: RequestMode | undefined;
2284
- priority?: RequestPriority | undefined;
2285
- redirect?: RequestRedirect | undefined;
2286
- referrer?: string | undefined;
2287
- referrerPolicy?: ReferrerPolicy | undefined;
2288
- signal?: (AbortSignal | null) | undefined;
2289
- window?: null | undefined;
2290
- next?: NextFetchRequestConfig | undefined;
2291
- onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
2292
- onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
2293
- onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
2294
- onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
2295
- onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
2296
- hookOptions?: {
2297
- cloneResponse?: boolean;
1014
+ listUserInvitations: <FetchOptions extends import('@better-auth/core').ClientFetchOption<never, Partial<{
1015
+ email?: string | undefined;
1016
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import('better-auth/react').Prettify<{
1017
+ query?: {
1018
+ email?: string | undefined;
2298
1019
  } | undefined;
2299
- timeout?: number | undefined;
2300
- customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
2301
- plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
2302
- baseURL?: string | undefined;
2303
- throw?: boolean | undefined;
2304
- auth?: ({
2305
- type: "Bearer";
2306
- token: string | (() => string | undefined) | undefined;
2307
- } | {
2308
- type: "Basic";
2309
- username: string | (() => string | undefined) | undefined;
2310
- password: string | (() => string | undefined) | undefined;
2311
- } | {
2312
- type: "Custom";
2313
- prefix: string | (() => string | undefined) | undefined;
2314
- value: string | (() => string | undefined) | undefined;
2315
- }) | undefined;
2316
- body?: (Partial<{
2317
- organizationId: string;
2318
- }> & Record<string, any>) | undefined;
2319
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2320
- params?: Record<string, any> | undefined;
2321
- duplex?: "full" | "half" | undefined;
2322
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2323
- retry?: import('better-auth/react').RetryOptions | undefined;
2324
- retryAttempt?: number | undefined;
2325
- output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2326
- errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
2327
- disableValidation?: boolean | undefined;
2328
- }>(data_0: import('better-auth/dist/shared/better-auth.Bi8FQwDD').b<{
1020
+ fetchOptions?: FetchOptions | undefined;
1021
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<(Omit<{
1022
+ id: string;
2329
1023
  organizationId: string;
1024
+ email: string;
1025
+ role: "member" | "admin" | "owner";
1026
+ status: import('better-auth/client/plugins').InvitationStatus;
1027
+ inviterId: string;
1028
+ expiresAt: Date;
1029
+ createdAt: Date;
2330
1030
  } & {
2331
- fetchOptions?: {
2332
- headers?: (HeadersInit & (HeadersInit | {
2333
- accept: "application/json" | "text/plain" | "application/octet-stream";
2334
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2335
- authorization: "Bearer" | "Basic";
2336
- })) | undefined;
2337
- method?: string | undefined;
2338
- cache?: RequestCache | undefined;
2339
- credentials?: RequestCredentials | undefined;
2340
- integrity?: string | undefined;
2341
- keepalive?: boolean | undefined;
2342
- mode?: RequestMode | undefined;
2343
- priority?: RequestPriority | undefined;
2344
- redirect?: RequestRedirect | undefined;
2345
- referrer?: string | undefined;
2346
- referrerPolicy?: ReferrerPolicy | undefined;
2347
- signal?: (AbortSignal | null) | undefined;
2348
- window?: null | undefined;
2349
- next?: NextFetchRequestConfig | undefined;
2350
- onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
2351
- onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
2352
- onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
2353
- onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
2354
- onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
2355
- hookOptions?: {
2356
- cloneResponse?: boolean;
2357
- } | undefined;
2358
- timeout?: number | undefined;
2359
- customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
2360
- plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
2361
- baseURL?: string | undefined;
2362
- throw?: boolean | undefined;
2363
- auth?: ({
2364
- type: "Bearer";
2365
- token: string | (() => string | undefined) | undefined;
2366
- } | {
2367
- type: "Basic";
2368
- username: string | (() => string | undefined) | undefined;
2369
- password: string | (() => string | undefined) | undefined;
2370
- } | {
2371
- type: "Custom";
2372
- prefix: string | (() => string | undefined) | undefined;
2373
- value: string | (() => string | undefined) | undefined;
2374
- }) | undefined;
2375
- body?: undefined;
2376
- query?: Record<string, any> | undefined;
2377
- params?: Record<string, any> | undefined;
2378
- duplex?: "full" | "half" | undefined;
2379
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2380
- retry?: import('better-auth/react').RetryOptions | undefined;
2381
- retryAttempt?: number | undefined;
2382
- output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2383
- errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
2384
- disableValidation?: boolean | undefined;
2385
- } | undefined;
2386
- }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<{
2387
- user: {
1031
+ organization: {
2388
1032
  id: string;
2389
1033
  name: string;
2390
- email: string;
2391
- image: string | null | undefined;
1034
+ slug: string;
1035
+ createdAt: Date;
1036
+ logo?: string | null | undefined | undefined;
1037
+ metadata?: any;
2392
1038
  };
2393
- id: string;
2394
- createdAt: Date;
2395
- userId: string;
2396
- organizationId: string;
2397
- role: string;
2398
- teamId?: string | undefined;
2399
- }, {
2400
- code?: string;
2401
- message?: string;
1039
+ }, "organization"> & {
1040
+ organizationName: string;
1041
+ })[], {
1042
+ code?: string | undefined;
1043
+ message?: string | undefined;
2402
1044
  }, FetchOptions["throw"] extends true ? true : false>>;
2403
1045
  } & {
2404
- hasPermission: <FetchOptions extends {
2405
- headers?: (HeadersInit & (HeadersInit | {
2406
- accept: "application/json" | "text/plain" | "application/octet-stream";
2407
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2408
- authorization: "Bearer" | "Basic";
2409
- })) | undefined;
2410
- method?: string | undefined;
2411
- cache?: RequestCache | undefined;
2412
- credentials?: RequestCredentials | undefined;
2413
- integrity?: string | undefined;
2414
- keepalive?: boolean | undefined;
2415
- mode?: RequestMode | undefined;
2416
- priority?: RequestPriority | undefined;
2417
- redirect?: RequestRedirect | undefined;
2418
- referrer?: string | undefined;
2419
- referrerPolicy?: ReferrerPolicy | undefined;
2420
- signal?: (AbortSignal | null) | undefined;
2421
- window?: null | undefined;
2422
- next?: NextFetchRequestConfig | undefined;
2423
- onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
2424
- onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
2425
- onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
2426
- onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
2427
- onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
2428
- hookOptions?: {
2429
- cloneResponse?: boolean;
1046
+ listMembers: <FetchOptions extends import('@better-auth/core').ClientFetchOption<never, Partial<{
1047
+ limit?: string | number | undefined;
1048
+ offset?: string | number | undefined;
1049
+ sortBy?: string | undefined;
1050
+ sortDirection?: "desc" | "asc" | undefined;
1051
+ filterField?: string | undefined;
1052
+ filterValue?: string | number | boolean | string[] | number[] | undefined;
1053
+ filterOperator?: "in" | "lt" | "eq" | "ne" | "gt" | "gte" | "lte" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
1054
+ organizationId?: string | undefined;
1055
+ organizationSlug?: string | undefined;
1056
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import('better-auth/react').Prettify<{
1057
+ query?: {
1058
+ limit?: string | number | undefined;
1059
+ offset?: string | number | undefined;
1060
+ sortBy?: string | undefined;
1061
+ sortDirection?: "desc" | "asc" | undefined;
1062
+ filterField?: string | undefined;
1063
+ filterValue?: string | number | boolean | string[] | number[] | undefined;
1064
+ filterOperator?: "in" | "lt" | "eq" | "ne" | "gt" | "gte" | "lte" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
1065
+ organizationId?: string | undefined;
1066
+ organizationSlug?: string | undefined;
2430
1067
  } | undefined;
2431
- timeout?: number | undefined;
2432
- customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
2433
- plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
2434
- baseURL?: string | undefined;
2435
- throw?: boolean | undefined;
2436
- auth?: ({
2437
- type: "Bearer";
2438
- token: string | (() => string | undefined) | undefined;
2439
- } | {
2440
- type: "Basic";
2441
- username: string | (() => string | undefined) | undefined;
2442
- password: string | (() => string | undefined) | undefined;
2443
- } | {
2444
- type: "Custom";
2445
- prefix: string | (() => string | undefined) | undefined;
2446
- value: string | (() => string | undefined) | undefined;
2447
- }) | undefined;
2448
- body?: (Partial<{
2449
- permission: {
2450
- readonly organization?: ("delete" | "update")[] | undefined;
2451
- readonly member?: ("delete" | "update" | "create")[] | undefined;
2452
- readonly invitation?: ("cancel" | "create")[] | undefined;
2453
- readonly team?: ("delete" | "update" | "create")[] | undefined;
1068
+ fetchOptions?: FetchOptions | undefined;
1069
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<{
1070
+ members: ({
1071
+ id: string;
1072
+ organizationId: string;
1073
+ role: "member" | "admin" | "owner";
1074
+ createdAt: Date;
1075
+ userId: string;
1076
+ user: {
1077
+ id: string;
1078
+ email: string;
1079
+ name: string;
1080
+ image?: string | undefined;
1081
+ };
1082
+ } & {
1083
+ user: {
1084
+ id: string;
1085
+ name: string;
1086
+ email: string;
1087
+ image: string | null | undefined;
2454
1088
  };
2455
- organizationId?: string;
2456
- }> & Record<string, any>) | undefined;
2457
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2458
- params?: Record<string, any> | undefined;
2459
- duplex?: "full" | "half" | undefined;
2460
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2461
- retry?: import('better-auth/react').RetryOptions | undefined;
2462
- retryAttempt?: number | undefined;
2463
- output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2464
- errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
2465
- disableValidation?: boolean | undefined;
2466
- }>(data_0: import('better-auth/dist/shared/better-auth.Bi8FQwDD').b<{
2467
- permission: {
1089
+ })[];
1090
+ total: number;
1091
+ }, {
1092
+ code?: string | undefined;
1093
+ message?: string | undefined;
1094
+ }, FetchOptions["throw"] extends true ? true : false>>;
1095
+ } & {
1096
+ getActiveMemberRole: <FetchOptions extends import('@better-auth/core').ClientFetchOption<never, Partial<{
1097
+ userId?: string | undefined;
1098
+ organizationId?: string | undefined;
1099
+ organizationSlug?: string | undefined;
1100
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import('better-auth/react').Prettify<{
1101
+ query?: {
1102
+ userId?: string | undefined;
1103
+ organizationId?: string | undefined;
1104
+ organizationSlug?: string | undefined;
1105
+ } | undefined;
1106
+ fetchOptions?: FetchOptions | undefined;
1107
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<{
1108
+ role: "member" | "admin" | "owner";
1109
+ }, {
1110
+ code?: string | undefined;
1111
+ message?: string | undefined;
1112
+ }, FetchOptions["throw"] extends true ? true : false>>;
1113
+ } & {
1114
+ hasPermission: <FetchOptions extends import('@better-auth/core').ClientFetchOption<Partial<{
1115
+ permissions: {
2468
1116
  readonly organization?: ("delete" | "update")[] | undefined;
2469
- readonly member?: ("delete" | "update" | "create")[] | undefined;
1117
+ readonly member?: ("delete" | "create" | "update")[] | undefined;
2470
1118
  readonly invitation?: ("cancel" | "create")[] | undefined;
2471
- readonly team?: ("delete" | "update" | "create")[] | undefined;
1119
+ readonly team?: ("delete" | "create" | "update")[] | undefined;
1120
+ readonly ac?: ("delete" | "create" | "update" | "read")[] | undefined;
2472
1121
  };
2473
- organizationId?: string;
2474
1122
  } & {
2475
- fetchOptions?: {
2476
- headers?: (HeadersInit & (HeadersInit | {
2477
- accept: "application/json" | "text/plain" | "application/octet-stream";
2478
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2479
- authorization: "Bearer" | "Basic";
2480
- })) | undefined;
2481
- method?: string | undefined;
2482
- cache?: RequestCache | undefined;
2483
- credentials?: RequestCredentials | undefined;
2484
- integrity?: string | undefined;
2485
- keepalive?: boolean | undefined;
2486
- mode?: RequestMode | undefined;
2487
- priority?: RequestPriority | undefined;
2488
- redirect?: RequestRedirect | undefined;
2489
- referrer?: string | undefined;
2490
- referrerPolicy?: ReferrerPolicy | undefined;
2491
- signal?: (AbortSignal | null) | undefined;
2492
- window?: null | undefined;
2493
- next?: NextFetchRequestConfig | undefined;
2494
- onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
2495
- onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
2496
- onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
2497
- onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
2498
- onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
2499
- hookOptions?: {
2500
- cloneResponse?: boolean;
2501
- } | undefined;
2502
- timeout?: number | undefined;
2503
- customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
2504
- plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
2505
- baseURL?: string | undefined;
2506
- throw?: boolean | undefined;
2507
- auth?: ({
2508
- type: "Bearer";
2509
- token: string | (() => string | undefined) | undefined;
2510
- } | {
2511
- type: "Basic";
2512
- username: string | (() => string | undefined) | undefined;
2513
- password: string | (() => string | undefined) | undefined;
2514
- } | {
2515
- type: "Custom";
2516
- prefix: string | (() => string | undefined) | undefined;
2517
- value: string | (() => string | undefined) | undefined;
2518
- }) | undefined;
2519
- body?: undefined;
2520
- query?: Record<string, any> | undefined;
2521
- params?: Record<string, any> | undefined;
2522
- duplex?: "full" | "half" | undefined;
2523
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2524
- retry?: import('better-auth/react').RetryOptions | undefined;
2525
- retryAttempt?: number | undefined;
2526
- output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2527
- errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
2528
- disableValidation?: boolean | undefined;
2529
- } | undefined;
1123
+ organizationId?: string | undefined;
1124
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth/react').Prettify<{
1125
+ permissions: {
1126
+ readonly organization?: ("delete" | "update")[] | undefined;
1127
+ readonly member?: ("delete" | "create" | "update")[] | undefined;
1128
+ readonly invitation?: ("cancel" | "create")[] | undefined;
1129
+ readonly team?: ("delete" | "create" | "update")[] | undefined;
1130
+ readonly ac?: ("delete" | "create" | "update" | "read")[] | undefined;
1131
+ };
1132
+ } & {
1133
+ organizationId?: string | undefined;
1134
+ } & {
1135
+ fetchOptions?: FetchOptions | undefined;
2530
1136
  }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<{
2531
1137
  error: null;
2532
1138
  success: boolean;
2533
1139
  }, {
2534
- code?: string;
2535
- message?: string;
1140
+ code?: string | undefined;
1141
+ message?: string | undefined;
2536
1142
  }, FetchOptions["throw"] extends true ? true : false>>;
2537
1143
  } & {
2538
1144
  checkRolePermission: <R extends "member" | "admin" | "owner">(data: {
2539
- role: R;
2540
- permission: {
1145
+ permissions: {
2541
1146
  readonly organization?: ("delete" | "update")[] | undefined;
2542
- readonly member?: ("delete" | "update" | "create")[] | undefined;
1147
+ readonly member?: ("delete" | "create" | "update")[] | undefined;
2543
1148
  readonly invitation?: ("cancel" | "create")[] | undefined;
2544
- readonly team?: ("delete" | "update" | "create")[] | undefined;
1149
+ readonly team?: ("delete" | "create" | "update")[] | undefined;
1150
+ readonly ac?: ("delete" | "create" | "update" | "read")[] | undefined;
2545
1151
  };
1152
+ } & {
1153
+ role: R;
2546
1154
  }) => boolean;
2547
- }, getSession: <FetchOptions extends {
2548
- headers?: (HeadersInit & (HeadersInit | {
2549
- accept: "application/json" | "text/plain" | "application/octet-stream";
2550
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2551
- authorization: "Bearer" | "Basic";
2552
- })) | undefined;
2553
- method?: string | undefined;
2554
- cache?: RequestCache | undefined;
2555
- credentials?: RequestCredentials | undefined;
2556
- integrity?: string | undefined;
2557
- keepalive?: boolean | undefined;
2558
- mode?: RequestMode | undefined;
2559
- priority?: RequestPriority | undefined;
2560
- redirect?: RequestRedirect | undefined;
2561
- referrer?: string | undefined;
2562
- referrerPolicy?: ReferrerPolicy | undefined;
2563
- signal?: (AbortSignal | null) | undefined;
2564
- window?: null | undefined;
2565
- next?: NextFetchRequestConfig | undefined;
2566
- onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
2567
- onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
2568
- onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
2569
- onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
2570
- onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
2571
- hookOptions?: {
2572
- cloneResponse?: boolean;
2573
- } | undefined;
2574
- timeout?: number | undefined;
2575
- customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
2576
- plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
2577
- baseURL?: string | undefined;
2578
- throw?: boolean | undefined;
2579
- auth?: ({
2580
- type: "Bearer";
2581
- token: string | (() => string | undefined) | undefined;
2582
- } | {
2583
- type: "Basic";
2584
- username: string | (() => string | undefined) | undefined;
2585
- password: string | (() => string | undefined) | undefined;
2586
- } | {
2587
- type: "Custom";
2588
- prefix: string | (() => string | undefined) | undefined;
2589
- value: string | (() => string | undefined) | undefined;
2590
- }) | undefined;
2591
- body?: undefined;
2592
- query?: (Partial<{
2593
- disableCookieCache?: string | boolean | undefined;
2594
- disableRefresh?: string | boolean | undefined;
2595
- }> & Record<string, any>) | undefined;
2596
- params?: Record<string, any> | undefined;
2597
- duplex?: "full" | "half" | undefined;
2598
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2599
- retry?: import('better-auth/react').RetryOptions | undefined;
2600
- retryAttempt?: number | undefined;
2601
- output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2602
- errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
2603
- disableValidation?: boolean | undefined;
2604
- }>(data_0?: import('better-auth/dist/shared/better-auth.Bi8FQwDD').b<{
1155
+ }, getSession: <FetchOptions extends import('@better-auth/core').ClientFetchOption<never, Partial<{
1156
+ disableCookieCache?: unknown;
1157
+ disableRefresh?: unknown;
1158
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import('better-auth/react').Prettify<{
2605
1159
  query?: {
2606
- disableCookieCache?: string | boolean | undefined;
2607
- disableRefresh?: string | boolean | undefined;
1160
+ disableCookieCache?: unknown;
1161
+ disableRefresh?: unknown;
2608
1162
  } | undefined;
2609
1163
  fetchOptions?: FetchOptions | undefined;
2610
1164
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<{
2611
- user: {
1165
+ user: import('better-auth/react').StripEmptyObjects<{
2612
1166
  id: string;
2613
- name: string;
2614
- email: string;
2615
- emailVerified: boolean;
2616
1167
  createdAt: Date;
2617
1168
  updatedAt: Date;
2618
- image?: string | null | undefined | undefined;
1169
+ email: string;
1170
+ emailVerified: boolean;
1171
+ name: string;
1172
+ image?: string | null | undefined;
1173
+ } & {
2619
1174
  firstname: string;
2620
1175
  lastname: string;
2621
- };
2622
- session: {
1176
+ } & {}>;
1177
+ session: import('better-auth/react').StripEmptyObjects<{
2623
1178
  id: string;
2624
1179
  createdAt: Date;
2625
1180
  updatedAt: Date;
2626
1181
  userId: string;
2627
1182
  expiresAt: Date;
2628
1183
  token: string;
2629
- ipAddress?: string | null | undefined | undefined;
2630
- userAgent?: string | null | undefined | undefined;
1184
+ ipAddress?: string | null | undefined;
1185
+ userAgent?: string | null | undefined;
1186
+ } & {} & {
2631
1187
  activeOrganizationId?: string | null | undefined;
2632
- };
2633
- }, {
2634
- code?: string;
2635
- message?: string;
1188
+ } & {} & {}>;
1189
+ } | null, {
1190
+ code?: string | undefined;
1191
+ message?: string | undefined;
2636
1192
  }, FetchOptions["throw"] extends true ? true : false>>, useListOrganizations: () => {
2637
- data: import('better-auth/dist/shared/better-auth.Dxn5Xplu').b[] | null;
1193
+ data: {
1194
+ id: string;
1195
+ name: string;
1196
+ slug: string;
1197
+ createdAt: Date;
1198
+ logo?: string | null | undefined | undefined;
1199
+ metadata?: any;
1200
+ }[] | null;
2638
1201
  error: null | import('better-auth/react').BetterFetchError;
2639
1202
  isPending: boolean;
2640
1203
  isRefetching: boolean;
2641
- refetch: () => void;
1204
+ refetch: (queryParams?: {
1205
+ query?: import('better-auth/*').SessionQueryParams;
1206
+ } | undefined) => Promise<void>;
2642
1207
  };