mirror of
https://github.com/harivansh-afk/betterNAS.git
synced 2026-04-16 14:01:06 +00:00
add shared contracts
Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
parent
bc1878c1da
commit
679fd504a2
6 changed files with 126 additions and 0 deletions
25
packages/contracts/src/control-plane.ts
Normal file
25
packages/contracts/src/control-plane.ts
Normal 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";
|
||||
}
|
||||
|
||||
2
packages/contracts/src/index.ts
Normal file
2
packages/contracts/src/index.ts
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
export * from "./control-plane.js";
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue