/** * Shape of the liveness responses served by every Dorfteich service * (`/healthz` on web, api, and collab). Readiness (`/readyz`) has a richer, * service-specific shape and lives with the api. */ export interface HealthResponse { status: 'ok'; service: 'web' | 'api' | 'collab'; version: string; time: string; } export function healthResponse( service: HealthResponse['service'], version: string, ): HealthResponse { return { status: 'ok', service, version, time: new Date().toISOString(), }; }