Dominevo
ReferenceHTTP APIShapes

Shapes: Z

Named input and output shapes starting with Z, referenced from the router pages.

Each shape is a TypeScript-style rendering of the validation schema. ? marks an optional field; self is a recursive reference.

ZoneCrossingDirectionSchema

"enter" | "exit"

ZoneCrossingSchema

{
  direction: ZoneCrossingDirectionSchema
  zoneId: string
  zoneName?: string
}

ZoneKindEnum

"polygon" | "tripwire"

ZoneRuleModeEnum

"include" | "exclude"

ZoneRuleSchema

{
  id: string
  name?: string
  zoneIds: string[]
  mode: ZoneRuleModeEnum
  classFilter?: string[]
  overlapThreshold?: number
  bboxInclusionPct?: number
  preferMask?: boolean
  enabled?: boolean = true
  detectBySceneDifference?: boolean
  confirmWithLlm?: boolean
}

ZoneRuleStageEnum

"motion" | "detection" | "package"

ZoneSchema

{
  id: string
  name: string
  kind?: ZoneKindEnum = "polygon"
  polygon: PolygonPointSchema[]
  color?: string = "#3b82f6"
}

ZoneScopeBreakdownSchema

{
  totalObjects: number
  byClass: Record<string, number>
  standingObjects?: number
  transientObjects?: number
  zoneId: string
  zoneName: string
  trackIds: string[]
}