refactor(dtos): use @shumai/db/enums across DTO definitions

This commit is contained in:
yiling
2026-08-01 10:47:41 +08:00
parent 11fc76e56b
commit 7dfb2c7f2f
5 changed files with 18 additions and 8 deletions
+3 -2
View File
@@ -1,7 +1,8 @@
import { z } from 'zod'
import { AgentType } from '@shumai/db/enums'
export const agentTypeSchema = z.enum(['chat', 'autofill', 'embedding'])
export type AgentType = z.infer<typeof agentTypeSchema>
export { AgentType }
export const agentTypeSchema = z.nativeEnum(AgentType)
export const thinkingLevelSchema = z.enum(['off', 'minimal', 'low', 'medium', 'high', 'xhigh'])
export type ThinkingLevel = z.infer<typeof thinkingLevelSchema>