This commit is contained in:
yiling
2026-06-02 14:57:03 +08:00
parent be29c21564
commit 35b0081e23
15 changed files with 378 additions and 74 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
import { z } from 'zod'
import { NotificationType } from '@shumai/db'
import type { NotificationType } from '@shumai/db'
export const teamUserInfoSchema = z.object({
id: z.string().optional(),
+1 -2
View File
@@ -1,6 +1,5 @@
import { z } from 'zod'
import { paginationPageInfoSchema, paginationParamsSchema } from './pagination'
import { UserType } from '@shumai/db'
export const createTeamRequestSchema = z.object({
name: z.string(),
@@ -44,7 +43,7 @@ export const userInfoSchema = z.object({
name: z.string(),
role: z.string(),
email: z.string().optional(),
type: z.nativeEnum(UserType).optional(),
type: z.enum(['human', 'agent']).optional(),
})
export type UserInfo = z.infer<typeof userInfoSchema>