@camstack/addon-notifiers 1.2.107 → 1.2.109

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
@@ -19227,13 +19227,26 @@ var TrackAudioLabelSchema = object({
19227
19227
  * - `audio` — an audio event on the camera itself that was anomalous for
19228
19228
  * THAT camera, loud, and heard while nothing visual was happening (D62).
19229
19229
  *
19230
+ * - `onboard` — the CAMERA's own firmware, paired with a decoded frame in
19231
+ * that frame's pixel space. A real root detector and a SPATIAL one: its
19232
+ * boxes are the same kind of fact `pipeline`'s are, produced by a different
19233
+ * detector.
19234
+ *
19235
+ * `onboard` was missing here while `DetectionSourceSchema` already had it, so
19236
+ * a persisted onboard track failed `safeParse` on read and came back with NO
19237
+ * source at all — which `isSpatialTrack` then admitted by accident, through the
19238
+ * `undefined` arm rather than by anybody's decision, and which `excludeSources`
19239
+ * could not name.
19240
+ *
19230
19241
  * The spatial subsystems (tracker association, occupancy count, re-id /
19231
19242
  * embedding, resurrection) MUST skip every synthetic source. Test for that
19232
- * with `isSpatialTrack`, which allow-lists `pipeline` — a `!== 'sensor'`
19233
- * check silently readmits every source added after it was written.
19243
+ * with `isSpatialTrack`, which allow-lists the spatial sources explicitly — a
19244
+ * `!== 'sensor'` check silently readmits every source added after it was
19245
+ * written.
19234
19246
  */
19235
19247
  var TrackSourceSchema = _enum([
19236
19248
  "pipeline",
19249
+ "onboard",
19237
19250
  "sensor",
19238
19251
  "audio"
19239
19252
  ]);
@@ -19821,6 +19834,7 @@ var MediaFileKindEnum = _enum([
19821
19834
  "keyFrame",
19822
19835
  "keyFrameSmall",
19823
19836
  "thumbnailSmall",
19837
+ "confirmationCrop",
19824
19838
  "sceneFrame"
19825
19839
  ]);
19826
19840
  /**
@@ -21315,13 +21329,39 @@ var MotionSourceEnum = _enum([
21315
21329
  */
21316
21330
  var MotionSourcesSchema = array(MotionSourceEnum);
21317
21331
  /**
21318
- * Which root detectors a camera runs. Deliberately the SAME vocabulary
21319
- * post-analysis already tags every detection with (`DetectionSource`) rather
21320
- * than a second spelling of the same two ideas — the value an operator picks
21321
- * here is the value that comes back on the track, the overlay and the debug
21322
- * row.
21332
+ * Which root detector a camera runs — EXACTLY ONE.
21333
+ *
21334
+ * Deliberately the SAME vocabulary post-analysis already tags every detection
21335
+ * with (`DetectionSource`) rather than a second spelling of the same two
21336
+ * ideas: the value an operator picks here is the value that comes back on the
21337
+ * track, the overlay and the debug row.
21338
+ *
21339
+ * ## Why one, and why it is still an array
21340
+ *
21341
+ * Two roots on one camera is a capability nobody asked for and the operator has
21342
+ * since ruled out. It was never free: both planes feed the SAME per-device
21343
+ * stationary registry, both can promote the same parked object, and the two
21344
+ * detectors disagree about the same box by construction — which is the
21345
+ * disagreement D505 had to arbitrate. Removing the case removes the arbitration.
21346
+ *
21347
+ * The ARRAY shape survives because the stored settings and the attach payload
21348
+ * already speak it on every camera of every fleet, and a cap input that
21349
+ * suddenly refuses a stored value makes the camera un-attachable — a fail-closed
21350
+ * in the one direction that costs an operator their cameras. So the wire stays
21351
+ * tolerant and the TYPE is exact: a longer list is truncated to its first
21352
+ * element rather than refused, and `max(1)` is what every consumer can then
21353
+ * rely on.
21354
+ *
21355
+ * AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
21356
+ * a camera an operator left with no root detector — and `planDetectionSources`
21357
+ * has always said so: inventing a root for them is how a default acts without
21358
+ * anybody choosing it. Tightening this to `length(1)` broke that, and the
21359
+ * suite caught it.
21360
+ *
21361
+ * Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
21362
+ * `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
21323
21363
  */
21324
- var DetectionSourcesSchema = array(DetectionSourceSchema);
21364
+ var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
21325
21365
  /**
21326
21366
  * Input shape for `pipeline-runner.reportMotion` cap method. Exported
21327
21367
  * so cap-side consumers (the orchestrator forward, the runner addon's
package/dist/addon.mjs CHANGED
@@ -19200,13 +19200,26 @@ var TrackAudioLabelSchema = object({
19200
19200
  * - `audio` — an audio event on the camera itself that was anomalous for
19201
19201
  * THAT camera, loud, and heard while nothing visual was happening (D62).
19202
19202
  *
19203
+ * - `onboard` — the CAMERA's own firmware, paired with a decoded frame in
19204
+ * that frame's pixel space. A real root detector and a SPATIAL one: its
19205
+ * boxes are the same kind of fact `pipeline`'s are, produced by a different
19206
+ * detector.
19207
+ *
19208
+ * `onboard` was missing here while `DetectionSourceSchema` already had it, so
19209
+ * a persisted onboard track failed `safeParse` on read and came back with NO
19210
+ * source at all — which `isSpatialTrack` then admitted by accident, through the
19211
+ * `undefined` arm rather than by anybody's decision, and which `excludeSources`
19212
+ * could not name.
19213
+ *
19203
19214
  * The spatial subsystems (tracker association, occupancy count, re-id /
19204
19215
  * embedding, resurrection) MUST skip every synthetic source. Test for that
19205
- * with `isSpatialTrack`, which allow-lists `pipeline` — a `!== 'sensor'`
19206
- * check silently readmits every source added after it was written.
19216
+ * with `isSpatialTrack`, which allow-lists the spatial sources explicitly — a
19217
+ * `!== 'sensor'` check silently readmits every source added after it was
19218
+ * written.
19207
19219
  */
19208
19220
  var TrackSourceSchema = _enum([
19209
19221
  "pipeline",
19222
+ "onboard",
19210
19223
  "sensor",
19211
19224
  "audio"
19212
19225
  ]);
@@ -19794,6 +19807,7 @@ var MediaFileKindEnum = _enum([
19794
19807
  "keyFrame",
19795
19808
  "keyFrameSmall",
19796
19809
  "thumbnailSmall",
19810
+ "confirmationCrop",
19797
19811
  "sceneFrame"
19798
19812
  ]);
19799
19813
  /**
@@ -21288,13 +21302,39 @@ var MotionSourceEnum = _enum([
21288
21302
  */
21289
21303
  var MotionSourcesSchema = array(MotionSourceEnum);
21290
21304
  /**
21291
- * Which root detectors a camera runs. Deliberately the SAME vocabulary
21292
- * post-analysis already tags every detection with (`DetectionSource`) rather
21293
- * than a second spelling of the same two ideas — the value an operator picks
21294
- * here is the value that comes back on the track, the overlay and the debug
21295
- * row.
21305
+ * Which root detector a camera runs — EXACTLY ONE.
21306
+ *
21307
+ * Deliberately the SAME vocabulary post-analysis already tags every detection
21308
+ * with (`DetectionSource`) rather than a second spelling of the same two
21309
+ * ideas: the value an operator picks here is the value that comes back on the
21310
+ * track, the overlay and the debug row.
21311
+ *
21312
+ * ## Why one, and why it is still an array
21313
+ *
21314
+ * Two roots on one camera is a capability nobody asked for and the operator has
21315
+ * since ruled out. It was never free: both planes feed the SAME per-device
21316
+ * stationary registry, both can promote the same parked object, and the two
21317
+ * detectors disagree about the same box by construction — which is the
21318
+ * disagreement D505 had to arbitrate. Removing the case removes the arbitration.
21319
+ *
21320
+ * The ARRAY shape survives because the stored settings and the attach payload
21321
+ * already speak it on every camera of every fleet, and a cap input that
21322
+ * suddenly refuses a stored value makes the camera un-attachable — a fail-closed
21323
+ * in the one direction that costs an operator their cameras. So the wire stays
21324
+ * tolerant and the TYPE is exact: a longer list is truncated to its first
21325
+ * element rather than refused, and `max(1)` is what every consumer can then
21326
+ * rely on.
21327
+ *
21328
+ * AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
21329
+ * a camera an operator left with no root detector — and `planDetectionSources`
21330
+ * has always said so: inventing a root for them is how a default acts without
21331
+ * anybody choosing it. Tightening this to `length(1)` broke that, and the
21332
+ * suite caught it.
21333
+ *
21334
+ * Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
21335
+ * `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
21296
21336
  */
21297
- var DetectionSourcesSchema = array(DetectionSourceSchema);
21337
+ var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
21298
21338
  /**
21299
21339
  * Input shape for `pipeline-runner.reportMotion` cap method. Exported
21300
21340
  * 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-notifiers",
3
- "version": "1.2.107",
3
+ "version": "1.2.109",
4
4
  "description": "System notifiers addon for CamStack — a `notification-output` collection provider hosting per-kind notifier adapters (ntfy, pushover, gotify, telegram, discord, webhook, zentik).",
5
5
  "keywords": [
6
6
  "camstack",