@camstack/addon-export-alexa 1.2.20 → 1.2.21

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.
@@ -13232,11 +13232,33 @@ var NotificationFormatSchema = _enum([
13232
13232
  * Named by INTENT, never by glyph. "check" would tie the vocabulary to one
13233
13233
  * renderer's icon set; "acknowledge" survives an adapter that draws it
13234
13234
  * differently.
13235
+ *
13236
+ * ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
13237
+ *
13238
+ * These names are for US. **No adapter may forward one verbatim.** Each maps
13239
+ * the whole set onto its own renderer's vocabulary through a
13240
+ * `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
13241
+ * fallback, so adding a member here fails every adapter's build until someone
13242
+ * decides its glyph, which is the only place that decision can be made
13243
+ * honestly.
13244
+ *
13245
+ * This paragraph is the bug. Zentik declared `actionIcons: true` and passed
13246
+ * `disarm` straight through; iOS feeds that string to
13247
+ * `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
13248
+ * and every snooze and alarm button arrived BLANK. A pass-through is not a
13249
+ * mapping, and "the field is documented" is not "the value renders".
13250
+ *
13251
+ * Adding a member is TRAIN-BOUND. The enum lives in the published
13252
+ * `@camstack/server` closure and the cap seam validates against the HUB's copy,
13253
+ * so an addon that emits a token the running hub does not know does not lose an
13254
+ * icon — its whole `send` fails Zod validation and the notification never
13255
+ * arrives. Never emit a new token from an addon before the train carrying it.
13235
13256
  */
13236
13257
  var NotificationActionIconSchema = _enum([
13237
13258
  "acknowledge",
13238
13259
  "dismiss",
13239
13260
  "silence",
13261
+ "snooze",
13240
13262
  "view",
13241
13263
  "play",
13242
13264
  "open",
@@ -13244,9 +13266,13 @@ var NotificationActionIconSchema = _enum([
13244
13266
  "lock",
13245
13267
  "unlock",
13246
13268
  "arm",
13269
+ "arm-home",
13270
+ "arm-away",
13271
+ "arm-night",
13247
13272
  "disarm",
13248
13273
  "light",
13249
- "alert"
13274
+ "alert",
13275
+ "camera"
13250
13276
  ]);
13251
13277
  /** A single tap-through action button. */
13252
13278
  var NotificationActionSchema = object({
@@ -13446,6 +13472,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
13446
13472
  targetId: string(),
13447
13473
  enabled: boolean()
13448
13474
  }), _void(), { kind: "mutation" });
13475
+ new Set([
13476
+ {
13477
+ id: "person",
13478
+ name: "Person"
13479
+ },
13480
+ {
13481
+ id: "vehicle",
13482
+ name: "Vehicle"
13483
+ },
13484
+ {
13485
+ id: "animal",
13486
+ name: "Animal"
13487
+ },
13488
+ {
13489
+ id: "package",
13490
+ name: "Package"
13491
+ }
13492
+ ].map((l) => l.id));
13449
13493
  var COCO_TO_MACRO = {
13450
13494
  mapping: {
13451
13495
  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",
@@ -17481,6 +17527,22 @@ var detectionFpsField = {
17481
17527
  default: 10,
17482
17528
  step: 1
17483
17529
  };
17530
+ /**
17531
+ * The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
17532
+ *
17533
+ * The recheck is now on by default (a parked car is invisible to occupancy
17534
+ * rules until the stationary registry has been rebuilt by motion, which after a
17535
+ * restart may be never on a quiet camera). Each cycle re-subscribes a detection
17536
+ * session — an RTSP re-dial — so the switch is only affordable at a WIDE
17537
+ * interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
17538
+ * 30 s. A parked car is therefore counted within 5 minutes of a restart.
17539
+ *
17540
+ * Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
17541
+ * the host validates `attachCamera` against ITS copy of this schema, so a
17542
+ * runner asked for 600 would be rejected by the hub until a `@camstack/server`
17543
+ * carrying the wider bound is installed everywhere. 300 is the widest value
17544
+ * that ships with an addon deploy.
17545
+ */
17484
17546
  var occupancyRecheckSecField = {
17485
17547
  min: 0,
17486
17548
  max: 300,
@@ -17682,15 +17744,21 @@ var RunnerCameraConfigSchema = object({
17682
17744
  */
17683
17745
  onboardMotionDrivesAnalyzer: boolean().default(true),
17684
17746
  /**
17685
- * Master toggle for the occupancy re-check. When `false` (DEFAULT) the runner
17686
- * never arms the periodic recheck timer, regardless of `occupancyRecheckSec` —
17687
- * this is off by default because the recheck re-subscribes a detection session
17688
- * every N seconds while `watching`, a major source of pull-decoder re-dial
17689
- * churn (each cycle creates+tears a session → RTSP re-dial → latency). The
17747
+ * Master toggle for the occupancy re-check. When `false` the runner never arms
17748
+ * the periodic recheck timer, regardless of `occupancyRecheckSec`; the
17690
17749
  * `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
17691
17750
  * (and only render) when this is enabled.
17692
- */
17693
- occupancyRecheckEnabled: boolean().default(false),
17751
+ *
17752
+ * DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
17753
+ * recheck re-subscribes a detection session every N seconds while `watching`
17754
+ * — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
17755
+ * pull-decoder churn source. What that bought was a blind spot: a STATIONARY
17756
+ * object is counted only while the stationary registry holds it, and the
17757
+ * registry rebuilds from motion, so after a restart a parked car was invisible
17758
+ * to every occupancy rule until something moved in front of it. The churn is
17759
+ * now paid on the interval instead — see `occupancyRecheckSecField`.
17760
+ */
17761
+ occupancyRecheckEnabled: boolean().default(true),
17694
17762
  occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
17695
17763
  occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
17696
17764
  /**
@@ -13205,11 +13205,33 @@ var NotificationFormatSchema = _enum([
13205
13205
  * Named by INTENT, never by glyph. "check" would tie the vocabulary to one
13206
13206
  * renderer's icon set; "acknowledge" survives an adapter that draws it
13207
13207
  * differently.
13208
+ *
13209
+ * ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
13210
+ *
13211
+ * These names are for US. **No adapter may forward one verbatim.** Each maps
13212
+ * the whole set onto its own renderer's vocabulary through a
13213
+ * `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
13214
+ * fallback, so adding a member here fails every adapter's build until someone
13215
+ * decides its glyph, which is the only place that decision can be made
13216
+ * honestly.
13217
+ *
13218
+ * This paragraph is the bug. Zentik declared `actionIcons: true` and passed
13219
+ * `disarm` straight through; iOS feeds that string to
13220
+ * `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
13221
+ * and every snooze and alarm button arrived BLANK. A pass-through is not a
13222
+ * mapping, and "the field is documented" is not "the value renders".
13223
+ *
13224
+ * Adding a member is TRAIN-BOUND. The enum lives in the published
13225
+ * `@camstack/server` closure and the cap seam validates against the HUB's copy,
13226
+ * so an addon that emits a token the running hub does not know does not lose an
13227
+ * icon — its whole `send` fails Zod validation and the notification never
13228
+ * arrives. Never emit a new token from an addon before the train carrying it.
13208
13229
  */
13209
13230
  var NotificationActionIconSchema = _enum([
13210
13231
  "acknowledge",
13211
13232
  "dismiss",
13212
13233
  "silence",
13234
+ "snooze",
13213
13235
  "view",
13214
13236
  "play",
13215
13237
  "open",
@@ -13217,9 +13239,13 @@ var NotificationActionIconSchema = _enum([
13217
13239
  "lock",
13218
13240
  "unlock",
13219
13241
  "arm",
13242
+ "arm-home",
13243
+ "arm-away",
13244
+ "arm-night",
13220
13245
  "disarm",
13221
13246
  "light",
13222
- "alert"
13247
+ "alert",
13248
+ "camera"
13223
13249
  ]);
13224
13250
  /** A single tap-through action button. */
13225
13251
  var NotificationActionSchema = object({
@@ -13419,6 +13445,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
13419
13445
  targetId: string(),
13420
13446
  enabled: boolean()
13421
13447
  }), _void(), { kind: "mutation" });
13448
+ new Set([
13449
+ {
13450
+ id: "person",
13451
+ name: "Person"
13452
+ },
13453
+ {
13454
+ id: "vehicle",
13455
+ name: "Vehicle"
13456
+ },
13457
+ {
13458
+ id: "animal",
13459
+ name: "Animal"
13460
+ },
13461
+ {
13462
+ id: "package",
13463
+ name: "Package"
13464
+ }
13465
+ ].map((l) => l.id));
13422
13466
  var COCO_TO_MACRO = {
13423
13467
  mapping: {
13424
13468
  person: "person",
@@ -14216,6 +14260,8 @@ var NcSystemEventKindSchema = _enum([
14216
14260
  "alarm-triggered",
14217
14261
  "alarm-armed",
14218
14262
  "alarm-disarmed",
14263
+ "alarm-arming",
14264
+ "alarm-arm-refused",
14219
14265
  "camera-online",
14220
14266
  "camera-offline",
14221
14267
  "camera-disabled",
@@ -17454,6 +17500,22 @@ var detectionFpsField = {
17454
17500
  default: 10,
17455
17501
  step: 1
17456
17502
  };
17503
+ /**
17504
+ * The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
17505
+ *
17506
+ * The recheck is now on by default (a parked car is invisible to occupancy
17507
+ * rules until the stationary registry has been rebuilt by motion, which after a
17508
+ * restart may be never on a quiet camera). Each cycle re-subscribes a detection
17509
+ * session — an RTSP re-dial — so the switch is only affordable at a WIDE
17510
+ * interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
17511
+ * 30 s. A parked car is therefore counted within 5 minutes of a restart.
17512
+ *
17513
+ * Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
17514
+ * the host validates `attachCamera` against ITS copy of this schema, so a
17515
+ * runner asked for 600 would be rejected by the hub until a `@camstack/server`
17516
+ * carrying the wider bound is installed everywhere. 300 is the widest value
17517
+ * that ships with an addon deploy.
17518
+ */
17457
17519
  var occupancyRecheckSecField = {
17458
17520
  min: 0,
17459
17521
  max: 300,
@@ -17655,15 +17717,21 @@ var RunnerCameraConfigSchema = object({
17655
17717
  */
17656
17718
  onboardMotionDrivesAnalyzer: boolean().default(true),
17657
17719
  /**
17658
- * Master toggle for the occupancy re-check. When `false` (DEFAULT) the runner
17659
- * never arms the periodic recheck timer, regardless of `occupancyRecheckSec` —
17660
- * this is off by default because the recheck re-subscribes a detection session
17661
- * every N seconds while `watching`, a major source of pull-decoder re-dial
17662
- * churn (each cycle creates+tears a session → RTSP re-dial → latency). The
17720
+ * Master toggle for the occupancy re-check. When `false` the runner never arms
17721
+ * the periodic recheck timer, regardless of `occupancyRecheckSec`; the
17663
17722
  * `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
17664
17723
  * (and only render) when this is enabled.
17665
- */
17666
- occupancyRecheckEnabled: boolean().default(false),
17724
+ *
17725
+ * DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
17726
+ * recheck re-subscribes a detection session every N seconds while `watching`
17727
+ * — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
17728
+ * pull-decoder churn source. What that bought was a blind spot: a STATIONARY
17729
+ * object is counted only while the stationary registry holds it, and the
17730
+ * registry rebuilds from motion, so after a restart a parked car was invisible
17731
+ * to every occupancy rule until something moved in front of it. The churn is
17732
+ * now paid on the interval instead — see `occupancyRecheckSecField`.
17733
+ */
17734
+ occupancyRecheckEnabled: boolean().default(true),
17667
17735
  occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
17668
17736
  occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
17669
17737
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-export-alexa",
3
- "version": "1.2.20",
3
+ "version": "1.2.21",
4
4
  "description": "Alexa Smart Home Skill export — hub-side OAuth provider + directive handler. The companion AWS Lambda forwards Alexa directives to this addon's /addon/export-alexa/directive endpoint.",
5
5
  "keywords": [
6
6
  "camstack",