mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-06 16:24:17 +00:00
feat(webui): use project members for asset comment mentions (#315)
* feat(webui): use project members for asset comment mentions * refactor(project): remove legacy unused bots endpoint and props
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { z } from 'zod'
|
||||
import { UserType } from '@shumai/db/enums'
|
||||
import { paginationPageInfoSchema, paginationParamsSchema } from './pagination'
|
||||
|
||||
export const createProjectRequestSchema = z.object({
|
||||
@@ -48,18 +49,13 @@ export const projectUserInfoSchema = z.object({
|
||||
id: z.string(),
|
||||
name: z.string(),
|
||||
role: z.enum(['owner', 'editor', 'reviewer', 'bot', 'unknown']),
|
||||
type: z.nativeEnum(UserType).optional(),
|
||||
image: z.string().optional(),
|
||||
scope: z.enum(['team', 'project']).optional(),
|
||||
hasCustomRole: z.boolean().optional(),
|
||||
})
|
||||
export type ProjectUserInfo = z.infer<typeof projectUserInfoSchema>
|
||||
|
||||
export const botInfoSchema = z.object({
|
||||
id: z.string(),
|
||||
name: z.string(),
|
||||
})
|
||||
export type BotInfo = z.infer<typeof botInfoSchema>
|
||||
|
||||
export const recentlyDeletedRequestSchema = z
|
||||
.object({
|
||||
assetType: z.string(),
|
||||
|
||||
Reference in New Issue
Block a user