@camstack/addon-provider-dreame 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
@@ -63737,11 +63737,33 @@ var NotificationFormatSchema = _enum([
63737
63737
  * Named by INTENT, never by glyph. "check" would tie the vocabulary to one
63738
63738
  * renderer's icon set; "acknowledge" survives an adapter that draws it
63739
63739
  * differently.
63740
+ *
63741
+ * ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
63742
+ *
63743
+ * These names are for US. **No adapter may forward one verbatim.** Each maps
63744
+ * the whole set onto its own renderer's vocabulary through a
63745
+ * `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
63746
+ * fallback, so adding a member here fails every adapter's build until someone
63747
+ * decides its glyph, which is the only place that decision can be made
63748
+ * honestly.
63749
+ *
63750
+ * This paragraph is the bug. Zentik declared `actionIcons: true` and passed
63751
+ * `disarm` straight through; iOS feeds that string to
63752
+ * `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
63753
+ * and every snooze and alarm button arrived BLANK. A pass-through is not a
63754
+ * mapping, and "the field is documented" is not "the value renders".
63755
+ *
63756
+ * Adding a member is TRAIN-BOUND. The enum lives in the published
63757
+ * `@camstack/server` closure and the cap seam validates against the HUB's copy,
63758
+ * so an addon that emits a token the running hub does not know does not lose an
63759
+ * icon — its whole `send` fails Zod validation and the notification never
63760
+ * arrives. Never emit a new token from an addon before the train carrying it.
63740
63761
  */
63741
63762
  var NotificationActionIconSchema = _enum([
63742
63763
  "acknowledge",
63743
63764
  "dismiss",
63744
63765
  "silence",
63766
+ "snooze",
63745
63767
  "view",
63746
63768
  "play",
63747
63769
  "open",
@@ -63749,9 +63771,13 @@ var NotificationActionIconSchema = _enum([
63749
63771
  "lock",
63750
63772
  "unlock",
63751
63773
  "arm",
63774
+ "arm-home",
63775
+ "arm-away",
63776
+ "arm-night",
63752
63777
  "disarm",
63753
63778
  "light",
63754
- "alert"
63779
+ "alert",
63780
+ "camera"
63755
63781
  ]);
63756
63782
  /** A single tap-through action button. */
63757
63783
  var NotificationActionSchema = object({
@@ -63951,6 +63977,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
63951
63977
  targetId: string(),
63952
63978
  enabled: boolean()
63953
63979
  }), _void(), { kind: "mutation" });
63980
+ new Set([
63981
+ {
63982
+ id: "person",
63983
+ name: "Person"
63984
+ },
63985
+ {
63986
+ id: "vehicle",
63987
+ name: "Vehicle"
63988
+ },
63989
+ {
63990
+ id: "animal",
63991
+ name: "Animal"
63992
+ },
63993
+ {
63994
+ id: "package",
63995
+ name: "Package"
63996
+ }
63997
+ ].map((l) => l.id));
63954
63998
  var COCO_TO_MACRO = {
63955
63999
  mapping: {
63956
64000
  person: "person",
@@ -64786,6 +64830,8 @@ var NcSystemEventKindSchema = _enum([
64786
64830
  "alarm-triggered",
64787
64831
  "alarm-armed",
64788
64832
  "alarm-disarmed",
64833
+ "alarm-arming",
64834
+ "alarm-arm-refused",
64789
64835
  "camera-online",
64790
64836
  "camera-offline",
64791
64837
  "camera-disabled",
@@ -68058,6 +68104,22 @@ var detectionFpsField = {
68058
68104
  default: 10,
68059
68105
  step: 1
68060
68106
  };
68107
+ /**
68108
+ * The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
68109
+ *
68110
+ * The recheck is now on by default (a parked car is invisible to occupancy
68111
+ * rules until the stationary registry has been rebuilt by motion, which after a
68112
+ * restart may be never on a quiet camera). Each cycle re-subscribes a detection
68113
+ * session — an RTSP re-dial — so the switch is only affordable at a WIDE
68114
+ * interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
68115
+ * 30 s. A parked car is therefore counted within 5 minutes of a restart.
68116
+ *
68117
+ * Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
68118
+ * the host validates `attachCamera` against ITS copy of this schema, so a
68119
+ * runner asked for 600 would be rejected by the hub until a `@camstack/server`
68120
+ * carrying the wider bound is installed everywhere. 300 is the widest value
68121
+ * that ships with an addon deploy.
68122
+ */
68061
68123
  var occupancyRecheckSecField = {
68062
68124
  min: 0,
68063
68125
  max: 300,
@@ -68259,15 +68321,21 @@ var RunnerCameraConfigSchema = object({
68259
68321
  */
68260
68322
  onboardMotionDrivesAnalyzer: boolean().default(true),
68261
68323
  /**
68262
- * Master toggle for the occupancy re-check. When `false` (DEFAULT) the runner
68263
- * never arms the periodic recheck timer, regardless of `occupancyRecheckSec`
68264
- * this is off by default because the recheck re-subscribes a detection session
68265
- * every N seconds while `watching`, a major source of pull-decoder re-dial
68266
- * churn (each cycle creates+tears a session → RTSP re-dial → latency). The
68324
+ * Master toggle for the occupancy re-check. When `false` the runner never arms
68325
+ * the periodic recheck timer, regardless of `occupancyRecheckSec`; the
68267
68326
  * `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
68268
68327
  * (and only render) when this is enabled.
68269
- */
68270
- occupancyRecheckEnabled: boolean().default(false),
68328
+ *
68329
+ * DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
68330
+ * recheck re-subscribes a detection session every N seconds while `watching`
68331
+ * — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
68332
+ * pull-decoder churn source. What that bought was a blind spot: a STATIONARY
68333
+ * object is counted only while the stationary registry holds it, and the
68334
+ * registry rebuilds from motion, so after a restart a parked car was invisible
68335
+ * to every occupancy rule until something moved in front of it. The churn is
68336
+ * now paid on the interval instead — see `occupancyRecheckSecField`.
68337
+ */
68338
+ occupancyRecheckEnabled: boolean().default(true),
68271
68339
  occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
68272
68340
  occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
68273
68341
  /**
package/dist/addon.mjs CHANGED
@@ -63737,11 +63737,33 @@ var NotificationFormatSchema = _enum([
63737
63737
  * Named by INTENT, never by glyph. "check" would tie the vocabulary to one
63738
63738
  * renderer's icon set; "acknowledge" survives an adapter that draws it
63739
63739
  * differently.
63740
+ *
63741
+ * ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
63742
+ *
63743
+ * These names are for US. **No adapter may forward one verbatim.** Each maps
63744
+ * the whole set onto its own renderer's vocabulary through a
63745
+ * `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
63746
+ * fallback, so adding a member here fails every adapter's build until someone
63747
+ * decides its glyph, which is the only place that decision can be made
63748
+ * honestly.
63749
+ *
63750
+ * This paragraph is the bug. Zentik declared `actionIcons: true` and passed
63751
+ * `disarm` straight through; iOS feeds that string to
63752
+ * `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
63753
+ * and every snooze and alarm button arrived BLANK. A pass-through is not a
63754
+ * mapping, and "the field is documented" is not "the value renders".
63755
+ *
63756
+ * Adding a member is TRAIN-BOUND. The enum lives in the published
63757
+ * `@camstack/server` closure and the cap seam validates against the HUB's copy,
63758
+ * so an addon that emits a token the running hub does not know does not lose an
63759
+ * icon — its whole `send` fails Zod validation and the notification never
63760
+ * arrives. Never emit a new token from an addon before the train carrying it.
63740
63761
  */
63741
63762
  var NotificationActionIconSchema = _enum([
63742
63763
  "acknowledge",
63743
63764
  "dismiss",
63744
63765
  "silence",
63766
+ "snooze",
63745
63767
  "view",
63746
63768
  "play",
63747
63769
  "open",
@@ -63749,9 +63771,13 @@ var NotificationActionIconSchema = _enum([
63749
63771
  "lock",
63750
63772
  "unlock",
63751
63773
  "arm",
63774
+ "arm-home",
63775
+ "arm-away",
63776
+ "arm-night",
63752
63777
  "disarm",
63753
63778
  "light",
63754
- "alert"
63779
+ "alert",
63780
+ "camera"
63755
63781
  ]);
63756
63782
  /** A single tap-through action button. */
63757
63783
  var NotificationActionSchema = object({
@@ -63951,6 +63977,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
63951
63977
  targetId: string(),
63952
63978
  enabled: boolean()
63953
63979
  }), _void(), { kind: "mutation" });
63980
+ new Set([
63981
+ {
63982
+ id: "person",
63983
+ name: "Person"
63984
+ },
63985
+ {
63986
+ id: "vehicle",
63987
+ name: "Vehicle"
63988
+ },
63989
+ {
63990
+ id: "animal",
63991
+ name: "Animal"
63992
+ },
63993
+ {
63994
+ id: "package",
63995
+ name: "Package"
63996
+ }
63997
+ ].map((l) => l.id));
63954
63998
  var COCO_TO_MACRO = {
63955
63999
  mapping: {
63956
64000
  person: "person",
@@ -64786,6 +64830,8 @@ var NcSystemEventKindSchema = _enum([
64786
64830
  "alarm-triggered",
64787
64831
  "alarm-armed",
64788
64832
  "alarm-disarmed",
64833
+ "alarm-arming",
64834
+ "alarm-arm-refused",
64789
64835
  "camera-online",
64790
64836
  "camera-offline",
64791
64837
  "camera-disabled",
@@ -68058,6 +68104,22 @@ var detectionFpsField = {
68058
68104
  default: 10,
68059
68105
  step: 1
68060
68106
  };
68107
+ /**
68108
+ * The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
68109
+ *
68110
+ * The recheck is now on by default (a parked car is invisible to occupancy
68111
+ * rules until the stationary registry has been rebuilt by motion, which after a
68112
+ * restart may be never on a quiet camera). Each cycle re-subscribes a detection
68113
+ * session — an RTSP re-dial — so the switch is only affordable at a WIDE
68114
+ * interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
68115
+ * 30 s. A parked car is therefore counted within 5 minutes of a restart.
68116
+ *
68117
+ * Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
68118
+ * the host validates `attachCamera` against ITS copy of this schema, so a
68119
+ * runner asked for 600 would be rejected by the hub until a `@camstack/server`
68120
+ * carrying the wider bound is installed everywhere. 300 is the widest value
68121
+ * that ships with an addon deploy.
68122
+ */
68061
68123
  var occupancyRecheckSecField = {
68062
68124
  min: 0,
68063
68125
  max: 300,
@@ -68259,15 +68321,21 @@ var RunnerCameraConfigSchema = object({
68259
68321
  */
68260
68322
  onboardMotionDrivesAnalyzer: boolean().default(true),
68261
68323
  /**
68262
- * Master toggle for the occupancy re-check. When `false` (DEFAULT) the runner
68263
- * never arms the periodic recheck timer, regardless of `occupancyRecheckSec`
68264
- * this is off by default because the recheck re-subscribes a detection session
68265
- * every N seconds while `watching`, a major source of pull-decoder re-dial
68266
- * churn (each cycle creates+tears a session → RTSP re-dial → latency). The
68324
+ * Master toggle for the occupancy re-check. When `false` the runner never arms
68325
+ * the periodic recheck timer, regardless of `occupancyRecheckSec`; the
68267
68326
  * `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
68268
68327
  * (and only render) when this is enabled.
68269
- */
68270
- occupancyRecheckEnabled: boolean().default(false),
68328
+ *
68329
+ * DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
68330
+ * recheck re-subscribes a detection session every N seconds while `watching`
68331
+ * — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
68332
+ * pull-decoder churn source. What that bought was a blind spot: a STATIONARY
68333
+ * object is counted only while the stationary registry holds it, and the
68334
+ * registry rebuilds from motion, so after a restart a parked car was invisible
68335
+ * to every occupancy rule until something moved in front of it. The churn is
68336
+ * now paid on the interval instead — see `occupancyRecheckSecField`.
68337
+ */
68338
+ occupancyRecheckEnabled: boolean().default(true),
68271
68339
  occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
68272
68340
  occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
68273
68341
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-dreame",
3
- "version": "0.2.16",
3
+ "version": "0.2.17",
4
4
  "description": "Dreame robot-vacuum / lawn-mower device-provider addon for CamStack — wraps the @apocaliss92/nodedreame Dreamehome cloud client",
5
5
  "keywords": [
6
6
  "camstack",