generated from CubeCraft-Creations/Tracehound
CUB-195: add useSSE hook and Zustand camera store for live SSE events
This commit is contained in:
@@ -1,5 +1,26 @@
|
||||
// RemoteRig TypeScript types
|
||||
|
||||
/** Full camera status from GET /api/v1/cameras and SSE events */
|
||||
export interface CameraStatus {
|
||||
camera_id: string
|
||||
friendly_name: string
|
||||
battery_pct: number | null
|
||||
video_remaining_sec: number | null
|
||||
recording: boolean
|
||||
mode: string
|
||||
resolution: string
|
||||
fps: number
|
||||
online: boolean
|
||||
last_seen: string // ISO 8601
|
||||
}
|
||||
|
||||
/** SSE event envelope from /api/v1/events/stream */
|
||||
export interface SSEEvent {
|
||||
type: string
|
||||
ts: string
|
||||
payload?: unknown
|
||||
}
|
||||
|
||||
export interface Camera {
|
||||
id: string
|
||||
name: string
|
||||
|
||||
Reference in New Issue
Block a user