feat(team): add member scope labels and visibility filtering for project-scoped members

This commit is contained in:
yiling
2026-06-10 11:12:48 +08:00
parent 6eef719fdc
commit d364674735
7 changed files with 120 additions and 3 deletions
+1
View File
@@ -48,6 +48,7 @@ export const projectUserInfoSchema = z.object({
name: z.string(),
role: z.enum(['owner', 'editor', 'reviewer', 'bot', 'unknown']),
image: z.string().optional(),
scope: z.enum(['team', 'project']).optional(),
})
export type ProjectUserInfo = z.infer<typeof projectUserInfoSchema>
+2
View File
@@ -52,6 +52,7 @@ export const userInfoSchema = z.object({
email: z.string().optional(),
type: z.enum(['human', 'agent']).optional(),
image: z.string().optional(),
scope: z.enum(['team', 'project']).optional(),
})
export type UserInfo = z.infer<typeof userInfoSchema>
@@ -112,6 +113,7 @@ export interface ServiceGetMeRequest {
export interface ServiceGetTeamMembersRequest {
teamId: string
userId: string
includeAgents?: boolean
}