import { z } from "zod"; export const templateManifestSchema = z.object({ id: z .string() .describe("A unique identifier for the template. Can be any string, but should be unique.") .optional(), name: z.string(), description: z.string().optional(), readme: z.string().optional(), tags: z.array(z.string()).optional(), author: z.string().optional(), thumbnail: z.string().describe("A URL to the thumbnail image for the template.").optional(), homepage: z.string().describe("A URL to the homepage of the template.").optional(), }); export type TemplateManifest = z.infer; export type PublishedTemplateManifest = TemplateManifest & Required>;