add shared contracts

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Harivansh Rathi 2026-03-31 21:25:38 +00:00
parent bc1878c1da
commit 679fd504a2
6 changed files with 126 additions and 0 deletions

View file

@ -0,0 +1,25 @@
export const CONTROL_PLANE_ROUTES = {
health: "/health",
version: "/version"
} as const;
export interface NextcloudBackendStatus {
configured: boolean;
baseUrl: string;
provider: "nextcloud";
}
export interface ControlPlaneHealthResponse {
service: "control-plane";
status: "ok";
timestamp: string;
uptimeSeconds: number;
nextcloud: NextcloudBackendStatus;
}
export interface ControlPlaneVersionResponse {
service: "control-plane";
version: string;
apiVersion: "v1";
}

View file

@ -0,0 +1,2 @@
export * from "./control-plane.js";