@camstack/addon-mqtt-broker 1.2.16 → 1.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.
@@ -13034,11 +13034,33 @@ var NotificationFormatSchema = _enum([
13034
13034
  * Named by INTENT, never by glyph. "check" would tie the vocabulary to one
13035
13035
  * renderer's icon set; "acknowledge" survives an adapter that draws it
13036
13036
  * differently.
13037
+ *
13038
+ * ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
13039
+ *
13040
+ * These names are for US. **No adapter may forward one verbatim.** Each maps
13041
+ * the whole set onto its own renderer's vocabulary through a
13042
+ * `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
13043
+ * fallback, so adding a member here fails every adapter's build until someone
13044
+ * decides its glyph, which is the only place that decision can be made
13045
+ * honestly.
13046
+ *
13047
+ * This paragraph is the bug. Zentik declared `actionIcons: true` and passed
13048
+ * `disarm` straight through; iOS feeds that string to
13049
+ * `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
13050
+ * and every snooze and alarm button arrived BLANK. A pass-through is not a
13051
+ * mapping, and "the field is documented" is not "the value renders".
13052
+ *
13053
+ * Adding a member is TRAIN-BOUND. The enum lives in the published
13054
+ * `@camstack/server` closure and the cap seam validates against the HUB's copy,
13055
+ * so an addon that emits a token the running hub does not know does not lose an
13056
+ * icon — its whole `send` fails Zod validation and the notification never
13057
+ * arrives. Never emit a new token from an addon before the train carrying it.
13037
13058
  */
13038
13059
  var NotificationActionIconSchema = _enum([
13039
13060
  "acknowledge",
13040
13061
  "dismiss",
13041
13062
  "silence",
13063
+ "snooze",
13042
13064
  "view",
13043
13065
  "play",
13044
13066
  "open",
@@ -13046,9 +13068,13 @@ var NotificationActionIconSchema = _enum([
13046
13068
  "lock",
13047
13069
  "unlock",
13048
13070
  "arm",
13071
+ "arm-home",
13072
+ "arm-away",
13073
+ "arm-night",
13049
13074
  "disarm",
13050
13075
  "light",
13051
- "alert"
13076
+ "alert",
13077
+ "camera"
13052
13078
  ]);
13053
13079
  /** A single tap-through action button. */
13054
13080
  var NotificationActionSchema = object({
@@ -13248,6 +13274,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
13248
13274
  targetId: string(),
13249
13275
  enabled: boolean()
13250
13276
  }), _void(), { kind: "mutation" });
13277
+ new Set([
13278
+ {
13279
+ id: "person",
13280
+ name: "Person"
13281
+ },
13282
+ {
13283
+ id: "vehicle",
13284
+ name: "Vehicle"
13285
+ },
13286
+ {
13287
+ id: "animal",
13288
+ name: "Animal"
13289
+ },
13290
+ {
13291
+ id: "package",
13292
+ name: "Package"
13293
+ }
13294
+ ].map((l) => l.id));
13251
13295
  var COCO_TO_MACRO = {
13252
13296
  mapping: {
13253
13297
  person: "person",
@@ -14045,6 +14089,8 @@ var NcSystemEventKindSchema = _enum([
14045
14089
  "alarm-triggered",
14046
14090
  "alarm-armed",
14047
14091
  "alarm-disarmed",
14092
+ "alarm-arming",
14093
+ "alarm-arm-refused",
14048
14094
  "camera-online",
14049
14095
  "camera-offline",
14050
14096
  "camera-disabled",
@@ -17277,6 +17323,22 @@ var detectionFpsField = {
17277
17323
  default: 10,
17278
17324
  step: 1
17279
17325
  };
17326
+ /**
17327
+ * The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
17328
+ *
17329
+ * The recheck is now on by default (a parked car is invisible to occupancy
17330
+ * rules until the stationary registry has been rebuilt by motion, which after a
17331
+ * restart may be never on a quiet camera). Each cycle re-subscribes a detection
17332
+ * session — an RTSP re-dial — so the switch is only affordable at a WIDE
17333
+ * interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
17334
+ * 30 s. A parked car is therefore counted within 5 minutes of a restart.
17335
+ *
17336
+ * Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
17337
+ * the host validates `attachCamera` against ITS copy of this schema, so a
17338
+ * runner asked for 600 would be rejected by the hub until a `@camstack/server`
17339
+ * carrying the wider bound is installed everywhere. 300 is the widest value
17340
+ * that ships with an addon deploy.
17341
+ */
17280
17342
  var occupancyRecheckSecField = {
17281
17343
  min: 0,
17282
17344
  max: 300,
@@ -17478,15 +17540,21 @@ var RunnerCameraConfigSchema = object({
17478
17540
  */
17479
17541
  onboardMotionDrivesAnalyzer: boolean().default(true),
17480
17542
  /**
17481
- * Master toggle for the occupancy re-check. When `false` (DEFAULT) the runner
17482
- * never arms the periodic recheck timer, regardless of `occupancyRecheckSec`
17483
- * this is off by default because the recheck re-subscribes a detection session
17484
- * every N seconds while `watching`, a major source of pull-decoder re-dial
17485
- * churn (each cycle creates+tears a session → RTSP re-dial → latency). The
17543
+ * Master toggle for the occupancy re-check. When `false` the runner never arms
17544
+ * the periodic recheck timer, regardless of `occupancyRecheckSec`; the
17486
17545
  * `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
17487
17546
  * (and only render) when this is enabled.
17488
- */
17489
- occupancyRecheckEnabled: boolean().default(false),
17547
+ *
17548
+ * DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
17549
+ * recheck re-subscribes a detection session every N seconds while `watching`
17550
+ * — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
17551
+ * pull-decoder churn source. What that bought was a blind spot: a STATIONARY
17552
+ * object is counted only while the stationary registry holds it, and the
17553
+ * registry rebuilds from motion, so after a restart a parked car was invisible
17554
+ * to every occupancy rule until something moved in front of it. The churn is
17555
+ * now paid on the interval instead — see `occupancyRecheckSecField`.
17556
+ */
17557
+ occupancyRecheckEnabled: boolean().default(true),
17490
17558
  occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
17491
17559
  occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
17492
17560
  /**
@@ -13029,11 +13029,33 @@ var NotificationFormatSchema = _enum([
13029
13029
  * Named by INTENT, never by glyph. "check" would tie the vocabulary to one
13030
13030
  * renderer's icon set; "acknowledge" survives an adapter that draws it
13031
13031
  * differently.
13032
+ *
13033
+ * ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
13034
+ *
13035
+ * These names are for US. **No adapter may forward one verbatim.** Each maps
13036
+ * the whole set onto its own renderer's vocabulary through a
13037
+ * `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
13038
+ * fallback, so adding a member here fails every adapter's build until someone
13039
+ * decides its glyph, which is the only place that decision can be made
13040
+ * honestly.
13041
+ *
13042
+ * This paragraph is the bug. Zentik declared `actionIcons: true` and passed
13043
+ * `disarm` straight through; iOS feeds that string to
13044
+ * `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
13045
+ * and every snooze and alarm button arrived BLANK. A pass-through is not a
13046
+ * mapping, and "the field is documented" is not "the value renders".
13047
+ *
13048
+ * Adding a member is TRAIN-BOUND. The enum lives in the published
13049
+ * `@camstack/server` closure and the cap seam validates against the HUB's copy,
13050
+ * so an addon that emits a token the running hub does not know does not lose an
13051
+ * icon — its whole `send` fails Zod validation and the notification never
13052
+ * arrives. Never emit a new token from an addon before the train carrying it.
13032
13053
  */
13033
13054
  var NotificationActionIconSchema = _enum([
13034
13055
  "acknowledge",
13035
13056
  "dismiss",
13036
13057
  "silence",
13058
+ "snooze",
13037
13059
  "view",
13038
13060
  "play",
13039
13061
  "open",
@@ -13041,9 +13063,13 @@ var NotificationActionIconSchema = _enum([
13041
13063
  "lock",
13042
13064
  "unlock",
13043
13065
  "arm",
13066
+ "arm-home",
13067
+ "arm-away",
13068
+ "arm-night",
13044
13069
  "disarm",
13045
13070
  "light",
13046
- "alert"
13071
+ "alert",
13072
+ "camera"
13047
13073
  ]);
13048
13074
  /** A single tap-through action button. */
13049
13075
  var NotificationActionSchema = object({
@@ -13243,6 +13269,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
13243
13269
  targetId: string(),
13244
13270
  enabled: boolean()
13245
13271
  }), _void(), { kind: "mutation" });
13272
+ new Set([
13273
+ {
13274
+ id: "person",
13275
+ name: "Person"
13276
+ },
13277
+ {
13278
+ id: "vehicle",
13279
+ name: "Vehicle"
13280
+ },
13281
+ {
13282
+ id: "animal",
13283
+ name: "Animal"
13284
+ },
13285
+ {
13286
+ id: "package",
13287
+ name: "Package"
13288
+ }
13289
+ ].map((l) => l.id));
13246
13290
  var COCO_TO_MACRO = {
13247
13291
  mapping: {
13248
13292
  person: "person",
@@ -14040,6 +14084,8 @@ var NcSystemEventKindSchema = _enum([
14040
14084
  "alarm-triggered",
14041
14085
  "alarm-armed",
14042
14086
  "alarm-disarmed",
14087
+ "alarm-arming",
14088
+ "alarm-arm-refused",
14043
14089
  "camera-online",
14044
14090
  "camera-offline",
14045
14091
  "camera-disabled",
@@ -17272,6 +17318,22 @@ var detectionFpsField = {
17272
17318
  default: 10,
17273
17319
  step: 1
17274
17320
  };
17321
+ /**
17322
+ * The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
17323
+ *
17324
+ * The recheck is now on by default (a parked car is invisible to occupancy
17325
+ * rules until the stationary registry has been rebuilt by motion, which after a
17326
+ * restart may be never on a quiet camera). Each cycle re-subscribes a detection
17327
+ * session — an RTSP re-dial — so the switch is only affordable at a WIDE
17328
+ * interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
17329
+ * 30 s. A parked car is therefore counted within 5 minutes of a restart.
17330
+ *
17331
+ * Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
17332
+ * the host validates `attachCamera` against ITS copy of this schema, so a
17333
+ * runner asked for 600 would be rejected by the hub until a `@camstack/server`
17334
+ * carrying the wider bound is installed everywhere. 300 is the widest value
17335
+ * that ships with an addon deploy.
17336
+ */
17275
17337
  var occupancyRecheckSecField = {
17276
17338
  min: 0,
17277
17339
  max: 300,
@@ -17473,15 +17535,21 @@ var RunnerCameraConfigSchema = object({
17473
17535
  */
17474
17536
  onboardMotionDrivesAnalyzer: boolean().default(true),
17475
17537
  /**
17476
- * Master toggle for the occupancy re-check. When `false` (DEFAULT) the runner
17477
- * never arms the periodic recheck timer, regardless of `occupancyRecheckSec`
17478
- * this is off by default because the recheck re-subscribes a detection session
17479
- * every N seconds while `watching`, a major source of pull-decoder re-dial
17480
- * churn (each cycle creates+tears a session → RTSP re-dial → latency). The
17538
+ * Master toggle for the occupancy re-check. When `false` the runner never arms
17539
+ * the periodic recheck timer, regardless of `occupancyRecheckSec`; the
17481
17540
  * `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
17482
17541
  * (and only render) when this is enabled.
17483
- */
17484
- occupancyRecheckEnabled: boolean().default(false),
17542
+ *
17543
+ * DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
17544
+ * recheck re-subscribes a detection session every N seconds while `watching`
17545
+ * — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
17546
+ * pull-decoder churn source. What that bought was a blind spot: a STATIONARY
17547
+ * object is counted only while the stationary registry holds it, and the
17548
+ * registry rebuilds from motion, so after a restart a parked car was invisible
17549
+ * to every occupancy rule until something moved in front of it. The churn is
17550
+ * now paid on the interval instead — see `occupancyRecheckSecField`.
17551
+ */
17552
+ occupancyRecheckEnabled: boolean().default(true),
17485
17553
  occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
17486
17554
  occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
17487
17555
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-mqtt-broker",
3
- "version": "1.2.16",
3
+ "version": "1.2.17",
4
4
  "description": "MQTT broker registry addon for CamStack — manages external broker entries + an optional embedded aedes broker. Consumers spin up their own `mqtt.js` clients via the `mqtt-broker` cap.",
5
5
  "keywords": [
6
6
  "camstack",