import { z } from 'zod'; import { WriterDocumentSchema } from '../../models'; export namespace GenerateWriterDocumentOutlineCommand { export const RequestParamsSchema = z.object({ uuid: z.string().uuid(), }); export type RequestParams = z.infer; export const RequestBodySchema = z.object({ numPages: z.number(), description: z .string() .nullable() .optional() .describe( "If set to null existing description will be used. Otherwise replaces document's description", ), }); export type RequestBody = z.infer; export const ResponseSchema = z.object({ data: WriterDocumentSchema, }); export type Response = z.infer; }