/**
 * 聊天历史响应
 * 
 */
import { z } from "zod";
import { ChatMessageSchema } from "./chat_message";

export const ChatHistoryResponseSchema = z.object({
  messages: z.array(ChatMessageSchema),
  total: z.number().default(0),
  limit: z.number(),
  offset: z.number(),
  isVip: z.boolean().default(false),
  privateFreeLimit: z.number().default(0),
  privateUsedToday: z.number().default(0),
  privateCanViewFree: z.boolean().default(false),
});

export type ChatHistoryResponseInput = z.input<typeof ChatHistoryResponseSchema>;
export type ChatHistoryResponseData = z.output<typeof ChatHistoryResponseSchema>;
