mirror of
https://github.com/labring/FastGPT.git
synced 2025-12-28 15:42:55 +00:00
Some checks are pending
Deploy image by kubeconfig / build-fastgpt-docs-images (push) Waiting to run
Deploy image by kubeconfig / update-docs-image (push) Blocked by required conditions
Deploy image to vercel / deploy-production (push) Waiting to run
Build FastGPT images in Personal warehouse / build-fastgpt-images (push) Waiting to run
46 lines
1.1 KiB
TypeScript
46 lines
1.1 KiB
TypeScript
import { PermissionValueType } from '../../permission/type';
|
|
import { TeamMemberRoleEnum } from './constant';
|
|
import { LafAccountType, TeamMemberSchema } from './type';
|
|
|
|
export type AuthTeamRoleProps = {
|
|
teamId: string;
|
|
tmbId: string;
|
|
role?: `${TeamMemberRoleEnum}`;
|
|
};
|
|
export type CreateTeamProps = {
|
|
name: string;
|
|
avatar?: string;
|
|
defaultTeam?: boolean;
|
|
lafAccount?: LafAccountType;
|
|
};
|
|
export type UpdateTeamProps = {
|
|
name?: string;
|
|
avatar?: string;
|
|
teamDomain?: string;
|
|
lafAccount?: null | LafAccountType;
|
|
};
|
|
|
|
/* ------------- member ----------- */
|
|
export type DelMemberProps = {
|
|
tmbId: string;
|
|
};
|
|
export type UpdateTeamMemberProps = {
|
|
teamId: string;
|
|
memberId: string;
|
|
role?: TeamMemberSchema['role'];
|
|
status?: TeamMemberSchema['status'];
|
|
};
|
|
export type InviteMemberProps = {
|
|
teamId: string;
|
|
usernames: string[];
|
|
permission: PermissionValueType;
|
|
};
|
|
export type UpdateInviteProps = {
|
|
tmbId: string;
|
|
status: TeamMemberSchema['status'];
|
|
};
|
|
export type InviteMemberResponse = Record<
|
|
'invite' | 'inValid' | 'inTeam',
|
|
{ username: string; userId: string }[]
|
|
>;
|