import { z } from "zod";

export const OpeningMessageRequestSchema = z
  .object({
    characterId: z.string().min(1).max(100),
    openingMessage: z.string().min(1).max(1000),
  })
  .readonly();

export const OpeningMessageResponseSchema = z
  .object({
    messageId: z.string().min(1),
    created: z.boolean(),
    openingMessage: z.string().min(1),
    createdAt: z.string().min(1),
  })
  .readonly();

export type OpeningMessageRequest = z.output<
  typeof OpeningMessageRequestSchema
>;
export type OpeningMessageResponse = z.output<
  typeof OpeningMessageResponseSchema
>;
