Dominevo
ReferenceHTTP APIShapes

Shapes: F

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

FailureContributionSchema

{
  family: string
  deviceId: number
  variant?: string
  sinceMs: number
  atMs: number
  attempts: number
  succeeded: number
  reasons: FailureReasonCountSchema[]
}

FailureReasonCountSchema

{
  reason: string
  count: number
}

FanCaptureFieldSchema

"speed" | "direction" | "preset" | "oscillationAxes"

FanCaptureOmissionSchema

{
  what: string
  reason: string
}

FanControlStatusSchema

{
  speed: number | null
  percentageStep?: number
  preset: string
  availablePresets: string[]
  direction: FanDirectionSchema | null
  oscillating: boolean | null
  oscillationAxes?: FanOscillationAxesSchema
  lastChangedAt: number
}

FanDirectionSchema

"forward" | "reverse"

FanOscillationAxesSchema

{
  horizontal?: FanOscillationAxisSchema | null = null
  vertical?: FanOscillationAxisSchema | null = null
}

FanOscillationAxisFieldSchema

"oscillating" | "angle" | "sweepFrom" | "sweepTo"

FanOscillationAxisNameSchema

"horizontal" | "vertical"

FanOscillationAxisRefusalSchema

"nothing-to-set" | "axis-not-linked" | "out-of-range" | "source-gone" | "source-unknown" | "source-call-failed"

FanOscillationAxisResultSchema

| { status: "applied" }
| { status: "refused"; reason: FanOscillationAxisRefusalSchema; field?: FanOscillationAxisFieldSchema; detail: string; applied: FanOscillationAxisFieldSchema[] }

FanOscillationAxisSchema

{
  oscillating?: boolean | null = null
  angle?: number | null = null
  sweepFrom?: number | null = null
  sweepTo?: number | null = null
  min?: number | null = null
  max?: number | null = null
  step?: number | null = null
}

FanPresetApplyResultSchema

{
  status: "applied" | "partial" | "refused"
  fields: FanPresetFieldResultSchema[]
}

FanPresetAxisSchema

{
  oscillating?: boolean
  angle?: number
  sweepFrom?: number
  sweepTo?: number
}

FanPresetCaptureResultSchema

{
  state: FanPresetStateSchema
  omitted: FanCaptureOmissionSchema[]
}

FanPresetFieldResultSchema

{
  field: string
  outcome: "applied" | "failed" | "not-run" | "refused"
  message?: string
}

FanPresetSchema

{
  id: string
  name: string
  state: FanPresetStateSchema
}

FanPresetsRefusalSchema

"empty-state" | "duplicate-name" | "duplicate-id" | "too-many" | "not-a-fan"

FanPresetsSetResultSchema

| { status: "saved"; count: number }
| { status: "refused"; reason: FanPresetsRefusalSchema; detail: string }

FanPresetStateSchema

{
  speed?: number
  preset?: string
  direction?: FanDirectionSchema
  oscillationAxes?: { horizontal?: FanPresetAxisSchema; vertical?: FanPresetAxisSchema }
}

FaultTypesSchema

{
  types: DeviceFaultSchema[]
}

FeatureManifestSchema

{
  streaming: boolean
  notifications: boolean
  objectDetection: boolean
  remoteAccess: boolean
  agentCluster: boolean
  smartHome: boolean
  recordings: boolean
  backup: boolean
  repl: boolean
}

FeatureProbeStatusSchema

{
  flags: Record<string, unknown>
  deviceType: string | null
  model: string | null
  channelCount: number | null
  lastProbedAt: number
  lastFetchedAt: number
}

FieldClaimModeSchema

"replace" | "add"

FieldClaimSchema

{
  deviceId: number
  capName: string
  owner: string
  mode: FieldClaimModeSchema
  fields: string[]
}

FloodStatusSchema

{
  flooded: boolean
  lastChangedAt: number
}

FrameHandleSchema

{
  shmId: string
  slot: number
  seq: number
  width: number
  height: number
  format: "jpeg" | "rgb" | "bgr" | "yuv420" | "gray"
  pts: number
  byteLength: number
  nodeId: string
  slotCount: number
}

FrameInputSchema

{
  data: <custom>
  format: "jpeg" | "rgb" | "bgr" | "yuv420" | "gray"
  width: number
  height: number
  timestamp: number
}

FrameLazyCountersSchema

{
  framesDecoded: number
  framesAdmitted: number
  framesDroppedPixelFree: number
  viewsMaterialized: number
  viewsSkipped: number
  workerToRunnerBytes: number
  runnerToPoolRawBytes: number
  runnerToPoolJpegBytes: number
  onDemandFullFrameRequests: number
  onDemandCropRequests: number
  nativeHits: number
  nativeMisses: number
  tileHits: number
  tileMisses: number
  fallbackHits: number
  fallbackMisses: number
  retainedWritesAvoided: number
  residentRefs: number
  residentBytes: number
  releases: number
  evictions: number
  staleMisses: number
}

FrameLazyMetricsSchema

{
  node: FrameLazyCountersSchema
  cameras: ({ framesDecoded: number; framesAdmitted: number; framesDroppedPixelFree: number; viewsMaterialized: number; viewsSkipped: number; workerToRunnerBytes: number; runnerToPoolRawBytes: number; runnerToPoolJpegBytes: number; onDemandFullFrameRequests: number; onDemandCropRequests: number; nativeHits: number; nativeMisses: number; tileHits: number; tileMisses: number; fallbackHits: number; fallbackMisses: number; retainedWritesAvoided: number; residentRefs: number; residentBytes: number; releases: number; evictions: number; staleMisses: number; deviceId: number })[]
}