Dominevo
ReferenceHTTP APIShapes

Shapes: D

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

DatabaseSnapshotRequestSchema

{
  databaseId: DataStoreDatabaseSchema
}

DatabaseSnapshotTableSchema

{
  name: string
  rows: number
}

DatabaseSnapshotTargetsSchema

{
  databases: ({ databaseId: DataStoreDatabaseSchema; livePath: string })[]
}

DatabaseSnapshotWrittenSchema

{
  livePath: string
  snapshotPath: string
  sizeBytes: number
  pageCount: number
  pageSize: number
  tables: DatabaseSnapshotTableSchema[]
  copyMs: number
  verifyMs: number
  takenAt: number
  databaseId: DataStoreDatabaseSchema
}

DataStoreDatabaseSchema

"settings" | "events" | "history"

DataStoreEngineInfoSchema

{
  engineId: string
  kind: "relational" | "vector"
  displayName: string
}

DaylightStatusSchema

{
  phase: { phase: "day" | "night"; since: number; source: "sun" | "sensor" } | null
  configured: { source: "sun" } | { source: "sensor"; deviceId: number; cap: string; fieldPath: string; darkBelow: number; hysteresis: number; minDwellMin: number }
  fallbackReason: string | null
  checkedAt: number
}

DayNightModeSchema

"auto" | "day" | "night" | "schedule"

DayNightOptionsSchema

{
  modes: DayNightModeSchema[]
  supportsSensitivity: boolean
  sensitivity?: { min: number; max: number; step: number }
  supportsSwitchDelay: boolean
  switchDelaySec?: { min: number; max: number; step: number }
}

DayNightSettingsPatchSchema

{
  mode?: DayNightModeSchema
  sensitivity?: number
  switchDelaySec?: number
}

DayNightStatusSchema

{
  mode: DayNightModeSchema
  sensitivity?: number
  switchDelaySec?: number
  lastFetchedAt: number
}

DeclareCollectionInputSchema

{
  namespace?: string
  collection: string
  columns: CollectionColumnSchema[]
  indexes?: CollectionIndexSchema[]
  database?: DataStoreDatabaseSchema
  primaryKey?: string[]
  withoutRowid?: boolean
}

DeclareKindResultSchema

{
  kindId: number
  state: "created" | "unchanged" | "updated"
  createdIndexes: string[]
}

DecodedAudioChunkSchema

{
  data: <custom>
  sampleRate: number
  channels: number
  timestamp: number
  format?: AudioChunkFormatSchema
}

DeleteIntegrationResultSchema

{
  success: boolean
  deletedId: string
}

DeliveryParamSchema

{
  key: string
  label: string
  labelKey?: string
  type: "enum" | "number" | "boolean" | "string"
  options?: ({ value: string; label: string })[]
  min?: number
  max?: number
  default?: DeliveryParamValueSchema
}

DeliveryParamValueSchema

| string
| number
| boolean

DerivedEffectiveEncodeSchema

{
  encoder: string | null
  fps: number | null
  gopFrames: number
  targetKbps: number | null
  capKbps: number | null
  bufsizeKbps: number | null
  audio: "copy" | "aac" | "profile" | "none"
}

DerivedEncodePreviewSchema

{
  encoder: string | null
  fps: number | null
  gopFrames: number
  targetKbps: number | null
  capKbps: number | null
  bufsizeKbps: number | null
  audio: "copy" | "aac" | "profile" | "none"
  width: number | null
  height: number | null
  videoCodec: "h264" | "h265" | "copy"
  requestedFps: number | null
  fpsClampedToSource: boolean
  floorKbps: number | null
  raisedToFloor: boolean
  requestedKbps: number | null
  keyframeIntervalSec: number | null
  args: string[]
}

DerivedSourceRefSchema

| { kind: "profile"; profile: "high" | "mid" | "low" }
| { kind: "camStream"; camStreamId: string }

DesktopAppStatusSchema

{
  version: string
  update: { available: boolean; downloaded: boolean; version: string | null; checking: boolean; error: string | null }
  stateAtMs: number
  stale: boolean
}

DetectionSourceSchema

"pipeline" | "onboard"

DeviceAdminLinkSchema

{
  url: string
  label: string
  target: AdminLinkTargetEnum
  host: string
}

DeviceCaStatusSchema

| { state: "absent" }
| { state: "ready"; subject: string; fingerprintSha256: string; validTo: string }
| { state: "unavailable"; reason: string }

DeviceCertificateSettingsSchema

{
  selfEnrollment: "allowed" | "disabled"
}

DeviceCodeSeveritySchema

"info" | "warning" | "error"

DeviceDataEntrySchema

{
  store: string
  deviceId: number
  count: number
}

DeviceErrorSeveritySchema

"warning" | "error"

DeviceExportExposeInputSchema

{
  instanceId: string
  deviceId: string
  capabilities?: string[]
  exposedName?: string | null
}

DeviceExportInstancePinSchema

{
  instanceId?: string
}

DeviceExportSetExposedNameInputSchema

{
  instanceId: string
  deviceId: string
  name: string | null
  dryRun?: boolean
}

DeviceExportStatusSchema

{
  linkState: "unlinked" | "linked" | "error"
  push?: "ok" | "paused"
  exposedDeviceCount: number
  error?: string
  setup?: ExportSetupSchema
}

DeviceExportUnexposeInputSchema

{
  instanceId: string
  deviceId: string
}

DeviceFaultSchema

{
  code: string
  label: string
  severity: DeviceErrorSeveritySchema
}

DeviceHistoryKindSchema

"gauge" | "counter" | "boolean" | "enum"

DeviceHistoryOrphanDeleteRefusalSchema

"not-found" | "not-orphan" | "failed"

DeviceHistoryOrphanReasonSchema

"device-gone" | "undeclared"

DeviceHistoryProducerKindSchema

"gauge" | "counter" | "boolean"

DeviceHistoryRangeDeleteRefusalSchema

"invalid-range" | "range-too-large" | "series-not-found" | "not-a-point-series"

DeviceHistoryRefusalReasonSchema

"undeclared" | "not-owner" | "opted-out" | "not-a-real-device" | "rate" | "ingest-mismatch" | "out-of-range"

DeviceHistoryResolutionSchema

"raw" | "5m" | "1h" | "1d"

DeviceHistoryStatusSchema

{
  startedAt: number
  ready: boolean
  series: number
  metrics: number
  optedOutDevices: number
  tiers: ({ tier: DeviceHistoryResolutionSchema; rows: number | null; approxBytes: number | null; countedAt: number | null })[]
  capture: { eventsSeen: number; pointsEmitted: number; pointsWritten: number; pointsDropped: number; bufferDepth: number; trailingEmitted: number; reconciledPoints: number; reconcileRuns: number; reconcileFailures: number; lastReconcileAt: number | null; lastFlushAt: number | null; flushFailures: number; skipped: Record<string, number> }
  ingest: { accepted: number; refused: Record<string, number> }
  rollup: { last5mAt: number | null; last1hAt: number | null; last1dAt: number | null; errors: number; dirty5m: number; dirty1h: number; dirty1d: number }
  retention: { lastRunAt: number | null; deleted: Record<string, number>; purgedSeries: number }
  directory: { devices: number; lastRefreshAt: number | null }
}

DeviceHistorySubjectSchema

| { kind: "device"; deviceId: number }
| { kind: "node"; nodeId: string }

DeviceInfoSchema

{
  id: number
  stableId: string
  addonId: string
  type: "camera" | "light" | "siren" | "switch" | "sensor" | "climate" | "button" | "event-emitter" | "update" | "generic" | "notifier" | "script" | "automation" | "lock" | "cover" | "valve" | "humidifier" | "water-heater" | "fan" | "media-player" | "alarm-panel" | "control" | "presence" | "weather" | "weather-station" | "vacuum" | "lawn-mower" | "container" | "image" | "pet-feeder" | "pet-fountain" | "dishwasher" | "washer" | "dryer" | "gateway" | "heat-pump" | "vehicle" | "energy-system" | "workload"
  name: string
  alias?: string
  location: string | null
  locationId?: string | null
  tags?: string[]
  tagIds?: string[]
  disabled: boolean
  parentDeviceId: number | null
  role?: string | null
  online: boolean
  probed?: boolean
  features: string[]
  isCamera: boolean
  config: Record<string, unknown>
  secretConfigPaths?: string[]
  metadata?: Record<string, unknown> | null
  identifiers?: { mac?: ({ value: string; origin: "read" | "derived"; readAt: number })[]; serial?: { value: string; origin: "read" | "derived"; readAt: number }; machine-uuid?: { value: string; origin: "read" | "derived"; readAt: number }; vendor-uid?: { value: string; origin: "read" | "derived"; readAt: number }; hostname?: { value: string; origin: "read" | "derived"; readAt: number }; ip?: { value: string(ipv4) | string(ipv6); origin: "read" | "derived"; readAt: number } }
  attachedIdentifiers?: { mac?: ({ value: string; origin: "read" | "derived"; readAt: number })[]; serial?: { value: string; origin: "read" | "derived"; readAt: number }; machine-uuid?: { value: string; origin: "read" | "derived"; readAt: number }; vendor-uid?: { value: string; origin: "read" | "derived"; readAt: number }; hostname?: { value: string; origin: "read" | "derived"; readAt: number }; ip?: { value: string(ipv4) | string(ipv6); origin: "read" | "derived"; readAt: number } }
  sourceInfo?: { id: string; system: string; uniqueId?: string; quantity?: "temperature" | "pressure" | "speed" | "precipitation" | "precipitation-rate" | "length" | "area" | "illuminance" | "irradiance" | "power" | "energy" | "voltage" | "current" | "apparent-power" | "humidity" | "percentage" | "concentration-volume" | "concentration-mass" | "concentration-ppb" | "volume" | "price-per-volume" | "duration" | "duration-ms" | "information" | "sound-level" | "signal-level" | "signal-ratio" | "frequency" | "colour-temperature" | "angle" | "bitrate" | "rate" | "mass" | "index" | "ratio" | "count" | "none" | "device"; dateTimeShape?: "date" | "time" | "datetime"; raw?: Record<string, unknown> }
  integrationId?: string
  linkDeviceId?: number | null
  primaryChildEntityId?: string | null
  childLayout?: ({ childKey: string; section: string; order?: number; collapsed?: boolean })[]
  primaryChildPreference?: string[]
  display?: { icon?: string; label?: string; unit?: string; precision?: number; hidden?: boolean; perCap?: Record<string, { unit?: string; precision?: number }> }
}

DeviceNetworkStatsSchema

{
  deviceId: number
  streams: Record<string, StreamNetworkStatsSchema>
  client?: ClientNetworkStatsSchema
}

DeviceRemovedInputSchema

{
  deviceId: number
  deletedAt: number
  providerAddonId: string
}

DeviceRemovedResultSchema

{
  counts: Record<string, number>
}

DeviceRunDetailSchema

| ApplianceRunDetailSchema

DeviceRunEnergyMethodSchema

"counter-delta" | "history-integral"

DeviceRunKindSchema

"appliance" | "mower" | "vacuum"

DeviceRunOutcomeSchema

"completed" | "aborted" | "error" | "unknown"

DeviceRunPhaseSchema

{
  phase: string
  at: number
}

DeviceRunSchema

{
  runId: string
  deviceId: number
  kind: DeviceRunKindSchema
  state: DeviceRunStateSchema
  startedAt: number
  endedAt: number | null
  durationMs: number | null
  outcome: DeviceRunOutcomeSchema | null
  startSource: DeviceRunSourceSchema
  endSource: DeviceRunSourceSchema | null
  runningSource: "native" | "assigned" | null
  phases: DeviceRunPhaseSchema[]
  detail: DeviceRunDetailSchema
}

DeviceRunSourceSchema

"running-state" | "activity" | "reconcile"

DeviceRunStateSchema

"open" | "closed"

DeviceSearchFacetIntegrationSchema

{
  id: string
  label: string
  count: number
}

DeviceSearchFacetsSchema

{
  locations: DeviceSearchFacetValueSchema[]
  integrations: DeviceSearchFacetIntegrationSchema[]
  types: DeviceSearchFacetValueSchema[]
}

DeviceSearchFacetValueSchema

{
  value: string
  count: number
}

DeviceSearchFiltersSchema

{
  locations?: string[]
  integrationIds?: string[]
  types?: string[]
}

DeviceSearchInputSchema

{
  text?: string
  requires?: DeviceSearchRequiresSchema
  filters?: DeviceSearchFiltersSchema
  includeIncompatible?: boolean
  contextDeviceId?: number
  ids?: number[]
  cursor?: string | null
  limit?: number
}

DeviceSearchItemSchema

{
  id: number
  name: string
  type: "camera" | "light" | "siren" | "switch" | "sensor" | "climate" | "button" | "event-emitter" | "update" | "generic" | "notifier" | "script" | "automation" | "lock" | "cover" | "valve" | "humidifier" | "water-heater" | "fan" | "media-player" | "alarm-panel" | "control" | "presence" | "weather" | "weather-station" | "vacuum" | "lawn-mower" | "container" | "image" | "pet-feeder" | "pet-fountain" | "dishwasher" | "washer" | "dryer" | "gateway" | "heat-pump" | "vehicle" | "energy-system" | "workload"
  location: string | null
  integrationId: string | null
  integrationLabel: string | null
  online: boolean | null
  disabled: boolean
  compatible: boolean
  values: DeviceValueOptionSchema[]
}

DeviceSearchRequiresSchema

{
  caps?: string[]
  actions?: string[]
  mode?: "any" | "all"
}

DeviceSearchResultSchema

{
  items: DeviceSearchItemSchema[]
  nextCursor: string | null
  total: number
  compatibleTotal: number
  fleetTotal: number
  hiddenIncompatible: number
  facets: DeviceSearchFacetsSchema
  suggested: DeviceSearchItemSchema[]
  missingIds: number[]
}

DeviceStateRefreshInputSchema

{
  deviceId: number
  deviceIds: number[]
  reason: "schedule" | "command" | "burst"
}

DeviceStateRefreshResultSchema

{
  ok: true
}

DeviceStateResubscribeInputSchema

{
  deviceId: number
}

DeviceStatusSchema

{
  online: boolean
  lastChangedAt: number
  unknown?: true
}

DeviceTombstoneSchema

{
  deviceId: number
  deletedAt: number
  providerAddonId: string
}

DeviceValueOptionSchema

{
  cap: string
  path: string
  label: string
  reading: string | null
  unit?: string | null
  quantity?: "temperature" | "pressure" | "speed" | "precipitation" | "precipitation-rate" | "length" | "area" | "illuminance" | "irradiance" | "power" | "energy" | "voltage" | "current" | "apparent-power" | "humidity" | "percentage" | "concentration-volume" | "concentration-mass" | "concentration-ppb" | "volume" | "price-per-volume" | "duration" | "duration-ms" | "information" | "sound-level" | "signal-level" | "signal-ratio" | "frequency" | "colour-temperature" | "angle" | "bitrate" | "rate" | "mass" | "index" | "ratio" | "count" | "none" | "device"
}

DiagnosticIdSchema

"request-census"

DiagnosticWindowPatchSchema

{
  id: DiagnosticIdSchema
  armMs: number
  reportEveryMs?: number
}

DiagnosticWindowSchema

{
  id: DiagnosticIdSchema
  armed: boolean
  armedUntilMs: number
  remainingMs: number
  persisted: boolean
}

DiscoveredChildStatusSchema

"online" | "sleeping" | "offline" | "unknown"

DiscoveredTargetSchema

{
  kind: string
  suggestedName: string
  config: Record<string, unknown>
}

DiscoveryHitSchema

{
  modeIndex: number
  host: string
  port: number
  http?: { status: number; headers: Record<string, string>; bodyText: string }
  mdns?: { instance: string; host: string; port: number; txt: Record<string, string> }
  udp?: { payloadHex: string }
  wsd?: { xaddrs: string[]; types: string[]; scopes: string[] }
}

DiscoveryModeSchema

| { kind: "mdns"; serviceType: string; instancePattern?: string }
| { kind: "ws-discovery"; types?: string[] }
| { kind: "ssdp"; searchTarget: string }
| { kind: "udp-broadcast"; port: number; payloadHex: string; listenPort?: number }
| { kind: "http-probe"; port: number; path: string; method?: "GET" | "POST" = "GET"; bodyText?: string; contentType?: string; tls?: boolean = false; acceptStatus?: number[] }
| { kind: "custom"; reason: string }

DiscoveryObservationSchema

| { kind: "mdns"; serviceType: string; instance: string; host: string; address: string | null; port: number; txt: Record<string, string> }
| { kind: "ssdp"; host: string; port: number; target: string; headers: Record<string, string> }

DiscoveryProposalSchema

{
  id: string
  addonId: string
  candidate: { stableId: string; type: "camera" | "light" | "siren" | "switch" | "sensor" | "climate" | "button" | "event-emitter" | "update" | "generic" | "notifier" | "script" | "automation" | "lock" | "cover" | "valve" | "humidifier" | "water-heater" | "fan" | "media-player" | "alarm-panel" | "control" | "presence" | "weather" | "weather-station" | "vacuum" | "lawn-mower" | "container" | "image" | "pet-feeder" | "pet-fountain" | "dishwasher" | "washer" | "dryer" | "gateway" | "heat-pump" | "vehicle" | "energy-system" | "workload"; suggestedName: string; prefilledConfig: Record<string, unknown>; sourceInfo?: { id: string; system: string; uniqueId?: string; quantity?: "temperature" | "pressure" | "speed" | "precipitation" | "precipitation-rate" | "length" | "area" | "illuminance" | "irradiance" | "power" | "energy" | "voltage" | "current" | "apparent-power" | "humidity" | "percentage" | "concentration-volume" | "concentration-mass" | "concentration-ppb" | "volume" | "price-per-volume" | "duration" | "duration-ms" | "information" | "sound-level" | "signal-level" | "signal-ratio" | "frequency" | "colour-temperature" | "angle" | "bitrate" | "rate" | "mass" | "index" | "ratio" | "count" | "none" | "device"; dateTimeShape?: "date" | "time" | "datetime"; raw?: Record<string, unknown> }; alreadyOnboarded?: boolean; onboardedDeviceId?: number; onboardedName?: string; setupIntegration?: boolean; parentStableId?: string; selectable?: boolean; needsParams?: string[] }
  firstSeenAt: number
  lastSeenAt: number
  dismissed: boolean
}

DishwasherAccessSchema

"none" | "read" | "readWrite" | "writeOnly" | "readStatic"

DishwasherAvailabilitySchema

"available" | "offline" | "description-missing"

DishwasherOperationStateSchema

"Inactive" | "Ready" | "DelayedStart" | "Run" | "Pause" | "ActionRequired" | "Finished" | "Error" | "Aborting"

DishwasherOptionDescriptorSchema

{
  key: string
  name: string
  type: "boolean" | "number" | "enum" | "string"
  access: DishwasherAccessSchema
  available: boolean
  unit: string | null
  min: number | null
  max: number | null
  step: number | null
  enumValues: string[] | null
  defaultValue: DishwasherValueSchema | null
}

DishwasherOptionsSchema

{
  availability: DishwasherAvailabilitySchema
  supportsStart: boolean
  supportsPause: boolean
  supportsResume: boolean
  supportsStop: boolean
  supportsPower: boolean
  programs: DishwasherProgramSchema[]
  options: DishwasherOptionDescriptorSchema[]
}

DishwasherProgramSchema

{
  key: string
  name: string
  available: boolean
  options: DishwasherOptionDescriptorSchema[]
}

DishwasherStateSchema

"idle" | "running" | "paused" | "finished" | "error" | "unavailable"

DishwasherStatusSchema

{
  availability: DishwasherAvailabilitySchema
  state: DishwasherStateSchema
  operationState: DishwasherOperationStateSchema | null
  program: string | null
  selectedProgram: string | null
  availablePrograms: string[]
  remaining: number | null
  delayedStart: number | null
  progress: number | null
  doorOpen: boolean | null
  doorLocked: boolean | null
  remoteStartAllowed: boolean | null
  remoteControlActive: boolean | null
  localControlActive: boolean | null
  powerOn: boolean | null
  powerState: string | null
  filterCleaningDue: boolean | null
  machineCareDue: boolean | null
  machineCareRemainingRuns: number | null
  halfLoad: boolean | null
  hygienePlus: boolean | null
  extraDry: boolean | null
  intensiveZone: boolean | null
  varioSpeedPlus: boolean | null
  childLock: boolean | null
  activeEvents: string[]
  errorCode: number | null
  errorLabel: string | null
  lastFetchedAt: number
}

DishwasherValueSchema

| boolean
| string
| number

DiskReconcileJobSchema

{
  state: "idle" | "running" | "done" | "error"
  total: number
  completed: number
  currentDeviceId: number | null
  failed: number[]
  mediaDropped: number
  tracks: number
  events: number
  startedAtMs: number | null
  finishedAtMs: number | null
  error: string | null
}

DoNotDisturbStatusSchema

{
  enabled: boolean | null
  lastChangedAt: number
}

DoorbellPressEventSchema

{
  deviceId: number
  timestamp: number
}

DoorbellStatusSchema

{
  lastPressedAt: number | null
  pressCountSinceStart: number
}

On this page

DatabaseSnapshotRequestSchemaDatabaseSnapshotTableSchemaDatabaseSnapshotTargetsSchemaDatabaseSnapshotWrittenSchemaDataStoreDatabaseSchemaDataStoreEngineInfoSchemaDaylightStatusSchemaDayNightModeSchemaDayNightOptionsSchemaDayNightSettingsPatchSchemaDayNightStatusSchemaDeclareCollectionInputSchemaDeclareKindResultSchemaDecodedAudioChunkSchemaDeleteIntegrationResultSchemaDeliveryParamSchemaDeliveryParamValueSchemaDerivedEffectiveEncodeSchemaDerivedEncodePreviewSchemaDerivedSourceRefSchemaDesktopAppStatusSchemaDetectionSourceSchemaDeviceAdminLinkSchemaDeviceCaStatusSchemaDeviceCertificateSettingsSchemaDeviceCodeSeveritySchemaDeviceDataEntrySchemaDeviceErrorSeveritySchemaDeviceExportExposeInputSchemaDeviceExportInstancePinSchemaDeviceExportSetExposedNameInputSchemaDeviceExportStatusSchemaDeviceExportUnexposeInputSchemaDeviceFaultSchemaDeviceHistoryKindSchemaDeviceHistoryOrphanDeleteRefusalSchemaDeviceHistoryOrphanReasonSchemaDeviceHistoryProducerKindSchemaDeviceHistoryRangeDeleteRefusalSchemaDeviceHistoryRefusalReasonSchemaDeviceHistoryResolutionSchemaDeviceHistoryStatusSchemaDeviceHistorySubjectSchemaDeviceInfoSchemaDeviceNetworkStatsSchemaDeviceRemovedInputSchemaDeviceRemovedResultSchemaDeviceRunDetailSchemaDeviceRunEnergyMethodSchemaDeviceRunKindSchemaDeviceRunOutcomeSchemaDeviceRunPhaseSchemaDeviceRunSchemaDeviceRunSourceSchemaDeviceRunStateSchemaDeviceSearchFacetIntegrationSchemaDeviceSearchFacetsSchemaDeviceSearchFacetValueSchemaDeviceSearchFiltersSchemaDeviceSearchInputSchemaDeviceSearchItemSchemaDeviceSearchRequiresSchemaDeviceSearchResultSchemaDeviceStateRefreshInputSchemaDeviceStateRefreshResultSchemaDeviceStateResubscribeInputSchemaDeviceStatusSchemaDeviceTombstoneSchemaDeviceValueOptionSchemaDiagnosticIdSchemaDiagnosticWindowPatchSchemaDiagnosticWindowSchemaDiscoveredChildStatusSchemaDiscoveredTargetSchemaDiscoveryHitSchemaDiscoveryModeSchemaDiscoveryObservationSchemaDiscoveryProposalSchemaDishwasherAccessSchemaDishwasherAvailabilitySchemaDishwasherOperationStateSchemaDishwasherOptionDescriptorSchemaDishwasherOptionsSchemaDishwasherProgramSchemaDishwasherStateSchemaDishwasherStatusSchemaDishwasherValueSchemaDiskReconcileJobSchemaDoNotDisturbStatusSchemaDoorbellPressEventSchemaDoorbellStatusSchema