ReferenceHTTP APIShapes
Shapes: L
Named input and output shapes starting with L, 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.
LabelAttributionSchema
{
stepId: string
modelId?: string
decidedAt: number
identityId?: string
}LawnMowerActivitySchema
"idle" | "mowing" | "paused" | "docked" | "error"LawnMowerControlStatusSchema
{
activity: LawnMowerActivitySchema
batteryLevel: number | null
progress: number | null
currentCode: number | null
currentCodeLabel: string | null
severity: DeviceCodeSeveritySchema
lastChangedAt: number
}LinkedDeviceSchema
{
deviceId: number
name: string
location: string | null
features: string[]
producesTrackedEvents?: boolean
}LinkedDevicesModeSchema
"manual"ListFaultTypesInputSchema
{
deviceId: number
}LiveViewerCountSchema
{
deviceId: number
viewers: number
}LlmDefaultSchema
{
selector: LlmDefaultSelectorSchema
profileId: string
}LlmDefaultSelectorSchema
| { consumer: string }
| { purpose: "text" | "vision" }LlmDownloadProgressSchema
{
phase: "downloading" | "verifying"
file: string
fileIndex: number
fileCount: number
downloadedBytes: number
totalBytes?: number
}LlmErrorCodeSchema
"timeout" | "rate-limited" | "auth" | "refusal" | "bad-request" | "unavailable" | "no-profile" | "budget-exceeded" | "adapter-error"LlmGenerateBaseInputSchema
{
addonId?: string
profileId?: string
consumer: string
system?: string
prompt: string
jsonSchema?: Record<string, unknown>
maxTokens?: number
temperature?: number
topP?: number
topK?: number
reasoningEffort?: "off" | "low" | "medium" | "high"
timeoutMs?: number
retry?: LlmRetryPolicySchema
requestId?: string
}LlmGenerateErrSchema
{
ok: false
code: LlmErrorCodeSchema
message: string
retryAfterMs?: number
refusalSource?: LlmRefusalSourceSchema
}LlmGenerateOkSchema
{
ok: true
text: string
model: string
usage: LlmUsageSchema
truncated: boolean
latencyMs: number
}LlmGenerateResultSchema
| LlmGenerateOkSchema
| LlmGenerateErrSchemaLlmImageSchema
{
bytes: <custom>
mimeType: string
}LlmListModelsErrorCodeSchema
"auth" | "network" | "unsupported" | "invalid"LlmListModelsInputSchema
{
addonId: string
kind: string
profileId?: string
connection?: LlmProviderConfigSchema
}LlmListModelsResultSchema
| { ok: true; models: LlmModelInfoSchema[] }
| { ok: false; code: LlmListModelsErrorCodeSchema; message: string }LlmModelInfoSchema
{
id: string
label?: string
contextLength?: number
features?: { vision?: boolean; tools?: boolean; streaming?: boolean; reasoning?: boolean | null }
}LlmNodeModelSchema
{
file: string
sizeBytes: number
catalogId?: string
installedAt?: number
path?: string
}LlmProviderConfigSchema
Record<string, unknown>LlmRefusalSourceSchema
"guardrail" | "model"LlmRetryPolicySchema
{
enabled?: boolean = false
maxAttempts?: number = 1
}LlmRuntimeAppleCompleteInputSchema
{
addonId?: string
profileId?: string
consumer: string
system?: string
prompt: string
jsonSchema?: Record<string, unknown>
maxTokens?: number
temperature?: number
topP?: number
topK?: number
reasoningEffort?: "off" | "low" | "medium" | "high"
timeoutMs?: number
retry?: LlmRetryPolicySchema
requestId?: string
images?: LlmImageSchema[]
}LlmRuntimeCancelInputSchema
{
requestId: string
}LlmRuntimeCompleteInputSchema
{
addonId?: string
profileId?: string
consumer: string
system?: string
prompt: string
jsonSchema?: Record<string, unknown>
maxTokens?: number
temperature?: number
topP?: number
topK?: number
reasoningEffort?: "off" | "low" | "medium" | "high"
timeoutMs?: number
retry?: LlmRetryPolicySchema
requestId?: string
images?: LlmImageSchema[]
runtime: ManagedRuntimeConfigSchema
}LlmRuntimeDiskUsageSchema
{
nodeId: string
modelsBytes: number
freeBytes?: number
}LlmRuntimeNodeSchema
{
nodeId: string
reachable: boolean
status?: LlmRuntimeStatusSchema
disk?: LlmRuntimeDiskUsageSchema
error?: string
apple?: AppleFmAvailabilitySchema
}LlmRuntimeStatusSchema
{
nodeId: string
state: "stopped" | "downloading" | "starting" | "ready" | "crashed" | "failed"
pid?: number
port?: number
modelPath?: string
modelId?: string
downloadProgress?: number
download?: LlmDownloadProgressSchema
lastError?: string
crashesInWindow: number
memoryBytes?: number
vramBytes?: number
}LlmUsageRollupSchema
{
day: string
consumer: string
profileId: string
calls: number
okCalls: number
errorCalls: number
inputTokens: number
outputTokens: number
avgLatencyMs: number
}LlmUsageSchema
{
inputTokens: number
outputTokens: number
}LoadContributionSchema
{
role: "decode" | "transcode" | "recording" | "streaming" | "detection"
deviceId: number | null
attribution: "measured" | "accounted" | "unattributable"
unit: string
pid?: number
startedAtMs?: number
cpuSeconds?: number
rssBytes?: number
}LocateSegmentResultSchema
| { kind: "segment"; startMs: number; durMs: number; bytes: number }
| { kind: "gap"; nearestEdgeMs: number | null; prevEndMs?: number | null }LocationStatSchema
{
name: string
sizeBytes: number
fileCount: number
present: boolean
}LocationStatusSchema
{
latitude: number | null
longitude: number | null
accuracy: number | null
heading: number | null
speed: number | null
fixAt: number | null
lastChangedAt: number
}LockControlStatusSchema
{
state: LockStateSchema
codeRequired?: boolean | null
lastChangedAt: number
}LockStateSchema
"locked" | "unlocked" | "locking" | "unlocking" | "jammed" | "door-open"LogChannelApplyResultSchema
{
armed: number
unknown: string[]
}LogChannelWindowPatchSchema
{
channel: string
armMs: number
deviceIds?: number[] | null
}LogChannelWindowStateSchema
{
channel: string
armed: boolean
armedUntilMs: number
remainingMs: number
deviceIds: number[] | null
}LogEntrySchema
{
timestamp: Date
level: LogLevelSchema
scope: string[]
message: string
meta?: Record<string, unknown>
tags?: Record<string, string>
}LoggingEffectiveSchema
{
level: "debug" | "info" | "warn" | "error"
levelSource: LoggingLevelSourceSchema
}LoggingExplicitSchema
{
layers: LoggingLevelLayerSchema[]
}LoggingLevelLayerSchema
{
scope: LoggingScopeKindSchema
nodeId: string | null
component: string | null
level: "debug" | "info" | "warn" | "error" | null
}LoggingLevelSourceSchema
"default" | "cluster" | "node" | "component"LoggingScopeKindSchema
"cluster" | "node" | "component"LoggingSettingsPatchSchema
{
level?: "debug" | "info" | "warn" | "error" | null
diagnostics?: DiagnosticWindowPatchSchema[]
channels?: LogChannelWindowPatchSchema[]
opsLogRetentionDays?: number
}LoggingSettingsStateSchema
{
scopeNodeId: string | null
scopeComponent: string | null
effective: LoggingEffectiveSchema
explicit: LoggingExplicitSchema
activeWindows: DiagnosticWindowSchema[]
channels: ({ name: string; description: string; defaultLevel: "info" | "warn" | "error"; perDevice: boolean; kind?: "diagnostic" | "debug" = "diagnostic" })[]
activeChannels: LogChannelWindowStateSchema[]
opsLogRetentionDays: number
persisted: boolean
}LoginMethodContributionSchema
| RedirectLoginMethodSchema
| WidgetLoginMethodSchema
| PasskeyLoginMethodSchemaLoginStageEnum
"primary" | "second-factor"LogLevelSchema
"debug" | "info" | "warn" | "error"LogReadCapabilitiesSchema
{
readable: boolean
reason: string | null
filters: { deviceId: boolean; addonId: boolean; nodeId: boolean; tags: boolean; level: boolean; text: boolean; timeRange: boolean }
retentionDays: number | null
}LogReadEntrySchema
{
id?: string
timestamp: number
level: LogLevelSchema
scope?: string
message: string
tags?: Record<string, string | number>
meta?: Record<string, unknown>
}LogReadQuerySchema
{
instanceId?: string
requestId?: string
deviceId?: number
fromAddonId?: string
fromNodeId?: string
tags?: Record<string, string | number>
level?: LogLevelSchema
text?: string
since?: number
until?: number
before?: string
after?: string
limit?: number
budgetMs?: number
}LogReadResultSchema
{
entries: LogReadEntrySchema[]
nextBefore: string | null
nextAfter: string | null
scannedBytes: number
done: boolean
cancelled?: boolean
}LogStreamEntrySchema
{
timestamp: string
level: string
message: string
scope?: string
}LowPowerSleepStatusSchema
{
sleeping: boolean
lastContactAt?: number
lastUpdated: number
}LtsBucketSchema
{
scope: string
bucketStart: number
samples: number
sum: number
min: number
max: number
}