ReferenceHTTP APIShapes
Shapes: P
Named input and output shapes starting with P, 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.
PackageInstallationSchema
{
packageName: string
nodeId: string
nodeName: string
isHub: boolean
isOnline: boolean
version: string | null
addonIds: string[]
source: "live" | "recorded"
onHub: boolean
}PackageInstallationsSchema
{
installations: PackageInstallationSchema[]
unreachable: ({ nodeId: string; error: string })[]
}PackageLlmVerdictSchema
{
package: boolean
confidence: number
reason: string
}PackageUpdateSchema
{
name: string
currentVersion: string
latestVersion: string
category: "addon" | "core"
requiresRestart: boolean
isSystem: boolean
blockedBy?: ({ kind: "server-too-old"; required: string; running: string | null } | { kind: "addon-too-old"; packageName: string; required: string; running: string | null } | { kind: "wrapper-too-old"; wrapper: "desktop" | "image"; required: string; running: string | null })[]
}PackageVersionInfoSchema
{
version: string
publishedAt: string
deprecated?: string
distTags: string[]
}ParkedFrameKindSchema
"keyFrame" | "thumbnail"ParkedTrackFrameSchema
{
jpeg?: string
jpegBytes?: <custom>
width: number
height: number
timestamp: number
parkedAt: number
}ParkRefusalSchema
"handle-gone" | "encode-failed"ParkTrackFrameResultSchema
| { parked: true; nodeId: string; width: number; height: number; bytes: number; replaced: boolean }
| { parked: false; nodeId: string; reason: ParkRefusalSchema; handleAgeMs: number | null; detail?: string }PasskeyLoginMethodSchema
{
kind: "passkey"
id: string
label: string
stage: LoginStageEnum
rpId: string
origin: string | null
app?: { kind: "native" } | { kind: "browser"; startPath: string } | null
}PasskeySummarySchema
{
credentialId: string
label: string
createdAt: number
lastUsedAt: number | null
transports?: string[] = []
}PcmSampleFormatSchema
"f32le" | "s16le"PerScopeBreakdownSchema
{
totalObjects: number
byClass: Record<string, number>
standingObjects?: number
transientObjects?: number
}PetFeederStatusSchema
{
foodLevel: number | null
bowlFood: number | null
eating: boolean
supportsMarkRefilled: boolean
food1: number | null
food2: number | null
lowFood: boolean
batteryPower: number | null
powerSource: "mains" | "battery" | null
desiccantLeftDays: number | null
feeding: boolean
status: "normal" | "offline" | "on_batteries" | null
error: string | null
errorCode: number | null
isDualHopper: boolean
childLock: boolean
indicatorLight: boolean
feedSound: boolean
volume: number
lastFeedGrams: number | null
lastFeedHopper1: number | null
lastFeedHopper2: number | null
lastFetchedAt: number
}PetFountainStatusSchema
{
waterLevel: number | null
waterVolume: number | null
empty: boolean | null
pumpRunning: boolean | null
error: string | null
lastFetchedAt: number
}PickedCamStreamSchema
{
camStreamId: string
codec?: string
resolution?: CamStreamResolutionSchema
transcodes: boolean
reason: string
profile?: CamProfileSchema
brokerId?: string
url?: string
fps?: number
fpsSource?: "published" | "measured"
}PipelineAssignmentSchema
{
deviceId: number
agentNodeId: string
pinned: boolean
reason: "manual" | "capacity" | "hardware-affinity" | "failover" | "rebalance"
assignedAt: number
}PipelineEngineChoiceSchema
{
runtime: "python"
backend: string
format: "onnx" | "coreml" | "openvino" | "tflite" | "pt" | "gguf"
device?: string
}PipelineValidationIssueSchema
{
addonId: string
kind: "unknown-addon" | "no-format-build" | "unknown-device"
detail: string
}PipelineValidationResultSchema
{
ok: boolean
issues: PipelineValidationIssueSchema[]
substitutions: ModelSubstitutionSchema[]
format: string
}PolygonPointSchema
{
x: number
y: number
}PowerMeterStatusSchema
{
power?: number
deliveredPower?: number
energy?: number
voltage?: number
current?: number
apparentPower?: number
powerFactor?: number
lastFetchedAt: number
}PowerSourceActionResultSchema
| { accepted: true }
| { accepted: false; reason: PowerSourceRefusalReasonSchema; message: string }PowerSourceInfoSchema
{
linked: boolean
switchDeviceId: number | null
switchName: string | null
switchOn: boolean | null
switchOnline: boolean | null
switchSettable?: boolean | null
restartInProgress: boolean
offSeconds: number
}PowerSourceRefusalReasonSchema
"no-power-source" | "switch-missing" | "switch-offline" | "switch-unknown" | "restart-in-progress" | "switch-call-failed" | "switch-options-unreadable" | "not-settable" | "switch-is-actuator" | "link-lost" | "link-unknown"PowerSourceStateSchema
{
switchOn: boolean | null
offSeconds: number
lastFetchedAt: number
}PresenceStatusSchema
{
state: string
location: string | null
gps: { latitude: number; longitude: number; accuracyMeters: number } | null
lastChangedAt: number
}PressureSensorStatusSchema
{
pressure: number | null
lastFetchedAt: number
}PreviewDerivedEncodeResultSchema
| { kind: "preview"; preview: DerivedEncodePreviewSchema }
| { kind: "no-source" }PrivacyMaskOptionsSchema
{
maxRegions: number
supportedShapes: MaskShapeKindSchema[]
polygonVertices?: MaskPolygonVerticesSchema
supportsAudioMute: boolean
}PrivacyMaskPatchSchema
{
enabled?: boolean
regions?: PrivacyMaskRegionSchema[]
}PrivacyMaskRegionSchema
{
id: number
enabled: boolean
shape: PrivacyMaskShapeSchema
}PrivacyMaskShapeSchema
| MaskRectShapeSchema
| MaskPolygonShapeSchemaPrivacyMaskStatusSchema
{
enabled: boolean
regions: PrivacyMaskRegionSchema[] | null
audioEnabled: boolean | null
lastFetchedAt: number
}ProbeTargetConfigResultSchema
{
ok: boolean
resolvedUrl: string
httpStatus?: number
stateInstance?: string
error?: string
}ProfileRtspEntrySchema
{
profile: CamProfileSchema
brokerId: string
url: string
mutedUrl: string
enabled: boolean
codec?: string
resolution?: CamStreamResolutionSchema
}ProfileSlotSchema
{
deviceId: number
profile: CamProfileSchema
brokerId: string
sourceCamStreamId: string | null
status: ProfileSlotStatusSchema
resolution?: CamStreamResolutionSchema
codec?: string
preBufferSec?: number
errorMessage?: string
}ProfileSlotStatusSchema
"unassigned" | "idle" | "connecting" | "streaming" | "error"ProviderJobStateSchema
"pending" | "starting" | "running" | "succeeded" | "failed" | "cancelled" | "lost"ProviderJobStatusSchema
{
jobKey: string
providerJobId?: string
state: ProviderJobStateSchema
startedAt?: number
endedAt?: number
exitCode?: number
failureReason?: string
gpuType: string
region?: string
billedSeconds: number
costUsd: number
costIsEstimate: boolean
lastFetchedAt: number
}ProviderStatusSchema
{
connected: boolean
deviceCount: number
error?: string
motionSliceWriter?: "orchestrator"
}PtzAutotrackRuntimeStateSchema
{
enabled: boolean
lastChangedAt: number
currentSettings: PtzAutotrackSettingsSchema | null
supportedTargetTypes: PtzAutotrackTargetOptionSchema[]
lastFetchedAt: number
}PtzAutotrackSettingsSchema
{
targetType: string
stopDelaySeconds: number
disappearDelaySeconds: number
}PtzAutotrackStatusSchema
{
enabled: boolean
lastChangedAt: number
currentSettings: PtzAutotrackSettingsSchema | null
supportedTargetTypes: PtzAutotrackTargetOptionSchema[]
}PtzAutotrackTargetOptionSchema
{
value: string
label: string
}PtzHomePresetSchema
{
presetId: string | null
source: "operator" | "firmware" | "native" | "none"
}PtzHomeReturnSchema
{
enabled: boolean
seconds: number
}PtzOptionsSchema
{
hasPan: boolean
hasTilt: boolean
hasZoom: boolean
supportsPresets: boolean
maxPresets?: number
hasAutofocus: boolean
speedSteps: number | null
moveImpulseMs: number | null
}PtzPositionSchema
{
pan: number | null
tilt: number | null
zoom: number | null
}PtzPresetFunctionSchema
"home" | "day-mode" | "night-mode" | "day-night-auto" | "set-limits" | "save-limits" | "reboot" | "osd-menu"PtzPresetSchema
{
id: string
name: string
fn: PtzPresetFunctionSchema | null
writable: boolean
}PtzStatusSchema
{
pan: number | null
tilt: number | null
zoom: number | null
autofocus: boolean
}PumpCycleStatusSchema
{
enabled: boolean | null
onTime: number | null
offTime: number | null
lastFetchedAt: number
}