@camstack/addon-provider-amcrest 0.2.17 → 0.2.18

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
@@ -13194,11 +13194,33 @@ var NotificationFormatSchema = _enum([
13194
13194
  * Named by INTENT, never by glyph. "check" would tie the vocabulary to one
13195
13195
  * renderer's icon set; "acknowledge" survives an adapter that draws it
13196
13196
  * differently.
13197
+ *
13198
+ * ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
13199
+ *
13200
+ * These names are for US. **No adapter may forward one verbatim.** Each maps
13201
+ * the whole set onto its own renderer's vocabulary through a
13202
+ * `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
13203
+ * fallback, so adding a member here fails every adapter's build until someone
13204
+ * decides its glyph, which is the only place that decision can be made
13205
+ * honestly.
13206
+ *
13207
+ * This paragraph is the bug. Zentik declared `actionIcons: true` and passed
13208
+ * `disarm` straight through; iOS feeds that string to
13209
+ * `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
13210
+ * and every snooze and alarm button arrived BLANK. A pass-through is not a
13211
+ * mapping, and "the field is documented" is not "the value renders".
13212
+ *
13213
+ * Adding a member is TRAIN-BOUND. The enum lives in the published
13214
+ * `@camstack/server` closure and the cap seam validates against the HUB's copy,
13215
+ * so an addon that emits a token the running hub does not know does not lose an
13216
+ * icon — its whole `send` fails Zod validation and the notification never
13217
+ * arrives. Never emit a new token from an addon before the train carrying it.
13197
13218
  */
13198
13219
  var NotificationActionIconSchema = _enum([
13199
13220
  "acknowledge",
13200
13221
  "dismiss",
13201
13222
  "silence",
13223
+ "snooze",
13202
13224
  "view",
13203
13225
  "play",
13204
13226
  "open",
@@ -13206,9 +13228,13 @@ var NotificationActionIconSchema = _enum([
13206
13228
  "lock",
13207
13229
  "unlock",
13208
13230
  "arm",
13231
+ "arm-home",
13232
+ "arm-away",
13233
+ "arm-night",
13209
13234
  "disarm",
13210
13235
  "light",
13211
- "alert"
13236
+ "alert",
13237
+ "camera"
13212
13238
  ]);
13213
13239
  /** A single tap-through action button. */
13214
13240
  var NotificationActionSchema = object({
@@ -13408,6 +13434,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
13408
13434
  targetId: string(),
13409
13435
  enabled: boolean()
13410
13436
  }), _void(), { kind: "mutation" });
13437
+ new Set([
13438
+ {
13439
+ id: "person",
13440
+ name: "Person"
13441
+ },
13442
+ {
13443
+ id: "vehicle",
13444
+ name: "Vehicle"
13445
+ },
13446
+ {
13447
+ id: "animal",
13448
+ name: "Animal"
13449
+ },
13450
+ {
13451
+ id: "package",
13452
+ name: "Package"
13453
+ }
13454
+ ].map((l) => l.id));
13411
13455
  var COCO_TO_MACRO = {
13412
13456
  mapping: {
13413
13457
  person: "person",
@@ -14243,6 +14287,8 @@ var NcSystemEventKindSchema = _enum([
14243
14287
  "alarm-triggered",
14244
14288
  "alarm-armed",
14245
14289
  "alarm-disarmed",
14290
+ "alarm-arming",
14291
+ "alarm-arm-refused",
14246
14292
  "camera-online",
14247
14293
  "camera-offline",
14248
14294
  "camera-disabled",
@@ -17515,6 +17561,22 @@ var detectionFpsField = {
17515
17561
  default: 10,
17516
17562
  step: 1
17517
17563
  };
17564
+ /**
17565
+ * The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
17566
+ *
17567
+ * The recheck is now on by default (a parked car is invisible to occupancy
17568
+ * rules until the stationary registry has been rebuilt by motion, which after a
17569
+ * restart may be never on a quiet camera). Each cycle re-subscribes a detection
17570
+ * session — an RTSP re-dial — so the switch is only affordable at a WIDE
17571
+ * interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
17572
+ * 30 s. A parked car is therefore counted within 5 minutes of a restart.
17573
+ *
17574
+ * Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
17575
+ * the host validates `attachCamera` against ITS copy of this schema, so a
17576
+ * runner asked for 600 would be rejected by the hub until a `@camstack/server`
17577
+ * carrying the wider bound is installed everywhere. 300 is the widest value
17578
+ * that ships with an addon deploy.
17579
+ */
17518
17580
  var occupancyRecheckSecField = {
17519
17581
  min: 0,
17520
17582
  max: 300,
@@ -17716,15 +17778,21 @@ var RunnerCameraConfigSchema = object({
17716
17778
  */
17717
17779
  onboardMotionDrivesAnalyzer: boolean().default(true),
17718
17780
  /**
17719
- * Master toggle for the occupancy re-check. When `false` (DEFAULT) the runner
17720
- * never arms the periodic recheck timer, regardless of `occupancyRecheckSec`
17721
- * this is off by default because the recheck re-subscribes a detection session
17722
- * every N seconds while `watching`, a major source of pull-decoder re-dial
17723
- * churn (each cycle creates+tears a session → RTSP re-dial → latency). The
17781
+ * Master toggle for the occupancy re-check. When `false` the runner never arms
17782
+ * the periodic recheck timer, regardless of `occupancyRecheckSec`; the
17724
17783
  * `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
17725
17784
  * (and only render) when this is enabled.
17726
- */
17727
- occupancyRecheckEnabled: boolean().default(false),
17785
+ *
17786
+ * DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
17787
+ * recheck re-subscribes a detection session every N seconds while `watching`
17788
+ * — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
17789
+ * pull-decoder churn source. What that bought was a blind spot: a STATIONARY
17790
+ * object is counted only while the stationary registry holds it, and the
17791
+ * registry rebuilds from motion, so after a restart a parked car was invisible
17792
+ * to every occupancy rule until something moved in front of it. The churn is
17793
+ * now paid on the interval instead — see `occupancyRecheckSecField`.
17794
+ */
17795
+ occupancyRecheckEnabled: boolean().default(true),
17728
17796
  occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
17729
17797
  occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
17730
17798
  /**
package/dist/addon.mjs CHANGED
@@ -13195,11 +13195,33 @@ var NotificationFormatSchema = _enum([
13195
13195
  * Named by INTENT, never by glyph. "check" would tie the vocabulary to one
13196
13196
  * renderer's icon set; "acknowledge" survives an adapter that draws it
13197
13197
  * differently.
13198
+ *
13199
+ * ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
13200
+ *
13201
+ * These names are for US. **No adapter may forward one verbatim.** Each maps
13202
+ * the whole set onto its own renderer's vocabulary through a
13203
+ * `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
13204
+ * fallback, so adding a member here fails every adapter's build until someone
13205
+ * decides its glyph, which is the only place that decision can be made
13206
+ * honestly.
13207
+ *
13208
+ * This paragraph is the bug. Zentik declared `actionIcons: true` and passed
13209
+ * `disarm` straight through; iOS feeds that string to
13210
+ * `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
13211
+ * and every snooze and alarm button arrived BLANK. A pass-through is not a
13212
+ * mapping, and "the field is documented" is not "the value renders".
13213
+ *
13214
+ * Adding a member is TRAIN-BOUND. The enum lives in the published
13215
+ * `@camstack/server` closure and the cap seam validates against the HUB's copy,
13216
+ * so an addon that emits a token the running hub does not know does not lose an
13217
+ * icon — its whole `send` fails Zod validation and the notification never
13218
+ * arrives. Never emit a new token from an addon before the train carrying it.
13198
13219
  */
13199
13220
  var NotificationActionIconSchema = _enum([
13200
13221
  "acknowledge",
13201
13222
  "dismiss",
13202
13223
  "silence",
13224
+ "snooze",
13203
13225
  "view",
13204
13226
  "play",
13205
13227
  "open",
@@ -13207,9 +13229,13 @@ var NotificationActionIconSchema = _enum([
13207
13229
  "lock",
13208
13230
  "unlock",
13209
13231
  "arm",
13232
+ "arm-home",
13233
+ "arm-away",
13234
+ "arm-night",
13210
13235
  "disarm",
13211
13236
  "light",
13212
- "alert"
13237
+ "alert",
13238
+ "camera"
13213
13239
  ]);
13214
13240
  /** A single tap-through action button. */
13215
13241
  var NotificationActionSchema = object({
@@ -13409,6 +13435,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
13409
13435
  targetId: string(),
13410
13436
  enabled: boolean()
13411
13437
  }), _void(), { kind: "mutation" });
13438
+ new Set([
13439
+ {
13440
+ id: "person",
13441
+ name: "Person"
13442
+ },
13443
+ {
13444
+ id: "vehicle",
13445
+ name: "Vehicle"
13446
+ },
13447
+ {
13448
+ id: "animal",
13449
+ name: "Animal"
13450
+ },
13451
+ {
13452
+ id: "package",
13453
+ name: "Package"
13454
+ }
13455
+ ].map((l) => l.id));
13412
13456
  var COCO_TO_MACRO = {
13413
13457
  mapping: {
13414
13458
  person: "person",
@@ -14244,6 +14288,8 @@ var NcSystemEventKindSchema = _enum([
14244
14288
  "alarm-triggered",
14245
14289
  "alarm-armed",
14246
14290
  "alarm-disarmed",
14291
+ "alarm-arming",
14292
+ "alarm-arm-refused",
14247
14293
  "camera-online",
14248
14294
  "camera-offline",
14249
14295
  "camera-disabled",
@@ -17516,6 +17562,22 @@ var detectionFpsField = {
17516
17562
  default: 10,
17517
17563
  step: 1
17518
17564
  };
17565
+ /**
17566
+ * The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
17567
+ *
17568
+ * The recheck is now on by default (a parked car is invisible to occupancy
17569
+ * rules until the stationary registry has been rebuilt by motion, which after a
17570
+ * restart may be never on a quiet camera). Each cycle re-subscribes a detection
17571
+ * session — an RTSP re-dial — so the switch is only affordable at a WIDE
17572
+ * interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
17573
+ * 30 s. A parked car is therefore counted within 5 minutes of a restart.
17574
+ *
17575
+ * Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
17576
+ * the host validates `attachCamera` against ITS copy of this schema, so a
17577
+ * runner asked for 600 would be rejected by the hub until a `@camstack/server`
17578
+ * carrying the wider bound is installed everywhere. 300 is the widest value
17579
+ * that ships with an addon deploy.
17580
+ */
17519
17581
  var occupancyRecheckSecField = {
17520
17582
  min: 0,
17521
17583
  max: 300,
@@ -17717,15 +17779,21 @@ var RunnerCameraConfigSchema = object({
17717
17779
  */
17718
17780
  onboardMotionDrivesAnalyzer: boolean().default(true),
17719
17781
  /**
17720
- * Master toggle for the occupancy re-check. When `false` (DEFAULT) the runner
17721
- * never arms the periodic recheck timer, regardless of `occupancyRecheckSec`
17722
- * this is off by default because the recheck re-subscribes a detection session
17723
- * every N seconds while `watching`, a major source of pull-decoder re-dial
17724
- * churn (each cycle creates+tears a session → RTSP re-dial → latency). The
17782
+ * Master toggle for the occupancy re-check. When `false` the runner never arms
17783
+ * the periodic recheck timer, regardless of `occupancyRecheckSec`; the
17725
17784
  * `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
17726
17785
  * (and only render) when this is enabled.
17727
- */
17728
- occupancyRecheckEnabled: boolean().default(false),
17786
+ *
17787
+ * DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
17788
+ * recheck re-subscribes a detection session every N seconds while `watching`
17789
+ * — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
17790
+ * pull-decoder churn source. What that bought was a blind spot: a STATIONARY
17791
+ * object is counted only while the stationary registry holds it, and the
17792
+ * registry rebuilds from motion, so after a restart a parked car was invisible
17793
+ * to every occupancy rule until something moved in front of it. The churn is
17794
+ * now paid on the interval instead — see `occupancyRecheckSecField`.
17795
+ */
17796
+ occupancyRecheckEnabled: boolean().default(true),
17729
17797
  occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
17730
17798
  occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
17731
17799
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-amcrest",
3
- "version": "0.2.17",
3
+ "version": "0.2.18",
4
4
  "description": "Amcrest/Dahua camera device provider addon for CamStack — Dahua CGI over HTTP(S) with digest auth (snapshot, RTSP catalog, PTZ, image/day-night config)",
5
5
  "keywords": [
6
6
  "camstack",