Files
atc-agents/ui/src/types.ts
T

45 lines
727 B
TypeScript
Raw Normal View History

export type Agent = {
id: string
name: string
color: string
zone: string
role: string
}
export type Zone = { id: string; label: string; x: number; color: string }
export type FeedEntry = {
id: string
ts: string
agent_id: string
message: string
level: string
}
export type DomainStatus = {
level: 'ok' | 'warn' | 'down' | 'unknown'
label: string
}
export type StatusData = {
ts: string
domains: Record<string, DomainStatus>
}
export type AgentState = 'idle' | 'walk' | 'fetch' | 'return'
export type AgentAnim = {
agentId: string
state: AgentState
zone?: string
}
export type Approval = {
id: string
ts: string
agent_id: string
action: string
reason: string
status: string
}