@camstack/addon-decoder-nodeav 1.2.135 → 1.2.137

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/index.js CHANGED
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
5
  let node_crypto = require("node:crypto");
6
- //#region ../types/dist/event-category-DOl51-Ij.mjs
6
+ //#region ../types/dist/event-category-7pZEBmVg.mjs
7
7
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
8
8
  EventCategory["SystemBoot"] = "system.boot";
9
9
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -691,6 +691,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
691
691
  EventCategory["BackupRestored"] = "backup.restored";
692
692
  EventCategory["NotificationDispatched"] = "notification.dispatched";
693
693
  EventCategory["NotificationFailed"] = "notification.failed";
694
+ /**
695
+ * A notification rule that cannot work (D905): its stored row does not load,
696
+ * or it still names a device / delivery target the prune CONFIRMED deleted.
697
+ * One edge per rule per distinct set of reasons; never on an unanswered read.
698
+ */
699
+ EventCategory["NotificationRuleBroken"] = "notification.rule-broken";
700
+ /** The clear of {@link NotificationRuleBroken}: the rule loads and names nothing deleted. */
701
+ EventCategory["NotificationRuleRepaired"] = "notification.rule-repaired";
694
702
  EventCategory["DeviceUpdated"] = "device.updated";
695
703
  /**
696
704
  * Transport-level connectivity. Emitted by the device driver when
@@ -5418,7 +5426,7 @@ var ZodIssueCode = {
5418
5426
  var ZodFirstPartyTypeKind;
5419
5427
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5420
5428
  //#endregion
5421
- //#region ../types/dist/sleep-_sV1BE2f.mjs
5429
+ //#region ../types/dist/sleep-CueztlR1.mjs
5422
5430
  /**
5423
5431
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5424
5432
  * window to float samples (D455).
@@ -42084,6 +42092,8 @@ var NcSystemEventKindSchema = _enum([
42084
42092
  "alert-critical",
42085
42093
  "alert-error",
42086
42094
  "alert-critical-resolved",
42095
+ "rule-broken",
42096
+ "rule-repaired",
42087
42097
  "camera-online",
42088
42098
  "camera-offline",
42089
42099
  "camera-disabled",
@@ -73517,6 +73527,8 @@ new Map(Object.entries({
73517
73527
  "alert-critical": "system",
73518
73528
  "alert-error": "system",
73519
73529
  "alert-critical-resolved": "system",
73530
+ "rule-broken": "system",
73531
+ "rule-repaired": "system",
73520
73532
  "storage-location-low": "system",
73521
73533
  "storage-location-critical": "system",
73522
73534
  "storage-location-ok": "system",
@@ -73651,6 +73663,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
73651
73663
  "alert-critical-resolved"
73652
73664
  ]
73653
73665
  },
73666
+ {
73667
+ id: "rule-health",
73668
+ family: "system",
73669
+ label: "Notification rules",
73670
+ kinds: ["rule-broken", "rule-repaired"]
73671
+ },
73654
73672
  {
73655
73673
  id: "alarm",
73656
73674
  family: "alarm",
@@ -73928,6 +73946,10 @@ var STATE_SUMMARY_VARS = [
73928
73946
  [...RULE_TEXT],
73929
73947
  [...RULE_TEXT],
73930
73948
  [...RULE_TEXT],
73949
+ [...RULE_TEXT],
73950
+ [...RULE_TEXT],
73951
+ [...RULE_TEXT],
73952
+ [...RULE_TEXT],
73931
73953
  ([...RULE_TEXT], [...UPDATES]),
73932
73954
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
73933
73955
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
@@ -73966,6 +73988,107 @@ var STATE_SUMMARY_VARS = [
73966
73988
  [...RULE_TEXT],
73967
73989
  ...STATE_SUMMARY_VARS
73968
73990
  ];
73991
+ new Map([
73992
+ {
73993
+ id: "device-connectivity",
73994
+ family: "device-events",
73995
+ label: "Device connectivity (offline / back online)",
73996
+ bad: ["device-offline"],
73997
+ recovery: ["device-online"],
73998
+ snapshotLabel: "Devices offline now",
73999
+ snapshotSection: "device-state"
74000
+ },
74001
+ {
74002
+ id: "device-switch",
74003
+ family: "device-events",
74004
+ label: "Device switched off / back on",
74005
+ bad: ["device-disabled"],
74006
+ recovery: ["device-enabled"],
74007
+ snapshotLabel: "Devices switched off now",
74008
+ snapshotSection: "device-state"
74009
+ },
74010
+ {
74011
+ id: "stream-connectivity",
74012
+ family: "device-events",
74013
+ label: "Stream connectivity (offline / back online)",
74014
+ bad: ["stream-offline"],
74015
+ recovery: ["stream-online"],
74016
+ snapshotLabel: "Streams offline now",
74017
+ snapshotSection: "streams"
74018
+ },
74019
+ {
74020
+ id: "battery",
74021
+ family: "device-events",
74022
+ label: "Battery (low / back to normal)",
74023
+ bad: ["device-battery-low"],
74024
+ recovery: ["device-battery-normal"],
74025
+ snapshotLabel: "Batteries low now",
74026
+ snapshotSection: "battery"
74027
+ },
74028
+ {
74029
+ id: "consumables",
74030
+ family: "device-events",
74031
+ label: "Consumables (low / replaced)",
74032
+ bad: ["device-consumable-low"],
74033
+ recovery: ["device-consumable-normal"],
74034
+ snapshotLabel: "Consumables low now",
74035
+ snapshotSection: "consumables"
74036
+ },
74037
+ {
74038
+ id: "tanks",
74039
+ family: "device-events",
74040
+ label: "Tanks (low or full / back to normal)",
74041
+ bad: ["device-tank-low", "device-tank-full"],
74042
+ recovery: ["device-tank-normal"],
74043
+ snapshotLabel: "Tanks low or full now",
74044
+ snapshotSection: "tanks"
74045
+ },
74046
+ {
74047
+ id: "recording-health",
74048
+ family: "device-events",
74049
+ label: "Recording health (stalled or degraded / recording again)",
74050
+ bad: ["recording-stalled", "recording-degraded"],
74051
+ recovery: ["recording-healthy"],
74052
+ snapshotLabel: "Recordings stalled now",
74053
+ snapshotSection: null
74054
+ },
74055
+ {
74056
+ id: "node-connectivity",
74057
+ family: "system",
74058
+ label: "Node connectivity (offline / back online)",
74059
+ bad: ["node-offline"],
74060
+ recovery: ["node-online"],
74061
+ snapshotLabel: "Nodes offline now",
74062
+ snapshotSection: "nodes"
74063
+ },
74064
+ {
74065
+ id: "storage-space",
74066
+ family: "system",
74067
+ label: "Storage space (low or critical / ok again)",
74068
+ bad: ["storage-location-low", "storage-location-critical"],
74069
+ recovery: ["storage-location-ok"],
74070
+ snapshotLabel: "Storage locations low now",
74071
+ snapshotSection: null
74072
+ },
74073
+ {
74074
+ id: "critical-alerts",
74075
+ family: "system",
74076
+ label: "Critical alerts (raised / resolved)",
74077
+ bad: ["alert-critical"],
74078
+ recovery: ["alert-critical-resolved"],
74079
+ snapshotLabel: "Critical alerts open now",
74080
+ snapshotSection: null
74081
+ },
74082
+ {
74083
+ id: "rule-health",
74084
+ family: "system",
74085
+ label: "Rule health (broken / repaired)",
74086
+ bad: ["rule-broken"],
74087
+ recovery: ["rule-repaired"],
74088
+ snapshotLabel: "Notification rules broken now",
74089
+ snapshotSection: null
74090
+ }
74091
+ ].flatMap((spec) => [...spec.bad, ...spec.recovery].map((kind) => [kind, spec])));
73969
74092
  new Set([
73970
74093
  "disarmed",
73971
74094
  "armed_home",
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { randomUUID } from "node:crypto";
2
- //#region ../types/dist/event-category-DOl51-Ij.mjs
2
+ //#region ../types/dist/event-category-7pZEBmVg.mjs
3
3
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4
4
  EventCategory["SystemBoot"] = "system.boot";
5
5
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -687,6 +687,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
687
687
  EventCategory["BackupRestored"] = "backup.restored";
688
688
  EventCategory["NotificationDispatched"] = "notification.dispatched";
689
689
  EventCategory["NotificationFailed"] = "notification.failed";
690
+ /**
691
+ * A notification rule that cannot work (D905): its stored row does not load,
692
+ * or it still names a device / delivery target the prune CONFIRMED deleted.
693
+ * One edge per rule per distinct set of reasons; never on an unanswered read.
694
+ */
695
+ EventCategory["NotificationRuleBroken"] = "notification.rule-broken";
696
+ /** The clear of {@link NotificationRuleBroken}: the rule loads and names nothing deleted. */
697
+ EventCategory["NotificationRuleRepaired"] = "notification.rule-repaired";
690
698
  EventCategory["DeviceUpdated"] = "device.updated";
691
699
  /**
692
700
  * Transport-level connectivity. Emitted by the device driver when
@@ -5414,7 +5422,7 @@ var ZodIssueCode = {
5414
5422
  var ZodFirstPartyTypeKind;
5415
5423
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5416
5424
  //#endregion
5417
- //#region ../types/dist/sleep-_sV1BE2f.mjs
5425
+ //#region ../types/dist/sleep-CueztlR1.mjs
5418
5426
  /**
5419
5427
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5420
5428
  * window to float samples (D455).
@@ -42080,6 +42088,8 @@ var NcSystemEventKindSchema = _enum([
42080
42088
  "alert-critical",
42081
42089
  "alert-error",
42082
42090
  "alert-critical-resolved",
42091
+ "rule-broken",
42092
+ "rule-repaired",
42083
42093
  "camera-online",
42084
42094
  "camera-offline",
42085
42095
  "camera-disabled",
@@ -73513,6 +73523,8 @@ new Map(Object.entries({
73513
73523
  "alert-critical": "system",
73514
73524
  "alert-error": "system",
73515
73525
  "alert-critical-resolved": "system",
73526
+ "rule-broken": "system",
73527
+ "rule-repaired": "system",
73516
73528
  "storage-location-low": "system",
73517
73529
  "storage-location-critical": "system",
73518
73530
  "storage-location-ok": "system",
@@ -73647,6 +73659,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
73647
73659
  "alert-critical-resolved"
73648
73660
  ]
73649
73661
  },
73662
+ {
73663
+ id: "rule-health",
73664
+ family: "system",
73665
+ label: "Notification rules",
73666
+ kinds: ["rule-broken", "rule-repaired"]
73667
+ },
73650
73668
  {
73651
73669
  id: "alarm",
73652
73670
  family: "alarm",
@@ -73924,6 +73942,10 @@ var STATE_SUMMARY_VARS = [
73924
73942
  [...RULE_TEXT],
73925
73943
  [...RULE_TEXT],
73926
73944
  [...RULE_TEXT],
73945
+ [...RULE_TEXT],
73946
+ [...RULE_TEXT],
73947
+ [...RULE_TEXT],
73948
+ [...RULE_TEXT],
73927
73949
  ([...RULE_TEXT], [...UPDATES]),
73928
73950
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
73929
73951
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
@@ -73962,6 +73984,107 @@ var STATE_SUMMARY_VARS = [
73962
73984
  [...RULE_TEXT],
73963
73985
  ...STATE_SUMMARY_VARS
73964
73986
  ];
73987
+ new Map([
73988
+ {
73989
+ id: "device-connectivity",
73990
+ family: "device-events",
73991
+ label: "Device connectivity (offline / back online)",
73992
+ bad: ["device-offline"],
73993
+ recovery: ["device-online"],
73994
+ snapshotLabel: "Devices offline now",
73995
+ snapshotSection: "device-state"
73996
+ },
73997
+ {
73998
+ id: "device-switch",
73999
+ family: "device-events",
74000
+ label: "Device switched off / back on",
74001
+ bad: ["device-disabled"],
74002
+ recovery: ["device-enabled"],
74003
+ snapshotLabel: "Devices switched off now",
74004
+ snapshotSection: "device-state"
74005
+ },
74006
+ {
74007
+ id: "stream-connectivity",
74008
+ family: "device-events",
74009
+ label: "Stream connectivity (offline / back online)",
74010
+ bad: ["stream-offline"],
74011
+ recovery: ["stream-online"],
74012
+ snapshotLabel: "Streams offline now",
74013
+ snapshotSection: "streams"
74014
+ },
74015
+ {
74016
+ id: "battery",
74017
+ family: "device-events",
74018
+ label: "Battery (low / back to normal)",
74019
+ bad: ["device-battery-low"],
74020
+ recovery: ["device-battery-normal"],
74021
+ snapshotLabel: "Batteries low now",
74022
+ snapshotSection: "battery"
74023
+ },
74024
+ {
74025
+ id: "consumables",
74026
+ family: "device-events",
74027
+ label: "Consumables (low / replaced)",
74028
+ bad: ["device-consumable-low"],
74029
+ recovery: ["device-consumable-normal"],
74030
+ snapshotLabel: "Consumables low now",
74031
+ snapshotSection: "consumables"
74032
+ },
74033
+ {
74034
+ id: "tanks",
74035
+ family: "device-events",
74036
+ label: "Tanks (low or full / back to normal)",
74037
+ bad: ["device-tank-low", "device-tank-full"],
74038
+ recovery: ["device-tank-normal"],
74039
+ snapshotLabel: "Tanks low or full now",
74040
+ snapshotSection: "tanks"
74041
+ },
74042
+ {
74043
+ id: "recording-health",
74044
+ family: "device-events",
74045
+ label: "Recording health (stalled or degraded / recording again)",
74046
+ bad: ["recording-stalled", "recording-degraded"],
74047
+ recovery: ["recording-healthy"],
74048
+ snapshotLabel: "Recordings stalled now",
74049
+ snapshotSection: null
74050
+ },
74051
+ {
74052
+ id: "node-connectivity",
74053
+ family: "system",
74054
+ label: "Node connectivity (offline / back online)",
74055
+ bad: ["node-offline"],
74056
+ recovery: ["node-online"],
74057
+ snapshotLabel: "Nodes offline now",
74058
+ snapshotSection: "nodes"
74059
+ },
74060
+ {
74061
+ id: "storage-space",
74062
+ family: "system",
74063
+ label: "Storage space (low or critical / ok again)",
74064
+ bad: ["storage-location-low", "storage-location-critical"],
74065
+ recovery: ["storage-location-ok"],
74066
+ snapshotLabel: "Storage locations low now",
74067
+ snapshotSection: null
74068
+ },
74069
+ {
74070
+ id: "critical-alerts",
74071
+ family: "system",
74072
+ label: "Critical alerts (raised / resolved)",
74073
+ bad: ["alert-critical"],
74074
+ recovery: ["alert-critical-resolved"],
74075
+ snapshotLabel: "Critical alerts open now",
74076
+ snapshotSection: null
74077
+ },
74078
+ {
74079
+ id: "rule-health",
74080
+ family: "system",
74081
+ label: "Rule health (broken / repaired)",
74082
+ bad: ["rule-broken"],
74083
+ recovery: ["rule-repaired"],
74084
+ snapshotLabel: "Notification rules broken now",
74085
+ snapshotSection: null
74086
+ }
74087
+ ].flatMap((spec) => [...spec.bad, ...spec.recovery].map((kind) => [kind, spec])));
73965
74088
  new Set([
73966
74089
  "disarmed",
73967
74090
  "armed_home",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-decoder-nodeav",
3
- "version": "1.2.135",
3
+ "version": "1.2.137",
4
4
  "description": "Standalone in-process node-av decoder addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",