@camstack/addon-matter-broker 0.2.140 → 0.2.142

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
@@ -13,7 +13,7 @@ let node_stream_promises = require("node:stream/promises");
13
13
  let node_net = require("node:net");
14
14
  let node_dgram = require("node:dgram");
15
15
  node_dgram = require_esm.__toESM(node_dgram, 1);
16
- //#region ../types/dist/event-category-DOl51-Ij.mjs
16
+ //#region ../types/dist/event-category-7pZEBmVg.mjs
17
17
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
18
18
  EventCategory["SystemBoot"] = "system.boot";
19
19
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -701,6 +701,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
701
701
  EventCategory["BackupRestored"] = "backup.restored";
702
702
  EventCategory["NotificationDispatched"] = "notification.dispatched";
703
703
  EventCategory["NotificationFailed"] = "notification.failed";
704
+ /**
705
+ * A notification rule that cannot work (D905): its stored row does not load,
706
+ * or it still names a device / delivery target the prune CONFIRMED deleted.
707
+ * One edge per rule per distinct set of reasons; never on an unanswered read.
708
+ */
709
+ EventCategory["NotificationRuleBroken"] = "notification.rule-broken";
710
+ /** The clear of {@link NotificationRuleBroken}: the rule loads and names nothing deleted. */
711
+ EventCategory["NotificationRuleRepaired"] = "notification.rule-repaired";
704
712
  EventCategory["DeviceUpdated"] = "device.updated";
705
713
  /**
706
714
  * Transport-level connectivity. Emitted by the device driver when
@@ -5561,7 +5569,7 @@ var ZodIssueCode = {
5561
5569
  var ZodFirstPartyTypeKind;
5562
5570
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5563
5571
  //#endregion
5564
- //#region ../types/dist/sleep-_sV1BE2f.mjs
5572
+ //#region ../types/dist/sleep-CueztlR1.mjs
5565
5573
  /**
5566
5574
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5567
5575
  * window to float samples (D455).
@@ -42776,6 +42784,8 @@ var NcSystemEventKindSchema = _enum([
42776
42784
  "alert-critical",
42777
42785
  "alert-error",
42778
42786
  "alert-critical-resolved",
42787
+ "rule-broken",
42788
+ "rule-repaired",
42779
42789
  "camera-online",
42780
42790
  "camera-offline",
42781
42791
  "camera-disabled",
@@ -79069,6 +79079,8 @@ new Map(Object.entries({
79069
79079
  "alert-critical": "system",
79070
79080
  "alert-error": "system",
79071
79081
  "alert-critical-resolved": "system",
79082
+ "rule-broken": "system",
79083
+ "rule-repaired": "system",
79072
79084
  "storage-location-low": "system",
79073
79085
  "storage-location-critical": "system",
79074
79086
  "storage-location-ok": "system",
@@ -79203,6 +79215,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
79203
79215
  "alert-critical-resolved"
79204
79216
  ]
79205
79217
  },
79218
+ {
79219
+ id: "rule-health",
79220
+ family: "system",
79221
+ label: "Notification rules",
79222
+ kinds: ["rule-broken", "rule-repaired"]
79223
+ },
79206
79224
  {
79207
79225
  id: "alarm",
79208
79226
  family: "alarm",
@@ -79480,6 +79498,10 @@ var STATE_SUMMARY_VARS = [
79480
79498
  [...RULE_TEXT],
79481
79499
  [...RULE_TEXT],
79482
79500
  [...RULE_TEXT],
79501
+ [...RULE_TEXT],
79502
+ [...RULE_TEXT],
79503
+ [...RULE_TEXT],
79504
+ [...RULE_TEXT],
79483
79505
  ([...RULE_TEXT], [...UPDATES]),
79484
79506
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
79485
79507
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
@@ -79518,6 +79540,107 @@ var STATE_SUMMARY_VARS = [
79518
79540
  [...RULE_TEXT],
79519
79541
  ...STATE_SUMMARY_VARS
79520
79542
  ];
79543
+ new Map([
79544
+ {
79545
+ id: "device-connectivity",
79546
+ family: "device-events",
79547
+ label: "Device connectivity (offline / back online)",
79548
+ bad: ["device-offline"],
79549
+ recovery: ["device-online"],
79550
+ snapshotLabel: "Devices offline now",
79551
+ snapshotSection: "device-state"
79552
+ },
79553
+ {
79554
+ id: "device-switch",
79555
+ family: "device-events",
79556
+ label: "Device switched off / back on",
79557
+ bad: ["device-disabled"],
79558
+ recovery: ["device-enabled"],
79559
+ snapshotLabel: "Devices switched off now",
79560
+ snapshotSection: "device-state"
79561
+ },
79562
+ {
79563
+ id: "stream-connectivity",
79564
+ family: "device-events",
79565
+ label: "Stream connectivity (offline / back online)",
79566
+ bad: ["stream-offline"],
79567
+ recovery: ["stream-online"],
79568
+ snapshotLabel: "Streams offline now",
79569
+ snapshotSection: "streams"
79570
+ },
79571
+ {
79572
+ id: "battery",
79573
+ family: "device-events",
79574
+ label: "Battery (low / back to normal)",
79575
+ bad: ["device-battery-low"],
79576
+ recovery: ["device-battery-normal"],
79577
+ snapshotLabel: "Batteries low now",
79578
+ snapshotSection: "battery"
79579
+ },
79580
+ {
79581
+ id: "consumables",
79582
+ family: "device-events",
79583
+ label: "Consumables (low / replaced)",
79584
+ bad: ["device-consumable-low"],
79585
+ recovery: ["device-consumable-normal"],
79586
+ snapshotLabel: "Consumables low now",
79587
+ snapshotSection: "consumables"
79588
+ },
79589
+ {
79590
+ id: "tanks",
79591
+ family: "device-events",
79592
+ label: "Tanks (low or full / back to normal)",
79593
+ bad: ["device-tank-low", "device-tank-full"],
79594
+ recovery: ["device-tank-normal"],
79595
+ snapshotLabel: "Tanks low or full now",
79596
+ snapshotSection: "tanks"
79597
+ },
79598
+ {
79599
+ id: "recording-health",
79600
+ family: "device-events",
79601
+ label: "Recording health (stalled or degraded / recording again)",
79602
+ bad: ["recording-stalled", "recording-degraded"],
79603
+ recovery: ["recording-healthy"],
79604
+ snapshotLabel: "Recordings stalled now",
79605
+ snapshotSection: null
79606
+ },
79607
+ {
79608
+ id: "node-connectivity",
79609
+ family: "system",
79610
+ label: "Node connectivity (offline / back online)",
79611
+ bad: ["node-offline"],
79612
+ recovery: ["node-online"],
79613
+ snapshotLabel: "Nodes offline now",
79614
+ snapshotSection: "nodes"
79615
+ },
79616
+ {
79617
+ id: "storage-space",
79618
+ family: "system",
79619
+ label: "Storage space (low or critical / ok again)",
79620
+ bad: ["storage-location-low", "storage-location-critical"],
79621
+ recovery: ["storage-location-ok"],
79622
+ snapshotLabel: "Storage locations low now",
79623
+ snapshotSection: null
79624
+ },
79625
+ {
79626
+ id: "critical-alerts",
79627
+ family: "system",
79628
+ label: "Critical alerts (raised / resolved)",
79629
+ bad: ["alert-critical"],
79630
+ recovery: ["alert-critical-resolved"],
79631
+ snapshotLabel: "Critical alerts open now",
79632
+ snapshotSection: null
79633
+ },
79634
+ {
79635
+ id: "rule-health",
79636
+ family: "system",
79637
+ label: "Rule health (broken / repaired)",
79638
+ bad: ["rule-broken"],
79639
+ recovery: ["rule-repaired"],
79640
+ snapshotLabel: "Notification rules broken now",
79641
+ snapshotSection: null
79642
+ }
79643
+ ].flatMap((spec) => [...spec.bad, ...spec.recovery].map((kind) => [kind, spec])));
79521
79644
  new Set([
79522
79645
  "disarmed",
79523
79646
  "armed_home",
package/dist/addon.mjs CHANGED
@@ -11,7 +11,7 @@ import { networkInterfaces, tmpdir, uptime } from "node:os";
11
11
  import { finished } from "node:stream/promises";
12
12
  import { createConnection, createServer as createServer$2 } from "node:net";
13
13
  import * as dgram from "node:dgram";
14
- //#region ../types/dist/event-category-DOl51-Ij.mjs
14
+ //#region ../types/dist/event-category-7pZEBmVg.mjs
15
15
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
16
16
  EventCategory["SystemBoot"] = "system.boot";
17
17
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -699,6 +699,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
699
699
  EventCategory["BackupRestored"] = "backup.restored";
700
700
  EventCategory["NotificationDispatched"] = "notification.dispatched";
701
701
  EventCategory["NotificationFailed"] = "notification.failed";
702
+ /**
703
+ * A notification rule that cannot work (D905): its stored row does not load,
704
+ * or it still names a device / delivery target the prune CONFIRMED deleted.
705
+ * One edge per rule per distinct set of reasons; never on an unanswered read.
706
+ */
707
+ EventCategory["NotificationRuleBroken"] = "notification.rule-broken";
708
+ /** The clear of {@link NotificationRuleBroken}: the rule loads and names nothing deleted. */
709
+ EventCategory["NotificationRuleRepaired"] = "notification.rule-repaired";
702
710
  EventCategory["DeviceUpdated"] = "device.updated";
703
711
  /**
704
712
  * Transport-level connectivity. Emitted by the device driver when
@@ -5559,7 +5567,7 @@ var ZodIssueCode = {
5559
5567
  var ZodFirstPartyTypeKind;
5560
5568
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5561
5569
  //#endregion
5562
- //#region ../types/dist/sleep-_sV1BE2f.mjs
5570
+ //#region ../types/dist/sleep-CueztlR1.mjs
5563
5571
  /**
5564
5572
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5565
5573
  * window to float samples (D455).
@@ -42774,6 +42782,8 @@ var NcSystemEventKindSchema = _enum([
42774
42782
  "alert-critical",
42775
42783
  "alert-error",
42776
42784
  "alert-critical-resolved",
42785
+ "rule-broken",
42786
+ "rule-repaired",
42777
42787
  "camera-online",
42778
42788
  "camera-offline",
42779
42789
  "camera-disabled",
@@ -79067,6 +79077,8 @@ new Map(Object.entries({
79067
79077
  "alert-critical": "system",
79068
79078
  "alert-error": "system",
79069
79079
  "alert-critical-resolved": "system",
79080
+ "rule-broken": "system",
79081
+ "rule-repaired": "system",
79070
79082
  "storage-location-low": "system",
79071
79083
  "storage-location-critical": "system",
79072
79084
  "storage-location-ok": "system",
@@ -79201,6 +79213,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
79201
79213
  "alert-critical-resolved"
79202
79214
  ]
79203
79215
  },
79216
+ {
79217
+ id: "rule-health",
79218
+ family: "system",
79219
+ label: "Notification rules",
79220
+ kinds: ["rule-broken", "rule-repaired"]
79221
+ },
79204
79222
  {
79205
79223
  id: "alarm",
79206
79224
  family: "alarm",
@@ -79478,6 +79496,10 @@ var STATE_SUMMARY_VARS = [
79478
79496
  [...RULE_TEXT],
79479
79497
  [...RULE_TEXT],
79480
79498
  [...RULE_TEXT],
79499
+ [...RULE_TEXT],
79500
+ [...RULE_TEXT],
79501
+ [...RULE_TEXT],
79502
+ [...RULE_TEXT],
79481
79503
  ([...RULE_TEXT], [...UPDATES]),
79482
79504
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
79483
79505
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
@@ -79516,6 +79538,107 @@ var STATE_SUMMARY_VARS = [
79516
79538
  [...RULE_TEXT],
79517
79539
  ...STATE_SUMMARY_VARS
79518
79540
  ];
79541
+ new Map([
79542
+ {
79543
+ id: "device-connectivity",
79544
+ family: "device-events",
79545
+ label: "Device connectivity (offline / back online)",
79546
+ bad: ["device-offline"],
79547
+ recovery: ["device-online"],
79548
+ snapshotLabel: "Devices offline now",
79549
+ snapshotSection: "device-state"
79550
+ },
79551
+ {
79552
+ id: "device-switch",
79553
+ family: "device-events",
79554
+ label: "Device switched off / back on",
79555
+ bad: ["device-disabled"],
79556
+ recovery: ["device-enabled"],
79557
+ snapshotLabel: "Devices switched off now",
79558
+ snapshotSection: "device-state"
79559
+ },
79560
+ {
79561
+ id: "stream-connectivity",
79562
+ family: "device-events",
79563
+ label: "Stream connectivity (offline / back online)",
79564
+ bad: ["stream-offline"],
79565
+ recovery: ["stream-online"],
79566
+ snapshotLabel: "Streams offline now",
79567
+ snapshotSection: "streams"
79568
+ },
79569
+ {
79570
+ id: "battery",
79571
+ family: "device-events",
79572
+ label: "Battery (low / back to normal)",
79573
+ bad: ["device-battery-low"],
79574
+ recovery: ["device-battery-normal"],
79575
+ snapshotLabel: "Batteries low now",
79576
+ snapshotSection: "battery"
79577
+ },
79578
+ {
79579
+ id: "consumables",
79580
+ family: "device-events",
79581
+ label: "Consumables (low / replaced)",
79582
+ bad: ["device-consumable-low"],
79583
+ recovery: ["device-consumable-normal"],
79584
+ snapshotLabel: "Consumables low now",
79585
+ snapshotSection: "consumables"
79586
+ },
79587
+ {
79588
+ id: "tanks",
79589
+ family: "device-events",
79590
+ label: "Tanks (low or full / back to normal)",
79591
+ bad: ["device-tank-low", "device-tank-full"],
79592
+ recovery: ["device-tank-normal"],
79593
+ snapshotLabel: "Tanks low or full now",
79594
+ snapshotSection: "tanks"
79595
+ },
79596
+ {
79597
+ id: "recording-health",
79598
+ family: "device-events",
79599
+ label: "Recording health (stalled or degraded / recording again)",
79600
+ bad: ["recording-stalled", "recording-degraded"],
79601
+ recovery: ["recording-healthy"],
79602
+ snapshotLabel: "Recordings stalled now",
79603
+ snapshotSection: null
79604
+ },
79605
+ {
79606
+ id: "node-connectivity",
79607
+ family: "system",
79608
+ label: "Node connectivity (offline / back online)",
79609
+ bad: ["node-offline"],
79610
+ recovery: ["node-online"],
79611
+ snapshotLabel: "Nodes offline now",
79612
+ snapshotSection: "nodes"
79613
+ },
79614
+ {
79615
+ id: "storage-space",
79616
+ family: "system",
79617
+ label: "Storage space (low or critical / ok again)",
79618
+ bad: ["storage-location-low", "storage-location-critical"],
79619
+ recovery: ["storage-location-ok"],
79620
+ snapshotLabel: "Storage locations low now",
79621
+ snapshotSection: null
79622
+ },
79623
+ {
79624
+ id: "critical-alerts",
79625
+ family: "system",
79626
+ label: "Critical alerts (raised / resolved)",
79627
+ bad: ["alert-critical"],
79628
+ recovery: ["alert-critical-resolved"],
79629
+ snapshotLabel: "Critical alerts open now",
79630
+ snapshotSection: null
79631
+ },
79632
+ {
79633
+ id: "rule-health",
79634
+ family: "system",
79635
+ label: "Rule health (broken / repaired)",
79636
+ bad: ["rule-broken"],
79637
+ recovery: ["rule-repaired"],
79638
+ snapshotLabel: "Notification rules broken now",
79639
+ snapshotSection: null
79640
+ }
79641
+ ].flatMap((spec) => [...spec.bad, ...spec.recovery].map((kind) => [kind, spec])));
79519
79642
  new Set([
79520
79643
  "disarmed",
79521
79644
  "armed_home",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-matter-broker",
3
- "version": "0.2.140",
3
+ "version": "0.2.142",
4
4
  "description": "Matter broker addon for CamStack — owns a Matter fabric (commissioning + the long-lived controller) via the matter.js controller and brokers commissioned Matter nodes into CamStack",
5
5
  "keywords": [
6
6
  "camstack",