export type ErrorEnvelope = { error: { code: string; message: string; correlationId: string; }; }; export type HealthResponse = { stage: string; sha: string; }; export type MeResponse = { id: string; email: string; name: string; role: "admin" | "ap_processor" | "approver" | "viewer"; }; export type ApiPaths = { "/api/health": { get: { response: HealthResponse }; }; "/api/me": { get: { response: MeResponse }; }; };