@camstack/addon-provider-hikvision 1.2.111 → 1.2.113
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 +48 -8
- package/dist/addon.mjs +48 -8
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -19745,13 +19745,26 @@ var TrackAudioLabelSchema = object({
|
|
|
19745
19745
|
* - `audio` — an audio event on the camera itself that was anomalous for
|
|
19746
19746
|
* THAT camera, loud, and heard while nothing visual was happening (D62).
|
|
19747
19747
|
*
|
|
19748
|
+
* - `onboard` — the CAMERA's own firmware, paired with a decoded frame in
|
|
19749
|
+
* that frame's pixel space. A real root detector and a SPATIAL one: its
|
|
19750
|
+
* boxes are the same kind of fact `pipeline`'s are, produced by a different
|
|
19751
|
+
* detector.
|
|
19752
|
+
*
|
|
19753
|
+
* `onboard` was missing here while `DetectionSourceSchema` already had it, so
|
|
19754
|
+
* a persisted onboard track failed `safeParse` on read and came back with NO
|
|
19755
|
+
* source at all — which `isSpatialTrack` then admitted by accident, through the
|
|
19756
|
+
* `undefined` arm rather than by anybody's decision, and which `excludeSources`
|
|
19757
|
+
* could not name.
|
|
19758
|
+
*
|
|
19748
19759
|
* The spatial subsystems (tracker association, occupancy count, re-id /
|
|
19749
19760
|
* embedding, resurrection) MUST skip every synthetic source. Test for that
|
|
19750
|
-
* with `isSpatialTrack`, which allow-lists
|
|
19751
|
-
* check silently readmits every source added after it was
|
|
19761
|
+
* with `isSpatialTrack`, which allow-lists the spatial sources explicitly — a
|
|
19762
|
+
* `!== 'sensor'` check silently readmits every source added after it was
|
|
19763
|
+
* written.
|
|
19752
19764
|
*/
|
|
19753
19765
|
var TrackSourceSchema = _enum([
|
|
19754
19766
|
"pipeline",
|
|
19767
|
+
"onboard",
|
|
19755
19768
|
"sensor",
|
|
19756
19769
|
"audio"
|
|
19757
19770
|
]);
|
|
@@ -20339,6 +20352,7 @@ var MediaFileKindEnum = _enum([
|
|
|
20339
20352
|
"keyFrame",
|
|
20340
20353
|
"keyFrameSmall",
|
|
20341
20354
|
"thumbnailSmall",
|
|
20355
|
+
"confirmationCrop",
|
|
20342
20356
|
"sceneFrame"
|
|
20343
20357
|
]);
|
|
20344
20358
|
/**
|
|
@@ -21833,13 +21847,39 @@ var MotionSourceEnum = _enum([
|
|
|
21833
21847
|
*/
|
|
21834
21848
|
var MotionSourcesSchema = array(MotionSourceEnum);
|
|
21835
21849
|
/**
|
|
21836
|
-
* Which root
|
|
21837
|
-
*
|
|
21838
|
-
*
|
|
21839
|
-
*
|
|
21840
|
-
*
|
|
21850
|
+
* Which root detector a camera runs — EXACTLY ONE.
|
|
21851
|
+
*
|
|
21852
|
+
* Deliberately the SAME vocabulary post-analysis already tags every detection
|
|
21853
|
+
* with (`DetectionSource`) rather than a second spelling of the same two
|
|
21854
|
+
* ideas: the value an operator picks here is the value that comes back on the
|
|
21855
|
+
* track, the overlay and the debug row.
|
|
21856
|
+
*
|
|
21857
|
+
* ## Why one, and why it is still an array
|
|
21858
|
+
*
|
|
21859
|
+
* Two roots on one camera is a capability nobody asked for and the operator has
|
|
21860
|
+
* since ruled out. It was never free: both planes feed the SAME per-device
|
|
21861
|
+
* stationary registry, both can promote the same parked object, and the two
|
|
21862
|
+
* detectors disagree about the same box by construction — which is the
|
|
21863
|
+
* disagreement D505 had to arbitrate. Removing the case removes the arbitration.
|
|
21864
|
+
*
|
|
21865
|
+
* The ARRAY shape survives because the stored settings and the attach payload
|
|
21866
|
+
* already speak it on every camera of every fleet, and a cap input that
|
|
21867
|
+
* suddenly refuses a stored value makes the camera un-attachable — a fail-closed
|
|
21868
|
+
* in the one direction that costs an operator their cameras. So the wire stays
|
|
21869
|
+
* tolerant and the TYPE is exact: a longer list is truncated to its first
|
|
21870
|
+
* element rather than refused, and `max(1)` is what every consumer can then
|
|
21871
|
+
* rely on.
|
|
21872
|
+
*
|
|
21873
|
+
* AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
|
|
21874
|
+
* a camera an operator left with no root detector — and `planDetectionSources`
|
|
21875
|
+
* has always said so: inventing a root for them is how a default acts without
|
|
21876
|
+
* anybody choosing it. Tightening this to `length(1)` broke that, and the
|
|
21877
|
+
* suite caught it.
|
|
21878
|
+
*
|
|
21879
|
+
* Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
|
|
21880
|
+
* `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
|
|
21841
21881
|
*/
|
|
21842
|
-
var DetectionSourcesSchema = array(DetectionSourceSchema);
|
|
21882
|
+
var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
|
|
21843
21883
|
/**
|
|
21844
21884
|
* Input shape for `pipeline-runner.reportMotion` cap method. Exported
|
|
21845
21885
|
* so cap-side consumers (the orchestrator forward, the runner addon's
|
package/dist/addon.mjs
CHANGED
|
@@ -19746,13 +19746,26 @@ var TrackAudioLabelSchema = object({
|
|
|
19746
19746
|
* - `audio` — an audio event on the camera itself that was anomalous for
|
|
19747
19747
|
* THAT camera, loud, and heard while nothing visual was happening (D62).
|
|
19748
19748
|
*
|
|
19749
|
+
* - `onboard` — the CAMERA's own firmware, paired with a decoded frame in
|
|
19750
|
+
* that frame's pixel space. A real root detector and a SPATIAL one: its
|
|
19751
|
+
* boxes are the same kind of fact `pipeline`'s are, produced by a different
|
|
19752
|
+
* detector.
|
|
19753
|
+
*
|
|
19754
|
+
* `onboard` was missing here while `DetectionSourceSchema` already had it, so
|
|
19755
|
+
* a persisted onboard track failed `safeParse` on read and came back with NO
|
|
19756
|
+
* source at all — which `isSpatialTrack` then admitted by accident, through the
|
|
19757
|
+
* `undefined` arm rather than by anybody's decision, and which `excludeSources`
|
|
19758
|
+
* could not name.
|
|
19759
|
+
*
|
|
19749
19760
|
* The spatial subsystems (tracker association, occupancy count, re-id /
|
|
19750
19761
|
* embedding, resurrection) MUST skip every synthetic source. Test for that
|
|
19751
|
-
* with `isSpatialTrack`, which allow-lists
|
|
19752
|
-
* check silently readmits every source added after it was
|
|
19762
|
+
* with `isSpatialTrack`, which allow-lists the spatial sources explicitly — a
|
|
19763
|
+
* `!== 'sensor'` check silently readmits every source added after it was
|
|
19764
|
+
* written.
|
|
19753
19765
|
*/
|
|
19754
19766
|
var TrackSourceSchema = _enum([
|
|
19755
19767
|
"pipeline",
|
|
19768
|
+
"onboard",
|
|
19756
19769
|
"sensor",
|
|
19757
19770
|
"audio"
|
|
19758
19771
|
]);
|
|
@@ -20340,6 +20353,7 @@ var MediaFileKindEnum = _enum([
|
|
|
20340
20353
|
"keyFrame",
|
|
20341
20354
|
"keyFrameSmall",
|
|
20342
20355
|
"thumbnailSmall",
|
|
20356
|
+
"confirmationCrop",
|
|
20343
20357
|
"sceneFrame"
|
|
20344
20358
|
]);
|
|
20345
20359
|
/**
|
|
@@ -21834,13 +21848,39 @@ var MotionSourceEnum = _enum([
|
|
|
21834
21848
|
*/
|
|
21835
21849
|
var MotionSourcesSchema = array(MotionSourceEnum);
|
|
21836
21850
|
/**
|
|
21837
|
-
* Which root
|
|
21838
|
-
*
|
|
21839
|
-
*
|
|
21840
|
-
*
|
|
21841
|
-
*
|
|
21851
|
+
* Which root detector a camera runs — EXACTLY ONE.
|
|
21852
|
+
*
|
|
21853
|
+
* Deliberately the SAME vocabulary post-analysis already tags every detection
|
|
21854
|
+
* with (`DetectionSource`) rather than a second spelling of the same two
|
|
21855
|
+
* ideas: the value an operator picks here is the value that comes back on the
|
|
21856
|
+
* track, the overlay and the debug row.
|
|
21857
|
+
*
|
|
21858
|
+
* ## Why one, and why it is still an array
|
|
21859
|
+
*
|
|
21860
|
+
* Two roots on one camera is a capability nobody asked for and the operator has
|
|
21861
|
+
* since ruled out. It was never free: both planes feed the SAME per-device
|
|
21862
|
+
* stationary registry, both can promote the same parked object, and the two
|
|
21863
|
+
* detectors disagree about the same box by construction — which is the
|
|
21864
|
+
* disagreement D505 had to arbitrate. Removing the case removes the arbitration.
|
|
21865
|
+
*
|
|
21866
|
+
* The ARRAY shape survives because the stored settings and the attach payload
|
|
21867
|
+
* already speak it on every camera of every fleet, and a cap input that
|
|
21868
|
+
* suddenly refuses a stored value makes the camera un-attachable — a fail-closed
|
|
21869
|
+
* in the one direction that costs an operator their cameras. So the wire stays
|
|
21870
|
+
* tolerant and the TYPE is exact: a longer list is truncated to its first
|
|
21871
|
+
* element rather than refused, and `max(1)` is what every consumer can then
|
|
21872
|
+
* rely on.
|
|
21873
|
+
*
|
|
21874
|
+
* AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
|
|
21875
|
+
* a camera an operator left with no root detector — and `planDetectionSources`
|
|
21876
|
+
* has always said so: inventing a root for them is how a default acts without
|
|
21877
|
+
* anybody choosing it. Tightening this to `length(1)` broke that, and the
|
|
21878
|
+
* suite caught it.
|
|
21879
|
+
*
|
|
21880
|
+
* Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
|
|
21881
|
+
* `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
|
|
21842
21882
|
*/
|
|
21843
|
-
var DetectionSourcesSchema = array(DetectionSourceSchema);
|
|
21883
|
+
var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
|
|
21844
21884
|
/**
|
|
21845
21885
|
* Input shape for `pipeline-runner.reportMotion` cap method. Exported
|
|
21846
21886
|
* so cap-side consumers (the orchestrator forward, the runner addon's
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-hikvision",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.113",
|
|
4
4
|
"description": "Hikvision camera device provider addon for CamStack — ISAPI over HTTP(S) with digest auth (snapshot, alarm stream, RTSP discovery)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|