export type HealthStatus = { status: "ok"; deploymentMode?: "local_trusted" | "authenticated"; deploymentExposure?: "private" | "public"; authReady?: boolean; bootstrapStatus?: "ready" | "bootstrap_pending"; }; export const healthApi = { get: async (): Promise => { const res = await fetch("/api/health", { credentials: "include", headers: { Accept: "application/json" }, }); if (!res.ok) { throw new Error(`Failed to load health (${res.status})`); } return res.json(); }, };