import { z } from 'zod'; import { SlideSchema } from '../../models/presentation'; import { SLIDE_CONTENT_TYPE, SLIDE_LAYOUT } from '../../constants'; export namespace GenerateAndInsertSlideCommand { export const RequestSchema = z.object({ contentTypeId: z.nativeEnum(SLIDE_CONTENT_TYPE), prompt: z.string().max(10000).optional(), title: z.string().min(1).max(80), position: z.number().min(0), layoutId: z.nativeEnum(SLIDE_LAYOUT).optional(), }); export type Request = z.infer; export const RequestParamsSchema = z.object({ uuid: z.string().uuid(), }); export type RequestParams = z.infer; export const ResponseSchema = z.object({ data: z.array(SlideSchema), }); export type Response = z.infer; }