@camstack/addon-mqtt-broker 1.2.138 → 1.2.140

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.
@@ -46,7 +46,7 @@ let node_fs = require("node:fs");
46
46
  node_fs = __toESM(node_fs);
47
47
  let node_path = require("node:path");
48
48
  node_path = __toESM(node_path);
49
- //#region ../types/dist/event-category-DOl51-Ij.mjs
49
+ //#region ../types/dist/event-category-7pZEBmVg.mjs
50
50
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
51
51
  EventCategory["SystemBoot"] = "system.boot";
52
52
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -734,6 +734,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
734
734
  EventCategory["BackupRestored"] = "backup.restored";
735
735
  EventCategory["NotificationDispatched"] = "notification.dispatched";
736
736
  EventCategory["NotificationFailed"] = "notification.failed";
737
+ /**
738
+ * A notification rule that cannot work (D905): its stored row does not load,
739
+ * or it still names a device / delivery target the prune CONFIRMED deleted.
740
+ * One edge per rule per distinct set of reasons; never on an unanswered read.
741
+ */
742
+ EventCategory["NotificationRuleBroken"] = "notification.rule-broken";
743
+ /** The clear of {@link NotificationRuleBroken}: the rule loads and names nothing deleted. */
744
+ EventCategory["NotificationRuleRepaired"] = "notification.rule-repaired";
737
745
  EventCategory["DeviceUpdated"] = "device.updated";
738
746
  /**
739
747
  * Transport-level connectivity. Emitted by the device driver when
@@ -5594,7 +5602,7 @@ var ZodIssueCode = {
5594
5602
  var ZodFirstPartyTypeKind;
5595
5603
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5596
5604
  //#endregion
5597
- //#region ../types/dist/sleep-_sV1BE2f.mjs
5605
+ //#region ../types/dist/sleep-CueztlR1.mjs
5598
5606
  /**
5599
5607
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5600
5608
  * window to float samples (D455).
@@ -42455,6 +42463,8 @@ var NcSystemEventKindSchema = _enum([
42455
42463
  "alert-critical",
42456
42464
  "alert-error",
42457
42465
  "alert-critical-resolved",
42466
+ "rule-broken",
42467
+ "rule-repaired",
42458
42468
  "camera-online",
42459
42469
  "camera-offline",
42460
42470
  "camera-disabled",
@@ -73888,6 +73898,8 @@ new Map(Object.entries({
73888
73898
  "alert-critical": "system",
73889
73899
  "alert-error": "system",
73890
73900
  "alert-critical-resolved": "system",
73901
+ "rule-broken": "system",
73902
+ "rule-repaired": "system",
73891
73903
  "storage-location-low": "system",
73892
73904
  "storage-location-critical": "system",
73893
73905
  "storage-location-ok": "system",
@@ -74022,6 +74034,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
74022
74034
  "alert-critical-resolved"
74023
74035
  ]
74024
74036
  },
74037
+ {
74038
+ id: "rule-health",
74039
+ family: "system",
74040
+ label: "Notification rules",
74041
+ kinds: ["rule-broken", "rule-repaired"]
74042
+ },
74025
74043
  {
74026
74044
  id: "alarm",
74027
74045
  family: "alarm",
@@ -74299,6 +74317,10 @@ var STATE_SUMMARY_VARS = [
74299
74317
  [...RULE_TEXT],
74300
74318
  [...RULE_TEXT],
74301
74319
  [...RULE_TEXT],
74320
+ [...RULE_TEXT],
74321
+ [...RULE_TEXT],
74322
+ [...RULE_TEXT],
74323
+ [...RULE_TEXT],
74302
74324
  ([...RULE_TEXT], [...UPDATES]),
74303
74325
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
74304
74326
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
@@ -74337,6 +74359,107 @@ var STATE_SUMMARY_VARS = [
74337
74359
  [...RULE_TEXT],
74338
74360
  ...STATE_SUMMARY_VARS
74339
74361
  ];
74362
+ new Map([
74363
+ {
74364
+ id: "device-connectivity",
74365
+ family: "device-events",
74366
+ label: "Device connectivity (offline / back online)",
74367
+ bad: ["device-offline"],
74368
+ recovery: ["device-online"],
74369
+ snapshotLabel: "Devices offline now",
74370
+ snapshotSection: "device-state"
74371
+ },
74372
+ {
74373
+ id: "device-switch",
74374
+ family: "device-events",
74375
+ label: "Device switched off / back on",
74376
+ bad: ["device-disabled"],
74377
+ recovery: ["device-enabled"],
74378
+ snapshotLabel: "Devices switched off now",
74379
+ snapshotSection: "device-state"
74380
+ },
74381
+ {
74382
+ id: "stream-connectivity",
74383
+ family: "device-events",
74384
+ label: "Stream connectivity (offline / back online)",
74385
+ bad: ["stream-offline"],
74386
+ recovery: ["stream-online"],
74387
+ snapshotLabel: "Streams offline now",
74388
+ snapshotSection: "streams"
74389
+ },
74390
+ {
74391
+ id: "battery",
74392
+ family: "device-events",
74393
+ label: "Battery (low / back to normal)",
74394
+ bad: ["device-battery-low"],
74395
+ recovery: ["device-battery-normal"],
74396
+ snapshotLabel: "Batteries low now",
74397
+ snapshotSection: "battery"
74398
+ },
74399
+ {
74400
+ id: "consumables",
74401
+ family: "device-events",
74402
+ label: "Consumables (low / replaced)",
74403
+ bad: ["device-consumable-low"],
74404
+ recovery: ["device-consumable-normal"],
74405
+ snapshotLabel: "Consumables low now",
74406
+ snapshotSection: "consumables"
74407
+ },
74408
+ {
74409
+ id: "tanks",
74410
+ family: "device-events",
74411
+ label: "Tanks (low or full / back to normal)",
74412
+ bad: ["device-tank-low", "device-tank-full"],
74413
+ recovery: ["device-tank-normal"],
74414
+ snapshotLabel: "Tanks low or full now",
74415
+ snapshotSection: "tanks"
74416
+ },
74417
+ {
74418
+ id: "recording-health",
74419
+ family: "device-events",
74420
+ label: "Recording health (stalled or degraded / recording again)",
74421
+ bad: ["recording-stalled", "recording-degraded"],
74422
+ recovery: ["recording-healthy"],
74423
+ snapshotLabel: "Recordings stalled now",
74424
+ snapshotSection: null
74425
+ },
74426
+ {
74427
+ id: "node-connectivity",
74428
+ family: "system",
74429
+ label: "Node connectivity (offline / back online)",
74430
+ bad: ["node-offline"],
74431
+ recovery: ["node-online"],
74432
+ snapshotLabel: "Nodes offline now",
74433
+ snapshotSection: "nodes"
74434
+ },
74435
+ {
74436
+ id: "storage-space",
74437
+ family: "system",
74438
+ label: "Storage space (low or critical / ok again)",
74439
+ bad: ["storage-location-low", "storage-location-critical"],
74440
+ recovery: ["storage-location-ok"],
74441
+ snapshotLabel: "Storage locations low now",
74442
+ snapshotSection: null
74443
+ },
74444
+ {
74445
+ id: "critical-alerts",
74446
+ family: "system",
74447
+ label: "Critical alerts (raised / resolved)",
74448
+ bad: ["alert-critical"],
74449
+ recovery: ["alert-critical-resolved"],
74450
+ snapshotLabel: "Critical alerts open now",
74451
+ snapshotSection: null
74452
+ },
74453
+ {
74454
+ id: "rule-health",
74455
+ family: "system",
74456
+ label: "Rule health (broken / repaired)",
74457
+ bad: ["rule-broken"],
74458
+ recovery: ["rule-repaired"],
74459
+ snapshotLabel: "Notification rules broken now",
74460
+ snapshotSection: null
74461
+ }
74462
+ ].flatMap((spec) => [...spec.bad, ...spec.recovery].map((kind) => [kind, spec])));
74340
74463
  new Set([
74341
74464
  "disarmed",
74342
74465
  "armed_home",
@@ -39,7 +39,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
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
@@ -5587,7 +5595,7 @@ var ZodIssueCode = {
5587
5595
  var ZodFirstPartyTypeKind;
5588
5596
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5589
5597
  //#endregion
5590
- //#region ../types/dist/sleep-_sV1BE2f.mjs
5598
+ //#region ../types/dist/sleep-CueztlR1.mjs
5591
5599
  /**
5592
5600
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5593
5601
  * window to float samples (D455).
@@ -42448,6 +42456,8 @@ var NcSystemEventKindSchema = _enum([
42448
42456
  "alert-critical",
42449
42457
  "alert-error",
42450
42458
  "alert-critical-resolved",
42459
+ "rule-broken",
42460
+ "rule-repaired",
42451
42461
  "camera-online",
42452
42462
  "camera-offline",
42453
42463
  "camera-disabled",
@@ -73881,6 +73891,8 @@ new Map(Object.entries({
73881
73891
  "alert-critical": "system",
73882
73892
  "alert-error": "system",
73883
73893
  "alert-critical-resolved": "system",
73894
+ "rule-broken": "system",
73895
+ "rule-repaired": "system",
73884
73896
  "storage-location-low": "system",
73885
73897
  "storage-location-critical": "system",
73886
73898
  "storage-location-ok": "system",
@@ -74015,6 +74027,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
74015
74027
  "alert-critical-resolved"
74016
74028
  ]
74017
74029
  },
74030
+ {
74031
+ id: "rule-health",
74032
+ family: "system",
74033
+ label: "Notification rules",
74034
+ kinds: ["rule-broken", "rule-repaired"]
74035
+ },
74018
74036
  {
74019
74037
  id: "alarm",
74020
74038
  family: "alarm",
@@ -74292,6 +74310,10 @@ var STATE_SUMMARY_VARS = [
74292
74310
  [...RULE_TEXT],
74293
74311
  [...RULE_TEXT],
74294
74312
  [...RULE_TEXT],
74313
+ [...RULE_TEXT],
74314
+ [...RULE_TEXT],
74315
+ [...RULE_TEXT],
74316
+ [...RULE_TEXT],
74295
74317
  ([...RULE_TEXT], [...UPDATES]),
74296
74318
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
74297
74319
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
@@ -74330,6 +74352,107 @@ var STATE_SUMMARY_VARS = [
74330
74352
  [...RULE_TEXT],
74331
74353
  ...STATE_SUMMARY_VARS
74332
74354
  ];
74355
+ new Map([
74356
+ {
74357
+ id: "device-connectivity",
74358
+ family: "device-events",
74359
+ label: "Device connectivity (offline / back online)",
74360
+ bad: ["device-offline"],
74361
+ recovery: ["device-online"],
74362
+ snapshotLabel: "Devices offline now",
74363
+ snapshotSection: "device-state"
74364
+ },
74365
+ {
74366
+ id: "device-switch",
74367
+ family: "device-events",
74368
+ label: "Device switched off / back on",
74369
+ bad: ["device-disabled"],
74370
+ recovery: ["device-enabled"],
74371
+ snapshotLabel: "Devices switched off now",
74372
+ snapshotSection: "device-state"
74373
+ },
74374
+ {
74375
+ id: "stream-connectivity",
74376
+ family: "device-events",
74377
+ label: "Stream connectivity (offline / back online)",
74378
+ bad: ["stream-offline"],
74379
+ recovery: ["stream-online"],
74380
+ snapshotLabel: "Streams offline now",
74381
+ snapshotSection: "streams"
74382
+ },
74383
+ {
74384
+ id: "battery",
74385
+ family: "device-events",
74386
+ label: "Battery (low / back to normal)",
74387
+ bad: ["device-battery-low"],
74388
+ recovery: ["device-battery-normal"],
74389
+ snapshotLabel: "Batteries low now",
74390
+ snapshotSection: "battery"
74391
+ },
74392
+ {
74393
+ id: "consumables",
74394
+ family: "device-events",
74395
+ label: "Consumables (low / replaced)",
74396
+ bad: ["device-consumable-low"],
74397
+ recovery: ["device-consumable-normal"],
74398
+ snapshotLabel: "Consumables low now",
74399
+ snapshotSection: "consumables"
74400
+ },
74401
+ {
74402
+ id: "tanks",
74403
+ family: "device-events",
74404
+ label: "Tanks (low or full / back to normal)",
74405
+ bad: ["device-tank-low", "device-tank-full"],
74406
+ recovery: ["device-tank-normal"],
74407
+ snapshotLabel: "Tanks low or full now",
74408
+ snapshotSection: "tanks"
74409
+ },
74410
+ {
74411
+ id: "recording-health",
74412
+ family: "device-events",
74413
+ label: "Recording health (stalled or degraded / recording again)",
74414
+ bad: ["recording-stalled", "recording-degraded"],
74415
+ recovery: ["recording-healthy"],
74416
+ snapshotLabel: "Recordings stalled now",
74417
+ snapshotSection: null
74418
+ },
74419
+ {
74420
+ id: "node-connectivity",
74421
+ family: "system",
74422
+ label: "Node connectivity (offline / back online)",
74423
+ bad: ["node-offline"],
74424
+ recovery: ["node-online"],
74425
+ snapshotLabel: "Nodes offline now",
74426
+ snapshotSection: "nodes"
74427
+ },
74428
+ {
74429
+ id: "storage-space",
74430
+ family: "system",
74431
+ label: "Storage space (low or critical / ok again)",
74432
+ bad: ["storage-location-low", "storage-location-critical"],
74433
+ recovery: ["storage-location-ok"],
74434
+ snapshotLabel: "Storage locations low now",
74435
+ snapshotSection: null
74436
+ },
74437
+ {
74438
+ id: "critical-alerts",
74439
+ family: "system",
74440
+ label: "Critical alerts (raised / resolved)",
74441
+ bad: ["alert-critical"],
74442
+ recovery: ["alert-critical-resolved"],
74443
+ snapshotLabel: "Critical alerts open now",
74444
+ snapshotSection: null
74445
+ },
74446
+ {
74447
+ id: "rule-health",
74448
+ family: "system",
74449
+ label: "Rule health (broken / repaired)",
74450
+ bad: ["rule-broken"],
74451
+ recovery: ["rule-repaired"],
74452
+ snapshotLabel: "Notification rules broken now",
74453
+ snapshotSection: null
74454
+ }
74455
+ ].flatMap((spec) => [...spec.bad, ...spec.recovery].map((kind) => [kind, spec])));
74333
74456
  new Set([
74334
74457
  "disarmed",
74335
74458
  "armed_home",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-mqtt-broker",
3
- "version": "1.2.138",
3
+ "version": "1.2.140",
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",