@camstack/types 1.1.34 → 1.1.35

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.
package/dist/addon.js CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_sleep = require("./sleep-DmP-uxoe.js");
2
+ const require_sleep = require("./sleep-DuN1nc6O.js");
3
3
  const require_err_msg = require("./err-msg-COpsHMw2.js");
4
4
  exports.BaseAddon = require_sleep.BaseAddon;
5
5
  exports.DATAPLANE_SECRET_HEADER = require_sleep.DATAPLANE_SECRET_HEADER;
package/dist/addon.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { A as ReadinessRegistry, C as asJsonObject, O as parseJsonUnknown, P as scopeKey, T as asString, a as adminUiCapability, b as DeviceType, gt as DisposerChain, ht as EventCategory, i as deviceOpsCapability, j as ReadinessTimeoutError, k as DATAPLANE_SECRET_HEADER, o as createDeviceProxy, ot as BaseAddon, p as expandCapMethods, st as normalizeAddonInitResult, t as sleep, ut as emitReadiness } from "./sleep-Cc14_yxc.mjs";
1
+ import { A as ReadinessRegistry, C as asJsonObject, O as parseJsonUnknown, P as scopeKey, T as asString, a as adminUiCapability, b as DeviceType, gt as DisposerChain, ht as EventCategory, i as deviceOpsCapability, j as ReadinessTimeoutError, k as DATAPLANE_SECRET_HEADER, o as createDeviceProxy, ot as BaseAddon, p as expandCapMethods, st as normalizeAddonInitResult, t as sleep, ut as emitReadiness } from "./sleep-DiQ8xW1M.mjs";
2
2
  import { t as errMsg } from "./err-msg-IQTHeDzc.mjs";
3
3
  export { BaseAddon, DATAPLANE_SECRET_HEADER, DeviceType, DisposerChain, EventCategory, ReadinessRegistry, ReadinessTimeoutError, adminUiCapability, asJsonObject, asString, createDeviceProxy, deviceOpsCapability, emitReadiness, errMsg, expandCapMethods, normalizeAddonInitResult, parseJsonUnknown, scopeKey, sleep };
@@ -19,6 +19,8 @@ declare const AddonPageDeclarationSchema: z.ZodObject<{
19
19
  path: z.ZodString;
20
20
  remoteName: z.ZodString;
21
21
  bundle: z.ZodString;
22
+ section: z.ZodOptional<z.ZodString>;
23
+ sectionLabel: z.ZodOptional<z.ZodString>;
22
24
  }, z.core.$strip>;
23
25
  export declare const addonPagesSourceCapability: {
24
26
  readonly name: "addon-pages-source";
@@ -33,6 +35,8 @@ export declare const addonPagesSourceCapability: {
33
35
  path: z.ZodString;
34
36
  remoteName: z.ZodString;
35
37
  bundle: z.ZodString;
38
+ section: z.ZodOptional<z.ZodString>;
39
+ sectionLabel: z.ZodOptional<z.ZodString>;
36
40
  }, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
37
41
  };
38
42
  };
@@ -9,6 +9,8 @@ declare const AddonPageInfoSchema: z.ZodObject<{
9
9
  path: z.ZodString;
10
10
  remoteName: z.ZodString;
11
11
  bundle: z.ZodString;
12
+ section: z.ZodOptional<z.ZodString>;
13
+ sectionLabel: z.ZodOptional<z.ZodString>;
12
14
  }, z.core.$strip>;
13
15
  bundleUrl: z.ZodString;
14
16
  }, z.core.$strip>;
@@ -26,6 +28,8 @@ export declare const addonPagesCapability: {
26
28
  path: z.ZodString;
27
29
  remoteName: z.ZodString;
28
30
  bundle: z.ZodString;
31
+ section: z.ZodOptional<z.ZodString>;
32
+ sectionLabel: z.ZodOptional<z.ZodString>;
29
33
  }, z.core.$strip>;
30
34
  bundleUrl: z.ZodString;
31
35
  }, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
@@ -72,9 +72,9 @@ export { type Attachment, AttachmentMediaTypeSchema, type AttachmentMediaType, A
72
72
  export { type IOauthIntegrationProvider, type OauthIntegrationDescriptor, OauthIntegrationDescriptorSchema, oauthIntegrationCapability, } from './oauth-integration.cap.js';
73
73
  export { type AudioEvent, AudioEventSchema, type DetectionSource, DetectionSourceSchema, type EventKind, EventKindSchema, type IPipelineAnalyticsProvider, type MediaFile, type MediaFileKind, MediaFileSchema, type MotionEvent, MotionEventSchema, type ObjectEvent, ObjectEventSchema, pipelineAnalyticsCapability, type ScoredObjectEvent, ScoredObjectEventSchema, type Track, TrackedDetectionSchema, TrackSchema, type TrackState, TrackStateSchema, } from './pipeline-analytics.cap.js';
74
74
  export type { PipelineStepInputOutput, PipelineValidationIssue, PipelineValidationResult, } from './pipeline-executor.cap.js';
75
- export { DetectorOutputSchema, ModelSubstitutionSchema, PipelineDefaultStepSchema, PipelineEngineChoiceSchema, PipelineRunResultBridge, PipelineStepInputSchema, PipelineValidationIssueSchema, PipelineValidationResultSchema, pipelineExecutorCapability, } from './pipeline-executor.cap.js';
75
+ export { ModelSubstitutionSchema, PipelineDefaultStepSchema, PipelineEngineChoiceSchema, PipelineRunResultBridge, PipelineStepInputSchema, PipelineValidationIssueSchema, PipelineValidationResultSchema, pipelineExecutorCapability, } from './pipeline-executor.cap.js';
76
76
  export type { CameraAssignmentStatus, CameraAudioStatus, CameraBrokerProfile, CameraBrokerStatus, CameraDecoderShm, CameraDecoderStatus, CameraDetectionPhase, CameraDetectionProvisioning, CameraDetectionProvisioningState, CameraDetectionStatus, CameraMotionStatus, CameraRecordingMode, CameraRecordingStatus, CameraSourceStatus, CameraSourceStream, CameraStatus, IngestOwner, } from './pipeline-orchestrator.cap.js';
77
- export { AgentLoadSummarySchema, CameraAssignmentStatusSchema, CameraAudioStatusSchema, CameraBrokerProfileSchema, CameraBrokerStatusSchema, CameraDecoderShmSchema, CameraDecoderStatusSchema, CameraDetectionPhaseSchema, CameraDetectionProvisioningSchema, CameraDetectionProvisioningStateSchema, CameraDetectionStatusSchema, CameraMotionStatusSchema, CameraRecordingModeSchema, CameraRecordingStatusSchema, CameraSourceStatusSchema, CameraSourceStreamSchema, CameraStatusSchema, CapabilityBindingsSchema, DecoderAssignmentSchema, GlobalMetricsSchema, IngestOwnerSchema, PipelineAssignmentSchema, pipelineOrchestratorCapability, } from './pipeline-orchestrator.cap.js';
77
+ export { AgentLoadSummarySchema, CameraAssignmentStatusSchema, CameraAudioStatusSchema, CameraBrokerProfileSchema, CameraBrokerStatusSchema, CameraDecoderShmSchema, CameraDecoderStatusSchema, CameraDetectionPhaseSchema, CameraDetectionProvisioningSchema, CameraDetectionProvisioningStateSchema, CameraDetectionStatusSchema, CameraMotionStatusSchema, CameraRecordingModeSchema, CameraRecordingStatusSchema, CameraSourceStatusSchema, CameraSourceStreamSchema, CameraStatusSchema, CapabilityBindingsSchema, GlobalMetricsSchema, IngestOwnerSchema, PipelineAssignmentSchema, pipelineOrchestratorCapability, } from './pipeline-orchestrator.cap.js';
78
78
  export type { MotionSource, MotionSources, ReportMotionInput, RunnerFrameSource, } from './pipeline-runner.cap.js';
79
79
  export { MotionSourceEnum, MotionSourcesSchema, pipelineRunnerCapability, ReportMotionInputSchema, RunnerCameraConfigSchema, RunnerCameraDeviceUIFields, RunnerFrameSourceSchema, RunnerLocalLoadSchema, RunnerLocalMetricsSchema, } from './pipeline-runner.cap.js';
80
80
  export { AudioChunkInputSchema, AudioClassificationLabelSchema, AudioLevelSchema, BoundingBoxSchema, FrameInputSchema, SpatialDetectionSchema, } from './schemas/detection-shared.js';
@@ -332,21 +332,6 @@ declare const PipelineSchemaSchema: z.ZodObject<{
332
332
  }, z.core.$strip>>>;
333
333
  }, z.core.$strip>>>;
334
334
  }, z.core.$strip>;
335
- declare const DetectorOutputSchema: z.ZodObject<{
336
- detections: z.ZodReadonly<z.ZodArray<z.ZodObject<{
337
- class: z.ZodString;
338
- originalClass: z.ZodString;
339
- score: z.ZodNumber;
340
- bbox: z.ZodObject<{
341
- x: z.ZodNumber;
342
- y: z.ZodNumber;
343
- w: z.ZodNumber;
344
- h: z.ZodNumber;
345
- }, z.core.$strip>;
346
- }, z.core.$strip>>>;
347
- inferenceMs: z.ZodNumber;
348
- modelId: z.ZodString;
349
- }, z.core.$strip>;
350
335
  declare const EngineProvisioningSchema: z.ZodObject<{
351
336
  runtimeId: z.ZodNullable<z.ZodEnum<{
352
337
  onnx: "onnx";
@@ -539,25 +524,25 @@ export declare const pipelineExecutorCapability: {
539
524
  success: z.ZodLiteral<true>;
540
525
  }, z.core.$strip>, "mutation">;
541
526
  /**
542
- * Reset ONE node's detection-pipeline to its factory defaults, forcing
543
- * regeneration of the (now hardware-aware) default object-detection
544
- * model. `nodeId` is the ROUTING key — the generated cap-router strips
545
- * it (default `nodeIdMode: 'routing'`, same as `getSelectedEngine` /
546
- * `getDefaultSteps`) and dispatches to that node, so the provider method
547
- * runs ON the target node and receives no `nodeId`.
527
+ * Clear THIS node's executor-side PER-DEVICE settings stores (the
528
+ * per-camera step overrides the object-detection root reads via
529
+ * `applyDeviceOverridesToTree`). `nodeId` is the ROUTING key — the
530
+ * generated cap-router strips it (default `nodeIdMode: 'routing'`) and
531
+ * dispatches to that node, so the provider method runs ON the target
532
+ * node and receives no `nodeId`.
548
533
  *
549
- * Clears the node's persisted global pipeline seed (`pipelineSteps`) +
550
- * legacy engine blob (`pipelineEngine`) and every device's per-camera
551
- * step overrides, then re-seeds the hardware-aware default tree. Returns
552
- * the regenerated object-detection model id (null when the default tree
553
- * has no detector for this node's engine format) so the caller can
554
- * verify the reset without a second round-trip.
534
+ * This is the slimmed executor leg of the orchestrator's
535
+ * `resetNodePipelineDefaults` flow (which owns the real reset: node
536
+ * addonDefaults pins + per-camera orchestrator overrides). The legacy
537
+ * `resetToDefault` which reset a persisted global step-tree seed
538
+ * nothing in the live per-camera path read was removed together with
539
+ * that seed.
555
540
  */
556
- readonly resetToDefault: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
541
+ readonly clearDeviceOverrides: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
557
542
  nodeId: z.ZodString;
558
543
  }, z.core.$strip>, z.ZodObject<{
559
544
  success: z.ZodLiteral<true>;
560
- regeneratedModelId: z.ZodNullable<z.ZodString>;
545
+ clearedDevices: z.ZodNumber;
561
546
  }, z.core.$strip>, "mutation">;
562
547
  readonly getSchema: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodObject<{
563
548
  availableEngines: z.ZodReadonly<z.ZodArray<z.ZodObject<{
@@ -823,37 +808,6 @@ export declare const pipelineExecutorCapability: {
823
808
  }, z.core.$strip>, z.ZodObject<{
824
809
  success: z.ZodLiteral<true>;
825
810
  }, z.core.$strip>, "mutation">;
826
- readonly detect: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
827
- addonId: z.ZodString;
828
- frame: z.ZodObject<{
829
- data: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
830
- format: z.ZodEnum<{
831
- jpeg: "jpeg";
832
- rgb: "rgb";
833
- bgr: "bgr";
834
- yuv420: "yuv420";
835
- gray: "gray";
836
- }>;
837
- width: z.ZodNumber;
838
- height: z.ZodNumber;
839
- timestamp: z.ZodNumber;
840
- }, z.core.$strip>;
841
- config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
842
- }, z.core.$strip>, z.ZodObject<{
843
- detections: z.ZodReadonly<z.ZodArray<z.ZodObject<{
844
- class: z.ZodString;
845
- originalClass: z.ZodString;
846
- score: z.ZodNumber;
847
- bbox: z.ZodObject<{
848
- x: z.ZodNumber;
849
- y: z.ZodNumber;
850
- w: z.ZodNumber;
851
- h: z.ZodNumber;
852
- }, z.core.$strip>;
853
- }, z.core.$strip>>>;
854
- inferenceMs: z.ZodNumber;
855
- modelId: z.ZodString;
856
- }, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
857
811
  /**
858
812
  * Stateless single-frame execution. Callers (runner, benchmark) pass
859
813
  * the complete `engine` + `steps` tree; the executor holds no state
@@ -1145,4 +1099,4 @@ export declare const pipelineExecutorCapability: {
1145
1099
  };
1146
1100
  };
1147
1101
  export type IPipelineExecutorProvider = InferProvider<typeof pipelineExecutorCapability>;
1148
- export { PipelineEngineChoiceSchema, PipelineDefaultStepSchema, DetectorOutputSchema, PipelineSchemaSchema, PipelineAddonSchemaSchema, PipelineSlotSchemaSchema, PipelineModelOptionSchema, AvailableEngineSchema, PipelineTemplateSchema, PipelineTemplateStepSchema, EngineDeviceInfoSchema, EngineProvisioningSchema, ModelSubstitutionSchema, PipelineValidationIssueSchema, PipelineValidationResultSchema, };
1102
+ export { PipelineEngineChoiceSchema, PipelineDefaultStepSchema, PipelineSchemaSchema, PipelineAddonSchemaSchema, PipelineSlotSchemaSchema, PipelineModelOptionSchema, AvailableEngineSchema, PipelineTemplateSchema, PipelineTemplateStepSchema, EngineDeviceInfoSchema, EngineProvisioningSchema, ModelSubstitutionSchema, PipelineValidationIssueSchema, PipelineValidationResultSchema, };
@@ -111,22 +111,6 @@ declare const PipelineAssignmentSchema: z.ZodObject<{
111
111
  }>;
112
112
  assignedAt: z.ZodNumber;
113
113
  }, z.core.$strip>;
114
- /**
115
- * Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
116
- * the decoder-node placement domain (`balanceDecoder` decision: manual pin
117
- * → co-located with pipeline → capacity).
118
- */
119
- declare const DecoderAssignmentSchema: z.ZodObject<{
120
- deviceId: z.ZodNumber;
121
- decoderNodeId: z.ZodString;
122
- pinned: z.ZodBoolean;
123
- reason: z.ZodEnum<{
124
- manual: "manual";
125
- capacity: "capacity";
126
- "hardware-affinity": "hardware-affinity";
127
- "co-located": "co-located";
128
- }>;
129
- }, z.core.$strip>;
130
114
  /**
131
115
  * Per-agent load summary surfaced to the load balancer + dashboards.
132
116
  * Aggregated from each runner's `getLocalLoad` cap call.
@@ -619,27 +603,6 @@ export declare const pipelineOrchestratorCapability: {
619
603
  reachableHost: z.ZodOptional<z.ZodString>;
620
604
  configIssue: z.ZodOptional<z.ZodString>;
621
605
  }, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
622
- /** Pin a device's decoder to a specific node. */
623
- readonly assignDecoder: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
624
- deviceId: z.ZodNumber;
625
- nodeId: z.ZodString;
626
- }, z.core.$strip>, z.ZodVoid, "mutation">;
627
- /** Clear a device's decoder pin (revert to auto). */
628
- readonly unassignDecoder: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
629
- deviceId: z.ZodNumber;
630
- }, z.core.$strip>, z.ZodVoid, "mutation">;
631
- /** Get every camera's decoder placement. */
632
- readonly getDecoderAssignments: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodReadonly<z.ZodArray<z.ZodObject<{
633
- deviceId: z.ZodNumber;
634
- decoderNodeId: z.ZodString;
635
- pinned: z.ZodBoolean;
636
- reason: z.ZodEnum<{
637
- manual: "manual";
638
- capacity: "capacity";
639
- "hardware-affinity": "hardware-affinity";
640
- "co-located": "co-located";
641
- }>;
642
- }, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
643
606
  /** Pin a device's audio analysis to a specific cluster node. */
644
607
  readonly assignAudio: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
645
608
  deviceId: z.ZodNumber;
@@ -673,33 +636,6 @@ export declare const pipelineOrchestratorCapability: {
673
636
  pinned: z.ZodBoolean;
674
637
  assignedAt: z.ZodNumber;
675
638
  }, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
676
- /**
677
- * Get one camera's decoder placement (computed if not yet pinned).
678
- *
679
- * ADVISORY today: reports the orchestrator's decoder preference only.
680
- * Actual decode placement is broker-owned (local-node pin + frame-plane
681
- * co-location guard). Reserved to become the binding source/decoder-owner
682
- * control in the stream-LB epic (Phase 2).
683
- *
684
- * `pipelineNodeId` is the node already chosen to run inference for
685
- * this camera. When provided, the balancer prefers co-location with
686
- * it; omitted → falls back to the last known assignment in the
687
- * `assignments` map and finally to 'hub'.
688
- */
689
- readonly getDecoderAssignment: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
690
- deviceId: z.ZodNumber;
691
- pipelineNodeId: z.ZodOptional<z.ZodString>;
692
- }, z.core.$strip>, z.ZodObject<{
693
- deviceId: z.ZodNumber;
694
- decoderNodeId: z.ZodString;
695
- pinned: z.ZodBoolean;
696
- reason: z.ZodEnum<{
697
- manual: "manual";
698
- capacity: "capacity";
699
- "hardware-affinity": "hardware-affinity";
700
- "co-located": "co-located";
701
- }>;
702
- }, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
703
639
  /** Read one agent's settings. Null when not yet seeded. */
704
640
  readonly getAgentSettings: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
705
641
  agentNodeId: z.ZodString;
@@ -797,14 +733,15 @@ export declare const pipelineOrchestratorCapability: {
797
733
  * `enabledDecoderNodes`, `enabledAudioNodes`, `remoteSourcingNodes`).
798
734
  * Each flag is optional in the patch: omit a flag to leave it unchanged,
799
735
  * pass `null` to reset it to the node default (`hub` → capable, every
800
- * other node → not). Detection/decode/audio eligibility is derived from
801
- * these flags across the cluster; changing them re-derives the enabled
802
- * sets and reconciles dispatch immediately.
736
+ * other node → not). Detection/audio eligibility is derived from these
737
+ * flags across the cluster; changing them re-derives the enabled sets
738
+ * and reconciles dispatch immediately. There is NO separate decode flag:
739
+ * decode is always co-located with its frame consumer, so decode
740
+ * eligibility IS detect eligibility.
803
741
  */
804
742
  readonly setAgentCapabilities: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
805
743
  agentNodeId: z.ZodString;
806
744
  detect: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
807
- decode: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
808
745
  audio: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
809
746
  ingest: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
810
747
  }, z.core.$strip>, z.ZodObject<{
@@ -825,6 +762,31 @@ export declare const pipelineOrchestratorCapability: {
825
762
  }, z.core.$strip>, z.ZodObject<{
826
763
  success: z.ZodLiteral<true>;
827
764
  }, z.core.$strip>, "mutation">;
765
+ /**
766
+ * Reset one node's pipeline to its hardware-aware defaults — the HONEST
767
+ * reset (replaces the executor's legacy `resetToDefault`, which cleared a
768
+ * dead persisted step-tree seed nothing in the live path read):
769
+ * (a) strips every `modelId` pin from that node's
770
+ * `agentSettings.addonDefaults` (cells revert to Auto — the node
771
+ * resolves its own hardware-aware format default at runtime);
772
+ * (b) clears per-camera step overrides scoped to that node
773
+ * (`stepOverridesByAgent[node]` + the wholesale
774
+ * `pipelineByAgent[node]` escape hatch);
775
+ * (c) clears the executor-side per-device settings stores on that node
776
+ * (`pipelineExecutor.clearDeviceOverrides`);
777
+ * (d) hot-reloads every camera assigned to the node.
778
+ *
779
+ * Returns the EFFECTIVE post-reset object-detection model for the node
780
+ * (the executor's pure hardware-aware default) so the UI can report what
781
+ * will actually run — not a value that never reaches the live path.
782
+ */
783
+ readonly resetNodePipelineDefaults: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
784
+ agentNodeId: z.ZodString;
785
+ }, z.core.$strip>, z.ZodObject<{
786
+ success: z.ZodLiteral<true>;
787
+ effectiveModelId: z.ZodNullable<z.ZodString>;
788
+ clearedCameraOverrides: z.ZodNumber;
789
+ }, z.core.$strip>, "mutation">;
828
790
  /** Read one camera's settings. Null when never touched (inherits agent defaults fully). */
829
791
  readonly getCameraSettings: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
830
792
  deviceId: z.ZodNumber;
@@ -1400,4 +1362,4 @@ export type CameraAudioStatus = z.infer<typeof CameraAudioStatusSchema>;
1400
1362
  export type CameraRecordingStatus = z.infer<typeof CameraRecordingStatusSchema>;
1401
1363
  export type CameraRecordingMode = z.infer<typeof CameraRecordingModeSchema>;
1402
1364
  export type IngestOwner = z.infer<typeof IngestOwnerSchema>;
1403
- export { AgentLoadSummarySchema, CameraAssignmentStatusSchema, CameraAudioStatusSchema, CameraBrokerProfileSchema, CameraBrokerStatusSchema, CameraDecoderShmSchema, CameraDecoderStatusSchema, CameraDetectionPhaseSchema, CameraDetectionProvisioningSchema, CameraDetectionProvisioningStateSchema, CameraDetectionStatusSchema, CameraMotionStatusSchema, CameraPipelineConfigSchema, CameraRecordingModeSchema, CameraRecordingStatusSchema, CameraSourceStatusSchema, CameraSourceStreamSchema, CameraStatusSchema, CameraStepOverridePatchSchema, CapabilityBindingsSchema, DecoderAssignmentSchema, GlobalMetricsSchema, IngestOwnerSchema, PipelineAssignmentSchema, PipelineTemplateSchema as OrchestratorPipelineTemplateSchema, };
1365
+ export { AgentLoadSummarySchema, CameraAssignmentStatusSchema, CameraAudioStatusSchema, CameraBrokerProfileSchema, CameraBrokerStatusSchema, CameraDecoderShmSchema, CameraDecoderStatusSchema, CameraDetectionPhaseSchema, CameraDetectionProvisioningSchema, CameraDetectionProvisioningStateSchema, CameraDetectionStatusSchema, CameraMotionStatusSchema, CameraPipelineConfigSchema, CameraRecordingModeSchema, CameraRecordingStatusSchema, CameraSourceStatusSchema, CameraSourceStreamSchema, CameraStatusSchema, CameraStepOverridePatchSchema, CapabilityBindingsSchema, GlobalMetricsSchema, IngestOwnerSchema, PipelineAssignmentSchema, PipelineTemplateSchema as OrchestratorPipelineTemplateSchema, };
@@ -792,6 +792,8 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
792
792
  path: string;
793
793
  remoteName: string;
794
794
  bundle: string;
795
+ section?: string | undefined;
796
+ sectionLabel?: string | undefined;
795
797
  };
796
798
  bundleUrl: string;
797
799
  }[];
@@ -816,6 +818,8 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
816
818
  path: string;
817
819
  remoteName: string;
818
820
  bundle: string;
821
+ section?: string | undefined;
822
+ sectionLabel?: string | undefined;
819
823
  }[];
820
824
  meta: object;
821
825
  }>;
@@ -9010,7 +9014,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
9010
9014
  };
9011
9015
  meta: object;
9012
9016
  }>;
9013
- resetToDefault: import("@trpc/server").TRPCMutationProcedure<{
9017
+ clearDeviceOverrides: import("@trpc/server").TRPCMutationProcedure<{
9014
9018
  input: any;
9015
9019
  output: any;
9016
9020
  meta: object;
@@ -9239,36 +9243,6 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
9239
9243
  };
9240
9244
  meta: object;
9241
9245
  }>;
9242
- detect: import("@trpc/server").TRPCQueryProcedure<{
9243
- input: {
9244
- [x: string]: unknown;
9245
- addonId: string;
9246
- frame: {
9247
- data: Uint8Array<ArrayBufferLike>;
9248
- format: "rgb" | "jpeg" | "bgr" | "yuv420" | "gray";
9249
- width: number;
9250
- height: number;
9251
- timestamp: number;
9252
- };
9253
- config?: Record<string, unknown> | undefined;
9254
- };
9255
- output: {
9256
- detections: readonly {
9257
- class: string;
9258
- originalClass: string;
9259
- score: number;
9260
- bbox: {
9261
- x: number;
9262
- y: number;
9263
- w: number;
9264
- h: number;
9265
- };
9266
- }[];
9267
- inferenceMs: number;
9268
- modelId: string;
9269
- };
9270
- meta: object;
9271
- }>;
9272
9246
  runPipeline: import("@trpc/server").TRPCMutationProcedure<{
9273
9247
  input: {
9274
9248
  [x: string]: unknown;
@@ -9726,35 +9700,6 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
9726
9700
  };
9727
9701
  meta: object;
9728
9702
  }>;
9729
- assignDecoder: import("@trpc/server").TRPCMutationProcedure<{
9730
- input: {
9731
- [x: string]: unknown;
9732
- deviceId: number;
9733
- nodeId: string;
9734
- };
9735
- output: void;
9736
- meta: object;
9737
- }>;
9738
- unassignDecoder: import("@trpc/server").TRPCMutationProcedure<{
9739
- input: {
9740
- [x: string]: unknown;
9741
- deviceId: number;
9742
- };
9743
- output: void;
9744
- meta: object;
9745
- }>;
9746
- getDecoderAssignments: import("@trpc/server").TRPCQueryProcedure<{
9747
- input: {
9748
- nodeId?: string | undefined;
9749
- } | undefined;
9750
- output: readonly {
9751
- deviceId: number;
9752
- decoderNodeId: string;
9753
- pinned: boolean;
9754
- reason: "manual" | "capacity" | "hardware-affinity" | "co-located";
9755
- }[];
9756
- meta: object;
9757
- }>;
9758
9703
  assignAudio: import("@trpc/server").TRPCMutationProcedure<{
9759
9704
  input: {
9760
9705
  [x: string]: unknown;
@@ -9810,20 +9755,6 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
9810
9755
  }[];
9811
9756
  meta: object;
9812
9757
  }>;
9813
- getDecoderAssignment: import("@trpc/server").TRPCQueryProcedure<{
9814
- input: {
9815
- [x: string]: unknown;
9816
- deviceId: number;
9817
- pipelineNodeId?: string | undefined;
9818
- };
9819
- output: {
9820
- deviceId: number;
9821
- decoderNodeId: string;
9822
- pinned: boolean;
9823
- reason: "manual" | "capacity" | "hardware-affinity" | "co-located";
9824
- };
9825
- meta: object;
9826
- }>;
9827
9758
  getAgentSettings: import("@trpc/server").TRPCQueryProcedure<{
9828
9759
  input: {
9829
9760
  [x: string]: unknown;
@@ -9941,6 +9872,11 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
9941
9872
  };
9942
9873
  meta: object;
9943
9874
  }>;
9875
+ resetNodePipelineDefaults: import("@trpc/server").TRPCMutationProcedure<{
9876
+ input: any;
9877
+ output: any;
9878
+ meta: object;
9879
+ }>;
9944
9880
  getCameraSettings: import("@trpc/server").TRPCQueryProcedure<{
9945
9881
  input: {
9946
9882
  [x: string]: unknown;
@@ -15368,6 +15304,8 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
15368
15304
  path: string;
15369
15305
  remoteName: string;
15370
15306
  bundle: string;
15307
+ section?: string | undefined;
15308
+ sectionLabel?: string | undefined;
15371
15309
  };
15372
15310
  bundleUrl: string;
15373
15311
  }[];
@@ -15392,6 +15330,8 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
15392
15330
  path: string;
15393
15331
  remoteName: string;
15394
15332
  bundle: string;
15333
+ section?: string | undefined;
15334
+ sectionLabel?: string | undefined;
15395
15335
  }[];
15396
15336
  meta: object;
15397
15337
  }>;
@@ -23586,7 +23526,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
23586
23526
  };
23587
23527
  meta: object;
23588
23528
  }>;
23589
- resetToDefault: import("@trpc/server").TRPCMutationProcedure<{
23529
+ clearDeviceOverrides: import("@trpc/server").TRPCMutationProcedure<{
23590
23530
  input: any;
23591
23531
  output: any;
23592
23532
  meta: object;
@@ -23815,36 +23755,6 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
23815
23755
  };
23816
23756
  meta: object;
23817
23757
  }>;
23818
- detect: import("@trpc/server").TRPCQueryProcedure<{
23819
- input: {
23820
- [x: string]: unknown;
23821
- addonId: string;
23822
- frame: {
23823
- data: Uint8Array<ArrayBufferLike>;
23824
- format: "rgb" | "jpeg" | "bgr" | "yuv420" | "gray";
23825
- width: number;
23826
- height: number;
23827
- timestamp: number;
23828
- };
23829
- config?: Record<string, unknown> | undefined;
23830
- };
23831
- output: {
23832
- detections: readonly {
23833
- class: string;
23834
- originalClass: string;
23835
- score: number;
23836
- bbox: {
23837
- x: number;
23838
- y: number;
23839
- w: number;
23840
- h: number;
23841
- };
23842
- }[];
23843
- inferenceMs: number;
23844
- modelId: string;
23845
- };
23846
- meta: object;
23847
- }>;
23848
23758
  runPipeline: import("@trpc/server").TRPCMutationProcedure<{
23849
23759
  input: {
23850
23760
  [x: string]: unknown;
@@ -24302,35 +24212,6 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
24302
24212
  };
24303
24213
  meta: object;
24304
24214
  }>;
24305
- assignDecoder: import("@trpc/server").TRPCMutationProcedure<{
24306
- input: {
24307
- [x: string]: unknown;
24308
- deviceId: number;
24309
- nodeId: string;
24310
- };
24311
- output: void;
24312
- meta: object;
24313
- }>;
24314
- unassignDecoder: import("@trpc/server").TRPCMutationProcedure<{
24315
- input: {
24316
- [x: string]: unknown;
24317
- deviceId: number;
24318
- };
24319
- output: void;
24320
- meta: object;
24321
- }>;
24322
- getDecoderAssignments: import("@trpc/server").TRPCQueryProcedure<{
24323
- input: {
24324
- nodeId?: string | undefined;
24325
- } | undefined;
24326
- output: readonly {
24327
- deviceId: number;
24328
- decoderNodeId: string;
24329
- pinned: boolean;
24330
- reason: "manual" | "capacity" | "hardware-affinity" | "co-located";
24331
- }[];
24332
- meta: object;
24333
- }>;
24334
24215
  assignAudio: import("@trpc/server").TRPCMutationProcedure<{
24335
24216
  input: {
24336
24217
  [x: string]: unknown;
@@ -24386,20 +24267,6 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
24386
24267
  }[];
24387
24268
  meta: object;
24388
24269
  }>;
24389
- getDecoderAssignment: import("@trpc/server").TRPCQueryProcedure<{
24390
- input: {
24391
- [x: string]: unknown;
24392
- deviceId: number;
24393
- pipelineNodeId?: string | undefined;
24394
- };
24395
- output: {
24396
- deviceId: number;
24397
- decoderNodeId: string;
24398
- pinned: boolean;
24399
- reason: "manual" | "capacity" | "hardware-affinity" | "co-located";
24400
- };
24401
- meta: object;
24402
- }>;
24403
24270
  getAgentSettings: import("@trpc/server").TRPCQueryProcedure<{
24404
24271
  input: {
24405
24272
  [x: string]: unknown;
@@ -24517,6 +24384,11 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
24517
24384
  };
24518
24385
  meta: object;
24519
24386
  }>;
24387
+ resetNodePipelineDefaults: import("@trpc/server").TRPCMutationProcedure<{
24388
+ input: any;
24389
+ output: any;
24390
+ meta: object;
24391
+ }>;
24520
24392
  getCameraSettings: import("@trpc/server").TRPCQueryProcedure<{
24521
24393
  input: {
24522
24394
  [x: string]: unknown;
@@ -267,7 +267,7 @@ export interface DeviceProxy {
267
267
  readonly faceGallery: Pick<InferDeviceProxyCap<typeof faceGalleryCapability>, 'getFaceByTrack'>;
268
268
  readonly networkQuality: Pick<InferDeviceProxyCap<typeof networkQualityCapability>, 'getDeviceStats' | 'reportClientStats'>;
269
269
  readonly pipelineExecutor: Pick<InferDeviceProxyCap<typeof pipelineExecutorCapability>, 'runPipeline' | 'runPipelineBatch'>;
270
- readonly pipelineOrchestrator: Pick<InferDeviceProxyCap<typeof pipelineOrchestratorCapability>, 'assignPipeline' | 'unassignPipeline' | 'getPipelineAssignment' | 'getCameraMetrics' | 'assignDecoder' | 'unassignDecoder' | 'assignAudio' | 'unassignAudio' | 'getAudioAssignment' | 'getAudioAssignments' | 'getDecoderAssignment' | 'getCameraSettings' | 'setCameraStepToggle' | 'getCameraStepOverrides' | 'setCameraStepOverride' | 'setCameraPipelineForAgent' | 'resolvePipeline' | 'getCameraStatus' | 'getDeviceSettingsContribution' | 'getDeviceLiveContribution' | 'applyDeviceSettingsPatch'>;
270
+ readonly pipelineOrchestrator: Pick<InferDeviceProxyCap<typeof pipelineOrchestratorCapability>, 'assignPipeline' | 'unassignPipeline' | 'getPipelineAssignment' | 'getCameraMetrics' | 'assignAudio' | 'unassignAudio' | 'getAudioAssignment' | 'getAudioAssignments' | 'getCameraSettings' | 'setCameraStepToggle' | 'getCameraStepOverrides' | 'setCameraStepOverride' | 'setCameraPipelineForAgent' | 'resolvePipeline' | 'getCameraStatus' | 'getDeviceSettingsContribution' | 'getDeviceLiveContribution' | 'applyDeviceSettingsPatch'>;
271
271
  readonly pipelineRunner: Pick<InferDeviceProxyCap<typeof pipelineRunnerCapability>, 'detachCamera' | 'getCameraMetrics'>;
272
272
  readonly plateGallery: Pick<InferDeviceProxyCap<typeof plateGalleryCapability>, 'listPlates' | 'getPlateByTrack'>;
273
273
  readonly recording: Pick<InferDeviceProxyCap<typeof recordingCapability>, 'getAvailability' | 'getDaysWithRecordings' | 'getPlaybackManifest' | 'getDeviceConfig' | 'locateSegment' | 'readSegmentBytes' | 'setDeviceConfig' | 'rescanStorage' | 'pruneFootage' | 'getStatus' | 'getDeviceSettingsContribution' | 'getDeviceLiveContribution' | 'applyDeviceSettingsPatch'>;
@@ -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: 726 method paths across 109 capabilities.
9
+ * Coverage: 722 method paths across 109 capabilities.
10
10
  */
11
11
  import type { CapabilityMethodAccess } from '../capabilities/capability-definition.js';
12
12
  export interface MethodAccessRecord {
@@ -71,8 +71,8 @@ export interface SystemProxy {
71
71
  readonly networkQuality: Pick<InferProvider<typeof networkQualityCapability>, 'getAllStats'>;
72
72
  readonly nodes: Pick<InferProvider<typeof nodesCapability>, 'topology' | 'deployAddon' | 'undeployAddon' | 'restartAddon' | 'restartProcess' | 'restartNode' | 'shutdownNode' | 'renameNode' | 'clusterAddonStatus' | 'getCapUsageGraph' | 'getNodeAddons' | 'setProcessLogLevel' | 'executeQuery'>;
73
73
  readonly notificationOutput: Pick<InferProvider<typeof notificationOutputCapability>, 'listTargetKinds' | 'listTargets' | 'discoverTargets' | 'send' | 'testTarget' | 'upsertTarget' | 'deleteTarget' | 'setTargetEnabled'>;
74
- readonly pipelineExecutor: Pick<InferProvider<typeof pipelineExecutorCapability>, 'getAvailableEngines' | 'getSelectedEngine' | 'getDefaultSteps' | 'reprobeEngine' | 'getEngineProvisioning' | 'getVideoPipelineSteps' | 'setVideoPipelineSteps' | 'resetToDefault' | 'getSchema' | 'getGlobalSteps' | 'getGlobalPipelineConfig' | 'getOrchestratorConfigSchema' | 'validatePipeline' | 'listTemplates' | 'saveTemplate' | 'updateTemplate' | 'deleteTemplate' | 'getCapabilities' | 'getAddonModels' | 'downloadModel' | 'deleteModel' | 'detect' | 'cacheFrameInPool' | 'inferCached' | 'uncacheFrame' | 'getEffectiveTuning' | 'listLoadedEngines' | 'spinEngine' | 'killEngine' | 'listReferenceImages' | 'getReferenceImage' | 'getReferenceAudioFiles' | 'getReferenceAudio' | 'getAudioCapabilities' | 'runAudioTest' | 'getDetectionConfigSchema'>;
75
- readonly pipelineOrchestrator: Pick<InferProvider<typeof pipelineOrchestratorCapability>, 'rebalance' | 'getPipelineAssignments' | 'getAgentLoad' | 'getGlobalMetrics' | 'getCapabilityBindings' | 'setCapabilityBinding' | 'getIngestOwner' | 'getDecoderAssignments' | 'getAudioNodeLoad' | 'getAgentSettings' | 'listAgentSettings' | 'setAgentAddonDefaults' | 'removeAgentSettings' | 'setAgentMaxCameras' | 'setAgentDetectWeight' | 'setAgentCapabilities' | 'setAgentReachableHost' | 'getCameraStatuses' | 'listTemplates' | 'saveTemplate' | 'updateTemplate' | 'deleteTemplate'>;
74
+ 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'>;
75
+ 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'>;
76
76
  readonly pipelineRunner: Pick<InferProvider<typeof pipelineRunnerCapability>, 'attachCamera' | 'reportMotion' | 'getLocalLoad' | 'getLocalMetrics' | 'getAllCameraMetrics' | 'getLocalCameras'>;
77
77
  readonly plateGallery: Pick<InferProvider<typeof plateGalleryCapability>, 'getPlateMedia' | 'searchPlates' | 'suggestPlateClusters' | 'correctPlateText' | 'deletePlate'>;
78
78
  readonly recording: Pick<InferProvider<typeof recordingCapability>, 'getStorageUsage'>;