@camstack/addon-provider-hikvision 1.2.19 → 1.2.20

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
@@ -13383,11 +13383,33 @@ var NotificationFormatSchema = _enum([
13383
13383
  * Named by INTENT, never by glyph. "check" would tie the vocabulary to one
13384
13384
  * renderer's icon set; "acknowledge" survives an adapter that draws it
13385
13385
  * differently.
13386
+ *
13387
+ * ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
13388
+ *
13389
+ * These names are for US. **No adapter may forward one verbatim.** Each maps
13390
+ * the whole set onto its own renderer's vocabulary through a
13391
+ * `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
13392
+ * fallback, so adding a member here fails every adapter's build until someone
13393
+ * decides its glyph, which is the only place that decision can be made
13394
+ * honestly.
13395
+ *
13396
+ * This paragraph is the bug. Zentik declared `actionIcons: true` and passed
13397
+ * `disarm` straight through; iOS feeds that string to
13398
+ * `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
13399
+ * and every snooze and alarm button arrived BLANK. A pass-through is not a
13400
+ * mapping, and "the field is documented" is not "the value renders".
13401
+ *
13402
+ * Adding a member is TRAIN-BOUND. The enum lives in the published
13403
+ * `@camstack/server` closure and the cap seam validates against the HUB's copy,
13404
+ * so an addon that emits a token the running hub does not know does not lose an
13405
+ * icon — its whole `send` fails Zod validation and the notification never
13406
+ * arrives. Never emit a new token from an addon before the train carrying it.
13386
13407
  */
13387
13408
  var NotificationActionIconSchema = _enum([
13388
13409
  "acknowledge",
13389
13410
  "dismiss",
13390
13411
  "silence",
13412
+ "snooze",
13391
13413
  "view",
13392
13414
  "play",
13393
13415
  "open",
@@ -13395,9 +13417,13 @@ var NotificationActionIconSchema = _enum([
13395
13417
  "lock",
13396
13418
  "unlock",
13397
13419
  "arm",
13420
+ "arm-home",
13421
+ "arm-away",
13422
+ "arm-night",
13398
13423
  "disarm",
13399
13424
  "light",
13400
- "alert"
13425
+ "alert",
13426
+ "camera"
13401
13427
  ]);
13402
13428
  /** A single tap-through action button. */
13403
13429
  var NotificationActionSchema = object({
@@ -13597,6 +13623,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
13597
13623
  targetId: string(),
13598
13624
  enabled: boolean()
13599
13625
  }), _void(), { kind: "mutation" });
13626
+ new Set([
13627
+ {
13628
+ id: "person",
13629
+ name: "Person"
13630
+ },
13631
+ {
13632
+ id: "vehicle",
13633
+ name: "Vehicle"
13634
+ },
13635
+ {
13636
+ id: "animal",
13637
+ name: "Animal"
13638
+ },
13639
+ {
13640
+ id: "package",
13641
+ name: "Package"
13642
+ }
13643
+ ].map((l) => l.id));
13600
13644
  var COCO_TO_MACRO = {
13601
13645
  mapping: {
13602
13646
  person: "person",
@@ -14432,6 +14476,8 @@ var NcSystemEventKindSchema = _enum([
14432
14476
  "alarm-triggered",
14433
14477
  "alarm-armed",
14434
14478
  "alarm-disarmed",
14479
+ "alarm-arming",
14480
+ "alarm-arm-refused",
14435
14481
  "camera-online",
14436
14482
  "camera-offline",
14437
14483
  "camera-disabled",
@@ -17704,6 +17750,22 @@ var detectionFpsField = {
17704
17750
  default: 10,
17705
17751
  step: 1
17706
17752
  };
17753
+ /**
17754
+ * The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
17755
+ *
17756
+ * The recheck is now on by default (a parked car is invisible to occupancy
17757
+ * rules until the stationary registry has been rebuilt by motion, which after a
17758
+ * restart may be never on a quiet camera). Each cycle re-subscribes a detection
17759
+ * session — an RTSP re-dial — so the switch is only affordable at a WIDE
17760
+ * interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
17761
+ * 30 s. A parked car is therefore counted within 5 minutes of a restart.
17762
+ *
17763
+ * Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
17764
+ * the host validates `attachCamera` against ITS copy of this schema, so a
17765
+ * runner asked for 600 would be rejected by the hub until a `@camstack/server`
17766
+ * carrying the wider bound is installed everywhere. 300 is the widest value
17767
+ * that ships with an addon deploy.
17768
+ */
17707
17769
  var occupancyRecheckSecField = {
17708
17770
  min: 0,
17709
17771
  max: 300,
@@ -17905,15 +17967,21 @@ var RunnerCameraConfigSchema = object({
17905
17967
  */
17906
17968
  onboardMotionDrivesAnalyzer: boolean().default(true),
17907
17969
  /**
17908
- * Master toggle for the occupancy re-check. When `false` (DEFAULT) the runner
17909
- * never arms the periodic recheck timer, regardless of `occupancyRecheckSec`
17910
- * this is off by default because the recheck re-subscribes a detection session
17911
- * every N seconds while `watching`, a major source of pull-decoder re-dial
17912
- * churn (each cycle creates+tears a session → RTSP re-dial → latency). The
17970
+ * Master toggle for the occupancy re-check. When `false` the runner never arms
17971
+ * the periodic recheck timer, regardless of `occupancyRecheckSec`; the
17913
17972
  * `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
17914
17973
  * (and only render) when this is enabled.
17974
+ *
17975
+ * DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
17976
+ * recheck re-subscribes a detection session every N seconds while `watching`
17977
+ * — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
17978
+ * pull-decoder churn source. What that bought was a blind spot: a STATIONARY
17979
+ * object is counted only while the stationary registry holds it, and the
17980
+ * registry rebuilds from motion, so after a restart a parked car was invisible
17981
+ * to every occupancy rule until something moved in front of it. The churn is
17982
+ * now paid on the interval instead — see `occupancyRecheckSecField`.
17915
17983
  */
17916
- occupancyRecheckEnabled: boolean().default(false),
17984
+ occupancyRecheckEnabled: boolean().default(true),
17917
17985
  occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
17918
17986
  occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
17919
17987
  /**
package/dist/addon.mjs CHANGED
@@ -13384,11 +13384,33 @@ var NotificationFormatSchema = _enum([
13384
13384
  * Named by INTENT, never by glyph. "check" would tie the vocabulary to one
13385
13385
  * renderer's icon set; "acknowledge" survives an adapter that draws it
13386
13386
  * differently.
13387
+ *
13388
+ * ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
13389
+ *
13390
+ * These names are for US. **No adapter may forward one verbatim.** Each maps
13391
+ * the whole set onto its own renderer's vocabulary through a
13392
+ * `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
13393
+ * fallback, so adding a member here fails every adapter's build until someone
13394
+ * decides its glyph, which is the only place that decision can be made
13395
+ * honestly.
13396
+ *
13397
+ * This paragraph is the bug. Zentik declared `actionIcons: true` and passed
13398
+ * `disarm` straight through; iOS feeds that string to
13399
+ * `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
13400
+ * and every snooze and alarm button arrived BLANK. A pass-through is not a
13401
+ * mapping, and "the field is documented" is not "the value renders".
13402
+ *
13403
+ * Adding a member is TRAIN-BOUND. The enum lives in the published
13404
+ * `@camstack/server` closure and the cap seam validates against the HUB's copy,
13405
+ * so an addon that emits a token the running hub does not know does not lose an
13406
+ * icon — its whole `send` fails Zod validation and the notification never
13407
+ * arrives. Never emit a new token from an addon before the train carrying it.
13387
13408
  */
13388
13409
  var NotificationActionIconSchema = _enum([
13389
13410
  "acknowledge",
13390
13411
  "dismiss",
13391
13412
  "silence",
13413
+ "snooze",
13392
13414
  "view",
13393
13415
  "play",
13394
13416
  "open",
@@ -13396,9 +13418,13 @@ var NotificationActionIconSchema = _enum([
13396
13418
  "lock",
13397
13419
  "unlock",
13398
13420
  "arm",
13421
+ "arm-home",
13422
+ "arm-away",
13423
+ "arm-night",
13399
13424
  "disarm",
13400
13425
  "light",
13401
- "alert"
13426
+ "alert",
13427
+ "camera"
13402
13428
  ]);
13403
13429
  /** A single tap-through action button. */
13404
13430
  var NotificationActionSchema = object({
@@ -13598,6 +13624,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
13598
13624
  targetId: string(),
13599
13625
  enabled: boolean()
13600
13626
  }), _void(), { kind: "mutation" });
13627
+ new Set([
13628
+ {
13629
+ id: "person",
13630
+ name: "Person"
13631
+ },
13632
+ {
13633
+ id: "vehicle",
13634
+ name: "Vehicle"
13635
+ },
13636
+ {
13637
+ id: "animal",
13638
+ name: "Animal"
13639
+ },
13640
+ {
13641
+ id: "package",
13642
+ name: "Package"
13643
+ }
13644
+ ].map((l) => l.id));
13601
13645
  var COCO_TO_MACRO = {
13602
13646
  mapping: {
13603
13647
  person: "person",
@@ -14433,6 +14477,8 @@ var NcSystemEventKindSchema = _enum([
14433
14477
  "alarm-triggered",
14434
14478
  "alarm-armed",
14435
14479
  "alarm-disarmed",
14480
+ "alarm-arming",
14481
+ "alarm-arm-refused",
14436
14482
  "camera-online",
14437
14483
  "camera-offline",
14438
14484
  "camera-disabled",
@@ -17705,6 +17751,22 @@ var detectionFpsField = {
17705
17751
  default: 10,
17706
17752
  step: 1
17707
17753
  };
17754
+ /**
17755
+ * The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
17756
+ *
17757
+ * The recheck is now on by default (a parked car is invisible to occupancy
17758
+ * rules until the stationary registry has been rebuilt by motion, which after a
17759
+ * restart may be never on a quiet camera). Each cycle re-subscribes a detection
17760
+ * session — an RTSP re-dial — so the switch is only affordable at a WIDE
17761
+ * interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
17762
+ * 30 s. A parked car is therefore counted within 5 minutes of a restart.
17763
+ *
17764
+ * Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
17765
+ * the host validates `attachCamera` against ITS copy of this schema, so a
17766
+ * runner asked for 600 would be rejected by the hub until a `@camstack/server`
17767
+ * carrying the wider bound is installed everywhere. 300 is the widest value
17768
+ * that ships with an addon deploy.
17769
+ */
17708
17770
  var occupancyRecheckSecField = {
17709
17771
  min: 0,
17710
17772
  max: 300,
@@ -17906,15 +17968,21 @@ var RunnerCameraConfigSchema = object({
17906
17968
  */
17907
17969
  onboardMotionDrivesAnalyzer: boolean().default(true),
17908
17970
  /**
17909
- * Master toggle for the occupancy re-check. When `false` (DEFAULT) the runner
17910
- * never arms the periodic recheck timer, regardless of `occupancyRecheckSec`
17911
- * this is off by default because the recheck re-subscribes a detection session
17912
- * every N seconds while `watching`, a major source of pull-decoder re-dial
17913
- * churn (each cycle creates+tears a session → RTSP re-dial → latency). The
17971
+ * Master toggle for the occupancy re-check. When `false` the runner never arms
17972
+ * the periodic recheck timer, regardless of `occupancyRecheckSec`; the
17914
17973
  * `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
17915
17974
  * (and only render) when this is enabled.
17975
+ *
17976
+ * DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
17977
+ * recheck re-subscribes a detection session every N seconds while `watching`
17978
+ * — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
17979
+ * pull-decoder churn source. What that bought was a blind spot: a STATIONARY
17980
+ * object is counted only while the stationary registry holds it, and the
17981
+ * registry rebuilds from motion, so after a restart a parked car was invisible
17982
+ * to every occupancy rule until something moved in front of it. The churn is
17983
+ * now paid on the interval instead — see `occupancyRecheckSecField`.
17916
17984
  */
17917
- occupancyRecheckEnabled: boolean().default(false),
17985
+ occupancyRecheckEnabled: boolean().default(true),
17918
17986
  occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
17919
17987
  occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
17920
17988
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-hikvision",
3
- "version": "1.2.19",
3
+ "version": "1.2.20",
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",