mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-29 20:34:28 +00:00
feat(team): add member scope labels and visibility filtering for project-scoped members
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user