import { z } from 'zod/v4'; export const ContentsResponse = z.object({ name: z.string(), path: z.string(), type: z.union([z.literal('file'), z.literal('dir')]), content: z.string().nullable(), }); export type ContentsResponse = z.infer; export const ContentsListResponse = z.array(ContentsResponse);