@camstack/addon-provider-dreo 0.2.16 → 0.2.17

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
@@ -13254,11 +13254,33 @@ var NotificationFormatSchema = _enum([
13254
13254
  * Named by INTENT, never by glyph. "check" would tie the vocabulary to one
13255
13255
  * renderer's icon set; "acknowledge" survives an adapter that draws it
13256
13256
  * differently.
13257
+ *
13258
+ * ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
13259
+ *
13260
+ * These names are for US. **No adapter may forward one verbatim.** Each maps
13261
+ * the whole set onto its own renderer's vocabulary through a
13262
+ * `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
13263
+ * fallback, so adding a member here fails every adapter's build until someone
13264
+ * decides its glyph, which is the only place that decision can be made
13265
+ * honestly.
13266
+ *
13267
+ * This paragraph is the bug. Zentik declared `actionIcons: true` and passed
13268
+ * `disarm` straight through; iOS feeds that string to
13269
+ * `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
13270
+ * and every snooze and alarm button arrived BLANK. A pass-through is not a
13271
+ * mapping, and "the field is documented" is not "the value renders".
13272
+ *
13273
+ * Adding a member is TRAIN-BOUND. The enum lives in the published
13274
+ * `@camstack/server` closure and the cap seam validates against the HUB's copy,
13275
+ * so an addon that emits a token the running hub does not know does not lose an
13276
+ * icon — its whole `send` fails Zod validation and the notification never
13277
+ * arrives. Never emit a new token from an addon before the train carrying it.
13257
13278
  */
13258
13279
  var NotificationActionIconSchema = _enum([
13259
13280
  "acknowledge",
13260
13281
  "dismiss",
13261
13282
  "silence",
13283
+ "snooze",
13262
13284
  "view",
13263
13285
  "play",
13264
13286
  "open",
@@ -13266,9 +13288,13 @@ var NotificationActionIconSchema = _enum([
13266
13288
  "lock",
13267
13289
  "unlock",
13268
13290
  "arm",
13291
+ "arm-home",
13292
+ "arm-away",
13293
+ "arm-night",
13269
13294
  "disarm",
13270
13295
  "light",
13271
- "alert"
13296
+ "alert",
13297
+ "camera"
13272
13298
  ]);
13273
13299
  /** A single tap-through action button. */
13274
13300
  var NotificationActionSchema = object({
@@ -13468,6 +13494,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
13468
13494
  targetId: string(),
13469
13495
  enabled: boolean()
13470
13496
  }), _void(), { kind: "mutation" });
13497
+ new Set([
13498
+ {
13499
+ id: "person",
13500
+ name: "Person"
13501
+ },
13502
+ {
13503
+ id: "vehicle",
13504
+ name: "Vehicle"
13505
+ },
13506
+ {
13507
+ id: "animal",
13508
+ name: "Animal"
13509
+ },
13510
+ {
13511
+ id: "package",
13512
+ name: "Package"
13513
+ }
13514
+ ].map((l) => l.id));
13471
13515
  var COCO_TO_MACRO = {
13472
13516
  mapping: {
13473
13517
  person: "person",
@@ -14303,6 +14347,8 @@ var NcSystemEventKindSchema = _enum([
14303
14347
  "alarm-triggered",
14304
14348
  "alarm-armed",
14305
14349
  "alarm-disarmed",
14350
+ "alarm-arming",
14351
+ "alarm-arm-refused",
14306
14352
  "camera-online",
14307
14353
  "camera-offline",
14308
14354
  "camera-disabled",
@@ -17575,6 +17621,22 @@ var detectionFpsField = {
17575
17621
  default: 10,
17576
17622
  step: 1
17577
17623
  };
17624
+ /**
17625
+ * The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
17626
+ *
17627
+ * The recheck is now on by default (a parked car is invisible to occupancy
17628
+ * rules until the stationary registry has been rebuilt by motion, which after a
17629
+ * restart may be never on a quiet camera). Each cycle re-subscribes a detection
17630
+ * session — an RTSP re-dial — so the switch is only affordable at a WIDE
17631
+ * interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
17632
+ * 30 s. A parked car is therefore counted within 5 minutes of a restart.
17633
+ *
17634
+ * Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
17635
+ * the host validates `attachCamera` against ITS copy of this schema, so a
17636
+ * runner asked for 600 would be rejected by the hub until a `@camstack/server`
17637
+ * carrying the wider bound is installed everywhere. 300 is the widest value
17638
+ * that ships with an addon deploy.
17639
+ */
17578
17640
  var occupancyRecheckSecField = {
17579
17641
  min: 0,
17580
17642
  max: 300,
@@ -17776,15 +17838,21 @@ var RunnerCameraConfigSchema = object({
17776
17838
  */
17777
17839
  onboardMotionDrivesAnalyzer: boolean().default(true),
17778
17840
  /**
17779
- * Master toggle for the occupancy re-check. When `false` (DEFAULT) the runner
17780
- * never arms the periodic recheck timer, regardless of `occupancyRecheckSec`
17781
- * this is off by default because the recheck re-subscribes a detection session
17782
- * every N seconds while `watching`, a major source of pull-decoder re-dial
17783
- * churn (each cycle creates+tears a session → RTSP re-dial → latency). The
17841
+ * Master toggle for the occupancy re-check. When `false` the runner never arms
17842
+ * the periodic recheck timer, regardless of `occupancyRecheckSec`; the
17784
17843
  * `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
17785
17844
  * (and only render) when this is enabled.
17845
+ *
17846
+ * DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
17847
+ * recheck re-subscribes a detection session every N seconds while `watching`
17848
+ * — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
17849
+ * pull-decoder churn source. What that bought was a blind spot: a STATIONARY
17850
+ * object is counted only while the stationary registry holds it, and the
17851
+ * registry rebuilds from motion, so after a restart a parked car was invisible
17852
+ * to every occupancy rule until something moved in front of it. The churn is
17853
+ * now paid on the interval instead — see `occupancyRecheckSecField`.
17786
17854
  */
17787
- occupancyRecheckEnabled: boolean().default(false),
17855
+ occupancyRecheckEnabled: boolean().default(true),
17788
17856
  occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
17789
17857
  occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
17790
17858
  /**
package/dist/addon.mjs CHANGED
@@ -13255,11 +13255,33 @@ var NotificationFormatSchema = _enum([
13255
13255
  * Named by INTENT, never by glyph. "check" would tie the vocabulary to one
13256
13256
  * renderer's icon set; "acknowledge" survives an adapter that draws it
13257
13257
  * differently.
13258
+ *
13259
+ * ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
13260
+ *
13261
+ * These names are for US. **No adapter may forward one verbatim.** Each maps
13262
+ * the whole set onto its own renderer's vocabulary through a
13263
+ * `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
13264
+ * fallback, so adding a member here fails every adapter's build until someone
13265
+ * decides its glyph, which is the only place that decision can be made
13266
+ * honestly.
13267
+ *
13268
+ * This paragraph is the bug. Zentik declared `actionIcons: true` and passed
13269
+ * `disarm` straight through; iOS feeds that string to
13270
+ * `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
13271
+ * and every snooze and alarm button arrived BLANK. A pass-through is not a
13272
+ * mapping, and "the field is documented" is not "the value renders".
13273
+ *
13274
+ * Adding a member is TRAIN-BOUND. The enum lives in the published
13275
+ * `@camstack/server` closure and the cap seam validates against the HUB's copy,
13276
+ * so an addon that emits a token the running hub does not know does not lose an
13277
+ * icon — its whole `send` fails Zod validation and the notification never
13278
+ * arrives. Never emit a new token from an addon before the train carrying it.
13258
13279
  */
13259
13280
  var NotificationActionIconSchema = _enum([
13260
13281
  "acknowledge",
13261
13282
  "dismiss",
13262
13283
  "silence",
13284
+ "snooze",
13263
13285
  "view",
13264
13286
  "play",
13265
13287
  "open",
@@ -13267,9 +13289,13 @@ var NotificationActionIconSchema = _enum([
13267
13289
  "lock",
13268
13290
  "unlock",
13269
13291
  "arm",
13292
+ "arm-home",
13293
+ "arm-away",
13294
+ "arm-night",
13270
13295
  "disarm",
13271
13296
  "light",
13272
- "alert"
13297
+ "alert",
13298
+ "camera"
13273
13299
  ]);
13274
13300
  /** A single tap-through action button. */
13275
13301
  var NotificationActionSchema = object({
@@ -13469,6 +13495,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
13469
13495
  targetId: string(),
13470
13496
  enabled: boolean()
13471
13497
  }), _void(), { kind: "mutation" });
13498
+ new Set([
13499
+ {
13500
+ id: "person",
13501
+ name: "Person"
13502
+ },
13503
+ {
13504
+ id: "vehicle",
13505
+ name: "Vehicle"
13506
+ },
13507
+ {
13508
+ id: "animal",
13509
+ name: "Animal"
13510
+ },
13511
+ {
13512
+ id: "package",
13513
+ name: "Package"
13514
+ }
13515
+ ].map((l) => l.id));
13472
13516
  var COCO_TO_MACRO = {
13473
13517
  mapping: {
13474
13518
  person: "person",
@@ -14304,6 +14348,8 @@ var NcSystemEventKindSchema = _enum([
14304
14348
  "alarm-triggered",
14305
14349
  "alarm-armed",
14306
14350
  "alarm-disarmed",
14351
+ "alarm-arming",
14352
+ "alarm-arm-refused",
14307
14353
  "camera-online",
14308
14354
  "camera-offline",
14309
14355
  "camera-disabled",
@@ -17576,6 +17622,22 @@ var detectionFpsField = {
17576
17622
  default: 10,
17577
17623
  step: 1
17578
17624
  };
17625
+ /**
17626
+ * The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
17627
+ *
17628
+ * The recheck is now on by default (a parked car is invisible to occupancy
17629
+ * rules until the stationary registry has been rebuilt by motion, which after a
17630
+ * restart may be never on a quiet camera). Each cycle re-subscribes a detection
17631
+ * session — an RTSP re-dial — so the switch is only affordable at a WIDE
17632
+ * interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
17633
+ * 30 s. A parked car is therefore counted within 5 minutes of a restart.
17634
+ *
17635
+ * Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
17636
+ * the host validates `attachCamera` against ITS copy of this schema, so a
17637
+ * runner asked for 600 would be rejected by the hub until a `@camstack/server`
17638
+ * carrying the wider bound is installed everywhere. 300 is the widest value
17639
+ * that ships with an addon deploy.
17640
+ */
17579
17641
  var occupancyRecheckSecField = {
17580
17642
  min: 0,
17581
17643
  max: 300,
@@ -17777,15 +17839,21 @@ var RunnerCameraConfigSchema = object({
17777
17839
  */
17778
17840
  onboardMotionDrivesAnalyzer: boolean().default(true),
17779
17841
  /**
17780
- * Master toggle for the occupancy re-check. When `false` (DEFAULT) the runner
17781
- * never arms the periodic recheck timer, regardless of `occupancyRecheckSec`
17782
- * this is off by default because the recheck re-subscribes a detection session
17783
- * every N seconds while `watching`, a major source of pull-decoder re-dial
17784
- * churn (each cycle creates+tears a session → RTSP re-dial → latency). The
17842
+ * Master toggle for the occupancy re-check. When `false` the runner never arms
17843
+ * the periodic recheck timer, regardless of `occupancyRecheckSec`; the
17785
17844
  * `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
17786
17845
  * (and only render) when this is enabled.
17846
+ *
17847
+ * DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
17848
+ * recheck re-subscribes a detection session every N seconds while `watching`
17849
+ * — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
17850
+ * pull-decoder churn source. What that bought was a blind spot: a STATIONARY
17851
+ * object is counted only while the stationary registry holds it, and the
17852
+ * registry rebuilds from motion, so after a restart a parked car was invisible
17853
+ * to every occupancy rule until something moved in front of it. The churn is
17854
+ * now paid on the interval instead — see `occupancyRecheckSecField`.
17787
17855
  */
17788
- occupancyRecheckEnabled: boolean().default(false),
17856
+ occupancyRecheckEnabled: boolean().default(true),
17789
17857
  occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
17790
17858
  occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
17791
17859
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-dreo",
3
- "version": "0.2.16",
3
+ "version": "0.2.17",
4
4
  "description": "Dreo smart-device (fan / air-circulator / purifier / heater / humidifier) device-provider addon for CamStack — wraps the @apocaliss92/nodedreo Dreo cloud client (REST + WebSocket)",
5
5
  "keywords": [
6
6
  "camstack",