mirror of
https://github.com/Sea-Haven-Industries/seahaven-ap.git
synced 2026-10-04 04:13:13 +00:00
29 lines
465 B
TypeScript
29 lines
465 B
TypeScript
|
|
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 };
|
||
|
|
};
|
||
|
|
};
|