Dominevo
ReferenceHTTP API

pipelineRunner

The pipelineRunner router: 18 methods of the pipeline-runner capability, with tier, scope, input and output.

Capability pipeline-runner · scope system · mode singleton · source packages/types/src/capabilities/pipeline-runner.cap.ts:1232.

Every method is called at /trpc/pipelineRunner.<method> — queries with GET, mutations with POST. See How to call and Authorization.

MethodKindTierToken scopeViewer
attachCameramutationprotectedcreateno
detachCameramutationprotectedcreateno
reportMotionmutationprotectedcreateno
getLocalLoadqueryprotectedviewno
getLocalMetricsqueryprotectedviewno
getCameraMetricsqueryprotectedviewno
getAllCameraMetricsqueryprotectedviewno
getLocalCamerasqueryprotectedviewno
requestOccupancyBurstmutationadminadmin onlyno
getNativeCropqueryprotectedviewno
runDetailSubtreemutationprotectedcreateno
runStatelessStepmutationprotectedcreateno
parkTrackFramemutationprotectedcreateno
getParkedTrackFramequeryprotectedviewno
releaseParkedTrackFramesmutationprotectedcreateno
startNodeBenchmutationadminadmin onlyno
getNodeBenchStatusqueryadminadmin onlyno
abortNodeBenchmutationadminadmin onlyno

pipelineRunner.attachCamera

  • Kind: mutation — POST /trpc/pipelineRunner.attachCamera
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: create on capability pipeline-runner, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=pipelineRunner.attachCamera on your hub

Input

RunnerCameraConfigSchema

Output

{ success: true }

Shapes: RunnerCameraConfigSchema

pipelineRunner.detachCamera

  • Kind: mutation — POST /trpc/pipelineRunner.detachCamera
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: create on capability pipeline-runner, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=pipelineRunner.detachCamera on your hub

Input

{ deviceId: number }

Output

{ success: true }

pipelineRunner.reportMotion

  • Kind: mutation — POST /trpc/pipelineRunner.reportMotion
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: create on capability pipeline-runner, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=pipelineRunner.reportMotion on your hub

Input

ReportMotionInputSchema

Output

{ success: true }

Shapes: ReportMotionInputSchema

pipelineRunner.getLocalLoad

  • Kind: query — GET /trpc/pipelineRunner.getLocalLoad
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability pipeline-runner, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=pipelineRunner.getLocalLoad on your hub

Input

void

Output

RunnerLocalLoadSchema

Shapes: RunnerLocalLoadSchema

pipelineRunner.getLocalMetrics

  • Kind: query — GET /trpc/pipelineRunner.getLocalMetrics
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability pipeline-runner, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=pipelineRunner.getLocalMetrics on your hub

Input

void

Output

RunnerLocalMetricsSchema

Shapes: RunnerLocalMetricsSchema

pipelineRunner.getCameraMetrics

  • Kind: query — GET /trpc/pipelineRunner.getCameraMetrics
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability pipeline-runner, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=pipelineRunner.getCameraMetrics on your hub

Input

{ deviceId: number }

Output

CameraMetricsSchema | null

Shapes: CameraMetricsSchema

pipelineRunner.getAllCameraMetrics

  • Kind: query — GET /trpc/pipelineRunner.getAllCameraMetrics
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability pipeline-runner, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=pipelineRunner.getAllCameraMetrics on your hub

Input

void

Output

CameraMetricsWithDeviceIdSchema[]

Shapes: CameraMetricsWithDeviceIdSchema

pipelineRunner.getLocalCameras

  • Kind: query — GET /trpc/pipelineRunner.getLocalCameras
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability pipeline-runner, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=pipelineRunner.getLocalCameras on your hub

Input

void

Output

number[]

pipelineRunner.requestOccupancyBurst

  • Kind: mutation — POST /trpc/pipelineRunner.requestOccupancyBurst
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=pipelineRunner.requestOccupancyBurst on your hub

Input

{ deviceId: number; frames?: number; reason: string }

Output

{ started: boolean; refusedBecause?: OccupancyBurstRefusalSchema }

Shapes: OccupancyBurstRefusalSchema

pipelineRunner.getNativeCrop

  • Kind: query — GET /trpc/pipelineRunner.getNativeCrop
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability pipeline-runner, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=pipelineRunner.getNativeCrop on your hub

Input

{ handle: FrameHandleSchema; bbox: NativeCropBboxSchema; maxWidth?: number; acceptJpegBytes?: boolean; encodeJpeg?: boolean }

Output

NativeCropResultSchema | null

Shapes: FrameHandleSchema · NativeCropBboxSchema · NativeCropResultSchema

pipelineRunner.runDetailSubtree

  • Kind: mutation — POST /trpc/pipelineRunner.runDetailSubtree
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: create on capability pipeline-runner, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=pipelineRunner.runDetailSubtree on your hub

Input

{ deviceId: number; frameHandle?: FrameHandleSchema; frameJpeg?: string; cropJpeg?: string; parent: { bbox: NativeCropBboxSchema; className: string }; steps?: string[]; supplied?: { stepId: string; modelId: string; boxes: ({ bbox: NativeCropBboxSchema; score: number })[] } }

Output

{ details: ({ stepId: string; className: string; score: number; bbox?: NativeCropBboxSchema; embedding?: string; embeddingMagnitude?: number; embeddingModelId?: string; label?: string; labelTier?: 1 | 2; labelModelId?: string; alignedCropJpeg?: string; nativeFaceShortSidePx?: number; landmarks?: ({ x: number; y: number })[] })[] } | null

Shapes: FrameHandleSchema · NativeCropBboxSchema

pipelineRunner.runStatelessStep

  • Kind: mutation — POST /trpc/pipelineRunner.runStatelessStep
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: create on capability pipeline-runner, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=pipelineRunner.runStatelessStep on your hub

Input

{ stepId: string; modelId: string; frameJpeg: string; bbox: NativeCropBboxSchema; className: string; sourceDeviceId: number }

Output

{ kind: "ran"; nodeId: string; modelId: string; details: ({ stepId: string; className: string; score: number; bbox?: NativeCropBboxSchema; embedding?: string; embeddingMagnitude?: number; embeddingModelId?: string; label?: string; labelTier?: 1 | 2; labelModelId?: string; alignedCropJpeg?: string; nativeFaceShortSidePx?: number; landmarks?: ({ x: number; y: number })[] })[] } | { kind: "refused"; nodeId: string; reason: "unknown-step" | "model-not-servable" | "unreadable-frame" | "execution-failed" | "no-eligible-device"; detail: string }

Shapes: NativeCropBboxSchema

pipelineRunner.parkTrackFrame

  • Kind: mutation — POST /trpc/pipelineRunner.parkTrackFrame
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: create on capability pipeline-runner, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=pipelineRunner.parkTrackFrame on your hub

Input

{ deviceId: number; trackId: string; kind: ParkedFrameKindSchema; handle: FrameHandleSchema; bbox: NativeCropBboxSchema; maxWidth?: number; timestamp: number }

Output

ParkTrackFrameResultSchema

Shapes: ParkedFrameKindSchema · FrameHandleSchema · NativeCropBboxSchema · ParkTrackFrameResultSchema

pipelineRunner.getParkedTrackFrame

  • Kind: query — GET /trpc/pipelineRunner.getParkedTrackFrame
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability pipeline-runner, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=pipelineRunner.getParkedTrackFrame on your hub

Input

{ deviceId: number; trackId: string; kind: ParkedFrameKindSchema; acceptJpegBytes?: boolean }

Output

ParkedTrackFrameSchema | null

Shapes: ParkedFrameKindSchema · ParkedTrackFrameSchema

pipelineRunner.releaseParkedTrackFrames

  • Kind: mutation — POST /trpc/pipelineRunner.releaseParkedTrackFrames
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: create on capability pipeline-runner, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=pipelineRunner.releaseParkedTrackFrames on your hub

Input

{ deviceId: number; trackId: string }

Output

{ released: number }

pipelineRunner.startNodeBench

  • Kind: mutation — POST /trpc/pipelineRunner.startNodeBench
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=pipelineRunner.startNodeBench on your hub

Input

{ runId: string; devices: ({ deviceKey: string; modelIds: string[] })[]; phases: ("device" | "pipeline" | "decode")[]; decodeProfiles?: ({ width: number; height: number; fps: number; codec: "h264" | "h265" })[] = [{"width":3840,"height":2160,"fps":15,"codec":"h265"},{"width":1920,"height":1080,"fps":15,"codec":"h264"}]; steps?: string[] = []; fpsPerStream: number; deadlineAtMs: number; settleSec?: number = 5; measureSec?: number = 20; keepDownloadedModels?: boolean = false }

Output

{ accepted: true; runId: string }

pipelineRunner.getNodeBenchStatus

  • Kind: query — GET /trpc/pipelineRunner.getNodeBenchStatus
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=pipelineRunner.getNodeBenchStatus on your hub

Input

{ runId: string }

Output

{ runId: string; nodeId: string; state: "running" | "done" | "failed" | "aborted"; progress: { phase: "preparing" | "device" | "pipeline" | "decode" | "cleanup"; deviceKey: string | null; modelId: string | null; load: number | null; cellsDone: number; cellsTotal: number; message: string } | null; cells: ({ phase: "device"; deviceKey: string; modelId: string; p50Ms: number; p95Ms: number; p99Ms: number; fps: number; kMax: number; limitedBy: "p95" | "fps" | "drops" | "errors" | "stall" | "cpu" | "ram" | "none"; warmupMs: number; ramp: ({ load: number; pass: boolean; p95Ms: number; dropRatio: number; fps: number; cpuPct: number | null; ramFreePct: number | null; failReasons: string[] })[] } | { phase: "pipeline"; deviceKey: string; modelId: string; steps: string[]; maxSessions: number; limitedBy: "p95" | "fps" | "drops" | "errors" | "stall" | "cpu" | "ram" | "none"; stepsFired: string[]; warmupMs: number; ramp: ({ load: number; pass: boolean; p95Ms: number; dropRatio: number; fps: number; cpuPct: number | null; ramFreePct: number | null; failReasons: string[] })[] } | { phase: "decode"; profile: { width: number; height: number; fps: number; codec: "h264" | "h265" }; maxStreams: number; limitedBy: "p95" | "fps" | "drops" | "errors" | "stall" | "cpu" | "ram" | "none"; hardware: boolean; decoder: string; motion: boolean; warmupMs: number; ramp: ({ load: number; pass: boolean; minFps: number | null; ageP95Ms: number | null; cpuPct: number | null; ramFreePct: number | null; failReasons: string[] })[] })[]; fingerprint: { pipelineVersion: string | null; cpuModel: string | null; ramGb: number | null; os: string | null; pools?: Record<string, { runtime: string; numWorkers: number; concurrency: number; batchMode: string }> = {} } | null; clip: { id: string; revision: string | null; frames: number; width: number; height: number } | null; activeCameraIds: number[]; deletedModels: string[]; skipped?: string[] = []; error: string | null; startedAtMs: number; finishedAtMs: number | null } | null

pipelineRunner.abortNodeBench

  • Kind: mutation — POST /trpc/pipelineRunner.abortNodeBench
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=pipelineRunner.abortNodeBench on your hub

Input

{ runId: string }

Output

{ aborted: boolean }