dify/web/gen/zod/models/message.ts
Stephen Zhou 4061c83b26
no sufix
2026-01-25 16:19:07 +08:00

21 lines
713 B
TypeScript

// This file is auto-generated by @hey-api/openapi-ts
import { z } from 'zod'
export const zMessageFeedbackRequest = z.object({
rating: z.enum(['like', 'dislike']).nullable().optional(),
user: z.string(),
content: z.string().optional(),
})
export type MessageFeedbackRequestZodType = z.infer<typeof zMessageFeedbackRequest>
export const zMessageFileItem = z.object({
id: z.string().uuid().optional(),
type: z.string().describe('File type, e.g., \'image\'.').optional(),
url: z.string().describe('Preview image URL.').optional(),
belongs_to: z.enum(['user', 'assistant']).describe('Who this file belongs to.').optional(),
})
export type MessageFileItemZodType = z.infer<typeof zMessageFileItem>