ReferenceHTTP APIShapes
Shapes: B
Named input and output shapes starting with B, 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.
BacklightModeSchema
"off" | "blc" | "wdr" | "hlc"BackupArchiveEncryptionSchema
{
scheme: string
keyId: string
}BackupDestinationInfoSchema
{
subId: string
displayName: string
description?: string
kind: string
triggerSupported: boolean
restoreSupported: boolean
id: string
addonId: string
enabled: boolean
retentionCount: number
label?: string
lastSuccessAt?: number
lastSuccessSizeBytes?: number
cron?: string
nextRunAt?: number
lastAttemptAt?: number
lastError?: string
}BackupEncryptionStatusSchema
{
enabled: boolean
active: { keyId: string; publicKey: string; createdAt: number } | null
keys: ({ keyId: string; createdAt: number; retiredAt: number | null })[]
}BackupEntrySchema
{
id: string
destinationId?: string
label?: string
createdAt: number
sizeBytes: number
locations?: string[]
encryption?: BackupArchiveEncryptionSchema
}BackupRunPhaseSchema
"queued" | "building" | "uploading" | "done"BackupRunSchema
{
id: string
state: BackupRunStateSchema
phase: BackupRunPhaseSchema
destinationIds: string[]
label?: string
requestedAt: number
startedAt?: number
finishedAt?: number
stagedBytes: number
archiveSizeBytes?: number
uploadedBytes: number
completedDestinationIds: string[]
failedDestinationIds: string[]
error?: string
queuePosition?: number
}BackupRunStateSchema
"queued" | "running" | "succeeded" | "failed" | "cancelled"BackupTriggerResultSchema
{
runId: string
queued: boolean
joined: boolean
cancelled: boolean
entries: BackupEntrySchema[]
}BatteryStatusSchema
{
level: number | null
charging: "dc" | "solar" | "none" | "unknown"
sleeping: boolean
lastUpdated: number
voltage?: number | null
chargeState?: "charging" | "full" | "idle" | "unknown"
currentMa?: number | null
temperatureC?: number | null
lastContactAt?: number
lastFullRefreshAt?: number
refreshAttemptWindow?: number
refreshAttempts?: number
refreshLastAttemptAt?: number
binary?: boolean
}BinaryStatusSchema
{
on: boolean
lastChangedAt: number
}BoardKeyFailureReasonSchema
"unknown-source" | "not-admin" | "no-builder" | "no-ingress-url" | "unreachable" | "unknown-board" | "no-encryption-key" | "unreadable-config"BoundingBoxSchema
{
x: number
y: number
w: number
h: number
}BrightnessStatusSchema
{
level: number
lastChangedAt: number
}BrokerAudioClientSchema
{
tag: string
subscribedAt: number
chunksDelivered: number
}BrokerClientsSchema
{
rtsp: BrokerRtspClientSchema[]
audio: BrokerAudioClientSchema[]
encoded: BrokerEncodedClientSchema[]
pipeClients: number
encodedSubscribers: number
}BrokerConnectionDetailsSchema
{
url: string
username?: string
password?: string
clientIdPrefix?: string
}BrokerConsumerKindSchema
"alexa" | "homekit" | "webrtc-browser" | "webrtc-mobile" | "webrtc-whep" | "rtsp-listen" | "derived-broker" | "recording" | "pipeline" | "snapshot" | "warmup" | "unknown"BrokerEncodedClientSchema
{
id: string
channel: "annexb" | "rtp"
attribution: { kind: BrokerConsumerKindSchema; label?: string; media?: "audio" | "video" | "both"; targetCodec?: string; transport?: "passthrough" | "repacketize" | "transcode"; remoteAddr?: string; userAgent?: string; userId?: string; sessionId?: string; extra?: Record<string, string> }
subscribedAt: number
packetsDelivered: number
}BrokerGetStateInputSchema
{
brokerId: string
key: string
}BrokerPublishInputSchema
{
brokerId: string
target: Record<string, unknown>
payload?: unknown
}BrokerRegistryStatusSchema
{
brokerCount: number
connectedCount: number
}BrokerRtspClientSchema
{
sessionId: string
remoteAddr: string
userAgent?: string | null
playing: boolean
muted: boolean
connectedAt: number
lastRtpAt: number
bytesSent: number
}BrokerStatsSchema
{
status: BrokerStatusSchema
inputFps: number
encodedSubscribers: number
uptimeMs: number
bitrateKbps: number
idrIntervalMs: number
codec?: string
totalBytes: number
packetCount: number
rtspClients: number
pipeClients: number
preBufferSec: number
preBufferMs: number
preBufferPackets: number
audio?: { codec: string; sampleRate: number; channels: number; supported: boolean } | null
audioMuted?: boolean
audioMutedDropped?: number
derivedEncode?: DerivedEffectiveEncodeSchema
}BrokerStatusSchema
"idle" | "connecting" | "streaming" | "error" | "stopped"BrokerSubscribeInputSchema
{
brokerId: string
filter: Record<string, unknown>
}BrokerSubscribeResultSchema
{
subscriptionId: string
}BrokerUnsubscribeInputSchema
{
brokerId: string
subscriptionId: string
}BulkRecordSchema
{
id?: string
data: Record<string, unknown>
}