Dominevo
ReferenceHTTP APIShapes

Shapes: I

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

ImageContractSchema

{
  state: ImageContractStateSchema
  seedVersion: string | null
  contractVersion: string | null
  contractSource: "registry" | "running" | null
  message: string
}

ImageContractStateSchema

"in-sync" | "behind-patch" | "behind-series" | "ahead" | "unknown"

ImageRotateSchema

"0" | "90" | "180" | "270"

ImageSettingsOptionsSchema

{
  supportsBrightness: boolean
  brightness?: { min: number; max: number; step: number }
  supportsContrast: boolean
  contrast?: { min: number; max: number; step: number }
  supportsSaturation: boolean
  saturation?: { min: number; max: number; step: number }
  supportsSharpness: boolean
  sharpness?: { min: number; max: number; step: number }
  supportsMirror: boolean
  supportsFlip: boolean
  rotateOptions: ImageRotateSchema[]
  whiteBalanceModes: WhiteBalanceModeSchema[]
  supportsWarmth: boolean
  warmth?: { min: number; max: number; step: number }
  exposureModes: ExposureModeSchema[]
  backlightModes: BacklightModeSchema[]
}

ImageSettingsPatchSchema

{
  brightness?: number
  contrast?: number
  saturation?: number
  sharpness?: number
  mirror?: boolean
  flip?: boolean
  rotate?: ImageRotateSchema
  whiteBalance?: WhiteBalanceModeSchema
  warmth?: number
  exposureMode?: ExposureModeSchema
  backlightMode?: BacklightModeSchema
}

ImageSettingsStatusSchema

{
  brightness?: number
  contrast?: number
  saturation?: number
  sharpness?: number
  mirror?: boolean
  flip?: boolean
  rotate?: ImageRotateSchema
  whiteBalance?: WhiteBalanceModeSchema
  warmth?: number
  exposureMode?: ExposureModeSchema
  backlightMode?: BacklightModeSchema
  lastFetchedAt: number
}

ImageStatusSchema

{
  url: string | null
  lastUpdated: number | null
}

ImportModelBundleInputSchema

{
  addonId: string
  stepId: string
  entries: ({ 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 } })[]
  bundle: { ticket: { url: string; hostNodeId: string; expiresAtMs: number; declaredBytes: number | null }; bytes: number; sha256: string }
  files: ModelBundleFileSchema[]
  distribute: boolean
}

ImportModelBundleResultSchema

| { kind: "imported"; modelIds: string[]; distributed: ({ modelId: string; nodeId: string; format: "onnx" | "coreml" | "openvino" | "tflite" | "pt" | "gguf"; ok: boolean; error?: string })[] }
| { kind: "refused"; reason: "transfer-failed" | "checksum-mismatch" | "bundle-mismatch" | "invalid-entry" | "id-taken"; detail: string }

InferenceDeviceExclusionReasonSchema

"disabled" | "unavailable" | "cannot-host-camera-root" | "accelerator-preferred" | "root-switched-off" | "no-gpu-device"

IngestOwnerSchema

{
  ownerNodeId: string
  reachableHost?: string
  configIssue?: string
}

InstallDesktopUpdateReasonSchema

"not-electron" | "no-app-state" | "app-state-stale" | "not-downloaded"

InstallDesktopUpdateResultSchema

{
  accepted: boolean
  reason: InstallDesktopUpdateReasonSchema | null
}

InstalledPackageSchema

{
  name: string
  version: string
  dir: string
  installSource?: string
}

IntegrationInstanceAddDeviceSchema

"scan" | "children" | "none"

IntegrationInstanceDescriptionSchema

{
  role: IntegrationInstanceRoleSchema
  discovery?: IntegrationInstanceDiscoverySchema
  instanceMode: IntegrationInstanceModeSchema
  kind: string
  canTest: boolean
  kinds: IntegrationInstanceKindSchema[]
  allowRestoreId?: boolean
  mintsId?: boolean
  links?: IntegrationInstanceLinkSchema[]
  userScoped?: boolean
}

IntegrationInstanceDiscoverySchema

{
  mode: "none" | "lan" | "account"
  scopedToInstance: boolean
}

IntegrationInstanceKindSchema

{
  id: string
  label: string
  functionCap: string
  brokerKind?: string
  alsoServes?: string[]
  iconUrl?: string
  iconMediaType?: string
  role?: IntegrationInstanceRoleSchema
  canTest?: boolean
  creatable?: boolean
  signIn?: { basePath: string; methods?: ("device-code" | "proxy")[] }
  connectPath?: string
  disconnectPath?: string
  widgets?: ({ id: string; placement: "connection" | "model" })[]
}

IntegrationInstanceLinkSchema

{
  kind: string
  field: string
  to: { cap: string; kind?: string }
}

IntegrationInstanceModeSchema

"single" | "multiple"

IntegrationInstancePatchSchema

{
  id: string
  name?: string
  values: Record<string, unknown>
}

IntegrationInstanceRoleSchema

"devices" | "services"

IntegrationInstanceSchema

{
  id: string
  name: string
  configured: boolean
  enabled?: boolean
  kind: string
  formValues: Record<string, unknown>
  status?: IntegrationInstanceStatusSchema
  lastCheckedAt?: number
  addDevice?: IntegrationInstanceAddDeviceSchema
}

IntegrationInstanceStatusSchema

{
  state: "ok" | "off" | "error" | "unknown"
  detail?: string
  label?: string
}

IntegrationLiteSchema

{
  id: string
  addonId: string
  name: string
  enabled: boolean
  info: Record<string, unknown>
  originStableId?: string
  createdAt: number
  updatedAt: number
}

IntegrationWithStateSchema

{
  id: string
  addonId: string
  name: string
  enabled: boolean
  info: Record<string, unknown>
  originStableId?: string
  createdAt: number
  updatedAt: number
  processState: string
}

IntercomAbilitySchema

{
  codecs: string[]
  sampleRate: number
  duplex: "half" | "full"
  maxBacklogMs: number
}

IntercomStatusSchema

{
  talking: boolean
  lastSessionAt: number | null
  ability: IntercomAbilitySchema | null
}

IrLearnResultSchema

{
  native: { format: "tuya"; code: string } | null
  timings: number[]
  carrierHz: number | null
}

IrMediumSchema

"ir" | "rf"

IrSendResultSchema

{
  ok: true
  ignoredSettings: string[]
}

IrTransmitterAttemptSchema

{
  at: number
  ok: boolean
  error: string | null
}

IrTransmitterInfoSchema

{
  media: IrMediumSchema[]
  settable: TransmitSettingKeySchema[]
  maxTimings: number
  learn?: boolean = false
  formats?: "tuya"[] = []
}

IrTransmitterRuntimeStateSchema

{
  lastSend: IrTransmitterSendRecordSchema | null
  lastLearn: IrTransmitterAttemptSchema | null
  lastFetchedAt: number
}

IrTransmitterSendRecordSchema

{
  at: number
  ok: boolean
  error: string | null
  medium: IrMediumSchema
}