@m5kdev/frontend 0.20.5 → 0.20.32

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.
@@ -88,6 +88,337 @@ declare const authClient: {
88
88
  query?: _$better_auth0.SessionQueryParams;
89
89
  } | undefined) => Promise<void>;
90
90
  };
91
+ } & {
92
+ signOut: <FetchOptions extends _$better_auth0.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: _$better_auth0.Prettify<{
93
+ query?: Record<string, any> | undefined;
94
+ fetchOptions?: FetchOptions | undefined;
95
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
96
+ success: boolean;
97
+ }, {
98
+ code?: string | undefined;
99
+ message?: string | undefined;
100
+ }, FetchOptions["throw"] extends true ? true : false>>;
101
+ } & {
102
+ resetPassword: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
103
+ newPassword: string;
104
+ token?: string | undefined;
105
+ }> & Record<string, any>, Partial<{
106
+ token?: string | undefined;
107
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
108
+ newPassword: string;
109
+ token?: string | undefined;
110
+ } & {
111
+ fetchOptions?: FetchOptions | undefined;
112
+ }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
113
+ status: boolean;
114
+ }, {
115
+ code?: string | undefined;
116
+ message?: string | undefined;
117
+ }, FetchOptions["throw"] extends true ? true : false>>;
118
+ } & {
119
+ verifyEmail: <FetchOptions extends _$better_auth0.ClientFetchOption<never, Partial<{
120
+ token: string;
121
+ callbackURL?: string | undefined;
122
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
123
+ query: {
124
+ token: string;
125
+ callbackURL?: string | undefined;
126
+ };
127
+ fetchOptions?: FetchOptions | undefined;
128
+ }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<NonNullable<void | {
129
+ status: boolean;
130
+ }>, {
131
+ code?: string | undefined;
132
+ message?: string | undefined;
133
+ }, FetchOptions["throw"] extends true ? true : false>>;
134
+ } & {
135
+ sendVerificationEmail: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
136
+ email: string;
137
+ callbackURL?: string | undefined;
138
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
139
+ email: string;
140
+ callbackURL?: string | undefined;
141
+ } & {
142
+ fetchOptions?: FetchOptions | undefined;
143
+ }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
144
+ status: boolean;
145
+ }, {
146
+ code?: string | undefined;
147
+ message?: string | undefined;
148
+ }, FetchOptions["throw"] extends true ? true : false>>;
149
+ } & {
150
+ changeEmail: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
151
+ newEmail: string;
152
+ callbackURL?: string | undefined;
153
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
154
+ newEmail: string;
155
+ callbackURL?: string | undefined;
156
+ } & {
157
+ fetchOptions?: FetchOptions | undefined;
158
+ }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
159
+ status: boolean;
160
+ }, {
161
+ code?: string | undefined;
162
+ message?: string | undefined;
163
+ }, FetchOptions["throw"] extends true ? true : false>>;
164
+ } & {
165
+ changePassword: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
166
+ newPassword: string;
167
+ currentPassword: string;
168
+ revokeOtherSessions?: boolean | undefined;
169
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
170
+ newPassword: string;
171
+ currentPassword: string;
172
+ revokeOtherSessions?: boolean | undefined;
173
+ } & {
174
+ fetchOptions?: FetchOptions | undefined;
175
+ }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
176
+ token: string | null;
177
+ user: {
178
+ id: string;
179
+ createdAt: Date;
180
+ updatedAt: Date;
181
+ email: string;
182
+ emailVerified: boolean;
183
+ name: string;
184
+ image?: string | null | undefined;
185
+ } & Record<string, any>;
186
+ }, {
187
+ code?: string | undefined;
188
+ message?: string | undefined;
189
+ }, FetchOptions["throw"] extends true ? true : false>>;
190
+ } & {
191
+ deleteUser: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
192
+ callbackURL?: string | undefined;
193
+ password?: string | undefined;
194
+ token?: string | undefined;
195
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: _$better_auth0.Prettify<{
196
+ callbackURL?: string | undefined;
197
+ password?: string | undefined;
198
+ token?: string | undefined;
199
+ } & {
200
+ fetchOptions?: FetchOptions | undefined;
201
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
202
+ success: boolean;
203
+ message: string;
204
+ }, {
205
+ code?: string | undefined;
206
+ message?: string | undefined;
207
+ }, FetchOptions["throw"] extends true ? true : false>>;
208
+ } & {
209
+ requestPasswordReset: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
210
+ email: string;
211
+ redirectTo?: string | undefined;
212
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
213
+ email: string;
214
+ redirectTo?: string | undefined;
215
+ } & {
216
+ fetchOptions?: FetchOptions | undefined;
217
+ }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
218
+ status: boolean;
219
+ message: string;
220
+ }, {
221
+ code?: string | undefined;
222
+ message?: string | undefined;
223
+ }, FetchOptions["throw"] extends true ? true : false>>;
224
+ } & {
225
+ resetPassword: {
226
+ ":token": <FetchOptions extends _$better_auth0.ClientFetchOption<never, Partial<{
227
+ callbackURL: string;
228
+ }> & Record<string, any>, {
229
+ token: string;
230
+ }>>(data_0: _$better_auth0.Prettify<{
231
+ query: {
232
+ callbackURL: string;
233
+ };
234
+ fetchOptions?: FetchOptions | undefined;
235
+ }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<never, {
236
+ code?: string | undefined;
237
+ message?: string | undefined;
238
+ }, FetchOptions["throw"] extends true ? true : false>>;
239
+ };
240
+ } & {
241
+ revokeSession: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
242
+ token: string;
243
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
244
+ token: string;
245
+ } & {
246
+ fetchOptions?: FetchOptions | undefined;
247
+ }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
248
+ status: boolean;
249
+ }, {
250
+ code?: string | undefined;
251
+ message?: string | undefined;
252
+ }, FetchOptions["throw"] extends true ? true : false>>;
253
+ } & {
254
+ revokeSessions: <FetchOptions extends _$better_auth0.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: _$better_auth0.Prettify<{
255
+ query?: Record<string, any> | undefined;
256
+ fetchOptions?: FetchOptions | undefined;
257
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
258
+ status: boolean;
259
+ }, {
260
+ code?: string | undefined;
261
+ message?: string | undefined;
262
+ }, FetchOptions["throw"] extends true ? true : false>>;
263
+ } & {
264
+ revokeOtherSessions: <FetchOptions extends _$better_auth0.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: _$better_auth0.Prettify<{
265
+ query?: Record<string, any> | undefined;
266
+ fetchOptions?: FetchOptions | undefined;
267
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
268
+ status: boolean;
269
+ }, {
270
+ code?: string | undefined;
271
+ message?: string | undefined;
272
+ }, FetchOptions["throw"] extends true ? true : false>>;
273
+ } & {
274
+ linkSocial: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
275
+ provider: unknown;
276
+ callbackURL?: string | undefined;
277
+ idToken?: {
278
+ token: string;
279
+ nonce?: string | undefined;
280
+ accessToken?: string | undefined;
281
+ refreshToken?: string | undefined;
282
+ scopes?: string[] | undefined;
283
+ } | undefined;
284
+ requestSignUp?: boolean | undefined;
285
+ scopes?: string[] | undefined;
286
+ errorCallbackURL?: string | undefined;
287
+ disableRedirect?: boolean | undefined;
288
+ additionalData?: Record<string, any> | undefined;
289
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
290
+ provider: unknown;
291
+ callbackURL?: string | undefined;
292
+ idToken?: {
293
+ token: string;
294
+ nonce?: string | undefined;
295
+ accessToken?: string | undefined;
296
+ refreshToken?: string | undefined;
297
+ scopes?: string[] | undefined;
298
+ } | undefined;
299
+ requestSignUp?: boolean | undefined;
300
+ scopes?: string[] | undefined;
301
+ errorCallbackURL?: string | undefined;
302
+ disableRedirect?: boolean | undefined;
303
+ additionalData?: Record<string, any> | undefined;
304
+ } & {
305
+ fetchOptions?: FetchOptions | undefined;
306
+ }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
307
+ url: string;
308
+ redirect: boolean;
309
+ }, {
310
+ code?: string | undefined;
311
+ message?: string | undefined;
312
+ }, FetchOptions["throw"] extends true ? true : false>>;
313
+ } & {
314
+ listAccounts: <FetchOptions extends _$better_auth0.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: _$better_auth0.Prettify<{
315
+ query?: Record<string, any> | undefined;
316
+ fetchOptions?: FetchOptions | undefined;
317
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
318
+ scopes: string[];
319
+ id: string;
320
+ createdAt: Date;
321
+ updatedAt: Date;
322
+ userId: string;
323
+ providerId: string;
324
+ accountId: string;
325
+ }[], {
326
+ code?: string | undefined;
327
+ message?: string | undefined;
328
+ }, FetchOptions["throw"] extends true ? true : false>>;
329
+ } & {
330
+ deleteUser: {
331
+ callback: <FetchOptions extends _$better_auth0.ClientFetchOption<never, Partial<{
332
+ token: string;
333
+ callbackURL?: string | undefined;
334
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
335
+ query: {
336
+ token: string;
337
+ callbackURL?: string | undefined;
338
+ };
339
+ fetchOptions?: FetchOptions | undefined;
340
+ }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
341
+ success: boolean;
342
+ message: string;
343
+ }, {
344
+ code?: string | undefined;
345
+ message?: string | undefined;
346
+ }, FetchOptions["throw"] extends true ? true : false>>;
347
+ };
348
+ } & {
349
+ unlinkAccount: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
350
+ providerId: string;
351
+ accountId?: string | undefined;
352
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
353
+ providerId: string;
354
+ accountId?: string | undefined;
355
+ } & {
356
+ fetchOptions?: FetchOptions | undefined;
357
+ }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
358
+ status: boolean;
359
+ }, {
360
+ code?: string | undefined;
361
+ message?: string | undefined;
362
+ }, FetchOptions["throw"] extends true ? true : false>>;
363
+ } & {
364
+ refreshToken: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
365
+ providerId: string;
366
+ accountId?: string | undefined;
367
+ userId?: string | undefined;
368
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
369
+ providerId: string;
370
+ accountId?: string | undefined;
371
+ userId?: string | undefined;
372
+ } & {
373
+ fetchOptions?: FetchOptions | undefined;
374
+ }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
375
+ accessToken: string | undefined;
376
+ refreshToken: string | undefined;
377
+ accessTokenExpiresAt: Date | undefined;
378
+ refreshTokenExpiresAt: Date | undefined;
379
+ scope: string | null | undefined;
380
+ idToken: string | null | undefined;
381
+ providerId: string;
382
+ accountId: string;
383
+ }, {
384
+ code?: string | undefined;
385
+ message?: string | undefined;
386
+ }, FetchOptions["throw"] extends true ? true : false>>;
387
+ } & {
388
+ getAccessToken: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
389
+ providerId: string;
390
+ accountId?: string | undefined;
391
+ userId?: string | undefined;
392
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
393
+ providerId: string;
394
+ accountId?: string | undefined;
395
+ userId?: string | undefined;
396
+ } & {
397
+ fetchOptions?: FetchOptions | undefined;
398
+ }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
399
+ accessToken: string;
400
+ accessTokenExpiresAt: Date | undefined;
401
+ scopes: string[];
402
+ idToken: string | undefined;
403
+ }, {
404
+ code?: string | undefined;
405
+ message?: string | undefined;
406
+ }, FetchOptions["throw"] extends true ? true : false>>;
407
+ } & {
408
+ accountInfo: <FetchOptions extends _$better_auth0.ClientFetchOption<never, Partial<{
409
+ accountId?: string | undefined;
410
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: _$better_auth0.Prettify<{
411
+ query?: {
412
+ accountId?: string | undefined;
413
+ } | undefined;
414
+ fetchOptions?: FetchOptions | undefined;
415
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
416
+ user: _$better_auth0.OAuth2UserInfo;
417
+ data: Record<string, any>;
418
+ }, {
419
+ code?: string | undefined;
420
+ message?: string | undefined;
421
+ }, FetchOptions["throw"] extends true ? true : false>>;
91
422
  } & {
92
423
  organization: {
93
424
  create: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
@@ -564,11 +895,11 @@ declare const authClient: {
564
895
  } & {
565
896
  organization: {
566
897
  updateMemberRole: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
567
- role: _$better_auth0.LiteralString | "admin" | "member" | "owner" | _$better_auth0.LiteralString[] | ("admin" | "member" | "owner")[];
898
+ role: _$better_auth0.LiteralString | _$better_auth0.LiteralString[] | "admin" | "member" | "owner" | ("admin" | "member" | "owner")[];
568
899
  memberId: string;
569
900
  organizationId?: string | undefined;
570
901
  }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
571
- role: _$better_auth0.LiteralString | "admin" | "member" | "owner" | _$better_auth0.LiteralString[] | ("admin" | "member" | "owner")[];
902
+ role: _$better_auth0.LiteralString | _$better_auth0.LiteralString[] | "admin" | "member" | "owner" | ("admin" | "member" | "owner")[];
572
903
  memberId: string;
573
904
  organizationId?: string | undefined;
574
905
  } & {
@@ -669,7 +1000,7 @@ declare const authClient: {
669
1000
  sortDirection?: "asc" | "desc" | undefined;
670
1001
  filterField?: string | undefined;
671
1002
  filterValue?: string | number | boolean | undefined;
672
- filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | undefined;
1003
+ filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
673
1004
  organizationId?: string | undefined;
674
1005
  organizationSlug?: string | undefined;
675
1006
  }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: _$better_auth0.Prettify<{
@@ -680,7 +1011,7 @@ declare const authClient: {
680
1011
  sortDirection?: "asc" | "desc" | undefined;
681
1012
  filterField?: string | undefined;
682
1013
  filterValue?: string | number | boolean | undefined;
683
- filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | undefined;
1014
+ filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
684
1015
  organizationId?: string | undefined;
685
1016
  organizationSlug?: string | undefined;
686
1017
  } | undefined;
@@ -1042,7 +1373,7 @@ declare const authClient: {
1042
1373
  sortDirection?: "asc" | "desc" | undefined;
1043
1374
  filterField?: string | undefined;
1044
1375
  filterValue?: string | number | boolean | undefined;
1045
- filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | undefined;
1376
+ filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
1046
1377
  }> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
1047
1378
  query: {
1048
1379
  searchValue?: string | undefined;
@@ -1054,7 +1385,7 @@ declare const authClient: {
1054
1385
  sortDirection?: "asc" | "desc" | undefined;
1055
1386
  filterField?: string | undefined;
1056
1387
  filterValue?: string | number | boolean | undefined;
1057
- filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | undefined;
1388
+ filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
1058
1389
  };
1059
1390
  fetchOptions?: FetchOptions | undefined;
1060
1391
  }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<NonNullable<{
@@ -1337,16 +1668,6 @@ declare const authClient: {
1337
1668
  message?: string | undefined;
1338
1669
  }, FetchOptions["throw"] extends true ? true : false>>;
1339
1670
  };
1340
- } & {
1341
- signOut: <FetchOptions extends _$better_auth0.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: _$better_auth0.Prettify<{
1342
- query?: Record<string, any> | undefined;
1343
- fetchOptions?: FetchOptions | undefined;
1344
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
1345
- success: boolean;
1346
- }, {
1347
- code?: string | undefined;
1348
- message?: string | undefined;
1349
- }, FetchOptions["throw"] extends true ? true : false>>;
1350
1671
  } & {
1351
1672
  signUp: {
1352
1673
  email: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
@@ -1364,6 +1685,7 @@ declare const authClient: {
1364
1685
  callbackURL?: string | undefined;
1365
1686
  fetchOptions?: FetchOptions | undefined;
1366
1687
  } & {} & {} & {} & {
1688
+ metadata?: string | null | undefined;
1367
1689
  onboarding?: number | null | undefined;
1368
1690
  preferences?: string | null | undefined;
1369
1691
  flags?: string | null | undefined;
@@ -1403,119 +1725,30 @@ declare const authClient: {
1403
1725
  callbackURL?: string | undefined;
1404
1726
  rememberMe?: boolean | undefined;
1405
1727
  }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
1406
- email: string;
1407
- password: string;
1408
- callbackURL?: string | undefined;
1409
- rememberMe?: boolean | undefined;
1410
- } & {
1411
- fetchOptions?: FetchOptions | undefined;
1412
- }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
1413
- redirect: boolean;
1414
- token: string;
1415
- url?: string | undefined;
1416
- user: {
1417
- id: string;
1418
- createdAt: Date;
1419
- updatedAt: Date;
1420
- email: string;
1421
- emailVerified: boolean;
1422
- name: string;
1423
- image?: string | null | undefined | undefined;
1424
- };
1425
- }, {
1426
- code?: string | undefined;
1427
- message?: string | undefined;
1428
- }, FetchOptions["throw"] extends true ? true : false>>;
1429
- };
1430
- } & {
1431
- resetPassword: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
1432
- newPassword: string;
1433
- token?: string | undefined;
1434
- }> & Record<string, any>, Partial<{
1435
- token?: string | undefined;
1436
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
1437
- newPassword: string;
1438
- token?: string | undefined;
1439
- } & {
1440
- fetchOptions?: FetchOptions | undefined;
1441
- }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
1442
- status: boolean;
1443
- }, {
1444
- code?: string | undefined;
1445
- message?: string | undefined;
1446
- }, FetchOptions["throw"] extends true ? true : false>>;
1447
- } & {
1448
- verifyEmail: <FetchOptions extends _$better_auth0.ClientFetchOption<never, Partial<{
1449
- token: string;
1450
- callbackURL?: string | undefined;
1451
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
1452
- query: {
1453
- token: string;
1454
- callbackURL?: string | undefined;
1455
- };
1456
- fetchOptions?: FetchOptions | undefined;
1457
- }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<NonNullable<void | {
1458
- status: boolean;
1459
- }>, {
1460
- code?: string | undefined;
1461
- message?: string | undefined;
1462
- }, FetchOptions["throw"] extends true ? true : false>>;
1463
- } & {
1464
- sendVerificationEmail: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
1465
- email: string;
1466
- callbackURL?: string | undefined;
1467
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
1468
- email: string;
1469
- callbackURL?: string | undefined;
1470
- } & {
1471
- fetchOptions?: FetchOptions | undefined;
1472
- }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
1473
- status: boolean;
1474
- }, {
1475
- code?: string | undefined;
1476
- message?: string | undefined;
1477
- }, FetchOptions["throw"] extends true ? true : false>>;
1478
- } & {
1479
- changeEmail: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
1480
- newEmail: string;
1481
- callbackURL?: string | undefined;
1482
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
1483
- newEmail: string;
1484
- callbackURL?: string | undefined;
1485
- } & {
1486
- fetchOptions?: FetchOptions | undefined;
1487
- }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
1488
- status: boolean;
1489
- }, {
1490
- code?: string | undefined;
1491
- message?: string | undefined;
1492
- }, FetchOptions["throw"] extends true ? true : false>>;
1493
- } & {
1494
- changePassword: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
1495
- newPassword: string;
1496
- currentPassword: string;
1497
- revokeOtherSessions?: boolean | undefined;
1498
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
1499
- newPassword: string;
1500
- currentPassword: string;
1501
- revokeOtherSessions?: boolean | undefined;
1502
- } & {
1503
- fetchOptions?: FetchOptions | undefined;
1504
- }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
1505
- token: string | null;
1506
- user: {
1507
- id: string;
1508
- createdAt: Date;
1509
- updatedAt: Date;
1510
- email: string;
1511
- emailVerified: boolean;
1512
- name: string;
1513
- image?: string | null | undefined;
1514
- } & Record<string, any>;
1515
- }, {
1516
- code?: string | undefined;
1517
- message?: string | undefined;
1518
- }, FetchOptions["throw"] extends true ? true : false>>;
1728
+ email: string;
1729
+ password: string;
1730
+ callbackURL?: string | undefined;
1731
+ rememberMe?: boolean | undefined;
1732
+ } & {
1733
+ fetchOptions?: FetchOptions | undefined;
1734
+ }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
1735
+ redirect: boolean;
1736
+ token: string;
1737
+ url?: string | undefined;
1738
+ user: {
1739
+ id: string;
1740
+ createdAt: Date;
1741
+ updatedAt: Date;
1742
+ email: string;
1743
+ emailVerified: boolean;
1744
+ name: string;
1745
+ image?: string | null | undefined | undefined;
1746
+ };
1747
+ }, {
1748
+ code?: string | undefined;
1749
+ message?: string | undefined;
1750
+ }, FetchOptions["throw"] extends true ? true : false>>;
1751
+ };
1519
1752
  } & {
1520
1753
  updateUser: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<Partial<{}> & {
1521
1754
  name?: string | undefined;
@@ -1525,6 +1758,7 @@ declare const authClient: {
1525
1758
  name?: string | undefined;
1526
1759
  fetchOptions?: FetchOptions | undefined;
1527
1760
  } & Partial<{} & {} & {} & {
1761
+ metadata?: string | null | undefined;
1528
1762
  onboarding?: number | null | undefined;
1529
1763
  preferences?: string | null | undefined;
1530
1764
  flags?: string | null | undefined;
@@ -1535,56 +1769,6 @@ declare const authClient: {
1535
1769
  code?: string | undefined;
1536
1770
  message?: string | undefined;
1537
1771
  }, FetchOptions["throw"] extends true ? true : false>>;
1538
- } & {
1539
- deleteUser: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
1540
- callbackURL?: string | undefined;
1541
- password?: string | undefined;
1542
- token?: string | undefined;
1543
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: _$better_auth0.Prettify<{
1544
- callbackURL?: string | undefined;
1545
- password?: string | undefined;
1546
- token?: string | undefined;
1547
- } & {
1548
- fetchOptions?: FetchOptions | undefined;
1549
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
1550
- success: boolean;
1551
- message: string;
1552
- }, {
1553
- code?: string | undefined;
1554
- message?: string | undefined;
1555
- }, FetchOptions["throw"] extends true ? true : false>>;
1556
- } & {
1557
- requestPasswordReset: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
1558
- email: string;
1559
- redirectTo?: string | undefined;
1560
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
1561
- email: string;
1562
- redirectTo?: string | undefined;
1563
- } & {
1564
- fetchOptions?: FetchOptions | undefined;
1565
- }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
1566
- status: boolean;
1567
- message: string;
1568
- }, {
1569
- code?: string | undefined;
1570
- message?: string | undefined;
1571
- }, FetchOptions["throw"] extends true ? true : false>>;
1572
- } & {
1573
- resetPassword: {
1574
- ":token": <FetchOptions extends _$better_auth0.ClientFetchOption<never, Partial<{
1575
- callbackURL: string;
1576
- }> & Record<string, any>, {
1577
- token: string;
1578
- }>>(data_0: _$better_auth0.Prettify<{
1579
- query: {
1580
- callbackURL: string;
1581
- };
1582
- fetchOptions?: FetchOptions | undefined;
1583
- }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<never, {
1584
- code?: string | undefined;
1585
- message?: string | undefined;
1586
- }, FetchOptions["throw"] extends true ? true : false>>;
1587
- };
1588
1772
  } & {
1589
1773
  listSessions: <FetchOptions extends _$better_auth0.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: _$better_auth0.Prettify<{
1590
1774
  query?: Record<string, any> | undefined;
@@ -1602,188 +1786,6 @@ declare const authClient: {
1602
1786
  code?: string | undefined;
1603
1787
  message?: string | undefined;
1604
1788
  }, FetchOptions["throw"] extends true ? true : false>>;
1605
- } & {
1606
- revokeSession: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
1607
- token: string;
1608
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
1609
- token: string;
1610
- } & {
1611
- fetchOptions?: FetchOptions | undefined;
1612
- }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
1613
- status: boolean;
1614
- }, {
1615
- code?: string | undefined;
1616
- message?: string | undefined;
1617
- }, FetchOptions["throw"] extends true ? true : false>>;
1618
- } & {
1619
- revokeSessions: <FetchOptions extends _$better_auth0.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: _$better_auth0.Prettify<{
1620
- query?: Record<string, any> | undefined;
1621
- fetchOptions?: FetchOptions | undefined;
1622
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
1623
- status: boolean;
1624
- }, {
1625
- code?: string | undefined;
1626
- message?: string | undefined;
1627
- }, FetchOptions["throw"] extends true ? true : false>>;
1628
- } & {
1629
- revokeOtherSessions: <FetchOptions extends _$better_auth0.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: _$better_auth0.Prettify<{
1630
- query?: Record<string, any> | undefined;
1631
- fetchOptions?: FetchOptions | undefined;
1632
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
1633
- status: boolean;
1634
- }, {
1635
- code?: string | undefined;
1636
- message?: string | undefined;
1637
- }, FetchOptions["throw"] extends true ? true : false>>;
1638
- } & {
1639
- linkSocial: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
1640
- provider: unknown;
1641
- callbackURL?: string | undefined;
1642
- idToken?: {
1643
- token: string;
1644
- nonce?: string | undefined;
1645
- accessToken?: string | undefined;
1646
- refreshToken?: string | undefined;
1647
- scopes?: string[] | undefined;
1648
- } | undefined;
1649
- requestSignUp?: boolean | undefined;
1650
- scopes?: string[] | undefined;
1651
- errorCallbackURL?: string | undefined;
1652
- disableRedirect?: boolean | undefined;
1653
- additionalData?: Record<string, any> | undefined;
1654
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
1655
- provider: unknown;
1656
- callbackURL?: string | undefined;
1657
- idToken?: {
1658
- token: string;
1659
- nonce?: string | undefined;
1660
- accessToken?: string | undefined;
1661
- refreshToken?: string | undefined;
1662
- scopes?: string[] | undefined;
1663
- } | undefined;
1664
- requestSignUp?: boolean | undefined;
1665
- scopes?: string[] | undefined;
1666
- errorCallbackURL?: string | undefined;
1667
- disableRedirect?: boolean | undefined;
1668
- additionalData?: Record<string, any> | undefined;
1669
- } & {
1670
- fetchOptions?: FetchOptions | undefined;
1671
- }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
1672
- url: string;
1673
- redirect: boolean;
1674
- }, {
1675
- code?: string | undefined;
1676
- message?: string | undefined;
1677
- }, FetchOptions["throw"] extends true ? true : false>>;
1678
- } & {
1679
- listAccounts: <FetchOptions extends _$better_auth0.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: _$better_auth0.Prettify<{
1680
- query?: Record<string, any> | undefined;
1681
- fetchOptions?: FetchOptions | undefined;
1682
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
1683
- scopes: string[];
1684
- id: string;
1685
- createdAt: Date;
1686
- updatedAt: Date;
1687
- userId: string;
1688
- providerId: string;
1689
- accountId: string;
1690
- }[], {
1691
- code?: string | undefined;
1692
- message?: string | undefined;
1693
- }, FetchOptions["throw"] extends true ? true : false>>;
1694
- } & {
1695
- deleteUser: {
1696
- callback: <FetchOptions extends _$better_auth0.ClientFetchOption<never, Partial<{
1697
- token: string;
1698
- callbackURL?: string | undefined;
1699
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
1700
- query: {
1701
- token: string;
1702
- callbackURL?: string | undefined;
1703
- };
1704
- fetchOptions?: FetchOptions | undefined;
1705
- }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
1706
- success: boolean;
1707
- message: string;
1708
- }, {
1709
- code?: string | undefined;
1710
- message?: string | undefined;
1711
- }, FetchOptions["throw"] extends true ? true : false>>;
1712
- };
1713
- } & {
1714
- unlinkAccount: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
1715
- providerId: string;
1716
- accountId?: string | undefined;
1717
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
1718
- providerId: string;
1719
- accountId?: string | undefined;
1720
- } & {
1721
- fetchOptions?: FetchOptions | undefined;
1722
- }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
1723
- status: boolean;
1724
- }, {
1725
- code?: string | undefined;
1726
- message?: string | undefined;
1727
- }, FetchOptions["throw"] extends true ? true : false>>;
1728
- } & {
1729
- refreshToken: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
1730
- providerId: string;
1731
- accountId?: string | undefined;
1732
- userId?: string | undefined;
1733
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
1734
- providerId: string;
1735
- accountId?: string | undefined;
1736
- userId?: string | undefined;
1737
- } & {
1738
- fetchOptions?: FetchOptions | undefined;
1739
- }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
1740
- accessToken: string | undefined;
1741
- refreshToken: string | undefined;
1742
- accessTokenExpiresAt: Date | undefined;
1743
- refreshTokenExpiresAt: Date | undefined;
1744
- scope: string | null | undefined;
1745
- idToken: string | null | undefined;
1746
- providerId: string;
1747
- accountId: string;
1748
- }, {
1749
- code?: string | undefined;
1750
- message?: string | undefined;
1751
- }, FetchOptions["throw"] extends true ? true : false>>;
1752
- } & {
1753
- getAccessToken: <FetchOptions extends _$better_auth0.ClientFetchOption<Partial<{
1754
- providerId: string;
1755
- accountId?: string | undefined;
1756
- userId?: string | undefined;
1757
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: _$better_auth0.Prettify<{
1758
- providerId: string;
1759
- accountId?: string | undefined;
1760
- userId?: string | undefined;
1761
- } & {
1762
- fetchOptions?: FetchOptions | undefined;
1763
- }>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
1764
- accessToken: string;
1765
- accessTokenExpiresAt: Date | undefined;
1766
- scopes: string[];
1767
- idToken: string | undefined;
1768
- }, {
1769
- code?: string | undefined;
1770
- message?: string | undefined;
1771
- }, FetchOptions["throw"] extends true ? true : false>>;
1772
- } & {
1773
- accountInfo: <FetchOptions extends _$better_auth0.ClientFetchOption<never, Partial<{
1774
- accountId?: string | undefined;
1775
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: _$better_auth0.Prettify<{
1776
- query?: {
1777
- accountId?: string | undefined;
1778
- } | undefined;
1779
- fetchOptions?: FetchOptions | undefined;
1780
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
1781
- user: _$better_auth0.OAuth2UserInfo;
1782
- data: Record<string, any>;
1783
- }, {
1784
- code?: string | undefined;
1785
- message?: string | undefined;
1786
- }, FetchOptions["throw"] extends true ? true : false>>;
1787
1789
  } & {
1788
1790
  getSession: <FetchOptions extends _$better_auth0.ClientFetchOption<never, Partial<{
1789
1791
  disableCookieCache?: unknown;
@@ -1807,6 +1809,7 @@ declare const authClient: {
1807
1809
  role?: string | null | undefined;
1808
1810
  banReason?: string | null | undefined;
1809
1811
  banExpires?: Date | null | undefined;
1812
+ metadata?: string | null | undefined;
1810
1813
  onboarding?: number | null | undefined;
1811
1814
  preferences?: string | null | undefined;
1812
1815
  flags?: string | null | undefined;
@@ -1976,6 +1979,7 @@ declare const authClient: {
1976
1979
  role?: string | null | undefined;
1977
1980
  banReason?: string | null | undefined;
1978
1981
  banExpires?: Date | null | undefined;
1982
+ metadata?: string | null | undefined;
1979
1983
  onboarding?: number | null | undefined;
1980
1984
  preferences?: string | null | undefined;
1981
1985
  flags?: string | null | undefined;
@@ -2019,6 +2023,7 @@ declare const authClient: {
2019
2023
  role?: string | null | undefined;
2020
2024
  banReason?: string | null | undefined;
2021
2025
  banExpires?: Date | null | undefined;
2026
+ metadata?: string | null | undefined;
2022
2027
  onboarding?: number | null | undefined;
2023
2028
  preferences?: string | null | undefined;
2024
2029
  flags?: string | null | undefined;