@camstack/types 1.2.190 → 1.2.191

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
@@ -153,6 +153,7 @@ var CAP_INPUT_DEFAULTS = Object.freeze({
153
153
  "motionFps": 4,
154
154
  "detectionFps": 10,
155
155
  "motionSources": ["analyzer"],
156
+ "detectionSources": ["pipeline"],
156
157
  "pipelineEnabled": true,
157
158
  "zones": [],
158
159
  "onboardMotionDrivesAnalyzer": true,
package/dist/addon.mjs CHANGED
@@ -152,6 +152,7 @@ var CAP_INPUT_DEFAULTS = Object.freeze({
152
152
  "motionFps": 4,
153
153
  "detectionFps": 10,
154
154
  "motionSources": ["analyzer"],
155
+ "detectionSources": ["pipeline"],
155
156
  "pipelineEnabled": true,
156
157
  "zones": [],
157
158
  "onboardMotionDrivesAnalyzer": true,
@@ -89,7 +89,7 @@ export { ModelSubstitutionSchema, NativeCropRefSchema, PipelineDefaultStepSchema
89
89
  export type { CameraAssignmentStatus, CameraAudioStatus, CameraBrokerProfile, CameraBrokerStatus, CameraDecoderShm, CameraDecoderStatus, CameraDetectionPhase, CameraDetectionProvisioning, CameraDetectionProvisioningState, CameraDetectionStatus, CameraMotionStatus, CameraRecordingMode, CameraRecordingStatus, CameraSourceStatus, CameraSourceStream, CameraStatus, CameraStatusDegradation, CameraStatusDegradationReason, CameraStatusStage, DiskReconcileJob, InferenceDeviceExclusionReason, IngestOwner, NodeInferenceDevice, NodeInferenceDevices, } from './pipeline-orchestrator.cap.js';
90
90
  export { AgentLoadSummarySchema, CameraAssignmentStatusSchema, CameraAudioStatusSchema, CameraBrokerProfileSchema, CameraBrokerStatusSchema, CameraDecoderShmSchema, CameraDecoderStatusSchema, CameraDetectionPhaseSchema, CameraDetectionProvisioningSchema, CameraDetectionProvisioningStateSchema, CameraDetectionStatusSchema, CameraMotionStatusSchema, CameraRecordingModeSchema, CameraRecordingStatusSchema, CameraSourceStatusSchema, CameraSourceStreamSchema, CameraStatusDegradationReasonSchema, CameraStatusDegradationSchema, CameraStatusSchema, CameraStatusStageSchema, CapabilityBindingsSchema, DiskReconcileJobSchema, GlobalMetricsSchema, INFERENCE_DEVICE_EXCLUSION_REASONS, InferenceDeviceExclusionReasonSchema, IngestOwnerSchema, PipelineAssignmentSchema, pipelineOrchestratorCapability, } from './pipeline-orchestrator.cap.js';
91
91
  export type { DetailParent, DetailResult, MotionSource, MotionSources, ParkedFrameKind, ParkedTrackFrame, ParkRefusal, ParkTrackFrameResult, ReportMotionInput, RunDetailSubtreeInput, RunDetailSubtreeResult, RunnerFrameSource, RunnerInferenceDevice, RunStatelessStepInput, RunStatelessStepResult, StatelessStepRefusal, } from './pipeline-runner.cap.js';
92
- export { FrameLazyCountersSchema, FrameLazyMetricsSchema, MotionSourceEnum, MotionSourcesSchema, type NativeCropBbox, NativeCropBboxSchema, NativeCropResultSchema, ParkedFrameKindSchema, ParkedTrackFrameSchema, ParkRefusalSchema, ParkTrackFrameResultSchema, pipelineRunnerCapability, ReportMotionInputSchema, RunnerCameraConfigSchema, RunnerCameraDeviceUIFields, RunnerFrameSourceSchema, RunnerInferenceDeviceSchema, RunnerLocalLoadSchema, RunnerLocalMetricsSchema, } from './pipeline-runner.cap.js';
92
+ export { FrameLazyCountersSchema, FrameLazyMetricsSchema, MotionSourceEnum, type DetectionSources, DetectionSourcesSchema, MotionSourcesSchema, type NativeCropBbox, NativeCropBboxSchema, NativeCropResultSchema, ParkedFrameKindSchema, ParkedTrackFrameSchema, ParkRefusalSchema, ParkTrackFrameResultSchema, pipelineRunnerCapability, ReportMotionInputSchema, RunnerCameraConfigSchema, RunnerCameraDeviceUIFields, RunnerFrameSourceSchema, RunnerInferenceDeviceSchema, RunnerLocalLoadSchema, RunnerLocalMetricsSchema, } from './pipeline-runner.cap.js';
93
93
  export { AudioChunkInputSchema, AudioClassificationLabelSchema, AudioLevelSchema, BoundingBoxSchema, FrameInputSchema, SpatialDetectionSchema, } from './schemas/detection-shared.js';
94
94
  export { CameraMetricsSchema, CameraMetricsWithDeviceIdSchema, OrchestratorMetricsSchema, } from './schemas/orchestrator-metrics.js';
95
95
  export type { CameraStream, CamProfile, CamStreamKind, DecodedAudioChunkWire, FrameHandleFormat, ProfileRtspEntry, ProfileSlot, ProfileSlotStatus, SubscribeAudioChunksInput, SubscribeAudioChunksResult, SubscribeFramesInput, SubscribeFramesResult, } from './schemas/streaming-shared.js';
@@ -67,21 +67,27 @@ export declare const NativeObjectDetectionStatusSchema: z.ZodObject<{
67
67
  }, z.core.$strip>;
68
68
  export type NativeObjectDetectionStatus = z.infer<typeof NativeObjectDetectionStatusSchema>;
69
69
  /**
70
- * What a camera's onboard detections actually CARRY.
70
+ * WHEN a camera's onboard detections carry geometry.
71
71
  *
72
- * `boxed` — the firmware ships a bounding box with the class, so a detection is
73
- * a subject the pipeline can track, crop and score.
74
- * `flag-only` — the firmware ships the class and nothing else. The pipeline
75
- * needs geometry to make a subject out of it, so such a push reaches the
76
- * tracker as motion and no further. On Reolink this is every battery camera:
77
- * the boxes ride the BcMedia sub-stream, which a battery camera never attaches.
72
+ * - `boxed` — always. The provider holds a standing channel for the boxes, so
73
+ * a detection is a trackable subject whenever the camera sees one.
74
+ * - `while-streaming` — only while some stream of this camera is already open.
75
+ * The boxes ride the video's own side-channel rather than a feed of their
76
+ * own, so they cost nothing and they exist only when something is pulling.
77
+ * On Reolink this is every BATTERY camera: a persistent second feed is real
78
+ * radio drain, but a camera that is awake is awake precisely because
79
+ * something is in front of it, and its stream is already being pulled.
80
+ * - `flag-only` — never. The firmware ships the class and nothing else; the
81
+ * pipeline needs geometry to make a subject, so such a push reaches the
82
+ * tracker as motion and no further.
78
83
  *
79
84
  * Reported and not inferred, because the operator's question in front of the
80
- * toggle is "what do I get", and "a class with no box" and "a subject" are
81
- * different answers (D14: the derived form is only as honest as `getOptions`).
85
+ * picker is "what do I get", and these are three different answers (D14: the
86
+ * derived form is only as honest as `getOptions`).
82
87
  */
83
88
  export declare const NativeObjectGeometryEnum: z.ZodEnum<{
84
89
  boxed: "boxed";
90
+ "while-streaming": "while-streaming";
85
91
  "flag-only": "flag-only";
86
92
  }>;
87
93
  export type NativeObjectGeometry = z.infer<typeof NativeObjectGeometryEnum>;
@@ -96,6 +102,7 @@ export declare const NativeObjectDetectionOptionsSchema: z.ZodObject<{
96
102
  }>>>;
97
103
  geometry: z.ZodEnum<{
98
104
  boxed: "boxed";
105
+ "while-streaming": "while-streaming";
99
106
  "flag-only": "flag-only";
100
107
  }>;
101
108
  }, z.core.$strip>;
@@ -142,13 +149,6 @@ export declare const nativeObjectDetectionCapability: {
142
149
  readonly deviceNative: true;
143
150
  readonly mode: "singleton";
144
151
  readonly deviceTypes: readonly [DeviceType.Camera];
145
- readonly deviceConfig: {
146
- readonly ui: {
147
- readonly kind: "derived-form";
148
- readonly builderId: "native-object-detection";
149
- readonly tab: "motion";
150
- };
151
- };
152
152
  readonly methods: {
153
153
  readonly getOptions: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
154
154
  deviceId: z.ZodNumber;
@@ -163,6 +163,7 @@ export declare const nativeObjectDetectionCapability: {
163
163
  }>>>;
164
164
  geometry: z.ZodEnum<{
165
165
  boxed: "boxed";
166
+ "while-streaming": "while-streaming";
166
167
  "flag-only": "flag-only";
167
168
  }>;
168
169
  }, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
@@ -1624,11 +1624,11 @@ export type NcRule = z.infer<typeof NcRuleSchema>;
1624
1624
  export declare const NcTestResultSchema: z.ZodObject<{
1625
1625
  recordId: z.ZodString;
1626
1626
  recordKind: z.ZodEnum<{
1627
+ track: "track";
1627
1628
  "device-event": "device-event";
1628
1629
  "package-event": "package-event";
1629
1630
  "system-event": "system-event";
1630
1631
  "object-event": "object-event";
1631
- track: "track";
1632
1632
  }>;
1633
1633
  deviceId: z.ZodNumber;
1634
1634
  timestamp: z.ZodNumber;
@@ -3948,11 +3948,11 @@ export declare const notificationRulesCapability: {
3948
3948
  results: z.ZodArray<z.ZodObject<{
3949
3949
  recordId: z.ZodString;
3950
3950
  recordKind: z.ZodEnum<{
3951
+ track: "track";
3951
3952
  "device-event": "device-event";
3952
3953
  "package-event": "package-event";
3953
3954
  "system-event": "system-event";
3954
3955
  "object-event": "object-event";
3955
- track: "track";
3956
3956
  }>;
3957
3957
  deviceId: z.ZodNumber;
3958
3958
  timestamp: z.ZodNumber;
@@ -394,10 +394,10 @@ export type OsdSlotView = z.infer<typeof OsdSlotViewSchema>;
394
394
  export declare const OsdRenderOutcomeEnum: z.ZodEnum<{
395
395
  failed: "failed";
396
396
  disabled: "disabled";
397
- written: "written";
398
397
  unchanged: "unchanged";
399
- gated: "gated";
400
398
  unreadable: "unreadable";
399
+ written: "written";
400
+ gated: "gated";
401
401
  unbound: "unbound";
402
402
  }>;
403
403
  export type OsdRenderOutcome = z.infer<typeof OsdRenderOutcomeEnum>;
@@ -406,10 +406,10 @@ export declare const OsdRenderResultSchema: z.ZodObject<{
406
406
  outcome: z.ZodEnum<{
407
407
  failed: "failed";
408
408
  disabled: "disabled";
409
- written: "written";
410
409
  unchanged: "unchanged";
411
- gated: "gated";
412
410
  unreadable: "unreadable";
411
+ written: "written";
412
+ gated: "gated";
413
413
  unbound: "unbound";
414
414
  }>;
415
415
  text: z.ZodString;
@@ -1062,10 +1062,10 @@ export declare const osdManagerCapability: {
1062
1062
  outcome: z.ZodEnum<{
1063
1063
  failed: "failed";
1064
1064
  disabled: "disabled";
1065
- written: "written";
1066
1065
  unchanged: "unchanged";
1067
- gated: "gated";
1068
1066
  unreadable: "unreadable";
1067
+ written: "written";
1068
+ gated: "gated";
1069
1069
  unbound: "unbound";
1070
1070
  }>;
1071
1071
  text: z.ZodString;
@@ -1263,10 +1263,10 @@ export declare const osdManagerCapability: {
1263
1263
  outcome: z.ZodEnum<{
1264
1264
  failed: "failed";
1265
1265
  disabled: "disabled";
1266
- written: "written";
1267
1266
  unchanged: "unchanged";
1268
- gated: "gated";
1269
1267
  unreadable: "unreadable";
1268
+ written: "written";
1269
+ gated: "gated";
1270
1270
  unbound: "unbound";
1271
1271
  }>;
1272
1272
  text: z.ZodString;
@@ -1281,10 +1281,10 @@ export declare const osdManagerCapability: {
1281
1281
  outcome: z.ZodEnum<{
1282
1282
  failed: "failed";
1283
1283
  disabled: "disabled";
1284
- written: "written";
1285
1284
  unchanged: "unchanged";
1286
- gated: "gated";
1287
1285
  unreadable: "unreadable";
1286
+ written: "written";
1287
+ gated: "gated";
1288
1288
  unbound: "unbound";
1289
1289
  }>;
1290
1290
  text: z.ZodString;