mirror of
https://github.com/langgenius/dify.git
synced 2026-05-13 08:57:28 +08:00
21 lines
713 B
TypeScript
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>
|