Dominevo
ReferenceHTTP APIShapes

Shapes: M

Named input and output shapes starting with M, 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.

ManagedModelCatalogEntrySchema

{
  id: string
  label: string
  family: string
  purpose: "text" | "vision"
  url: string
  sha256: string
  sizeBytes: number
  quantization: string
  minRamBytes: number
  contextSizeDefault: number
  mmprojUrl?: string
}

ManagedModelExtraFileSchema

{
  url: string
  filename: string
  sizeBytes: number
  sha256?: string
}

ManagedModelRefSchema

| { kind: "catalog"; catalogId: string }
| { kind: "url"; url: string; sha256?: string; label?: string; sizeBytes?: number; extraFiles?: ManagedModelExtraFileSchema[] }
| { kind: "path"; path: string }

ManagedRuntimeConfigSchema

{
  nodeId: string
  engine: "llama-cpp"
  model: ManagedModelRefSchema
  contextSize?: number = 4096
  gpuLayers?: number = 0
  threads?: number
  parallel?: number = 1
  batchSize?: number
  ubatchSize?: number
  flashAttention?: boolean = false
  mlock?: boolean = false
  noMmap?: boolean = false
  cacheTypeK?: "f32" | "f16" | "q8_0" | "q5_1" | "q5_0" | "q4_1" | "q4_0"
  cacheTypeV?: "f32" | "f16" | "q8_0" | "q5_1" | "q5_0" | "q4_1" | "q4_0"
  extraArgs?: string[] = []
  autoStart?: boolean = false
  idleStopMinutes?: number = 30
}

MaskGridDimsSchema

{
  width: number
  height: number
}

MaskGridShapeSchema

{
  kind: "grid"
  gridWidth: number
  gridHeight: number
  cells: boolean[]
}

MaskPointSchema

{
  x: number
  y: number
}

MaskPolygonShapeSchema

{
  kind: "polygon"
  points: MaskPointSchema[]
}

MaskPolygonVerticesSchema

{
  min: number
  max: number
}

MaskRectShapeSchema

{
  kind: "rect"
  x: number
  y: number
  width: number
  height: number
}

MaskShapeKindSchema

"rect" | "polygon" | "grid" | "line"

MediaFileInfoSchema

{
  mediaId: number
  kind: MediaFileKindEnum
  sizeBytes: number
  timestamp: number
  url: string
}

MediaFileKindEnum

"crop" | "thumbnail" | "snapshot" | "firstFrame" | "lastFrame" | "fullFrame" | "fullFrameBoxed" | "faceCrop" | "plateCrop" | "keyFrame" | "keyFrameSmall" | "thumbnailSmall" | "confirmationCrop" | "debugCrop" | "sceneFrame" | "lastSceneFrame"

MediaFileSchema

{
  mediaId: number
  kind: MediaFileKindEnum
  sizeBytes: number
  timestamp: number
  url: string
  base64: string
}

MediaPlayerAssumedFieldSchema

"state" | "volumeLevel" | "isMuted" | "source"

MediaPlayerRepeatSchema

"off" | "all" | "one"

MediaPlayerStateSchema

"off" | "on" | "idle" | "playing" | "paused" | "buffering" | "standby"

MediaPlayerStateSourceSchema

"reported" | "assumed"

MediaPlayerStatusSchema

{
  state: MediaPlayerStateSchema
  stateSource?: MediaPlayerStateSourceSchema = "reported"
  assumedFields?: MediaPlayerAssumedFieldSchema[] = []
  volumeLevel: number | null
  isMuted: boolean | null
  muteReadback?: boolean
  source: string
  availableSources: string[]
  declaredSources?: ({ name: string; kind: "digits" | "sequence" | "ir"; number?: string })[]
  currentMedia: { type: string; title: string; artist?: string; album?: string; imageUrl?: string } | null
  position: number | null
  duration: number | null
  shuffle: boolean | null
  repeat: MediaPlayerRepeatSchema | null
  positionUpdatedAt?: number | null = null
  lastChangedAt: number
}

MeshLeafInfoSchema

{
  cn: string
  serial: string
  fingerprintSha256: string
  notBefore: number
  notAfter: number
}

MeshLinkSchema

{
  from: string
  to: string
  kind: "neighbor" | "route"
  lqi: number | null
  rssi: number | null
}

MeshNetworkInfoSchema

{
  id: string
  name: string | null
  technology: MeshTechnologySchema
  channel: number | null
  panId: number | null
}

MeshNodeDiagnosticsSchema

{
  deviceId: number
  readAt: number | null
  vendor: string | null
  product: string | null
  hardwareVersion: string | null
  softwareVersion: string | null
  uptimeS: number | null
  rebootCount: number | null
  bootReason: string | null
  networkFaults: string[] | null
  fabrics: ({ fabricIndex: number; label: string | null; vendorId: number | null })[] | null
  thread: { role: string | null; rloc16: number | null; channel: number | null; panId: number | null; extPanId: string | null; partitionId: number | null; neighbors: ({ extAddress: string; rloc16: number | null; lqi: number | null; averageRssi: number | null; lastRssi: number | null; ageS: number | null; isChild: boolean | null; fullThreadDevice: boolean | null })[] | null; routes: ({ extAddress: string; rloc16: number | null; routerId: number | null; nextHop: number | null; pathCost: number | null; lqiIn: number | null; lqiOut: number | null; linkEstablished: boolean | null })[] | null } | null
  wifi: { bssid: string | null; rssi: number | null; channel: number | null; security: string | null } | null
  ethernet: { phyRateMbps: number | null; fullDuplex: boolean | null; carrierDetect: boolean | null } | null
}

MeshNodeSchema

{
  deviceId: number | null
  nodeKey: string
  label: string
  transport: "thread" | "wifi" | "ethernet" | "zigbee" | "unknown"
  role: "border-router" | "router" | "end-device" | "sleepy-end-device" | "coordinator" | "unknown"
  power: "mains" | "battery" | "unknown"
  online: boolean
  rssi: number | null
  lqi: number | null
  lastReadAt: number | null
  networkId?: string | null
}

MeshPeerSchema

{
  id: string
  hostname: string
  magicDns: string
  addresses: string[]
  os?: string
  online: boolean
  lastSeenMs: number
  isSelf: boolean
  connection: "direct" | "relay" | "idle"
  relay: string | null
  lastHandshakeMs: number
  rxBytes: number
  txBytes: number
  tags: string[]
  exitNodeOption: boolean
  advertisedRoutes: string[]
  userLogin: string | null
  keyExpiry: number | null
}

MeshStatusSchema

{
  joined: boolean
  meshIp: string
  magicDnsHostname: string
  peerCount: number
  endpoints: ({ id: string; label: string; scope: "mesh" | "public"; url: string; hostname: string; port: number; protocol: "http" | "https" })[]
  error?: string
  tenantName: string
  magicDnsSuffix: string
  userLogin: string | null
  controlPlaneUrl: string
  keyExpiry: number | null
  daemonSocket?: string
  daemonCliPath?: string
}

MeshTechnologySchema

"thread" | "wifi" | "ethernet" | "zigbee"

MeshTopologySchema

{
  network: MeshNetworkInfoSchema | null
  readAt: number | null
  nodes: MeshNodeSchema[]
  links: MeshLinkSchema[]
}

MeterStatusSchema

{
  value: number | null
  lastFetchedAt: number
}

MigrateDeviceResultSchema

{
  sourceId: number
  targetId: number
  switches: MigrateSwitchReportSchema[]
  sourceStillLive: ("stream-broker" | "object-detection" | "privacy-mask" | "device-audio" | "broker-audio" | "audio-analysis" | "event-saving" | "recording" | "notifications")[]
  swapped: boolean
  secretScopes: { exchanged: boolean; markersRepointed: number; refsAtSource: string[]; refsAtTarget: string[] }
}

MigrateSwitchOutcomeSchema

"off" | "on" | "not-offered" | "unreachable"

MigrateSwitchReportSchema

{
  deviceId: number
  switchId: "stream-broker" | "object-detection" | "privacy-mask" | "device-audio" | "broker-audio" | "audio-analysis" | "event-saving" | "recording" | "notifications"
  outcome: MigrateSwitchOutcomeSchema
  detail?: string
}

ModelBundleFileSchema

{
  path: string
  bytes: number
  sha256: string
}

ModelConvertInputSchema

{
  sourceUrl: string
  metadata: { id: string; name: string; labels: ({ id: string; name: string; category?: string; description?: string; icon?: string })[]; inputSize: { width: number; height: number }; inputLayout?: "nchw" | "nhwc"; inputNormalization?: "zero-one" | "imagenet" | "none" | "scrfd"; preprocessMode?: "letterbox" | "resize"; outputFormat: "yolo" | "ssd" | "embedding" | "classification" | "ocr" | "segmentation"; faceAlignment?: boolean; classMap?: { mapping: Record<string, "person" | "vehicle" | "animal" | "package">; preserveOriginal: boolean } }
  targets: ({ format: "openvino"; precisions: ("fp16" | "int8")[] } | { format: "coreml" })[]
  calibrationRef?: string
  sessionId?: string
}

ModelDistributeInputSchema

{
  targetNodeId: string
  modelId: string
  format: "onnx" | "coreml" | "openvino" | "tflite" | "pt" | "gguf"
  entry: { id: string; name: string; description: string; formats: { onnx?: { url: string; sizeMB: number; isDirectory?: boolean; files?: string[]; runtimes?: "python"[]; revision?: string }; coreml?: { url: string; sizeMB: number; isDirectory?: boolean; files?: string[]; runtimes?: "python"[]; revision?: string }; openvino?: { url: string; sizeMB: number; isDirectory?: boolean; files?: string[]; runtimes?: "python"[]; revision?: string }; tflite?: { url: string; sizeMB: number; isDirectory?: boolean; files?: string[]; runtimes?: "python"[]; revision?: string }; pt?: { url: string; sizeMB: number; isDirectory?: boolean; files?: string[]; runtimes?: "python"[]; revision?: string }; gguf?: { url: string; sizeMB: number; isDirectory?: boolean; files?: string[]; runtimes?: "python"[]; revision?: string } }; inputSize: { width: number; height: number }; inputChannels?: number; labels: ({ id: string; name: string; category?: string; description?: string; icon?: string })[]; inputLayout?: "nchw" | "nhwc"; inputNormalization?: "zero-one" | "imagenet" | "none" | "scrfd"; outputProbabilities?: boolean; preprocessMode?: "letterbox" | "resize"; postprocessor?: <custom>; defaultConfidence?: number; defaultClassFloors?: Record<string, number>; gpuInferencePrecision?: "f32" | "f16"; suppliedLabelFloors?: Record<string, number>; faceAlignment?: boolean; extraFiles?: ({ url: string; filename: string; sizeMB: number })[]; legacy?: boolean; metrics?: { map50?: number; p95LatencyMs?: Record<string, number> }; license?: pipe; group?: { family: string; tier: string; precision?: "fp32" | "int8"; optimization?: "standard" | "test"; resolution?: number }; provider?: "camstack" | "frigate" | "scrypted" | "custom"; classMap?: { mapping: Record<string, "person" | "vehicle" | "animal" | "package">; preserveOriginal: boolean }; suppliesSteps?: ({ kind: "label"; stepId: "animal-classifier" | "vehicle-classifier" | "package-detection"; labelToEffect: Record<string, string>; uncovered: string[] } | { kind: "crop"; stepId: "plate-detection" | "face-detection"; rootLabels: string[]; parentMacro: "vehicle" | "person"; childClass: "plate" | "face"; rootInputPx?: number } | { kind: "mask"; stepId: "segmentation" })[]; clip?: { textModelId: string; embeddingDim: number; vectorIndex: string; tokenizerFile: string; contextLength: number; padId: number; searchMinScore: number } }
}

ModelDistributeResultSchema

{
  ok: boolean
  sha256: string
  bytes: number
  path: string
}

ModelSubstitutionSchema

{
  addonId: string
  chosen: string
  running: string
  format: string
}

MotionAnalysisResultSchema

{
  detected: boolean
  regionCount: number
  regions: MotionRegionSchema[]
  rawRegions: MotionRegionSchema[]
  frameWidth: number
  frameHeight: number
  analysisMs: number
}

MotionEventSchema

{
  id: number
  deviceId: number
  timestamp: number
  kind: "motion"
  regionCount: number
  regions?: ({ bbox: BoundingBoxSchema; pixelCount: number; intensity: number })[]
  frameWidth?: number
  frameHeight?: number
  mediaUrl?: string
  triggeredBy?: { kind: "camera" } | { kind: "sensor"; deviceId: number }
  durationMs?: number | null
  edges?: number[]
  motionTimeline?: MotionTimelineSampleSchema[] | null
}

MotionOnMotionChangedDataSchema

{
  deviceId: number
  detected: boolean
  timestamp: number
  source: MotionSourceEnum
  regions?: MotionRegionSchema[]
  triggeredBy?: { kind: "camera" } | { kind: "sensor"; deviceId: number }
}

MotionRegionSchema

{
  bbox: BoundingBoxSchema
  pixelCount: number
  intensity: number
}

MotionSourceEnum

"onboard" | "analyzer" | "device-activity"

MotionSourcesSchema

Array of MotionSourceEnum

MotionStatusSchema

{
  detected: boolean
  lastDetectedAt: number | null
  autoClearAfterMs: number | null
}

MotionTimelineSampleSchema

{
  t: number
  boxes: BoundingBoxSchema[]
}

MotionTriggerRuntimeStateSchema

{
  enabled: boolean
  lastChangedAt: number
  lastFetchedAt: number
}

MotionTriggerStatusSchema

{
  enabled: boolean
  lastChangedAt: number
}

MotionZoneOptionsSchema

{
  maxRegions: number
  supportedShapes: MaskShapeKindSchema[]
  grid: MaskGridDimsSchema
  sensitivity: { min: number; max: number; step: number }
}

MotionZonePatchSchema

{
  enabled?: boolean
  sensitivity?: number
  regions?: MotionZoneRegionSchema[]
}

MotionZoneRegionSchema

{
  id: number
  enabled: boolean
  shape: MaskGridShapeSchema
}

MotionZoneStatusSchema

{
  enabled: boolean
  sensitivity: number
  regions: MotionZoneRegionSchema[]
  lastFetchedAt: number
}

MqttBrokerInfoSchema

{
  id: string
  name: string
  url: string
  kind: "external" | "embedded"
  status: "connected" | "disconnected" | "auth-failed" | "unreachable" | "tls-error"
  latencyMs: number | null
  error?: string
  connectedClients?: number
  lastCheckedAt?: number
}

MqttBrokerStatusSchema

{
  brokerCount: number
  embeddedRunning: boolean
}

MutationFilterSchema

{
  where?: Record<string, unknown>
  whereIn?: Record<string, unknown[]>
  whereBetween?: Record<string, [unknown, unknown]>
  whereNot?: Record<string, unknown>
  whereNotIn?: Record<string, unknown[]>
}