@camstack/types 1.1.56 → 1.1.57

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -774,6 +774,26 @@ export declare const pipelineOrchestratorCapability: {
774
774
  }, z.core.$strip>, z.ZodObject<{
775
775
  success: z.ZodLiteral<true>;
776
776
  }, z.core.$strip>, "mutation">;
777
+ /**
778
+ * Set one node's multi-device inference opt-in (Phase 4 multi-device) — the
779
+ * per-node `deviceKey → { enabled, weight }` map that decides which
780
+ * accelerators the dispatcher may balance detection sessions across.
781
+ * The map REPLACES the node's stored `inferenceDevices` wholesale (pass the
782
+ * complete desired set; an empty map clears the opt-in → the node reverts to
783
+ * its single DEFAULT accelerator). `weight` is optional and defaults to 1.
784
+ * Creates the node's settings entry if absent. Changes take effect on the
785
+ * next dispatch/rebalance cycle — the dispatcher reads the enabled set via
786
+ * `PipelineSettingsStore.buildNodeInferenceDevices` when placing sessions.
787
+ */
788
+ readonly setAgentInferenceDevices: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
789
+ agentNodeId: z.ZodString;
790
+ inferenceDevices: z.ZodRecord<z.ZodString, z.ZodObject<{
791
+ enabled: z.ZodBoolean;
792
+ weight: z.ZodOptional<z.ZodNumber>;
793
+ }, z.core.$strip>>;
794
+ }, z.core.$strip>, z.ZodObject<{
795
+ success: z.ZodLiteral<true>;
796
+ }, z.core.$strip>, "mutation">;
777
797
  /**
778
798
  * Reset one node's pipeline to its hardware-aware defaults — the HONEST
779
799
  * reset (replaces the executor's legacy `resetToDefault`, which cleared a
@@ -10301,7 +10301,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
10301
10301
  format: "onnx" | "coreml" | "openvino" | "tflite" | "pt" | "gguf";
10302
10302
  device?: string | undefined;
10303
10303
  };
10304
- output: import("packages/types/dist/capabilities/pipeline-executor.cap").PipelineDefaultStepOutput[];
10304
+ output: import("@camstack/types").PipelineDefaultStepOutput[];
10305
10305
  meta: object;
10306
10306
  }>;
10307
10307
  reprobeEngine: import("@trpc/server").TRPCMutationProcedure<{
@@ -10435,7 +10435,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
10435
10435
  input: {
10436
10436
  nodeId?: string | undefined;
10437
10437
  } | undefined;
10438
- output: readonly import("packages/types/dist/capabilities/pipeline-executor.cap").PipelineDefaultStepOutput[] | null;
10438
+ output: readonly import("@camstack/types").PipelineDefaultStepOutput[] | null;
10439
10439
  meta: object;
10440
10440
  }>;
10441
10441
  getGlobalPipelineConfig: import("@trpc/server").TRPCQueryProcedure<{
@@ -10489,7 +10489,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
10489
10489
  format: "onnx" | "coreml" | "openvino" | "tflite" | "pt" | "gguf";
10490
10490
  device?: string | undefined;
10491
10491
  };
10492
- steps: readonly import("packages/types/dist/capabilities/pipeline-executor.cap").PipelineTemplateStepOutput[];
10492
+ steps: readonly import("@camstack/types").PipelineTemplateStepOutput[];
10493
10493
  }[];
10494
10494
  meta: object;
10495
10495
  }>;
@@ -10516,7 +10516,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
10516
10516
  format: "onnx" | "coreml" | "openvino" | "tflite" | "pt" | "gguf";
10517
10517
  device?: string | undefined;
10518
10518
  };
10519
- steps: readonly import("packages/types/dist/capabilities/pipeline-executor.cap").PipelineTemplateStepOutput[];
10519
+ steps: readonly import("@camstack/types").PipelineTemplateStepOutput[];
10520
10520
  };
10521
10521
  meta: object;
10522
10522
  }>;
@@ -10538,7 +10538,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
10538
10538
  format: "onnx" | "coreml" | "openvino" | "tflite" | "pt" | "gguf";
10539
10539
  device?: string | undefined;
10540
10540
  };
10541
- steps: readonly import("packages/types/dist/capabilities/pipeline-executor.cap").PipelineTemplateStepOutput[];
10541
+ steps: readonly import("@camstack/types").PipelineTemplateStepOutput[];
10542
10542
  };
10543
10543
  meta: object;
10544
10544
  }>;
@@ -11231,6 +11231,11 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
11231
11231
  };
11232
11232
  meta: object;
11233
11233
  }>;
11234
+ setAgentInferenceDevices: import("@trpc/server").TRPCMutationProcedure<{
11235
+ input: any;
11236
+ output: any;
11237
+ meta: object;
11238
+ }>;
11234
11239
  resetNodePipelineDefaults: import("@trpc/server").TRPCMutationProcedure<{
11235
11240
  input: {
11236
11241
  [x: string]: unknown;
@@ -27056,7 +27061,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
27056
27061
  format: "onnx" | "coreml" | "openvino" | "tflite" | "pt" | "gguf";
27057
27062
  device?: string | undefined;
27058
27063
  };
27059
- output: import("packages/types/dist/capabilities/pipeline-executor.cap").PipelineDefaultStepOutput[];
27064
+ output: import("@camstack/types").PipelineDefaultStepOutput[];
27060
27065
  meta: object;
27061
27066
  }>;
27062
27067
  reprobeEngine: import("@trpc/server").TRPCMutationProcedure<{
@@ -27190,7 +27195,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
27190
27195
  input: {
27191
27196
  nodeId?: string | undefined;
27192
27197
  } | undefined;
27193
- output: readonly import("packages/types/dist/capabilities/pipeline-executor.cap").PipelineDefaultStepOutput[] | null;
27198
+ output: readonly import("@camstack/types").PipelineDefaultStepOutput[] | null;
27194
27199
  meta: object;
27195
27200
  }>;
27196
27201
  getGlobalPipelineConfig: import("@trpc/server").TRPCQueryProcedure<{
@@ -27244,7 +27249,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
27244
27249
  format: "onnx" | "coreml" | "openvino" | "tflite" | "pt" | "gguf";
27245
27250
  device?: string | undefined;
27246
27251
  };
27247
- steps: readonly import("packages/types/dist/capabilities/pipeline-executor.cap").PipelineTemplateStepOutput[];
27252
+ steps: readonly import("@camstack/types").PipelineTemplateStepOutput[];
27248
27253
  }[];
27249
27254
  meta: object;
27250
27255
  }>;
@@ -27271,7 +27276,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
27271
27276
  format: "onnx" | "coreml" | "openvino" | "tflite" | "pt" | "gguf";
27272
27277
  device?: string | undefined;
27273
27278
  };
27274
- steps: readonly import("packages/types/dist/capabilities/pipeline-executor.cap").PipelineTemplateStepOutput[];
27279
+ steps: readonly import("@camstack/types").PipelineTemplateStepOutput[];
27275
27280
  };
27276
27281
  meta: object;
27277
27282
  }>;
@@ -27293,7 +27298,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
27293
27298
  format: "onnx" | "coreml" | "openvino" | "tflite" | "pt" | "gguf";
27294
27299
  device?: string | undefined;
27295
27300
  };
27296
- steps: readonly import("packages/types/dist/capabilities/pipeline-executor.cap").PipelineTemplateStepOutput[];
27301
+ steps: readonly import("@camstack/types").PipelineTemplateStepOutput[];
27297
27302
  };
27298
27303
  meta: object;
27299
27304
  }>;
@@ -27986,6 +27991,11 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
27986
27991
  };
27987
27992
  meta: object;
27988
27993
  }>;
27994
+ setAgentInferenceDevices: import("@trpc/server").TRPCMutationProcedure<{
27995
+ input: any;
27996
+ output: any;
27997
+ meta: object;
27998
+ }>;
27989
27999
  resetNodePipelineDefaults: import("@trpc/server").TRPCMutationProcedure<{
27990
28000
  input: {
27991
28001
  [x: string]: unknown;
@@ -6,7 +6,7 @@
6
6
  * scope+access check inside `protectedProcedure` (see
7
7
  * `server/backend/src/api/trpc/trpc.middleware.ts`).
8
8
  *
9
- * Coverage: 800 method paths across 116 capabilities.
9
+ * Coverage: 801 method paths across 116 capabilities.
10
10
  */
11
11
  import type { CapabilityMethodAccess } from '../capabilities/capability-definition.js';
12
12
  export interface MethodAccessRecord {
@@ -76,7 +76,7 @@ export interface SystemProxy {
76
76
  readonly nodes: Pick<InferProvider<typeof nodesCapability>, 'topology' | 'deployAddon' | 'undeployAddon' | 'restartAddon' | 'restartProcess' | 'restartNode' | 'shutdownNode' | 'renameNode' | 'clusterAddonStatus' | 'getCapUsageGraph' | 'getNodeAddons' | 'setProcessLogLevel' | 'executeQuery'>;
77
77
  readonly notificationOutput: Pick<InferProvider<typeof notificationOutputCapability>, 'listTargetKinds' | 'listTargets' | 'discoverTargets' | 'send' | 'testTarget' | 'upsertTarget' | 'deleteTarget' | 'setTargetEnabled'>;
78
78
  readonly pipelineExecutor: Pick<InferProvider<typeof pipelineExecutorCapability>, 'getAvailableEngines' | 'getSelectedEngine' | 'getDefaultSteps' | 'reprobeEngine' | 'getEngineProvisioning' | 'getVideoPipelineSteps' | 'setVideoPipelineSteps' | 'clearDeviceOverrides' | 'getSchema' | 'getGlobalSteps' | 'getGlobalPipelineConfig' | 'getOrchestratorConfigSchema' | 'validatePipeline' | 'listTemplates' | 'saveTemplate' | 'updateTemplate' | 'deleteTemplate' | 'getCapabilities' | 'getAddonModels' | 'downloadModel' | 'deleteModel' | 'cacheFrameInPool' | 'inferCached' | 'uncacheFrame' | 'getEffectiveTuning' | 'listLoadedEngines' | 'spinEngine' | 'killEngine' | 'listReferenceImages' | 'getReferenceImage' | 'getReferenceAudioFiles' | 'getReferenceAudio' | 'getAudioCapabilities' | 'runAudioTest' | 'getDetectionConfigSchema'>;
79
- readonly pipelineOrchestrator: Pick<InferProvider<typeof pipelineOrchestratorCapability>, 'rebalance' | 'getPipelineAssignments' | 'getAgentLoad' | 'getGlobalMetrics' | 'getCapabilityBindings' | 'setCapabilityBinding' | 'getIngestOwner' | 'getAudioNodeLoad' | 'getAgentSettings' | 'listAgentSettings' | 'setAgentAddonDefaults' | 'removeAgentSettings' | 'setAgentMaxCameras' | 'setAgentDetectWeight' | 'setAgentCapabilities' | 'setAgentReachableHost' | 'resetNodePipelineDefaults' | 'getCameraStatuses' | 'listTemplates' | 'saveTemplate' | 'updateTemplate' | 'deleteTemplate'>;
79
+ readonly pipelineOrchestrator: Pick<InferProvider<typeof pipelineOrchestratorCapability>, 'rebalance' | 'getPipelineAssignments' | 'getAgentLoad' | 'getGlobalMetrics' | 'getCapabilityBindings' | 'setCapabilityBinding' | 'getIngestOwner' | 'getAudioNodeLoad' | 'getAgentSettings' | 'listAgentSettings' | 'setAgentAddonDefaults' | 'removeAgentSettings' | 'setAgentMaxCameras' | 'setAgentDetectWeight' | 'setAgentCapabilities' | 'setAgentReachableHost' | 'setAgentInferenceDevices' | 'resetNodePipelineDefaults' | 'getCameraStatuses' | 'listTemplates' | 'saveTemplate' | 'updateTemplate' | 'deleteTemplate'>;
80
80
  readonly pipelineRunner: Pick<InferProvider<typeof pipelineRunnerCapability>, 'attachCamera' | 'reportMotion' | 'getLocalLoad' | 'getLocalMetrics' | 'getAllCameraMetrics' | 'getLocalCameras' | 'getNativeCrop'>;
81
81
  readonly plateGallery: Pick<InferProvider<typeof plateGalleryCapability>, 'getPlateMedia' | 'searchPlates' | 'suggestPlateClusters' | 'correctPlateText' | 'deletePlate' | 'listVehicles' | 'createVehicle' | 'renameVehicle' | 'deleteVehicle' | 'listVehicleSamples' | 'removeVehicleSample' | 'assignPlate' | 'unassignPlate' | 'assignPlates' | 'unassignPlates'>;
82
82
  readonly recording: Pick<InferProvider<typeof recordingCapability>, 'getStorageUsage' | 'listOpsLog'>;
package/dist/index.js CHANGED
@@ -13466,6 +13466,7 @@ function createSystemProxy(api) {
13466
13466
  setAgentDetectWeight: (input) => dispatch("pipelineOrchestrator", "setAgentDetectWeight", "mutation", input),
13467
13467
  setAgentCapabilities: (input) => dispatch("pipelineOrchestrator", "setAgentCapabilities", "mutation", input),
13468
13468
  setAgentReachableHost: (input) => dispatch("pipelineOrchestrator", "setAgentReachableHost", "mutation", input),
13469
+ setAgentInferenceDevices: (input) => dispatch("pipelineOrchestrator", "setAgentInferenceDevices", "mutation", input),
13469
13470
  resetNodePipelineDefaults: (input) => dispatch("pipelineOrchestrator", "resetNodePipelineDefaults", "mutation", input),
13470
13471
  getCameraStatuses: (input) => dispatch("pipelineOrchestrator", "getCameraStatuses", "query", input),
13471
13472
  listTemplates: (input) => dispatch("pipelineOrchestrator", "listTemplates", "query", input),
@@ -20049,6 +20050,27 @@ var pipelineOrchestratorCapability = {
20049
20050
  auth: "admin"
20050
20051
  }),
20051
20052
  /**
20053
+ * Set one node's multi-device inference opt-in (Phase 4 multi-device) — the
20054
+ * per-node `deviceKey → { enabled, weight }` map that decides which
20055
+ * accelerators the dispatcher may balance detection sessions across.
20056
+ * The map REPLACES the node's stored `inferenceDevices` wholesale (pass the
20057
+ * complete desired set; an empty map clears the opt-in → the node reverts to
20058
+ * its single DEFAULT accelerator). `weight` is optional and defaults to 1.
20059
+ * Creates the node's settings entry if absent. Changes take effect on the
20060
+ * next dispatch/rebalance cycle — the dispatcher reads the enabled set via
20061
+ * `PipelineSettingsStore.buildNodeInferenceDevices` when placing sessions.
20062
+ */
20063
+ setAgentInferenceDevices: require_sleep.method(zod.z.object({
20064
+ agentNodeId: zod.z.string(),
20065
+ inferenceDevices: zod.z.record(zod.z.string(), zod.z.object({
20066
+ enabled: zod.z.boolean(),
20067
+ weight: zod.z.number().positive().optional()
20068
+ }))
20069
+ }), zod.z.object({ success: zod.z.literal(true) }), {
20070
+ kind: "mutation",
20071
+ auth: "admin"
20072
+ }),
20073
+ /**
20052
20074
  * Reset one node's pipeline to its hardware-aware defaults — the HONEST
20053
20075
  * reset (replaces the executor's legacy `resetToDefault`, which cleared a
20054
20076
  * dead persisted step-tree seed nothing in the live path read):
@@ -29155,6 +29177,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
29155
29177
  addonId: null,
29156
29178
  access: "create"
29157
29179
  },
29180
+ "pipelineOrchestrator.setAgentInferenceDevices": {
29181
+ capName: "pipeline-orchestrator",
29182
+ capScope: "system",
29183
+ addonId: null,
29184
+ access: "create"
29185
+ },
29158
29186
  "pipelineOrchestrator.setAgentMaxCameras": {
29159
29187
  capName: "pipeline-orchestrator",
29160
29188
  capScope: "system",
package/dist/index.mjs CHANGED
@@ -13465,6 +13465,7 @@ function createSystemProxy(api) {
13465
13465
  setAgentDetectWeight: (input) => dispatch("pipelineOrchestrator", "setAgentDetectWeight", "mutation", input),
13466
13466
  setAgentCapabilities: (input) => dispatch("pipelineOrchestrator", "setAgentCapabilities", "mutation", input),
13467
13467
  setAgentReachableHost: (input) => dispatch("pipelineOrchestrator", "setAgentReachableHost", "mutation", input),
13468
+ setAgentInferenceDevices: (input) => dispatch("pipelineOrchestrator", "setAgentInferenceDevices", "mutation", input),
13468
13469
  resetNodePipelineDefaults: (input) => dispatch("pipelineOrchestrator", "resetNodePipelineDefaults", "mutation", input),
13469
13470
  getCameraStatuses: (input) => dispatch("pipelineOrchestrator", "getCameraStatuses", "query", input),
13470
13471
  listTemplates: (input) => dispatch("pipelineOrchestrator", "listTemplates", "query", input),
@@ -20048,6 +20049,27 @@ var pipelineOrchestratorCapability = {
20048
20049
  auth: "admin"
20049
20050
  }),
20050
20051
  /**
20052
+ * Set one node's multi-device inference opt-in (Phase 4 multi-device) — the
20053
+ * per-node `deviceKey → { enabled, weight }` map that decides which
20054
+ * accelerators the dispatcher may balance detection sessions across.
20055
+ * The map REPLACES the node's stored `inferenceDevices` wholesale (pass the
20056
+ * complete desired set; an empty map clears the opt-in → the node reverts to
20057
+ * its single DEFAULT accelerator). `weight` is optional and defaults to 1.
20058
+ * Creates the node's settings entry if absent. Changes take effect on the
20059
+ * next dispatch/rebalance cycle — the dispatcher reads the enabled set via
20060
+ * `PipelineSettingsStore.buildNodeInferenceDevices` when placing sessions.
20061
+ */
20062
+ setAgentInferenceDevices: method(z.object({
20063
+ agentNodeId: z.string(),
20064
+ inferenceDevices: z.record(z.string(), z.object({
20065
+ enabled: z.boolean(),
20066
+ weight: z.number().positive().optional()
20067
+ }))
20068
+ }), z.object({ success: z.literal(true) }), {
20069
+ kind: "mutation",
20070
+ auth: "admin"
20071
+ }),
20072
+ /**
20051
20073
  * Reset one node's pipeline to its hardware-aware defaults — the HONEST
20052
20074
  * reset (replaces the executor's legacy `resetToDefault`, which cleared a
20053
20075
  * dead persisted step-tree seed nothing in the live path read):
@@ -29154,6 +29176,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
29154
29176
  addonId: null,
29155
29177
  access: "create"
29156
29178
  },
29179
+ "pipelineOrchestrator.setAgentInferenceDevices": {
29180
+ capName: "pipeline-orchestrator",
29181
+ capScope: "system",
29182
+ addonId: null,
29183
+ access: "create"
29184
+ },
29157
29185
  "pipelineOrchestrator.setAgentMaxCameras": {
29158
29186
  capName: "pipeline-orchestrator",
29159
29187
  capScope: "system",
@@ -23,6 +23,8 @@ export interface GpuInfo {
23
23
  }
24
24
  export interface NpuInfo {
25
25
  readonly type: 'apple-ane' | 'intel-npu';
26
+ /** Human-readable accelerator name (e.g. `Intel AI Boost NPU`), when known. */
27
+ readonly name?: string;
26
28
  }
27
29
  /**
28
30
  * Coral USB Edge TPU (Google Coral). A discrete USB inference accelerator that
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/types",
3
- "version": "1.1.56",
3
+ "version": "1.1.57",
4
4
  "description": "Shared types, interfaces, and model catalogs for the CamStack detection ecosystem",
5
5
  "keywords": [
6
6
  "camstack",