Merge branch 'main' into feat/virtualize-file-list

This commit is contained in:
yiling
2026-06-10 17:11:31 +08:00
30 changed files with 954 additions and 733 deletions
+3 -2
View File
@@ -46,8 +46,9 @@ export type GetProjectTeamResponse = z.infer<typeof getProjectTeamResponseSchema
export const projectUserInfoSchema = z.object({
id: z.string(),
name: z.string(),
role: 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>
@@ -96,7 +97,7 @@ export interface ServiceListProjectsRequest {
export interface ServiceAddProjectMemberRequest {
projectId: string
userId: string
role: string
role: 'owner' | 'editor' | 'reviewer' | 'bot' | 'unknown'
}
export interface ServiceListProjectMembersRequest {
+4 -2
View File
@@ -33,7 +33,7 @@ export const getMeResponseSchema = z.object({
id: z.string(),
name: z.string(),
email: z.string().optional(),
role: z.string(),
role: z.enum(['owner', 'editor', 'reviewer', 'bot', 'unknown']),
image: z.string().optional(),
unreadNotificationCount: z.number().optional(),
})
@@ -48,10 +48,11 @@ export type UpdateMeRequest = z.infer<typeof updateMeRequestSchema>
export const userInfoSchema = z.object({
id: z.string(),
name: z.string(),
role: z.string(),
role: z.enum(['owner', 'editor', 'reviewer', 'bot', 'unknown']),
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
}