ReferenceHTTP APIShapes
Shapes: A
Named input and output shapes starting with A, 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.
AccessoriesStatusSchema
{
childDeviceIds: number[]
hiddenChildIds: number[]
}ActionLinksSchema
{
deviceId: number
actionIds: string[]
updatedAt: number
}ActionLinksSetInputSchema
{
deviceId: number
actionIds: string[]
expectedUpdatedAt: number
}AddBrokerInputSchema
{
name: string
url: string
username?: string
password?: string
clientIdPrefix?: string
}AddonAutoUpdateSchema
"off" | "latest" | "beta" | "inherit"AddonListItemSchema
{
manifest: { id: string; name?: string; version?: string; description?: string; icon?: string; color?: string; capabilities?: unknown[]; packageName: string; packageVersion: string; packageDisplayName?: string; bundle?: { displayName: string; description?: string; icon?: string }; protected?: boolean; removable?: boolean; integrationSection?: "system" | "providers" }
declaration?: unknown
source: string
installSource?: string
process?: { pid?: number; mode: string; state: string; reason?: string }
hasBackup?: boolean
health?: { phase: "pending" | "healthy" | "failed"; retryCount: number; firstFailureAt: number | null; lastAttemptAt: number | null; lastError: { message: string; stack?: string } | null; nextRetryAt: number | null; alertEmitted: boolean; retrying: boolean; inGracePeriod: boolean } | null
}AddonPageDeclarationSchema
{
id: string
label: string
icon: string
path: string
remoteName: string
bundle: string
section?: string
sectionLabel?: string
}AddonPageInfoSchema
{
addonId: string
page: { id: string; label: string; icon: string; path: string; remoteName: string; bundle: string; section?: string; sectionLabel?: string }
bundleUrl: string
}AddRetrainFrameFromRecordingResultSchema
| { kind: "added"; collectionId: string; frame: RetrainFrameSchema; reused: boolean }
| { kind: "refused"; reason: "unknown-collection" | "still-unavailable" | "still-busy" | "unreadable-image" | "write-failed"; detail?: string }AdminLinkTargetEnum
"device" | "integration"AdoptedBySchema
"operator" | "auto"AdoptionAdoptInputSchema
{
integrationId: string
childNativeIds: string[]
filter?: string
importLocations?: boolean
perCandidate?: Record<string, { name?: string; hiddenChildIds?: string[] }>
}AdoptionAdoptResultSchema
{
adopted: ({ childNativeId: string; parentDeviceId: number; accessoryDeviceIds: number[] })[]
}AdoptionFilterSchema
{
id: string
label: string
isDefault?: boolean
}AdoptionGetCandidateInputSchema
{
integrationId: string
childNativeId: string
}AdoptionListCandidatesInputSchema
{
integrationId: string
page?: number = 1
pageSize?: number = 50
filter?: string
filterText?: CandidateQueryFilterSchema
}AdoptionListCandidatesOutputSchema
{
candidates: ({ childNativeId: string; 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"; status: DiscoveredChildStatusSchema; metadata?: { model?: string; serialNumber?: string; uid?: string; mac?: string; rtspChannel?: number; isBattery?: boolean; isDoorbell?: boolean; isMultifocal?: boolean; externalLocation?: string; manufacturer?: string; integration?: string } = {}; alreadyAdopted: boolean; adoptedDeviceId: number | null; capabilities?: string[]; features?: string[]; 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> }; children?: self[]; parentStableId?: string })[]
totalCount: number
page: number
pageSize: number
}AdoptionRecordSchema
{
addonId: string
integrationId: string
childNativeId: string
filter?: string
deviceId: number
adoptedBy: AdoptedBySchema
adoptedAt: number
adoptionState: AdoptionStateSchema
withdrawnSince: number | null
missedDiscoveries: number
lastMissAt: number | null
released: boolean
}AdoptionReleaseInputSchema
{
integrationId: string
camDeviceId: number
}AdoptionStateSchema
"offered" | "withdrawn"AdoptionStatusSchema
{
defaultAdoptMode?: AdoptModeSchema
lastDiscoveryAt: number | null
candidateCount: number
adoptedCount: number
lastError: string | null
}AdoptModeSchema
"manual" | "auto"AgentLoadSummarySchema
{
nodeId: string
online: boolean
load: RunnerLocalLoadSchema
score: number
decodeHwaccel: string | null
}AirQualitySensorStatusSchema
{
co2?: number
voc?: number
pm25?: number
pm10?: number
aqi?: number
lastFetchedAt: number
}AlarmArmModeSchema
"home" | "away" | "night" | "vacation" | "custom_bypass"AlarmPanelStatusSchema
{
state: AlarmStateSchema
targetMode?: AlarmArmModeSchema | null
availableModes: AlarmArmModeSchema[]
codeRequired: boolean | null
lastChangedAt: number
}AlarmStateSchema
"disarmed" | "armed_home" | "armed_away" | "armed_night" | "armed_vacation" | "armed_custom_bypass" | "arming" | "disarming" | "pending" | "triggered"AlertSchema
{
id: string
category: string
severity: AlertSeveritySchema
title: string
message: string
action?: { label: string; href?: string; invoke?: { addonId: string; action: string; input?: Record<string, unknown> }; navigation?: "app" | "server" }
status: AlertStatusSchema
progress?: number
read: boolean
createdAt: number
updatedAt: number
source?: AlertSourceSchema
metadata?: Record<string, unknown>
}AlertSeveritySchema
"info" | "success" | "warning" | "error" | "critical"AlertSourceSchema
{
type: string
id: string
}AlertStatusSchema
"active" | "in-progress" | "completed" | "failed" | "dismissed"AmbientLightSensorStatusSchema
{
illuminance: number | null
lastFetchedAt: number
}AnalyticsLtsSeriesSchema
"motion" | "audio-dbfs" | "battery" | "occupancy"AppDeclarationSchema
{
id: string
label: AppLabelSchema
icon: string
order?: number
entry: AppEntrySchema
reach: AppReachSchema
adminOnly: boolean
roles?: AppRoleSchema[]
nav: AppNavSectionSchema[]
takesSharedSearch: boolean
settings: { label?: AppLabelSchema; path: string } | null
}AppEntrySchema
| { kind: "native"; route: string }
| { kind: "web"; path: string; auth: "session-cookie" | "handoff" }
| { kind: "addon-page"; pageId: string }AppInfoSchema
{
addonId: string
app: AppDeclarationSchema
}AppLabelSchema
{
key: string
fallback: string
}AppleFmAvailabilitySchema
| { state: "available"; osVersion: string; contextSize: number; languages: string[]; imageInput: boolean }
| { state: "unavailable"; reason: AppleFmUnavailableReasonSchema; osVersion: string | null; detail: string }
| { state: "unsupported-platform"; platform: string }
| { state: "unknown"; error: string }AppleFmUnavailableReasonSchema
"deviceNotEligible" | "appleIntelligenceNotEnabled" | "modelNotReady" | "osTooOld" | "helperMissing" | "helperCrashed"ApplianceRunDetailSchema
{
kind: "appliance"
energyKwh: number | null
energyMethod: DeviceRunEnergyMethodSchema | null
peakW: number | null
avgW: number | null
program: string | null
remainingAtStartSec: number | null
finalPhase: string | null
energyStartKwh: number | null
powerObservedMs: number
}AppNavBadgeSchema
{
count: number | null
tone: "neutral" | "info" | "warning" | "danger"
}AppNavItemSchema
{
id: string
label: AppLabelSchema
icon: string
path: string
adminOnly?: boolean
keywords?: string[]
badgeKey?: string
requiresCapability?: string
}AppNavSectionSchema
{
id: string
label: AppLabelSchema | null
items: AppNavItemSchema[]
}AppReachSchema
| { kind: "hub" }
| { kind: "lan-only" }
| { kind: "node"; nodeId: string }AppRoleSchema
"admin" | "user"ArchiveEntrySchema
{
path: string
kind: "file" | "dir" | "symlink"
sizeBytes: number
mtime: number
}ArchiveManifestSchema
{
archiveVersion: 1
createdAt: number
dataDir: string
locations: string[]
entries: ArchiveEntrySchema[]
totalBytes: number
totalFiles: number
sqliteSnapshots?: ArchiveSqliteSnapshotSchema[]
omittedDatabases?: DataStoreDatabaseSchema[]
}ArchiveSqliteSnapshotSchema
{
livePath: string
snapshotPath: string
sizeBytes: number
pageCount: number
pageSize: number
tables: DatabaseSnapshotTableSchema[]
copyMs: number
verifyMs: number
takenAt: number
databaseId?: DataStoreDatabaseSchema
}AttachmentMediaTypeSchema
"image" | "video" | "gif" | "audio" | "icon"AttachmentSchema
{
mediaType: AttachmentMediaTypeSchema
url?: string
bytes?: <custom>
mime?: string
name?: string
}AudioAnalysisResultSchema
{
level: AudioLevelSchema
classification?: { labels: AudioClassificationLabelSchema[]; inferenceMs: number }
classifyOutcome: AudioClassifyOutcomeSchema
timestamp: number
}AudioAnalysisSettingsSchema
{
minConfidence?: number = 0.3
allowedClasses?: string[] = []
}AudioAttachDeviceInputSchema
{
deviceId: number
brokerId: string
ingestNodeId: string
settings: AudioAnalysisSettingsSchema
}AudioAttachDeviceResultSchema
{
attached: boolean
replaced: boolean
}AudioChunkFormatSchema
"f32le" | "pcmu" | "pcma"AudioChunkInputSchema
{
data: <custom>
sampleRate: number
channels: number
timestamp: number
deviceId?: number
}AudioClassificationLabelSchema
{
className: string
originalClass?: string
score: number
}AudioClassificationResultSchema
{
labels: AudioClassificationLabelSchema[]
rawLabels?: AudioClassificationLabelSchema[]
inferenceMs: number
}AudioClassifyOutcomeSchema
| { state: "classified" }
| { state: "not-classified"; reason: "superseded" | "error" | "timeout" | "disposed" }AudioClassSummarySchema
{
className: string
hits: number
avgScore: number
peakScore: number
}AudioCodecInfoSchema
{
codec: string
canDecode: boolean
canEncode: boolean
label?: string
}AudioDecodeSessionConfigSchema
{
codec: string
sourceSampleRate: number
sourceChannels: number
extraData?: <custom>
targetSampleRate: number
targetChannels: number
targetFormat?: PcmSampleFormatSchema
idleMs?: number
tag?: string
}AudioDetachDeviceResultSchema
{
detached: boolean
}AudioEncodedChunkSchema
{
data: <custom>
codec: string
pts: number
frameComplete: boolean
}AudioEncodeSessionConfigSchema
{
codec: string
sourceSampleRate: number
sourceChannels: number
sourceFormat?: PcmSampleFormatSchema
targetSampleRate: number
targetChannels: number
bitrateKbps?: number
idleMs?: number
tag?: string
}AudioEventSchema
{
id: number
deviceId: number
timestamp: number
kind: "audio"
rms: number
dbfs: number
classification?: { className: string; originalClass?: string; score: number }
classifyOutcome?: AudioClassifyOutcomeSchema
mediaUrl?: string
}AudioLevelSchema
{
rms: number
dbfs: number
}AudioMetricsHistoryPointSchema
{
ts: number
dbfs: number | null
peakDbfs: number
avgDbfs: number
topClass: string | null
topScore: number | null
}AudioMetricsHistorySchema
{
points: AudioMetricsHistoryPointSchema[]
effectiveSampleEveryMs: number
windowMsActual: number
}AudioMetricsSnapshotSchema
{
ts: number
windowSec: number
level: { rms: number; dbfs: number }
peakDbfs: number
avgDbfs: number
current: { className: string; score: number; timestamp: number } | null
byClass: AudioClassSummarySchema[]
}AudioPcmChunkSchema
{
data: <custom>
sampleRate: number
channels: number
format: PcmSampleFormatSchema
pts: number
}AudioStreamPickSchema
| CamProfileSchema
| "auto"AuthResultSchema
{
userId: string
username: string
email?: string
displayName?: string
isAdmin?: boolean = false
}AutomationControlStatusSchema
{
enabled: boolean
isRunning: boolean
lastTriggeredAt: number
lastError: string | null
lastChangedAt: number
}AutoUpdateSettingsSchema
{
channel: "off" | "latest" | "beta"
intervalSeconds: number
updateCheckIntervalSeconds: number
}AvailableIntegrationTypeSchema
{
addonId: string
name: string
providerLabel?: string
description: string
iconUrl: string | null
color: string
instanceMode: string
mode: "standalone" | "account" | "broker"
discoveryMode: string
kind: "device-adoption" | "device-provider"
brokerKind: string | null
supportsLocationImport: boolean
canTest: boolean
existingInstances: ({ id: string; name: string })[]
canAdd: boolean
}