Dominevo
ReferenceHTTP API

pipelineExecutor

The pipelineExecutor router: 30 methods of the pipeline-executor capability, with tier, scope, input and output.

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

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

MethodKindTierToken scopeViewer
getAvailableEnginesqueryprotectedviewno
getSelectedEnginequeryprotectedviewno
getEngineProvisioningqueryprotectedviewno
getVideoPipelineStepsqueryprotectedviewno
setVideoPipelineStepsmutationadminadmin onlyno
getInferenceDeviceHealthqueryprotectedviewno
rearmInferenceDevicemutationadminadmin onlyno
getSchemaqueryprotectedviewno
getOrchestratorConfigSchemaqueryprotectedviewno
validatePipelinequeryprotectedviewno
getCapabilitiesqueryprotectedviewno
getAddonModelsqueryprotectedviewno
downloadModelmutationprotectedcreateno
deleteModelmutationprotecteddeleteno
runPipelinemutationprotectedcreateno
runPipelineBatchmutationprotectedcreateno
cacheFrameInPoolmutationprotectedcreateno
inferCachedmutationprotectedcreateno
uncacheFramemutationprotectedcreateno
getEffectiveTuningqueryprotectedviewno
listLoadedEnginesqueryprotectedviewno
spinEnginemutationadminadmin onlyno
killEnginemutationadminadmin onlyno
listReferenceImagesqueryprotectedviewno
getReferenceImagequeryprotectedviewno
getReferenceAudioFilesqueryprotectedviewno
getReferenceAudioqueryprotectedviewno
getAudioCapabilitiesqueryprotectedviewno
runAudioTestmutationprotectedcreateno
getDetectionConfigSchemaqueryprotectedviewno

pipelineExecutor.getAvailableEngines

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

Input

void

Output

PipelineEngineChoiceSchema[]

Shapes: PipelineEngineChoiceSchema

pipelineExecutor.getSelectedEngine

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

Input

void

Output

PipelineEngineChoiceSchema

Shapes: PipelineEngineChoiceSchema

pipelineExecutor.getEngineProvisioning

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

Input

{ nodeId: string }

Output

{ runtimeId: "onnx" | "openvino" | "coreml" | "edgetpu" | null; device: string | null; state: "idle" | "installing" | "verifying" | "ready" | "failed"; progress?: number; error?: string; nextRetryAt?: number; configIssues?: string[] }

pipelineExecutor.getVideoPipelineSteps

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

Input

void

Output

Record<string, { modelId: string; settings: Record<string, unknown> }>

pipelineExecutor.setVideoPipelineSteps

  • Kind: mutation — POST /trpc/pipelineExecutor.setVideoPipelineSteps
  • 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=pipelineExecutor.setVideoPipelineSteps on your hub

Input

{ steps: Record<string, { modelId: string; settings: Record<string, unknown> }> }

Output

{ success: true }

pipelineExecutor.getInferenceDeviceHealth

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

Input

{ nodeId: string }

Output

{ unhealthy: ({ deviceKey: string; state: "failed" | "backoff"; since: number; deaths: number; lastError: string; absentReason?: "no-gpu-device" })[] }

pipelineExecutor.rearmInferenceDevice

  • Kind: mutation — POST /trpc/pipelineExecutor.rearmInferenceDevice
  • 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=pipelineExecutor.rearmInferenceDevice on your hub

Input

{ nodeId: string; deviceKey: string }

Output

{ rearmed: boolean }

pipelineExecutor.getSchema

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

Input

void

Output

{ availableEngines: ({ engine: PipelineEngineChoiceSchema; devices: ({ id: string; label: string; description?: string })[]; defaultDevice: string })[]; selectedEngine: PipelineEngineChoiceSchema; slots: ({ id: "detector" | "cropper" | "classifier" | "refiner" | "audio-classifier"; label: string; priority: number; parentSlot: "detector" | "cropper" | "classifier" | "refiner" | "audio-classifier" | null; addons: ({ id: string; name: string; slot: "detector" | "cropper" | "classifier" | "refiner" | "audio-classifier"; inputClasses: string[]; outputClasses: string[]; childSlots: ("detector" | "cropper" | "classifier" | "refiner" | "audio-classifier")[]; models: ({ id: string; name: string; formats: Record<string, {…}>; group?: {…}; legacy?: boolean; provider?: "camstack" | "frigate" | "scrypted" | "custom"; defaultConfidence?: number; suppliesSteps?: ({…} | {…} | {…})[] })[]; defaultModelId: string; defaultModelIdByFormat?: Record<string, string>; enabledByDefault?: boolean; defaultConfidence: number; group?: string; configSchema?: <custom>[] })[] })[] }

Shapes: PipelineEngineChoiceSchema

pipelineExecutor.getOrchestratorConfigSchema

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

Input

void

Output

<custom>

pipelineExecutor.validatePipeline

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

Input

{ steps: ({ addonId: string; modelId?: string; enabled?: boolean = true; children?: self[]; settings?: Record<string, unknown>; jumpDeviceKey?: string })[]; deviceKey?: string }

Output

PipelineValidationResultSchema

Shapes: PipelineValidationResultSchema

pipelineExecutor.getCapabilities

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

Input

void

Output

<custom>

pipelineExecutor.getAddonModels

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

Input

{ addonId: string }

Output

<custom>

pipelineExecutor.downloadModel

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

Input

{ addonId: string; modelId: string; format: "onnx" | "coreml" | "openvino" | "tflite" | "pt" | "gguf" }

Output

{ filePath: string; sizeMB: number; durationMs: number }

pipelineExecutor.deleteModel

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

Input

{ addonId: string; modelId: string; format: "onnx" | "coreml" | "openvino" | "tflite" | "pt" | "gguf" }

Output

{ success: true }

pipelineExecutor.runPipeline

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

Input

{ steps: ({ addonId: string; modelId?: string; enabled?: boolean = true; children?: self[]; settings?: Record<string, unknown>; jumpDeviceKey?: string })[]; frame?: FrameInputSchema; frameRef?: { registryId: string; id: string; width: number; height: number; format: "rgb" | "gray"; timestamp: number; capturedAt?: number }; frameHandle?: FrameHandleSchema; imageBase64?: string; image?: <custom>; referenceImage?: string; deviceId?: number; sessionId?: string; plane?: "full" | "frame"; deviceKey?: string; nativeCropRef?: NativeCropRefSchema; replay?: true; suppliedRoot?: SuppliedRootOutputSchema; motionRegions?: NormalizedRectSchema[] }

Output

<custom>

Shapes: FrameInputSchema · FrameHandleSchema · NativeCropRefSchema · SuppliedRootOutputSchema · NormalizedRectSchema

pipelineExecutor.runPipelineBatch

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

Input

{ steps: ({ addonId: string; modelId?: string; enabled?: boolean = true; children?: self[]; settings?: Record<string, unknown>; jumpDeviceKey?: string })[]; frames: FrameInputSchema[]; deviceId?: number; sessionId?: string; frameId?: number; deviceKey?: string }

Output

{ results: <custom>[] }

Shapes: FrameInputSchema

pipelineExecutor.cacheFrameInPool

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

Input

{ data: <custom>; width: number; height: number; format: "rgb" | "bgr" | "gray" }

Output

{ frameId: number; width: number; height: number }

pipelineExecutor.inferCached

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

Input

{ stepId: string; frameId: number; modelId: string }

Output

Record<string, unknown>

pipelineExecutor.uncacheFrame

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

Input

{ frameId: number }

Output

void

pipelineExecutor.getEffectiveTuning

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

Input

{ deviceKey?: string }

Output

EffectiveTuningSchema

Shapes: EffectiveTuningSchema

pipelineExecutor.listLoadedEngines

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

Input

void

Output

({ engineKey: string; engine: PipelineEngineChoiceSchema; modelsLoaded: string[]; inUseByCameras: number[]; kind: "runtime" | "device-pool"; poolPid: number | null; idleMs: number | null; idleTtlMs: number | null })[]

Shapes: PipelineEngineChoiceSchema

pipelineExecutor.spinEngine

  • Kind: mutation — POST /trpc/pipelineExecutor.spinEngine
  • 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=pipelineExecutor.spinEngine on your hub

Input

{ engine: PipelineEngineChoiceSchema }

Output

{ success: true }

Shapes: PipelineEngineChoiceSchema

pipelineExecutor.killEngine

  • Kind: mutation — POST /trpc/pipelineExecutor.killEngine
  • 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=pipelineExecutor.killEngine on your hub

Input

{ engine: PipelineEngineChoiceSchema; force?: boolean }

Output

{ success: boolean; reason?: string }

Shapes: PipelineEngineChoiceSchema

pipelineExecutor.listReferenceImages

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

Input

void

Output

({ filename: string; stepIds?: string[] })[]

pipelineExecutor.getReferenceImage

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

Input

{ filename: string }

Output

{ base64: string; filename: string } | null

pipelineExecutor.getReferenceAudioFiles

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

Input

void

Output

({ filename: string; sizeKb: number })[]

pipelineExecutor.getReferenceAudio

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

Input

{ filename: string }

Output

{ base64: string } | null

pipelineExecutor.getAudioCapabilities

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

Input

void

Output

{ activeBackend: string; availableBackends: ({ id: string; name: string; description: string; available: boolean; rawLabels?: string[] })[]; sampleRate: number; chunkDurationMs: number }

pipelineExecutor.runAudioTest

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

Input

{ addonId: string; modelId: string; filename?: string; settings?: Record<string, unknown> }

Output

{ success: boolean; error?: string; frame?: <custom> }

pipelineExecutor.getDetectionConfigSchema

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

Input

void

Output

<custom>