import { z } from 'zod'; export const ProjectSchema = z.object({ id: z.string(), title: z.string(), subtitle: z.string().optional(), description: z.string(), image: z.string().optional(), category: z.enum(['web', 'mobile', 'bot', 'infra', 'other']).default('web'), status: z.enum(['live', 'archived', 'private', 'wip']).default('live'), url: z.url().optional(), repoUrl: z.url().optional(), stack: z.array(z.string()).default([]), featured: z.boolean().default(false), }); export const ProjectsSchema = z.object({ items: z.array(ProjectSchema), }); export type Project = z.infer; export type Projects = z.infer;