Skip to main content

Module models

Module models 

Source

Structs§

AiIngest
Payload an AI worker POSTs to ingest detections (and optionally an event) for a camera.
AiTask
A perception task to run on a camera (consumed by AI workers).
AiTaskCreate
AiTaskUpdate
ApiKey
ApiKeyCreate
ApiKeyView
Camera
Camera row as stored. password is never serialized to clients; use CameraView for output.
CameraCreate
Payload to create a camera. id may be omitted (slug auto-derived from name).
CameraStatus
CameraUpdate
Partial update; only present fields are changed.
CameraView
Client-facing camera representation: credentials stripped, stream URLs masked.
Detection
A detection result posted by an AI worker.
DetectionIngest
One detection inside an ingest request.
Event
IngestEvent
Optional event an AI worker can raise alongside its detections.
LoginRequest
Segment
User
Operator account. password_hash is never serialized; use UserView for output.
UserCreate
UserUpdate
UserView
Zone
A polygon region on a camera; tracked detections crossing it raise enter/exit/dwell events.
ZoneCreate
ZoneEvent
ZoneUpdate