Skip to content

Commit 69495c2

Browse files
fix(frontend): add HealthStatus type to api.ts for TypeScript compilation
The Server interface in api.ts was missing the health field and HealthStatus interface that were added to contracts.ts. This caused TypeScript compilation errors in ServerCard.vue and Dashboard.vue. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent c61d13e commit 69495c2

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

frontend/src/types/api.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ export interface APIResponse<T = any> {
55
error?: string
66
}
77

8+
// Health Status types (unified across all interfaces)
9+
export interface HealthStatus {
10+
level: 'healthy' | 'degraded' | 'unhealthy'
11+
admin_state: 'enabled' | 'disabled' | 'quarantined'
12+
summary: string
13+
detail?: string
14+
action?: 'login' | 'restart' | 'enable' | 'approve' | 'view_logs' | ''
15+
}
16+
817
// Server types
918
export interface Server {
1019
name: string
@@ -27,6 +36,7 @@ export interface Server {
2736
oauth_status?: 'authenticated' | 'expired' | 'error' | 'none'
2837
token_expires_at?: string
2938
user_logged_out?: boolean // True if user explicitly logged out (prevents auto-reconnection)
39+
health?: HealthStatus // Unified health status calculated by the backend
3040
}
3141

3242
// Tool Annotation types

0 commit comments

Comments
 (0)