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