/**
 * 发送消息请求
 * 
 */
import { z } from "zod";

import {
  booleanOrFalse,
  numberOrZero,
  stringOrEmpty,
} from "../../nullable-defaults";

export const SendMessageRequestSchema = z.object({
  message: stringOrEmpty,
  image: stringOrEmpty,
  imageId: stringOrEmpty,
  imageThumbUrl: stringOrEmpty,
  imageMediumUrl: stringOrEmpty,
  imageOriginalUrl: stringOrEmpty,
  imageWidth: numberOrZero,
  imageHeight: numberOrZero,
  useWebSocket: booleanOrFalse,
});

export type SendMessageRequestInput = z.input<typeof SendMessageRequestSchema>;
export type SendMessageRequestData = z.output<typeof SendMessageRequestSchema>;
