"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.smartSearchSchema = exports.chatSchema = exports.generateAutoTagsSchema = exports.generateFaqsSchema = exports.generateKeywordsSchema = exports.generateSeoSchema = exports.generateDescriptionSchema = void 0;
const zod_1 = require("zod");
exports.generateDescriptionSchema = zod_1.z.object({
    title: zod_1.z.string().min(1, 'Book title is required'),
    subtitle: zod_1.z.string().optional(),
    author: zod_1.z.string().optional(),
    category: zod_1.z.string().optional(),
    language: zod_1.z.string().optional(),
    binding: zod_1.z.string().optional(),
    pageCount: zod_1.z.number().optional(),
    keywords: zod_1.z.string().optional(),
});
exports.generateSeoSchema = zod_1.z.object({
    title: zod_1.z.string().min(1, 'Book title is required'),
    author: zod_1.z.string().optional(),
    category: zod_1.z.string().optional(),
    description: zod_1.z.string().optional(),
});
exports.generateKeywordsSchema = zod_1.z.object({
    title: zod_1.z.string().min(1, 'Book title is required'),
    category: zod_1.z.string().optional(),
    description: zod_1.z.string().optional(),
});
exports.generateFaqsSchema = zod_1.z.object({
    title: zod_1.z.string().min(1, 'Book title is required'),
    author: zod_1.z.string().optional(),
    binding: zod_1.z.string().optional(),
    description: zod_1.z.string().optional(),
    price: zod_1.z.number().optional(),
});
exports.generateAutoTagsSchema = zod_1.z.object({
    title: zod_1.z.string().min(1, 'Book title is required'),
    description: zod_1.z.string().optional(),
});
exports.chatSchema = zod_1.z.object({
    messages: zod_1.z.array(zod_1.z.object({
        role: zod_1.z.enum(['user', 'assistant', 'system']),
        content: zod_1.z.string().min(1),
    })).min(1, 'At least one message is required'),
});
exports.smartSearchSchema = zod_1.z.object({
    query: zod_1.z.string().min(1, 'Search query is required'),
    page: zod_1.z.number().optional(),
    limit: zod_1.z.number().optional(),
});
//# sourceMappingURL=ai.validator.js.map