@m5kdev/frontend 0.2.0 → 0.3.1
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 +1344 -1344
- package/dist/src/modules/auth/auth.lib.d.ts.map +1 -1
- package/dist/src/modules/auth/hooks/useSession.d.ts +2 -2
- package/dist/src/modules/billing/components/BillingProvider.d.ts +1 -1
- package/dist/src/modules/billing/components/BillingProvider.d.ts.map +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +4 -7
|
@@ -84,590 +84,473 @@ export declare const authClient: {
|
|
|
84
84
|
} | undefined) => Promise<void>;
|
|
85
85
|
};
|
|
86
86
|
} & {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
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>>;
|
|
87
|
+
organization: {
|
|
88
|
+
create: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
89
|
+
name: string;
|
|
90
|
+
slug: string;
|
|
91
|
+
userId?: string | undefined;
|
|
92
|
+
logo?: string | undefined;
|
|
93
|
+
metadata?: Record<string, any> | undefined;
|
|
94
|
+
keepCurrentActiveOrganization?: boolean | undefined;
|
|
95
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
96
|
+
name: string;
|
|
97
|
+
slug: string;
|
|
98
|
+
userId?: string | undefined;
|
|
99
|
+
logo?: string | undefined;
|
|
100
|
+
metadata?: Record<string, any> | undefined;
|
|
101
|
+
keepCurrentActiveOrganization?: boolean | undefined;
|
|
102
|
+
} & {
|
|
103
|
+
fetchOptions?: FetchOptions | undefined;
|
|
104
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
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)[];
|
|
120
|
+
}, {
|
|
121
|
+
code?: string | undefined;
|
|
122
|
+
message?: string | undefined;
|
|
123
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
124
|
+
};
|
|
144
125
|
} & {
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
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;
|
|
135
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
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;
|
|
143
|
+
} & {
|
|
144
|
+
fetchOptions?: FetchOptions | undefined;
|
|
145
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
146
|
+
id: string;
|
|
147
|
+
name: string;
|
|
148
|
+
slug: string;
|
|
149
|
+
createdAt: Date;
|
|
150
|
+
logo?: string | null | undefined | undefined;
|
|
151
|
+
metadata?: any;
|
|
152
|
+
}, {
|
|
153
|
+
code?: string | undefined;
|
|
154
|
+
message?: string | undefined;
|
|
155
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
156
|
+
};
|
|
159
157
|
} & {
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
} & {
|
|
169
|
-
fetchOptions?: FetchOptions | undefined;
|
|
170
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
171
|
-
token: string | null;
|
|
172
|
-
user: {
|
|
158
|
+
organization: {
|
|
159
|
+
delete: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
160
|
+
organizationId: string;
|
|
161
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
162
|
+
organizationId: string;
|
|
163
|
+
} & {
|
|
164
|
+
fetchOptions?: FetchOptions | undefined;
|
|
165
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
173
166
|
id: string;
|
|
167
|
+
name: string;
|
|
168
|
+
slug: string;
|
|
174
169
|
createdAt: Date;
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
170
|
+
logo?: string | null | undefined | undefined;
|
|
171
|
+
metadata?: any;
|
|
172
|
+
}, {
|
|
173
|
+
code?: string | undefined;
|
|
174
|
+
message?: string | undefined;
|
|
175
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
176
|
+
};
|
|
177
|
+
} & {
|
|
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;
|
|
185
|
+
} & {
|
|
186
|
+
fetchOptions?: FetchOptions | undefined;
|
|
187
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
188
|
+
members: {
|
|
189
|
+
id: string;
|
|
190
|
+
organizationId: string;
|
|
191
|
+
role: "admin" | "member" | "owner";
|
|
192
|
+
createdAt: Date;
|
|
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;
|
|
209
|
+
expiresAt: Date;
|
|
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;
|
|
178
222
|
name: string;
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
223
|
+
slug: string;
|
|
224
|
+
createdAt: Date;
|
|
225
|
+
logo?: string | null | undefined | undefined;
|
|
226
|
+
metadata?: any;
|
|
227
|
+
}, {
|
|
228
|
+
code?: string | undefined;
|
|
229
|
+
message?: string | undefined;
|
|
230
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
231
|
+
};
|
|
185
232
|
} & {
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
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;
|
|
244
|
+
fetchOptions?: FetchOptions | undefined;
|
|
245
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
246
|
+
members: {
|
|
247
|
+
id: string;
|
|
248
|
+
organizationId: string;
|
|
249
|
+
role: "admin" | "member" | "owner";
|
|
250
|
+
createdAt: Date;
|
|
251
|
+
userId: string;
|
|
252
|
+
teamId?: string | undefined | undefined;
|
|
253
|
+
user: {
|
|
254
|
+
id: string;
|
|
255
|
+
email: string;
|
|
256
|
+
name: string;
|
|
257
|
+
image?: string | undefined;
|
|
258
|
+
};
|
|
259
|
+
}[];
|
|
260
|
+
invitations: {
|
|
261
|
+
id: string;
|
|
262
|
+
organizationId: string;
|
|
263
|
+
email: string;
|
|
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;
|
|
273
|
+
name: string;
|
|
274
|
+
organizationId: string;
|
|
275
|
+
createdAt: Date;
|
|
276
|
+
updatedAt?: Date | undefined;
|
|
277
|
+
}[];
|
|
278
|
+
} & {
|
|
279
|
+
id: string;
|
|
280
|
+
name: string;
|
|
281
|
+
slug: string;
|
|
282
|
+
createdAt: Date;
|
|
283
|
+
logo?: string | null | undefined | undefined;
|
|
284
|
+
metadata?: any;
|
|
285
|
+
}, {
|
|
286
|
+
code?: string | undefined;
|
|
287
|
+
message?: string | undefined;
|
|
288
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
289
|
+
};
|
|
203
290
|
} & {
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
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;
|
|
294
|
+
fetchOptions?: FetchOptions | undefined;
|
|
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
|
+
}[], {
|
|
303
|
+
code?: string | undefined;
|
|
304
|
+
message?: string | undefined;
|
|
305
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
306
|
+
};
|
|
219
307
|
} & {
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
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;
|
|
316
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
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;
|
|
323
|
+
} & {
|
|
229
324
|
fetchOptions?: FetchOptions | undefined;
|
|
230
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<
|
|
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
|
+
}>, {
|
|
231
346
|
code?: string | undefined;
|
|
232
347
|
message?: string | undefined;
|
|
233
348
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
234
349
|
};
|
|
235
350
|
} & {
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
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
|
-
};
|
|
351
|
+
organization: {
|
|
352
|
+
cancelInvitation: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
353
|
+
invitationId: string;
|
|
354
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
355
|
+
invitationId: string;
|
|
356
|
+
} & {
|
|
334
357
|
fetchOptions?: FetchOptions | undefined;
|
|
335
358
|
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
336
|
-
|
|
337
|
-
|
|
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;
|
|
338
368
|
}, {
|
|
339
369
|
code?: string | undefined;
|
|
340
370
|
message?: string | undefined;
|
|
341
371
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
342
372
|
};
|
|
343
373
|
} & {
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
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
|
-
signIn: {
|
|
419
|
-
social: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
420
|
-
provider: "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" | (string & {});
|
|
421
|
-
callbackURL?: string | undefined;
|
|
422
|
-
newUserCallbackURL?: string | undefined;
|
|
423
|
-
errorCallbackURL?: string | undefined;
|
|
424
|
-
disableRedirect?: boolean | undefined;
|
|
425
|
-
idToken?: {
|
|
426
|
-
token: string;
|
|
427
|
-
nonce?: string | undefined;
|
|
428
|
-
accessToken?: string | undefined;
|
|
429
|
-
refreshToken?: string | undefined;
|
|
430
|
-
expiresAt?: number | undefined;
|
|
431
|
-
} | undefined;
|
|
432
|
-
scopes?: string[] | undefined;
|
|
433
|
-
requestSignUp?: boolean | undefined;
|
|
434
|
-
loginHint?: string | undefined;
|
|
435
|
-
additionalData?: Record<string, any> | undefined;
|
|
374
|
+
organization: {
|
|
375
|
+
acceptInvitation: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
376
|
+
invitationId: string;
|
|
436
377
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
437
|
-
|
|
438
|
-
callbackURL?: string | undefined;
|
|
439
|
-
newUserCallbackURL?: string | undefined;
|
|
440
|
-
errorCallbackURL?: string | undefined;
|
|
441
|
-
disableRedirect?: boolean | undefined;
|
|
442
|
-
idToken?: {
|
|
443
|
-
token: string;
|
|
444
|
-
nonce?: string | undefined;
|
|
445
|
-
accessToken?: string | undefined;
|
|
446
|
-
refreshToken?: string | undefined;
|
|
447
|
-
expiresAt?: number | undefined;
|
|
448
|
-
} | undefined;
|
|
449
|
-
scopes?: string[] | undefined;
|
|
450
|
-
requestSignUp?: boolean | undefined;
|
|
451
|
-
loginHint?: string | undefined;
|
|
452
|
-
additionalData?: Record<string, any> | undefined;
|
|
378
|
+
invitationId: string;
|
|
453
379
|
} & {
|
|
454
380
|
fetchOptions?: FetchOptions | undefined;
|
|
455
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
381
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
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: {
|
|
463
394
|
id: string;
|
|
395
|
+
organizationId: string;
|
|
396
|
+
userId: string;
|
|
397
|
+
role: string;
|
|
464
398
|
createdAt: Date;
|
|
465
|
-
updatedAt: Date;
|
|
466
|
-
email: string;
|
|
467
|
-
emailVerified: boolean;
|
|
468
|
-
name: string;
|
|
469
|
-
image?: string | null | undefined | undefined;
|
|
470
399
|
};
|
|
471
|
-
}
|
|
400
|
+
}, {
|
|
472
401
|
code?: string | undefined;
|
|
473
402
|
message?: string | undefined;
|
|
474
403
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
475
404
|
};
|
|
476
405
|
} & {
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
image?: string | undefined;
|
|
483
|
-
callbackURL?: string | undefined;
|
|
484
|
-
rememberMe?: boolean | undefined;
|
|
485
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
486
|
-
email: string;
|
|
487
|
-
name: string;
|
|
488
|
-
password: string;
|
|
489
|
-
image?: string | undefined;
|
|
490
|
-
callbackURL?: string | undefined;
|
|
491
|
-
fetchOptions?: FetchOptions | undefined;
|
|
492
|
-
} & {} & {} & {} & {
|
|
493
|
-
stripeCustomerId?: string | null | undefined;
|
|
494
|
-
preferences?: string | null | undefined;
|
|
495
|
-
onboarding?: number | null | undefined;
|
|
496
|
-
flags?: string | null | undefined;
|
|
497
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<NonNullable<{
|
|
498
|
-
token: null;
|
|
499
|
-
user: {
|
|
500
|
-
id: string;
|
|
501
|
-
createdAt: Date;
|
|
502
|
-
updatedAt: Date;
|
|
503
|
-
email: string;
|
|
504
|
-
emailVerified: boolean;
|
|
505
|
-
name: string;
|
|
506
|
-
image?: string | null | undefined | undefined;
|
|
507
|
-
};
|
|
508
|
-
} | {
|
|
509
|
-
token: string;
|
|
510
|
-
user: {
|
|
406
|
+
organization: {
|
|
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: {
|
|
511
411
|
id: string;
|
|
512
|
-
createdAt: Date;
|
|
513
|
-
updatedAt: Date;
|
|
514
|
-
email: string;
|
|
515
|
-
emailVerified: boolean;
|
|
516
|
-
name: string;
|
|
517
|
-
image?: string | null | undefined | undefined;
|
|
518
412
|
};
|
|
413
|
+
fetchOptions?: FetchOptions | undefined;
|
|
414
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<NonNullable<{
|
|
415
|
+
id: string;
|
|
416
|
+
organizationId: string;
|
|
417
|
+
email: string;
|
|
418
|
+
role: "admin" | "member" | "owner";
|
|
419
|
+
status: import("better-auth/plugins").InvitationStatus;
|
|
420
|
+
inviterId: string;
|
|
421
|
+
expiresAt: Date;
|
|
422
|
+
createdAt: Date;
|
|
423
|
+
teamId?: string | undefined | undefined;
|
|
424
|
+
} & {
|
|
425
|
+
organizationName: string;
|
|
426
|
+
organizationSlug: string;
|
|
427
|
+
inviterEmail: string;
|
|
519
428
|
}>, {
|
|
520
429
|
code?: string | undefined;
|
|
521
430
|
message?: string | undefined;
|
|
522
431
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
523
432
|
};
|
|
524
433
|
} & {
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
password: string;
|
|
529
|
-
callbackURL?: string | undefined;
|
|
530
|
-
rememberMe?: boolean | undefined;
|
|
434
|
+
organization: {
|
|
435
|
+
rejectInvitation: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
436
|
+
invitationId: string;
|
|
531
437
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
532
|
-
|
|
533
|
-
password: string;
|
|
534
|
-
callbackURL?: string | undefined;
|
|
535
|
-
rememberMe?: boolean | undefined;
|
|
438
|
+
invitationId: string;
|
|
536
439
|
} & {
|
|
537
440
|
fetchOptions?: FetchOptions | undefined;
|
|
538
441
|
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
539
|
-
|
|
540
|
-
token: string;
|
|
541
|
-
url?: string | undefined;
|
|
542
|
-
user: {
|
|
442
|
+
invitation: {
|
|
543
443
|
id: string;
|
|
544
|
-
|
|
545
|
-
updatedAt: Date;
|
|
444
|
+
organizationId: string;
|
|
546
445
|
email: string;
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
446
|
+
role: "member" | "admin" | "owner";
|
|
447
|
+
status: import("better-auth/plugins").InvitationStatus;
|
|
448
|
+
inviterId: string;
|
|
449
|
+
expiresAt: Date;
|
|
450
|
+
createdAt: Date;
|
|
451
|
+
} | null;
|
|
452
|
+
member: null;
|
|
551
453
|
}, {
|
|
552
454
|
code?: string | undefined;
|
|
553
455
|
message?: string | undefined;
|
|
554
456
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
555
457
|
};
|
|
556
458
|
} & {
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
preferences?: string | null | undefined;
|
|
567
|
-
onboarding?: number | null | undefined;
|
|
568
|
-
flags?: string | null | undefined;
|
|
569
|
-
}>> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
570
|
-
status: boolean;
|
|
571
|
-
}, {
|
|
572
|
-
code?: string | undefined;
|
|
573
|
-
message?: string | undefined;
|
|
574
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
575
|
-
} & {
|
|
576
|
-
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<{
|
|
577
|
-
query?: Record<string, any> | undefined;
|
|
578
|
-
fetchOptions?: FetchOptions | undefined;
|
|
579
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<import("better-auth").Prettify<{
|
|
580
|
-
id: string;
|
|
581
|
-
createdAt: Date;
|
|
582
|
-
updatedAt: Date;
|
|
583
|
-
userId: string;
|
|
584
|
-
expiresAt: Date;
|
|
585
|
-
token: string;
|
|
586
|
-
ipAddress?: string | null | undefined | undefined;
|
|
587
|
-
userAgent?: string | null | undefined | undefined;
|
|
588
|
-
}>[], {
|
|
589
|
-
code?: string | undefined;
|
|
590
|
-
message?: string | undefined;
|
|
591
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
592
|
-
} & {
|
|
593
|
-
getSession: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
|
|
594
|
-
disableCookieCache?: unknown;
|
|
595
|
-
disableRefresh?: unknown;
|
|
596
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
597
|
-
query?: {
|
|
598
|
-
disableCookieCache?: unknown;
|
|
599
|
-
disableRefresh?: unknown;
|
|
600
|
-
} | undefined;
|
|
601
|
-
fetchOptions?: FetchOptions | undefined;
|
|
602
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
603
|
-
user: {
|
|
459
|
+
organization: {
|
|
460
|
+
listInvitations: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
|
|
461
|
+
organizationId?: string | undefined;
|
|
462
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
463
|
+
query?: {
|
|
464
|
+
organizationId?: string | undefined;
|
|
465
|
+
} | undefined;
|
|
466
|
+
fetchOptions?: FetchOptions | undefined;
|
|
467
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
604
468
|
id: string;
|
|
605
|
-
|
|
606
|
-
updatedAt: Date;
|
|
469
|
+
organizationId: string;
|
|
607
470
|
email: string;
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
471
|
+
role: "admin" | "member" | "owner";
|
|
472
|
+
status: import("better-auth/plugins").InvitationStatus;
|
|
473
|
+
inviterId: string;
|
|
474
|
+
expiresAt: Date;
|
|
475
|
+
createdAt: Date;
|
|
476
|
+
teamId?: string | undefined | undefined;
|
|
477
|
+
}[], {
|
|
478
|
+
code?: string | undefined;
|
|
479
|
+
message?: string | undefined;
|
|
480
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
481
|
+
};
|
|
482
|
+
} & {
|
|
483
|
+
organization: {
|
|
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;
|
|
486
|
+
fetchOptions?: FetchOptions | undefined;
|
|
487
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<Omit<{
|
|
621
488
|
id: string;
|
|
489
|
+
organizationId: string;
|
|
490
|
+
role: "admin" | "member" | "owner";
|
|
622
491
|
createdAt: Date;
|
|
623
|
-
updatedAt: Date;
|
|
624
492
|
userId: string;
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
}
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
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
|
+
};
|
|
509
|
+
}, {
|
|
510
|
+
code?: string | undefined;
|
|
511
|
+
message?: string | undefined;
|
|
512
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
513
|
+
};
|
|
637
514
|
} & {
|
|
638
515
|
organization: {
|
|
639
|
-
|
|
640
|
-
name: string;
|
|
516
|
+
checkSlug: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
641
517
|
slug: string;
|
|
642
|
-
userId?: string | undefined;
|
|
643
|
-
logo?: string | undefined;
|
|
644
|
-
metadata?: Record<string, any> | undefined;
|
|
645
|
-
keepCurrentActiveOrganization?: boolean | undefined;
|
|
646
518
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
647
|
-
name: string;
|
|
648
519
|
slug: string;
|
|
649
|
-
userId?: string | undefined;
|
|
650
|
-
logo?: string | undefined;
|
|
651
|
-
metadata?: Record<string, any> | undefined;
|
|
652
|
-
keepCurrentActiveOrganization?: boolean | undefined;
|
|
653
520
|
} & {
|
|
654
521
|
fetchOptions?: FetchOptions | undefined;
|
|
655
522
|
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
523
|
+
status: boolean;
|
|
524
|
+
}, {
|
|
525
|
+
code?: string | undefined;
|
|
526
|
+
message?: string | undefined;
|
|
527
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
528
|
+
};
|
|
529
|
+
} & {
|
|
530
|
+
organization: {
|
|
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;
|
|
662
537
|
} & {
|
|
663
|
-
|
|
664
|
-
|
|
538
|
+
fetchOptions?: FetchOptions | undefined;
|
|
539
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
540
|
+
member: {
|
|
665
541
|
id: string;
|
|
666
542
|
organizationId: string;
|
|
667
|
-
|
|
668
|
-
role: string;
|
|
543
|
+
role: "admin" | "member" | "owner";
|
|
669
544
|
createdAt: Date;
|
|
670
|
-
|
|
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
|
+
};
|
|
671
554
|
}, {
|
|
672
555
|
code?: string | undefined;
|
|
673
556
|
message?: string | undefined;
|
|
@@ -675,31 +558,28 @@ export declare const authClient: {
|
|
|
675
558
|
};
|
|
676
559
|
} & {
|
|
677
560
|
organization: {
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
slug?: string | undefined;
|
|
682
|
-
logo?: string | undefined;
|
|
683
|
-
metadata?: Record<string, any> | undefined;
|
|
684
|
-
} & Partial<{}>;
|
|
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;
|
|
685
564
|
organizationId?: string | undefined;
|
|
686
565
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
slug?: string | undefined;
|
|
690
|
-
logo?: string | undefined;
|
|
691
|
-
metadata?: Record<string, any> | undefined;
|
|
692
|
-
} & Partial<{}>;
|
|
566
|
+
role: import("better-auth").LiteralString | "admin" | "member" | "owner" | import("better-auth").LiteralString[] | ("admin" | "member" | "owner")[];
|
|
567
|
+
memberId: string;
|
|
693
568
|
organizationId?: string | undefined;
|
|
694
569
|
} & {
|
|
695
570
|
fetchOptions?: FetchOptions | undefined;
|
|
696
571
|
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
697
572
|
id: string;
|
|
698
|
-
|
|
699
|
-
|
|
573
|
+
organizationId: string;
|
|
574
|
+
role: "member" | "admin" | "owner";
|
|
700
575
|
createdAt: Date;
|
|
701
|
-
|
|
702
|
-
|
|
576
|
+
userId: string;
|
|
577
|
+
user: {
|
|
578
|
+
id: string;
|
|
579
|
+
email: string;
|
|
580
|
+
name: string;
|
|
581
|
+
image?: string | undefined;
|
|
582
|
+
};
|
|
703
583
|
}, {
|
|
704
584
|
code?: string | undefined;
|
|
705
585
|
message?: string | undefined;
|
|
@@ -707,36 +587,101 @@ export declare const authClient: {
|
|
|
707
587
|
};
|
|
708
588
|
} & {
|
|
709
589
|
organization: {
|
|
710
|
-
|
|
590
|
+
leave: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
711
591
|
organizationId: string;
|
|
712
592
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
713
593
|
organizationId: string;
|
|
714
594
|
} & {
|
|
715
595
|
fetchOptions?: FetchOptions | undefined;
|
|
716
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
596
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<NonNullable<Omit<{
|
|
717
597
|
id: string;
|
|
718
|
-
|
|
719
|
-
|
|
598
|
+
organizationId: string;
|
|
599
|
+
role: "admin" | "member" | "owner";
|
|
720
600
|
createdAt: Date;
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
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
|
+
}>, {
|
|
724
619
|
code?: string | undefined;
|
|
725
620
|
message?: string | undefined;
|
|
726
621
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
727
622
|
};
|
|
728
623
|
} & {
|
|
729
624
|
organization: {
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
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;
|
|
631
|
+
fetchOptions?: FetchOptions | undefined;
|
|
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;
|
|
736
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
|
+
})[], {
|
|
654
|
+
code?: string | undefined;
|
|
655
|
+
message?: string | undefined;
|
|
656
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
657
|
+
};
|
|
658
|
+
} & {
|
|
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;
|
|
681
|
+
} | undefined;
|
|
737
682
|
fetchOptions?: FetchOptions | undefined;
|
|
738
683
|
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
739
|
-
members: {
|
|
684
|
+
members: ({
|
|
740
685
|
id: string;
|
|
741
686
|
organizationId: string;
|
|
742
687
|
role: "admin" | "member" | "owner";
|
|
@@ -749,32 +694,15 @@ export declare const authClient: {
|
|
|
749
694
|
name: string;
|
|
750
695
|
image?: string | undefined;
|
|
751
696
|
};
|
|
752
|
-
}
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
createdAt: Date;
|
|
762
|
-
teamId?: string | undefined | undefined;
|
|
763
|
-
}[];
|
|
764
|
-
teams: {
|
|
765
|
-
id: string;
|
|
766
|
-
name: string;
|
|
767
|
-
organizationId: string;
|
|
768
|
-
createdAt: Date;
|
|
769
|
-
updatedAt?: Date | undefined;
|
|
770
|
-
}[];
|
|
771
|
-
} & {
|
|
772
|
-
id: string;
|
|
773
|
-
name: string;
|
|
774
|
-
slug: string;
|
|
775
|
-
createdAt: Date;
|
|
776
|
-
logo?: string | null | undefined | undefined;
|
|
777
|
-
metadata?: any;
|
|
697
|
+
} & {
|
|
698
|
+
user: {
|
|
699
|
+
id: string;
|
|
700
|
+
name: string;
|
|
701
|
+
email: string;
|
|
702
|
+
image: string | null | undefined;
|
|
703
|
+
};
|
|
704
|
+
})[];
|
|
705
|
+
total: number;
|
|
778
706
|
}, {
|
|
779
707
|
code?: string | undefined;
|
|
780
708
|
message?: string | undefined;
|
|
@@ -782,57 +710,92 @@ export declare const authClient: {
|
|
|
782
710
|
};
|
|
783
711
|
} & {
|
|
784
712
|
organization: {
|
|
785
|
-
|
|
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;
|
|
723
|
+
fetchOptions?: FetchOptions | undefined;
|
|
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;
|
|
740
|
+
};
|
|
741
|
+
permissions?: never | undefined;
|
|
742
|
+
} | {
|
|
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;
|
|
749
|
+
};
|
|
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
|
+
}, {
|
|
779
|
+
code?: string | undefined;
|
|
780
|
+
message?: string | undefined;
|
|
781
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
782
|
+
};
|
|
783
|
+
} & {
|
|
784
|
+
organization: {
|
|
785
|
+
createTeam: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
786
|
+
name: string;
|
|
787
|
+
organizationId?: string | undefined;
|
|
788
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
789
|
+
name: string;
|
|
786
790
|
organizationId?: string | undefined;
|
|
787
|
-
organizationSlug?: string | undefined;
|
|
788
|
-
membersLimit?: string | number | undefined;
|
|
789
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
790
|
-
query?: {
|
|
791
|
-
organizationId?: string | undefined;
|
|
792
|
-
organizationSlug?: string | undefined;
|
|
793
|
-
membersLimit?: string | number | undefined;
|
|
794
|
-
} | undefined;
|
|
795
|
-
fetchOptions?: FetchOptions | undefined;
|
|
796
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
797
|
-
members: {
|
|
798
|
-
id: string;
|
|
799
|
-
organizationId: string;
|
|
800
|
-
role: "admin" | "member" | "owner";
|
|
801
|
-
createdAt: Date;
|
|
802
|
-
userId: string;
|
|
803
|
-
teamId?: string | undefined | undefined;
|
|
804
|
-
user: {
|
|
805
|
-
id: string;
|
|
806
|
-
email: string;
|
|
807
|
-
name: string;
|
|
808
|
-
image?: string | undefined;
|
|
809
|
-
};
|
|
810
|
-
}[];
|
|
811
|
-
invitations: {
|
|
812
|
-
id: string;
|
|
813
|
-
organizationId: string;
|
|
814
|
-
email: string;
|
|
815
|
-
role: "admin" | "member" | "owner";
|
|
816
|
-
status: import("better-auth/plugins").InvitationStatus;
|
|
817
|
-
inviterId: string;
|
|
818
|
-
expiresAt: Date;
|
|
819
|
-
createdAt: Date;
|
|
820
|
-
teamId?: string | undefined | undefined;
|
|
821
|
-
}[];
|
|
822
|
-
teams: {
|
|
823
|
-
id: string;
|
|
824
|
-
name: string;
|
|
825
|
-
organizationId: string;
|
|
826
|
-
createdAt: Date;
|
|
827
|
-
updatedAt?: Date | undefined;
|
|
828
|
-
}[];
|
|
829
791
|
} & {
|
|
792
|
+
fetchOptions?: FetchOptions | undefined;
|
|
793
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
830
794
|
id: string;
|
|
831
795
|
name: string;
|
|
832
|
-
|
|
796
|
+
organizationId: string;
|
|
833
797
|
createdAt: Date;
|
|
834
|
-
|
|
835
|
-
metadata?: any;
|
|
798
|
+
updatedAt?: Date | undefined;
|
|
836
799
|
}, {
|
|
837
800
|
code?: string | undefined;
|
|
838
801
|
message?: string | undefined;
|
|
@@ -840,16 +803,19 @@ export declare const authClient: {
|
|
|
840
803
|
};
|
|
841
804
|
} & {
|
|
842
805
|
organization: {
|
|
843
|
-
|
|
844
|
-
|
|
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;
|
|
845
812
|
fetchOptions?: FetchOptions | undefined;
|
|
846
813
|
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
847
814
|
id: string;
|
|
848
815
|
name: string;
|
|
849
|
-
|
|
816
|
+
organizationId: string;
|
|
850
817
|
createdAt: Date;
|
|
851
|
-
|
|
852
|
-
metadata?: any;
|
|
818
|
+
updatedAt?: Date | undefined;
|
|
853
819
|
}[], {
|
|
854
820
|
code?: string | undefined;
|
|
855
821
|
message?: string | undefined;
|
|
@@ -857,65 +823,43 @@ export declare const authClient: {
|
|
|
857
823
|
};
|
|
858
824
|
} & {
|
|
859
825
|
organization: {
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
role: "admin" | "member" | "owner" | ("admin" | "member" | "owner")[];
|
|
826
|
+
removeTeam: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
827
|
+
teamId: string;
|
|
863
828
|
organizationId?: string | undefined;
|
|
864
|
-
resend?: boolean | undefined;
|
|
865
|
-
} & {
|
|
866
|
-
teamId?: (string | string[]) | undefined;
|
|
867
829
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
868
|
-
|
|
869
|
-
role: "admin" | "member" | "owner" | ("admin" | "member" | "owner")[];
|
|
830
|
+
teamId: string;
|
|
870
831
|
organizationId?: string | undefined;
|
|
871
|
-
resend?: boolean | undefined;
|
|
872
|
-
} & {
|
|
873
|
-
teamId?: (string | string[]) | undefined;
|
|
874
832
|
} & {
|
|
875
833
|
fetchOptions?: FetchOptions | undefined;
|
|
876
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
email: string;
|
|
880
|
-
role: "admin" | "member" | "owner";
|
|
881
|
-
status: import("better-auth/plugins").InvitationStatus;
|
|
882
|
-
inviterId: string;
|
|
883
|
-
expiresAt: Date;
|
|
884
|
-
createdAt: Date;
|
|
885
|
-
teamId?: string | undefined | undefined;
|
|
886
|
-
} | {
|
|
887
|
-
id: string;
|
|
888
|
-
organizationId: string;
|
|
889
|
-
email: string;
|
|
890
|
-
role: "admin" | "member" | "owner";
|
|
891
|
-
status: import("better-auth/plugins").InvitationStatus;
|
|
892
|
-
inviterId: string;
|
|
893
|
-
expiresAt: Date;
|
|
894
|
-
createdAt: Date;
|
|
895
|
-
teamId?: string | undefined | undefined;
|
|
896
|
-
}>, {
|
|
834
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
835
|
+
message: string;
|
|
836
|
+
}, {
|
|
897
837
|
code?: string | undefined;
|
|
898
838
|
message?: string | undefined;
|
|
899
839
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
900
840
|
};
|
|
901
841
|
} & {
|
|
902
842
|
organization: {
|
|
903
|
-
|
|
904
|
-
|
|
843
|
+
updateTeam: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
844
|
+
teamId: string;
|
|
845
|
+
data: Partial<{
|
|
846
|
+
name: string;
|
|
847
|
+
organizationId: string;
|
|
848
|
+
}>;
|
|
905
849
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
906
|
-
|
|
850
|
+
teamId: string;
|
|
851
|
+
data: Partial<{
|
|
852
|
+
name: string;
|
|
853
|
+
organizationId: string;
|
|
854
|
+
}>;
|
|
907
855
|
} & {
|
|
908
856
|
fetchOptions?: FetchOptions | undefined;
|
|
909
857
|
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
910
858
|
id: string;
|
|
859
|
+
name: string;
|
|
911
860
|
organizationId: string;
|
|
912
|
-
email: string;
|
|
913
|
-
role: "admin" | "member" | "owner";
|
|
914
|
-
status: import("better-auth/plugins").InvitationStatus;
|
|
915
|
-
inviterId: string;
|
|
916
|
-
expiresAt: Date;
|
|
917
861
|
createdAt: Date;
|
|
918
|
-
|
|
862
|
+
updatedAt?: Date | undefined;
|
|
919
863
|
}, {
|
|
920
864
|
code?: string | undefined;
|
|
921
865
|
message?: string | undefined;
|
|
@@ -923,31 +867,18 @@ export declare const authClient: {
|
|
|
923
867
|
};
|
|
924
868
|
} & {
|
|
925
869
|
organization: {
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0
|
|
929
|
-
|
|
870
|
+
setActiveTeam: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
871
|
+
teamId?: string | null | undefined;
|
|
872
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
873
|
+
teamId?: string | null | undefined;
|
|
930
874
|
} & {
|
|
931
875
|
fetchOptions?: FetchOptions | undefined;
|
|
932
|
-
}
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
status: import("better-auth/plugins").InvitationStatus;
|
|
939
|
-
inviterId: string;
|
|
940
|
-
expiresAt: Date;
|
|
941
|
-
createdAt: Date;
|
|
942
|
-
teamId?: string | undefined | undefined;
|
|
943
|
-
};
|
|
944
|
-
member: {
|
|
945
|
-
id: string;
|
|
946
|
-
organizationId: string;
|
|
947
|
-
userId: string;
|
|
948
|
-
role: string;
|
|
949
|
-
createdAt: Date;
|
|
950
|
-
};
|
|
876
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
877
|
+
id: string;
|
|
878
|
+
name: string;
|
|
879
|
+
organizationId: string;
|
|
880
|
+
createdAt: Date;
|
|
881
|
+
updatedAt?: Date | undefined;
|
|
951
882
|
}, {
|
|
952
883
|
code?: string | undefined;
|
|
953
884
|
message?: string | undefined;
|
|
@@ -955,76 +886,34 @@ export declare const authClient: {
|
|
|
955
886
|
};
|
|
956
887
|
} & {
|
|
957
888
|
organization: {
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
961
|
-
query: {
|
|
962
|
-
id: string;
|
|
963
|
-
};
|
|
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;
|
|
964
891
|
fetchOptions?: FetchOptions | undefined;
|
|
965
|
-
}
|
|
892
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
966
893
|
id: string;
|
|
894
|
+
name: string;
|
|
967
895
|
organizationId: string;
|
|
968
|
-
email: string;
|
|
969
|
-
role: "admin" | "member" | "owner";
|
|
970
|
-
status: import("better-auth/plugins").InvitationStatus;
|
|
971
|
-
inviterId: string;
|
|
972
|
-
expiresAt: Date;
|
|
973
896
|
createdAt: Date;
|
|
974
|
-
|
|
975
|
-
}
|
|
976
|
-
organizationName: string;
|
|
977
|
-
organizationSlug: string;
|
|
978
|
-
inviterEmail: string;
|
|
979
|
-
}>, {
|
|
980
|
-
code?: string | undefined;
|
|
981
|
-
message?: string | undefined;
|
|
982
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
983
|
-
};
|
|
984
|
-
} & {
|
|
985
|
-
organization: {
|
|
986
|
-
rejectInvitation: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
987
|
-
invitationId: string;
|
|
988
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
989
|
-
invitationId: string;
|
|
990
|
-
} & {
|
|
991
|
-
fetchOptions?: FetchOptions | undefined;
|
|
992
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
993
|
-
invitation: {
|
|
994
|
-
id: string;
|
|
995
|
-
organizationId: string;
|
|
996
|
-
email: string;
|
|
997
|
-
role: "member" | "admin" | "owner";
|
|
998
|
-
status: import("better-auth/plugins").InvitationStatus;
|
|
999
|
-
inviterId: string;
|
|
1000
|
-
expiresAt: Date;
|
|
1001
|
-
createdAt: Date;
|
|
1002
|
-
} | null;
|
|
1003
|
-
member: null;
|
|
1004
|
-
}, {
|
|
897
|
+
updatedAt?: Date | undefined;
|
|
898
|
+
}[], {
|
|
1005
899
|
code?: string | undefined;
|
|
1006
900
|
message?: string | undefined;
|
|
1007
901
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1008
902
|
};
|
|
1009
903
|
} & {
|
|
1010
904
|
organization: {
|
|
1011
|
-
|
|
1012
|
-
|
|
905
|
+
listTeamMembers: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
|
|
906
|
+
teamId?: string | undefined;
|
|
1013
907
|
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
1014
908
|
query?: {
|
|
1015
|
-
|
|
909
|
+
teamId?: string | undefined;
|
|
1016
910
|
} | undefined;
|
|
1017
911
|
fetchOptions?: FetchOptions | undefined;
|
|
1018
912
|
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1019
913
|
id: string;
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
role: "admin" | "member" | "owner";
|
|
1023
|
-
status: import("better-auth/plugins").InvitationStatus;
|
|
1024
|
-
inviterId: string;
|
|
1025
|
-
expiresAt: Date;
|
|
914
|
+
teamId: string;
|
|
915
|
+
userId: string;
|
|
1026
916
|
createdAt: Date;
|
|
1027
|
-
teamId?: string | undefined | undefined;
|
|
1028
917
|
}[], {
|
|
1029
918
|
code?: string | undefined;
|
|
1030
919
|
message?: string | undefined;
|
|
@@ -1032,31 +921,19 @@ export declare const authClient: {
|
|
|
1032
921
|
};
|
|
1033
922
|
} & {
|
|
1034
923
|
organization: {
|
|
1035
|
-
|
|
1036
|
-
|
|
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;
|
|
930
|
+
} & {
|
|
1037
931
|
fetchOptions?: FetchOptions | undefined;
|
|
1038
|
-
}
|
|
932
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1039
933
|
id: string;
|
|
1040
|
-
|
|
1041
|
-
role: "admin" | "member" | "owner";
|
|
1042
|
-
createdAt: Date;
|
|
934
|
+
teamId: string;
|
|
1043
935
|
userId: string;
|
|
1044
|
-
|
|
1045
|
-
user: {
|
|
1046
|
-
id: string;
|
|
1047
|
-
email: string;
|
|
1048
|
-
name: string;
|
|
1049
|
-
image?: string | undefined;
|
|
1050
|
-
};
|
|
1051
|
-
} & {
|
|
1052
|
-
user: import("better-auth").User;
|
|
1053
|
-
}, "user"> & {
|
|
1054
|
-
user: {
|
|
1055
|
-
id: string;
|
|
1056
|
-
name: string;
|
|
1057
|
-
email: string;
|
|
1058
|
-
image: string | undefined;
|
|
1059
|
-
};
|
|
936
|
+
createdAt: Date;
|
|
1060
937
|
}, {
|
|
1061
938
|
code?: string | undefined;
|
|
1062
939
|
message?: string | undefined;
|
|
@@ -1064,151 +941,96 @@ export declare const authClient: {
|
|
|
1064
941
|
};
|
|
1065
942
|
} & {
|
|
1066
943
|
organization: {
|
|
1067
|
-
|
|
1068
|
-
|
|
944
|
+
removeTeamMember: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
945
|
+
teamId: string;
|
|
946
|
+
userId: unknown;
|
|
1069
947
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1070
|
-
|
|
948
|
+
teamId: string;
|
|
949
|
+
userId: unknown;
|
|
1071
950
|
} & {
|
|
1072
951
|
fetchOptions?: FetchOptions | undefined;
|
|
1073
952
|
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1074
|
-
|
|
953
|
+
message: string;
|
|
1075
954
|
}, {
|
|
1076
955
|
code?: string | undefined;
|
|
1077
956
|
message?: string | undefined;
|
|
1078
957
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1079
958
|
};
|
|
1080
959
|
} & {
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
960
|
+
admin: {
|
|
961
|
+
setRole: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
962
|
+
userId: string;
|
|
963
|
+
role: "user" | "admin" | ("user" | "admin")[];
|
|
1085
964
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1086
|
-
|
|
1087
|
-
|
|
965
|
+
userId: string;
|
|
966
|
+
role: "user" | "admin" | ("user" | "admin")[];
|
|
1088
967
|
} & {
|
|
1089
968
|
fetchOptions?: FetchOptions | undefined;
|
|
1090
969
|
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1091
|
-
|
|
1092
|
-
id: string;
|
|
1093
|
-
organizationId: string;
|
|
1094
|
-
role: "admin" | "member" | "owner";
|
|
1095
|
-
createdAt: Date;
|
|
1096
|
-
userId: string;
|
|
1097
|
-
teamId?: string | undefined | undefined;
|
|
1098
|
-
user: {
|
|
1099
|
-
id: string;
|
|
1100
|
-
email: string;
|
|
1101
|
-
name: string;
|
|
1102
|
-
image?: string | undefined;
|
|
1103
|
-
};
|
|
1104
|
-
};
|
|
970
|
+
user: import("better-auth/plugins").UserWithRole;
|
|
1105
971
|
}, {
|
|
1106
972
|
code?: string | undefined;
|
|
1107
973
|
message?: string | undefined;
|
|
1108
974
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1109
975
|
};
|
|
1110
976
|
} & {
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
role: "admin" | import("better-auth").LiteralString | "member" | "owner" | import("better-auth").LiteralString[] | ("admin" | "member" | "owner")[];
|
|
1114
|
-
memberId: string;
|
|
1115
|
-
organizationId?: string | undefined;
|
|
1116
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1117
|
-
role: "admin" | import("better-auth").LiteralString | "member" | "owner" | import("better-auth").LiteralString[] | ("admin" | "member" | "owner")[];
|
|
1118
|
-
memberId: string;
|
|
1119
|
-
organizationId?: string | undefined;
|
|
1120
|
-
} & {
|
|
1121
|
-
fetchOptions?: FetchOptions | undefined;
|
|
1122
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
977
|
+
admin: {
|
|
978
|
+
getUser: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
|
|
1123
979
|
id: string;
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
createdAt: Date;
|
|
1127
|
-
userId: string;
|
|
1128
|
-
user: {
|
|
980
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
981
|
+
query: {
|
|
1129
982
|
id: string;
|
|
1130
|
-
email: string;
|
|
1131
|
-
name: string;
|
|
1132
|
-
image?: string | undefined;
|
|
1133
983
|
};
|
|
1134
|
-
|
|
984
|
+
fetchOptions?: FetchOptions | undefined;
|
|
985
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<import("better-auth/plugins").UserWithRole, {
|
|
1135
986
|
code?: string | undefined;
|
|
1136
987
|
message?: string | undefined;
|
|
1137
988
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1138
989
|
};
|
|
1139
990
|
} & {
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
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;
|
|
1143
998
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1144
|
-
|
|
999
|
+
email: string;
|
|
1000
|
+
password?: string | undefined;
|
|
1001
|
+
name: string;
|
|
1002
|
+
role?: "user" | "admin" | ("user" | "admin")[] | undefined;
|
|
1003
|
+
data?: Record<string, any> | undefined;
|
|
1145
1004
|
} & {
|
|
1146
1005
|
fetchOptions?: FetchOptions | undefined;
|
|
1147
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
role: "admin" | "member" | "owner";
|
|
1151
|
-
createdAt: Date;
|
|
1152
|
-
userId: string;
|
|
1153
|
-
teamId?: string | undefined | undefined;
|
|
1154
|
-
user: {
|
|
1155
|
-
id: string;
|
|
1156
|
-
email: string;
|
|
1157
|
-
name: string;
|
|
1158
|
-
image?: string | undefined;
|
|
1159
|
-
};
|
|
1160
|
-
} & {
|
|
1161
|
-
user: import("better-auth").User;
|
|
1162
|
-
}, "user"> & {
|
|
1163
|
-
user: {
|
|
1164
|
-
id: string;
|
|
1165
|
-
name: string;
|
|
1166
|
-
email: string;
|
|
1167
|
-
image: string | undefined;
|
|
1168
|
-
};
|
|
1169
|
-
}>, {
|
|
1006
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1007
|
+
user: import("better-auth/plugins").UserWithRole;
|
|
1008
|
+
}, {
|
|
1170
1009
|
code?: string | undefined;
|
|
1171
1010
|
message?: string | undefined;
|
|
1172
1011
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1173
1012
|
};
|
|
1174
1013
|
} & {
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
fetchOptions?: FetchOptions | undefined;
|
|
1183
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<(Omit<{
|
|
1184
|
-
id: string;
|
|
1185
|
-
organizationId: string;
|
|
1186
|
-
email: string;
|
|
1187
|
-
role: "admin" | "member" | "owner";
|
|
1188
|
-
status: import("better-auth/plugins").InvitationStatus;
|
|
1189
|
-
inviterId: string;
|
|
1190
|
-
expiresAt: Date;
|
|
1191
|
-
createdAt: Date;
|
|
1192
|
-
teamId?: string | undefined | undefined;
|
|
1014
|
+
admin: {
|
|
1015
|
+
updateUser: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
1016
|
+
userId: unknown;
|
|
1017
|
+
data: Record<any, any>;
|
|
1018
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1019
|
+
userId: unknown;
|
|
1020
|
+
data: Record<any, any>;
|
|
1193
1021
|
} & {
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
name: string;
|
|
1197
|
-
slug: string;
|
|
1198
|
-
createdAt: Date;
|
|
1199
|
-
logo?: string | null | undefined | undefined;
|
|
1200
|
-
metadata?: any;
|
|
1201
|
-
};
|
|
1202
|
-
}, "organization"> & {
|
|
1203
|
-
organizationName: string;
|
|
1204
|
-
})[], {
|
|
1022
|
+
fetchOptions?: FetchOptions | undefined;
|
|
1023
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<import("better-auth/plugins").UserWithRole, {
|
|
1205
1024
|
code?: string | undefined;
|
|
1206
1025
|
message?: string | undefined;
|
|
1207
1026
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1208
1027
|
};
|
|
1209
1028
|
} & {
|
|
1210
|
-
|
|
1211
|
-
|
|
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;
|
|
1212
1034
|
limit?: string | number | undefined;
|
|
1213
1035
|
offset?: string | number | undefined;
|
|
1214
1036
|
sortBy?: string | undefined;
|
|
@@ -1216,10 +1038,11 @@ export declare const authClient: {
|
|
|
1216
1038
|
filterField?: string | undefined;
|
|
1217
1039
|
filterValue?: string | number | boolean | undefined;
|
|
1218
1040
|
filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | undefined;
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1041
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1042
|
+
query: {
|
|
1043
|
+
searchValue?: string | undefined;
|
|
1044
|
+
searchField?: "email" | "name" | undefined;
|
|
1045
|
+
searchOperator?: "contains" | "starts_with" | "ends_with" | undefined;
|
|
1223
1046
|
limit?: string | number | undefined;
|
|
1224
1047
|
offset?: string | number | undefined;
|
|
1225
1048
|
sortBy?: string | undefined;
|
|
@@ -1227,603 +1050,780 @@ export declare const authClient: {
|
|
|
1227
1050
|
filterField?: string | undefined;
|
|
1228
1051
|
filterValue?: string | number | boolean | undefined;
|
|
1229
1052
|
filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | undefined;
|
|
1230
|
-
|
|
1231
|
-
organizationSlug?: string | undefined;
|
|
1232
|
-
} | undefined;
|
|
1053
|
+
};
|
|
1233
1054
|
fetchOptions?: FetchOptions | undefined;
|
|
1234
|
-
}
|
|
1235
|
-
|
|
1236
|
-
id: string;
|
|
1237
|
-
organizationId: string;
|
|
1238
|
-
role: "admin" | "member" | "owner";
|
|
1239
|
-
createdAt: Date;
|
|
1240
|
-
userId: string;
|
|
1241
|
-
teamId?: string | undefined | undefined;
|
|
1242
|
-
user: {
|
|
1243
|
-
id: string;
|
|
1244
|
-
email: string;
|
|
1245
|
-
name: string;
|
|
1246
|
-
image?: string | undefined;
|
|
1247
|
-
};
|
|
1248
|
-
} & {
|
|
1249
|
-
user: {
|
|
1250
|
-
id: string;
|
|
1251
|
-
name: string;
|
|
1252
|
-
email: string;
|
|
1253
|
-
image: string | null | undefined;
|
|
1254
|
-
};
|
|
1255
|
-
})[];
|
|
1055
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<NonNullable<{
|
|
1056
|
+
users: import("better-auth/plugins").UserWithRole[];
|
|
1256
1057
|
total: number;
|
|
1257
|
-
|
|
1058
|
+
limit: number | undefined;
|
|
1059
|
+
offset: number | undefined;
|
|
1060
|
+
} | {
|
|
1061
|
+
users: never[];
|
|
1062
|
+
total: number;
|
|
1063
|
+
}>, {
|
|
1258
1064
|
code?: string | undefined;
|
|
1259
1065
|
message?: string | undefined;
|
|
1260
1066
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1261
1067
|
};
|
|
1262
1068
|
} & {
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
userId
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
}
|
|
1269
|
-
query?: {
|
|
1270
|
-
userId?: string | undefined;
|
|
1271
|
-
organizationId?: string | undefined;
|
|
1272
|
-
organizationSlug?: string | undefined;
|
|
1273
|
-
} | 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
|
+
} & {
|
|
1274
1075
|
fetchOptions?: FetchOptions | undefined;
|
|
1275
|
-
}
|
|
1276
|
-
|
|
1277
|
-
}, {
|
|
1278
|
-
code?: string | undefined;
|
|
1279
|
-
message?: string | undefined;
|
|
1280
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1281
|
-
};
|
|
1282
|
-
} & {
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
readonly team?: ("create" | "delete" | "update")[] | undefined;
|
|
1290
|
-
readonly ac?: ("create" | "delete" | "update" | "read")[] | undefined;
|
|
1291
|
-
};
|
|
1292
|
-
permissions?: never | undefined;
|
|
1293
|
-
} | {
|
|
1294
|
-
permissions: {
|
|
1295
|
-
readonly organization?: ("delete" | "update")[] | undefined;
|
|
1296
|
-
readonly member?: ("create" | "delete" | "update")[] | undefined;
|
|
1297
|
-
readonly invitation?: ("create" | "cancel")[] | undefined;
|
|
1298
|
-
readonly team?: ("create" | "delete" | "update")[] | undefined;
|
|
1299
|
-
readonly ac?: ("create" | "delete" | "update" | "read")[] | undefined;
|
|
1300
|
-
};
|
|
1301
|
-
permission?: never | undefined;
|
|
1302
|
-
}) & {
|
|
1303
|
-
organizationId?: string | undefined;
|
|
1304
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<(({
|
|
1305
|
-
permission: {
|
|
1306
|
-
readonly organization?: ("delete" | "update")[] | undefined;
|
|
1307
|
-
readonly member?: ("create" | "delete" | "update")[] | undefined;
|
|
1308
|
-
readonly invitation?: ("create" | "cancel")[] | undefined;
|
|
1309
|
-
readonly team?: ("create" | "delete" | "update")[] | undefined;
|
|
1310
|
-
readonly ac?: ("create" | "delete" | "update" | "read")[] | undefined;
|
|
1311
|
-
};
|
|
1312
|
-
permissions?: never | undefined;
|
|
1313
|
-
} | {
|
|
1314
|
-
permissions: {
|
|
1315
|
-
readonly organization?: ("delete" | "update")[] | undefined;
|
|
1316
|
-
readonly member?: ("create" | "delete" | "update")[] | undefined;
|
|
1317
|
-
readonly invitation?: ("create" | "cancel")[] | undefined;
|
|
1318
|
-
readonly team?: ("create" | "delete" | "update")[] | undefined;
|
|
1319
|
-
readonly ac?: ("create" | "delete" | "update" | "read")[] | undefined;
|
|
1320
|
-
};
|
|
1321
|
-
permission?: never | undefined;
|
|
1322
|
-
}) & {
|
|
1323
|
-
organizationId?: string | undefined;
|
|
1324
|
-
}) & {
|
|
1076
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1077
|
+
sessions: import("better-auth/plugins").SessionWithImpersonatedBy[];
|
|
1078
|
+
}, {
|
|
1079
|
+
code?: string | undefined;
|
|
1080
|
+
message?: string | undefined;
|
|
1081
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1082
|
+
};
|
|
1083
|
+
} & {
|
|
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
|
+
} & {
|
|
1325
1090
|
fetchOptions?: FetchOptions | undefined;
|
|
1326
1091
|
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1327
|
-
|
|
1328
|
-
success: boolean;
|
|
1092
|
+
user: import("better-auth/plugins").UserWithRole;
|
|
1329
1093
|
}, {
|
|
1330
1094
|
code?: string | undefined;
|
|
1331
1095
|
message?: string | undefined;
|
|
1332
1096
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1333
1097
|
};
|
|
1334
1098
|
} & {
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1099
|
+
admin: {
|
|
1100
|
+
banUser: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
1101
|
+
userId: unknown;
|
|
1102
|
+
banReason?: string | undefined;
|
|
1103
|
+
banExpiresIn?: number | undefined;
|
|
1339
1104
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1340
|
-
|
|
1341
|
-
|
|
1105
|
+
userId: unknown;
|
|
1106
|
+
banReason?: string | undefined;
|
|
1107
|
+
banExpiresIn?: number | undefined;
|
|
1342
1108
|
} & {
|
|
1343
1109
|
fetchOptions?: FetchOptions | undefined;
|
|
1344
1110
|
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1345
|
-
|
|
1346
|
-
name: string;
|
|
1347
|
-
organizationId: string;
|
|
1348
|
-
createdAt: Date;
|
|
1349
|
-
updatedAt?: Date | undefined;
|
|
1111
|
+
user: import("better-auth/plugins").UserWithRole;
|
|
1350
1112
|
}, {
|
|
1351
1113
|
code?: string | undefined;
|
|
1352
1114
|
message?: string | undefined;
|
|
1353
1115
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1354
1116
|
};
|
|
1355
1117
|
} & {
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1118
|
+
admin: {
|
|
1119
|
+
impersonateUser: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
1120
|
+
userId: unknown;
|
|
1121
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1122
|
+
userId: unknown;
|
|
1123
|
+
} & {
|
|
1124
|
+
fetchOptions?: FetchOptions | undefined;
|
|
1125
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1126
|
+
session: {
|
|
1127
|
+
id: string;
|
|
1128
|
+
createdAt: Date;
|
|
1129
|
+
updatedAt: Date;
|
|
1130
|
+
userId: string;
|
|
1131
|
+
expiresAt: Date;
|
|
1132
|
+
token: string;
|
|
1133
|
+
ipAddress?: string | null | undefined;
|
|
1134
|
+
userAgent?: string | null | undefined;
|
|
1135
|
+
};
|
|
1136
|
+
user: import("better-auth/plugins").UserWithRole;
|
|
1137
|
+
}, {
|
|
1138
|
+
code?: string | undefined;
|
|
1139
|
+
message?: string | undefined;
|
|
1140
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1141
|
+
};
|
|
1142
|
+
} & {
|
|
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;
|
|
1363
1146
|
fetchOptions?: FetchOptions | undefined;
|
|
1364
1147
|
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
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>;
|
|
1158
|
+
user: {
|
|
1159
|
+
id: string;
|
|
1160
|
+
createdAt: Date;
|
|
1161
|
+
updatedAt: Date;
|
|
1162
|
+
email: string;
|
|
1163
|
+
emailVerified: boolean;
|
|
1164
|
+
name: string;
|
|
1165
|
+
image?: string | null | undefined;
|
|
1166
|
+
} & Record<string, any>;
|
|
1167
|
+
}, {
|
|
1371
1168
|
code?: string | undefined;
|
|
1372
1169
|
message?: string | undefined;
|
|
1373
1170
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1374
1171
|
};
|
|
1375
1172
|
} & {
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
organizationId?: string | undefined;
|
|
1173
|
+
admin: {
|
|
1174
|
+
revokeUserSession: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
1175
|
+
sessionToken: string;
|
|
1380
1176
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1381
|
-
|
|
1382
|
-
organizationId?: string | undefined;
|
|
1177
|
+
sessionToken: string;
|
|
1383
1178
|
} & {
|
|
1384
1179
|
fetchOptions?: FetchOptions | undefined;
|
|
1385
1180
|
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1386
|
-
|
|
1181
|
+
success: boolean;
|
|
1387
1182
|
}, {
|
|
1388
1183
|
code?: string | undefined;
|
|
1389
1184
|
message?: string | undefined;
|
|
1390
1185
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1391
1186
|
};
|
|
1392
1187
|
} & {
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
data: Partial<{
|
|
1397
|
-
name: string;
|
|
1398
|
-
organizationId: string;
|
|
1399
|
-
}>;
|
|
1188
|
+
admin: {
|
|
1189
|
+
revokeUserSessions: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
1190
|
+
userId: unknown;
|
|
1400
1191
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1401
|
-
|
|
1402
|
-
data: Partial<{
|
|
1403
|
-
name: string;
|
|
1404
|
-
organizationId: string;
|
|
1405
|
-
}>;
|
|
1192
|
+
userId: unknown;
|
|
1406
1193
|
} & {
|
|
1407
1194
|
fetchOptions?: FetchOptions | undefined;
|
|
1408
1195
|
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1409
|
-
|
|
1410
|
-
name: string;
|
|
1411
|
-
organizationId: string;
|
|
1412
|
-
createdAt: Date;
|
|
1413
|
-
updatedAt?: Date | undefined;
|
|
1196
|
+
success: boolean;
|
|
1414
1197
|
}, {
|
|
1415
1198
|
code?: string | undefined;
|
|
1416
1199
|
message?: string | undefined;
|
|
1417
1200
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1418
1201
|
};
|
|
1419
1202
|
} & {
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0
|
|
1424
|
-
|
|
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;
|
|
1425
1208
|
} & {
|
|
1426
1209
|
fetchOptions?: FetchOptions | undefined;
|
|
1427
|
-
}
|
|
1428
|
-
|
|
1429
|
-
name: string;
|
|
1430
|
-
organizationId: string;
|
|
1431
|
-
createdAt: Date;
|
|
1432
|
-
updatedAt?: Date | undefined;
|
|
1210
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1211
|
+
success: boolean;
|
|
1433
1212
|
}, {
|
|
1434
1213
|
code?: string | undefined;
|
|
1435
1214
|
message?: string | undefined;
|
|
1436
1215
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1437
1216
|
};
|
|
1438
1217
|
} & {
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
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
|
+
} & {
|
|
1442
1226
|
fetchOptions?: FetchOptions | undefined;
|
|
1443
|
-
}
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
organizationId: string;
|
|
1447
|
-
createdAt: Date;
|
|
1448
|
-
updatedAt?: Date | undefined;
|
|
1449
|
-
}[], {
|
|
1227
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1228
|
+
status: boolean;
|
|
1229
|
+
}, {
|
|
1450
1230
|
code?: string | undefined;
|
|
1451
1231
|
message?: string | undefined;
|
|
1452
1232
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1453
1233
|
};
|
|
1454
1234
|
} & {
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1235
|
+
admin: {
|
|
1236
|
+
hasPermission: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<({
|
|
1237
|
+
permission: {
|
|
1238
|
+
readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "delete" | "set-password" | "get" | "update")[] | undefined;
|
|
1239
|
+
readonly session?: ("list" | "delete" | "revoke")[] | undefined;
|
|
1240
|
+
};
|
|
1241
|
+
permissions?: never | undefined;
|
|
1242
|
+
} | {
|
|
1243
|
+
permissions: {
|
|
1244
|
+
readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "delete" | "set-password" | "get" | "update")[] | undefined;
|
|
1245
|
+
readonly session?: ("list" | "delete" | "revoke")[] | undefined;
|
|
1246
|
+
};
|
|
1247
|
+
permission?: never | undefined;
|
|
1248
|
+
}) & {
|
|
1249
|
+
userId?: string | undefined;
|
|
1250
|
+
role?: "user" | "admin" | undefined;
|
|
1251
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<(({
|
|
1252
|
+
permission: {
|
|
1253
|
+
readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "delete" | "set-password" | "get" | "update")[] | undefined;
|
|
1254
|
+
readonly session?: ("list" | "delete" | "revoke")[] | undefined;
|
|
1255
|
+
};
|
|
1256
|
+
permissions?: never | undefined;
|
|
1257
|
+
} | {
|
|
1258
|
+
permissions: {
|
|
1259
|
+
readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "delete" | "set-password" | "get" | "update")[] | undefined;
|
|
1260
|
+
readonly session?: ("list" | "delete" | "revoke")[] | undefined;
|
|
1261
|
+
};
|
|
1262
|
+
permission?: never | undefined;
|
|
1263
|
+
}) & {
|
|
1264
|
+
userId?: string | undefined;
|
|
1265
|
+
role?: "user" | "admin" | undefined;
|
|
1266
|
+
}) & {
|
|
1462
1267
|
fetchOptions?: FetchOptions | undefined;
|
|
1463
|
-
}
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
createdAt: Date;
|
|
1468
|
-
}[], {
|
|
1268
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1269
|
+
error: null;
|
|
1270
|
+
success: boolean;
|
|
1271
|
+
}, {
|
|
1469
1272
|
code?: string | undefined;
|
|
1470
1273
|
message?: string | undefined;
|
|
1471
1274
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1472
1275
|
};
|
|
1473
1276
|
} & {
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
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;
|
|
1478
1295
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1479
|
-
|
|
1480
|
-
|
|
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;
|
|
1481
1312
|
} & {
|
|
1482
1313
|
fetchOptions?: FetchOptions | undefined;
|
|
1483
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
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
|
+
}>, {
|
|
1489
1331
|
code?: string | undefined;
|
|
1490
1332
|
message?: string | undefined;
|
|
1491
1333
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1492
1334
|
};
|
|
1493
1335
|
} & {
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
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;
|
|
1498
1354
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1355
|
+
email: string;
|
|
1356
|
+
name: string;
|
|
1357
|
+
password: string;
|
|
1358
|
+
image?: string | undefined;
|
|
1359
|
+
callbackURL?: string | undefined;
|
|
1502
1360
|
fetchOptions?: FetchOptions | undefined;
|
|
1503
|
-
}
|
|
1504
|
-
|
|
1505
|
-
|
|
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;
|
|
1374
|
+
name: string;
|
|
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
|
+
}>, {
|
|
1506
1389
|
code?: string | undefined;
|
|
1507
1390
|
message?: string | undefined;
|
|
1508
1391
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1509
1392
|
};
|
|
1510
1393
|
} & {
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
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;
|
|
1515
1400
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1516
|
-
|
|
1517
|
-
|
|
1401
|
+
email: string;
|
|
1402
|
+
password: string;
|
|
1403
|
+
callbackURL?: string | undefined;
|
|
1404
|
+
rememberMe?: boolean | undefined;
|
|
1518
1405
|
} & {
|
|
1519
1406
|
fetchOptions?: FetchOptions | undefined;
|
|
1520
1407
|
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1521
|
-
|
|
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
|
+
};
|
|
1522
1420
|
}, {
|
|
1523
1421
|
code?: string | undefined;
|
|
1524
1422
|
message?: string | undefined;
|
|
1525
1423
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1526
1424
|
};
|
|
1527
1425
|
} & {
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
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<{
|
|
1532
1574
|
query: {
|
|
1533
|
-
|
|
1575
|
+
callbackURL: string;
|
|
1534
1576
|
};
|
|
1535
1577
|
fetchOptions?: FetchOptions | undefined;
|
|
1536
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<
|
|
1537
|
-
code?: string | undefined;
|
|
1538
|
-
message?: string | undefined;
|
|
1539
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1540
|
-
};
|
|
1541
|
-
} & {
|
|
1542
|
-
admin: {
|
|
1543
|
-
createUser: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
1544
|
-
email: string;
|
|
1545
|
-
password?: string | undefined;
|
|
1546
|
-
name: string;
|
|
1547
|
-
role?: "user" | "admin" | ("user" | "admin")[] | undefined;
|
|
1548
|
-
data?: Record<string, any> | undefined;
|
|
1549
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1550
|
-
email: string;
|
|
1551
|
-
password?: string | undefined;
|
|
1552
|
-
name: string;
|
|
1553
|
-
role?: "user" | "admin" | ("user" | "admin")[] | undefined;
|
|
1554
|
-
data?: Record<string, any> | undefined;
|
|
1555
|
-
} & {
|
|
1556
|
-
fetchOptions?: FetchOptions | undefined;
|
|
1557
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1558
|
-
user: import("better-auth/plugins").UserWithRole;
|
|
1559
|
-
}, {
|
|
1578
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<never, {
|
|
1560
1579
|
code?: string | undefined;
|
|
1561
1580
|
message?: string | undefined;
|
|
1562
1581
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1563
1582
|
};
|
|
1564
1583
|
} & {
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
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>>;
|
|
1579
1600
|
} & {
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1593
|
-
query: {
|
|
1594
|
-
searchValue?: string | undefined;
|
|
1595
|
-
searchField?: "email" | "name" | undefined;
|
|
1596
|
-
searchOperator?: "contains" | "starts_with" | "ends_with" | undefined;
|
|
1597
|
-
limit?: string | number | undefined;
|
|
1598
|
-
offset?: string | number | undefined;
|
|
1599
|
-
sortBy?: string | undefined;
|
|
1600
|
-
sortDirection?: "asc" | "desc" | undefined;
|
|
1601
|
-
filterField?: string | undefined;
|
|
1602
|
-
filterValue?: string | number | boolean | undefined;
|
|
1603
|
-
filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | undefined;
|
|
1604
|
-
};
|
|
1605
|
-
fetchOptions?: FetchOptions | undefined;
|
|
1606
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<NonNullable<{
|
|
1607
|
-
users: import("better-auth/plugins").UserWithRole[];
|
|
1608
|
-
total: number;
|
|
1609
|
-
limit: number | undefined;
|
|
1610
|
-
offset: number | undefined;
|
|
1611
|
-
} | {
|
|
1612
|
-
users: never[];
|
|
1613
|
-
total: number;
|
|
1614
|
-
}>, {
|
|
1615
|
-
code?: string | undefined;
|
|
1616
|
-
message?: string | undefined;
|
|
1617
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1618
|
-
};
|
|
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>>;
|
|
1619
1613
|
} & {
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
}, {
|
|
1630
|
-
code?: string | undefined;
|
|
1631
|
-
message?: string | undefined;
|
|
1632
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1633
|
-
};
|
|
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>>;
|
|
1634
1623
|
} & {
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
}, {
|
|
1645
|
-
code?: string | undefined;
|
|
1646
|
-
message?: string | undefined;
|
|
1647
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1648
|
-
};
|
|
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>>;
|
|
1649
1633
|
} & {
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
}
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
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>>;
|
|
1668
1673
|
} & {
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
ipAddress?: string | null | undefined;
|
|
1685
|
-
userAgent?: string | null | undefined;
|
|
1686
|
-
};
|
|
1687
|
-
user: import("better-auth/plugins").UserWithRole;
|
|
1688
|
-
}, {
|
|
1689
|
-
code?: string | undefined;
|
|
1690
|
-
message?: string | undefined;
|
|
1691
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1692
|
-
};
|
|
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>>;
|
|
1693
1689
|
} & {
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
}>
|
|
1699
|
-
|
|
1700
|
-
id: string;
|
|
1701
|
-
createdAt: Date;
|
|
1702
|
-
updatedAt: Date;
|
|
1703
|
-
userId: string;
|
|
1704
|
-
expiresAt: Date;
|
|
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: {
|
|
1705
1696
|
token: string;
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
} & Record<string, any>;
|
|
1709
|
-
user: {
|
|
1710
|
-
id: string;
|
|
1711
|
-
createdAt: Date;
|
|
1712
|
-
updatedAt: Date;
|
|
1713
|
-
email: string;
|
|
1714
|
-
emailVerified: boolean;
|
|
1715
|
-
name: string;
|
|
1716
|
-
image?: string | null | undefined;
|
|
1717
|
-
} & Record<string, any>;
|
|
1718
|
-
}, {
|
|
1719
|
-
code?: string | undefined;
|
|
1720
|
-
message?: string | undefined;
|
|
1721
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1722
|
-
};
|
|
1723
|
-
} & {
|
|
1724
|
-
admin: {
|
|
1725
|
-
revokeUserSession: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
1726
|
-
sessionToken: string;
|
|
1727
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1728
|
-
sessionToken: string;
|
|
1729
|
-
} & {
|
|
1697
|
+
callbackURL?: string | undefined;
|
|
1698
|
+
};
|
|
1730
1699
|
fetchOptions?: FetchOptions | undefined;
|
|
1731
1700
|
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1732
1701
|
success: boolean;
|
|
1702
|
+
message: string;
|
|
1733
1703
|
}, {
|
|
1734
1704
|
code?: string | undefined;
|
|
1735
1705
|
message?: string | undefined;
|
|
1736
1706
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1737
1707
|
};
|
|
1738
1708
|
} & {
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
}
|
|
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>>;
|
|
1753
1723
|
} & {
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
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>>;
|
|
1768
1747
|
} & {
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
}
|
|
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>>;
|
|
1785
1767
|
} & {
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
} |
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
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;
|
|
@@ -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;
|