Remove dead CentralState types (replaced by resource-specific types)

This commit is contained in:
2026-07-10 22:48:40 +00:00
parent 79f38d2750
commit cd2f28df34

View File

@@ -5,60 +5,6 @@ export interface Status {
timestamp: string;
}
// ========================================
// Global Config Types (Wild Central level)
// Endpoint: /api/v1/state
// File: {dataDir}/state.yaml
// ========================================
export interface HAProxyCustomRoute {
name: string;
port: number;
backend: string;
}
export interface CentralState {
operator?: {
email?: string;
};
cloud?: {
central?: {
domain?: string;
};
dnsmasq?: {
ip?: string;
interface?: string;
dhcp?: {
enabled?: boolean;
rangeStart?: string;
rangeEnd?: string;
leaseTime?: string;
gateway?: string;
};
};
haproxy?: {
defaultInstance?: string;
customRoutes?: HAProxyCustomRoute[];
};
nftables?: {
enabled?: boolean;
wanInterface?: string;
extraPorts?: Array<{ port: number; protocol?: string; label?: string }>;
};
ddns?: {
enabled?: boolean;
provider?: string;
intervalMinutes?: number;
};
};
}
export interface CentralStateResponse {
configured: boolean;
state?: CentralState;
message?: string;
}
// ========================================
// Instance Config Types (Wild Cloud instance level)
// Endpoint: /api/v1/instances/{name}/config