mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-02 14:04:50 +00:00
fix(webui): correct settings role check and tighten DTO role types
This commit is contained in:
@@ -46,7 +46,7 @@ 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(),
|
||||
})
|
||||
export type ProjectUserInfo = z.infer<typeof projectUserInfoSchema>
|
||||
@@ -96,7 +96,7 @@ export interface ServiceListProjectsRequest {
|
||||
export interface ServiceAddProjectMemberRequest {
|
||||
projectId: string
|
||||
userId: string
|
||||
role: string
|
||||
role: 'owner' | 'editor' | 'reviewer' | 'bot' | 'unknown'
|
||||
}
|
||||
|
||||
export interface ServiceListProjectMembersRequest {
|
||||
|
||||
Reference in New Issue
Block a user