/** * 发送消息请求 * */ import { z } from "zod"; import { booleanOrFalse, numberOrZero, stringOrEmpty, } from "../../nullable-defaults"; export const SendMessageRequestSchema = z .object({ characterId: z.string().min(1), message: stringOrEmpty, image: stringOrEmpty, imageId: stringOrEmpty, imageThumbUrl: stringOrEmpty, imageMediumUrl: stringOrEmpty, imageOriginalUrl: stringOrEmpty, imageWidth: numberOrZero, imageHeight: numberOrZero, useWebSocket: booleanOrFalse, }) .readonly(); export type SendMessageRequestInput = z.input; export type SendMessageRequestData = z.output; export type SendMessageRequest = SendMessageRequestData;