@m5kdev/frontend 0.1.5 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/modules/auth/auth.lib.d.ts +1335 -1334
- package/dist/src/modules/auth/auth.lib.d.ts.map +1 -0
- package/dist/src/modules/auth/components/AuthProvider.d.ts +1 -0
- package/dist/src/modules/auth/components/AuthProvider.d.ts.map +1 -0
- package/dist/src/modules/auth/hooks/useAuth.d.ts +1 -0
- package/dist/src/modules/auth/hooks/useAuth.d.ts.map +1 -0
- package/dist/src/modules/auth/hooks/useAuthAdmin.d.ts +1 -0
- package/dist/src/modules/auth/hooks/useAuthAdmin.d.ts.map +1 -0
- package/dist/src/modules/auth/hooks/useSession.d.ts +3 -2
- package/dist/src/modules/auth/hooks/useSession.d.ts.map +1 -0
- package/dist/src/modules/billing/components/BillingProvider.d.ts +2 -1
- package/dist/src/modules/billing/components/BillingProvider.d.ts.map +1 -0
- package/dist/src/modules/billing/hooks/useSubscription.d.ts +1 -0
- package/dist/src/modules/billing/hooks/useSubscription.d.ts.map +1 -0
- package/dist/src/modules/file/hooks/useS3DownloadUrl.d.ts +1 -0
- package/dist/src/modules/file/hooks/useS3DownloadUrl.d.ts.map +1 -0
- package/dist/src/modules/file/hooks/useS3Upload.d.ts +1 -0
- package/dist/src/modules/file/hooks/useS3Upload.d.ts.map +1 -0
- package/dist/src/modules/file/hooks/useUpload.d.ts +1 -0
- package/dist/src/modules/file/hooks/useUpload.d.ts.map +1 -0
- package/dist/src/modules/table/hooks/useDateRangeFilter.d.ts +1 -0
- package/dist/src/modules/table/hooks/useDateRangeFilter.d.ts.map +1 -0
- package/dist/src/modules/table/hooks/useNuqsQueryParams.d.ts +1 -0
- package/dist/src/modules/table/hooks/useNuqsQueryParams.d.ts.map +1 -0
- package/dist/src/modules/table/hooks/useNuqsTable.d.ts +1 -0
- package/dist/src/modules/table/hooks/useNuqsTable.d.ts.map +1 -0
- package/dist/src/modules/table/hooks/useQueryWithParams.d.ts +1 -0
- package/dist/src/modules/table/hooks/useQueryWithParams.d.ts.map +1 -0
- package/dist/src/types.d.ts +1 -0
- package/dist/src/types.d.ts.map +1 -0
- package/dist/src/utils/date.d.ts +1 -0
- package/dist/src/utils/date.d.ts.map +1 -0
- package/dist/src/utils/query.d.ts +1 -0
- package/dist/src/utils/query.d.ts.map +1 -0
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +4 -7
|
@@ -11,7 +11,7 @@ export declare const authClient: {
|
|
|
11
11
|
members: {
|
|
12
12
|
id: string;
|
|
13
13
|
organizationId: string;
|
|
14
|
-
role: "
|
|
14
|
+
role: "admin" | "member" | "owner";
|
|
15
15
|
createdAt: Date;
|
|
16
16
|
userId: string;
|
|
17
17
|
teamId?: string | undefined | undefined;
|
|
@@ -26,7 +26,7 @@ export declare const authClient: {
|
|
|
26
26
|
id: string;
|
|
27
27
|
organizationId: string;
|
|
28
28
|
email: string;
|
|
29
|
-
role: "
|
|
29
|
+
role: "admin" | "member" | "owner";
|
|
30
30
|
status: import("better-auth/plugins").InvitationStatus;
|
|
31
31
|
inviterId: string;
|
|
32
32
|
expiresAt: Date;
|
|
@@ -84,566 +84,287 @@ export declare const authClient: {
|
|
|
84
84
|
} | undefined) => Promise<void>;
|
|
85
85
|
};
|
|
86
86
|
} & {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
fetchOptions?: FetchOptions | undefined;
|
|
90
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
91
|
-
success: boolean;
|
|
92
|
-
}, {
|
|
93
|
-
code?: string | undefined;
|
|
94
|
-
message?: string | undefined;
|
|
95
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
96
|
-
} & {
|
|
97
|
-
resetPassword: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
98
|
-
newPassword: string;
|
|
99
|
-
token?: string | undefined;
|
|
100
|
-
}> & Record<string, any>, Partial<{
|
|
101
|
-
token?: string | undefined;
|
|
102
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
103
|
-
newPassword: string;
|
|
104
|
-
token?: string | undefined;
|
|
105
|
-
} & {
|
|
106
|
-
fetchOptions?: FetchOptions | undefined;
|
|
107
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
108
|
-
status: boolean;
|
|
109
|
-
}, {
|
|
110
|
-
code?: string | undefined;
|
|
111
|
-
message?: string | undefined;
|
|
112
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
113
|
-
} & {
|
|
114
|
-
verifyEmail: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
|
|
115
|
-
token: string;
|
|
116
|
-
callbackURL?: string | undefined;
|
|
117
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
118
|
-
query: {
|
|
119
|
-
token: string;
|
|
120
|
-
callbackURL?: string | undefined;
|
|
121
|
-
};
|
|
122
|
-
fetchOptions?: FetchOptions | undefined;
|
|
123
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<NonNullable<void | {
|
|
124
|
-
status: boolean;
|
|
125
|
-
}>, {
|
|
126
|
-
code?: string | undefined;
|
|
127
|
-
message?: string | undefined;
|
|
128
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
129
|
-
} & {
|
|
130
|
-
sendVerificationEmail: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
131
|
-
email: string;
|
|
132
|
-
callbackURL?: string | undefined;
|
|
133
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
134
|
-
email: string;
|
|
135
|
-
callbackURL?: string | undefined;
|
|
136
|
-
} & {
|
|
137
|
-
fetchOptions?: FetchOptions | undefined;
|
|
138
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
139
|
-
status: boolean;
|
|
140
|
-
}, {
|
|
141
|
-
code?: string | undefined;
|
|
142
|
-
message?: string | undefined;
|
|
143
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
144
|
-
} & {
|
|
145
|
-
changeEmail: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
146
|
-
newEmail: string;
|
|
147
|
-
callbackURL?: string | undefined;
|
|
148
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
149
|
-
newEmail: string;
|
|
150
|
-
callbackURL?: string | undefined;
|
|
151
|
-
} & {
|
|
152
|
-
fetchOptions?: FetchOptions | undefined;
|
|
153
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
154
|
-
status: boolean;
|
|
155
|
-
}, {
|
|
156
|
-
code?: string | undefined;
|
|
157
|
-
message?: string | undefined;
|
|
158
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
159
|
-
} & {
|
|
160
|
-
changePassword: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
161
|
-
newPassword: string;
|
|
162
|
-
currentPassword: string;
|
|
163
|
-
revokeOtherSessions?: boolean | undefined;
|
|
164
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
165
|
-
newPassword: string;
|
|
166
|
-
currentPassword: string;
|
|
167
|
-
revokeOtherSessions?: boolean | undefined;
|
|
168
|
-
} & {
|
|
169
|
-
fetchOptions?: FetchOptions | undefined;
|
|
170
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
171
|
-
token: string | null;
|
|
172
|
-
user: {
|
|
173
|
-
id: string;
|
|
174
|
-
createdAt: Date;
|
|
175
|
-
updatedAt: Date;
|
|
176
|
-
email: string;
|
|
177
|
-
emailVerified: boolean;
|
|
87
|
+
organization: {
|
|
88
|
+
create: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
178
89
|
name: string;
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
185
|
-
} & {
|
|
186
|
-
deleteUser: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
187
|
-
callbackURL?: string | undefined;
|
|
188
|
-
password?: string | undefined;
|
|
189
|
-
token?: string | undefined;
|
|
190
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
191
|
-
callbackURL?: string | undefined;
|
|
192
|
-
password?: string | undefined;
|
|
193
|
-
token?: string | undefined;
|
|
194
|
-
} & {
|
|
195
|
-
fetchOptions?: FetchOptions | undefined;
|
|
196
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
197
|
-
success: boolean;
|
|
198
|
-
message: string;
|
|
199
|
-
}, {
|
|
200
|
-
code?: string | undefined;
|
|
201
|
-
message?: string | undefined;
|
|
202
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
203
|
-
} & {
|
|
204
|
-
requestPasswordReset: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
205
|
-
email: string;
|
|
206
|
-
redirectTo?: string | undefined;
|
|
207
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
208
|
-
email: string;
|
|
209
|
-
redirectTo?: string | undefined;
|
|
210
|
-
} & {
|
|
211
|
-
fetchOptions?: FetchOptions | undefined;
|
|
212
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
213
|
-
status: boolean;
|
|
214
|
-
message: string;
|
|
215
|
-
}, {
|
|
216
|
-
code?: string | undefined;
|
|
217
|
-
message?: string | undefined;
|
|
218
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
219
|
-
} & {
|
|
220
|
-
resetPassword: {
|
|
221
|
-
":token": <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
|
|
222
|
-
callbackURL: string;
|
|
223
|
-
}> & Record<string, any>, {
|
|
224
|
-
token: string;
|
|
225
|
-
}>>(data_0: import("better-auth").Prettify<{
|
|
226
|
-
query: {
|
|
227
|
-
callbackURL: string;
|
|
228
|
-
};
|
|
229
|
-
fetchOptions?: FetchOptions | undefined;
|
|
230
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<never, {
|
|
231
|
-
code?: string | undefined;
|
|
232
|
-
message?: string | undefined;
|
|
233
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
234
|
-
};
|
|
235
|
-
} & {
|
|
236
|
-
revokeSession: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
237
|
-
token: string;
|
|
238
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
239
|
-
token: string;
|
|
240
|
-
} & {
|
|
241
|
-
fetchOptions?: FetchOptions | undefined;
|
|
242
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
243
|
-
status: boolean;
|
|
244
|
-
}, {
|
|
245
|
-
code?: string | undefined;
|
|
246
|
-
message?: string | undefined;
|
|
247
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
248
|
-
} & {
|
|
249
|
-
revokeSessions: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
250
|
-
query?: Record<string, any> | undefined;
|
|
251
|
-
fetchOptions?: FetchOptions | undefined;
|
|
252
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
253
|
-
status: boolean;
|
|
254
|
-
}, {
|
|
255
|
-
code?: string | undefined;
|
|
256
|
-
message?: string | undefined;
|
|
257
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
258
|
-
} & {
|
|
259
|
-
revokeOtherSessions: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
260
|
-
query?: Record<string, any> | undefined;
|
|
261
|
-
fetchOptions?: FetchOptions | undefined;
|
|
262
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
263
|
-
status: boolean;
|
|
264
|
-
}, {
|
|
265
|
-
code?: string | undefined;
|
|
266
|
-
message?: string | undefined;
|
|
267
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
268
|
-
} & {
|
|
269
|
-
linkSocial: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
270
|
-
provider: unknown;
|
|
271
|
-
callbackURL?: string | undefined;
|
|
272
|
-
idToken?: {
|
|
273
|
-
token: string;
|
|
274
|
-
nonce?: string | undefined;
|
|
275
|
-
accessToken?: string | undefined;
|
|
276
|
-
refreshToken?: string | undefined;
|
|
277
|
-
scopes?: string[] | undefined;
|
|
278
|
-
} | undefined;
|
|
279
|
-
requestSignUp?: boolean | undefined;
|
|
280
|
-
scopes?: string[] | undefined;
|
|
281
|
-
errorCallbackURL?: string | undefined;
|
|
282
|
-
disableRedirect?: boolean | undefined;
|
|
283
|
-
additionalData?: Record<string, any> | undefined;
|
|
284
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
285
|
-
provider: unknown;
|
|
286
|
-
callbackURL?: string | undefined;
|
|
287
|
-
idToken?: {
|
|
288
|
-
token: string;
|
|
289
|
-
nonce?: string | undefined;
|
|
290
|
-
accessToken?: string | undefined;
|
|
291
|
-
refreshToken?: string | undefined;
|
|
292
|
-
scopes?: string[] | undefined;
|
|
293
|
-
} | undefined;
|
|
294
|
-
requestSignUp?: boolean | undefined;
|
|
295
|
-
scopes?: string[] | undefined;
|
|
296
|
-
errorCallbackURL?: string | undefined;
|
|
297
|
-
disableRedirect?: boolean | undefined;
|
|
298
|
-
additionalData?: Record<string, any> | undefined;
|
|
299
|
-
} & {
|
|
300
|
-
fetchOptions?: FetchOptions | undefined;
|
|
301
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
302
|
-
url: string;
|
|
303
|
-
redirect: boolean;
|
|
304
|
-
}, {
|
|
305
|
-
code?: string | undefined;
|
|
306
|
-
message?: string | undefined;
|
|
307
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
308
|
-
} & {
|
|
309
|
-
listAccounts: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
310
|
-
query?: Record<string, any> | undefined;
|
|
311
|
-
fetchOptions?: FetchOptions | undefined;
|
|
312
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
313
|
-
scopes: string[];
|
|
314
|
-
id: string;
|
|
315
|
-
createdAt: Date;
|
|
316
|
-
updatedAt: Date;
|
|
317
|
-
userId: string;
|
|
318
|
-
providerId: string;
|
|
319
|
-
accountId: string;
|
|
320
|
-
}[], {
|
|
321
|
-
code?: string | undefined;
|
|
322
|
-
message?: string | undefined;
|
|
323
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
324
|
-
} & {
|
|
325
|
-
deleteUser: {
|
|
326
|
-
callback: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
|
|
327
|
-
token: string;
|
|
328
|
-
callbackURL?: string | undefined;
|
|
329
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
330
|
-
query: {
|
|
331
|
-
token: string;
|
|
332
|
-
callbackURL?: string | undefined;
|
|
333
|
-
};
|
|
334
|
-
fetchOptions?: FetchOptions | undefined;
|
|
335
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
336
|
-
success: boolean;
|
|
337
|
-
message: string;
|
|
338
|
-
}, {
|
|
339
|
-
code?: string | undefined;
|
|
340
|
-
message?: string | undefined;
|
|
341
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
342
|
-
};
|
|
343
|
-
} & {
|
|
344
|
-
unlinkAccount: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
345
|
-
providerId: string;
|
|
346
|
-
accountId?: string | undefined;
|
|
347
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
348
|
-
providerId: string;
|
|
349
|
-
accountId?: string | undefined;
|
|
350
|
-
} & {
|
|
351
|
-
fetchOptions?: FetchOptions | undefined;
|
|
352
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
353
|
-
status: boolean;
|
|
354
|
-
}, {
|
|
355
|
-
code?: string | undefined;
|
|
356
|
-
message?: string | undefined;
|
|
357
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
358
|
-
} & {
|
|
359
|
-
refreshToken: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
360
|
-
providerId: string;
|
|
361
|
-
accountId?: string | undefined;
|
|
362
|
-
userId?: string | undefined;
|
|
363
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
364
|
-
providerId: string;
|
|
365
|
-
accountId?: string | undefined;
|
|
366
|
-
userId?: string | undefined;
|
|
367
|
-
} & {
|
|
368
|
-
fetchOptions?: FetchOptions | undefined;
|
|
369
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
370
|
-
accessToken: string | undefined;
|
|
371
|
-
refreshToken: string | undefined;
|
|
372
|
-
accessTokenExpiresAt: Date | undefined;
|
|
373
|
-
refreshTokenExpiresAt: Date | undefined;
|
|
374
|
-
scope: string | null | undefined;
|
|
375
|
-
idToken: string | null | undefined;
|
|
376
|
-
providerId: string;
|
|
377
|
-
accountId: string;
|
|
378
|
-
}, {
|
|
379
|
-
code?: string | undefined;
|
|
380
|
-
message?: string | undefined;
|
|
381
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
382
|
-
} & {
|
|
383
|
-
getAccessToken: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
384
|
-
providerId: string;
|
|
385
|
-
accountId?: string | undefined;
|
|
386
|
-
userId?: string | undefined;
|
|
387
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
388
|
-
providerId: string;
|
|
389
|
-
accountId?: string | undefined;
|
|
390
|
-
userId?: string | undefined;
|
|
391
|
-
} & {
|
|
392
|
-
fetchOptions?: FetchOptions | undefined;
|
|
393
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
394
|
-
accessToken: string;
|
|
395
|
-
accessTokenExpiresAt: Date | undefined;
|
|
396
|
-
scopes: string[];
|
|
397
|
-
idToken: string | undefined;
|
|
398
|
-
}, {
|
|
399
|
-
code?: string | undefined;
|
|
400
|
-
message?: string | undefined;
|
|
401
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
402
|
-
} & {
|
|
403
|
-
accountInfo: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
|
|
404
|
-
accountId?: string | undefined;
|
|
405
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
406
|
-
query?: {
|
|
407
|
-
accountId?: string | undefined;
|
|
408
|
-
} | undefined;
|
|
409
|
-
fetchOptions?: FetchOptions | undefined;
|
|
410
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
411
|
-
user: import("better-auth").OAuth2UserInfo;
|
|
412
|
-
data: Record<string, any>;
|
|
413
|
-
}, {
|
|
414
|
-
code?: string | undefined;
|
|
415
|
-
message?: string | undefined;
|
|
416
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
417
|
-
} & {
|
|
418
|
-
admin: {
|
|
419
|
-
getUser: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
|
|
420
|
-
id: string;
|
|
421
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
422
|
-
query: {
|
|
423
|
-
id: string;
|
|
424
|
-
};
|
|
425
|
-
fetchOptions?: FetchOptions | undefined;
|
|
426
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<import("better-auth/plugins").UserWithRole, {
|
|
427
|
-
code?: string | undefined;
|
|
428
|
-
message?: string | undefined;
|
|
429
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
430
|
-
};
|
|
431
|
-
} & {
|
|
432
|
-
admin: {
|
|
433
|
-
updateUser: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
434
|
-
userId: unknown;
|
|
435
|
-
data: Record<any, any>;
|
|
436
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
437
|
-
userId: unknown;
|
|
438
|
-
data: Record<any, any>;
|
|
439
|
-
} & {
|
|
440
|
-
fetchOptions?: FetchOptions | undefined;
|
|
441
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<import("better-auth/plugins").UserWithRole, {
|
|
442
|
-
code?: string | undefined;
|
|
443
|
-
message?: string | undefined;
|
|
444
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
445
|
-
};
|
|
446
|
-
} & {
|
|
447
|
-
admin: {
|
|
448
|
-
listUsers: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
|
|
449
|
-
searchValue?: string | undefined;
|
|
450
|
-
searchField?: "name" | "email" | undefined;
|
|
451
|
-
searchOperator?: "contains" | "starts_with" | "ends_with" | undefined;
|
|
452
|
-
limit?: string | number | undefined;
|
|
453
|
-
offset?: string | number | undefined;
|
|
454
|
-
sortBy?: string | undefined;
|
|
455
|
-
sortDirection?: "asc" | "desc" | undefined;
|
|
456
|
-
filterField?: string | undefined;
|
|
457
|
-
filterValue?: string | number | boolean | undefined;
|
|
458
|
-
filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
|
|
459
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
460
|
-
query: {
|
|
461
|
-
searchValue?: string | undefined;
|
|
462
|
-
searchField?: "name" | "email" | undefined;
|
|
463
|
-
searchOperator?: "contains" | "starts_with" | "ends_with" | undefined;
|
|
464
|
-
limit?: string | number | undefined;
|
|
465
|
-
offset?: string | number | undefined;
|
|
466
|
-
sortBy?: string | undefined;
|
|
467
|
-
sortDirection?: "asc" | "desc" | undefined;
|
|
468
|
-
filterField?: string | undefined;
|
|
469
|
-
filterValue?: string | number | boolean | undefined;
|
|
470
|
-
filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
|
|
471
|
-
};
|
|
472
|
-
fetchOptions?: FetchOptions | undefined;
|
|
473
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<NonNullable<{
|
|
474
|
-
users: import("better-auth/plugins").UserWithRole[];
|
|
475
|
-
total: number;
|
|
476
|
-
limit: number | undefined;
|
|
477
|
-
offset: number | undefined;
|
|
478
|
-
} | {
|
|
479
|
-
users: never[];
|
|
480
|
-
total: number;
|
|
481
|
-
}>, {
|
|
482
|
-
code?: string | undefined;
|
|
483
|
-
message?: string | undefined;
|
|
484
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
485
|
-
};
|
|
486
|
-
} & {
|
|
487
|
-
admin: {
|
|
488
|
-
listUserSessions: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
489
|
-
userId: unknown;
|
|
90
|
+
slug: string;
|
|
91
|
+
userId?: string | undefined;
|
|
92
|
+
logo?: string | undefined;
|
|
93
|
+
metadata?: Record<string, any> | undefined;
|
|
94
|
+
keepCurrentActiveOrganization?: boolean | undefined;
|
|
490
95
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
491
|
-
|
|
96
|
+
name: string;
|
|
97
|
+
slug: string;
|
|
98
|
+
userId?: string | undefined;
|
|
99
|
+
logo?: string | undefined;
|
|
100
|
+
metadata?: Record<string, any> | undefined;
|
|
101
|
+
keepCurrentActiveOrganization?: boolean | undefined;
|
|
492
102
|
} & {
|
|
493
103
|
fetchOptions?: FetchOptions | undefined;
|
|
494
104
|
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
495
|
-
|
|
105
|
+
id: string;
|
|
106
|
+
name: string;
|
|
107
|
+
slug: string;
|
|
108
|
+
createdAt: Date;
|
|
109
|
+
logo?: string | null | undefined | undefined;
|
|
110
|
+
metadata?: any;
|
|
111
|
+
} & {
|
|
112
|
+
metadata: any;
|
|
113
|
+
members: ({
|
|
114
|
+
id: string;
|
|
115
|
+
organizationId: string;
|
|
116
|
+
userId: string;
|
|
117
|
+
role: string;
|
|
118
|
+
createdAt: Date;
|
|
119
|
+
} | undefined)[];
|
|
496
120
|
}, {
|
|
497
121
|
code?: string | undefined;
|
|
498
122
|
message?: string | undefined;
|
|
499
123
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
500
124
|
};
|
|
501
125
|
} & {
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
126
|
+
organization: {
|
|
127
|
+
update: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
128
|
+
data: {
|
|
129
|
+
name?: string | undefined;
|
|
130
|
+
slug?: string | undefined;
|
|
131
|
+
logo?: string | undefined;
|
|
132
|
+
metadata?: Record<string, any> | undefined;
|
|
133
|
+
} & Partial<{}>;
|
|
134
|
+
organizationId?: string | undefined;
|
|
505
135
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
506
|
-
|
|
136
|
+
data: {
|
|
137
|
+
name?: string | undefined;
|
|
138
|
+
slug?: string | undefined;
|
|
139
|
+
logo?: string | undefined;
|
|
140
|
+
metadata?: Record<string, any> | undefined;
|
|
141
|
+
} & Partial<{}>;
|
|
142
|
+
organizationId?: string | undefined;
|
|
507
143
|
} & {
|
|
508
144
|
fetchOptions?: FetchOptions | undefined;
|
|
509
145
|
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
510
|
-
|
|
146
|
+
id: string;
|
|
147
|
+
name: string;
|
|
148
|
+
slug: string;
|
|
149
|
+
createdAt: Date;
|
|
150
|
+
logo?: string | null | undefined | undefined;
|
|
151
|
+
metadata?: any;
|
|
511
152
|
}, {
|
|
512
153
|
code?: string | undefined;
|
|
513
154
|
message?: string | undefined;
|
|
514
155
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
515
156
|
};
|
|
516
157
|
} & {
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
banReason?: string | undefined;
|
|
521
|
-
banExpiresIn?: number | undefined;
|
|
158
|
+
organization: {
|
|
159
|
+
delete: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
160
|
+
organizationId: string;
|
|
522
161
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
523
|
-
|
|
524
|
-
banReason?: string | undefined;
|
|
525
|
-
banExpiresIn?: number | undefined;
|
|
162
|
+
organizationId: string;
|
|
526
163
|
} & {
|
|
527
164
|
fetchOptions?: FetchOptions | undefined;
|
|
528
165
|
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
529
|
-
|
|
166
|
+
id: string;
|
|
167
|
+
name: string;
|
|
168
|
+
slug: string;
|
|
169
|
+
createdAt: Date;
|
|
170
|
+
logo?: string | null | undefined | undefined;
|
|
171
|
+
metadata?: any;
|
|
530
172
|
}, {
|
|
531
173
|
code?: string | undefined;
|
|
532
174
|
message?: string | undefined;
|
|
533
175
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
534
176
|
};
|
|
535
177
|
} & {
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
178
|
+
organization: {
|
|
179
|
+
setActive: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
180
|
+
organizationId?: string | null | undefined;
|
|
181
|
+
organizationSlug?: string | undefined;
|
|
182
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
183
|
+
organizationId?: string | null | undefined;
|
|
184
|
+
organizationSlug?: string | undefined;
|
|
541
185
|
} & {
|
|
542
186
|
fetchOptions?: FetchOptions | undefined;
|
|
543
|
-
}
|
|
544
|
-
|
|
187
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
188
|
+
members: {
|
|
545
189
|
id: string;
|
|
190
|
+
organizationId: string;
|
|
191
|
+
role: "admin" | "member" | "owner";
|
|
546
192
|
createdAt: Date;
|
|
547
|
-
updatedAt: Date;
|
|
548
193
|
userId: string;
|
|
194
|
+
teamId?: string | undefined | undefined;
|
|
195
|
+
user: {
|
|
196
|
+
id: string;
|
|
197
|
+
email: string;
|
|
198
|
+
name: string;
|
|
199
|
+
image?: string | undefined;
|
|
200
|
+
};
|
|
201
|
+
}[];
|
|
202
|
+
invitations: {
|
|
203
|
+
id: string;
|
|
204
|
+
organizationId: string;
|
|
205
|
+
email: string;
|
|
206
|
+
role: "admin" | "member" | "owner";
|
|
207
|
+
status: import("better-auth/plugins").InvitationStatus;
|
|
208
|
+
inviterId: string;
|
|
549
209
|
expiresAt: Date;
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
210
|
+
createdAt: Date;
|
|
211
|
+
teamId?: string | undefined | undefined;
|
|
212
|
+
}[];
|
|
213
|
+
teams: {
|
|
214
|
+
id: string;
|
|
215
|
+
name: string;
|
|
216
|
+
organizationId: string;
|
|
217
|
+
createdAt: Date;
|
|
218
|
+
updatedAt?: Date | undefined;
|
|
219
|
+
}[];
|
|
220
|
+
} & {
|
|
221
|
+
id: string;
|
|
222
|
+
name: string;
|
|
223
|
+
slug: string;
|
|
224
|
+
createdAt: Date;
|
|
225
|
+
logo?: string | null | undefined | undefined;
|
|
226
|
+
metadata?: any;
|
|
555
227
|
}, {
|
|
556
228
|
code?: string | undefined;
|
|
557
229
|
message?: string | undefined;
|
|
558
230
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
559
231
|
};
|
|
560
232
|
} & {
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
233
|
+
organization: {
|
|
234
|
+
getFullOrganization: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
|
|
235
|
+
organizationId?: string | undefined;
|
|
236
|
+
organizationSlug?: string | undefined;
|
|
237
|
+
membersLimit?: string | number | undefined;
|
|
238
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
239
|
+
query?: {
|
|
240
|
+
organizationId?: string | undefined;
|
|
241
|
+
organizationSlug?: string | undefined;
|
|
242
|
+
membersLimit?: string | number | undefined;
|
|
243
|
+
} | undefined;
|
|
564
244
|
fetchOptions?: FetchOptions | undefined;
|
|
565
245
|
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
566
|
-
|
|
246
|
+
members: {
|
|
567
247
|
id: string;
|
|
248
|
+
organizationId: string;
|
|
249
|
+
role: "admin" | "member" | "owner";
|
|
568
250
|
createdAt: Date;
|
|
569
|
-
updatedAt: Date;
|
|
570
251
|
userId: string;
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
252
|
+
teamId?: string | undefined | undefined;
|
|
253
|
+
user: {
|
|
254
|
+
id: string;
|
|
255
|
+
email: string;
|
|
256
|
+
name: string;
|
|
257
|
+
image?: string | undefined;
|
|
258
|
+
};
|
|
259
|
+
}[];
|
|
260
|
+
invitations: {
|
|
577
261
|
id: string;
|
|
578
|
-
|
|
579
|
-
updatedAt: Date;
|
|
262
|
+
organizationId: string;
|
|
580
263
|
email: string;
|
|
581
|
-
|
|
264
|
+
role: "admin" | "member" | "owner";
|
|
265
|
+
status: import("better-auth/plugins").InvitationStatus;
|
|
266
|
+
inviterId: string;
|
|
267
|
+
expiresAt: Date;
|
|
268
|
+
createdAt: Date;
|
|
269
|
+
teamId?: string | undefined | undefined;
|
|
270
|
+
}[];
|
|
271
|
+
teams: {
|
|
272
|
+
id: string;
|
|
582
273
|
name: string;
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
message?: string | undefined;
|
|
588
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
589
|
-
};
|
|
590
|
-
} & {
|
|
591
|
-
admin: {
|
|
592
|
-
revokeUserSession: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
593
|
-
sessionToken: string;
|
|
594
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
595
|
-
sessionToken: string;
|
|
274
|
+
organizationId: string;
|
|
275
|
+
createdAt: Date;
|
|
276
|
+
updatedAt?: Date | undefined;
|
|
277
|
+
}[];
|
|
596
278
|
} & {
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
279
|
+
id: string;
|
|
280
|
+
name: string;
|
|
281
|
+
slug: string;
|
|
282
|
+
createdAt: Date;
|
|
283
|
+
logo?: string | null | undefined | undefined;
|
|
284
|
+
metadata?: any;
|
|
600
285
|
}, {
|
|
601
286
|
code?: string | undefined;
|
|
602
287
|
message?: string | undefined;
|
|
603
288
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
604
289
|
};
|
|
605
290
|
} & {
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
610
|
-
userId: unknown;
|
|
611
|
-
} & {
|
|
291
|
+
organization: {
|
|
292
|
+
list: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
293
|
+
query?: Record<string, any> | undefined;
|
|
612
294
|
fetchOptions?: FetchOptions | undefined;
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
|
|
295
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
296
|
+
id: string;
|
|
297
|
+
name: string;
|
|
298
|
+
slug: string;
|
|
299
|
+
createdAt: Date;
|
|
300
|
+
logo?: string | null | undefined | undefined;
|
|
301
|
+
metadata?: any;
|
|
302
|
+
}[], {
|
|
616
303
|
code?: string | undefined;
|
|
617
304
|
message?: string | undefined;
|
|
618
305
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
619
306
|
};
|
|
620
307
|
} & {
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
308
|
+
organization: {
|
|
309
|
+
inviteMember: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
310
|
+
email: string;
|
|
311
|
+
role: "admin" | "member" | "owner" | ("admin" | "member" | "owner")[];
|
|
312
|
+
organizationId?: string | undefined;
|
|
313
|
+
resend?: boolean | undefined;
|
|
314
|
+
} & {
|
|
315
|
+
teamId?: (string | string[]) | undefined;
|
|
624
316
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
625
|
-
|
|
317
|
+
email: string;
|
|
318
|
+
role: "admin" | "member" | "owner" | ("admin" | "member" | "owner")[];
|
|
319
|
+
organizationId?: string | undefined;
|
|
320
|
+
resend?: boolean | undefined;
|
|
321
|
+
} & {
|
|
322
|
+
teamId?: (string | string[]) | undefined;
|
|
626
323
|
} & {
|
|
627
324
|
fetchOptions?: FetchOptions | undefined;
|
|
628
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
629
|
-
|
|
630
|
-
|
|
325
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<NonNullable<{
|
|
326
|
+
id: string;
|
|
327
|
+
organizationId: string;
|
|
328
|
+
email: string;
|
|
329
|
+
role: "admin" | "member" | "owner";
|
|
330
|
+
status: import("better-auth/plugins").InvitationStatus;
|
|
331
|
+
inviterId: string;
|
|
332
|
+
expiresAt: Date;
|
|
333
|
+
createdAt: Date;
|
|
334
|
+
teamId?: string | undefined | undefined;
|
|
335
|
+
} | {
|
|
336
|
+
id: string;
|
|
337
|
+
organizationId: string;
|
|
338
|
+
email: string;
|
|
339
|
+
role: "admin" | "member" | "owner";
|
|
340
|
+
status: import("better-auth/plugins").InvitationStatus;
|
|
341
|
+
inviterId: string;
|
|
342
|
+
expiresAt: Date;
|
|
343
|
+
createdAt: Date;
|
|
344
|
+
teamId?: string | undefined | undefined;
|
|
345
|
+
}>, {
|
|
631
346
|
code?: string | undefined;
|
|
632
347
|
message?: string | undefined;
|
|
633
348
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
634
349
|
};
|
|
635
350
|
} & {
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
userId: unknown;
|
|
351
|
+
organization: {
|
|
352
|
+
cancelInvitation: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
353
|
+
invitationId: string;
|
|
640
354
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
641
|
-
|
|
642
|
-
userId: unknown;
|
|
355
|
+
invitationId: string;
|
|
643
356
|
} & {
|
|
644
357
|
fetchOptions?: FetchOptions | undefined;
|
|
645
358
|
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
646
|
-
|
|
359
|
+
id: string;
|
|
360
|
+
organizationId: string;
|
|
361
|
+
email: string;
|
|
362
|
+
role: "admin" | "member" | "owner";
|
|
363
|
+
status: import("better-auth/plugins").InvitationStatus;
|
|
364
|
+
inviterId: string;
|
|
365
|
+
expiresAt: Date;
|
|
366
|
+
createdAt: Date;
|
|
367
|
+
teamId?: string | undefined | undefined;
|
|
647
368
|
}, {
|
|
648
369
|
code?: string | undefined;
|
|
649
370
|
message?: string | undefined;
|
|
@@ -651,19 +372,31 @@ export declare const authClient: {
|
|
|
651
372
|
};
|
|
652
373
|
} & {
|
|
653
374
|
organization: {
|
|
654
|
-
|
|
655
|
-
|
|
375
|
+
acceptInvitation: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
376
|
+
invitationId: string;
|
|
656
377
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
657
|
-
|
|
378
|
+
invitationId: string;
|
|
658
379
|
} & {
|
|
659
380
|
fetchOptions?: FetchOptions | undefined;
|
|
660
381
|
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
382
|
+
invitation: {
|
|
383
|
+
id: string;
|
|
384
|
+
organizationId: string;
|
|
385
|
+
email: string;
|
|
386
|
+
role: "admin" | "member" | "owner";
|
|
387
|
+
status: import("better-auth/plugins").InvitationStatus;
|
|
388
|
+
inviterId: string;
|
|
389
|
+
expiresAt: Date;
|
|
390
|
+
createdAt: Date;
|
|
391
|
+
teamId?: string | undefined | undefined;
|
|
392
|
+
};
|
|
393
|
+
member: {
|
|
394
|
+
id: string;
|
|
395
|
+
organizationId: string;
|
|
396
|
+
userId: string;
|
|
397
|
+
role: string;
|
|
398
|
+
createdAt: Date;
|
|
399
|
+
};
|
|
667
400
|
}, {
|
|
668
401
|
code?: string | undefined;
|
|
669
402
|
message?: string | undefined;
|
|
@@ -671,17 +404,28 @@ export declare const authClient: {
|
|
|
671
404
|
};
|
|
672
405
|
} & {
|
|
673
406
|
organization: {
|
|
674
|
-
|
|
675
|
-
|
|
407
|
+
getInvitation: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
|
|
408
|
+
id: string;
|
|
409
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
410
|
+
query: {
|
|
411
|
+
id: string;
|
|
412
|
+
};
|
|
676
413
|
fetchOptions?: FetchOptions | undefined;
|
|
677
|
-
}
|
|
414
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<NonNullable<{
|
|
678
415
|
id: string;
|
|
679
|
-
|
|
680
|
-
|
|
416
|
+
organizationId: string;
|
|
417
|
+
email: string;
|
|
418
|
+
role: "admin" | "member" | "owner";
|
|
419
|
+
status: import("better-auth/plugins").InvitationStatus;
|
|
420
|
+
inviterId: string;
|
|
421
|
+
expiresAt: Date;
|
|
681
422
|
createdAt: Date;
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
423
|
+
teamId?: string | undefined | undefined;
|
|
424
|
+
} & {
|
|
425
|
+
organizationName: string;
|
|
426
|
+
organizationSlug: string;
|
|
427
|
+
inviterEmail: string;
|
|
428
|
+
}>, {
|
|
685
429
|
code?: string | undefined;
|
|
686
430
|
message?: string | undefined;
|
|
687
431
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
@@ -713,22 +457,7 @@ export declare const authClient: {
|
|
|
713
457
|
};
|
|
714
458
|
} & {
|
|
715
459
|
organization: {
|
|
716
|
-
|
|
717
|
-
slug: string;
|
|
718
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
719
|
-
slug: string;
|
|
720
|
-
} & {
|
|
721
|
-
fetchOptions?: FetchOptions | undefined;
|
|
722
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
723
|
-
status: boolean;
|
|
724
|
-
}, {
|
|
725
|
-
code?: string | undefined;
|
|
726
|
-
message?: string | undefined;
|
|
727
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
728
|
-
};
|
|
729
|
-
} & {
|
|
730
|
-
organization: {
|
|
731
|
-
listTeams: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
|
|
460
|
+
listInvitations: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
|
|
732
461
|
organizationId?: string | undefined;
|
|
733
462
|
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
734
463
|
query?: {
|
|
@@ -737,10 +466,14 @@ export declare const authClient: {
|
|
|
737
466
|
fetchOptions?: FetchOptions | undefined;
|
|
738
467
|
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
739
468
|
id: string;
|
|
740
|
-
name: string;
|
|
741
469
|
organizationId: string;
|
|
470
|
+
email: string;
|
|
471
|
+
role: "admin" | "member" | "owner";
|
|
472
|
+
status: import("better-auth/plugins").InvitationStatus;
|
|
473
|
+
inviterId: string;
|
|
474
|
+
expiresAt: Date;
|
|
742
475
|
createdAt: Date;
|
|
743
|
-
|
|
476
|
+
teamId?: string | undefined | undefined;
|
|
744
477
|
}[], {
|
|
745
478
|
code?: string | undefined;
|
|
746
479
|
message?: string | undefined;
|
|
@@ -748,16 +481,31 @@ export declare const authClient: {
|
|
|
748
481
|
};
|
|
749
482
|
} & {
|
|
750
483
|
organization: {
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
organizationId?: string | undefined;
|
|
754
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
755
|
-
teamId: string;
|
|
756
|
-
organizationId?: string | undefined;
|
|
757
|
-
} & {
|
|
484
|
+
getActiveMember: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
485
|
+
query?: Record<string, any> | undefined;
|
|
758
486
|
fetchOptions?: FetchOptions | undefined;
|
|
759
|
-
}
|
|
760
|
-
|
|
487
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<Omit<{
|
|
488
|
+
id: string;
|
|
489
|
+
organizationId: string;
|
|
490
|
+
role: "admin" | "member" | "owner";
|
|
491
|
+
createdAt: Date;
|
|
492
|
+
userId: string;
|
|
493
|
+
teamId?: string | undefined | undefined;
|
|
494
|
+
user: {
|
|
495
|
+
id: string;
|
|
496
|
+
email: string;
|
|
497
|
+
name: string;
|
|
498
|
+
image?: string | undefined;
|
|
499
|
+
};
|
|
500
|
+
} & {
|
|
501
|
+
user: import("better-auth").User;
|
|
502
|
+
}, "user"> & {
|
|
503
|
+
user: {
|
|
504
|
+
id: string;
|
|
505
|
+
name: string;
|
|
506
|
+
email: string;
|
|
507
|
+
image: string | undefined;
|
|
508
|
+
};
|
|
761
509
|
}, {
|
|
762
510
|
code?: string | undefined;
|
|
763
511
|
message?: string | undefined;
|
|
@@ -765,18 +513,14 @@ export declare const authClient: {
|
|
|
765
513
|
};
|
|
766
514
|
} & {
|
|
767
515
|
organization: {
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0
|
|
771
|
-
|
|
516
|
+
checkSlug: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
517
|
+
slug: string;
|
|
518
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
519
|
+
slug: string;
|
|
772
520
|
} & {
|
|
773
521
|
fetchOptions?: FetchOptions | undefined;
|
|
774
|
-
}
|
|
775
|
-
|
|
776
|
-
name: string;
|
|
777
|
-
organizationId: string;
|
|
778
|
-
createdAt: Date;
|
|
779
|
-
updatedAt?: Date | undefined;
|
|
522
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
523
|
+
status: boolean;
|
|
780
524
|
}, {
|
|
781
525
|
code?: string | undefined;
|
|
782
526
|
message?: string | undefined;
|
|
@@ -784,330 +528,311 @@ export declare const authClient: {
|
|
|
784
528
|
};
|
|
785
529
|
} & {
|
|
786
530
|
organization: {
|
|
787
|
-
|
|
788
|
-
|
|
531
|
+
removeMember: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
532
|
+
memberIdOrEmail: string;
|
|
533
|
+
organizationId?: string | undefined;
|
|
534
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
535
|
+
memberIdOrEmail: string;
|
|
536
|
+
organizationId?: string | undefined;
|
|
537
|
+
} & {
|
|
789
538
|
fetchOptions?: FetchOptions | undefined;
|
|
790
|
-
}
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
539
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
540
|
+
member: {
|
|
541
|
+
id: string;
|
|
542
|
+
organizationId: string;
|
|
543
|
+
role: "admin" | "member" | "owner";
|
|
544
|
+
createdAt: Date;
|
|
545
|
+
userId: string;
|
|
546
|
+
teamId?: string | undefined | undefined;
|
|
547
|
+
user: {
|
|
548
|
+
id: string;
|
|
549
|
+
email: string;
|
|
550
|
+
name: string;
|
|
551
|
+
image?: string | undefined;
|
|
552
|
+
};
|
|
553
|
+
};
|
|
554
|
+
}, {
|
|
797
555
|
code?: string | undefined;
|
|
798
556
|
message?: string | undefined;
|
|
799
557
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
800
558
|
};
|
|
801
559
|
} & {
|
|
802
560
|
organization: {
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
561
|
+
updateMemberRole: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
562
|
+
role: import("better-auth").LiteralString | "admin" | "member" | "owner" | import("better-auth").LiteralString[] | ("admin" | "member" | "owner")[];
|
|
563
|
+
memberId: string;
|
|
564
|
+
organizationId?: string | undefined;
|
|
565
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
566
|
+
role: import("better-auth").LiteralString | "admin" | "member" | "owner" | import("better-auth").LiteralString[] | ("admin" | "member" | "owner")[];
|
|
567
|
+
memberId: string;
|
|
568
|
+
organizationId?: string | undefined;
|
|
569
|
+
} & {
|
|
809
570
|
fetchOptions?: FetchOptions | undefined;
|
|
810
|
-
}
|
|
571
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
811
572
|
id: string;
|
|
812
|
-
|
|
813
|
-
|
|
573
|
+
organizationId: string;
|
|
574
|
+
role: "member" | "admin" | "owner";
|
|
814
575
|
createdAt: Date;
|
|
815
|
-
|
|
576
|
+
userId: string;
|
|
577
|
+
user: {
|
|
578
|
+
id: string;
|
|
579
|
+
email: string;
|
|
580
|
+
name: string;
|
|
581
|
+
image?: string | undefined;
|
|
582
|
+
};
|
|
583
|
+
}, {
|
|
816
584
|
code?: string | undefined;
|
|
817
585
|
message?: string | undefined;
|
|
818
586
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
819
587
|
};
|
|
820
588
|
} & {
|
|
821
589
|
organization: {
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
userId: unknown;
|
|
590
|
+
leave: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
591
|
+
organizationId: string;
|
|
825
592
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
826
|
-
|
|
827
|
-
userId: unknown;
|
|
593
|
+
organizationId: string;
|
|
828
594
|
} & {
|
|
829
595
|
fetchOptions?: FetchOptions | undefined;
|
|
830
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
596
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<NonNullable<Omit<{
|
|
831
597
|
id: string;
|
|
832
|
-
|
|
833
|
-
|
|
598
|
+
organizationId: string;
|
|
599
|
+
role: "admin" | "member" | "owner";
|
|
834
600
|
createdAt: Date;
|
|
835
|
-
|
|
601
|
+
userId: string;
|
|
602
|
+
teamId?: string | undefined | undefined;
|
|
603
|
+
user: {
|
|
604
|
+
id: string;
|
|
605
|
+
email: string;
|
|
606
|
+
name: string;
|
|
607
|
+
image?: string | undefined;
|
|
608
|
+
};
|
|
609
|
+
} & {
|
|
610
|
+
user: import("better-auth").User;
|
|
611
|
+
}, "user"> & {
|
|
612
|
+
user: {
|
|
613
|
+
id: string;
|
|
614
|
+
name: string;
|
|
615
|
+
email: string;
|
|
616
|
+
image: string | undefined;
|
|
617
|
+
};
|
|
618
|
+
}>, {
|
|
836
619
|
code?: string | undefined;
|
|
837
620
|
message?: string | undefined;
|
|
838
621
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
839
622
|
};
|
|
840
623
|
} & {
|
|
841
624
|
organization: {
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
} & {
|
|
625
|
+
listUserInvitations: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
|
|
626
|
+
email?: string | undefined;
|
|
627
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
628
|
+
query?: {
|
|
629
|
+
email?: string | undefined;
|
|
630
|
+
} | undefined;
|
|
849
631
|
fetchOptions?: FetchOptions | undefined;
|
|
850
|
-
}
|
|
851
|
-
|
|
852
|
-
|
|
632
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<(Omit<{
|
|
633
|
+
id: string;
|
|
634
|
+
organizationId: string;
|
|
635
|
+
email: string;
|
|
636
|
+
role: "admin" | "member" | "owner";
|
|
637
|
+
status: import("better-auth/plugins").InvitationStatus;
|
|
638
|
+
inviterId: string;
|
|
639
|
+
expiresAt: Date;
|
|
640
|
+
createdAt: Date;
|
|
641
|
+
teamId?: string | undefined | undefined;
|
|
642
|
+
} & {
|
|
643
|
+
organization: {
|
|
644
|
+
id: string;
|
|
645
|
+
name: string;
|
|
646
|
+
slug: string;
|
|
647
|
+
createdAt: Date;
|
|
648
|
+
logo?: string | null | undefined | undefined;
|
|
649
|
+
metadata?: any;
|
|
650
|
+
};
|
|
651
|
+
}, "organization"> & {
|
|
652
|
+
organizationName: string;
|
|
653
|
+
})[], {
|
|
853
654
|
code?: string | undefined;
|
|
854
655
|
message?: string | undefined;
|
|
855
656
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
856
657
|
};
|
|
857
658
|
} & {
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
errorCallbackURL?: string | undefined;
|
|
881
|
-
disableRedirect?: boolean | undefined;
|
|
882
|
-
idToken?: {
|
|
883
|
-
token: string;
|
|
884
|
-
nonce?: string | undefined;
|
|
885
|
-
accessToken?: string | undefined;
|
|
886
|
-
refreshToken?: string | undefined;
|
|
887
|
-
expiresAt?: number | undefined;
|
|
659
|
+
organization: {
|
|
660
|
+
listMembers: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
|
|
661
|
+
limit?: string | number | undefined;
|
|
662
|
+
offset?: string | number | undefined;
|
|
663
|
+
sortBy?: string | undefined;
|
|
664
|
+
sortDirection?: "asc" | "desc" | undefined;
|
|
665
|
+
filterField?: string | undefined;
|
|
666
|
+
filterValue?: string | number | boolean | undefined;
|
|
667
|
+
filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | undefined;
|
|
668
|
+
organizationId?: string | undefined;
|
|
669
|
+
organizationSlug?: string | undefined;
|
|
670
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
671
|
+
query?: {
|
|
672
|
+
limit?: string | number | undefined;
|
|
673
|
+
offset?: string | number | undefined;
|
|
674
|
+
sortBy?: string | undefined;
|
|
675
|
+
sortDirection?: "asc" | "desc" | undefined;
|
|
676
|
+
filterField?: string | undefined;
|
|
677
|
+
filterValue?: string | number | boolean | undefined;
|
|
678
|
+
filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | undefined;
|
|
679
|
+
organizationId?: string | undefined;
|
|
680
|
+
organizationSlug?: string | undefined;
|
|
888
681
|
} | undefined;
|
|
889
|
-
scopes?: string[] | undefined;
|
|
890
|
-
requestSignUp?: boolean | undefined;
|
|
891
|
-
loginHint?: string | undefined;
|
|
892
|
-
additionalData?: Record<string, any> | undefined;
|
|
893
|
-
} & {
|
|
894
682
|
fetchOptions?: FetchOptions | undefined;
|
|
895
|
-
}
|
|
896
|
-
|
|
897
|
-
url: string;
|
|
898
|
-
} | {
|
|
899
|
-
redirect: boolean;
|
|
900
|
-
token: string;
|
|
901
|
-
url: undefined;
|
|
902
|
-
user: {
|
|
683
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
684
|
+
members: ({
|
|
903
685
|
id: string;
|
|
686
|
+
organizationId: string;
|
|
687
|
+
role: "admin" | "member" | "owner";
|
|
904
688
|
createdAt: Date;
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
689
|
+
userId: string;
|
|
690
|
+
teamId?: string | undefined | undefined;
|
|
691
|
+
user: {
|
|
692
|
+
id: string;
|
|
693
|
+
email: string;
|
|
694
|
+
name: string;
|
|
695
|
+
image?: string | undefined;
|
|
696
|
+
};
|
|
697
|
+
} & {
|
|
698
|
+
user: {
|
|
699
|
+
id: string;
|
|
700
|
+
name: string;
|
|
701
|
+
email: string;
|
|
702
|
+
image: string | null | undefined;
|
|
703
|
+
};
|
|
704
|
+
})[];
|
|
705
|
+
total: number;
|
|
706
|
+
}, {
|
|
912
707
|
code?: string | undefined;
|
|
913
708
|
message?: string | undefined;
|
|
914
709
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
915
710
|
};
|
|
916
711
|
} & {
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
password: string;
|
|
929
|
-
image?: string | undefined;
|
|
930
|
-
callbackURL?: string | undefined;
|
|
712
|
+
organization: {
|
|
713
|
+
getActiveMemberRole: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
|
|
714
|
+
userId?: string | undefined;
|
|
715
|
+
organizationId?: string | undefined;
|
|
716
|
+
organizationSlug?: string | undefined;
|
|
717
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
718
|
+
query?: {
|
|
719
|
+
userId?: string | undefined;
|
|
720
|
+
organizationId?: string | undefined;
|
|
721
|
+
organizationSlug?: string | undefined;
|
|
722
|
+
} | undefined;
|
|
931
723
|
fetchOptions?: FetchOptions | undefined;
|
|
932
|
-
}
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
}
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
724
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
725
|
+
role: "admin" | "member" | "owner";
|
|
726
|
+
}, {
|
|
727
|
+
code?: string | undefined;
|
|
728
|
+
message?: string | undefined;
|
|
729
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
730
|
+
};
|
|
731
|
+
} & {
|
|
732
|
+
organization: {
|
|
733
|
+
hasPermission: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<({
|
|
734
|
+
permission: {
|
|
735
|
+
readonly organization?: ("delete" | "update")[] | undefined;
|
|
736
|
+
readonly member?: ("create" | "delete" | "update")[] | undefined;
|
|
737
|
+
readonly invitation?: ("create" | "cancel")[] | undefined;
|
|
738
|
+
readonly team?: ("create" | "delete" | "update")[] | undefined;
|
|
739
|
+
readonly ac?: ("create" | "delete" | "update" | "read")[] | undefined;
|
|
947
740
|
};
|
|
741
|
+
permissions?: never | undefined;
|
|
948
742
|
} | {
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
emailVerified: boolean;
|
|
956
|
-
name: string;
|
|
957
|
-
image?: string | null | undefined | undefined;
|
|
743
|
+
permissions: {
|
|
744
|
+
readonly organization?: ("delete" | "update")[] | undefined;
|
|
745
|
+
readonly member?: ("create" | "delete" | "update")[] | undefined;
|
|
746
|
+
readonly invitation?: ("create" | "cancel")[] | undefined;
|
|
747
|
+
readonly team?: ("create" | "delete" | "update")[] | undefined;
|
|
748
|
+
readonly ac?: ("create" | "delete" | "update" | "read")[] | undefined;
|
|
958
749
|
};
|
|
959
|
-
|
|
750
|
+
permission?: never | undefined;
|
|
751
|
+
}) & {
|
|
752
|
+
organizationId?: string | undefined;
|
|
753
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<(({
|
|
754
|
+
permission: {
|
|
755
|
+
readonly organization?: ("delete" | "update")[] | undefined;
|
|
756
|
+
readonly member?: ("create" | "delete" | "update")[] | undefined;
|
|
757
|
+
readonly invitation?: ("create" | "cancel")[] | undefined;
|
|
758
|
+
readonly team?: ("create" | "delete" | "update")[] | undefined;
|
|
759
|
+
readonly ac?: ("create" | "delete" | "update" | "read")[] | undefined;
|
|
760
|
+
};
|
|
761
|
+
permissions?: never | undefined;
|
|
762
|
+
} | {
|
|
763
|
+
permissions: {
|
|
764
|
+
readonly organization?: ("delete" | "update")[] | undefined;
|
|
765
|
+
readonly member?: ("create" | "delete" | "update")[] | undefined;
|
|
766
|
+
readonly invitation?: ("create" | "cancel")[] | undefined;
|
|
767
|
+
readonly team?: ("create" | "delete" | "update")[] | undefined;
|
|
768
|
+
readonly ac?: ("create" | "delete" | "update" | "read")[] | undefined;
|
|
769
|
+
};
|
|
770
|
+
permission?: never | undefined;
|
|
771
|
+
}) & {
|
|
772
|
+
organizationId?: string | undefined;
|
|
773
|
+
}) & {
|
|
774
|
+
fetchOptions?: FetchOptions | undefined;
|
|
775
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
776
|
+
error: null;
|
|
777
|
+
success: boolean;
|
|
778
|
+
}, {
|
|
960
779
|
code?: string | undefined;
|
|
961
780
|
message?: string | undefined;
|
|
962
781
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
963
782
|
};
|
|
964
783
|
} & {
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
callbackURL?: string | undefined;
|
|
970
|
-
rememberMe?: boolean | undefined;
|
|
784
|
+
organization: {
|
|
785
|
+
createTeam: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
786
|
+
name: string;
|
|
787
|
+
organizationId?: string | undefined;
|
|
971
788
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
callbackURL?: string | undefined;
|
|
975
|
-
rememberMe?: boolean | undefined;
|
|
789
|
+
name: string;
|
|
790
|
+
organizationId?: string | undefined;
|
|
976
791
|
} & {
|
|
977
792
|
fetchOptions?: FetchOptions | undefined;
|
|
978
793
|
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
createdAt: Date;
|
|
985
|
-
updatedAt: Date;
|
|
986
|
-
email: string;
|
|
987
|
-
emailVerified: boolean;
|
|
988
|
-
name: string;
|
|
989
|
-
image?: string | null | undefined | undefined;
|
|
990
|
-
};
|
|
794
|
+
id: string;
|
|
795
|
+
name: string;
|
|
796
|
+
organizationId: string;
|
|
797
|
+
createdAt: Date;
|
|
798
|
+
updatedAt?: Date | undefined;
|
|
991
799
|
}, {
|
|
992
800
|
code?: string | undefined;
|
|
993
801
|
message?: string | undefined;
|
|
994
802
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
995
803
|
};
|
|
996
804
|
} & {
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
preferences?: string | null | undefined;
|
|
1007
|
-
onboarding?: number | null | undefined;
|
|
1008
|
-
flags?: string | null | undefined;
|
|
1009
|
-
}>> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1010
|
-
status: boolean;
|
|
1011
|
-
}, {
|
|
1012
|
-
code?: string | undefined;
|
|
1013
|
-
message?: string | undefined;
|
|
1014
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1015
|
-
} & {
|
|
1016
|
-
listSessions: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
1017
|
-
query?: Record<string, any> | undefined;
|
|
1018
|
-
fetchOptions?: FetchOptions | undefined;
|
|
1019
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<import("better-auth").Prettify<{
|
|
1020
|
-
id: string;
|
|
1021
|
-
createdAt: Date;
|
|
1022
|
-
updatedAt: Date;
|
|
1023
|
-
userId: string;
|
|
1024
|
-
expiresAt: Date;
|
|
1025
|
-
token: string;
|
|
1026
|
-
ipAddress?: string | null | undefined | undefined;
|
|
1027
|
-
userAgent?: string | null | undefined | undefined;
|
|
1028
|
-
}>[], {
|
|
1029
|
-
code?: string | undefined;
|
|
1030
|
-
message?: string | undefined;
|
|
1031
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1032
|
-
} & {
|
|
1033
|
-
getSession: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
|
|
1034
|
-
disableCookieCache?: unknown;
|
|
1035
|
-
disableRefresh?: unknown;
|
|
1036
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
1037
|
-
query?: {
|
|
1038
|
-
disableCookieCache?: unknown;
|
|
1039
|
-
disableRefresh?: unknown;
|
|
1040
|
-
} | undefined;
|
|
1041
|
-
fetchOptions?: FetchOptions | undefined;
|
|
1042
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1043
|
-
user: {
|
|
805
|
+
organization: {
|
|
806
|
+
listTeams: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
|
|
807
|
+
organizationId?: string | undefined;
|
|
808
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
809
|
+
query?: {
|
|
810
|
+
organizationId?: string | undefined;
|
|
811
|
+
} | undefined;
|
|
812
|
+
fetchOptions?: FetchOptions | undefined;
|
|
813
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1044
814
|
id: string;
|
|
1045
|
-
createdAt: Date;
|
|
1046
|
-
updatedAt: Date;
|
|
1047
|
-
email: string;
|
|
1048
|
-
emailVerified: boolean;
|
|
1049
815
|
name: string;
|
|
1050
|
-
|
|
1051
|
-
banned: boolean | null | undefined;
|
|
1052
|
-
role?: string | null | undefined;
|
|
1053
|
-
banReason?: string | null | undefined;
|
|
1054
|
-
banExpires?: Date | null | undefined;
|
|
1055
|
-
stripeCustomerId?: string | null | undefined;
|
|
1056
|
-
preferences?: string | null | undefined;
|
|
1057
|
-
onboarding?: number | null | undefined;
|
|
1058
|
-
flags?: string | null | undefined;
|
|
1059
|
-
};
|
|
1060
|
-
session: {
|
|
1061
|
-
id: string;
|
|
816
|
+
organizationId: string;
|
|
1062
817
|
createdAt: Date;
|
|
1063
|
-
updatedAt
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
activeOrganizationId?: string | null | undefined;
|
|
1070
|
-
activeTeamId?: string | null | undefined;
|
|
1071
|
-
impersonatedBy?: string | null | undefined;
|
|
1072
|
-
};
|
|
1073
|
-
} | null, {
|
|
1074
|
-
code?: string | undefined;
|
|
1075
|
-
message?: string | undefined;
|
|
1076
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
818
|
+
updatedAt?: Date | undefined;
|
|
819
|
+
}[], {
|
|
820
|
+
code?: string | undefined;
|
|
821
|
+
message?: string | undefined;
|
|
822
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
823
|
+
};
|
|
1077
824
|
} & {
|
|
1078
825
|
organization: {
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
userId?: string | undefined;
|
|
1083
|
-
logo?: string | undefined;
|
|
1084
|
-
metadata?: Record<string, any> | undefined;
|
|
1085
|
-
keepCurrentActiveOrganization?: boolean | undefined;
|
|
826
|
+
removeTeam: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
827
|
+
teamId: string;
|
|
828
|
+
organizationId?: string | undefined;
|
|
1086
829
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
userId?: string | undefined;
|
|
1090
|
-
logo?: string | undefined;
|
|
1091
|
-
metadata?: Record<string, any> | undefined;
|
|
1092
|
-
keepCurrentActiveOrganization?: boolean | undefined;
|
|
830
|
+
teamId: string;
|
|
831
|
+
organizationId?: string | undefined;
|
|
1093
832
|
} & {
|
|
1094
833
|
fetchOptions?: FetchOptions | undefined;
|
|
1095
834
|
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1096
|
-
|
|
1097
|
-
name: string;
|
|
1098
|
-
slug: string;
|
|
1099
|
-
createdAt: Date;
|
|
1100
|
-
logo?: string | null | undefined | undefined;
|
|
1101
|
-
metadata?: any;
|
|
1102
|
-
} & {
|
|
1103
|
-
metadata: any;
|
|
1104
|
-
members: ({
|
|
1105
|
-
id: string;
|
|
1106
|
-
organizationId: string;
|
|
1107
|
-
userId: string;
|
|
1108
|
-
role: string;
|
|
1109
|
-
createdAt: Date;
|
|
1110
|
-
} | undefined)[];
|
|
835
|
+
message: string;
|
|
1111
836
|
}, {
|
|
1112
837
|
code?: string | undefined;
|
|
1113
838
|
message?: string | undefined;
|
|
@@ -1115,31 +840,26 @@ export declare const authClient: {
|
|
|
1115
840
|
};
|
|
1116
841
|
} & {
|
|
1117
842
|
organization: {
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
} & Partial<{}>;
|
|
1125
|
-
organizationId?: string | undefined;
|
|
843
|
+
updateTeam: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
844
|
+
teamId: string;
|
|
845
|
+
data: Partial<{
|
|
846
|
+
name: string;
|
|
847
|
+
organizationId: string;
|
|
848
|
+
}>;
|
|
1126
849
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
} & Partial<{}>;
|
|
1133
|
-
organizationId?: string | undefined;
|
|
850
|
+
teamId: string;
|
|
851
|
+
data: Partial<{
|
|
852
|
+
name: string;
|
|
853
|
+
organizationId: string;
|
|
854
|
+
}>;
|
|
1134
855
|
} & {
|
|
1135
856
|
fetchOptions?: FetchOptions | undefined;
|
|
1136
857
|
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1137
858
|
id: string;
|
|
1138
859
|
name: string;
|
|
1139
|
-
|
|
860
|
+
organizationId: string;
|
|
1140
861
|
createdAt: Date;
|
|
1141
|
-
|
|
1142
|
-
metadata?: any;
|
|
862
|
+
updatedAt?: Date | undefined;
|
|
1143
863
|
}, {
|
|
1144
864
|
code?: string | undefined;
|
|
1145
865
|
message?: string | undefined;
|
|
@@ -1147,54 +867,18 @@ export declare const authClient: {
|
|
|
1147
867
|
};
|
|
1148
868
|
} & {
|
|
1149
869
|
organization: {
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
organizationSlug?: string | undefined;
|
|
870
|
+
setActiveTeam: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
871
|
+
teamId?: string | null | undefined;
|
|
1153
872
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
1154
|
-
|
|
1155
|
-
organizationSlug?: string | undefined;
|
|
873
|
+
teamId?: string | null | undefined;
|
|
1156
874
|
} & {
|
|
1157
875
|
fetchOptions?: FetchOptions | undefined;
|
|
1158
876
|
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1159
|
-
members: {
|
|
1160
|
-
id: string;
|
|
1161
|
-
organizationId: string;
|
|
1162
|
-
role: "member" | "owner" | "admin";
|
|
1163
|
-
createdAt: Date;
|
|
1164
|
-
userId: string;
|
|
1165
|
-
teamId?: string | undefined | undefined;
|
|
1166
|
-
user: {
|
|
1167
|
-
id: string;
|
|
1168
|
-
email: string;
|
|
1169
|
-
name: string;
|
|
1170
|
-
image?: string | undefined;
|
|
1171
|
-
};
|
|
1172
|
-
}[];
|
|
1173
|
-
invitations: {
|
|
1174
|
-
id: string;
|
|
1175
|
-
organizationId: string;
|
|
1176
|
-
email: string;
|
|
1177
|
-
role: "member" | "owner" | "admin";
|
|
1178
|
-
status: import("better-auth/plugins").InvitationStatus;
|
|
1179
|
-
inviterId: string;
|
|
1180
|
-
expiresAt: Date;
|
|
1181
|
-
createdAt: Date;
|
|
1182
|
-
teamId?: string | undefined | undefined;
|
|
1183
|
-
}[];
|
|
1184
|
-
teams: {
|
|
1185
|
-
id: string;
|
|
1186
|
-
name: string;
|
|
1187
|
-
organizationId: string;
|
|
1188
|
-
createdAt: Date;
|
|
1189
|
-
updatedAt?: Date | undefined;
|
|
1190
|
-
}[];
|
|
1191
|
-
} & {
|
|
1192
877
|
id: string;
|
|
1193
878
|
name: string;
|
|
1194
|
-
|
|
879
|
+
organizationId: string;
|
|
1195
880
|
createdAt: Date;
|
|
1196
|
-
|
|
1197
|
-
metadata?: any;
|
|
881
|
+
updatedAt?: Date | undefined;
|
|
1198
882
|
}, {
|
|
1199
883
|
code?: string | undefined;
|
|
1200
884
|
message?: string | undefined;
|
|
@@ -1202,57 +886,54 @@ export declare const authClient: {
|
|
|
1202
886
|
};
|
|
1203
887
|
} & {
|
|
1204
888
|
organization: {
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
889
|
+
listUserTeams: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
890
|
+
query?: Record<string, any> | undefined;
|
|
891
|
+
fetchOptions?: FetchOptions | undefined;
|
|
892
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
893
|
+
id: string;
|
|
894
|
+
name: string;
|
|
895
|
+
organizationId: string;
|
|
896
|
+
createdAt: Date;
|
|
897
|
+
updatedAt?: Date | undefined;
|
|
898
|
+
}[], {
|
|
899
|
+
code?: string | undefined;
|
|
900
|
+
message?: string | undefined;
|
|
901
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
902
|
+
};
|
|
903
|
+
} & {
|
|
904
|
+
organization: {
|
|
905
|
+
listTeamMembers: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
|
|
906
|
+
teamId?: string | undefined;
|
|
1209
907
|
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
1210
908
|
query?: {
|
|
1211
|
-
|
|
1212
|
-
organizationSlug?: string | undefined;
|
|
1213
|
-
membersLimit?: string | number | undefined;
|
|
909
|
+
teamId?: string | undefined;
|
|
1214
910
|
} | undefined;
|
|
1215
911
|
fetchOptions?: FetchOptions | undefined;
|
|
1216
912
|
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
email: string;
|
|
1235
|
-
role: "member" | "owner" | "admin";
|
|
1236
|
-
status: import("better-auth/plugins").InvitationStatus;
|
|
1237
|
-
inviterId: string;
|
|
1238
|
-
expiresAt: Date;
|
|
1239
|
-
createdAt: Date;
|
|
1240
|
-
teamId?: string | undefined | undefined;
|
|
1241
|
-
}[];
|
|
1242
|
-
teams: {
|
|
1243
|
-
id: string;
|
|
1244
|
-
name: string;
|
|
1245
|
-
organizationId: string;
|
|
1246
|
-
createdAt: Date;
|
|
1247
|
-
updatedAt?: Date | undefined;
|
|
1248
|
-
}[];
|
|
913
|
+
id: string;
|
|
914
|
+
teamId: string;
|
|
915
|
+
userId: string;
|
|
916
|
+
createdAt: Date;
|
|
917
|
+
}[], {
|
|
918
|
+
code?: string | undefined;
|
|
919
|
+
message?: string | undefined;
|
|
920
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
921
|
+
};
|
|
922
|
+
} & {
|
|
923
|
+
organization: {
|
|
924
|
+
addTeamMember: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
925
|
+
teamId: string;
|
|
926
|
+
userId: unknown;
|
|
927
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
928
|
+
teamId: string;
|
|
929
|
+
userId: unknown;
|
|
1249
930
|
} & {
|
|
931
|
+
fetchOptions?: FetchOptions | undefined;
|
|
932
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1250
933
|
id: string;
|
|
1251
|
-
|
|
1252
|
-
|
|
934
|
+
teamId: string;
|
|
935
|
+
userId: string;
|
|
1253
936
|
createdAt: Date;
|
|
1254
|
-
logo?: string | null | undefined | undefined;
|
|
1255
|
-
metadata?: any;
|
|
1256
937
|
}, {
|
|
1257
938
|
code?: string | undefined;
|
|
1258
939
|
message?: string | undefined;
|
|
@@ -1260,430 +941,328 @@ export declare const authClient: {
|
|
|
1260
941
|
};
|
|
1261
942
|
} & {
|
|
1262
943
|
organization: {
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
organizationId?: string | undefined;
|
|
1267
|
-
resend?: boolean | undefined;
|
|
1268
|
-
} & {
|
|
1269
|
-
teamId?: (string | string[]) | undefined;
|
|
944
|
+
removeTeamMember: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
945
|
+
teamId: string;
|
|
946
|
+
userId: unknown;
|
|
1270
947
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
organizationId?: string | undefined;
|
|
1274
|
-
resend?: boolean | undefined;
|
|
948
|
+
teamId: string;
|
|
949
|
+
userId: unknown;
|
|
1275
950
|
} & {
|
|
1276
|
-
|
|
951
|
+
fetchOptions?: FetchOptions | undefined;
|
|
952
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
953
|
+
message: string;
|
|
954
|
+
}, {
|
|
955
|
+
code?: string | undefined;
|
|
956
|
+
message?: string | undefined;
|
|
957
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
958
|
+
};
|
|
959
|
+
} & {
|
|
960
|
+
admin: {
|
|
961
|
+
setRole: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
962
|
+
userId: string;
|
|
963
|
+
role: "user" | "admin" | ("user" | "admin")[];
|
|
964
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
965
|
+
userId: string;
|
|
966
|
+
role: "user" | "admin" | ("user" | "admin")[];
|
|
1277
967
|
} & {
|
|
1278
968
|
fetchOptions?: FetchOptions | undefined;
|
|
1279
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
} | {
|
|
969
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
970
|
+
user: import("better-auth/plugins").UserWithRole;
|
|
971
|
+
}, {
|
|
972
|
+
code?: string | undefined;
|
|
973
|
+
message?: string | undefined;
|
|
974
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
975
|
+
};
|
|
976
|
+
} & {
|
|
977
|
+
admin: {
|
|
978
|
+
getUser: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
|
|
1290
979
|
id: string;
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
createdAt: Date;
|
|
1298
|
-
teamId?: string | undefined | undefined;
|
|
1299
|
-
}>, {
|
|
980
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
981
|
+
query: {
|
|
982
|
+
id: string;
|
|
983
|
+
};
|
|
984
|
+
fetchOptions?: FetchOptions | undefined;
|
|
985
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<import("better-auth/plugins").UserWithRole, {
|
|
1300
986
|
code?: string | undefined;
|
|
1301
987
|
message?: string | undefined;
|
|
1302
988
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1303
989
|
};
|
|
1304
990
|
} & {
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
991
|
+
admin: {
|
|
992
|
+
createUser: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
993
|
+
email: string;
|
|
994
|
+
password?: string | undefined;
|
|
995
|
+
name: string;
|
|
996
|
+
role?: "user" | "admin" | ("user" | "admin")[] | undefined;
|
|
997
|
+
data?: Record<string, any> | undefined;
|
|
1308
998
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1309
|
-
|
|
999
|
+
email: string;
|
|
1000
|
+
password?: string | undefined;
|
|
1001
|
+
name: string;
|
|
1002
|
+
role?: "user" | "admin" | ("user" | "admin")[] | undefined;
|
|
1003
|
+
data?: Record<string, any> | undefined;
|
|
1310
1004
|
} & {
|
|
1311
1005
|
fetchOptions?: FetchOptions | undefined;
|
|
1312
1006
|
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1313
|
-
|
|
1314
|
-
organizationId: string;
|
|
1315
|
-
email: string;
|
|
1316
|
-
role: "member" | "owner" | "admin";
|
|
1317
|
-
status: import("better-auth/plugins").InvitationStatus;
|
|
1318
|
-
inviterId: string;
|
|
1319
|
-
expiresAt: Date;
|
|
1320
|
-
createdAt: Date;
|
|
1321
|
-
teamId?: string | undefined | undefined;
|
|
1007
|
+
user: import("better-auth/plugins").UserWithRole;
|
|
1322
1008
|
}, {
|
|
1323
1009
|
code?: string | undefined;
|
|
1324
1010
|
message?: string | undefined;
|
|
1325
1011
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1326
1012
|
};
|
|
1327
1013
|
} & {
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1014
|
+
admin: {
|
|
1015
|
+
updateUser: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
1016
|
+
userId: unknown;
|
|
1017
|
+
data: Record<any, any>;
|
|
1331
1018
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1332
|
-
|
|
1019
|
+
userId: unknown;
|
|
1020
|
+
data: Record<any, any>;
|
|
1333
1021
|
} & {
|
|
1334
1022
|
fetchOptions?: FetchOptions | undefined;
|
|
1335
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1336
|
-
invitation: {
|
|
1337
|
-
id: string;
|
|
1338
|
-
organizationId: string;
|
|
1339
|
-
email: string;
|
|
1340
|
-
role: "member" | "owner" | "admin";
|
|
1341
|
-
status: import("better-auth/plugins").InvitationStatus;
|
|
1342
|
-
inviterId: string;
|
|
1343
|
-
expiresAt: Date;
|
|
1344
|
-
createdAt: Date;
|
|
1345
|
-
teamId?: string | undefined | undefined;
|
|
1346
|
-
};
|
|
1347
|
-
member: {
|
|
1348
|
-
id: string;
|
|
1349
|
-
organizationId: string;
|
|
1350
|
-
userId: string;
|
|
1351
|
-
role: string;
|
|
1352
|
-
createdAt: Date;
|
|
1353
|
-
};
|
|
1354
|
-
}, {
|
|
1023
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<import("better-auth/plugins").UserWithRole, {
|
|
1355
1024
|
code?: string | undefined;
|
|
1356
1025
|
message?: string | undefined;
|
|
1357
1026
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1358
1027
|
};
|
|
1359
1028
|
} & {
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1029
|
+
admin: {
|
|
1030
|
+
listUsers: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
|
|
1031
|
+
searchValue?: string | undefined;
|
|
1032
|
+
searchField?: "email" | "name" | undefined;
|
|
1033
|
+
searchOperator?: "contains" | "starts_with" | "ends_with" | undefined;
|
|
1034
|
+
limit?: string | number | undefined;
|
|
1035
|
+
offset?: string | number | undefined;
|
|
1036
|
+
sortBy?: string | undefined;
|
|
1037
|
+
sortDirection?: "asc" | "desc" | undefined;
|
|
1038
|
+
filterField?: string | undefined;
|
|
1039
|
+
filterValue?: string | number | boolean | undefined;
|
|
1040
|
+
filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | undefined;
|
|
1363
1041
|
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1364
1042
|
query: {
|
|
1365
|
-
|
|
1043
|
+
searchValue?: string | undefined;
|
|
1044
|
+
searchField?: "email" | "name" | undefined;
|
|
1045
|
+
searchOperator?: "contains" | "starts_with" | "ends_with" | undefined;
|
|
1046
|
+
limit?: string | number | undefined;
|
|
1047
|
+
offset?: string | number | undefined;
|
|
1048
|
+
sortBy?: string | undefined;
|
|
1049
|
+
sortDirection?: "asc" | "desc" | undefined;
|
|
1050
|
+
filterField?: string | undefined;
|
|
1051
|
+
filterValue?: string | number | boolean | undefined;
|
|
1052
|
+
filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | undefined;
|
|
1366
1053
|
};
|
|
1367
1054
|
fetchOptions?: FetchOptions | undefined;
|
|
1368
1055
|
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<NonNullable<{
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
createdAt: Date;
|
|
1377
|
-
teamId?: string | undefined | undefined;
|
|
1378
|
-
} & {
|
|
1379
|
-
organizationName: string;
|
|
1380
|
-
organizationSlug: string;
|
|
1381
|
-
inviterEmail: string;
|
|
1056
|
+
users: import("better-auth/plugins").UserWithRole[];
|
|
1057
|
+
total: number;
|
|
1058
|
+
limit: number | undefined;
|
|
1059
|
+
offset: number | undefined;
|
|
1060
|
+
} | {
|
|
1061
|
+
users: never[];
|
|
1062
|
+
total: number;
|
|
1382
1063
|
}>, {
|
|
1383
1064
|
code?: string | undefined;
|
|
1384
1065
|
message?: string | undefined;
|
|
1385
1066
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1386
1067
|
};
|
|
1387
1068
|
} & {
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
} | undefined;
|
|
1069
|
+
admin: {
|
|
1070
|
+
listUserSessions: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
1071
|
+
userId: unknown;
|
|
1072
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1073
|
+
userId: unknown;
|
|
1074
|
+
} & {
|
|
1395
1075
|
fetchOptions?: FetchOptions | undefined;
|
|
1396
|
-
}
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
email: string;
|
|
1400
|
-
role: "member" | "owner" | "admin";
|
|
1401
|
-
status: import("better-auth/plugins").InvitationStatus;
|
|
1402
|
-
inviterId: string;
|
|
1403
|
-
expiresAt: Date;
|
|
1404
|
-
createdAt: Date;
|
|
1405
|
-
teamId?: string | undefined | undefined;
|
|
1406
|
-
}[], {
|
|
1076
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1077
|
+
sessions: import("better-auth/plugins").SessionWithImpersonatedBy[];
|
|
1078
|
+
}, {
|
|
1407
1079
|
code?: string | undefined;
|
|
1408
1080
|
message?: string | undefined;
|
|
1409
1081
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1410
1082
|
};
|
|
1411
1083
|
} & {
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1084
|
+
admin: {
|
|
1085
|
+
unbanUser: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
1086
|
+
userId: unknown;
|
|
1087
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1088
|
+
userId: unknown;
|
|
1089
|
+
} & {
|
|
1415
1090
|
fetchOptions?: FetchOptions | undefined;
|
|
1416
|
-
}
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1091
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1092
|
+
user: import("better-auth/plugins").UserWithRole;
|
|
1093
|
+
}, {
|
|
1094
|
+
code?: string | undefined;
|
|
1095
|
+
message?: string | undefined;
|
|
1096
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1097
|
+
};
|
|
1098
|
+
} & {
|
|
1099
|
+
admin: {
|
|
1100
|
+
banUser: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
1101
|
+
userId: unknown;
|
|
1102
|
+
banReason?: string | undefined;
|
|
1103
|
+
banExpiresIn?: number | undefined;
|
|
1104
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1105
|
+
userId: unknown;
|
|
1106
|
+
banReason?: string | undefined;
|
|
1107
|
+
banExpiresIn?: number | undefined;
|
|
1429
1108
|
} & {
|
|
1430
|
-
|
|
1431
|
-
}
|
|
1432
|
-
user:
|
|
1433
|
-
id: string;
|
|
1434
|
-
name: string;
|
|
1435
|
-
email: string;
|
|
1436
|
-
image: string | undefined;
|
|
1437
|
-
};
|
|
1109
|
+
fetchOptions?: FetchOptions | undefined;
|
|
1110
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1111
|
+
user: import("better-auth/plugins").UserWithRole;
|
|
1438
1112
|
}, {
|
|
1439
1113
|
code?: string | undefined;
|
|
1440
1114
|
message?: string | undefined;
|
|
1441
1115
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1442
1116
|
};
|
|
1443
1117
|
} & {
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
organizationId?: string | undefined;
|
|
1118
|
+
admin: {
|
|
1119
|
+
impersonateUser: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
1120
|
+
userId: unknown;
|
|
1448
1121
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1449
|
-
|
|
1450
|
-
organizationId?: string | undefined;
|
|
1122
|
+
userId: unknown;
|
|
1451
1123
|
} & {
|
|
1452
1124
|
fetchOptions?: FetchOptions | undefined;
|
|
1453
1125
|
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1454
|
-
|
|
1126
|
+
session: {
|
|
1455
1127
|
id: string;
|
|
1456
|
-
organizationId: string;
|
|
1457
|
-
role: "member" | "owner" | "admin";
|
|
1458
1128
|
createdAt: Date;
|
|
1129
|
+
updatedAt: Date;
|
|
1459
1130
|
userId: string;
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
name: string;
|
|
1465
|
-
image?: string | undefined;
|
|
1466
|
-
};
|
|
1131
|
+
expiresAt: Date;
|
|
1132
|
+
token: string;
|
|
1133
|
+
ipAddress?: string | null | undefined;
|
|
1134
|
+
userAgent?: string | null | undefined;
|
|
1467
1135
|
};
|
|
1136
|
+
user: import("better-auth/plugins").UserWithRole;
|
|
1468
1137
|
}, {
|
|
1469
1138
|
code?: string | undefined;
|
|
1470
1139
|
message?: string | undefined;
|
|
1471
1140
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1472
1141
|
};
|
|
1473
1142
|
} & {
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
memberId: string;
|
|
1478
|
-
organizationId?: string | undefined;
|
|
1479
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1480
|
-
role: "member" | "owner" | "admin" | import("better-auth").LiteralString | import("better-auth").LiteralString[] | ("member" | "owner" | "admin")[];
|
|
1481
|
-
memberId: string;
|
|
1482
|
-
organizationId?: string | undefined;
|
|
1483
|
-
} & {
|
|
1143
|
+
admin: {
|
|
1144
|
+
stopImpersonating: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
1145
|
+
query?: Record<string, any> | undefined;
|
|
1484
1146
|
fetchOptions?: FetchOptions | undefined;
|
|
1485
|
-
}
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1147
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1148
|
+
session: {
|
|
1149
|
+
id: string;
|
|
1150
|
+
createdAt: Date;
|
|
1151
|
+
updatedAt: Date;
|
|
1152
|
+
userId: string;
|
|
1153
|
+
expiresAt: Date;
|
|
1154
|
+
token: string;
|
|
1155
|
+
ipAddress?: string | null | undefined;
|
|
1156
|
+
userAgent?: string | null | undefined;
|
|
1157
|
+
} & Record<string, any>;
|
|
1491
1158
|
user: {
|
|
1492
1159
|
id: string;
|
|
1160
|
+
createdAt: Date;
|
|
1161
|
+
updatedAt: Date;
|
|
1493
1162
|
email: string;
|
|
1163
|
+
emailVerified: boolean;
|
|
1494
1164
|
name: string;
|
|
1495
|
-
image?: string | undefined;
|
|
1496
|
-
}
|
|
1165
|
+
image?: string | null | undefined;
|
|
1166
|
+
} & Record<string, any>;
|
|
1497
1167
|
}, {
|
|
1498
1168
|
code?: string | undefined;
|
|
1499
1169
|
message?: string | undefined;
|
|
1500
1170
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1501
1171
|
};
|
|
1502
1172
|
} & {
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1173
|
+
admin: {
|
|
1174
|
+
revokeUserSession: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
1175
|
+
sessionToken: string;
|
|
1506
1176
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1507
|
-
|
|
1177
|
+
sessionToken: string;
|
|
1508
1178
|
} & {
|
|
1509
1179
|
fetchOptions?: FetchOptions | undefined;
|
|
1510
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
role: "member" | "owner" | "admin";
|
|
1514
|
-
createdAt: Date;
|
|
1515
|
-
userId: string;
|
|
1516
|
-
teamId?: string | undefined | undefined;
|
|
1517
|
-
user: {
|
|
1518
|
-
id: string;
|
|
1519
|
-
email: string;
|
|
1520
|
-
name: string;
|
|
1521
|
-
image?: string | undefined;
|
|
1522
|
-
};
|
|
1523
|
-
} & {
|
|
1524
|
-
user: import("better-auth").User;
|
|
1525
|
-
}, "user"> & {
|
|
1526
|
-
user: {
|
|
1527
|
-
id: string;
|
|
1528
|
-
name: string;
|
|
1529
|
-
email: string;
|
|
1530
|
-
image: string | undefined;
|
|
1531
|
-
};
|
|
1532
|
-
}>, {
|
|
1180
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1181
|
+
success: boolean;
|
|
1182
|
+
}, {
|
|
1533
1183
|
code?: string | undefined;
|
|
1534
1184
|
message?: string | undefined;
|
|
1535
1185
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1536
1186
|
};
|
|
1537
1187
|
} & {
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0
|
|
1542
|
-
|
|
1543
|
-
email?: string | undefined;
|
|
1544
|
-
} | undefined;
|
|
1545
|
-
fetchOptions?: FetchOptions | undefined;
|
|
1546
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<(Omit<{
|
|
1547
|
-
id: string;
|
|
1548
|
-
organizationId: string;
|
|
1549
|
-
email: string;
|
|
1550
|
-
role: "member" | "owner" | "admin";
|
|
1551
|
-
status: import("better-auth/plugins").InvitationStatus;
|
|
1552
|
-
inviterId: string;
|
|
1553
|
-
expiresAt: Date;
|
|
1554
|
-
createdAt: Date;
|
|
1555
|
-
teamId?: string | undefined | undefined;
|
|
1188
|
+
admin: {
|
|
1189
|
+
revokeUserSessions: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
1190
|
+
userId: unknown;
|
|
1191
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1192
|
+
userId: unknown;
|
|
1556
1193
|
} & {
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
createdAt: Date;
|
|
1562
|
-
logo?: string | null | undefined | undefined;
|
|
1563
|
-
metadata?: any;
|
|
1564
|
-
};
|
|
1565
|
-
}, "organization"> & {
|
|
1566
|
-
organizationName: string;
|
|
1567
|
-
})[], {
|
|
1194
|
+
fetchOptions?: FetchOptions | undefined;
|
|
1195
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1196
|
+
success: boolean;
|
|
1197
|
+
}, {
|
|
1568
1198
|
code?: string | undefined;
|
|
1569
1199
|
message?: string | undefined;
|
|
1570
1200
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1571
1201
|
};
|
|
1572
1202
|
} & {
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
filterField?: string | undefined;
|
|
1580
|
-
filterValue?: string | number | boolean | undefined;
|
|
1581
|
-
filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
|
|
1582
|
-
organizationId?: string | undefined;
|
|
1583
|
-
organizationSlug?: string | undefined;
|
|
1584
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
1585
|
-
query?: {
|
|
1586
|
-
limit?: string | number | undefined;
|
|
1587
|
-
offset?: string | number | undefined;
|
|
1588
|
-
sortBy?: string | undefined;
|
|
1589
|
-
sortDirection?: "asc" | "desc" | undefined;
|
|
1590
|
-
filterField?: string | undefined;
|
|
1591
|
-
filterValue?: string | number | boolean | undefined;
|
|
1592
|
-
filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
|
|
1593
|
-
organizationId?: string | undefined;
|
|
1594
|
-
organizationSlug?: string | undefined;
|
|
1595
|
-
} | undefined;
|
|
1203
|
+
admin: {
|
|
1204
|
+
removeUser: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
1205
|
+
userId: unknown;
|
|
1206
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1207
|
+
userId: unknown;
|
|
1208
|
+
} & {
|
|
1596
1209
|
fetchOptions?: FetchOptions | undefined;
|
|
1597
|
-
}
|
|
1598
|
-
|
|
1599
|
-
id: string;
|
|
1600
|
-
organizationId: string;
|
|
1601
|
-
role: "member" | "owner" | "admin";
|
|
1602
|
-
createdAt: Date;
|
|
1603
|
-
userId: string;
|
|
1604
|
-
teamId?: string | undefined | undefined;
|
|
1605
|
-
user: {
|
|
1606
|
-
id: string;
|
|
1607
|
-
email: string;
|
|
1608
|
-
name: string;
|
|
1609
|
-
image?: string | undefined;
|
|
1610
|
-
};
|
|
1611
|
-
} & {
|
|
1612
|
-
user: {
|
|
1613
|
-
id: string;
|
|
1614
|
-
name: string;
|
|
1615
|
-
email: string;
|
|
1616
|
-
image: string | null | undefined;
|
|
1617
|
-
};
|
|
1618
|
-
})[];
|
|
1619
|
-
total: number;
|
|
1210
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1211
|
+
success: boolean;
|
|
1620
1212
|
}, {
|
|
1621
1213
|
code?: string | undefined;
|
|
1622
1214
|
message?: string | undefined;
|
|
1623
1215
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1624
1216
|
};
|
|
1625
1217
|
} & {
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
organizationId?: string | undefined;
|
|
1635
|
-
organizationSlug?: string | undefined;
|
|
1636
|
-
} | undefined;
|
|
1218
|
+
admin: {
|
|
1219
|
+
setUserPassword: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
1220
|
+
newPassword: string;
|
|
1221
|
+
userId: unknown;
|
|
1222
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1223
|
+
newPassword: string;
|
|
1224
|
+
userId: unknown;
|
|
1225
|
+
} & {
|
|
1637
1226
|
fetchOptions?: FetchOptions | undefined;
|
|
1638
|
-
}
|
|
1639
|
-
|
|
1227
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1228
|
+
status: boolean;
|
|
1640
1229
|
}, {
|
|
1641
1230
|
code?: string | undefined;
|
|
1642
1231
|
message?: string | undefined;
|
|
1643
1232
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1644
1233
|
};
|
|
1645
1234
|
} & {
|
|
1646
|
-
|
|
1235
|
+
admin: {
|
|
1647
1236
|
hasPermission: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<({
|
|
1648
1237
|
permission: {
|
|
1649
|
-
readonly
|
|
1650
|
-
readonly
|
|
1651
|
-
readonly invitation?: ("cancel" | "create")[] | undefined;
|
|
1652
|
-
readonly team?: ("create" | "update" | "delete")[] | undefined;
|
|
1653
|
-
readonly ac?: ("create" | "update" | "delete" | "read")[] | undefined;
|
|
1238
|
+
readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "delete" | "set-password" | "get" | "update")[] | undefined;
|
|
1239
|
+
readonly session?: ("list" | "delete" | "revoke")[] | undefined;
|
|
1654
1240
|
};
|
|
1655
1241
|
permissions?: never | undefined;
|
|
1656
1242
|
} | {
|
|
1657
1243
|
permissions: {
|
|
1658
|
-
readonly
|
|
1659
|
-
readonly
|
|
1660
|
-
readonly invitation?: ("cancel" | "create")[] | undefined;
|
|
1661
|
-
readonly team?: ("create" | "update" | "delete")[] | undefined;
|
|
1662
|
-
readonly ac?: ("create" | "update" | "delete" | "read")[] | undefined;
|
|
1244
|
+
readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "delete" | "set-password" | "get" | "update")[] | undefined;
|
|
1245
|
+
readonly session?: ("list" | "delete" | "revoke")[] | undefined;
|
|
1663
1246
|
};
|
|
1664
1247
|
permission?: never | undefined;
|
|
1665
1248
|
}) & {
|
|
1666
|
-
|
|
1249
|
+
userId?: string | undefined;
|
|
1250
|
+
role?: "user" | "admin" | undefined;
|
|
1667
1251
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<(({
|
|
1668
1252
|
permission: {
|
|
1669
|
-
readonly
|
|
1670
|
-
readonly
|
|
1671
|
-
readonly invitation?: ("cancel" | "create")[] | undefined;
|
|
1672
|
-
readonly team?: ("create" | "update" | "delete")[] | undefined;
|
|
1673
|
-
readonly ac?: ("create" | "update" | "delete" | "read")[] | undefined;
|
|
1253
|
+
readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "delete" | "set-password" | "get" | "update")[] | undefined;
|
|
1254
|
+
readonly session?: ("list" | "delete" | "revoke")[] | undefined;
|
|
1674
1255
|
};
|
|
1675
1256
|
permissions?: never | undefined;
|
|
1676
1257
|
} | {
|
|
1677
1258
|
permissions: {
|
|
1678
|
-
readonly
|
|
1679
|
-
readonly
|
|
1680
|
-
readonly invitation?: ("cancel" | "create")[] | undefined;
|
|
1681
|
-
readonly team?: ("create" | "update" | "delete")[] | undefined;
|
|
1682
|
-
readonly ac?: ("create" | "update" | "delete" | "read")[] | undefined;
|
|
1259
|
+
readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "delete" | "set-password" | "get" | "update")[] | undefined;
|
|
1260
|
+
readonly session?: ("list" | "delete" | "revoke")[] | undefined;
|
|
1683
1261
|
};
|
|
1684
1262
|
permission?: never | undefined;
|
|
1685
1263
|
}) & {
|
|
1686
|
-
|
|
1264
|
+
userId?: string | undefined;
|
|
1265
|
+
role?: "user" | "admin" | undefined;
|
|
1687
1266
|
}) & {
|
|
1688
1267
|
fetchOptions?: FetchOptions | undefined;
|
|
1689
1268
|
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
@@ -1695,135 +1274,556 @@ export declare const authClient: {
|
|
|
1695
1274
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1696
1275
|
};
|
|
1697
1276
|
} & {
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1277
|
+
signIn: {
|
|
1278
|
+
social: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
1279
|
+
provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
|
|
1280
|
+
callbackURL?: string | undefined;
|
|
1281
|
+
newUserCallbackURL?: string | undefined;
|
|
1282
|
+
errorCallbackURL?: string | undefined;
|
|
1283
|
+
disableRedirect?: boolean | undefined;
|
|
1284
|
+
idToken?: {
|
|
1285
|
+
token: string;
|
|
1286
|
+
nonce?: string | undefined;
|
|
1287
|
+
accessToken?: string | undefined;
|
|
1288
|
+
refreshToken?: string | undefined;
|
|
1289
|
+
expiresAt?: number | undefined;
|
|
1290
|
+
} | undefined;
|
|
1291
|
+
scopes?: string[] | undefined;
|
|
1292
|
+
requestSignUp?: boolean | undefined;
|
|
1293
|
+
loginHint?: string | undefined;
|
|
1294
|
+
additionalData?: Record<string, any> | undefined;
|
|
1702
1295
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1703
|
-
|
|
1704
|
-
|
|
1296
|
+
provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
|
|
1297
|
+
callbackURL?: string | undefined;
|
|
1298
|
+
newUserCallbackURL?: string | undefined;
|
|
1299
|
+
errorCallbackURL?: string | undefined;
|
|
1300
|
+
disableRedirect?: boolean | undefined;
|
|
1301
|
+
idToken?: {
|
|
1302
|
+
token: string;
|
|
1303
|
+
nonce?: string | undefined;
|
|
1304
|
+
accessToken?: string | undefined;
|
|
1305
|
+
refreshToken?: string | undefined;
|
|
1306
|
+
expiresAt?: number | undefined;
|
|
1307
|
+
} | undefined;
|
|
1308
|
+
scopes?: string[] | undefined;
|
|
1309
|
+
requestSignUp?: boolean | undefined;
|
|
1310
|
+
loginHint?: string | undefined;
|
|
1311
|
+
additionalData?: Record<string, any> | undefined;
|
|
1705
1312
|
} & {
|
|
1706
1313
|
fetchOptions?: FetchOptions | undefined;
|
|
1707
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1314
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<NonNullable<{
|
|
1315
|
+
redirect: boolean;
|
|
1316
|
+
url: string;
|
|
1317
|
+
} | {
|
|
1318
|
+
redirect: boolean;
|
|
1319
|
+
token: string;
|
|
1320
|
+
url: undefined;
|
|
1321
|
+
user: {
|
|
1322
|
+
id: string;
|
|
1323
|
+
createdAt: Date;
|
|
1324
|
+
updatedAt: Date;
|
|
1325
|
+
email: string;
|
|
1326
|
+
emailVerified: boolean;
|
|
1327
|
+
name: string;
|
|
1328
|
+
image?: string | null | undefined | undefined;
|
|
1329
|
+
};
|
|
1330
|
+
}>, {
|
|
1714
1331
|
code?: string | undefined;
|
|
1715
1332
|
message?: string | undefined;
|
|
1716
1333
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1717
1334
|
};
|
|
1718
1335
|
} & {
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1336
|
+
signOut: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
1337
|
+
query?: Record<string, any> | undefined;
|
|
1338
|
+
fetchOptions?: FetchOptions | undefined;
|
|
1339
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1340
|
+
success: boolean;
|
|
1341
|
+
}, {
|
|
1342
|
+
code?: string | undefined;
|
|
1343
|
+
message?: string | undefined;
|
|
1344
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1345
|
+
} & {
|
|
1346
|
+
signUp: {
|
|
1347
|
+
email: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
1348
|
+
name: string;
|
|
1349
|
+
email: string;
|
|
1350
|
+
password: string;
|
|
1351
|
+
image?: string | undefined;
|
|
1352
|
+
callbackURL?: string | undefined;
|
|
1353
|
+
rememberMe?: boolean | undefined;
|
|
1726
1354
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1727
|
-
|
|
1728
|
-
|
|
1355
|
+
email: string;
|
|
1356
|
+
name: string;
|
|
1357
|
+
password: string;
|
|
1358
|
+
image?: string | undefined;
|
|
1359
|
+
callbackURL?: string | undefined;
|
|
1360
|
+
fetchOptions?: FetchOptions | undefined;
|
|
1361
|
+
} & {} & {} & {} & {
|
|
1362
|
+
onboarding?: number | null | undefined;
|
|
1363
|
+
preferences?: string | null | undefined;
|
|
1364
|
+
flags?: string | null | undefined;
|
|
1365
|
+
stripeCustomerId?: string | null | undefined;
|
|
1366
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<NonNullable<{
|
|
1367
|
+
token: null;
|
|
1368
|
+
user: {
|
|
1369
|
+
id: string;
|
|
1370
|
+
createdAt: Date;
|
|
1371
|
+
updatedAt: Date;
|
|
1372
|
+
email: string;
|
|
1373
|
+
emailVerified: boolean;
|
|
1729
1374
|
name: string;
|
|
1730
|
-
|
|
1731
|
-
}
|
|
1375
|
+
image?: string | null | undefined | undefined;
|
|
1376
|
+
};
|
|
1377
|
+
} | {
|
|
1378
|
+
token: string;
|
|
1379
|
+
user: {
|
|
1380
|
+
id: string;
|
|
1381
|
+
createdAt: Date;
|
|
1382
|
+
updatedAt: Date;
|
|
1383
|
+
email: string;
|
|
1384
|
+
emailVerified: boolean;
|
|
1385
|
+
name: string;
|
|
1386
|
+
image?: string | null | undefined | undefined;
|
|
1387
|
+
};
|
|
1388
|
+
}>, {
|
|
1389
|
+
code?: string | undefined;
|
|
1390
|
+
message?: string | undefined;
|
|
1391
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1392
|
+
};
|
|
1393
|
+
} & {
|
|
1394
|
+
signIn: {
|
|
1395
|
+
email: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
1396
|
+
email: string;
|
|
1397
|
+
password: string;
|
|
1398
|
+
callbackURL?: string | undefined;
|
|
1399
|
+
rememberMe?: boolean | undefined;
|
|
1400
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1401
|
+
email: string;
|
|
1402
|
+
password: string;
|
|
1403
|
+
callbackURL?: string | undefined;
|
|
1404
|
+
rememberMe?: boolean | undefined;
|
|
1732
1405
|
} & {
|
|
1733
1406
|
fetchOptions?: FetchOptions | undefined;
|
|
1734
1407
|
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1408
|
+
redirect: boolean;
|
|
1409
|
+
token: string;
|
|
1410
|
+
url?: string | undefined;
|
|
1411
|
+
user: {
|
|
1412
|
+
id: string;
|
|
1413
|
+
createdAt: Date;
|
|
1414
|
+
updatedAt: Date;
|
|
1415
|
+
email: string;
|
|
1416
|
+
emailVerified: boolean;
|
|
1417
|
+
name: string;
|
|
1418
|
+
image?: string | null | undefined | undefined;
|
|
1419
|
+
};
|
|
1740
1420
|
}, {
|
|
1741
1421
|
code?: string | undefined;
|
|
1742
1422
|
message?: string | undefined;
|
|
1743
1423
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1744
1424
|
};
|
|
1745
1425
|
} & {
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1426
|
+
resetPassword: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
1427
|
+
newPassword: string;
|
|
1428
|
+
token?: string | undefined;
|
|
1429
|
+
}> & Record<string, any>, Partial<{
|
|
1430
|
+
token?: string | undefined;
|
|
1431
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1432
|
+
newPassword: string;
|
|
1433
|
+
token?: string | undefined;
|
|
1434
|
+
} & {
|
|
1435
|
+
fetchOptions?: FetchOptions | undefined;
|
|
1436
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1437
|
+
status: boolean;
|
|
1438
|
+
}, {
|
|
1439
|
+
code?: string | undefined;
|
|
1440
|
+
message?: string | undefined;
|
|
1441
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1442
|
+
} & {
|
|
1443
|
+
verifyEmail: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
|
|
1444
|
+
token: string;
|
|
1445
|
+
callbackURL?: string | undefined;
|
|
1446
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1447
|
+
query: {
|
|
1448
|
+
token: string;
|
|
1449
|
+
callbackURL?: string | undefined;
|
|
1450
|
+
};
|
|
1451
|
+
fetchOptions?: FetchOptions | undefined;
|
|
1452
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<NonNullable<void | {
|
|
1453
|
+
status: boolean;
|
|
1454
|
+
}>, {
|
|
1455
|
+
code?: string | undefined;
|
|
1456
|
+
message?: string | undefined;
|
|
1457
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1458
|
+
} & {
|
|
1459
|
+
sendVerificationEmail: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
1460
|
+
email: string;
|
|
1461
|
+
callbackURL?: string | undefined;
|
|
1462
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1463
|
+
email: string;
|
|
1464
|
+
callbackURL?: string | undefined;
|
|
1465
|
+
} & {
|
|
1466
|
+
fetchOptions?: FetchOptions | undefined;
|
|
1467
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1468
|
+
status: boolean;
|
|
1469
|
+
}, {
|
|
1470
|
+
code?: string | undefined;
|
|
1471
|
+
message?: string | undefined;
|
|
1472
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1473
|
+
} & {
|
|
1474
|
+
changeEmail: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
1475
|
+
newEmail: string;
|
|
1476
|
+
callbackURL?: string | undefined;
|
|
1477
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1478
|
+
newEmail: string;
|
|
1479
|
+
callbackURL?: string | undefined;
|
|
1480
|
+
} & {
|
|
1481
|
+
fetchOptions?: FetchOptions | undefined;
|
|
1482
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1483
|
+
status: boolean;
|
|
1484
|
+
}, {
|
|
1485
|
+
code?: string | undefined;
|
|
1486
|
+
message?: string | undefined;
|
|
1487
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1488
|
+
} & {
|
|
1489
|
+
changePassword: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
1490
|
+
newPassword: string;
|
|
1491
|
+
currentPassword: string;
|
|
1492
|
+
revokeOtherSessions?: boolean | undefined;
|
|
1493
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1494
|
+
newPassword: string;
|
|
1495
|
+
currentPassword: string;
|
|
1496
|
+
revokeOtherSessions?: boolean | undefined;
|
|
1497
|
+
} & {
|
|
1498
|
+
fetchOptions?: FetchOptions | undefined;
|
|
1499
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1500
|
+
token: string | null;
|
|
1501
|
+
user: {
|
|
1502
|
+
id: string;
|
|
1503
|
+
createdAt: Date;
|
|
1504
|
+
updatedAt: Date;
|
|
1505
|
+
email: string;
|
|
1506
|
+
emailVerified: boolean;
|
|
1507
|
+
name: string;
|
|
1508
|
+
image?: string | null | undefined;
|
|
1509
|
+
} & Record<string, any>;
|
|
1510
|
+
}, {
|
|
1511
|
+
code?: string | undefined;
|
|
1512
|
+
message?: string | undefined;
|
|
1513
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1514
|
+
} & {
|
|
1515
|
+
updateUser: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<Partial<{}> & {
|
|
1516
|
+
name?: string | undefined;
|
|
1517
|
+
image?: string | undefined | null;
|
|
1518
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
1519
|
+
image?: (string | null) | undefined;
|
|
1520
|
+
name?: string | undefined;
|
|
1521
|
+
fetchOptions?: FetchOptions | undefined;
|
|
1522
|
+
} & Partial<{} & {} & {} & {
|
|
1523
|
+
onboarding?: number | null | undefined;
|
|
1524
|
+
preferences?: string | null | undefined;
|
|
1525
|
+
flags?: string | null | undefined;
|
|
1526
|
+
stripeCustomerId?: string | null | undefined;
|
|
1527
|
+
}>> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1528
|
+
status: boolean;
|
|
1529
|
+
}, {
|
|
1530
|
+
code?: string | undefined;
|
|
1531
|
+
message?: string | undefined;
|
|
1532
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1533
|
+
} & {
|
|
1534
|
+
deleteUser: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
1535
|
+
callbackURL?: string | undefined;
|
|
1536
|
+
password?: string | undefined;
|
|
1537
|
+
token?: string | undefined;
|
|
1538
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
1539
|
+
callbackURL?: string | undefined;
|
|
1540
|
+
password?: string | undefined;
|
|
1541
|
+
token?: string | undefined;
|
|
1542
|
+
} & {
|
|
1543
|
+
fetchOptions?: FetchOptions | undefined;
|
|
1544
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1545
|
+
success: boolean;
|
|
1546
|
+
message: string;
|
|
1547
|
+
}, {
|
|
1548
|
+
code?: string | undefined;
|
|
1549
|
+
message?: string | undefined;
|
|
1550
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1551
|
+
} & {
|
|
1552
|
+
requestPasswordReset: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
1553
|
+
email: string;
|
|
1554
|
+
redirectTo?: string | undefined;
|
|
1555
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1556
|
+
email: string;
|
|
1557
|
+
redirectTo?: string | undefined;
|
|
1558
|
+
} & {
|
|
1559
|
+
fetchOptions?: FetchOptions | undefined;
|
|
1560
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1561
|
+
status: boolean;
|
|
1562
|
+
message: string;
|
|
1563
|
+
}, {
|
|
1564
|
+
code?: string | undefined;
|
|
1565
|
+
message?: string | undefined;
|
|
1566
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1567
|
+
} & {
|
|
1568
|
+
resetPassword: {
|
|
1569
|
+
":token": <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
|
|
1570
|
+
callbackURL: string;
|
|
1571
|
+
}> & Record<string, any>, {
|
|
1572
|
+
token: string;
|
|
1573
|
+
}>>(data_0: import("better-auth").Prettify<{
|
|
1574
|
+
query: {
|
|
1575
|
+
callbackURL: string;
|
|
1576
|
+
};
|
|
1754
1577
|
fetchOptions?: FetchOptions | undefined;
|
|
1755
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1756
|
-
user: import("better-auth/plugins").UserWithRole;
|
|
1757
|
-
}, {
|
|
1578
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<never, {
|
|
1758
1579
|
code?: string | undefined;
|
|
1759
1580
|
message?: string | undefined;
|
|
1760
1581
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1761
1582
|
};
|
|
1762
1583
|
} & {
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
}
|
|
1584
|
+
listSessions: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
1585
|
+
query?: Record<string, any> | undefined;
|
|
1586
|
+
fetchOptions?: FetchOptions | undefined;
|
|
1587
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<import("better-auth").Prettify<{
|
|
1588
|
+
id: string;
|
|
1589
|
+
createdAt: Date;
|
|
1590
|
+
updatedAt: Date;
|
|
1591
|
+
userId: string;
|
|
1592
|
+
expiresAt: Date;
|
|
1593
|
+
token: string;
|
|
1594
|
+
ipAddress?: string | null | undefined | undefined;
|
|
1595
|
+
userAgent?: string | null | undefined | undefined;
|
|
1596
|
+
}>[], {
|
|
1597
|
+
code?: string | undefined;
|
|
1598
|
+
message?: string | undefined;
|
|
1599
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1600
|
+
} & {
|
|
1601
|
+
revokeSession: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
1602
|
+
token: string;
|
|
1603
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1604
|
+
token: string;
|
|
1605
|
+
} & {
|
|
1606
|
+
fetchOptions?: FetchOptions | undefined;
|
|
1607
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1608
|
+
status: boolean;
|
|
1609
|
+
}, {
|
|
1610
|
+
code?: string | undefined;
|
|
1611
|
+
message?: string | undefined;
|
|
1612
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1613
|
+
} & {
|
|
1614
|
+
revokeSessions: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
1615
|
+
query?: Record<string, any> | undefined;
|
|
1616
|
+
fetchOptions?: FetchOptions | undefined;
|
|
1617
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1618
|
+
status: boolean;
|
|
1619
|
+
}, {
|
|
1620
|
+
code?: string | undefined;
|
|
1621
|
+
message?: string | undefined;
|
|
1622
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1623
|
+
} & {
|
|
1624
|
+
revokeOtherSessions: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
1625
|
+
query?: Record<string, any> | undefined;
|
|
1626
|
+
fetchOptions?: FetchOptions | undefined;
|
|
1627
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1628
|
+
status: boolean;
|
|
1629
|
+
}, {
|
|
1630
|
+
code?: string | undefined;
|
|
1631
|
+
message?: string | undefined;
|
|
1632
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1633
|
+
} & {
|
|
1634
|
+
linkSocial: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
1635
|
+
provider: unknown;
|
|
1636
|
+
callbackURL?: string | undefined;
|
|
1637
|
+
idToken?: {
|
|
1638
|
+
token: string;
|
|
1639
|
+
nonce?: string | undefined;
|
|
1640
|
+
accessToken?: string | undefined;
|
|
1641
|
+
refreshToken?: string | undefined;
|
|
1642
|
+
scopes?: string[] | undefined;
|
|
1643
|
+
} | undefined;
|
|
1644
|
+
requestSignUp?: boolean | undefined;
|
|
1645
|
+
scopes?: string[] | undefined;
|
|
1646
|
+
errorCallbackURL?: string | undefined;
|
|
1647
|
+
disableRedirect?: boolean | undefined;
|
|
1648
|
+
additionalData?: Record<string, any> | undefined;
|
|
1649
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1650
|
+
provider: unknown;
|
|
1651
|
+
callbackURL?: string | undefined;
|
|
1652
|
+
idToken?: {
|
|
1653
|
+
token: string;
|
|
1654
|
+
nonce?: string | undefined;
|
|
1655
|
+
accessToken?: string | undefined;
|
|
1656
|
+
refreshToken?: string | undefined;
|
|
1657
|
+
scopes?: string[] | undefined;
|
|
1658
|
+
} | undefined;
|
|
1659
|
+
requestSignUp?: boolean | undefined;
|
|
1660
|
+
scopes?: string[] | undefined;
|
|
1661
|
+
errorCallbackURL?: string | undefined;
|
|
1662
|
+
disableRedirect?: boolean | undefined;
|
|
1663
|
+
additionalData?: Record<string, any> | undefined;
|
|
1664
|
+
} & {
|
|
1665
|
+
fetchOptions?: FetchOptions | undefined;
|
|
1666
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1667
|
+
url: string;
|
|
1668
|
+
redirect: boolean;
|
|
1669
|
+
}, {
|
|
1670
|
+
code?: string | undefined;
|
|
1671
|
+
message?: string | undefined;
|
|
1672
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1673
|
+
} & {
|
|
1674
|
+
listAccounts: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
1675
|
+
query?: Record<string, any> | undefined;
|
|
1676
|
+
fetchOptions?: FetchOptions | undefined;
|
|
1677
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1678
|
+
scopes: string[];
|
|
1679
|
+
id: string;
|
|
1680
|
+
createdAt: Date;
|
|
1681
|
+
updatedAt: Date;
|
|
1682
|
+
userId: string;
|
|
1683
|
+
providerId: string;
|
|
1684
|
+
accountId: string;
|
|
1685
|
+
}[], {
|
|
1686
|
+
code?: string | undefined;
|
|
1687
|
+
message?: string | undefined;
|
|
1688
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1785
1689
|
} & {
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
permissions: {
|
|
1795
|
-
readonly user?: ("get" | "set-role" | "create" | "update" | "delete" | "list" | "ban" | "impersonate" | "set-password")[] | undefined;
|
|
1796
|
-
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
1797
|
-
};
|
|
1798
|
-
permission?: never | undefined;
|
|
1799
|
-
}) & {
|
|
1800
|
-
userId?: string | undefined;
|
|
1801
|
-
role?: "user" | "admin" | undefined;
|
|
1802
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<(({
|
|
1803
|
-
permission: {
|
|
1804
|
-
readonly user?: ("get" | "set-role" | "create" | "update" | "delete" | "list" | "ban" | "impersonate" | "set-password")[] | undefined;
|
|
1805
|
-
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
1806
|
-
};
|
|
1807
|
-
permissions?: never | undefined;
|
|
1808
|
-
} | {
|
|
1809
|
-
permissions: {
|
|
1810
|
-
readonly user?: ("get" | "set-role" | "create" | "update" | "delete" | "list" | "ban" | "impersonate" | "set-password")[] | undefined;
|
|
1811
|
-
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
1690
|
+
deleteUser: {
|
|
1691
|
+
callback: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
|
|
1692
|
+
token: string;
|
|
1693
|
+
callbackURL?: string | undefined;
|
|
1694
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1695
|
+
query: {
|
|
1696
|
+
token: string;
|
|
1697
|
+
callbackURL?: string | undefined;
|
|
1812
1698
|
};
|
|
1813
|
-
permission?: never | undefined;
|
|
1814
|
-
}) & {
|
|
1815
|
-
userId?: string | undefined;
|
|
1816
|
-
role?: "user" | "admin" | undefined;
|
|
1817
|
-
}) & {
|
|
1818
1699
|
fetchOptions?: FetchOptions | undefined;
|
|
1819
1700
|
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1820
|
-
error: null;
|
|
1821
1701
|
success: boolean;
|
|
1702
|
+
message: string;
|
|
1822
1703
|
}, {
|
|
1823
1704
|
code?: string | undefined;
|
|
1824
1705
|
message?: string | undefined;
|
|
1825
1706
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1826
1707
|
};
|
|
1708
|
+
} & {
|
|
1709
|
+
unlinkAccount: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
1710
|
+
providerId: string;
|
|
1711
|
+
accountId?: string | undefined;
|
|
1712
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1713
|
+
providerId: string;
|
|
1714
|
+
accountId?: string | undefined;
|
|
1715
|
+
} & {
|
|
1716
|
+
fetchOptions?: FetchOptions | undefined;
|
|
1717
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1718
|
+
status: boolean;
|
|
1719
|
+
}, {
|
|
1720
|
+
code?: string | undefined;
|
|
1721
|
+
message?: string | undefined;
|
|
1722
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1723
|
+
} & {
|
|
1724
|
+
refreshToken: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
1725
|
+
providerId: string;
|
|
1726
|
+
accountId?: string | undefined;
|
|
1727
|
+
userId?: string | undefined;
|
|
1728
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1729
|
+
providerId: string;
|
|
1730
|
+
accountId?: string | undefined;
|
|
1731
|
+
userId?: string | undefined;
|
|
1732
|
+
} & {
|
|
1733
|
+
fetchOptions?: FetchOptions | undefined;
|
|
1734
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1735
|
+
accessToken: string | undefined;
|
|
1736
|
+
refreshToken: string | undefined;
|
|
1737
|
+
accessTokenExpiresAt: Date | undefined;
|
|
1738
|
+
refreshTokenExpiresAt: Date | undefined;
|
|
1739
|
+
scope: string | null | undefined;
|
|
1740
|
+
idToken: string | null | undefined;
|
|
1741
|
+
providerId: string;
|
|
1742
|
+
accountId: string;
|
|
1743
|
+
}, {
|
|
1744
|
+
code?: string | undefined;
|
|
1745
|
+
message?: string | undefined;
|
|
1746
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1747
|
+
} & {
|
|
1748
|
+
getAccessToken: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
1749
|
+
providerId: string;
|
|
1750
|
+
accountId?: string | undefined;
|
|
1751
|
+
userId?: string | undefined;
|
|
1752
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1753
|
+
providerId: string;
|
|
1754
|
+
accountId?: string | undefined;
|
|
1755
|
+
userId?: string | undefined;
|
|
1756
|
+
} & {
|
|
1757
|
+
fetchOptions?: FetchOptions | undefined;
|
|
1758
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1759
|
+
accessToken: string;
|
|
1760
|
+
accessTokenExpiresAt: Date | undefined;
|
|
1761
|
+
scopes: string[];
|
|
1762
|
+
idToken: string | undefined;
|
|
1763
|
+
}, {
|
|
1764
|
+
code?: string | undefined;
|
|
1765
|
+
message?: string | undefined;
|
|
1766
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1767
|
+
} & {
|
|
1768
|
+
accountInfo: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
|
|
1769
|
+
accountId?: string | undefined;
|
|
1770
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
1771
|
+
query?: {
|
|
1772
|
+
accountId?: string | undefined;
|
|
1773
|
+
} | undefined;
|
|
1774
|
+
fetchOptions?: FetchOptions | undefined;
|
|
1775
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1776
|
+
user: import("better-auth").OAuth2UserInfo;
|
|
1777
|
+
data: Record<string, any>;
|
|
1778
|
+
}, {
|
|
1779
|
+
code?: string | undefined;
|
|
1780
|
+
message?: string | undefined;
|
|
1781
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1782
|
+
} & {
|
|
1783
|
+
getSession: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
|
|
1784
|
+
disableCookieCache?: unknown;
|
|
1785
|
+
disableRefresh?: unknown;
|
|
1786
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
1787
|
+
query?: {
|
|
1788
|
+
disableCookieCache?: unknown;
|
|
1789
|
+
disableRefresh?: unknown;
|
|
1790
|
+
} | undefined;
|
|
1791
|
+
fetchOptions?: FetchOptions | undefined;
|
|
1792
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1793
|
+
user: {
|
|
1794
|
+
id: string;
|
|
1795
|
+
createdAt: Date;
|
|
1796
|
+
updatedAt: Date;
|
|
1797
|
+
email: string;
|
|
1798
|
+
emailVerified: boolean;
|
|
1799
|
+
name: string;
|
|
1800
|
+
image?: string | null | undefined;
|
|
1801
|
+
banned: boolean | null | undefined;
|
|
1802
|
+
role?: string | null | undefined;
|
|
1803
|
+
banReason?: string | null | undefined;
|
|
1804
|
+
banExpires?: Date | null | undefined;
|
|
1805
|
+
onboarding?: number | null | undefined;
|
|
1806
|
+
preferences?: string | null | undefined;
|
|
1807
|
+
flags?: string | null | undefined;
|
|
1808
|
+
stripeCustomerId?: string | null | undefined;
|
|
1809
|
+
};
|
|
1810
|
+
session: {
|
|
1811
|
+
id: string;
|
|
1812
|
+
createdAt: Date;
|
|
1813
|
+
updatedAt: Date;
|
|
1814
|
+
userId: string;
|
|
1815
|
+
expiresAt: Date;
|
|
1816
|
+
token: string;
|
|
1817
|
+
ipAddress?: string | null | undefined;
|
|
1818
|
+
userAgent?: string | null | undefined;
|
|
1819
|
+
activeOrganizationId?: string | null | undefined;
|
|
1820
|
+
activeTeamId?: string | null | undefined;
|
|
1821
|
+
impersonatedBy?: string | null | undefined;
|
|
1822
|
+
};
|
|
1823
|
+
} | null, {
|
|
1824
|
+
code?: string | undefined;
|
|
1825
|
+
message?: string | undefined;
|
|
1826
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1827
1827
|
} & {
|
|
1828
1828
|
getLastUsedLoginMethod: () => string | null;
|
|
1829
1829
|
clearLastUsedLoginMethod: () => void;
|
|
@@ -1834,7 +1834,7 @@ export declare const authClient: {
|
|
|
1834
1834
|
members: {
|
|
1835
1835
|
id: string;
|
|
1836
1836
|
organizationId: string;
|
|
1837
|
-
role: "
|
|
1837
|
+
role: "admin" | "member" | "owner";
|
|
1838
1838
|
createdAt: Date;
|
|
1839
1839
|
userId: string;
|
|
1840
1840
|
teamId?: string | undefined | undefined;
|
|
@@ -1849,7 +1849,7 @@ export declare const authClient: {
|
|
|
1849
1849
|
id: string;
|
|
1850
1850
|
organizationId: string;
|
|
1851
1851
|
email: string;
|
|
1852
|
-
role: "
|
|
1852
|
+
role: "admin" | "member" | "owner";
|
|
1853
1853
|
status: import("better-auth/plugins").InvitationStatus;
|
|
1854
1854
|
inviterId: string;
|
|
1855
1855
|
expiresAt: Date;
|
|
@@ -1883,7 +1883,7 @@ export declare const authClient: {
|
|
|
1883
1883
|
id: string;
|
|
1884
1884
|
organizationId: string;
|
|
1885
1885
|
email: string;
|
|
1886
|
-
role: "
|
|
1886
|
+
role: "admin" | "member" | "owner";
|
|
1887
1887
|
status: import("better-auth/plugins").InvitationStatus;
|
|
1888
1888
|
inviterId: string;
|
|
1889
1889
|
expiresAt: Date;
|
|
@@ -1893,7 +1893,7 @@ export declare const authClient: {
|
|
|
1893
1893
|
Member: {
|
|
1894
1894
|
id: string;
|
|
1895
1895
|
organizationId: string;
|
|
1896
|
-
role: "
|
|
1896
|
+
role: "admin" | "member" | "owner";
|
|
1897
1897
|
createdAt: Date;
|
|
1898
1898
|
userId: string;
|
|
1899
1899
|
teamId?: string | undefined | undefined;
|
|
@@ -1913,22 +1913,22 @@ export declare const authClient: {
|
|
|
1913
1913
|
};
|
|
1914
1914
|
};
|
|
1915
1915
|
organization: {
|
|
1916
|
-
checkRolePermission: <R extends "
|
|
1916
|
+
checkRolePermission: <R extends "admin" | "member" | "owner">(data: ({
|
|
1917
1917
|
permission: {
|
|
1918
|
-
readonly organization?: ("
|
|
1919
|
-
readonly member?: ("create" | "
|
|
1920
|
-
readonly invitation?: ("
|
|
1921
|
-
readonly team?: ("create" | "
|
|
1922
|
-
readonly ac?: ("create" | "
|
|
1918
|
+
readonly organization?: ("delete" | "update")[] | undefined;
|
|
1919
|
+
readonly member?: ("create" | "delete" | "update")[] | undefined;
|
|
1920
|
+
readonly invitation?: ("create" | "cancel")[] | undefined;
|
|
1921
|
+
readonly team?: ("create" | "delete" | "update")[] | undefined;
|
|
1922
|
+
readonly ac?: ("create" | "delete" | "update" | "read")[] | undefined;
|
|
1923
1923
|
};
|
|
1924
1924
|
permissions?: never | undefined;
|
|
1925
1925
|
} | {
|
|
1926
1926
|
permissions: {
|
|
1927
|
-
readonly organization?: ("
|
|
1928
|
-
readonly member?: ("create" | "
|
|
1929
|
-
readonly invitation?: ("
|
|
1930
|
-
readonly team?: ("create" | "
|
|
1931
|
-
readonly ac?: ("create" | "
|
|
1927
|
+
readonly organization?: ("delete" | "update")[] | undefined;
|
|
1928
|
+
readonly member?: ("create" | "delete" | "update")[] | undefined;
|
|
1929
|
+
readonly invitation?: ("create" | "cancel")[] | undefined;
|
|
1930
|
+
readonly team?: ("create" | "delete" | "update")[] | undefined;
|
|
1931
|
+
readonly ac?: ("create" | "delete" | "update" | "read")[] | undefined;
|
|
1932
1932
|
};
|
|
1933
1933
|
permission?: never | undefined;
|
|
1934
1934
|
}) & {
|
|
@@ -1939,14 +1939,14 @@ export declare const authClient: {
|
|
|
1939
1939
|
admin: {
|
|
1940
1940
|
checkRolePermission: <R extends "user" | "admin">(data: ({
|
|
1941
1941
|
permission: {
|
|
1942
|
-
readonly user?: ("
|
|
1943
|
-
readonly session?: ("
|
|
1942
|
+
readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "delete" | "set-password" | "get" | "update")[] | undefined;
|
|
1943
|
+
readonly session?: ("list" | "delete" | "revoke")[] | undefined;
|
|
1944
1944
|
};
|
|
1945
1945
|
permissions?: never | undefined;
|
|
1946
1946
|
} | {
|
|
1947
1947
|
permissions: {
|
|
1948
|
-
readonly user?: ("
|
|
1949
|
-
readonly session?: ("
|
|
1948
|
+
readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "delete" | "set-password" | "get" | "update")[] | undefined;
|
|
1949
|
+
readonly session?: ("list" | "delete" | "revoke")[] | undefined;
|
|
1950
1950
|
};
|
|
1951
1951
|
permission?: never | undefined;
|
|
1952
1952
|
}) & {
|
|
@@ -1968,10 +1968,10 @@ export declare const authClient: {
|
|
|
1968
1968
|
role?: string | null | undefined;
|
|
1969
1969
|
banReason?: string | null | undefined;
|
|
1970
1970
|
banExpires?: Date | null | undefined;
|
|
1971
|
-
stripeCustomerId?: string | null | undefined;
|
|
1972
|
-
preferences?: string | null | undefined;
|
|
1973
1971
|
onboarding?: number | null | undefined;
|
|
1972
|
+
preferences?: string | null | undefined;
|
|
1974
1973
|
flags?: string | null | undefined;
|
|
1974
|
+
stripeCustomerId?: string | null | undefined;
|
|
1975
1975
|
};
|
|
1976
1976
|
session: {
|
|
1977
1977
|
id: string;
|
|
@@ -2008,10 +2008,10 @@ export declare const authClient: {
|
|
|
2008
2008
|
role?: string | null | undefined;
|
|
2009
2009
|
banReason?: string | null | undefined;
|
|
2010
2010
|
banExpires?: Date | null | undefined;
|
|
2011
|
-
stripeCustomerId?: string | null | undefined;
|
|
2012
|
-
preferences?: string | null | undefined;
|
|
2013
2011
|
onboarding?: number | null | undefined;
|
|
2012
|
+
preferences?: string | null | undefined;
|
|
2014
2013
|
flags?: string | null | undefined;
|
|
2014
|
+
stripeCustomerId?: string | null | undefined;
|
|
2015
2015
|
};
|
|
2016
2016
|
session: {
|
|
2017
2017
|
id: string;
|
|
@@ -2100,27 +2100,6 @@ export declare const authClient: {
|
|
|
2100
2100
|
atoms: Record<string, import("better-auth/client").WritableAtom<any>>;
|
|
2101
2101
|
};
|
|
2102
2102
|
$ERROR_CODES: {
|
|
2103
|
-
readonly FAILED_TO_CREATE_USER: "Failed to create user";
|
|
2104
|
-
readonly USER_ALREADY_EXISTS: "User already exists.";
|
|
2105
|
-
readonly USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL: "User already exists. Use another email.";
|
|
2106
|
-
readonly YOU_CANNOT_BAN_YOURSELF: "You cannot ban yourself";
|
|
2107
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_CHANGE_USERS_ROLE: "You are not allowed to change users role";
|
|
2108
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_CREATE_USERS: "You are not allowed to create users";
|
|
2109
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_LIST_USERS: "You are not allowed to list users";
|
|
2110
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_LIST_USERS_SESSIONS: "You are not allowed to list users sessions";
|
|
2111
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_BAN_USERS: "You are not allowed to ban users";
|
|
2112
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_IMPERSONATE_USERS: "You are not allowed to impersonate users";
|
|
2113
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_REVOKE_USERS_SESSIONS: "You are not allowed to revoke users sessions";
|
|
2114
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_DELETE_USERS: "You are not allowed to delete users";
|
|
2115
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_SET_USERS_PASSWORD: "You are not allowed to set users password";
|
|
2116
|
-
readonly BANNED_USER: "You have been banned from this application";
|
|
2117
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_GET_USER: "You are not allowed to get user";
|
|
2118
|
-
readonly NO_DATA_TO_UPDATE: "No data to update";
|
|
2119
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_UPDATE_USERS: "You are not allowed to update users";
|
|
2120
|
-
readonly YOU_CANNOT_REMOVE_YOURSELF: "You cannot remove yourself";
|
|
2121
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_SET_NON_EXISTENT_VALUE: "You are not allowed to set a non-existent role value";
|
|
2122
|
-
readonly YOU_CANNOT_IMPERSONATE_ADMINS: "You cannot impersonate admins";
|
|
2123
|
-
readonly INVALID_ROLE_TYPE: "Invalid role type";
|
|
2124
2103
|
readonly YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_ORGANIZATION: "You are not allowed to create a new organization";
|
|
2125
2104
|
readonly YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_ORGANIZATIONS: "You have reached the maximum number of organizations";
|
|
2126
2105
|
readonly ORGANIZATION_ALREADY_EXISTS: "Organization already exists";
|
|
@@ -2177,6 +2156,27 @@ export declare const authClient: {
|
|
|
2177
2156
|
readonly INVALID_RESOURCE: "The provided permission includes an invalid resource";
|
|
2178
2157
|
readonly ROLE_NAME_IS_ALREADY_TAKEN: "That role name is already taken";
|
|
2179
2158
|
readonly CANNOT_DELETE_A_PRE_DEFINED_ROLE: "Cannot delete a pre-defined role";
|
|
2159
|
+
readonly FAILED_TO_CREATE_USER: "Failed to create user";
|
|
2160
|
+
readonly USER_ALREADY_EXISTS: "User already exists.";
|
|
2161
|
+
readonly USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL: "User already exists. Use another email.";
|
|
2162
|
+
readonly YOU_CANNOT_BAN_YOURSELF: "You cannot ban yourself";
|
|
2163
|
+
readonly YOU_ARE_NOT_ALLOWED_TO_CHANGE_USERS_ROLE: "You are not allowed to change users role";
|
|
2164
|
+
readonly YOU_ARE_NOT_ALLOWED_TO_CREATE_USERS: "You are not allowed to create users";
|
|
2165
|
+
readonly YOU_ARE_NOT_ALLOWED_TO_LIST_USERS: "You are not allowed to list users";
|
|
2166
|
+
readonly YOU_ARE_NOT_ALLOWED_TO_LIST_USERS_SESSIONS: "You are not allowed to list users sessions";
|
|
2167
|
+
readonly YOU_ARE_NOT_ALLOWED_TO_BAN_USERS: "You are not allowed to ban users";
|
|
2168
|
+
readonly YOU_ARE_NOT_ALLOWED_TO_IMPERSONATE_USERS: "You are not allowed to impersonate users";
|
|
2169
|
+
readonly YOU_ARE_NOT_ALLOWED_TO_REVOKE_USERS_SESSIONS: "You are not allowed to revoke users sessions";
|
|
2170
|
+
readonly YOU_ARE_NOT_ALLOWED_TO_DELETE_USERS: "You are not allowed to delete users";
|
|
2171
|
+
readonly YOU_ARE_NOT_ALLOWED_TO_SET_USERS_PASSWORD: "You are not allowed to set users password";
|
|
2172
|
+
readonly BANNED_USER: "You have been banned from this application";
|
|
2173
|
+
readonly YOU_ARE_NOT_ALLOWED_TO_GET_USER: "You are not allowed to get user";
|
|
2174
|
+
readonly NO_DATA_TO_UPDATE: "No data to update";
|
|
2175
|
+
readonly YOU_ARE_NOT_ALLOWED_TO_UPDATE_USERS: "You are not allowed to update users";
|
|
2176
|
+
readonly YOU_CANNOT_REMOVE_YOURSELF: "You cannot remove yourself";
|
|
2177
|
+
readonly YOU_ARE_NOT_ALLOWED_TO_SET_NON_EXISTENT_VALUE: "You are not allowed to set a non-existent role value";
|
|
2178
|
+
readonly YOU_CANNOT_IMPERSONATE_ADMINS: "You cannot impersonate admins";
|
|
2179
|
+
readonly INVALID_ROLE_TYPE: "Invalid role type";
|
|
2180
2180
|
readonly USER_NOT_FOUND: "User not found";
|
|
2181
2181
|
readonly FAILED_TO_CREATE_SESSION: "Failed to create session";
|
|
2182
2182
|
readonly FAILED_TO_UPDATE_USER: "Failed to update user";
|
|
@@ -2219,3 +2219,4 @@ export declare const authClient: {
|
|
|
2219
2219
|
readonly MISSING_FIELD: "Field is required";
|
|
2220
2220
|
};
|
|
2221
2221
|
};
|
|
2222
|
+
//# sourceMappingURL=auth.lib.d.ts.map
|