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.
| Method | Kind | Tier | Token scope | Viewer |
|---|---|---|---|---|
attachCamera | mutation | protected | create | no |
detachCamera | mutation | protected | create | no |
reportMotion | mutation | protected | create | no |
getLocalLoad | query | protected | view | no |
getLocalMetrics | query | protected | view | no |
getCameraMetrics | query | protected | view | no |
getAllCameraMetrics | query | protected | view | no |
getLocalCameras | query | protected | view | no |
requestOccupancyBurst | mutation | admin | admin only | no |
getNativeCrop | query | protected | view | no |
runDetailSubtree | mutation | protected | create | no |
runStatelessStep | mutation | protected | create | no |
parkTrackFrame | mutation | protected | create | no |
getParkedTrackFrame | query | protected | view | no |
releaseParkedTrackFrames | mutation | protected | create | no |
startNodeBench | mutation | admin | admin only | no |
getNodeBenchStatus | query | admin | admin only | no |
abortNodeBench | mutation | admin | admin only | no |
pipelineRunner.attachCamera
- Kind: mutation —
POST /trpc/pipelineRunner.attachCamera - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
createon capabilitypipeline-runner, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=pipelineRunner.attachCameraon your hub
Input
RunnerCameraConfigSchemaOutput
{ 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:
createon capabilitypipeline-runner, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=pipelineRunner.detachCameraon 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:
createon capabilitypipeline-runner, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=pipelineRunner.reportMotionon your hub
Input
ReportMotionInputSchemaOutput
{ 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:
viewon capabilitypipeline-runner, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=pipelineRunner.getLocalLoadon your hub
Input
voidOutput
RunnerLocalLoadSchemaShapes: RunnerLocalLoadSchema
pipelineRunner.getLocalMetrics
- Kind: query —
GET /trpc/pipelineRunner.getLocalMetrics - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilitypipeline-runner, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=pipelineRunner.getLocalMetricson your hub
Input
voidOutput
RunnerLocalMetricsSchemaShapes: RunnerLocalMetricsSchema
pipelineRunner.getCameraMetrics
- Kind: query —
GET /trpc/pipelineRunner.getCameraMetrics - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilitypipeline-runner, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=pipelineRunner.getCameraMetricson your hub
Input
{ deviceId: number }Output
CameraMetricsSchema | nullShapes: CameraMetricsSchema
pipelineRunner.getAllCameraMetrics
- Kind: query —
GET /trpc/pipelineRunner.getAllCameraMetrics - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilitypipeline-runner, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=pipelineRunner.getAllCameraMetricson your hub
Input
voidOutput
CameraMetricsWithDeviceIdSchema[]Shapes: CameraMetricsWithDeviceIdSchema
pipelineRunner.getLocalCameras
- Kind: query —
GET /trpc/pipelineRunner.getLocalCameras - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilitypipeline-runner, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=pipelineRunner.getLocalCamerason your hub
Input
voidOutput
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.requestOccupancyBurston 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:
viewon capabilitypipeline-runner, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=pipelineRunner.getNativeCropon your hub
Input
{ handle: FrameHandleSchema; bbox: NativeCropBboxSchema; maxWidth?: number; acceptJpegBytes?: boolean; encodeJpeg?: boolean }Output
NativeCropResultSchema | nullShapes: FrameHandleSchema · NativeCropBboxSchema · NativeCropResultSchema
pipelineRunner.runDetailSubtree
- Kind: mutation —
POST /trpc/pipelineRunner.runDetailSubtree - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
createon capabilitypipeline-runner, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=pipelineRunner.runDetailSubtreeon 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 })[] })[] } | nullShapes: FrameHandleSchema · NativeCropBboxSchema
pipelineRunner.runStatelessStep
- Kind: mutation —
POST /trpc/pipelineRunner.runStatelessStep - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
createon capabilitypipeline-runner, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=pipelineRunner.runStatelessStepon 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:
createon capabilitypipeline-runner, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=pipelineRunner.parkTrackFrameon your hub
Input
{ deviceId: number; trackId: string; kind: ParkedFrameKindSchema; handle: FrameHandleSchema; bbox: NativeCropBboxSchema; maxWidth?: number; timestamp: number }Output
ParkTrackFrameResultSchemaShapes: 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:
viewon capabilitypipeline-runner, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=pipelineRunner.getParkedTrackFrameon your hub
Input
{ deviceId: number; trackId: string; kind: ParkedFrameKindSchema; acceptJpegBytes?: boolean }Output
ParkedTrackFrameSchema | nullShapes: ParkedFrameKindSchema · ParkedTrackFrameSchema
pipelineRunner.releaseParkedTrackFrames
- Kind: mutation —
POST /trpc/pipelineRunner.releaseParkedTrackFrames - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
createon capabilitypipeline-runner, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=pipelineRunner.releaseParkedTrackFrameson 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.startNodeBenchon 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.getNodeBenchStatuson 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 } | nullpipelineRunner.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.abortNodeBenchon your hub
Input
{ runId: string }Output
{ aborted: boolean }