@camstack/addon-export-hap 1.2.171 → 1.2.173

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.
@@ -49,7 +49,7 @@ let node_fs_promises = require("node:fs/promises");
49
49
  node_fs_promises = __toESM(node_fs_promises, 1);
50
50
  let node_events = require("node:events");
51
51
  let node_dgram = require("node:dgram");
52
- //#region ../types/dist/event-category-DOl51-Ij.mjs
52
+ //#region ../types/dist/event-category-7pZEBmVg.mjs
53
53
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
54
54
  EventCategory["SystemBoot"] = "system.boot";
55
55
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -737,6 +737,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
737
737
  EventCategory["BackupRestored"] = "backup.restored";
738
738
  EventCategory["NotificationDispatched"] = "notification.dispatched";
739
739
  EventCategory["NotificationFailed"] = "notification.failed";
740
+ /**
741
+ * A notification rule that cannot work (D905): its stored row does not load,
742
+ * or it still names a device / delivery target the prune CONFIRMED deleted.
743
+ * One edge per rule per distinct set of reasons; never on an unanswered read.
744
+ */
745
+ EventCategory["NotificationRuleBroken"] = "notification.rule-broken";
746
+ /** The clear of {@link NotificationRuleBroken}: the rule loads and names nothing deleted. */
747
+ EventCategory["NotificationRuleRepaired"] = "notification.rule-repaired";
740
748
  EventCategory["DeviceUpdated"] = "device.updated";
741
749
  /**
742
750
  * Transport-level connectivity. Emitted by the device driver when
@@ -5464,7 +5472,7 @@ var ZodIssueCode = {
5464
5472
  var ZodFirstPartyTypeKind;
5465
5473
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5466
5474
  //#endregion
5467
- //#region ../types/dist/sleep-_sV1BE2f.mjs
5475
+ //#region ../types/dist/sleep-CueztlR1.mjs
5468
5476
  /**
5469
5477
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5470
5478
  * window to float samples (D455).
@@ -42971,6 +42979,8 @@ var NcSystemEventKindSchema = _enum([
42971
42979
  "alert-critical",
42972
42980
  "alert-error",
42973
42981
  "alert-critical-resolved",
42982
+ "rule-broken",
42983
+ "rule-repaired",
42974
42984
  "camera-online",
42975
42985
  "camera-offline",
42976
42986
  "camera-disabled",
@@ -74658,6 +74668,8 @@ new Map(Object.entries({
74658
74668
  "alert-critical": "system",
74659
74669
  "alert-error": "system",
74660
74670
  "alert-critical-resolved": "system",
74671
+ "rule-broken": "system",
74672
+ "rule-repaired": "system",
74661
74673
  "storage-location-low": "system",
74662
74674
  "storage-location-critical": "system",
74663
74675
  "storage-location-ok": "system",
@@ -74792,6 +74804,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
74792
74804
  "alert-critical-resolved"
74793
74805
  ]
74794
74806
  },
74807
+ {
74808
+ id: "rule-health",
74809
+ family: "system",
74810
+ label: "Notification rules",
74811
+ kinds: ["rule-broken", "rule-repaired"]
74812
+ },
74795
74813
  {
74796
74814
  id: "alarm",
74797
74815
  family: "alarm",
@@ -75069,6 +75087,10 @@ var STATE_SUMMARY_VARS = [
75069
75087
  [...RULE_TEXT],
75070
75088
  [...RULE_TEXT],
75071
75089
  [...RULE_TEXT],
75090
+ [...RULE_TEXT],
75091
+ [...RULE_TEXT],
75092
+ [...RULE_TEXT],
75093
+ [...RULE_TEXT],
75072
75094
  ([...RULE_TEXT], [...UPDATES]),
75073
75095
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
75074
75096
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
@@ -75107,6 +75129,107 @@ var STATE_SUMMARY_VARS = [
75107
75129
  [...RULE_TEXT],
75108
75130
  ...STATE_SUMMARY_VARS
75109
75131
  ];
75132
+ new Map([
75133
+ {
75134
+ id: "device-connectivity",
75135
+ family: "device-events",
75136
+ label: "Device connectivity (offline / back online)",
75137
+ bad: ["device-offline"],
75138
+ recovery: ["device-online"],
75139
+ snapshotLabel: "Devices offline now",
75140
+ snapshotSection: "device-state"
75141
+ },
75142
+ {
75143
+ id: "device-switch",
75144
+ family: "device-events",
75145
+ label: "Device switched off / back on",
75146
+ bad: ["device-disabled"],
75147
+ recovery: ["device-enabled"],
75148
+ snapshotLabel: "Devices switched off now",
75149
+ snapshotSection: "device-state"
75150
+ },
75151
+ {
75152
+ id: "stream-connectivity",
75153
+ family: "device-events",
75154
+ label: "Stream connectivity (offline / back online)",
75155
+ bad: ["stream-offline"],
75156
+ recovery: ["stream-online"],
75157
+ snapshotLabel: "Streams offline now",
75158
+ snapshotSection: "streams"
75159
+ },
75160
+ {
75161
+ id: "battery",
75162
+ family: "device-events",
75163
+ label: "Battery (low / back to normal)",
75164
+ bad: ["device-battery-low"],
75165
+ recovery: ["device-battery-normal"],
75166
+ snapshotLabel: "Batteries low now",
75167
+ snapshotSection: "battery"
75168
+ },
75169
+ {
75170
+ id: "consumables",
75171
+ family: "device-events",
75172
+ label: "Consumables (low / replaced)",
75173
+ bad: ["device-consumable-low"],
75174
+ recovery: ["device-consumable-normal"],
75175
+ snapshotLabel: "Consumables low now",
75176
+ snapshotSection: "consumables"
75177
+ },
75178
+ {
75179
+ id: "tanks",
75180
+ family: "device-events",
75181
+ label: "Tanks (low or full / back to normal)",
75182
+ bad: ["device-tank-low", "device-tank-full"],
75183
+ recovery: ["device-tank-normal"],
75184
+ snapshotLabel: "Tanks low or full now",
75185
+ snapshotSection: "tanks"
75186
+ },
75187
+ {
75188
+ id: "recording-health",
75189
+ family: "device-events",
75190
+ label: "Recording health (stalled or degraded / recording again)",
75191
+ bad: ["recording-stalled", "recording-degraded"],
75192
+ recovery: ["recording-healthy"],
75193
+ snapshotLabel: "Recordings stalled now",
75194
+ snapshotSection: null
75195
+ },
75196
+ {
75197
+ id: "node-connectivity",
75198
+ family: "system",
75199
+ label: "Node connectivity (offline / back online)",
75200
+ bad: ["node-offline"],
75201
+ recovery: ["node-online"],
75202
+ snapshotLabel: "Nodes offline now",
75203
+ snapshotSection: "nodes"
75204
+ },
75205
+ {
75206
+ id: "storage-space",
75207
+ family: "system",
75208
+ label: "Storage space (low or critical / ok again)",
75209
+ bad: ["storage-location-low", "storage-location-critical"],
75210
+ recovery: ["storage-location-ok"],
75211
+ snapshotLabel: "Storage locations low now",
75212
+ snapshotSection: null
75213
+ },
75214
+ {
75215
+ id: "critical-alerts",
75216
+ family: "system",
75217
+ label: "Critical alerts (raised / resolved)",
75218
+ bad: ["alert-critical"],
75219
+ recovery: ["alert-critical-resolved"],
75220
+ snapshotLabel: "Critical alerts open now",
75221
+ snapshotSection: null
75222
+ },
75223
+ {
75224
+ id: "rule-health",
75225
+ family: "system",
75226
+ label: "Rule health (broken / repaired)",
75227
+ bad: ["rule-broken"],
75228
+ recovery: ["rule-repaired"],
75229
+ snapshotLabel: "Notification rules broken now",
75230
+ snapshotSection: null
75231
+ }
75232
+ ].flatMap((spec) => [...spec.bad, ...spec.recovery].map((kind) => [kind, spec])));
75110
75233
  new Set([
75111
75234
  "disarmed",
75112
75235
  "armed_home",
@@ -39,7 +39,7 @@ var __copyProps = (to, from, except, desc) => {
39
39
  var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
40
40
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
41
41
  //#endregion
42
- //#region ../types/dist/event-category-DOl51-Ij.mjs
42
+ //#region ../types/dist/event-category-7pZEBmVg.mjs
43
43
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
44
44
  EventCategory["SystemBoot"] = "system.boot";
45
45
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -727,6 +727,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
727
727
  EventCategory["BackupRestored"] = "backup.restored";
728
728
  EventCategory["NotificationDispatched"] = "notification.dispatched";
729
729
  EventCategory["NotificationFailed"] = "notification.failed";
730
+ /**
731
+ * A notification rule that cannot work (D905): its stored row does not load,
732
+ * or it still names a device / delivery target the prune CONFIRMED deleted.
733
+ * One edge per rule per distinct set of reasons; never on an unanswered read.
734
+ */
735
+ EventCategory["NotificationRuleBroken"] = "notification.rule-broken";
736
+ /** The clear of {@link NotificationRuleBroken}: the rule loads and names nothing deleted. */
737
+ EventCategory["NotificationRuleRepaired"] = "notification.rule-repaired";
730
738
  EventCategory["DeviceUpdated"] = "device.updated";
731
739
  /**
732
740
  * Transport-level connectivity. Emitted by the device driver when
@@ -5454,7 +5462,7 @@ var ZodIssueCode = {
5454
5462
  var ZodFirstPartyTypeKind;
5455
5463
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5456
5464
  //#endregion
5457
- //#region ../types/dist/sleep-_sV1BE2f.mjs
5465
+ //#region ../types/dist/sleep-CueztlR1.mjs
5458
5466
  /**
5459
5467
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5460
5468
  * window to float samples (D455).
@@ -42961,6 +42969,8 @@ var NcSystemEventKindSchema = _enum([
42961
42969
  "alert-critical",
42962
42970
  "alert-error",
42963
42971
  "alert-critical-resolved",
42972
+ "rule-broken",
42973
+ "rule-repaired",
42964
42974
  "camera-online",
42965
42975
  "camera-offline",
42966
42976
  "camera-disabled",
@@ -74648,6 +74658,8 @@ new Map(Object.entries({
74648
74658
  "alert-critical": "system",
74649
74659
  "alert-error": "system",
74650
74660
  "alert-critical-resolved": "system",
74661
+ "rule-broken": "system",
74662
+ "rule-repaired": "system",
74651
74663
  "storage-location-low": "system",
74652
74664
  "storage-location-critical": "system",
74653
74665
  "storage-location-ok": "system",
@@ -74782,6 +74794,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
74782
74794
  "alert-critical-resolved"
74783
74795
  ]
74784
74796
  },
74797
+ {
74798
+ id: "rule-health",
74799
+ family: "system",
74800
+ label: "Notification rules",
74801
+ kinds: ["rule-broken", "rule-repaired"]
74802
+ },
74785
74803
  {
74786
74804
  id: "alarm",
74787
74805
  family: "alarm",
@@ -75059,6 +75077,10 @@ var STATE_SUMMARY_VARS = [
75059
75077
  [...RULE_TEXT],
75060
75078
  [...RULE_TEXT],
75061
75079
  [...RULE_TEXT],
75080
+ [...RULE_TEXT],
75081
+ [...RULE_TEXT],
75082
+ [...RULE_TEXT],
75083
+ [...RULE_TEXT],
75062
75084
  ([...RULE_TEXT], [...UPDATES]),
75063
75085
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
75064
75086
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
@@ -75097,6 +75119,107 @@ var STATE_SUMMARY_VARS = [
75097
75119
  [...RULE_TEXT],
75098
75120
  ...STATE_SUMMARY_VARS
75099
75121
  ];
75122
+ new Map([
75123
+ {
75124
+ id: "device-connectivity",
75125
+ family: "device-events",
75126
+ label: "Device connectivity (offline / back online)",
75127
+ bad: ["device-offline"],
75128
+ recovery: ["device-online"],
75129
+ snapshotLabel: "Devices offline now",
75130
+ snapshotSection: "device-state"
75131
+ },
75132
+ {
75133
+ id: "device-switch",
75134
+ family: "device-events",
75135
+ label: "Device switched off / back on",
75136
+ bad: ["device-disabled"],
75137
+ recovery: ["device-enabled"],
75138
+ snapshotLabel: "Devices switched off now",
75139
+ snapshotSection: "device-state"
75140
+ },
75141
+ {
75142
+ id: "stream-connectivity",
75143
+ family: "device-events",
75144
+ label: "Stream connectivity (offline / back online)",
75145
+ bad: ["stream-offline"],
75146
+ recovery: ["stream-online"],
75147
+ snapshotLabel: "Streams offline now",
75148
+ snapshotSection: "streams"
75149
+ },
75150
+ {
75151
+ id: "battery",
75152
+ family: "device-events",
75153
+ label: "Battery (low / back to normal)",
75154
+ bad: ["device-battery-low"],
75155
+ recovery: ["device-battery-normal"],
75156
+ snapshotLabel: "Batteries low now",
75157
+ snapshotSection: "battery"
75158
+ },
75159
+ {
75160
+ id: "consumables",
75161
+ family: "device-events",
75162
+ label: "Consumables (low / replaced)",
75163
+ bad: ["device-consumable-low"],
75164
+ recovery: ["device-consumable-normal"],
75165
+ snapshotLabel: "Consumables low now",
75166
+ snapshotSection: "consumables"
75167
+ },
75168
+ {
75169
+ id: "tanks",
75170
+ family: "device-events",
75171
+ label: "Tanks (low or full / back to normal)",
75172
+ bad: ["device-tank-low", "device-tank-full"],
75173
+ recovery: ["device-tank-normal"],
75174
+ snapshotLabel: "Tanks low or full now",
75175
+ snapshotSection: "tanks"
75176
+ },
75177
+ {
75178
+ id: "recording-health",
75179
+ family: "device-events",
75180
+ label: "Recording health (stalled or degraded / recording again)",
75181
+ bad: ["recording-stalled", "recording-degraded"],
75182
+ recovery: ["recording-healthy"],
75183
+ snapshotLabel: "Recordings stalled now",
75184
+ snapshotSection: null
75185
+ },
75186
+ {
75187
+ id: "node-connectivity",
75188
+ family: "system",
75189
+ label: "Node connectivity (offline / back online)",
75190
+ bad: ["node-offline"],
75191
+ recovery: ["node-online"],
75192
+ snapshotLabel: "Nodes offline now",
75193
+ snapshotSection: "nodes"
75194
+ },
75195
+ {
75196
+ id: "storage-space",
75197
+ family: "system",
75198
+ label: "Storage space (low or critical / ok again)",
75199
+ bad: ["storage-location-low", "storage-location-critical"],
75200
+ recovery: ["storage-location-ok"],
75201
+ snapshotLabel: "Storage locations low now",
75202
+ snapshotSection: null
75203
+ },
75204
+ {
75205
+ id: "critical-alerts",
75206
+ family: "system",
75207
+ label: "Critical alerts (raised / resolved)",
75208
+ bad: ["alert-critical"],
75209
+ recovery: ["alert-critical-resolved"],
75210
+ snapshotLabel: "Critical alerts open now",
75211
+ snapshotSection: null
75212
+ },
75213
+ {
75214
+ id: "rule-health",
75215
+ family: "system",
75216
+ label: "Rule health (broken / repaired)",
75217
+ bad: ["rule-broken"],
75218
+ recovery: ["rule-repaired"],
75219
+ snapshotLabel: "Notification rules broken now",
75220
+ snapshotSection: null
75221
+ }
75222
+ ].flatMap((spec) => [...spec.bad, ...spec.recovery].map((kind) => [kind, spec])));
75100
75223
  new Set([
75101
75224
  "disarmed",
75102
75225
  "armed_home",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-export-hap",
3
- "version": "1.2.171",
3
+ "version": "1.2.173",
4
4
  "description": "HomeKit (HAP) exporter for CamStack devices. Publishes each exposed device as its own HomeKit accessory: cameras and doorbells with SRTP streaming, HomeKit Secure Video, motion, two-way audio, PTZ and battery; switches, lights, locks and sensors through a capability→service table.",
5
5
  "keywords": [
6
6
  "camstack",