import { z } from 'zod';

const ServiceStateSchema = z.enum(['up', 'down']);

export const HealthResponseSchema = z.object({
  status: z.enum(['ok', 'degraded']),
  services: z.object({
    database: ServiceStateSchema,
    redis: ServiceStateSchema,
    storage: ServiceStateSchema,
  }),
});
export type HealthResponse = z.infer<typeof HealthResponseSchema>;
